Repository navigation
Description
Problem Statement
OpenWiz is meant to be a small kernel: the records, the four driver words, the test kits, the drivers, the openwiz command and the app. The repository is still about 322,000 lines, most of it tools, tests and fixtures for parts that left (the war room, old CI machinery, measuring kits) or tests that protect no path a user takes. A newcomer, or an agent starting a ticket, has to read past all of it to find the kernel, and every CI run pays for it.
Solution
Cut everything that is not the kernel, the drivers, the openwiz command or the app. Tools that are still used move to their own repository (the war room's collector goes to WizRoom); the rest are deleted. Keep only the tests that protect a real user path, and delete the rest, fixtures included. CI stays green after every deletion, and nothing public loses a documented feature without a changelog line.
BEFORE (counted with the cleanup-measure count.sh, tracked text lines): 322,541 lines in 1,978 files at 8880e7b. Target: under 250,000. The AFTER count closes the spec.
Changelog headline
none
User Stories
- As a newcomer to OpenWiz, I want the repository to hold only the kernel, the drivers, the
openwizcommand and the app, so that I can read what it is in one sitting. - As an agent starting a ticket, I want fewer files outside the kernel, so that I find the right code fast and spend less context on dead parts.
- As the owner, I want OpenWiz under 250,000 lines, measured before and after with the same count, so that I can see the cut is real.
- As the owner, I want the war room to keep publishing every hour from WizRoom after its code leaves OpenWiz, so that nothing I use breaks.
- As a user installing OpenWiz, I want every install,
openwizcommand, driver and kit path to keep its tests, so that the cut never breaks what I run. - As a contributor, I want CI green after every deletion, so that main is never red because of this wave.
- As a reader of the changelog, I want a line for any documented feature that goes away, so that nothing public disappears silently.
- As the 0.1.0 release, I want every file on the 0.1.0 must list left alone until Friday 11-20 12:00 PM PST, so that the launch is not put at risk.
Implementation Decisions
- What stays (the keep list): the kernel (records, the driver contract and the two test kits), the drivers, the
openwizcommand and the Rust crates it is built from, the installer and the skills installer that put it on a user's machine, the release tooling, the privacy check and the pre-push hook, the owned-paths CI gate, the agent settings (docs/agents/), ADRs, the install guide, the changelog and its lines. Everything else is cut or moved. - Moved, because still used: the war-room collector moves to WizRoom, which already serves the war room and today reads the collector from a pinned OpenWiz commit. Deleting it from OpenWiz main does not break WizRoom (the pin stays an ancestor of main); WizRoom then carries its own copy so later pin moves never need it.
- Deleted: the war-room copy, the stall alarm, the board and war-room workflows (all disabled or already replaced by WizRoom), the selector-escapes stack, old CI machinery (main batches, shards, hosted runner helpers and the like) once CI no longer calls it, the test-value kit, the fleet-load, open-import, roadmap and CI-overload tools, contracts and schemas no kept part reads, old evidence and cleanup records, and the frozen 0.0.0 documents (they stay in Git history).
- Tests (CW3-2 A): a test stays only if it protects a real user path: installing, an
openwizcommand, a driver, a kit, the release package, or the privacy check. Tests of removed parts, tests of internal machinery no user reaches, source-mirroring and wording tests are deleted, with their fixtures. Each deleting pull request lists the deleted test folders with one line each: the behaviour is gone, or it protected no user path. - Off-limits until Friday 11-20 12:00 PM PST (CW3-3 A): every file an open ticket of 0.1.0 spec: The kernel: records v1, drivers for any host, and bots as orchestrators #1365, 0.1.0 spec: Onboarding: one line, your own first build, a teacher all the way #1356, 0.1.0 spec: The OpenWiz app, v1 (viewer) #1223 or Infra spec: WizSkills 0.2.0: 18 short skills, mechanics in tested scripts #1164 owns, RL1-RL5 (0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671, 0.1.0 RL2: openwiz.dev's install box goes live after 0.1.0 publishes #1674, 0.1.0 RL3: the launch video's 60-second demo cut: install, first grill, a fleet on boat.dev #1677, 0.1.0 RL4: the release package carries the drivers 0.1.0 launches with #1699, 0.1.0 RL5: the live smoke kit matches the shipped commands (no send or new; driver steps instead) #1727) and their files, all of
tools/release/and all ofadapters/. Named in each ticket. Wave 2's open tickets (Infra CW2-1: the rest of tools/test-value/evidence moves to the private record #1484, Infra CW2-5: OpenWiz repoints its skills-eval readers and deletes its copy #1489) keep their paths too; where a wave 3 ticket removes a file they planned to edit, it says so on that ticket. - CI green: each pull request removes the workflow steps, CI rows and test targets that named what it deletes, in the same change. The required checks (
ci,privacy,web-test) keep their names. - Changelog: infra, tests, docs and tool removals use the
no-changeloglabel. A ticket that removes something a public doc presents to users (the README, the install guide, the changelog) adds oneremovedline inchanges/<ticket>.md, after asking on the ticket for its version. - Models (J255): builders Claude Code Opus 5.5 Medium, reviewers Codex Sol 6.2 Medium. Reviews block only real-user breakage: a finding that breaks no install, command, driver, kit, release or CI path is low and never blocks a deletion.
Testing Decisions
- The seam is CI on each pull request plus the line count. A good check here is outside-in: the full required CI set passes after the deletion, and a repository search finds no live reference to a deleted path (historical records named in the pull request excepted).
- No new tests are written for deletions. A deleted test names its keeper, or says the behaviour it protected is gone or was never on a user path.
- Prior art: cleanup waves 1 and 2 (Infra spec: Cleanup wave 1: fewer tests, no dead scaffolding, short-lived agents #1141, Infra spec: Cleanup wave 2: the kernel the smallest thing in the repo #1388) deleted the same way, with a keep, fold, move or delete line per folder.
Proof
| Claim | Evidence |
|---|---|
| P1 OpenWiz is under 250,000 lines | The AFTER count with the same count.sh, on the final main, against the BEFORE above |
| P2 CI is green after every deletion | Each pull request's required checks, and main's CI after each merge |
| P3 No real user path lost its tests | Each pull request's deleted-test list, checked by its reviewer |
| P4 The war room still publishes | WizRoom's hourly publish succeeds after the collector leaves OpenWiz |
| P5 The 0.1.0 list was untouched before Friday noon | No merged diff of this spec before 2026-11-20 20:00 UTC touches a protected path |
Out of Scope
- Rewriting or shrinking the Rust product code of the
openwizcommand, the kernel or the drivers. - Anything in WizSkills, WizSite, WizLoops or WizPlugins, except where a moved tool lands in WizRoom.
- The files of the 0.1.0 must list before Friday 11-20 12:00 PM PST, and wave 2's own tickets.
Further Notes
Jake's rulings CW3-1 A, CW3-2 A, CW3-3 A, 2026-11-19 (private record). Agents approve the plan graph under J201-J204; there is no ticket sign-off. Measured the same way as wave 1's AFTER count.
Activity
jparker2006 commentedon Nov 20, 2026
Spec confirmed by the agents (J201-J204), 2026-11-20: under Jake's Cleanup wave 3 rulings (CW3-1 A, CW3-2 A, CW3-3 A) and his standing rule that agents check and approve plans themselves, the spec is confirmed as written: cut OpenWiz to the kernel, drivers,
openwizcommand and app, keep only tests on a real user path, and leave the 0.1.0 must list alone until Friday 11-20 12:00 PM PST.Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7032405065
Next: the proposed tickets, checked and approved by the agents.
jparker2006 commentedon Nov 20, 2026
Proposed plan graph, for the agents' review (J203). No ticket is written yet.
tools/war-room/,tools/collector/,tools/stall-alarm/,ci/escapes/,ci/wizroom/, four workflows;ci.yml, docs-only rows,.gitignore(shared)tools/collector/, workflows, pinci/,ci.yml, safety watch, docs-onlytools/folders,frozen.yml;ci.yml, docs-only rows (shared)contracts/docs/pages,release/openwiz/; AGENTS.md, README (shared)tests/fleet/,tests/proof/;tests/Cargo.toml(shared)tests/folders,crates/core/tests/;tests/Cargo.toml(shared)tests/fixtures/tools/install/and four other kept toolsLongest chain: 1 link (T7 → T9). Can start at approval: 8 of 10.
File links: none. No contract-first ticket: the spec is deletions and moves only, with no shared interface; the keep list in the spec is the rule every ticket applies. Shared files (
ci.yml, the docs-only action's rows,tests/Cargo.toml, AGENTS.md) carry only each ticket's own lines: whichever merges second fixes the conflict.Agents' check: each ticket is one owned area and one fresh context (deletions are cheap to review); arrows are only where a later cut needs to know what an earlier one kept; the protected 0.1.0 list and wave 2's paths are named in every ticket.
jparker2006 commentedon Nov 20, 2026
Plan graph written, checked by the agents (J203). Approving starts every ticket as soon as its blockers have merged, and each one merges by the project's merge rules.
Link check:
Relies on check: all 10 tickets pass (
nothing).jparker2006 commentedon Nov 20, 2026
Plan graph approved by the agents (J201-J204), 2026-11-20, revision 1: under Jake's standing rule that agents check and approve plan graphs themselves, and his Cleanup wave 3 rulings, the ten-ticket graph is approved as written after its link, relies and owned-path checks passed; the 0.1.0 must list stays off-limits until Friday 11-20 12:00 PM PST.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7032405065
Fingerprint:
084b3efa110a845e409bbd0e0bffe58fcbc50580d20e5cd8c8da714a347617cfRevision text
jparker2006 commentedon Nov 20, 2026
launch-fleet: fleet active, loop 96af9d26-4401-4700-ab1f-4f9e673083dd
#1777: remove references to the deleted CI paths (spec #1774 standing…
#1775: green: drop references to the deleted paths outside the owned …
#1779: green: drop live references to the deleted paths
jparker2006 commentedon Nov 20, 2026
Orchestrator (CW3 lead): B, for every ticket in this spec that has a protected part still to come (#1777, #1778, #1779, #1781, #1782). This replaces the one-PR answers on #1778 and #1782.
Closes #NtoPart of #Nfirst, and list the protected part that is still to come. The ticket stays open.release-0.1.0exists and RL1 0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671 says it was cut), the same builder opens a second, small PR withCloses #Nthat does the protected part. It gets its own review.escapes.py,loops/ci3-weekly.json,docs/ci3.md) isn't protected, so it runs as soon as Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes #1777's and Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go #1778's first PRs merge.Why: the cuts land tonight, the PRs that share CI files stop piling up conflicts with each other, and no ticket closes before all of its work is in.
jparker2006 commentedon Nov 20, 2026
launch-fleet: note: once #1791 (#1777's first PR) merges, the Selector escapes and War room proof checks, neither of them required, stay red on main until #1775's second step lands in #1792, which deletes both workflows.
jparker2006 commentedon Nov 20, 2026
Plan graph approved by the agents (J201-J204), 2026-11-20, revision 2: under Jake's standing rule that agents check and approve plan graphs themselves, T5 #1783 now waits only for T1 #1775. The first parts of #1777 and #1778 have already merged, and what those tickets still have to do removes no contract. The link and relies checks passed.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7032405065
Changed since revision 1: #1783 is no longer blocked by #1777 and #1778, and its body says why (its Links lines for them were removed).
Fingerprint:
3e30b616dbe404a3e195091546b38fe5bf504c3399de43c31e4628cafaf86c6dRevision text
#1775: green: delete tools/collector/, ci/escapes/escapes.py, loops/c…
jparker2006 commentedon Nov 21, 2026
launch-fleet: spec summary
All ten planned tickets have verified merges into
main:Live check: none required by this spec.
Proof:
maincame from another spec's driver-kit change (#2010: 0.1.0 KN25: the boat.dev and local drivers run on macOS #2028) and was fixed there.release-0.1.0was cut (RL1 0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671).Open follow-ups, labelled
polish: #1794, #1895.jparker2006 commentedon Nov 21, 2026
AFTER, cleanup wave 3 (proof P1): OpenWiz is 235,920 lines in 1,625 files, under the 250,000 target.
Counted with the same cleanup-measure
count.shas the BEFORE (tracked text lines), on main at507e6b8, after the last ticket's PR #2056 merged.8880e7b)507e6b8)By category: tests and fixtures −33,254; tools −39,135; CI −11,548; docs −5,269; product −473; contracts +3,058 (new contracts from other specs).
This spec's 14 PRs net −103,448 lines. Other work merged in the same hours added about 16,800, so the tree fell by 86.6k. A full PR CI run went from about 14 minutes to about 6 (#1791).
Proofs: P1 met (above). P2: CI was green on every merge; main went red once, on a driver-kit test outside this spec, and turned green again without a change from this wave. P3: each PR's deleted-test list was reviewed. P4: WizRoom published every hour after its collector move (#1776). P5: no merge before the 0.1.0 branch cut touched a protected path.
The spec can close.
jparker2006 commentedon Nov 21, 2026
launch-fleet: spec closed. All ten planned tickets have verified merges (summary above). P1 is met: 235,920 lines at 507e6b8, under the 250,000 target (AFTER count, comment 7054738250). No live check was required. Follow-ups #1794 and #1895 stay in polish.