Documentation source-of-truth scope. Extends root AGENTS.md.
Applies to all markdown and reference assets under docs/.
- Treat implementation code as source of truth before editing docs:
- CLI commands/flags:
src/cli/args.ts - Tool inventory:
src/tools/index.ts - Relay/ops surfaces:
extension/src/ops/ops-runtime.ts,src/relay/protocol.ts - Canvas/session/code-sync surface:
src/browser/canvas-manager.ts,src/canvas/repo-store.ts,extension/src/canvas/canvas-runtime.ts - Website ownership/sync contract:
docs/FRONTEND.mdand private repoopendevbrowser-website-deploy/frontend/src/**
- CLI commands/flags:
- Keep public docs concise and operational; avoid speculative claims.
- If numbers (commands/tools/coverage) are mentioned, verify from code or generated artifacts in the same pass.
- Prefer adding status context (for example
active,historical) over deleting useful historical design docs.
When command/tool/channel surface changes:
docs/CLI.mddocs/SURFACE_REFERENCE.mddocs/ARCHITECTURE.mdREADME.md- relevant
AGENTS.mdfiles
When canvas session/code-sync/projection behavior changes:
docs/CLI.mddocs/SURFACE_REFERENCE.mddocs/ARCHITECTURE.mddocs/EXTENSION.mddocs/TROUBLESHOOTING.md- relevant
AGENTS.mdfiles undersrc/,src/browser/,src/canvas/, andextension/
When extension behavior changes:
docs/EXTENSION.mddocs/TROUBLESHOOTING.mddocs/privacy.md(if permissions/data-handling claims change)docs/EXTENSION_RELEASE_RUNBOOK.md
When release-gate automation changes:
docs/RELEASE_RUNBOOK.mddocs/DISTRIBUTION_PLAN.md- the current version-scoped release evidence doc (for this release:
docs/RELEASE_0.0.17_EVIDENCE.md) - automation scripts:
scripts/audit-zombie-files.mjsscripts/docs-drift-check.mjsscripts/chrome-store-compliance-check.mjs
When mirrored website inputs change (docs/, skills/, assets/, CHANGELOG.md, src/tools/index.ts):
- dispatch private sync via
.github/workflows/dispatch-private-sync.yml - validate private website generation/build:
npm run sync:assets --prefix frontendnpm run generate:docs --prefix frontendnpm run lint --prefix frontendnpm run typecheck --prefix frontendnpm run build --prefix frontend
- Do not keep stale numeric claims when source has changed.
- Do not document unsupported flags/commands.
- Do not imply public-repo ownership of
frontend/; website source is private. - Do not over-claim
bound_app_runtime;canvas_htmlremains the default preview/export contract unless the binding opts in and runtime instrumentation exists. - Do not edit private generated frontend docs JSON by hand when the source is in
docs/,CHANGELOG.md, orskills/*/SKILL.md.