Skip to content

Infra spec: Cleanup wave 3: the kernel, drivers, CLI and app, nothing else #1774

Closed
10 of 10 issues completed
Closed

Description

@jparker2006

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

  1. As a newcomer to OpenWiz, I want the repository to hold only the kernel, the drivers, the openwiz command and the app, so that I can read what it is in one sitting.
  2. 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.
  3. 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.
  4. 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.
  5. As a user installing OpenWiz, I want every install, openwiz command, driver and kit path to keep its tests, so that the cut never breaks what I run.
  6. As a contributor, I want CI green after every deletion, so that main is never red because of this wave.
  7. As a reader of the changelog, I want a line for any documented feature that goes away, so that nothing public disappears silently.
  8. 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

Testing Decisions

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 openwiz command, 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.

Sub-issues

Sub-issues

10 of 10 Issues completed
Loading 10 sub-issues

Activity

  1. added this to the Infra milestone on Nov 20, 2026
  2. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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, openwiz command 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.

  3. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Proposed plan graph, for the agents' review (J203). No ticket is written yet.

    flowchart LR
      T1["T1: war room and collector leave"] -->|real: their contracts lose their last reader| T5["T5: only read contracts stay"]
      T3["T3: CI runs only what guards kept parts"] -->|real: CI contracts lose their last reader| T5
      T4["T4: old factory tools go"] -->|real: their contracts lose their last reader| T5
      T7["T7: fleet and proof tests"] -->|real: kept tests decide fixture readers| T9["T9: fixtures only while read"]
      T8["T8: other Rust tests"] -->|real: kept tests decide fixture readers| T9
      T10["T10: installer and tool tests"] -->|real: kept tests decide fixture readers| T9
      T2["T2: WizRoom carries its own collector"]
      T6["T6: old evidence and frozen docs"]
    
    Loading
    Ticket Delivers Blocked by Links Owned paths Relies on
    T1 War room, collector, stall alarm, selector escapes and their workflows leave OpenWiz none none tools/war-room/, tools/collector/, tools/stall-alarm/, ci/escapes/, ci/wizroom/, four workflows; ci.yml, docs-only rows, .gitignore (shared) nothing
    T2 WizRoom publishes with its own collector none none WizRoom tools/collector/, workflows, pin nothing
    T3 CI runs only what guards kept parts none none ci/, ci.yml, safety watch, docs-only nothing
    T4 Test-value kit, fleet-load, open-import, roadmap, CI-overload go none none those tools/ folders, frozen.yml; ci.yml, docs-only rows (shared) nothing
    T5 Only contracts a kept part reads stay T1, T3, T4 T1/T3/T4 real: their deletions remove the last readers contracts/ nothing
    T6 Old evidence, cleanup records, frozen 0.0.0 docs leave none none docs/ pages, release/openwiz/; AGENTS.md, README (shared) nothing
    T7 Fleet and proof tests keep only user paths none none tests/fleet/, tests/proof/; tests/Cargo.toml (shared) nothing
    T8 Other Rust tests keep only user paths none none other tests/ folders, crates/core/tests/; tests/Cargo.toml (shared) nothing
    T9 Fixtures only while a kept test reads them T7, T8, T10 real: kept tests decide readers tests/fixtures/ nothing
    T10 Installer and kept tools keep only user-path tests none none test files under tools/install/ and four other kept tools nothing

    Longest 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.

  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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.

    flowchart LR
      T1["#1775 T1: war room and collector leave"] -->|real: their contracts lose their last reader| T5["#1783 T5: only read contracts stay"]
      T3["#1777 T3: CI runs only what guards kept parts"] -->|real: CI contracts lose their last reader| T5
      T4["#1778 T4: old factory tools go"] -->|real: their contracts lose their last reader| T5
      T7["#1780 T7: fleet and proof tests"] -->|real: kept tests decide fixture readers| T9["#1784 T9: fixtures only while read"]
      T8["#1781 T8: other Rust tests"] -->|real: kept tests decide fixture readers| T9
      T10["#1782 T10: installer and tool tests"] -->|real: kept tests decide fixture readers| T9
      T2["#1776 T2: WizRoom carries its own collector"]
      T6["#1779 T6: old evidence and frozen docs"]
    
    Loading
    Ticket Title Blocked by Labels
    #1775 Infra CW3-T1: the war room, its collector and their workflows leave OpenWiz none none
    #1776 Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools none none
    #1777 Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes none none
    #1778 Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go none none
    #1779 Infra CW3-T6: old evidence, cleanup records and the frozen 0.0.0 documents leave the tree none none
    #1780 Infra CW3-T7: the fleet and proof tests keep only what guards a user path none none
    #1781 Infra CW3-T8: the other Rust tests keep only what guards a user path none none
    #1782 Infra CW3-T10: the installer and kept tools keep only the tests that guard a user path none none
    #1783 Infra CW3-T5: only contracts a kept part reads stay #1775, #1777, #1778 none
    #1784 Infra CW3-T9: shared fixtures stay only while a kept test reads them #1780, #1781, #1782 none

    Link check:

    pass spec #1774: tickets 10, links 6, real 6, file 0, unlabelled 0, refusals 0
    

    Relies on check: all 10 tickets pass (nothing).

  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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

    Ticket Title Blocked by Label
    #1775 Infra CW3-T1: the war room, its collector and their workflows leave OpenWiz none ready-for-agent
    #1776 Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools none ready-for-agent
    #1777 Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes none ready-for-agent
    #1778 Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go none ready-for-agent
    #1779 Infra CW3-T6: old evidence, cleanup records and the frozen 0.0.0 documents leave the tree none ready-for-agent
    #1780 Infra CW3-T7: the fleet and proof tests keep only what guards a user path none ready-for-agent
    #1781 Infra CW3-T8: the other Rust tests keep only what guards a user path none ready-for-agent
    #1782 Infra CW3-T10: the installer and kept tools keep only the tests that guard a user path none ready-for-agent
    #1783 Infra CW3-T5: only contracts a kept part reads stay #1775, #1777, #1778 ready-for-agent
    #1784 Infra CW3-T9: shared fixtures stay only while a kept test reads them #1780, #1781, #1782 ready-for-agent

    Fingerprint: 084b3efa110a845e409bbd0e0bffe58fcbc50580d20e5cd8c8da714a347617cf

    Revision text
    plan-graph revision v2
    spec #1774 body sha256 bcb5fb1732df4b1a4de60fb225caa61f8feb5b5e4d6e4fc859fd06242a0f4af9
    ticket #1775 blocked-by none body sha256 bf417b81f8a76fb0b957746c2c69f89301ca91cc7537e60a3ff346b7b87332e7 title Infra CW3-T1: the war room, its collector and their workflows leave OpenWiz
    ticket #1776 blocked-by none body sha256 9ea4c3cfac45dfadc3e92fa2366fd30cbe6279b3dc937021e94f483f28af2eaf title Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools
    ticket #1777 blocked-by none body sha256 3d18cd5cb709e83256dad06be178378fc8aec7ff66c00448c6db15aa4eb37c7d title Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes
    ticket #1778 blocked-by none body sha256 dea8854c8b7a0e142ef29c1d49de930bf5970306e7058773c625f6eed8fbd1fe title Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go
    ticket #1779 blocked-by none body sha256 1954c147c94263481a2ad7aaaa0d9556917b766e5993f9fe232252edc87e3a0c title Infra CW3-T6: old evidence, cleanup records and the frozen 0.0.0 documents leave the tree
    ticket #1780 blocked-by none body sha256 d50d0ab02236e1361f399d2640d152ef43a5be3504d3cfd84ced77f38a48d8cd title Infra CW3-T7: the fleet and proof tests keep only what guards a user path
    ticket #1781 blocked-by none body sha256 a7457e31ae4313e24ce4fcf92c6083d1fecc5da8672d8bceb5e32e0e405b3dce title Infra CW3-T8: the other Rust tests keep only what guards a user path
    ticket #1782 blocked-by none body sha256 424dbd2585aa1ebae562d5ae381193f01f048144818b3d3af04ce6a44115f1ba title Infra CW3-T10: the installer and kept tools keep only the tests that guard a user path
    ticket #1783 blocked-by #1775 #1777 #1778 body sha256 4b2b401ec2c4b5c06140e896c8e627c67dce6b8b1de0240da4436629f961cc82 title Infra CW3-T5: only contracts a kept part reads stay
    ticket #1784 blocked-by #1780 #1781 #1782 body sha256 c2b865ddd671fca191f4dfe7d9d7045ee30d52d0661255f48125945ef777d896 title Infra CW3-T9: shared fixtures stay only while a kept test reads them
    
  6. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: fleet active, loop 96af9d26-4401-4700-ab1f-4f9e673083dd

  7. added 3 commits that reference this issue on Nov 20, 2026
  8. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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.

  9. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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.

  10. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    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).

    Ticket Title Blocked by Label
    #1775 Infra CW3-T1: the war room, its collector and their workflows leave OpenWiz none ready-for-agent
    #1776 Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools none ready-for-agent
    #1777 Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes none ready-for-agent
    #1778 Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go none ready-for-agent
    #1779 Infra CW3-T6: old evidence, cleanup records and the frozen 0.0.0 documents leave the tree none ready-for-agent
    #1780 Infra CW3-T7: the fleet and proof tests keep only what guards a user path none ready-for-agent
    #1781 Infra CW3-T8: the other Rust tests keep only what guards a user path none ready-for-agent
    #1782 Infra CW3-T10: the installer and kept tools keep only the tests that guard a user path none ready-for-agent
    #1783 Infra CW3-T5: only contracts a kept part reads stay #1775 ready-for-agent
    #1784 Infra CW3-T9: shared fixtures stay only while a kept test reads them #1780, #1781, #1782 ready-for-agent

    Fingerprint: 3e30b616dbe404a3e195091546b38fe5bf504c3399de43c31e4628cafaf86c6d

    Revision text
    plan-graph revision v2
    spec #1774 body sha256 bcb5fb1732df4b1a4de60fb225caa61f8feb5b5e4d6e4fc859fd06242a0f4af9
    ticket #1775 blocked-by none body sha256 bf417b81f8a76fb0b957746c2c69f89301ca91cc7537e60a3ff346b7b87332e7 title Infra CW3-T1: the war room, its collector and their workflows leave OpenWiz
    ticket #1776 blocked-by none body sha256 9ea4c3cfac45dfadc3e92fa2366fd30cbe6279b3dc937021e94f483f28af2eaf title Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools
    ticket #1777 blocked-by none body sha256 3d18cd5cb709e83256dad06be178378fc8aec7ff66c00448c6db15aa4eb37c7d title Infra CW3-T3: CI runs only what guards the kept parts; old CI machinery goes
    ticket #1778 blocked-by none body sha256 dea8854c8b7a0e142ef29c1d49de930bf5970306e7058773c625f6eed8fbd1fe title Infra CW3-T4: the test-value kit, fleet-load, open-import, roadmap and CI-overload tools go
    ticket #1779 blocked-by none body sha256 1954c147c94263481a2ad7aaaa0d9556917b766e5993f9fe232252edc87e3a0c title Infra CW3-T6: old evidence, cleanup records and the frozen 0.0.0 documents leave the tree
    ticket #1780 blocked-by none body sha256 d50d0ab02236e1361f399d2640d152ef43a5be3504d3cfd84ced77f38a48d8cd title Infra CW3-T7: the fleet and proof tests keep only what guards a user path
    ticket #1781 blocked-by none body sha256 a7457e31ae4313e24ce4fcf92c6083d1fecc5da8672d8bceb5e32e0e405b3dce title Infra CW3-T8: the other Rust tests keep only what guards a user path
    ticket #1782 blocked-by none body sha256 424dbd2585aa1ebae562d5ae381193f01f048144818b3d3af04ce6a44115f1ba title Infra CW3-T10: the installer and kept tools keep only the tests that guard a user path
    ticket #1783 blocked-by #1775 body sha256 2781b34ec7268b81793170db84479a55b1e7cc2686d9ce5247a9813b56cf63c0 title Infra CW3-T5: only contracts a kept part reads stay
    ticket #1784 blocked-by #1780 #1781 #1782 body sha256 c2b865ddd671fca191f4dfe7d9d7045ee30d52d0661255f48125945ef777d896 title Infra CW3-T9: shared fixtures stay only while a kept test reads them
    
  11. added a commit that references this issue on Nov 20, 2026
  12. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: spec summary

    All ten planned tickets have verified merges into main:

    Ticket Merged
    #1775 CW3-T1 war room and collector leave #1792
    #1776 CW3-T2 WizRoom carries its own collector openwizdev/WizRoom#13; P4 verified on #1776
    #1777 CW3-T3 CI runs only what guards kept parts #1791, #2011
    #1778 CW3-T4 factory tools go #1788, #2013
    #1779 CW3-T6 old evidence and 0.0.0 documents #1793, #2012
    #1780 CW3-T7 fleet and proof tests #1790
    #1781 CW3-T8 other Rust tests #1789, #2016
    #1782 CW3-T10 installer and kept-tool tests #1787, #2015
    #1783 CW3-T5 only read contracts stay #1859
    #1784 CW3-T9 shared fixtures #2056

    Live check: none required by this spec.

    Proof:

    Open follow-ups, labelled polish: #1794, #1895.

  13. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    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.sh as the BEFORE (tracked text lines), on main at 507e6b8, after the last ticket's PR #2056 merged.

    Lines Files
    BEFORE (8880e7b) 322,541 1,978
    AFTER (507e6b8) 235,920 1,625
    Change −86,621 (−26.9%) −353

    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.

  14. jparker2006 commented on Nov 21, 2026

    @jparker2006
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions