Repository navigation
Description
Problem Statement
Our repositories are full of comments that no check enforces. Agents copy whatever they find, and a comment is often an agent's justification for a workaround, or one old correction turned into a rule forever. Comments go stale, nobody reads them, and they make every file longer for the next agent. Across OpenWiz, WizSkills, WizSite, WizRoom, WizLoops and the private repository's live tools there are roughly 18,000 comment lines today, and nothing stops new ones arriving with every pull request.
Solution
Cut comments to only the ones that earn their place, in every repository, and keep it that way:
- What stays (C2): licence and notice headers; a constraint from outside the code that can't be changed (an API quirk, a platform bug), with a link; public API docs that a published documentation build renders; security or data-loss warnings; and private-record pointers. Every other comment goes. Tool directives the code needs to run or build (a shebang, an encoding line, a lint or formatter switch that states its reason) are code, not comments.
- Meaning first: a comment that carried real meaning becomes a check, a test or a clearer name before it is deleted. A surprise in our own code is a rename, an extracted function, a type or a test, never a comment. If unsure, the comment goes.
- Keeping it that way (C3): a small CI check per repository fails a pull request that adds a comment outside the allowed kinds, with a reasoned escape tag for the rare real exception. The reviewer's comment pass in review-ticket and the skill text ship in WizSkills 0.2.1.
- Measured: each repository's comment lines are counted BEFORE and AFTER the same way, and the war room tracks them per repository going down.
Changelog headline
none
User Stories
- As an agent starting a ticket, I want code with no stale or justifying comments, so that I copy good patterns instead of old workarounds.
- As a reviewer, I want a pull request that adds a disallowed comment to fail CI, so that I don't have to read for it.
- As a builder, I want a reasoned escape tag for the rare real exception, so that a true external constraint can still be written down.
- As a builder, I want one written list of what stays, so that every repository cuts the same way.
- As the owner, I want each repository's comment lines counted before and after, so that I can see the cut happened.
- As the owner, I want the war room to show comment lines per repository over time, so that I see them stay down.
- As a builder cutting comments, I want a comment that carried meaning turned into a check, a test or a clearer name first, so that no knowledge is lost.
- As the release agent, I want the cut to stay off the 0.1.0 must-list files until the release branch is cut, so that the release is never put at risk.
- As the cleanup lead, I want the cut never to edit files cleanup wave 3 is deleting or moving, so that the two never collide.
- As a reviewer in WizSkills 0.2.1, I want review-ticket to treat a justification comment, a workaround comment or an unjustified suppression as a finding that says what to fix, so that comments don't creep back.
- As a user of the private records, I want private-record pointers and privacy warnings kept, so that the open-development contract still holds.
Implementation Decisions
- One contract and one checker, first. A comments contract (v1, with fixtures) pins the allowed kinds above, the meaning-first rule, the escape tag (one form, with a required reason), what counts as a comment per language in our repositories (Rust, Python, shell, YAML, TOML, JavaScript, CSS, HTML), what is excluded from counts (vendored, generated and licence files), and the BEFORE and AFTER count report. A small standard-library checker implements it: a diff mode for CI (added lines only, so old comments never fail a pull request) and a count mode. Each repository carries a byte-identical copy.
- Lauren Tan's rules, in our words. From pstack's
/no-comments(Lauren Tan, MIT): if unsure, delete; a surprise in our own code is a refactor, not a comment; "important" and "do not remove" comments are leads to check, not proof; a lint suppression on a correctness rule is removed and the cause fixed; constraint comments become checks. No persona. Private-record pointers are our added exception. Credit the source; copy no text word for word. - One ticket per repository, each cutting its comments, carrying the checker and wiring it into CI, and recording its BEFORE and AFTER counts. OpenWiz is split by area to fit one builder each, and its last ticket sweeps what the others skipped, after the 0.1.0 release branch is cut and after cleanup wave 3 has deleted or moved its files.
- OpenWiz's Rust gets a lint: every
allowattribute must state its reason, so CI, not a reviewer, enforces it. - Off limits until their time: files in open pull requests of 0.1.0 must-list tickets (until RL1, 0.1.0 RL1: OpenWiz 0.1.0 ships before Demo Day: branch, changelog, gates and publish #1671, records the release branch cut), files owned by open cleanup wave 3 tickets (Infra spec: Cleanup wave 3: the kernel, drivers, CLI and app, nothing else #1774), and the private repository's frozen copy (never). Each ticket reads these lists when it starts and again when it merges main, and records what it skipped.
- WizSkills pull requests merge only after WizSkills
v0.2.0is tagged, and ship in 0.2.1. WizSite merges deploy to openwiz.dev; the cut changes no visible behaviour. - The war room gains comment lines per repository from the count mode, once its collector lives in WizRoom (cleanup wave 3's T2, Infra CW3-T2: WizRoom carries its own collector and publishes without OpenWiz's tools #1776).
Testing Decisions
A good test here checks behaviour from the outside: a diff in, a pass or a named failure out; a tree in, a count out. The seams:
- The checker's fixtures: each allowed kind passes, each disallowed kind fails with its line, the escape tag passes only with a reason, and the counts match a known tree. Every repository's CI runs the same checker.
- Each repository's existing tests and CI, which must stay green after its cut: deleting comments changes no behaviour, and any check or test that replaces a comment is red first.
- The war room's existing collector tests, extended with the count.
Prior art: the owned-paths and privacy checks (diff-scoped CI checks with fixtures), cleanup wave 3's count.sh BEFORE and AFTER counts.
Proof
| Claim | Evidence |
|---|---|
| P1 One written list of what stays, with an escape tag that needs a reason | The checker's fixtures, red first |
| P2 Every repository's CI fails a pull request that adds a disallowed comment | A red-first test per repository, and one deliberately failing run linked in each pull request |
| P3 Each repository's comments are cut to the allowed kinds, and nothing that carried meaning is lost | BEFORE and AFTER counts per repository; the reviewer's sweep; every check or test that replaced a comment is red first |
| P4 The cut never touched a must-list file before the cut, a wave 3 file or the frozen copy | Each pull request's skip list and the owned-paths check |
| P5 review-ticket's comment pass finds justification comments | Its eval cases, red first |
| P6 The war room shows comment lines per repository | The collector's test, and a screenshot |
Out of Scope
- Markdown and other prose files: they are documents, not comments (cleanup waves cut prose).
- A whole-repository sweep by review-ticket: its comment pass reads pull request diffs only.
- The review checkpoints grill (R1 to R3), still open.
Further Notes
- From the confirmed grill J238, C1 to C3 (2026-11-19 and 2026-11-20; private record linked on this issue), and J237 (checks over prose).
- Source: Lauren Tan, "All Code Is Slop (Except Mine)" (AI Engineer, 2026-11-14), and pstack's
/no-comments(github.com/cursor/plugins,pstack/skills/no-comments/, MIT). - WS14 (WizSkills 0.2.0) and its pin stay first.
Activity
jparker2006 commentedon Nov 20, 2026
Plan graph written, for the agents' approval the J203 way. Approving starts every ticket as soon as its blockers have merged. OpenWiz tickets stay off the 0.1.0 must-list files until the release branch is cut and never touch cleanup wave 3's files; WizSkills tickets merge only after
v0.2.0is tagged.Longest chain: 2 links (CC1, CC3, CC5). Can start at approval: 1 of 12 (CC1), then 10 at once when it merges.
File links: CC5 on six cleanup wave 3 tickets, and CC9 on #1776: those tickets delete or move the files first, so cutting their comments earlier would be wasted work and a merge conflict. They keep the two efforts from ever colliding.
Link check:
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 1: Jake settled the comment cut (J238: every repository, only comments that earn their place, a CI check per repository with a reasoned escape tag, and the review pass in WizSkills 0.2.1), and the orchestrator asked for it planned and started the J203 way tonight, behind WizSkills 0.2.0 and its pin, off the 0.1.0 must-list files until the release branch is cut, and never colliding with cleanup wave 3; the plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7034782715
Fingerprint:
326a68beabdef1b246c827cff776a22457cc4c0a7b901f6c1498dd1e5035aebcRevision text
2 remaining items
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 3: the planner split CC2 so its CI step and BEFORE count land now while the Rust allow-reason lint waits for cleanup wave 3 to finish trimming the test folders those attributes live in (new CC13), and changed CC7's proof to deterministic tests plus a recorded hand run, because the skills eval it relied on was removed and a paid model run needs Jake's yes. CC2's CI step shares ci.yml with wave 3's #1777 on different lines (the shared-file rule). The plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7034782715
Changed since revision 2: CC2 #1817 drops the workspace lint line and the allow fixes (now CC13) and keeps its CI step and BEFORE count; CC7 #1822's proof is deterministic tests on fixture diffs plus the reviewer's recorded hand run, with no model spend, and its owned paths name a real folder; CC13 #1948 added (blocked by #1781, a file link on tests/, and by CC1 #1816, real). The orchestrator can overturn it on ClosedWiz #3065.
Fingerprint:
2d3769e62ac680d4bec8563bc10e81a1cb3b8cdbf6fc8c3099ca883e30c5307fRevision text
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 4: the orchestrator ruled that CC7's proof is its eval cases with a capped model run under Jake's standing rule for evals (at most $1 on DeepSeek V4.1 Flash), which replaces revision 3's no-spend proof; and CC14 joins so the comments contract and checker never spell the private repository's name, because WizSite's privacy check refuses CC8's byte-identical copies; CC8 now waits for it. The plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7034782715
Changed since revision 3: CC7 #1822's owned paths name
skills/review-ticket/evals/and its proof is the eval cases and the capped run, per the orchestrator's ruling (7044190588); CC14 #1953 added (blocked by CC1 #1816, real); CC8 #1823 gains a real link to CC14. The orchestrator can overturn it on ClosedWiz #3065.Fingerprint:
7913be70b8bada69f3e14330f2e74b154cb206d1942b4c9c1234939192ca6592Revision text
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 5: CC14 also fixes the checker's misreading of shell lines that nest double quotes inside a command substitution, since it already changes the checker every repository copies and has not started; and CC9, CC10 and CC11 name real folders in their owned paths instead of only a repository name, so the fleet's claim gate can read them. Same tickets, same arrows. The plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7034782715
Changed since revision 4: CC14 #1953 adds the nested-quote fix with its fixture and acceptance; CC9 #1824, CC10 #1825 and CC11 #1826 owned-path bullets now backtick real paths (
tools/,tools/collector/,tools/war-room/charts/,adapters/and the like). The orchestrator can overturn it on ClosedWiz #3065.Fingerprint:
548f694911e84456bdfdfeb5f0bc1918245ba2d0ed36aed3bdcd1a70d5e2e286Revision text
jparker2006 commentedon Nov 20, 2026
launch-fleet: needs approval: changed since revision 4 (fingerprint now 548f694911e8)
Needs you: the bodies of #1824 (CC9), #1825 (CC10), #1826 (CC11) and #1953 (CC14) were edited after revision 4 (7044422117); titles and blockers are unchanged. Nothing new under this spec starts until a new revision approves the plan, so CC14 #1953 waits even though CC1 #1816 has merged. Tickets already being built keep going.
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 6: CC10 owns the war room folder, shared with CC9, because its builder showed the new chart also needs wiring lines in the gather, publish and benchmarks files beside the charts folder. Same tickets, same arrows. The plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7034782715
Changed since revision 5: CC10 #1825's second owned-path bullet names
tools/war-room/in WizRoom instead of only its charts folder, for its chart and those wiring lines only. The orchestrator can overturn it on ClosedWiz #3065.Fingerprint:
981396394127169be3a95e2cec2e5ed538acfed1d1ae263c50d770a0b3057e31Revision text
jparker2006 commentedon Nov 20, 2026
Plan graph approved by Jake, 2026-11-20, revision 7: CC7 goes back to its revision 3 proof, deterministic tests on fixture diffs with no paid model run, because the orchestrator's decisions of 8:35 AM PST keep that answer in place of its earlier one-dollar allowance. Same tickets, same arrows. The plan passed its own checks (links, relies, owned paths).
Private record: https://github.com/jparker2006/ClosedWiz/issues/3065#issuecomment-7044861664
Changed since revision 6: CC7 #1822's body is restored byte for byte to revision 3's. It owns
skills/review-ticket/scripts/for the pass's helper and its tests instead ofskills/review-ticket/evals/, and its proof is the red-first deterministic tests plus the reviewer's recorded hand run. The orchestrator can overturn it on ClosedWiz #3065.Fingerprint:
2bcfad9a4670eb6892054d79665225684cb5afbed4402fd6bbd0ae196a66325cRevision text
jparker2006 commentedon Nov 20, 2026
launch-fleet: CC14 merged; carried copies re-sync
CC14 #1953 merged at 17:43:17Z (PR #1959, fffe9a4). Under the carried-copy rule, the builders of CC8 #1823, CC9 #1824, CC10 #1825, CC11 #1826 and CC12 #1827 were told to re-sync their copies byte for byte to that version and hand back a new green head; each PR's same reviewer re-checks only the re-sync diff, then it merges by the cross-repo route. CC2 #1817's builder was told to merge main in for R1 of PR #1955. CC13 #1948 still waits on #1781. Hand check under the J87 planner's ruling on #1958.
jparker2006 commentedon Nov 21, 2026
launch-fleet: comment-cut counts (CC5 merged)
CC5 #1820 merged at 02:05:49Z on 2026-11-21 (PR #2062, head f32969a, merge 0662a11). These are the counts for every merged #1815 ticket. Comment lines are BEFORE -> AFTER, from the checker's count mode.
Total for the cuts: 14,961 -> 101 comment lines.
Still open: CC6 #1821 (openwizdev/WizSkills#226, CI running) and CC8 #1823 (openwizdev/WizSite#117, approved, merges right after RL2 openwizdev/WizSite#46).
jparker2006 commentedon Nov 21, 2026
launch-fleet: comment-cut counts, update (CC6 merged)
CC6 #1821 merged at 02:50:25Z on 2026-11-21 (openwizdev/WizSkills#226, head d9191f6, merge ecdd3e4): WizSkills, in the cut files, 3,171 -> 4 comment lines, 0 disallowed after. Files changed by open WizSkills pull requests at its start and #1806's files were skipped and listed for a follow-up.
Total for the merged cuts now: 18,132 -> 105 comment lines. Still open: CC8 #1823 (openwizdev/WizSite#117, approved; it merges right after RL2 openwizdev/WizSite#46).
jparker2006 commentedon Nov 21, 2026
launch-fleet: counts update: CC8 #1823 merged
openwizdev/WizSite#117 merged at ec32f93 (merge ba3d5ca). WizSite comment lines: 969 -> 6 from the original base (RL2's files 414 -> 5); 0 disallowed. The 6 kept lines are allowed kinds (privacy warnings and build markers). All tickets of this spec, CC1 to CC14, are now closed.
jparker2006 commentedon Nov 21, 2026
launch-fleet: spec summary
All 14 tickets of #1815 are closed: CC1 to CC14 (#1816 to #1827, #1948, #1953). The last merge was CC8, openwizdev/WizSite#117 at ec32f93 (merge ba3d5ca, 2026-11-21T20:26:26Z). The counts are in the table comments above (7055935622, 7056225657, 7068760114). CC12 merged in the private repository and is checked by hand (record 7047750753 on #1827). Follow-up #2075, the files CC5 skipped for open work, stays open and ready-for-agent outside this spec.
Closed by hand under the J87 planner's instruction (2026-11-21), as with #1356, because fleet.sh can't verify #1827's private merge.
jparker2006 commentedon Nov 21, 2026
launch-fleet: fleet done #1815
The spec's loop is deleted, and its fleet has ended. Follow-up #2075 is handed to the planner.