Answer architecture round 1: 0 🔴, 1 🟡; give a chunk no item routed the same rung sentences as its resumed prompt, and sort the new modules' imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""What loop-claude says to the worker each cycle. model_routing.review_choice chooses where the reviews run; review_launches and reruns say that choice in whole sentences, and escalation says where escalated subagents run. rung_sentences gathers the three, which routed_by puts in a chunk's first prompt and rungs_held says again after a step-up or an unfinished verdict."""
|
||||
"""What loop-claude says to the worker each cycle. model_routing.review_choice chooses where the reviews run; review_launches and reruns say that choice in whole sentences, and escalation says where escalated subagents run. rung_sentences gathers the three, which fresh puts in a chunk's first prompt, after routed_by's routing sentences where an item routed the chunk, and rungs_held says again after a step-up or an unfinished verdict."""
|
||||
from model_routing.review_choice import chosen, ReviewChoice
|
||||
from model_routing.ladder import climbed, LADDER, position, Rung
|
||||
from model_routing.route import ESCALATION_MARKER, Route
|
||||
@@ -24,8 +24,8 @@ AFTER_CODE_HEALTH = 'which rank after code health (~/.claude/CLAUDE.md → "Shar
|
||||
|
||||
def fresh(task: str, premises: str, route: Route, project: Rung | None, facts: str) -> str:
|
||||
"""A chunk's first prompt; facts is preflight_facts' or preflight_failed's text."""
|
||||
escalated = " ".join((*escalation(route, project), *reruns(route, project)))
|
||||
routed = f"{routed_by(route, project)} {recount(route)}\n\n" if route.item else (f"{escalated}\n\n" if escalated else "")
|
||||
unrouted = " ".join(rung_sentences(route, project))
|
||||
routed = f"{routed_by(route, project)} {recount(route)}\n\n" if route.item else (f"{unrouted}\n\n" if unrouted else "")
|
||||
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\n{routed}{facts}\n\nThe chunk's todo.md items, or else the task above, set its scope. The goals below, {AFTER_CODE_HEALTH}, choose between ways to deliver that scope, and never widen it.\n\nFrom README.md:\n{premises}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user