Archive the route as a JSON record loop-claude reads back field by field, and name the stepping functions and the judge's taken-in levels by what they do #357

Merged
lilleman merged 17 commits from item-137 into main 2026-10-22 22:32:32 +02:00
Owner

Ships item 137.

  • Each archived Worker: line is now a JSON record (Route.record, typed Record), which route_from reads back field by field. It keeps the escalation mark as escalated_at. A frozen LEGACY_WORKER reader still reads the prose lines already archived, which the routing figures count. Item 218, blocked by item 170, drops that reader once a Reset passes them.
  • The verdict types moved to bin/loop_claude/verdicts.py, which breaks the import cycle. routing.after_unfinished and routing.after_ruling, formerly stepped and stepped_by_ruling, now take the verdict.
  • The judge's bundled fields are renamed highest_likelihood_taken_in and highest_escape_and_impact_taken_in.
  • run_loop: routed returns the Route, after_verdict takes the cycle's Concluded, and an unreadable worker line is reported on stderr.

Review:

  • Architecture: BLOCK in round 1 on four 🟡, fixed one rung up, then APPROVE in round 2.
  • Principles: approved in round 2.
  • Stability: approved in round 3.
  • Product-owner: approved in round 2.
  • Prose: 9 🟡, all fixed.
  • /security-review: no findings.
  • Not run: the full scan, which no trigger fired, and overrides, which had none.
  • Comprehension check: the paired ruling against 64023b5 is better, with both seats voting better overall.

There's no CI and no auto-reviewer, so the gate was the local suite: 719 tests pass.

Ships item 137. - Each archived `Worker:` line is now a JSON record (`Route.record`, typed `Record`), which `route_from` reads back field by field. It keeps the escalation mark as `escalated_at`. A frozen `LEGACY_WORKER` reader still reads the prose lines already archived, which the routing figures count. Item 218, blocked by item 170, drops that reader once a Reset passes them. - The verdict types moved to `bin/loop_claude/verdicts.py`, which breaks the import cycle. `routing.after_unfinished` and `routing.after_ruling`, formerly `stepped` and `stepped_by_ruling`, now take the verdict. - The judge's `bundled` fields are renamed `highest_likelihood_taken_in` and `highest_escape_and_impact_taken_in`. - `run_loop`: `routed` returns the Route, `after_verdict` takes the cycle's `Concluded`, and an unreadable worker line is reported on stderr. Review: - Architecture: BLOCK in round 1 on four 🟡, fixed one rung up, then APPROVE in round 2. - Principles: approved in round 2. - Stability: approved in round 3. - Product-owner: approved in round 2. - Prose: 9 🟡, all fixed. - `/security-review`: no findings. - Not run: the full scan, which no trigger fired, and overrides, which had none. - Comprehension check: the paired ruling against 64023b5 is better, with both seats voting better overall. There's no CI and no auto-reviewer, so the gate was the local suite: 719 tests pass.
lilleman added 4 commits 2026-10-22 21:46:49 +02:00
lilleman marked the pull request as work in progress 2026-10-22 21:46:54 +02:00
lilleman referenced this issue from a commit 2026-10-22 22:01:08 +02:00
lilleman added 3 commits 2026-10-22 22:01:08 +02:00
lilleman added 5 commits 2026-10-22 22:12:34 +02:00
lilleman added 3 commits 2026-10-22 22:18:36 +02:00
lilleman added 1 commit 2026-10-22 22:28:52 +02:00
lilleman marked the pull request as ready for review 2026-10-22 22:29:17 +02:00
lilleman added 1 commit 2026-10-22 22:32:13 +02:00
lilleman merged commit 545ab3ab37 into main 2026-10-22 22:32:32 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#357