Accept an escalation quote only from transcript entries after the worker's last step-up, so a later trigger steps the worker again #321
Reference in New Issue
Block a user
Delete Branch "item-180"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.pyInterruptstill ordersescalationandbundledopposite toUnfinished. Reordering touches every construction of both across the tests, a readability change outside this item;entries_readdefaults to None, so an unstamped verdict steps nothing.5bc3247e652e7aed75bc32470202bc60f95bc3247baefcbb0370462980207ba120b5