Answer architecture round 1: 0 🔴, 4 🟡; move verdicts out of cycle, derive RECORDED, type the archived worker as Record, drop stale help names
This commit is contained in:
@@ -94,7 +94,7 @@ The architecture pass of PR #296 found one rung under two names: `bin/model_rout
|
||||
|
||||
### 210. Hold the escalation mark in one module that states that one trigger buys one step, so a reader changes it without opening four files.
|
||||
|
||||
Release 0.3.0's scoring runs found the mark spread out (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). `bin/model_routing/route.py:66` `Route.escalated_at`: "the escalation mark lives in six units across four files" (Junior A, first run), "one concept spread over five files" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:153` `escalation_mark`: "no single place states that one trigger buys one step" (Maintainability senior, rerun). `bin/loop_claude/cycle/run.py:45` `Cycle.stepped_from` and `:69` `escalated`: "state outside the state machine, cleared on every event but HumanTyped" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:216` `quotes_checked` checks the escalation against `Grounds.since_step` beside the quoted answer: "three quote checks follow different rules" (Junior A, rerun). This lowers Locality: changing the mark means opening `route.py`, `judge.py`, `run.py` and `routing.py` together. Move the mark's stamping, `STEP_LINE`, the since-step grounds and their check, and the step's state into one module, and make `stepped_from` part of the cycle's state machine. Make `Route.escalated_at`, `escalation_mark`, `Cycle.stepped_from`, `escalated` and `quotes_checked` easier to read. The archive's `Worker:` record holds the mark as `escalated_at`, so a rerun keeps it; the move keeps that field. `escalation_mark` now lives in `bin/loop_claude/cycle/verdicts.py`.
|
||||
Release 0.3.0's scoring runs found the mark spread out (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). `bin/model_routing/route.py:66` `Route.escalated_at`: "the escalation mark lives in six units across four files" (Junior A, first run), "one concept spread over five files" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:153` `escalation_mark`: "no single place states that one trigger buys one step" (Maintainability senior, rerun). `bin/loop_claude/cycle/run.py:45` `Cycle.stepped_from` and `:69` `escalated`: "state outside the state machine, cleared on every event but HumanTyped" (Mid A, rerun). `bin/loop_claude/cycle/judge.py:216` `quotes_checked` checks the escalation against `Grounds.since_step` beside the quoted answer: "three quote checks follow different rules" (Junior A, rerun). This lowers Locality: changing the mark means opening `route.py`, `judge.py`, `run.py` and `routing.py` together. Move the mark's stamping, `STEP_LINE`, the since-step grounds and their check, and the step's state into one module, and make `stepped_from` part of the cycle's state machine. Make `Route.escalated_at`, `escalation_mark`, `Cycle.stepped_from`, `escalated` and `quotes_checked` easier to read. The archive's `Worker:` record holds the mark as `escalated_at`, so a rerun keeps it; the move keeps that field. `escalation_mark` now lives in `bin/loop_claude/verdicts.py`.
|
||||
|
||||
### 190. Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.
|
||||
|
||||
@@ -142,7 +142,7 @@ The README line covers the bench's transcripts in `workflow-bench/logs/` too (go
|
||||
|
||||
### 218. Drop `LEGACY_WORKER` from `bin/model_routing/route.py`, so `route_from` reads only the JSON record, once `routing-calls-raised.md` holds a `Reset` stamped after PR #357's merge.
|
||||
|
||||
PR #357 archived the route as a JSON record, and kept `LEGACY_WORKER` to read the prose worker lines loop-claude wrote before it. The routing figures still count the chunks that hold them: 51 when PR #357 shipped, every chunk finished after the reset of 2026-10-21T22:16:41Z. Once a later `Reset` puts those chunks out of the figures, only a chunk left open across PR #357's merge still needs the old reader, and it routes afresh without it. Delete `LEGACY_WORKER`, `legacy_fields` and their test, and the sentence in "loop-claude --help" on reading the prose lines.
|
||||
PR #357 archived the route as a JSON record, and kept `LEGACY_WORKER` to read the prose worker lines loop-claude wrote before it. The routing figures still count the chunks that hold them: 51 when PR #357 shipped, every chunk finished after the reset of 2026-10-21T22:16:41Z. Once a later `Reset` puts those chunks out of the figures, only a chunk left open across PR #357's merge still needs the old reader, and it routes afresh without it. Delete `LEGACY_WORKER`, `legacy_fields` and their test, and the sentence in "loop-claude --help" on reading the prose lines. Reword the comment at `Rung.__str__` in `bin/model_routing/ladder.py`: it gives the archive lines written before `Route.record` as a reason `parse` must keep reading that spelling.
|
||||
|
||||
### 123. Have `bin/comprehension_history.py` parse each history entry once into seats, votes and places, so `latest_places`, `worse_places` and `worse_votes` neither depend on table order nor split a label to find a seat.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user