Accept an escalation quote only from transcript entries after the worker's last step-up, so a later trigger steps the worker again #321

Merged
lilleman merged 13 commits from item-180 into main 2026-10-18 14:16:37 +02:00
Owner

When an escalation steps the worker, the route now marks how many transcript entries the session held. The judge reads a [step] line there, and its escalation quote counts only from the worker's own lines after the mark: loop-claude's prompts and the human's lines repeat earlier passages, so they don't count. This replaces the per-cycle guard, which dropped every escalation after the first in a cycle and so lost a trigger that fired after an interrupt or a quoted answer. The archived worker line records the mark; the decision, the judge's schema, the worker's prompts and the CHANGELOG entry are revised to match.

No rule overrides.

Places left as they were: bin/loop_claude/cycle/judge.py Interrupt still orders escalation and bundled opposite to Unfinished. Reordering touches every construction of both across the tests, a readability change outside this item; entries_read defaults to None, so an unstamped verdict steps nothing.

When an escalation steps the worker, the route now marks how many transcript entries the session held. The judge reads a [step] line there, and its escalation quote counts only from the worker's own lines after the mark: loop-claude's prompts and the human's lines repeat earlier passages, so they don't count. This replaces the per-cycle guard, which dropped every escalation after the first in a cycle and so lost a trigger that fired after an interrupt or a quoted answer. The archived worker line records the mark; the decision, the judge's schema, the worker's prompts and the CHANGELOG entry are revised to match. No rule overrides. Places left as they were: `bin/loop_claude/cycle/judge.py` `Interrupt` still orders `escalation` and `bundled` opposite to `Unfinished`. Reordering touches every construction of both across the tests, a readability change outside this item; `entries_read` defaults to None, so an unstamped verdict steps nothing.
lilleman added 2 commits 2026-10-18 13:24:06 +02:00
lilleman added 2 commits 2026-10-18 13:50:07 +02:00
lilleman added 8 commits 2026-10-18 14:12:57 +02:00
lilleman marked the pull request as ready for review 2026-10-18 14:16:24 +02:00
lilleman added 1 commit 2026-10-18 14:16:25 +02:00
lilleman merged commit 2911d3f4cc into main 2026-10-18 14:16:37 +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#321