Answer architecture round 1: 1 🔴, 6 🟡; escalate in an unrouted chunk's first cycle, hold the limit and marker in routing.py, count escalations per starting rung, decline counting the limit from the current rung

This commit is contained in:
2026-10-15 16:20:28 +02:00
parent 33d5013039
commit c0be1fdffc
8 changed files with 63 additions and 38 deletions
+2 -2
View File
@@ -198,9 +198,9 @@ Valid while the index ranks these models, and while no newer model joins the cat
2026-10-15, lilleman asked for it. Serves goals 1.1 and 1.4: a task too hard for a cheap rung gets a dearer one only once it proves hard, and only for the part that proved hard.
Three triggers in `CLAUDE.md` → "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a pass reports a 🔴 in round 2 or later. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk's item picks, the rung the chunk started on, or the project's rung for a chunk no item routed. A step-up between cycles raises the worker but not that limit, so the worker never escalates past what its item was judged to need by more than two rungs (goal 1.4).
Three triggers in `CLAUDE.md` → "Working with the codebase" mark a task too hard: a re-score of the item on the project's rung or above picks a higher rung, the same failing test or finding survives two fix attempts, or a pass reports a 🔴 in round 2 or later. When one fires, the worker hands the hard part to a subagent one rung above its own, edits included, though the delegation rule keeps edits in the worker's thread: the escalation exists because the worker could not get them right. Each further trigger on that task climbs one more rung. Without lilleman's yes the climb stops two rungs above the rung the chunk's item picks, the rung the chunk started on, or the project's rung for a chunk no item routed. A step-up between cycles raises the worker but not that limit: lilleman set the limit from the rung the chunk started on, so a worker that has stepped up may need a yes for its first escalation.
loop-claude's prompt names the rungs a trigger opens, so the worker computes no rung positions. Its `ESCALATION_CAP` in `bin/loop_claude/cycle/prompts.py` holds the two. The worker opens each escalated subagent's prompt with `Escalation trigger <n>:`. The archive keeps the raw transcript, which holds that prompt, and `bin/routing_figures/` counts the escalations by trigger in `routing-figures.md`.
loop-claude's prompt names the rungs a trigger opens, so the worker computes no rung positions, and tells the worker to open each escalated subagent's prompt with `Escalation trigger <n>:`. `bin/loop_claude/routing.py` holds the limit and that marker. The archive keeps the raw transcript, which holds the marked prompt, and `bin/routing_figures/` counts the escalations by trigger for each rung routed chunks started on, in `routing-figures.md`.
Valid while the ladder orders its rungs by competence.