Repository navigation
Description
Context
docs/plans/README.md:3-11,36 says a plan is design for work "not built yet". Once it ships, "the durable half moves to ../decisions/ and the rest is deleted", and "Anything already built … this is the wrong directory". The directory now holds 11 plans and 2 executable experiments. The issues behind six of the plans are all closed:
| Plan | Driving issues (all closed) | Existing decision record |
|---|---|---|
policy-write-boundary.md |
#672, #674, #676 | docs/decisions/policy-write-boundary.md |
navigation-recovery.md |
#942, #943, #929 | none |
voice-conversation.md |
#316, #317 | partly docs/decisions/live-conversation.md, dictation-speech.md |
storage-accounting.md |
#1779, #1780 | docs/decisions/storage-guidance.md, design-kit/storage.md |
storage-growth.md |
#1779, #2013 | as above |
storage-lifecycle.md |
#1779, #1781 | as above |
Still unbuilt, so they stay: async-collaboration.md and async-collaboration-requirements.md (#51 open), host-owned-web-search.md (#1863 open) and module-renderers.md (#2079 open).
index-query-api.md is not retired here, although #540 and #911 are closed. It still records the outstanding SQL-contract transition (docs/plans/index-query-api.md:243, :353), and the decision record keeps the direct-SQL promises binding until #701 (docs/decisions/index-query-api.md:208-209). #701 is the sole owner of its retirement, including its scripts/check-citations.ts allowlist keys (:414-427).
docs/plans/storage-accounting-experiment.py and docs/plans/storage-growth-experiment.ts are executable experiments under docs/. They sit outside the TypeScript and oxlint roots, while other experiments live under experiments/.
Readers cannot tell shipped design from pending design, so every agent that reads docs/plans/ has to work out which plans are still true. That is the problem the README rule exists to prevent.
ls docs/plans
for n in 540 911 672 942 943 316 317 1779 2013; do gh issue view $n -R schlessera/brain-kit --json state -q .state; doneDecision (maintainer, 2026-10-22)
Option A selected: integrate still-binding material from retired plans into the existing related decision records, using dated append-only additions and accurate historical/source links. Create a focused navigation-recovery record only for durable rulings that have no existing home. Do not create one duplicate record per plan or rely solely on buried Git-history pointers for current guidance.
This is organization/preservation work: do not change the substance of any ruling, rewrite original evidence, infer delivery from closed issue state, or delete material still required by unbuilt work. Preserve immutable historical links and use the existing measurement-archive policy for finished experiments.
Scope
- Audit the six named plans against actual delivered source, later rulings and remaining open work. For each genuinely retired plan, map its still-binding content to the related existing decision records above, add any missing durable material with dated provenance, and then remove the plan. Keep the four explicitly unbuilt plans intact; if another named plan still contains required unbuilt design, retain it and report the precise evidence rather than deleting it based on closed issues alone.
- Repoint inbound links to the removed plans:
docs/decisions/*pointers;website/retired-docs.jsonentries so published URLs redirect; anyscripts/check-citations.tsallowlist keys for a removed plan. - Classify the two experiment scripts under
docs/against current consumers and the measurement-archive ruling. Keep active executable inputs/goldens in the main tree under the appropriateexperiments/location with references repaired; archive genuinely finished historical experiments with exact-commit links, provenance and checksums. Do not make tests fetch archives or replace an original measurement with a rerun. Update commands in surviving docs. - Update the plan table in
docs/plans/README.md.
The destination choice is settled above. Existing records receive append-only organizational additions; only durable navigation material lacking a home warrants a focused new record. Any contradictory substantive ruling remains outside this task and must be reported rather than resolved by editorial rewrite.
Out of scope
- Rewriting or trimming the four plans for unbuilt work.
- Retiring
docs/plans/index-query-api.mdor its citation-allowlist keys (docs: retire direct brain.db SQL guarantees after query migration #701). Neither issue closes because the other's documentation work lands. - Changing any decision's substance. Text moves, rulings do not.
docs/process/anddocs/investigations/.
Acceptance criteria
-
docs/plans/contains only README,index-query-api.md(still owned by docs: retire direct brain.db SQL guarantees after query migration #701) and genuinely unbuilt design with its remaining open work identified. Each remaining plan’s README row links its owning issue/epic. PR evidence distinguishes actual shipped content from closure-only assumptions. - No
.pyor.tsfile remains underdocs/. - A per-plan preservation mapping names every removed plan’s destination record and immutable historical evidence, or explains that it contained no durable ruling. Existing decisions/measurements remain intact; no duplicated current guidance or invented ruling is introduced.
-
tests/decision-citations.test.ts,scripts/check-citations.tsand the website link checks pass. Every removed path has awebsite/retired-docs.jsonentry.
Verification
bun run test tests/decision-citations.test.ts
bun scripts/check-citations.ts
bun run lint
bun run check:pr --base origin/mainContract impact
None. Documentation only.
Found by a repository review on 2026-10-22.
Decision processing — 2026-10-22
Selected A: existing decision records are the default home, with a focused navigation record only when needed. Preserve original evidence/rulings and archive experiments under the existing policy. Remove needs: decision and add agent-ready, retaining type docs, area docs, priority p3, parent, assignment and release attribution. No document/script move, archive publication, code change or verification run is claimed.
2026-10-24: excluded docs/plans/index-query-api.md from this retirement; #701 owns it because the SQL-contract transition it records is still open.
Activity
schlessera commentedon Oct 21, 2026
2026-10-22 triage at main
ca8842828ed8634a84c4e8aa4a88e487238721b4: Added a separate unapproved recommendation and tradeoffs to the current decision brief; no ruling or implementation is inferred.schlessera commentedon Oct 22, 2026
Decision (maintainer, 2026-10-22): Option A.
Integrate still-binding material into existing related decision records with dated append-only additions and immutable historical links; create a focused navigation record only where a durable ruling lacks a home. Preserve substantive rulings and original measurements. Verify actual delivery before retiring a plan, keep unbuilt design intact, repair links/redirects/citations and handle experiments under the existing measurement-archive policy.
The body now specifies destinations, preservation mapping and verification. Remove
needs: decisionand addagent-ready, preserving other metadata. No documentation move, archive write or new verification result is claimed.[-]docs: docs/plans keeps seven plans for shipped work and two executable experiments, against its own README rule[/-][+]docs: docs/plans keeps six plans for shipped work and two executable experiments, against its own README rule[/+]schlessera commentedon Nov 2, 2026
Claiming for implementation (token
claim-1793663172-c09e), together with #2511 and #2512 in one PR on branchdocs/relocate-plans-and-evidence, targeting the epic integration branchepic/2542-dead-code. Collision check: path overlap ondocs/plans/*with open PRs #3316, #3342, #3343, #3371, #3386, #3390 (citation-line updates inside plans) and #3391 (docs/plans/README.md); closure-only reports otherwise.docs: retire shipped plans and archive unreferenced experiments and e…
schlessera commentedon Nov 3, 2026
Delivered to
epic/2542-dead-codeasb29668b29via #3400, after ready-candidate proof passed on the exact epic base. This issue closes when the epic batch lands on main.schlessera commentedon Nov 6, 2026
Re-verified at main
223ca157a(2026-11-06): the #3564 epic batch (28c5af58b) brought backdocs/plans/navigation-recovery.md, which #3400 had removed. #3651 deletes it again onepic/2542-dead-code. Nothing else #3400 delivered regressed. A plan added later,eleven-realtime-evaluation.md, lost its open owner when #3100 closed; it is outside this issue's six and is filed as #3650.docs: retire docs/plans/navigation-recovery.md again (#2511) (#3651)
Merge pull request #3654 from schlessera/epic/2542-dead-code