Skip to content

docs: reorganize, rename and correct the documentation (ENG-1016) - #276

Merged
lg2m merged 8 commits into
mainfrom
docs/docs-cleanup
Oct 10, 2026
Merged

lg2m merged 8 commits into
mainfrom
docs/docs-cleanup

Conversation

@lg2m

@lg2m lg2m commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Linear: ENG-1016

What changed and why

A docs-wide cleanup, based on four parallel audits (design, plans/ledgers, ADRs, guide/runbooks), with every claim re-checked against the code and git log.

Organization and naming

  • New docs/research/. Dated research leaves design/, which is meant to describe the system as built. Files get undated names; each file's header keeps its snapshot date.
    • harness-scale-audit-2026-09-16 → harness-comparison
    • run-reliability-audit-2026-09-21 → run-reliability
    • onboarding-audit-2026-09-22 → onboarding
    • core-autonomy-audit-2026-09-28 → core-autonomy
    • goal-reference-survey-2026-09-28 → goal-pursuit
    • design/token-efficiency → research/token-efficiency
  • Plans now share their ledger's name:
    • speed-first-extensible-agent-harness.md → speed-first.md
    • terminal-bench-readiness.md → terminal-bench.md
  • Runbook rename: runbooks/progress-report.md → run-output-queries.md. The file holds session-store queries; it isn't a report.
  • New naming convention in docs/README.md: no dates or slice IDs in file names, and a plan and its ledger share one name.

Stale content removed

  • Side-questions plan deleted. It shipped as docs(plans): sequence side questions before the goals stack #262/feat(runtime): isolate durable side-question execution (SQ1) #266/feat(tui): add non-interrupting /btw side questions (SQ2) #270 but still said "Design only". Its contract moves to a new design/side-questions.md, written against side_questions.rs: context capture, the read-only allowlist, bounds, and durability.
  • Ledgers of closed plans deleted: delegated-approval, onboarding-ux, mcp-pinning, codex-device-auth, latest-models, harness-f25-empty-range. The F25 row moves into root.md. Receipts stay in Git history.
  • tui-redesign.md cut from 418 to 70 lines. It now covers only the open L4/U8 slices. The shipped spec is already in layout.md, transcript.md and theme.md.
  • About 30 ledger rows changed from In review to Shipped (sha), each checked against the commit on main: GE0, GE10, JV0–JV2, RR4.1–RR8.4, TE0, T2.1, U5–U7, D4a.1, D6a.1, F11, F23, F24.
  • Status blocks fixed for jev, token-efficiency and guide-expansion.
  • plans/README.md and progress/README.md rewritten so each plan and ledger is listed exactly once. Stale priorities are replaced (CX1–CX4, GE0, T15–T17 and TE1 had already shipped). Ownership rows for shipped work become pointers to design/.

ADRs

  • One index table. 0031–0056 were a bullet list, and a stray blank line broke 0030 out of the table. Titles now match each ADR's H1.
  • Gaps table for numbers with no file:
  • Supersession metadata added to 0003, 0028 and 0030 (status lines only). One broken link in ADR-0039 is fixed. ADR bodies are otherwise untouched.

Design docs corrected against the code

  • architecture.md:
    • The dependency graph was missing qq-harness and had the wrong qq-tui deps.
    • The src/ tree is now accurate.
    • The invented route sketch is replaced by the real POST /v1/<resource>/<verb> shape.
    • Rewritten in the present tense, and duplicated content is now links.
  • protocol.md:
    • Adds descriptor 13.
    • One accurate fixture statement replaces three stale ones (v32 is current).
    • The duplicated 29/30 text is merged, and 24/25 move into the history.
  • headless-contract.md: --allow-host added to the synopsis. The "Gaps" status table, whose rows had all shipped, folds into the contract.
  • product.md: said command names were "intentionally unspecified"; it now lists the real commands.
  • tools.md, theme.md, layout.md, providers.md: plan pointers, slice IDs and the build checklist removed. layout.md now states that Ultra shows one pane today.
  • jev.md: fixed findings are restated as current behavior. § Direction moves to plans/jev.md § Target design, so the content is kept but now lives in the plan, which owns intent.

Guide, runbooks, contributor docs

  • xtask/README.md: documents homebrew-formula and release --docs/--no-commit.
  • Perf runbook: the worker commands were broken. Workers refuse debug builds, and cargo xtask is a debug alias, so the runbook now uses cargo run --release -p xtask -- perf ….
  • local-dev.md and CONTRIBUTING.md: the real toolchain, and an accurate account of what CI runs.
  • Release runbook: the version sample uses placeholders.
  • Jev runbook: approval_delegate values now match the config enum, and limitations are stated as behavior.
  • Runbook H1s are consistent. website/README.md now defers to the website runbook.
  • Guide: side questions move next to run behavior; links to plans that will be deleted are replaced; --tui-qa-root PATH.
  • src/cli.rs (doc comments only): qq run help gains exit code 5, and config explain lists every field.

