Answer architecture round 1: 0 🔴, 8 🟡; read old routes' rungs, write R in rank_todo, route reviews through review_rungs, file item 168

This commit is contained in:
2026-10-16 12:11:25 +02:00
parent 149108e8d8
commit 12909f233d
20 changed files with 141 additions and 94 deletions
+5 -5
View File
@@ -45,10 +45,10 @@ Where that model is on the routing ladder (bin/model_routing/ladder.py), the wor
interrupt run on one of the ladder's rungs: a model at an effort. As a chunk starts, todo.md's top
item in the next release that does not wait routes it: an item waits while it is marked question,
or while an item that blocks it is still in the table. The item's L picks the worker's rung,
counted from the model's cheapest rung, and an L of 2 or less picks a rung below it; without such
an item, or with no L, the chunk runs on the model's cheapest rung. The item's E + I picks the
reviewers' rung, never below the worker's or the cheapest rung, and an E + I of 5 or more picks a
rung above the cheapest. The worker's first prompt names the rung and the item, and asks the worker to
stepping from the model's cheapest rung by WORKER_STEPS in bin/model_routing/ladder.py, below it
for a low L; without such an item, or with no L, the chunk runs on the model's cheapest rung. The
item's E + I picks the reviewers' rung, stepping up from the cheapest rung by REVIEW_STEPS there,
never below the worker's rung. The worker's first prompt names the rung and the item, and asks the worker to
name each item the chunk takes, with its L and E + I. The prompt has the worker launch each review
that runs on a rung other than its own on that rung: the reviewers on theirs, and each
comprehension seat and the security pass on the cheapest rung. Below the cheapest rung, it has the
@@ -115,7 +115,7 @@ Exit 1, saying why, when:
worker fails when claude cannot start, exits non-zero, is killed, or ends without a result event;
a judge when claude cannot start, exits non-zero or prints no json reply, or its reply misses or
mistypes a field, interrupts or quotes an answer without a question, gives an unfinished verdict
an L outside 0 to 4, or quotes a passage the transcript does not hold; it holds an elided
an L off its scale, or quotes a passage the transcript does not hold; it holds an elided
passage when each fragment appears in order.
A usage limit is not a failure, and restarts the count of three: the worker or the judge is
retried 2 minutes after the limit resets, or every 10 minutes when the reset time is unknown or