Plan the rebuild of loop-claude and the review process on the rebuild branch
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
|
||||
## 0.1.0
|
||||
|
||||
Ships when a four-seat scoring run puts every dimension and the overall at 7.0 or above (`docs/decisions.md`). Ordered by the dimension each item lifts, lowest first, per the 2026-09-28 panel; each is one chunk.
|
||||
Ships when a four-seat scoring run puts every dimension and the overall at 7.0 or above (`docs/decisions.md`). The rebuild lifts every dimension: each item below is one chunk on a worktree based on `origin/rebuild`, its PR into `rebuild`, until the last item merges `rebuild` into main. The sketches, the judges' verdicts and what to take from each: `~/code/claude-handoffs/claude-config_2026-09-28.md`.
|
||||
|
||||
- **Give `loop-claude` one failure channel, so `run_loop` reads `run_cycle`'s result without decoding it.** Four seats: today `run_cycle` (`bin/loop-claude:141`) returns a `Stop`, a failure string or `""`, `replace_json` an `OSError` or `None`, and `strike` (`:134`) sleeps under a name that hides it.
|
||||
- **State larv-review's re-entry rules in one place a fix's path reads from.** Three seats drew the graph by hand from `skills/larv-review/SKILL.md:8`, `:46`, `:63`, `:85`, `:91`, `:112` and `:122`; the 2026-09-28 split into the passes is what they read.
|
||||
- **Make the model resolution one unit, so `project_model` returns no sentinel `model_args` must know.** Three seats: `project_model` (`bin/loop-claude:297`) returns `""` when both env vars are set, safe only because `model_args` (`:246`) prefers the env var.
|
||||
- **Validate the reload state without relying on `field.type` being a real type.** Three seats: `loop_state` (`bin/loop-claude:274`) breaks on `from __future__ import annotations`, and nothing marks it.
|
||||
- **State the session lifecycle where the session id is made.** Two seats assembled it from `run_loop:126`, `session_open`, `worker_args` and `delete_transcript_files`: finishing deletes the transcript, so the fixed id starts fresh.
|
||||
- **Say in `typed` (`bin/loop-claude:415`) what each dropped entry kind is in Claude Code.** Three seats trusted the clauses without understanding them; the architect's least-want-to-modify, and `interruption` reads as the loop's interrupt.
|
||||
- **Make the reviewer agents agree with larv-review and `CLAUDE.md` on who writes docs and where decisions go.** `agents/product-owner-reviewer.md:27` and `agents/systems-architect.md:103` have the agent update the README, against larv-review's "reviewers only report"; `agents/systems-architect.md:111` and `:217` put decisions and the glossary in the README, against `docs/decisions.md` and `CLAUDE.md` → "Vocabulary".
|
||||
- **Name `loop-claude`'s helpers for what they do.** Four seats: `typed`, `said`, `strike`, `chosen`, `handed`.
|
||||
- **Head `bin/loop-claude:95-251` by job.** Two seats: thirteen functions of loop control, README parsing, archiving and I/O sit under no header, and the worker and the interrupt sit under headers for the file they touch (`:429`, `:534`), which the five-headers decision keeps.
|
||||
- **Place `principles/review-protocol.md` where `agents/stability-reviewer.md:12` stops listing the principles files as code rules.** The architect: the protocol is the review process's contract, and the list at `:12` omits it.
|
||||
- **Rerun the four-seat panel and score every dimension and the overall at 7.0 or above.** A dimension under it gets its places filed above, and this item stays last.
|
||||
- **Pin loop-claude's behaviour in black-box tests that pass against main's script.** Run `bin/loop-claude` as a subprocess with a fake `claude` on `PATH` and temporary `HOME` and checkout: premises refusals, exit codes, the worker's and the judge's three strikes, an ungrounded verdict, the interrupt off a terminal, the session resumed while unfinished and fresh after finishing, the models file and `~/.claude.json` rewritten with their modes, the reload at a cycle boundary.
|
||||
- **Lay out `bin/loop-claude` as a launcher over a `bin/loop_claude/` package, with the loop, checkout and premises moved in.** The launcher resolves its own symlink, injects `Paths` and the environment, and is the only thing that exits; `main` owns the loop state, carries it across a reload on argv, and maps `Stop | Retry | Continue`. The black-box tests pass unchanged.
|
||||
- **Move the transcript, the session and the worker into their own modules.** `UserEntryKind` names each entry Claude Code writes; a malformed line is skipped; an unreadable transcript is its own error, never "typed nothing"; `session` states the lifecycle once, where the id is made.
|
||||
- **Move the judge, the interrupt, trust and model resolution into their own modules.** The judge is retried alone and checks evidence on every verdict against the rendered transcript; `models` owns the whole resolution, env overrides included, with no sentinel; `trust` names a `projects` entry that is not an object; `input()` at end of file is exit 2.
|
||||
- **Archive the raw transcript, deduplicated by content hash, with the verdict beside it, and stop on a failed archive.** Tests first; the changelog line says what the archive now holds.
|
||||
- **Replace `bin/test_loop_claude.py`'s internal-function tests with the black-box tests plus unit tests of the pure parsers.**
|
||||
- **Hold every reviewer to one findings document, `principles/review-findings.md`.** Severity, verdict, rounds with round 2 verifying each earlier finding, the per-chunk round cap, declining, and `/security-review`'s HIGH/MEDIUM/LOW mapped onto the scale; it replaces `principles/review-protocol.md`.
|
||||
- **Rewrite larv-review around one pass table and one re-entry rule.** A trigger per pass, each stated only there; the re-entry paragraph classifies a fix by the widest thing it touches; forge neutrality, the draft PR, CI watched in the foreground, the comprehension floor, the auto-reviewer's waits and the goal-alignment check carried over.
|
||||
- **Make the three reviewer agents pure reporters in the findings document's vocabulary.** Keep their names and checklists; remove every README- and decision-writing duty and every private severity or verdict scale.
|
||||
- **Bring `CLAUDE.md` → "Vocabulary", the README and `docs/decisions.md` in line with the rebuild.** Trigger covers every pass, round cap counts per chunk, "looping reviewer" goes if the rule no longer needs it; superseded decisions leave the log.
|
||||
- **Score `rebuild` with the four-seat panel at 7.0 or above on every dimension and the overall, none below the 2026-09-28 run, then merge it into main.** A dimension under it gets its places filed above this item. Before merging, a loop running main's script reloads into the new one at its next cycle boundary: accept main's `--reloaded` state, or say in the changelog that running loops stop once.
|
||||
|
||||
Reference in New Issue
Block a user