Answer architecture round 2: 2 🔴, 3 🟡; route from the ladder by rung, keep a stepped-up rung across reruns and reloads, test the judge's bundled range, and file item 136 for routing on the item taken

This commit is contained in:
2026-10-14 23:06:54 +02:00
parent c75e576773
commit d6e019444d
20 changed files with 305 additions and 148 deletions
+2 -2
View File
@@ -10,6 +10,7 @@ from claude_code.entries import hit_limit, limit_said, parse_entry, structured_o
from loop_claude.project.records import HUMAN_RULE_NAMES
from loop_claude.cycle.retry import Limited, retried
from loop_claude.stop import Stop
from todo_table import TOP_SCORE
# Routes the next cycle's worker; loop-claude never steps it down, so the item the chunk was routed on may count too.
BUNDLED = "The highest R + C the agent states for a todo.md item it took into this chunk; 0 when it states none."
@@ -61,8 +62,7 @@ class Reply:
REPLY_TYPES = typing.get_type_hints(Reply)
JSON_TYPES = {bool: "boolean", int: "integer", str: "string"}
# R and C each run from 1 to 10.
HIGHEST_R_PLUS_C = 20
HIGHEST_R_PLUS_C = 2 * TOP_SCORE
JUDGE_SCHEMA = {
"properties": {field.name: {**field.metadata, "type": JSON_TYPES[REPLY_TYPES[field.name]]} for field in dataclasses.fields(Reply)},
"required": list(REPLY_TYPES),