Skip to content

Infra spec: Cleanup wave 2: the kernel the smallest thing in the repo #1388

Closed
5 of 5 issues completed
Closed

Description

@jparker2006

Problem Statement

After Cleanup wave 1, OpenWiz is still mostly not the product. At 879c5da the repository is about 529,000 lines: tests are about 228,700 against about 89,800 lines of product, and the test-selection machinery in ci/select (about 50,700 lines) is more than twice the product's Rust core (about 21,900). Two tools the CI calls, tools/skills-eval (about 19,700) and tools/test-value (about 15,100), live here though they serve other repositories or other work. Every builder and reviewer reads around that weight, and CI runs it. The kernel (#1365) is meant to be the smallest, most stable thing in the organization; today it sits inside the largest.

Solution

Cleanup wave 2 makes the kernel the smallest thing in the repository, by deleting, folding and moving out everything a user or another repository doesn't need from OpenWiz itself.

  • Table first. One read-only table lists every folder of 5,000 lines or more not already leaving through another spec, with its lines, files, every caller, and a keep, fold, move or delete call with its reason, where a moved folder goes, and which running spec it collides with.
  • Jake says go on the table. Nothing is deleted, folded or moved before that. The wave's other tickets are planned from the table after his go.
  • Direction, not a gate: under 250,000 lines once this wave and the specs already removing code (AP11, the WizRoom move, the docs cleanup) are done.

Changelog headline

OpenWiz shrinks toward its kernel: the folders nobody outside needs are mapped, then deleted, folded or moved to the repository that uses them.

User Stories

  1. As Jake, I want one table of every large folder with a clear call and reason, so that I can say go on the whole wave in one look.
  2. As a builder or reviewer, I want a smaller repository, so that I read and test less around every ticket.
  3. As a maintainer, I want each tool to live in the repository that uses it, so that OpenWiz carries only the kernel and the product.
  4. As the faster-factory work, I want test selection replaced by something path-based and small, so that CI runs only what a change can break without 50,000 lines of machinery.

Implementation Decisions

Testing Decisions

The table changes no code, so it has no tests of its own. Its numbers are checked by the reviewer against main at the commit the table names (a line-count command recorded in the table), and every caller it lists is checked against the repository's workflows, hooks and scripts.

Proof

Claim Evidence
T1 every folder of 5,000 lines or more outside AP11, #979 and #1293 has a row with lines, files, callers, a call, a reason, a destination and its collision the table at its named commit, and the reviewer's check against main
T2 the ci/select row says what FF5 needs the row, read against #1335
T3 nothing is deleted before Jake's go the table's pull request changes only docs/cleanup/wave2-table.md

Out of Scope

Further Notes

