Repository navigation
Closed
14 / 1414 of 14 issues completedClosed
14 / 1414 of 14 issues completed
Copy link
Milestone
Description
Problem Statement
OpenWiz's shared tests/ folder holds 541 files (about 5.5 MB). Agents wrote far too many tests: proofs that later suites already cover, fixtures no test reads, prose checks that only pin wording, and tests far from the code they protect. Every one costs CI minutes and makes the codebase harder for a stranger to understand, yet nobody can say which tests actually catch bugs.
Solution
A test-value campaign, ambitious in the way OpenClaw's test pruning was: delete every test that doesn't catch a real bug, keep every one that does, and prove it.
- A small kit first: a coverage before-and-after script and a ledger form where every deleted test names its keeper.
- Fixtures prune: a script lists fixtures no test reads, and they go.
- The 0.0.1 proofs P1 to P12: each is kept, merged into a named keeper, or deleted.
- Then group by group, fleet first, one group per pull request, with coverage measured before and after and the kept tests moved next to their code.
- The skills checks (
tests/checks/skills.rs) move into each skill's own suite when the skills move to WizSkills.
Changelog headline
none
User Stories
- As a maintainer, I want every deleted test to name the test that still catches its bug, so that pruning never loses protection.
- As a maintainer, I want coverage measured before and after each group, so that I can see protection held.
- As a maintainer, I want fixtures no test reads deleted, so that the folder holds only what tests use.
- As a maintainer, I want P1 to P12 checked against later suites, so that duplicates go and unique proofs stay.
- As a maintainer, I want one group per pull request, so that each change is small enough to review.
- As a maintainer, I want the fleet group first, so that the method is proven on the biggest kept group.
- As a contributor, I want tests next to the code they protect, so that I find them and CI can pick them by crate.
- As a contributor, I want each skill's checks in that skill's own suite, so that skills carry their own tests.
- As the factory's owner, I want CI to get faster and cheaper as tests go, so that every pull request costs less.
- As a reviewer, I want each pull request's ledger in a fixed form, so that I can check every deletion quickly.
Implementation Decisions
- The test rule (The test rule: what earns a test, and what never does #687) is the bar: a test protects a supported behaviour, a contract others rely on or a safety invariant, adds something not already covered, and names the bug it catches. Never: mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases.
- The ledger: one row per test touched: kept, deleted, merged or moved; its keeper (an existing test that still catches the same bug, by path and name) or "behaviour gone"; and the bug it catches when kept.
- Coverage: line coverage of the crates a group exercises, measured with the same script and toolchain before and after, plus the group's test count, size and run time. A drop must be explained by a named behaviour that no longer exists, or the deletion is undone. The coverage tool is installed by the script, not added as a project dependency.
- Groups: fixtures; proofs (P1 to P12); fleet; web-api; new-thread; messaging; attachments; checks, cli-agent and support; loops; and what remains of service once the engine removals land. Terminal goes with Remove the terminal app from OpenWiz main (TA1) #776; notifications and most of service go with the engine retirement.
- Where tests live: when a group's kept tests exercise one crate, they move to that crate's own tests folder in the same pull request; tests that cross crates stay in the shared folder. No big-bang move.
- The skills checks move with WZ12 (Infra WZ12: the skills leave ClosedWiz, which installs WizSkills v0.1.0 like a user #555): each skill's checks go to its own suite in WizSkills; prose matches that only pin wording are deleted; each Rust wrapper that runs another suite stays until its replacement runs in CI.
- Ambition: each group aims to cut what doesn't catch bugs, not to trim at the edges. Every cut still names its keeper.
Testing Decisions
- A good test here is one this campaign keeps: it checks behaviour from the outside and names its bug.
- Seam: the existing test targets, run whole, before and after each group, with the coverage script. The full suite stays green on every pull request.
- Prior art: the bounded test-value ledger from the 2026-11-15 starting audits, and the CI selection and sharding rules in
ci/.
Proof
| Claim | Evidence |
|---|---|
| T1 Every deleted test names its keeper or a gone behaviour | Each pull request's ledger, reviewed |
| T2 Coverage holds for each group | The coverage script's before and after results in each pull request |
| T3 No fixture remains that no test reads | The unread-fixtures script's empty result after the prune |
| T4 The shared folder shrinks and CI gets faster | Size, test count and CI time before and after, per group and in total |
| T5 Each skill's checks run in its own WizSkills suite | WizSkills CI green with the moved checks; the Rust prose checks gone |
Out of Scope
- The terminal tests (Remove the terminal app from OpenWiz main (TA1) #776).
- The engine's tests, deleted with the engine retirement spec in 0.0.17.
- The web app's own tests under
apps/weband the tools' tests: later walkthroughs. - CI sharding (CI: split the launch-fleet and release lanes into parallel shards (critical path ~22 min to ~11) #743, #743: CI: split the launch-fleet and release lanes into parallel shards (critical path ~22 min to ~11) #752) and the privacy scan cache (Privacy scan rechecks unchanged files on every commit #761).
Further Notes
- From cleanup walkthrough 1 of wayfind question Walkthrough 1: the shared tests folder #691 (private grill): W1-3 to W1-7, with W1-6 at Jake's word to be ambitious, like Peter Steinberger's OpenClaw pruning (about 400k lines deleted with almost no coverage change).
- The test rule is The test rule: what earns a test, and what never does #687's, settled T1 to T13.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 14 sub-issues
Metadata
Metadata
Assignees
Labels
No labels
Activity
jparker2006 commentedon Nov 15, 2026
{ "schema": "openwiz.decisions.v1", "kind": "spec_confirmation", "id": "spec-787-confirm-j87-1", "status": "resolved", "fingerprint": "1054cff2950d5c7da76c359f04743935ea237f6f5173fd77e0ecc3d5ecd844bd", "risk": "ordinary", "spec": 787, "summary": [ "Every deleted test names its keeper, or says its behaviour is gone; coverage is measured before and after.", "A kit first: the ledger form and the coverage before-and-after script.", "Fixtures no test reads are deleted.", "P1 to P12: each is kept, merged into a named keeper, or deleted.", "Then group by group, fleet first, one group per pull request, with kept tests moved next to their code.", "tests/checks/skills.rs moves into each skill's WizSkills suite with WZ12.", "Ambitious, OpenClaw-style: cut every test that doesn't catch a bug." ], "headline": "none", "tickets": [], "graph": [] }jparker2006 commentedon Nov 15, 2026
Plan graph written, waiting for Jake's approval. Approving starts every ticket as soon as its blockers have merged, and each one merges by the project's merge rules.
This spec is one of four planned together for one approval (the J87 grill and cleanup walkthrough 1): WizLoops 0.1.0 (openwizdev/WizLoops#1), the
openwiz loopCLI (#785), the engine retirement (#786) and the test-value campaign (#787). Jake asked for the specs and tickets written at once, with one approval covering the spec confirmations and the graphs, so no separate proposal comment was posted.Longest chain: 4 links (#705 WZ16, #553 WZ9, #554 WZ10, #555 WZ12, #814 TV12, with the WizSkills blockers; inside 0.0.17 and this spec: #795 ER1, #799 ER5, #800 ER6, #813 TV11, 3 links). Can start at approval: 2 of 12 (TV1 and TV2; TV12 waits for #555).
File links: none.
Link check:
16 remaining items
jparker2006 commentedon Nov 16, 2026
launch-fleet: look: credit hold: #813 (TV11) is ready to start (#796 to #800 have merged), but Cloud Credits read 449 extra credits left at 2026-11-16T22:34Z, below the 5,000 line of the standing credit rule, so the fleet starts nothing and has paused its own loop to stop spending on wakes. Nothing is failed or cancelled; no agent of this fleet is running. It resumes and starts #813 when the orchestrator says credits are topped up. TV12 (#814) still waits on #555.
jparker2006 commentedon Nov 16, 2026
launch-fleet: look: credit hold over: the 449 reading at 22:34Z was stale; Cloud Credits read 50,395 extra at 22:36Z. The fleet resumed its loop and started #813 (TV11).
jparker2006 commentedon Nov 17, 2026
launch-fleet: fleet active, loop fleet-787
jparker2006 commentedon Nov 17, 2026
launch-fleet: look: scheduled checks repeatedly time out; full bounded checks through the review watchdog succeed. The adopted builder is preserved, and no replacement or task resend was attempted. Please investigate the scheduled check runtime.
jparker2006 commentedon Nov 17, 2026
Needs you: #1091 at 972cc5f is paused on the reviewer's coverage-run provenance question: #813 (comment).
The retained transcript supplies command inputs with the requested thread setting, but complete source-bound success receipts and the foreground claim remain to be resolved. Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6955191574. Please answer on #813 beginning
Orchestrator answer: openwizdev/OpenWiz#1091 at 972cc5f2db29891cf811b8be8e040f678351c177. The same reviewer remains assigned; no verdict or approval has been posted.jparker2006 commentedon Nov 18, 2026
Needs you: #814 is ready for its first review at OpenWiz #1135 (584c90c) and companion WizSkills #9 (0564f5e3cb3c0e8a2461279ee1dcfbe7e69051b1), with exact-head CI green. The standing resource gate currently blocks starting the assigned reviewer. Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6992489821. No reviewer has started; the reading loop remains enabled.
jparker2006 commentedon Nov 19, 2026
Resolved: the standing resource gate is cleared. The first paired review is now started for OpenWiz #1135 at 584c90c and WizSkills #9 at 0564f5e3cb3c0e8a2461279ee1dcfbe7e69051b1. The assigned other-family reviewer will post separate exact-head verdicts. The fleet has returned to its normal ten-minute cadence.
Merge pull request #9 from openwizdev/room/814-skills-checks
jparker2006 commentedon Nov 19, 2026
Proposed #787 revision 3: TV14 (#1139), a test-code budget guard (Jake's J147, private record https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6996593562; the orchestrator asked the planner to write it as one small ticket in this spec and post the revision for approval). Nothing else changes. #1139 is unlabelled until approval.
Test budget allowance: <N> lines. Why: <reason>), whose reason the reviewer judges.ci.yml(a workflow change approved by J147), withtools/test-value/budget.pyand its tests, plus one README section and one sentence indocs/agents/fleet.md.Changed since revision 2: TV14 (#1139) added, with no links.
Fingerprint of the proposed revision:
296d25c0e545a6f425c218f9890736c7aabbe2cf9093d9a8462e981feebf77a3Revision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: open sub-issue #1139 is not in the approved plan
TV14 is recorded in the revision 3 proposal: #787 (comment). It remains unlabelled pending the orchestrator's recorded approval and the normal current-fingerprint/readiness/claim checks. It has no blocker on TV12. Under J148 its new builder will be Codex Sol 6.1 High with Claude Opus 5.5 High review. The spec stays open for TV14's approval and completion; existing TV12 work remains in the merge queue.
jparker2006 commentedon Nov 19, 2026
Plan graph approved by Jake, 2026-11-18, revision 3: one small ticket added, TV14 (#1139), on Jake's J147 yes: a test-code budget guard.
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6996593562
Changed since revision 2: TV14 (#1139) added: pull requests adding over 400 net test lines fail unless offset by deletions or covered by a recorded allowance. No other ticket, body or link changed.
Fingerprint:
296d25c0e545a6f425c218f9890736c7aabbe2cf9093d9a8462e981feebf77a3Revision text
jparker2006 commentedon Nov 19, 2026
launch-fleet: look: J151 completion boundary recorded
TV12 (#814) is merged and its agents are archived. This fleet will finish TV14 (#1139), then start no further tickets under #787. Spec #1141 covers the remaining cleanup. Existing review, CI and merge gates still apply to TV14.
jparker2006 commentedon Nov 19, 2026
launch-fleet: spec summary
All 14 planned builder tickets are merged: TV1–TV12 (#803–#814), TV13 (#1010), and TV14 (#1139). No live check or ready-for-human ticket is required by this spec. Planned agents are archived.
The campaign delivered the test-value kit, unread-fixture pruning, proof and group ledgers, coverage comparisons and keeper checks, test placement moves, the skills-suite migration, and the PR test-code budget guard. Group evidence and ledgers are retained in tools/test-value/evidence, with TV14 proofs in docs/evidence/tv14. Guard-constrained moves remain documented as W1-7 gaps; no guard was relaxed. No campaign-wide runtime improvement is asserted: timing claims require comparable CI job durations.
Final merges: TV11 #1091; TV12 WizSkills openwizdev/OpenWiz#9 first, then #1135; TV14 #1140. TV14 merged into main at its approved head 360ba06, merge commit 83931a4, after passing merge-group ci and privacy. Exact-head approval resolves R1; R2 and R3 remain polish.
Open, confirmed polish follow-ups (labelled polish; no new work starts from this fleet): #892 #917 #959 #960 #961 #969 #970 #971 #972 #973 #1004 #1005 #1006 #1007 #1009 #1011 #1012 #1013 #1015 #1016 #1019 #1020 #1021 #1022 #1136 #1137 openwizdev/WizSkills#132 #1162 #1163.
J151 ends this campaign after TV12 and TV14. Spec #1141 owns the remaining cleanup; no further #787 tickets or polish builders will start. This closes the planned campaign without claiming those follow-ups are fixed.