Repository navigation
Closed
19 / 1919 of 19 issues completedClosed
19 / 1919 of 19 issues completed
Copy link
Milestone
Description
Problem Statement
OpenWiz is mostly not the product. Of about 533,000 lines, the product is about 17%. Tests and fixtures are 47%, tools/ 16%, CI machinery 12% and contracts 6%. Every builder and reviewer has to read around that weight, CI runs it, and a merge into a much-shared internal contract puts other tickets on hold. The factory that builds it is costly in the same way. About 96% of its tokens are agents re-reading their own long conversations, review helper agents use about 30% of review tokens, and the pre-push hook takes about 10 minutes in a builder's sandbox, which has cost finished work three times.
Solution
Cleanup wave 1 deletes before it optimises, as boldly as the evidence allows:
- Fewer tests: a second, bolder pass, area by area. Every test guards a user-visible behaviour, a contract another repository relies on, or a safety gate, or it goes, with its keeper named. Test lines are counted before and after, aiming for tests to become the minority of the codebase.
- No dead scaffolding: every folder in
tools/andci/has a live caller (a workflow, a skill or the product) or it is deleted. One table first, then one deletion pull request after Jake has seen the table. - Contracts only where someone outside depends on them: contracts stay only for interfaces a user or another repository depends on. Internal ones become short notes beside their code, and launch-fleet's relied-on-file holds go.
- A fast push: the pre-push hook becomes a privacy check that takes under 30 seconds. CI stays the gate for everything else.
- Short-lived agents: build-ticket and review-ticket drop every helper-agent step, and launch-fleet's fleet wakes become fresh (read GitHub, act, end) instead of one thread that runs for days.
Changelog headline
none
User Stories
- As the owner, I want tests to be the minority of the codebase, so that the product is what a reader meets first.
- As a maintainer, I want every kept test to say which user-visible behaviour, cross-repository contract or safety gate it guards, so that nothing stays out of habit.
- As a maintainer, I want every deleted test to name the test that still catches its bug, or say why its behaviour isn't one of the three, so that protection never drops by accident.
- As the owner, I want test-line counts before and after each area, so that I can see the cut.
- As the owner, I want one table of every
tools/andci/folder with its live caller and a keep, move or delete verdict, so that I see what goes before it goes. - As a maintainer, I want every folder with no live caller deleted in one pull request, so that nothing unused is left to maintain.
- As a maintainer, I want a contract only where a user or another repository depends on the interface, so that internal steps aren't frozen into versioned documents.
- As a fleet, I want no ticket held because an internal file it reads changed, so that work doesn't stall on paperwork.
- As a builder, I want a push to take under 30 seconds and still keep private words off GitHub, so that pushing never costs a whole turn.
- As the owner, I want each builder and each reviewer to be one thread with no helper agents, so that review costs what it needs and no more.
- As the owner, I want each fleet wake to start small, read GitHub, act and end, so that no thread runs for days re-reading its past.
Implementation Decisions
- The bolder test rule (DL4). It extends the test rule (The test rule: what earns a test, and what never does #687) and the test-value kit. A test is kept only for one of three reasons: a user-visible behaviour, a contract another repository relies on, or a safety gate (privacy, security, data loss, money, release). The ledger records that reason for every kept test. A deleted test names its keeper, or says why its behaviour isn't one of the three. Coverage is still measured before and after with the kit; a drop is allowed only where every deleted line is explained by that rule. Test lines are counted per area with one counter, before and after. Tests becoming the minority is an aim, not a gate.
- Areas, not a big bang. The shared
tests/folder is cut in three groups, thenapps/, then the crates' own tests, and thentools/andci/once their dead folders are gone. Folders that WizRoom (Infra spec: WizRoom, the war room in its own private repository #979) is moving (tools/war-room/,tools/collector/,ci/wizroom/) are left to that spec. - Every folder has a live caller (DL5). One walkthrough reads every folder in
tools/andci/(and the.github/actions/it calls) and records, per folder, its live callers: a workflow, a skill or the product, named exactly. Its verdict is keep, move (to where its only caller lives) or delete. Jake sees the table, then one pull request does every delete and move. A folder whose only callers are its own tests or other dead folders has no live caller. - Contracts for outside interfaces only (DL6). One table classifies every contract: keep where a user or another repository depends on the interface (for example the CLI, WizLoops' format, decisions, open development), fold otherwise. A folded contract becomes a short note beside its code (a README or module comment), its fixtures move beside its tests, and every reference is repointed. launch-fleet stops holding tickets when a relied-on file changes; plan-graph's Relies on line stays as information.
- The push check (DL2). OpenWiz's pre-push hook is replaced by the privacy check alone, under 30 seconds on a builder's sandbox. Format, lint and tests move entirely to CI, which is already the gate.
- No helpers (DL1). build-ticket and review-ticket in WizSkills drop every step that starts, reads or archives helper agents, along with the no-push check that exists only for helpers. Each builder and each reviewer is one thread. Helpers and swarms stay an idea, to be grilled and benched separately.
- Fresh fleet wakes (DL3). launch-fleet's fleet wake becomes a fresh, finite run that reads the spec's GitHub records and its private routing state, does its due lines, records them and ends. Nothing depends on a long-lived fleet conversation. The private routing state stays in the private repository, so a fresh wake can read it.
- Agents: builders are Codex Sol 6.1 High, reviewers Claude Code Opus 5.5 High, with no helpers (J148, and the no-helper ruling).
Testing Decisions
- Seams: the test-value kit's counter and ledger for every test pass; the walkthrough table and a repository-wide caller search for scaffolding; plan-graph's checks and launch-fleet's fixture suites in WizSkills for the skill changes.
- A good test here checks behaviour from the outside. Every test a ticket adds follows the test rule, red first. A ticket that only deletes adds no tests.
- Each test pass keeps the full suite green on every pull request and records the before and after line counts and coverage.
- Prior art: spec Infra spec: the test-value campaign, walkthrough 1 (the shared tests folder) #787's test-value kit and its ledgers, TV1 to TV14; the open-import guard's path search for retired tools (MT8, Infra MT8: retire ci-bench and factory-metrics #827).
Proof
| Claim | Evidence |
|---|---|
| CW-A Every kept test names its keep reason, and every deleted test names its keeper or why it's gone | Each test pass's ledger, reviewed |
| CW-B Tests shrink by area and aim to become the minority | The counter's before and after per area, in each PR and in total |
CW-C Every remaining tools/ and ci/ folder has a named live caller |
The walkthrough table, the deletion PR, and a repository-wide search after it |
| CW-D Contracts remain only for interfaces a user or another repository depends on | The contract table and the folds; no relied-on-file hold line in launch-fleet's fixtures |
| CW-E A push takes under 30 seconds and still stops private words | A timed push in a builder's sandbox, and the privacy check's red case |
| CW-F Builders and reviewers start no helper agents | WizSkills' build-ticket and review-ticket with no helper step, by search and their suites |
| CW-G Each fleet wake is a fresh, finite run | launch-fleet's fixture proof of a wake that reads GitHub, acts and ends, and one real wake's thread ending |
Out of Scope
- Folders WizRoom (Infra spec: WizRoom, the war room in its own private repository #979) is moving:
tools/war-room/,tools/collector/,ci/wizroom/, and their tests. - New targets or rewrites of the product itself.
- The orchestrator's own daily handoff (DL3's third part): it happens through the handoff skill, at Jake's timing.
- Benching helpers or swarms: a separate grill.
- Deleting ClosedWiz's frozen copy (WizSite: the landing page's scroll story, one Wiz in every era (J180) #1287): its own work.
Further Notes
- From the cleanup grill's rounds DL1 to DL6 (private, ClosedWiz
docs/grills/2026-11-13-cleanup-cheaper.md, 2026-11-19), under wayfind map Simplify and cheapen the factory: cheaper, faster, simpler every day #685. Jake asked for this to be super ambitious. - Facts: OpenWiz Where do model tokens go, and why do limits hit? #689 and Where do Cloudroom credits go? #688 (token and cost research), the first-principles picture of 2026-11-19, and OpenClaw's test pruning as the model for ambition.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 19 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
9 remaining items
jparker2006 commentedon Nov 19, 2026
Plan graph approved by Jake, 2026-11-18, revision 1: the orchestrator approved this plan graph as written, including its three stated choices, after Jake confirmed the spec. Builders are Codex Sol 6.1 High and reviewers Claude Opus 5.5 High, with no helper agents; CW16 to CW18 keep their skill edits minimal ahead of the WizSkills 0.2.0 rewrite.
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6997638665
Fingerprint:
8fe7ff9d440aec2e268e05df65e30d218d7a31ffe823860fb40b813345f13e60Revision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: fleet active, loop fleet-1141
jparker2006 commentedon Nov 19, 2026
Needs you: CW15 (#1156) requests approval to edit
.githooks/test.shfor CW-E. The required privacy workflow runs this suite, and its Cargo, npm and cache assertions still describe the old hook. The builder proposes preserving deletion and ref-update coverage and adding a clean-push regression without build dependencies. Please rule on this exact path and purpose. The builder supplied a proposal summary and is holding its local commit pending the scope decision.Builder request: #1156 (comment)
jparker2006 commentedon Nov 19, 2026
Needs you: CW17 (#1158) needs a ruling on the Cloudroom route for a fresh wake to deliver to existing agents, read the selected reviewer’s own output, and archive finished agents. Please name the approved route and the owner of the live CW-G observation. The cold-process fixtures pass and WizSkills PR #10 is a draft with the current fleet loop still in service.
Builder request: #1158 (comment)
jparker2006 commentedon Nov 19, 2026
Needs you: Please confirm the cross-repository review claim and merge admission route for WizSkills PRs #11 (CW18) and #12 (CW16). Their tickets are approved on OpenWiz, WizSkills has no docs/agents/fleet.md for the standard claim check, and its main-branch rules report no merge queue. Please specify the approved route with J150’s other-family review, exact-head green CI, and the GraphQL enqueue requirement. CI is still running on both PRs.
PRs: openwizdev/WizSkills#11 and openwizdev/WizSkills#12
jparker2006 commentedon Nov 19, 2026
Plan graph approved by Jake, 2026-11-18, revision 2: the orchestrator approved one acceptance-line change to break a deadlock with WizSkills 0.2.0: CW16 counts as done when its WizSkills pull request merges, and OpenWiz's pin moves with 0.2.0 (#1164's WS14). Scope reduced, no link changed.
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-6999284736
Changed since revision 1: CW16 (#1157)'s last acceptance line no longer waits for the OpenWiz pin. No link changed.
Fingerprint:
e80e4c71686abdbc829c38db2c9dc59b26a173cb50cce43ccebdfb95e9ee52a4Revision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: fresh-wake check (two wakes), done
Two fresh wakes ran this spec's check once each, on the pinned skills candidate, in a short window while the regular loop was paused.
launch-fleet: noted openwizdev/OpenWiz#1201on Infra CW2: second test pass: the fleet, service and loops groups #1143. It left every other due line alone, reported and ended.Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7000775992
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: replacement fleet took spec #1141. Recorded builders, branches and reviewers stay in place, including the CW19 replacement. New reviews are Grok 4.7 medium; if that hits a limit the fallback is Codex Sol 6.2 Medium, and no new same-family Opus reviewer starts. CW8 stays ready-for-human. The spec's live loop is still same-thread, so its agent and parent could not be switched; its prompt now stops a retired wake.
jparker2006 commentedon Nov 19, 2026
launch-fleet: fleet active, loop fleet-1141
Wake mode: fresh
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: planned #1157 is closed without a verified merge
jparker2006 commentedon Nov 19, 2026
launch-fleet: complete: #1157 verified cross-repository merge openwizdev/WizSkills#12
WizSkills #12 merged to main at 2026-11-19T03:40:54Z. Approved head 99b3f184d1d261300f9086127db36fa5ca1b99c1 is the second parent of merge commit a517b1883274dd8a9d05565e2ac85608155a1155, and that commit is an ancestor of WizSkills main. Ticket record: #1157 (comment). This fleet counts #1157 done. Open follow-up openwizdev/WizSkills#133 is not a blocker.
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: replacement fleet took spec #1141 (J224). Claude Code Opus 5.5 Medium now runs this fleet; Codex and Cursor are out. Every ticket in the plan is closed and no #1141 pull request is open, so no review is stalled and nothing starts. The only due line is the archive of CW19's (#1160) builders, which is pending with the planner;
launch-fleet: archivedfollows once it is confirmed, then the spec's closing check. CW8 stays Jake's. The spec's loop is unchanged in schedule and now runs on Claude.jparker2006 commentedon Nov 19, 2026
launch-fleet: spec summary
Merged: all 18 agent tickets. CW1–CW7, CW9–CW15 and CW19 merged into OpenWiz
main(#1201, #1250, #1226, #1228, #1221, #1222, #1167, #1225, #1275, #1280, #1166, #1210, #1209, #1168, #1328). CW16 to CW18 merged into WizSkillsmain(WizSkills #12, #10, #11). CW16 counts done under revision 2's acceptance line, and its cross-repository merge is recorded above (7008220764).Person's step: CW8 (#1149) is complete, with Jake's
launch-fleet: complete:record on it.Live check: none required for this spec.
Open follow-ups (polish): openwizdev/WizSkills#133 (follow-up of #1157, R1).
Agents: every builder and reviewer is archived.
jparker2006 commentedon Nov 19, 2026
launch-fleet: closing: the planned tickets are done (summary above); follow-ups go to polish.