From Jake's J223 (private record on ClosedWiz), following Cleanup wave 1 (#1141). The 250,000-line figure is a direction, not a gate.

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

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

    @jparker2006
    MemberAuthor

    Plan graph approved by Jake, 2026-11-19, revision 1: Jake said yes to Cleanup wave 2 (J223) and asked for it planned the J203 way with one read-only ticket, the wave 2 table, so he can say go on the wave in the morning; the plan passed its own checks (links, relies, owned paths). More tickets are planned only after his go on the table.
    Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7008284381

    Ticket Title Blocked by Label
    #1389 Infra CW2-0: the wave 2 table: every large folder, its callers, and keep, fold, move or delete none ready-for-agent

    Fingerprint: 7fbb6222c0d3fb432fae0797dd97b088b8c7e3fc01a45cb0b1e451aad01fb71a

    Revision text
    plan-graph revision v2
    spec #1388 body sha256 ebc4c98f0cc0d7b3d49aeaea30ad3749e63912ccb112b9e364c827192ef866e9
    ticket #1389 blocked-by none body sha256 f73063aa71df3dc1cd1133be0dbc93470d9672589ff6f7c7c8b5810831bb0a5b title Infra CW2-0: the wave 2 table: every large folder, its callers, and keep, fold, move or delete
    
  3. jparker2006 commented on Nov 19, 2026

    @jparker2006
    MemberAuthor

    Jake's go on the wave 2 table (docs/cleanup/wave2-table.md) as recommended. Deletion tickets follow. Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7025578079

  4. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Plan graph approved by Jake, 2026-11-20, revision 2: Jake said go on the CW2-0 table as written, every row's recommendation, and asked for its deletion tickets planned the J203 way now and started, scheduled around FF5's CI work; the plan passed its own checks (links, relies, owned paths).
    Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7025578079

    Changed since revision 1: CW2-1 #1484 (the test-value evidence move; after DS5 #1303), CW2-2 #1485 (the invalid-plan fold), CW2-3 #1486 (path-based selection replaces ci/select; after FF5 #1335), CW2-4 #1487 (skills-eval arrives in WizSkills) and CW2-5 #1489 (OpenWiz repoints and deletes its skills-eval copy; after CW2-4 and the pinned WizSkills release, WS14 #1187) added, one per non-keep row of the table. Builders and fresh reviewers are Claude Code Opus 5.5 Medium (J246).

    Ticket Title Blocked by Label
    #1389 Infra CW2-0: the wave 2 table: every large folder, its callers, and keep, fold, move or delete none ready-for-agent
    #1484 Infra CW2-1: the rest of tools/test-value/evidence moves to the private record #1303 ready-for-agent
    #1485 Infra CW2-2: ci/selection/invalid folds into one table of cases none ready-for-agent
    #1486 Infra CW2-3: path-based selection replaces ci/select #1335 ready-for-agent
    #1487 Infra CW2-4: tools/skills-eval arrives in WizSkills, reading OpenWiz by a pinned path none ready-for-agent
    #1489 Infra CW2-5: OpenWiz repoints its skills-eval readers and deletes its copy #1187 #1487 ready-for-agent

    Fingerprint: 5a8fb08cbae976de3ce6c99573a6df747c832af435912e94e6aba875851eb041

    Revision text
    plan-graph revision v2
    spec #1388 body sha256 ebc4c98f0cc0d7b3d49aeaea30ad3749e63912ccb112b9e364c827192ef866e9
    ticket #1389 blocked-by none body sha256 f73063aa71df3dc1cd1133be0dbc93470d9672589ff6f7c7c8b5810831bb0a5b title Infra CW2-0: the wave 2 table: every large folder, its callers, and keep, fold, move or delete
    ticket #1484 blocked-by #1303 body sha256 8765d3ae5aaa3f4c5b6c8d2ac1b599984a594a05f9f4a4e269517cca9684db2b title Infra CW2-1: the rest of tools/test-value/evidence moves to the private record
    ticket #1485 blocked-by none body sha256 25610a6752fd1fc895fea252b9d6ef2e416d2495a4778b2710531cfcd077bea7 title Infra CW2-2: ci/selection/invalid folds into one table of cases
    ticket #1486 blocked-by #1335 body sha256 afde1856f62028786f2065b53f1281a44187a03199be4439b581ea31a29704fe title Infra CW2-3: path-based selection replaces ci/select
    ticket #1487 blocked-by none body sha256 8caa85c3723509e579529d1d0af1f4d5de67ee47be12646fe1c1db7f74903da6 title Infra CW2-4: tools/skills-eval arrives in WizSkills, reading OpenWiz by a pinned path
    ticket #1489 blocked-by #1187 #1487 body sha256 ac1dce0f72c6d30cfe6d566a4b98c8a83f90e9f096fdaebe10da3db6f5d35fde title Infra CW2-5: OpenWiz repoints its skills-eval readers and deletes its copy
    
  5. jparker2006 commented on Nov 20, 2026

    @jparker2006
    MemberAuthor

    Closed in Jake's stale-spec sweep, 2026-11-20: four of its tickets are done, CW2-5 #1489 closed as superseded, and its last live ticket, CW2-1 #1484, moved to cleanup wave 4 (#1860, revision 7).
    Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7048628992

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