Repository navigation
Description
Problem Statement
Every agent that starts work in OpenWiz reads a lot before it writes a line. The repository holds 41,798 lines of Markdown in 609 files. AGENTS.md alone is 123 lines, and much of it repeats rules that a skill or a check already enforces. Status, evidence, spikes, live-check notes and old decisions sit beside the docs an agent actually needs, and some docs and code comments still teach patterns the project has since rejected. Every one of those tokens comes out of the agent's context budget, and the more an agent loads, the worse it works.
Solution
OpenWiz keeps only the docs an agent or a user reads to do work, written to carry the most information in the fewest tokens:
- AGENTS.md, under 60 lines: what OpenWiz is, where things are, the one test command, and pointers to the skills.
- README, GLOSSARY, the kept contracts,
docs/agents/settings, and the kernel's records description once it exists.
Everything else leaves the public repository. STATUS.md goes, because the app and the spec pages show status. Evidence, spikes, live-check notes and old decisions move to the private records or are deleted, and one table says where each went. ADRs stay only when a decision is non-obvious, a real trade-off and hard to reverse. Docs and code comments that teach old or rejected patterns are fixed or removed.
Success is measured: the tokens an agent loads at the start of a typical ticket, before and after, plus the count of Markdown lines, shown beside the code cleanup's before and after.
Changelog headline
none
User Stories
- As an agent starting a ticket, I want AGENTS.md to tell me in under 60 lines what OpenWiz is, where things are and how to test, so that my context goes to the work.
- As an agent, I want no rule in AGENTS.md that a skill or a check already enforces, so that I don't read the same instruction twice.
- As an agent, I want the GLOSSARY kept and current, so that short, jargon-rich instructions still mean one thing.
- As an agent, I want no doc or comment that teaches a pattern the project rejected, so that I never copy it.
- As an agent, I want every kept contract to be one the code still follows, so that what I read is what runs.
- As a user, I want the README to say what OpenWiz is and how to start, briefly, so that I'm not lost in internals.
- As the owner, I want STATUS.md gone, with status read from the app and the spec pages, so that no file goes stale.
- As the owner, I want evidence, spikes, live-check notes and old decisions moved to the private records or deleted, so that the public repository holds only working docs.
- As the owner, I want one where-it-went table, so that anything moved or deleted can be found again.
- As the owner, I want an ADR only where a decision is non-obvious, a real trade-off and hard to reverse, so that the ADRs that remain matter.
- As the owner, I want the tokens an agent loads at ticket start measured before and after, and the Markdown line count, so that I can see the cleanup worked.
- As a maintainer, I want no broken links after the move, so that kept docs still lead somewhere real.
Implementation Decisions
- What stays: AGENTS.md, README, GLOSSARY, CHANGELOG (a release artifact), the contracts the code still follows,
docs/agents/(settings the skills read), and the kernel's records description when that spec lands. Each kept file is rewritten for the fewest tokens: no history, no repeated rules, no "updated for" notes. - What goes or moves: STATUS.md, CONTRIBUTING and RELEASING fold into README or AGENTS.md where a line is still needed, or go.
docs/evidence/,docs/spikes/,docs/live-checks/,docs/decisions/and similar notes move to the private records repository or are deleted. Tool and test READMEs shrink to what a reader needs to run them, or go when the code says it. - A first table, read before deleting. One table lists every Markdown file and doc-like comment block as keep, rewrite, move (and where) or delete, with the reason. The owner reads it before anything is deleted, as in the code cleanup.
- ADRs: kept only by the three tests (non-obvious, a real trade-off, hard to reverse). The rest move to the private records.
- Old patterns: any doc or comment that teaches a rejected pattern (named by the project's decisions) is fixed or removed in the same pass. Comments that only repeat the code are out of scope unless they teach something wrong.
- The score: the WizSkills measurement harness counts tokens loaded at the start of one representative ticket (AGENTS.md, the docs it points to, and the settings the skills read), before and after, plus a Markdown line count. Unknown stays unknown.
- Order. Where files overlap, this waits for the code cleanup's last sweep (Infra spec: Cleanup wave 1: fewer tests, no dead scaffolding, short-lived agents #1141's CW19). The app spec's deletion (0.1.0 spec: The OpenWiz app, v1 (viewer) #1223's AP11) later edits only lines that still exist after this pass.
Testing Decisions
A good test here checks what a reader gets, never how the docs are laid out.
- Links: the repository's existing link check passes with no broken links after the move.
- The table: every Markdown file appears in exactly one row, and every delete or move row is gone from the tree.
- The score: the harness's before and after runs on the same representative ticket.
- Nothing breaks: CI stays green; no skill or script reads a deleted path.
Proof
| Claim | Evidence |
|---|---|
| D1 AGENTS.md is under 60 lines and repeats no enforced rule | line count, and a reviewer's read against the skills and checks |
| D2 every Markdown file is kept, rewritten, moved or deleted by one table the owner read | the table checked against the tree |
| D3 tokens at ticket start and Markdown lines went down | the harness's before and after, and the line counts |
| D4 nothing links to a removed file | the link check |
| D5 no kept doc or comment teaches a rejected pattern | a reviewer's sweep against the project's decisions |
Out of Scope
- Rewriting the skills (WizSkills 0.2.0 does that).
- Deleting code comments that are merely redundant but not wrong.
- The kernel's records description itself (its own spec, deferred).
- Docs in other repositories.
Further Notes
From the confirmed docs-cleanup grill (DC1 to DC3; private record on ClosedWiz), with Matt Pocock's guidance on agent docs: keep the glossary, ADRs only by three tests, and remove docs that teach rejected patterns.
Activity
jparker2006 commentedon Nov 19, 2026
{ "schema": "openwiz.decisions.v1", "kind": "spec_confirmation", "id": "spec-1293-confirm-1", "status": "resolved", "fingerprint": "23a7587372af98f041cb0d60a4660836af84f5567bedc801bfaa7a7d55c7bc00", "risk": "ordinary", "spec": 1293, "summary": [ "Keep only what agents or users read to work: AGENTS.md under 60 lines, README, GLOSSARY, kept contracts, docs/agents, CHANGELOG, and the kernel records description once it exists.", "AGENTS.md says what OpenWiz is, where things are, the test command and pointers to skills; no rule a skill or check already enforces.", "STATUS.md goes; evidence, spikes, live-check notes and old decisions move to the private records or go, with one where-it-went table.", "ADRs stay only when non-obvious, a real trade-off and hard to reverse.", "Docs and comments that teach rejected patterns are fixed or removed.", "A keep, rewrite, move or delete table comes first, and the owner reads it before anything is deleted.", "Score: tokens an agent loads at ticket start, before and after, plus Markdown lines (today 41,798 in 609 files).", "Waits for the code cleanup's last sweep where files overlap." ], "headline": "none", "tickets": [], "graph": [] }jparker2006 commentedon Nov 19, 2026
Spec confirmed by Jake, 2026-11-19: Jake confirmed this docs cleanup with the tool READMEs and contracts in scope: keep only what agents and users read to work, each in the fewest tokens, with a keep, rewrite, move or delete table first and the tokens an agent loads at ticket start measured before and after.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7003293408
Next: its tickets and plan graph, for Jake's approval.
jparker2006 commentedon Nov 19, 2026
Plan graph written, for Jake's approval (J157), after his spec confirm. Approving starts every ticket as soon as its blockers have merged, each merging by the project's merge rules. Builders Claude Code Opus 5.5 Medium, reviewers Codex Sol 6.2 Medium, no helper agents.
DS1 writes the table and the before score; Jake's DS2 reads it and says go; DS3 to DS7 do the table by area (top level,
docs/, tool READMEs, contracts, tests and settings prose) with disjoint owned paths; DS8 measures the after score, sweeps rejected patterns and checks links. The contract-first ticket is DS1: the table every other ticket follows.Longest chain: 3 links (DS1, DS2, DS5 or DS6, DS8). Can start at approval: 1 of 8 (DS1).
File links: DS5, DS6 and DS7 wait for the cleanup wave's last sweep (#1160), which edits the same
tools/,contracts/andtests/Markdown.Three questions: is each ticket the right size, are the arrows right, and is anything to merge or split?
jparker2006 commentedon Nov 19, 2026
{ "schema": "openwiz.decisions.v1", "kind": "plan_approval", "id": "plan-1293-rev1-1", "status": "resolved", "fingerprint": "4df9f1d4fd5fd36391fc30db751501af8fc9ba94a00d25570aacfcaf4d89fe87", "risk": "ordinary", "spec": 1293, "summary": [ "8 tickets: DS1 the docs table and the before score first; DS2 Jake reads it and says go.", "DS3 top level (AGENTS under 60 lines, README, GLOSSARY, STATUS gone); DS4 docs/ moves or goes; DS5 tool READMEs; DS6 contracts; DS7 test notes and docs/agents prose.", "DS8 the after score, the rejected-pattern sweep and the link check.", "DS5 to DS7 wait for the cleanup wave's last sweep where files overlap; longest chain 3 links." ], "headline": "none", "tickets": [ { "number": 1299, "title": "Infra DS1: the docs table and the before score, first", "blockers": [] }, { "number": 1300, "title": "Infra DS2: Jake reads the docs table and says go", "blockers": [ 1299 ] }, { "number": 1301, "title": "Infra DS3: the top level: AGENTS.md under 60 lines, README, GLOSSARY, STATUS gone", "blockers": [ 1300 ] }, { "number": 1302, "title": "Infra DS4: docs/: evidence, spikes, live checks, decisions and ADRs move or go", "blockers": [ 1300 ] }, { "number": 1303, "title": "Infra DS5: tool READMEs shrink to what a reader needs, or go", "blockers": [ 1160, 1300 ] }, { "number": 1304, "title": "Infra DS6: contracts: keep only what the code follows, in the fewest tokens", "blockers": [ 1160, 1300 ] }, { "number": 1305, "title": "Infra DS7: test notes and docs/agents trimmed", "blockers": [ 1160, 1300 ] }, { "number": 1306, "title": "Infra DS8: the after score, the rejected-pattern sweep and the where-it-went table", "blockers": [ 1301, 1302, 1303, 1304, 1305 ] } ], "graph": [ { "blocker": 1299, "ticket": 1300 }, { "blocker": 1300, "ticket": 1301 }, { "blocker": 1300, "ticket": 1302 }, { "blocker": 1160, "ticket": 1303 }, { "blocker": 1300, "ticket": 1303 }, { "blocker": 1160, "ticket": 1304 }, { "blocker": 1300, "ticket": 1304 }, { "blocker": 1160, "ticket": 1305 }, { "blocker": 1300, "ticket": 1305 }, { "blocker": 1301, "ticket": 1306 }, { "blocker": 1302, "ticket": 1306 }, { "blocker": 1303, "ticket": 1306 }, { "blocker": 1304, "ticket": 1306 }, { "blocker": 1305, "ticket": 1306 } ] }jparker2006 commentedon Nov 19, 2026
Plan graph approved by Jake, 2026-11-19, revision 2: Jake approved revision 1 (fingerprint
66584366…afd3e) with one change for timing: DS3 to DS7 also wait for #1223's AP11 (#1264, the old web view's deletion), as they already wait for #1141's last sweep, so no doc is rewritten for code about to go. DS1's table and the before score start now.Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7003994752
Changed since revision 1: a native blocker #1264 on DS3 to DS7 (#1301 to #1305), each with its reason line. Nothing else.
Fingerprint:
cc1674e28e0f8b17efd865783ac114e67226146ce1f9ffaa5651c86a520b069dRevision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: fleet active, loop fleet-1293
Wake mode: fresh
jparker2006 commentedon Nov 19, 2026
Plan graph approved by Jake, 2026-11-19, revision 3: Jake said go on DS1's table (DS2) and asked for more ambition on what an agent must read at ticket start (J215, then revised to no fixed number): required reading becomes AGENTS.md and GLOSSARY only, every section must justify itself, STATUS.md and the full open development contract leave required reading, fleet.md shrinks to a builder's settings and helpers.md goes. DS8 reports the before and after honestly with no threshold. Acceptance lines only; no link changed.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7006653206
Changed since revision 2: one acceptance line each on DS3 (#1301), DS7 (#1305) and DS8 (#1306). DS2 (#1300) is done.
Fingerprint:
f588d4765aea1638cb3ac9732e1651d5d8efc0b84f2073683c13178b577d6e73Revision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: replacement fleet is carrying spec #1293. Kept the recorded builder, reviewer, and loop claims. DS1 #1299 and DS2 #1300 are closed completed. DS3 to DS7 stay blocked on open #1264. #1160 is closed completed, so it no longer blocks DS5 to DS7 by itself. No second start, send, or merge.
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: replacement fleet (J224, Claude Code Opus 5.5 Medium) is carrying spec #1293. Same loop, no second loop; the recorded builder, reviewer and loop claims are kept. DS1 #1299 is merged (#1321) and archived, and DS2 #1300 is complete. DS3 to DS7 (#1301 to #1305) still wait on open #1264, and DS8 #1306 waits on DS3 to DS7. No review is open or stalled, and no PR has merged on a same-family review. Nothing started, sent or merged in this pass.
jparker2006 commentedon Nov 20, 2026
launch-fleet: spec summary
Every planned ticket in spec #1293 is done.
Live check: none required (the spec's Testing Decisions are links, the docs table, the before and after score and green CI).
Lead time: spec confirmed 2026-11-19 08:01:19Z (comment 7003313737) to the last ticket merge 2026-11-20 06:53:53Z (#1738): 22 h 52 min 34 s.
Open follow-ups (polish, never block the spec): #1330, #1665, #1723, #1726.
jparker2006 commentedon Nov 20, 2026
launch-fleet: spec closed: all eight planned tickets are done (#1299–#1306, each closed by a merged PR; #1300 completed by Jake). Summary and lead time: #1293 (comment). Follow-ups #1330, #1625, #1665, #1723–#1726 stay open as polish or triage.