Verification

  • Link and anchor check across every tracked .md file (a local script in target/, not committed): 5 broken links on main, 0 on this branch.
  • cargo fmt --all -- --check and cargo clippy --workspace --all-targets --all-features -- -D warnings pass. cargo build passes.
  • cargo test --bin qq docs_truth: 23 passed.
  • cargo test -p qq-tui --features bench-support --test goldens: 6 passed (this checks the tui-qa.md GALLERY block).
  • cargo test --workspace: everything passed except one failure in qq-core, plan::tests::async_compilation_bounds_waiters_and_releases_cancelled_requests.
    • This branch changes only a comment in qq-core.
    • The test passed 5 of 5 times on its own, and the full qq-core suite rerun passed 913/913.
    • It asserts on the global COMPILE_SLOTS semaphore, so it looks like an existing load-dependent flake. Worth a separate issue.

For the lead

  • ADR statuses are unchanged. ADR-0050, 0054 and 0056 are still Proposed, but most of their work has shipped. Accepting them is your call, and each requires a second reviewer.
  • plans/jev.md § Target design is moved text. Review it as an addition to a Proposed plan.
  • Compatibility: docs and doc comments only. No protocol, schema or behavior change.

lg2m added 7 commits October 9, 2026 15:14
…their ledgers

Research snapshots leave design/ (which is present-tense, as built) for
docs/research/ with undated names; the snapshot date stays in each header.
speed-first and terminal-bench plans now share their ledger's name, and the
progress-report runbook is named for what it is: run-output store queries.
Also repairs the two broken links (ADR-0039, concepts.md).
…tuses with Git

- side-questions plan shipped (SQ0-SQ2, #262/#266/#270): its contract moves
  to design/side-questions.md, written against side_questions.rs.
- Delete ledgers whose plans closed (delegated-approval, onboarding-ux,
  mcp-pinning, codex-device-auth, latest-models, harness-f25-empty-range);
  F25 folds into root.md. Receipts remain in Git history.
- Mark ledger rows Shipped where the commit is on main (GE0, GE10, JV0-JV2,
  RR4.1-RR8.4, TE0, T2.1, U5-U7, D4a.1, D6a.1, F11, F23, F24).
- Collapse tui-redesign to its open L4/U8 slices; the shipped spec is in
  layout.md, transcript.md and theme.md.
- Rewrite plans/README.md and progress/README.md: every plan and ledger
  listed once, stale priorities (CX1-CX4, GE0, T15-T17, TE1) replaced,
  ownership rows for shipped work moved to design pointers.
- docs/README.md gains a research section and a naming convention.
… and unused numbers

- 0031-0056 move from a bullet list into the table; titles match each H1.
- A gaps table records 0016-0018, 0037 and 0055 as reserved and 0029,
  0044/0045 (#187 closed unmerged) and 0053 as unused; root.md agrees.
- Supersession metadata on 0003, 0028 and 0030 (status lines only).
- root.md: 0028 and 0031-0035 are merged, not local candidates.
- architecture.md: real dependency graph (qq-harness; qq-tui -> qq-core),
  real src/ tree, real route shape instead of an invented sketch; present
  tense throughout; tool list, hosting boundary and TUI detail deduplicated
  to links; task-routing section moved out of Intentionally Deferred.
- protocol.md: descriptor 13; one accurate fixture statement (v32 current,
  v17-v31 decode-only); 29/30 deduplicated; 24/25 moved into the history.
- headless-contract.md: --allow-host in the synopsis; the shipped-gaps
  status table folds into the contract (Supervisor Boundary Notes; ADR
  0014/0022/0023 links follow).
- product.md: the real command list; scope restated as present.
- tools.md, theme.md, layout.md, providers.md: plan pointers, slice IDs and
  build checklists removed; layout states that Ultra shows one pane today.
- jev.md: fixed findings restated as behavior; the Direction section moves
  to plans/jev.md § Target design (the plan owns intent).
…the code

- xtask README: homebrew-formula, release --docs/--no-commit; perf workers
  are release-only on Linux, so perf-recording uses cargo run --release.
- local-dev/CONTRIBUTING: the real toolchain and what CI actually runs.
- release.md: version sample uses placeholders instead of stale numbers.
- jev runbook: approval_delegate values match config; limitations stated
  as behavior, without slice IDs; JV2's fixed headless limitation removed.
- Runbook H1s consistent; run-output-queries not Nix- or Linux-only.
- website/README defers to the website runbook; arms/perf READMEs fixed.
- guide: side questions sit with run behavior; mortal plan links replaced;
  cli --tui-qa-root PATH; README lists concepts.
- cli.rs help: qq run exit code 5; config explain lists every field.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

The site's heading slugs drop the trailing hyphen GitHub would keep for
`qq jev …`; the original anchor was right and the website link check
failed on the changed one.
@lg2m
lg2m merged commit f5dbf22 into main Oct 10, 2026
6 checks passed
@lg2m
lg2m deleted the docs/docs-cleanup branch October 10, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant