12 KiB
12 KiB
todo
0.1.0
The rebuild's design sketches, the blind judges' verdicts on them and what to take from each: ~/code/claude-handoffs/claude-config_2026-09-28.md.
The first four items are the places the panels on rebuild at 8585257 and on PR #182 named under Self-sufficiency and Locality, the dimensions under the floor (scores: docs/decisions.md → "comprehension floor").
- Make a failed session delete stop the loop, and give the session one owner.
delete_session(session.py:32) only prints a failed removal, soclosereportsArchivedand the next chunk resumes the finished chunk's session without its own task prompt. Return aFailureand stop on it; movesession_openintosession.py; havetranscript_filereturnstr | None. Goal 4.1. - Give larv-review §3's rules one home per rule. Every seat of the 2026-10-01 panel needed
SKILL.md,review-findings.mdandCLAUDE.mdopen to apply one rule of "Round cap" or "Re-entry". Goal 4.1. - Name
loop_claude's modules and words by what each holds. The 2026-10-01 panel misreadformats.py(it holds every Claude Code shape,mark_trustedandmodels_inincluded),steps.py,outcome.pyandhuman_needed.py. "Project", "transcripts", "verdict" and "model" each name two or three things. Goal 4.1. - State in
reload.pywhy a loop reloads its own script, and tie each exit-1 clause of--helpto theStopthat produces it. Two seats found the reload's purpose nowhere in the code, and one could keep the exit contract true only by grepping everyStop(1. Name what a reload could not read, and its likely cause, in both--helpand the reload's error: "loop run" is defined nowhere a reader looks. Goal 4.1. - Give the judge the project's recorded decisions, and ask it whether anything the project records settles a choice. Today it reads only the README's Goals and Audience (
premises.py) and cannot see an answer recorded indocs/decisions.mdorAGENTS.md, so it can interrupt the human again for a question already answered. Revise the decision "a judge decides interrupts, not the worker's self-report" to match. Goal 4.2. - Archive the transcript as each cycle ends. Today only an interrupt or a finished chunk archives it, so after a failed exit or Ctrl-C the transcript stays unarchived until the chunk finishes, and is never archived if it does not. Goal 2.
- Key a project on its checkout's full path, and refuse to start while another session uses that key. The key names the project's session, archive folder and models entry.
project_namedrops the leading/, so~/code/aand/ashare all three, and one loop can resume or delete the other's session. Goal 4.1. - Give principles-auditor and prose-reviewer a way to list the project's files. In the 2026-09-30 audit run their
tools: Read, Grep, Globgave them only Read. Each read the files that imports and.gitignorenamed, and listed the files it could not reach. Goal 4.1. - Move what
loop-claudewrites out of~/.claude.json, and ask the human about each write that must stay. Claude Code owns that file and writes it.trustreads it, changes it and writes it back, so a write that lands in between is lost. Goal 4.1. - Make the small changes filed against the review's rules. Goals 4.1 and 4.4.
- larv-review §3: name CLI flags and exit codes among the external contracts that fire the architecture pass, or record that they do not. The product-owner row names the CLI; the architecture row does not.
review-findings.md: give a 🟡 shown factually wrong the 🔴's way out. Today it can only be fixed, declined on a goal, or filed.- Make the contributor a standing member of every project's audience. A project drops them only where its
## Audiencesays maintainability does not matter. State that inCLAUDE.md's goals-and-audience rule, and have larv-review's comprehension floor name the contributor as the reader it serves. The floor then gates every chunk while the contributor stands, and a project that drops them skips it. - Have larv-review's prose pass fix only what the chunk touched, and file the rest per
CLAUDE.md→ "Working loop". Today its fixes land "in this chunk", including cited sections and the sweep that runs with the architecture pass. In the 2026-09-30 bench, rebuild's costliest runs sprawled outside the chunk: one deleted README facts, and one took 13 rounds on the mypy case where main took 6–7 for the same fixes. Source:~/code/claude-handoffs/claude-config/2026-09-30/bench/comparison.md.
- Clean up the rules, skills, agents, plan and decision log. Goal 4.1.
docs/decisions.md: give the comprehension-floor and vocabulary entries a premise that has not expired. Both say "Valid until the next scoring run", and every run since has passed it. Put the floor's rule first and its runs' scores in a table.- larv-review: move its reasons for
/security-reviewand for the premises chunk's review intodocs/decisions.md. They are rejected alternatives, which the decision log holds. comprehension-panel: cut the run history and the restated description. They carry nothing the instructions need.systems-architect.md: cut the "one home" line, and break Reasonability Review's steps 4 and 5 into shorter points each.
- Sort
bin/'s imports on their first binding, and say inprinciples/technical-principles.md→ "Deterministic order" how case sorts and which groups Python has. Today they sort by path, so moving a module reorders unchanged lines. The principle's "host packages" names no Python group. Goal 4.1. - Make the small fixes filed by the 2026-10-01 principles audit against
bin/. Goal 4.1.- Prefix each diagnostic
loop-claudeprints with its level,warning:at the least, so a run's output can be grepped for what needs fixing. - Have
make_privatereturn aFailurelikereplace_filebeside it. - Check the catalog
nameinmodels_inas well asid. - Name
part_line's limits 160 and 400, renamePopened, and givehuman_needed.stop(to, but)andTOnames that read without the caller. - Sort
worker_args' flags and the globs incatalog.pyandsession.py. - Write
"bypassPermissions"once for every claudeloop-claudestarts. - Keep the judge's evidence and model in each archived
.verdict.md. - Move the test helpers
ROOTandreadme_floorout oftest_python_floor.py, which two other tests import them from.
- Prefix each diagnostic
- Inject output and storage into
Effects, and test what each step prints.printandopenare called directly acrossbin/loop_claude/, so the stderr lines of the CLI contract can be checked only through the black-box tests. Goal 4.1. - Read transcript and stream entries into typed values where they are read.
transcript.readandrun_workerpass rawdicts, so about ten accessors informats.pyre-check shapes deep inside and mypy cannot checkrender,human_turnsorrun_worker. Goal 4.1. - Measure test coverage in the suite, and fail on a drop. Nothing measures it, so "Test coverage should not decline" cannot be held. Goal 4.1.
- Give the reviewer agents only the tools they need.
systems-architect.md,product-owner-reviewer.mdandstability-reviewer.mdhave notools:line, so each can edit the branch it reviews;review-findings.mdsays a reviewer edits nothing. Goal 4.1. - Add a test that
.gitignorekeeps credentials, transcripts and memory files out.test_gitignore.pychecks only that every tracked file is allowlisted; a widened negation such as!*.jsonwould un-ignore.credentials.json. Goal 3. - Archive a finished chunk's subagent transcripts before
delete_sessionremoves them. Today only<id>.jsonlis copied, so every reviewer's full run in an unattended chunk is lost. Goal 2. - Enable the
claude-securityplugin insettings.json, or drop larv-review's full-scan row. No machine has it enabled, so every chunk that fires the pass skips it. Goal 4.1. - Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers. On this repo the frontend, REST and logging auditors each read the whole project to report "does not apply", and one 🟢 fix reruns ten whole-project reads. Goal 4.4.
- Give
settings.json's model one writer. Claude Code rewrites"model"in this tracked file whenever a model is picked, so one/modeldirties the checkout and overrides the synced choice. Goal 4.3. - Rewrite
statusline.shin Python, and test it. It needsjqand GNUdateon every machine,evals jq output, has three near-identical usage blocks and no test. Goal 1. - Move what the plan and the decision log point at under
~/code/claude-handoffs/into the repo. The design sketches, the judges' verdicts and the bench scripts are unreachable from another machine's checkout. Goal 1. - Say in
systems-architect.mdthat a REST API's/v1/prefix is not versioning machinery to defer. Its "defer the versioning story" can be read againstprinciples/rest-apis.md, which requires the prefix from the start. Goal 4.3. - Judge a cycle on more than the transcript's last 40,000 characters.
judge_promptcuts the transcript there. The session spans every cycle of the chunk, so a decision made early in a long run is never judged, and the human is not interrupted for it. Larger chunks make runs longer. Goal 4.2. - Record each finished chunk's cost and review numbers on one stats line. Goal 4.4.
- Have
loop-claudewrite the line to one file at the root of the transcript archive. The line names the project, the commit the chunk started from and the archived transcript's hash. It holds the worker's tokens from the transcript, the judge's from its JSON output, and the chunk's cycles and interrupts, which the loop counts. - End larv-review with a machine-readable summary, and have
loop-claudecopy it from the transcript onto the line: agents launched and rounds per pass; findings per pass by severity, inside the chunk's diff and outside it; and the comprehension scores when the panel ran.
- Have
- Write a
workflow-reviewskill that reads the stats and files each change it proposes to the workflow as a plan item, and haveAGENTS.mdrun it on the chunk shipping a release's last item. The workflow isCLAUDE.md,principles/, the skills, the agents andloop-claude. The skill's signals: findings outside the chunk's diff and comprehension scores per release, both from the stats; fixes after merge, from git; and the human's corrections, from the archived transcripts. Goal 4.4. - Bench about one chunk in ten against an open PR that changes the workflow, and have a blind claude rule which run better serves this repo's goal 4. Redo the chunk under the PR, from the commit it started from. The ruling claude is not told which run is which.
loop-claudepicks the chunk at random, small diffs and big ones alike; with no such PR open, no bench runs. The same outcome with less code and prose, in the chunk or in the workflow, also counts as better. The PR merges only once three benches rule it better. A bench that rules it worse closes the PR and records, indocs/workflow-learnings.md, what the PR changed and why it lost. The ruling and both runs' numbers go on the chunk's stats line. Start from the 2026-09-30 bench's scripts:~/code/claude-handoffs/claude-config/2026-09-30/bench/. Needs the stats line. Goals 4.1 and 4.4. - Bring the project to the comprehension floor on the four-seat panel. Every dimension and the overall must reach 7.0, and none may fall below its best run on
rebuild. A dimension under the floor gets its places filed above this item.