Documentation ownership (rules/documents.md)

August 25, 2026 · View on GitHub

Binding for contributors and agents. Loaded via AGENTS.md.

Rule

Every user-visible change updates its owning doc in the same PR. If nothing user-facing changed, write a one-line N/A reason in the PR body (docs: N/A — <why>). Skipping both the update and the N/A reason means the feature is incomplete.

Owning-doc map

Change surfaceOwning doc(s)
Product story, install, quick start, high-level “what ships”README.md
Commands, TUI keys, daemon/dashboard, scheduling policy, Codex backend behaviordocs/operational-reference.md
Config file keys, proxy/scheduler/routing/account typesdocs/configuration.md
Context-window / common usage Q&Adocs/faq.md
Model catalog / aliases / max_contextdocs/models.md
Islands menu-bar app behaviordocs/llmux-islands.md
Captured Claude Code / multi-model system prompt wire textdocs/system-prompts/ — especially samples/; never replace real samples with meta-only prose
Product/architecture decisions (not how-to).prd/
Grok provider STV design notesdocs/grok/ (design artifact; not a user how-to)
OpenRouter provider STV design notesdocs/openrouter/ (design artifact; not a user how-to)
Agent architecture rules / conventions / runbooksAGENTS.md

When unsure, update the narrowest row that a new user would open to understand the change. Prefer one owning doc over shotgun edits.

Same-PR checklist (docs-impact)

  1. Classify the change against the map above (or mark N/A).
  2. Edit the owning doc so it matches shipped behavior (commands, flags, routes, surfaces).
  3. Index — if you added a new guide, link it from docs/README.md (and root README Docs section only if it is a primary entry point).
  4. Samples — if the Claude Code / multi-model prompt surface changed, re-capture or note the drift under docs/system-prompts/; do not invent prompt text.
  5. Links — open every path you touched; no broken relative links.
  6. PR body — either list docs files updated, or docs: N/A — ….

Explicit non-goals

  • No requirement to rewrite product README voice for every internal refactor.
  • No full re-dump of raw-io secrets into samples/.
  • No “docs later” follow-up issues as a substitute for the same-PR rule.

Mechanical enforcement (future)

P1 / out of this rule’s initial ship: fail or warn in just check when src/ diff is non-empty and no docs/ / README / AGENTS / rules path changed without a docs: N/A trailer. Until then, this file + review is the gate.