Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
bf9ea3b
chore: initial scaffold for varia-docs
zz-plant May 14, 2026
04a9e61
chore: initial scaffold for varia-ui
zz-plant May 14, 2026
739a6ed
docs: add CC-BY-4.0 license
zz-plant May 14, 2026
8274848
docs: add MIT license
zz-plant May 14, 2026
2763c42
fix: correct stale links and license references in README
zz-plant May 14, 2026
b0376ed
fix: correct stale links and license references in README
zz-plant May 14, 2026
23a6d36
docs: complete schema, tutorials, SDK, install page, and concepts
zz-plant May 14, 2026
3012f11
docs: rewrite CLI reference and tutorials to match actual wikihistory…
zz-plant May 14, 2026
be70926
fix: tighten types to match evidence-graph schema, wire dead componen…
zz-plant May 14, 2026
963c9d7
ci: add GitHub Pages deployment workflow
zz-plant May 14, 2026
071bdb5
revert: remove GitHub Pages deployment
zz-plant May 14, 2026
d9c0d2b
feat: static docs site with markdown build and GitHub Pages deploy
zz-plant May 14, 2026
e0f8b65
chore: add package-lock.json
zz-plant May 14, 2026
f91513e
fix: enable Pages auto-configuration in deploy workflow
zz-plant May 14, 2026
b7a129d
fix: use base path for GitHub Pages project site URLs
zz-plant May 14, 2026
8d824a6
docs: fix SDK examples to match actual API (singletons not classes, n…
zz-plant May 14, 2026
932cfd4
docs: fix --depth quick to --depth brief in install.md
zz-plant May 14, 2026
24225e3
docs: add explore command, 2 new event types, wikidata exports, clust…
zz-plant May 14, 2026
2f368eb
fix: broken subdirectory links, stale references, deprecated API, mis…
zz-plant May 15, 2026
1093635
feat: add CI workflow (build check on PR/push), fix deploy.yml config…
zz-plant May 15, 2026
e2c78dc
docs: add events, naming, mcp, security docs; link from index.md
zz-plant May 15, 2026
e56c1c9
docs: remove interpreter + claim direction semantics from public docs
zz-plant May 15, 2026
285151a
chore: fix package table, remove interpreter, add dependabot/CODEOWNERS
zz-plant May 15, 2026
8b27e14
docs: purge L2/Three-Knowledge/interpreter from concepts, schema, SDK…
zz-plant May 15, 2026
9c630b7
chore: add package.json metadata (repository, homepage, bugs, license…
zz-plant May 15, 2026
8302a24
chore: add package.json metadata, fix packages table, add interpreter…
zz-plant May 15, 2026
4e9701c
docs: purge remaining L2/interpreter/model refs from sdk, cli, fandom…
zz-plant May 15, 2026
0852774
docs: expand concepts, add depth/bundle/glossary/faq pages, fix event…
zz-plant May 15, 2026
8f0edc5
docs: sync with v0.3.1 — zero-install quickstart, html export, remove…
zz-plant May 15, 2026
2f142b9
docs: sharpen positioning — git log for public knowledge, provenance …
zz-plant May 15, 2026
27218bd
docs: tighten README positioning
zz-plant May 15, 2026
d6d8ff6
docs: add epistemic infrastructure framing to landing page
zz-plant May 15, 2026
4c21147
docs: BYOI pattern — interpret tool, sampling, prompt utilities
zz-plant May 15, 2026
5a262c5
docs: rename Varia → Sequent
zz-plant May 15, 2026
9885658
docs: rename Varia → Sequent
zz-plant May 15, 2026
f0ec906
chore: update repo URLs to var-ia/refract-*
zz-plant May 15, 2026
a9cdc8d
fix: rename all Varia/Sequent/var-ia refs to Refract/refract-org
zz-plant May 15, 2026
6fcd567
fix: rename all Varia/Sequent/var-ia refs to Refract/refract-org
zz-plant May 15, 2026
acde680
fix: rename varia→refract in README, fix stale links to var-ia org
zz-plant May 15, 2026
4924dfc
fix: rename varia→refract in README, fix stale links to var-ia org
zz-plant May 15, 2026
46af57c
docs: adopt 'open claim-history layer' framing, refract as primary CL…
zz-plant May 15, 2026
21b244e
docs: update for sentence_modified, CLI config flags, ledger types, A…
zz-plant May 15, 2026
dab76f3
chore: remove accidentally staged .DS_Store
zz-plant May 15, 2026
edecba0
docs: update for sentence_modified, CLI config flags, ledger types, A…
zz-plant May 15, 2026
8e6fd6b
chore: remove .DS_Store
zz-plant May 15, 2026
31e6e8c
docs: fix stale BYOI refs in sdk.md, add configurable heuristics to c…
zz-plant May 16, 2026
c5cb97b
chore: remove .DS_Store
zz-plant May 16, 2026
b148f8a
chore: add .DS_Store to gitignore
zz-plant May 16, 2026
54121e6
fix: eval published status in packages table, CLI alias in AGENTS
zz-plant May 16, 2026
3066335
docs: frame configurable heuristics as BYO-inference boundaries with …
zz-plant May 16, 2026
6d0d116
docs: adopt clawpatch patterns — hero install command, emoji feature …
zz-plant May 16, 2026
5a0d7c2
fix: update base path from /varia-docs/ to /refract-docs/ (broken links)
zz-plant May 16, 2026
db44342
docs: add refract classify command reference with boundary table
zz-plant May 16, 2026
f7a4287
docs: update packages table with BYO-inference and classify
zz-plant May 16, 2026
c67e641
docs: document DeepSeek/Ollama/OpenAI provider examples in classify
zz-plant May 16, 2026
50ee1d7
docs: add downstream integration page, index link, sidebar nav
zz-plant May 16, 2026
77d512e
docs: make downstream consumer examples generic, remove NextConsensus…
zz-plant May 16, 2026
a4ad8ce
docs: expand downstream consumer examples in glossary
zz-plant May 16, 2026
a5b6f6a
docs: add What Downstream Systems Build table to downstream.md
zz-plant May 16, 2026
076ebf4
docs: add complementary technologies table to downstream.md
zz-plant May 16, 2026
c2112c1
docs: add MCP, AI coding agents, local inference, Marimo, Workers AI …
zz-plant May 16, 2026
c7a2d64
docs: add MCP tutorial with AI coding agent examples, DuckDB analytic…
zz-plant May 16, 2026
5302640
docs: add version compatibility table, production DDL, migration guid…
zz-plant May 16, 2026
b404b4b
docs: add live demo page with interactive timeline, claim lifecycle, …
zz-plant May 16, 2026
f9089e9
docs: update notebooks page with Marimo template and LangChain loader…
zz-plant May 16, 2026
b015063
docs: add by-use-case table to landing, LangChain loader and Python S…
zz-plant May 16, 2026
423650c
reorg: group sidebar nav into Getting Started / Reference / Integrati…
zz-plant May 16, 2026
360176e
docs: add 3 architecture diagrams to concepts page (concept-overview,…
zz-plant May 16, 2026
c5fef34
docs: add references section to concepts — 16 citations from provenan…
zz-plant May 16, 2026
b28c658
fix: remove fabricated references (Jurgens, Youyou), fix Ferschke yea…
zz-plant May 16, 2026
23a6519
docs: add editorCount to edit_cluster_detected event
zz-plant May 16, 2026
dbd82f9
fix: stale var-ia URLs in package.json
zz-plant May 16, 2026
9e36aec
refract docs updates
zz-plant May 17, 2026
d5a3507
chore: gitignore opencode.json
zz-plant May 17, 2026
e302537
chore: gitignore opencode.json
zz-plant May 17, 2026
12914cf
new tutorials
zz-plant May 18, 2026
16bb768
feat: add test script (tsc --noEmit), update AGENTS.md
zz-plant May 18, 2026
5407081
docs: 12 new pages, audience reorganization, frontier surfaced, CLI u…
zz-plant May 18, 2026
bf424c7
docs: AI eval toolkit — Colab notebook, integrations update, homepage…
zz-plant May 18, 2026
6e3273d
docs: add AI eval comparison to compare.md — Refract vs eval tools
zz-plant May 18, 2026
f73c3f7
docs: surface eval adapter in tutorials, fix Colab notebook CLI install
zz-plant May 18, 2026
8ee5b47
fix: add offline sample data fallback to Colab notebook
zz-plant May 18, 2026
03f229f
docs(refract-docs): update README positioning
zz-plant May 19, 2026
c6c1008
doc(sdk): add semantic enrichment to code examples and adapter pattern
zz-plant May 22, 2026
6dedf63
doc: replace @refract-org/observable with Observable recipe in sdk + …
zz-plant May 22, 2026
28066ef
Update .gitignore
zz-plant May 22, 2026
e2b1d14
doc: update refs from deleted repos to monorepo paths
zz-plant May 22, 2026
c9b7817
style: swap fonts — Syne headings, Manrope body, Recursive mono
zz-plant May 22, 2026
32dc3c9
style: swap fonts — Syne headings, Manrope body, Recursive mono
zz-plant May 22, 2026
998773f
chore(biome): add Biome linter and formatter config
zz-plant May 22, 2026
866f7a5
chore(biome): add Biome linter and formatter config
zz-plant May 22, 2026
f748a47
chore(husky): add pre-commit hooks with lint-staged
zz-plant May 22, 2026
8dab114
chore(husky): add pre-commit hooks with lint-staged
zz-plant May 22, 2026
947a89e
ci: add basic CI workflow
zz-plant May 23, 2026
091d181
chore(test): add vitest test infrastructure
zz-plant May 23, 2026
8af42ab
chore(test): add vitest test infrastructure
zz-plant May 23, 2026
0587704
docs(agents): expand AGENTS.md with project guide
zz-plant May 23, 2026
e760cee
docs(agents): add copilot instructions for AI-assisted development
zz-plant May 23, 2026
275909f
docs(agents): add copilot instructions for AI-assisted development
zz-plant May 23, 2026
f63f6ee
docs(agents): expand AGENTS.md with quickstart and tooling
zz-plant May 23, 2026
e6f0452
docs(glossary): clean up legacy L1/L2 terminology and validate relati…
zz-plant May 23, 2026
6d138cd
chore: remove copilot-instructions (not consumed by repo agents)
zz-plant May 23, 2026
53acc15
chore: remove copilot-instructions (not consumed by repo agents)
zz-plant May 23, 2026
5e0ac05
fix(ci): add test step to CI pipeline
zz-plant May 23, 2026
f9c23c0
docs: add Refract UI walkthrough + quickstart exercise
zz-plant May 23, 2026
29c3c90
fix: repair pages deploy lockfile
zz-plant May 23, 2026
14e4d69
fix: repair docs navigation links
zz-plant May 23, 2026
d3c1b89
fix: bust cached docs stylesheet
zz-plant May 23, 2026
e75bd3f
chore: update README hero GIF and OG image
zz-plant May 24, 2026
188a452
chore: update README hero GIF and OG image
zz-plant May 24, 2026
a619c22
chore: sync remaining changes
zz-plant May 24, 2026
35132de
chore: sync remaining changes
zz-plant May 24, 2026
4c21c07
chore: add graphical asset variants (dark OG, square, badge, etc.)
zz-plant May 24, 2026
66fe9c0
chore: add graphical asset variants (dark OG, square, badge, etc.)
zz-plant May 24, 2026
ecbca04
fix: rebuild card assets with proper ffmpeg scaling
zz-plant May 24, 2026
1b51655
fix: rebuild card assets with proper ffmpeg scaling
zz-plant May 24, 2026
47332d9
chore: add email, blur placeholder, and circle crop
zz-plant May 24, 2026
5bf1419
chore: add email, blur placeholder, and circle crop
zz-plant May 24, 2026
2975080
fix: regenerate favicons as proper 32px squares with scene symbols
zz-plant May 24, 2026
270bd36
fix: regenerate favicons as proper 32px squares with scene symbols
zz-plant May 24, 2026
e561b81
chore: regenerate assets with retina scaling and error fixes
zz-plant May 24, 2026
31f2030
chore: regenerate assets with retina scaling and error fixes
zz-plant May 24, 2026
8508e92
Improve mobile code block wrapping
zz-plant May 25, 2026
91f3628
chore: add asset check/generate scripts
zz-plant May 26, 2026
9c4bd1e
chore: add asset check/generate scripts
zz-plant May 26, 2026
b8072ff
chore: add source.svg and regenerate scene assets
zz-plant May 26, 2026
1bb2e4a
chore: add source.svg and regenerate scene assets
zz-plant May 26, 2026
5368d74
fix: compact source.svg layout — no text cutoff at small scales
zz-plant May 26, 2026
7a16203
fix: compact source.svg layout — no text cutoff at small scales
zz-plant May 26, 2026
6891746
fix: lint errors in generate-scenes.ts — eslint-disable + remove unus…
zz-plant May 26, 2026
0c08e03
fix: lint errors in generate-scenes.ts — eslint-disable + remove unus…
zz-plant May 26, 2026
e598769
chore: add tooling patterns to .gitignore
zz-plant May 26, 2026
119d95d
chore: add tooling patterns to .gitignore
zz-plant May 26, 2026
9034e71
ts fixes
zz-plant May 30, 2026
5596848
chore: add .opencode/ with build and check commands
zz-plant May 30, 2026
29d704c
chore: add .opencode/ with build and check commands
zz-plant May 30, 2026
28c7487
chore: sync docs assets and nav
zz-plant May 30, 2026
d1e8494
feat: enhance landing page visuals
zz-plant May 31, 2026
571da93
updates
zz-plant May 31, 2026
e894de5
Merge pull request #6 from refract-org/codex/docs-claim-e2e-audit
zz-plant May 31, 2026
d6b58ef
chore: add standard opencode modes (deploy, refactor, review)
zz-plant May 31, 2026
9aecc3f
chore: add standard opencode modes (deploy, refactor, review)
zz-plant May 31, 2026
83eb254
docs: temporal model page for developer education
zz-plant May 31, 2026
3480874
docs: link events taxonomy to temporal model
zz-plant May 31, 2026
c1384d8
docs: add temporal model to nav
zz-plant May 31, 2026
0ec3d06
chore: upgrade and modernize tooling ecosystem (astro, tailwind, play…
zz-plant Aug 16, 2026
b0719f2
chore: upgrade and modernize tooling ecosystem (astro, tailwind, play…
zz-plant Aug 16, 2026
ccf0282
docs: update MCP server reference from @refract-org/cli to @refract-o…
zz-plant Aug 16, 2026
5705a5d
Docs, SVG titles, and MCP config cleanup
zz-plant Sep 20, 2026
aecedc8
docs: stop sending readers to packages that cannot run or are not ours
claude Sep 24, 2026
91c683d
docs: describe cron, the CLI flags and rate limiting as the code has …
claude Sep 24, 2026
a51fcb6
Merge pull request #20 from refract-org/claude/refract-improvements-d…
zz-plant Sep 24, 2026
a10e449
style: drop the gradient, panel blur, glow, fade-in and web fonts fro…
claude Sep 24, 2026
6b0dffb
fix: name the viewer's panels for what they plot and correct the READ…
claude Sep 24, 2026
ee62f4e
style: drop the glass cards, gradients, glow, page fade-in and web fo…
claude Sep 24, 2026
5260166
docs: build events with buildRevisionEvents, and stop claiming what e…
claude Sep 24, 2026
47c7e60
docs: rewrite the homepage and README copy that read as generated, an…
claude Sep 24, 2026
27bd1a7
Merge pull request #22 from refract-org/claude/vibecoded-ui-copy-audi…
zz-plant Sep 24, 2026
5d50686
Merge pull request #1 from refract-org/claude/vibecoded-ui-copy-audit…
zz-plant Sep 24, 2026
a4b50e5
Merge pull request #21 from refract-org/claude/refract-improvements-d…
zz-plant Sep 24, 2026
45c41e8
docs: document verification bundles, verify CLI, multi-source ingesti…
zz-plant Sep 26, 2026
5ca6cd2
docs: add forensic policy propagation, citation network analysis, and…
zz-plant Sep 26, 2026
81161f8
fix(assets): resolve biome schema migration, svg a11y title, and asse…
zz-plant Sep 26, 2026
9e4f13b
fix(assets): resolve package prefix resolution and align check specs …
zz-plant Sep 26, 2026
f9ae239
Merge pull request #23 from refract-org/fix/assets-check-specs
zz-plant Sep 26, 2026
11e24c2
Merge pull request #2 from refract-org/fix/assets-check-and-lint
zz-plant Sep 26, 2026
d66fd2e
docs: describe verification bundles and refract verify by what they c…
claude Sep 29, 2026
0f3fc6f
docs: stop calling bundles signed or their hashes a cryptographic aud…
claude Sep 29, 2026
9ade73d
docs: say what the propagation, citation, survival and graph helpers …
claude Sep 29, 2026
e18b919
Merge pull request #24 from refract-org/claude/vibecoded-ui-copy-audi…
zz-plant Sep 29, 2026
a7b230a
docs: say the 0.5.17 CLI installs from npm, and delete the build-from…
zz-plant Sep 29, 2026
2c6bacf
Merge pull request #25 from refract-org/docs/npm-0.5.17-status
zz-plant Sep 29, 2026
aa58e0a
docs: say refract verify rehashes events and checks proofs against th…
zz-plant Sep 29, 2026
545c2b3
Merge pull request #26 from refract-org/fix/verify-binds-events
zz-plant Sep 29, 2026
f522673
fix(docs): render the four pipe tables that printed as raw text
claude Sep 29, 2026
423bffc
fix(site): scroll wide tables inside their own box on narrow screens
claude Sep 29, 2026
5f0db69
docs(home): delete the in-page Contents list and the links it repeated
claude Sep 29, 2026
dfe3275
docs(home): drop the category badges from the use-case cards
claude Sep 29, 2026
ccf0983
fix(ui): open the viewer on the timeline and the selected event's diff
claude Sep 29, 2026
5366f2f
Merge pull request #3 from refract-org/claude/vibecoded-ui-copy-audit…
zz-plant Sep 29, 2026
147aba7
Merge pull request #27 from refract-org/claude/vibecoded-ui-copy-audi…
zz-plant Sep 29, 2026
5b4982b
fix(ui): keep the timeline's total when filtering, drop empty diff li…
claude Sep 29, 2026
7989c21
Merge pull request #4 from refract-org/claude/vibecoded-ui-copy-audit…
zz-plant Sep 29, 2026
3a2d86e
test(ui): add comprehensive component test suite for timeline, citati…
zz-plant Oct 1, 2026
1adbab2
chore: bump dependencies and align biome schema (#28)
zz-plant Oct 1, 2026
677593b
chore: bump actions/setup-node from 4 to 6 (#1)
dependabot[bot] Oct 1, 2026
0987de7
chore: bump actions/configure-pages from 5 to 6 (#2)
dependabot[bot] Oct 1, 2026
5fd8e61
chore(ci): bump actions/checkout, upload-pages-artifact, and deploy-p…
zz-plant Oct 1, 2026
9549bd4
feat(seo): emit canonical URLs, Open Graph tags, JSON-LD and sitemap.…
zz-plant Oct 8, 2026
880d31b
feat(seo): per-page meta descriptions and markdown-free titles (#30)
zz-plant Oct 8, 2026
5c27a16
feat(seo): Open Graph card, trailing-slash links, search-language tit…
zz-plant Oct 9, 2026
86f325b
docs(mcp): name Wikipedia and MediaWiki in the intro; delete unused p…
zz-plant Oct 9, 2026
9ca0f93
docs: attach the clauses in the compare rows, MCP intro and tutorial …
zz-plant Oct 9, 2026
f2227a1
test: add monorepo consolidation TDD contract (RED phase)
zz-plant Oct 12, 2026
fff8825
Add 'apps/docs/' from commit '9ca0f93f1483b91770dd86de06669e6ce8dbd101'
zz-plant Oct 12, 2026
52a120f
Add 'apps/ui/' from commit '3a2d86e89ed6bab084d3c20f575c9425a2537de3'
zz-plant Oct 12, 2026
db72e4a
feat: link apps/* workspaces in monorepo root (GREEN phase)
zz-plant Oct 12, 2026
13f62eb
fix(ci): scope workspaces and test exclude patterns for apps
zz-plant Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/docs/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nextconsensus/engineering
16 changes: 16 additions & 0 deletions apps/docs/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: "chore"
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
commit-message:
prefix: "chore"
21 changes: 21 additions & 0 deletions apps/docs/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
33 changes: 33 additions & 0 deletions apps/docs/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
with:
path: dist
- id: deploy
uses: actions/deploy-pages@v5
24 changes: 24 additions & 0 deletions apps/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
node_modules/
dist/
.env
.env.local
.DS_Store
opencode.json
/.sisyphus

# Tooling
.cmux/
.codex/
.agent/
.wrangler/

# Tooling
.cmux/
.codex/
.agent/

# Tooling
.cmux/
.codex/
.agent/
.wrangler/
1 change: 1 addition & 0 deletions apps/docs/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
6 changes: 6 additions & 0 deletions apps/docs/.lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.{js,ts,tsx,jsx,mjs,cjs}": [
"npx biome check --write --no-errors-on-unmatched"
],
"*.{json,yaml,yml}": ["npx biome check --write --no-errors-on-unmatched"]
}
5 changes: 5 additions & 0 deletions apps/docs/.opencode/commands/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
description: "Run the full build"
agent: build
---
npx biome check .||node build.mjs||vitest run
5 changes: 5 additions & 0 deletions apps/docs/.opencode/commands/check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
description: "Run typecheck + lint"
agent: build
---
npx biome check .||node build.mjs||vitest run
9 changes: 9 additions & 0 deletions apps/docs/.opencode/modes/deploy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Deploy Mode

You are in **deploy mode**. Process:

1. **Run full QA** — `bun run qa` (typecheck + test + build)
2. **If QA fails** — report failures and stop. Do not deploy.
3. **If QA passes** — run `bun run deploy`
4. **Verify** — confirm the deploy succeeded, note the URL
5. **Report** — what was deployed, commit hash, any notable changes
11 changes: 11 additions & 0 deletions apps/docs/.opencode/modes/refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Refactor Mode

You are in **refactoring mode**. Process:

1. **Read first** — understand the full module before changing anything
2. **Scope tightly** — one concern per refactor, never mix with feature work
3. **Preserve contracts** — public API signatures, exports, and types must not change unless planned
4. **Leverage LSP** — use rename, find references, and diagnostics to validate
5. **Verify after each change** — `bun run typecheck` then `bun run test`

If the refactor touches 5+ files, stop and explain the plan first.
11 changes: 11 additions & 0 deletions apps/docs/.opencode/modes/review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Review Mode

You are in **code review mode**. Focus on:

1. **Read the changed files** — understand what the diff achieves
2. **Check for bugs** — edge cases, null safety, error paths, race conditions
3. **Verify patterns** — does the change follow existing codebase conventions?
4. **Security** — no secrets, no injection vectors, proper input validation
5. **Run verification** — `bun run typecheck && bun run test` before approving

Output a structured review: what's good, what needs changing, and why. Be specific with file paths and line suggestions.
73 changes: 73 additions & 0 deletions apps/docs/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Agent instructions for refract-docs

Refract-docs is the public documentation site for the Refract project — an open-source deterministic observation engine for public revision histories.

## Quick Start

```bash
npm install # Install dependencies
npm run build # Build static HTML — docs/ → dist/
npm run lint # Biome check
npm run test # Vitest (verifies docs compile)
```

## Tooling

- **Package manager:** npm
- **Linter/Formatter:** Biome
- **Tests:** Vitest
- **Pre-commit:** Husky runs Biome on staged files
- **CI:** ci.yml (main) + deploy.yml (GitHub Pages)
- **Commit style:** Conventional Commits

## Verification

```bash
npm run lint # Biome check
npm run test # Build verification
npm run build # Production build
```

## Repository structure

```
README.md # Landing page
AGENTS.md # This file
docs/
index.md # Homepage
quickstart.md # Quick start guide
concepts.md # Architecture concepts
schema.md # Event schema reference
cli.md # CLI command reference
sdk.md # SDK / package reference
boundary.md # What Refract is and is not
tutorials/
wikipedia-history.md # Tutorial: Track Wikipedia changes
fandom-canon.md # Tutorial: Track Fandom canon changes
citation-churn.md # Tutorial: Monitor citation churn
dispute-timeline.md # Tutorial: Build a dispute timeline
```

## Documentation principles

- **Tagline**: "Refract answers: 'What changed?'"
- **Boundary statement**: "Refract does not decide what is true. Refract makes visible how public knowledge changes."
- **Open source framing**: "What changed?" for what Refract does. "Not included: Domain-specific decision judgment." for what Refract excludes.
- **Tone**: technical, neutral, precise. No marketing language.
- **CLI examples**: always use `refract` as the command name (`wikihistory` works as a backward-compat alias).

## Copy conventions

- Use `Refract` (capital R) as the project name. Always use `Refract`, never `Varia`.
- Reference packages as `@refract-org/<name>`.
- Reference the CLI as `refract` (`wikihistory` works as a backward-compat alias).
- Use `refract` as the command name in all code examples.
- Describe Refract as a deterministic observation engine.
- L1/L2/L3 references are legacy — prefer "deterministic" / "observation layer".

## Build

```bash
node build.mjs # builds static HTML from docs/ → dist/
npm test # runs build (verifies docs compile without errors)
```
14 changes: 14 additions & 0 deletions apps/docs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Creative Commons Attribution 4.0 International (CC BY 4.0)

https://creativecommons.org/licenses/by/4.0/

You are free to:
- Share — copy and redistribute the material in any medium or format
- Adapt — remix, transform, and build upon the material for any purpose, even commercially

Under the following terms:
- Attribution — You must give appropriate credit, provide a link to the license,
and indicate if changes were made.

No additional restrictions — You may not apply legal terms or technological
measures that legally restrict others from doing anything the license permits.
36 changes: 36 additions & 0 deletions apps/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Refract Docs

Public documentation for [Refract](https://github.com/refract-org/refract), a deterministic observation engine for public revision histories.

---

**Live at:** [refract-org.github.io/refract-docs](https://refract-org.github.io/refract-docs/)

## Quick start

```bash
npx @refract-org/cli analyze "Earth" --depth brief
```

See [quickstart](https://refract-org.github.io/refract-docs/quickstart/) for a full walkthrough.

## Packages

| Package | Status | License | Description |
|---|---|---|---|
| `@refract-org/evidence-graph` | [![npm](https://img.shields.io/npm/v/@refract-org/evidence-graph)](https://www.npmjs.com/package/@refract-org/evidence-graph) | CC0-1.0 | Core types, schemas, BYO-inference boundaries |
| `@refract-org/ingestion` | [![npm](https://img.shields.io/npm/v/@refract-org/ingestion)](https://www.npmjs.com/package/@refract-org/ingestion) | AGPL-3.0 | Wikimedia API adapters |
| `@refract-org/analyzers` | [![npm](https://img.shields.io/npm/v/@refract-org/analyzers)](https://www.npmjs.com/package/@refract-org/analyzers) | AGPL-3.0 | Deterministic analyzers |
| `@refract-org/cli` | [![npm](https://img.shields.io/npm/v/@refract-org/cli)](https://www.npmjs.com/package/@refract-org/cli) | AGPL-3.0 | CLI tool (`refract` / `wikihistory`) |
| `@refract-org/mcp` | [![npm](https://img.shields.io/npm/v/@refract-org/mcp)](https://www.npmjs.com/package/@refract-org/mcp) | AGPL-3.0 | MCP tool definitions and server; the executable is `refract mcp` in `@refract-org/cli` |
| `@refract-org/eval` | [![npm](https://img.shields.io/npm/v/@refract-org/eval)](https://www.npmjs.com/package/@refract-org/eval) | AGPL-3.0 | Evaluation harness |
| `@refract-org/persistence` | Not published | AGPL-3.0 | SQLite storage |
| Observable recipe | — | — | [Copy-paste pattern](./docs/sdk.md#observable-framework-data-loader) for Observable Framework data loaders |

## Project status

Refract is actively developed by [NextConsensus](https://nextconsensus.com). As of 2026-09-29 every package above except `@refract-org/persistence` is on npm, and the CLI, 0.5.17, installs and runs.

## License

CC-BY-4.0
116 changes: 116 additions & 0 deletions apps/docs/assets/architecture-flow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading