Files
claude-config/todo.md
T

8.4 KiB
Raw Blame History

todo

0.1.0

⚠️ THE REBUILD NEVER MERGES INTO MAIN WITHOUT THE HUMAN'S EXPLICIT APPROVAL. Every rebuild chunk is a worktree based on origin/rebuild with its PR into rebuild, never into main. Other sessions run on ~/.claude main throughout; only the human merges rebuild into main, once they have approved the finished whole.

The sketches, the judges' verdicts and what to take from each: ~/code/claude-handoffs/claude-config_2026-09-28.md.

The first three items are the places the panel on rebuild at 8585257 named under Self-sufficiency and Locality, the dimensions under the floor (scores: docs/decisions.md → "comprehension floor").

  • Name a project's loop states and give them one transition function. Every seat had to keep two facts in mind: a run resumes only if its transcript exists (steps.py:27), and a reload carries its state through argv (reload.py:45).
  • Split written_by_human's boolean into one named check per entry shape. formats.py:42 packs three tests into one line, one seat learnt the cases only from HumanTurns in the tests, and another could not confirm them without HumanTurns. Three seats named it the unit they least wanted to modify, and the architect named it where the project rots first.
  • Annotate the parameter types in bin/loop_claude/. Whether root or path is a str or a Path is learnt by tracing callers back to bin/loop-claude.
  • Archive the transcript as each cycle ends. Today only an interrupt or a finished chunk archives it, so a failed exit or Ctrl-C loses the transcript. 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. checkout.py:22 drops the leading /, so ~/code/a and /a share 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, Glob gave them only Read. Each read the files that imports and .gitignore named, and listed the files it could not reach. Goal 4.1.
  • Make loop-claude's loop a tested state machine with its side effects injected. Functional core, imperative shell. Goal 4.1.
    • Inject the side effects: time.sleep, subprocess, input(), isatty and os.execv. Split project_model and interrupt into decisions and effects.
    • Make two Verdicts unrepresentable: one with both interrupt and finished, and one with a question and no interrupt. steps.py:49 ignores finished when interrupt is set.
    • Test run_cycle, judge_through_interrupts, retried, archive, trust, interrupt, the models file and the worker's arguments. Only the pure helpers are tested today, because nothing reaches the loop's flow without the effects.
  • Move what loop-claude writes out of ~/.claude.json, and ask the human about each write that must stay. Claude Code owns that file and writes it. trust reads 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 ## Audience says maintainability does not matter. State that in CLAUDE.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.
    • Remove what the rebuild's merge made stale. The ⚠️ paragraphs in AGENTS.md and todo.md, each decision valid "until the rebuild merges", and larv-review §3 → "Architecture"'s exemption of a chunk into rebuild from the scoring run.
    • 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-review and for the premises chunk's review into docs/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 in principles/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.
  • Judge a cycle on more than the transcript's last 40,000 characters. judge.py:80 cuts 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-claude write 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-claude copy 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.
  • Write a workflow-review skill that reads the stats and files each change it proposes to the workflow as a plan item, and have AGENTS.md run it on the chunk shipping a release's last item. The workflow is CLAUDE.md, principles/, the skills, the agents and loop-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-claude picks 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, in docs/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 rebuild to the comprehension floor on the four-seat panel, and open its PR into main for the human. 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. ⚠️ Leave the PR ready and unmerged: only the human merges it, after approving the whole rebuild. The PR deletes main's AGENTS.md paragraph on a rebuild chunk's larv-review, which only main holds.