Answer principles round 1: 0 🔴, 2 🟡; drop the stale clause from item 174, point --help at review_choice.py, and tidy the new module's docstring, imports and comments

This commit is contained in:
2026-10-23 03:45:46 +02:00
parent 061118be0b
commit 061b32dd66
5 changed files with 15 additions and 14 deletions
+5 -5
View File
@@ -13,7 +13,7 @@ QUOTE_SOURCES = listed(("README.md's Goals and Audience", *RECORD_FILES, *HUMAN_
# Where the worker may write an answer the human typed, so it counts as recorded.
ANSWER_DESTINATIONS = "README.md's Goals or Audience, " + ", ".join(RECORD_FILES) + ", todo.md or a comment"
ANSWERS_RECORDED = f"every answer the human typed in it that a later chunk could need is recorded in {ANSWER_DESTINATIONS} at the one place it governs"
# How the launch and rerun sentences name the reviews that no replay lowered: "each reviewer" for every such pass, then the two reviews that are no pass.
# How review_launches names the reviews that no replay lowered: "each reviewer" for every such pass, then the two reviews that are no pass.
EACH_REVIEWER = "each reviewer"
EACH_SEAT = "each comprehension seat"
THE_SECURITY_PASS = "the security pass's subagent"
@@ -24,9 +24,9 @@ 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."""
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}"
routed = f"{routed_by(route, project)} {recount(route)}" if route.item else " ".join(rung_sentences(route, project))
opening = f"{routed}\n\n" if routed else ""
return f"{task}\n\nContinue any open draft PR or worktree for the chunk before creating a new one.\n\n{opening}{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}"
def routed_by(route: Route, project: Rung | None) -> str:
@@ -84,7 +84,7 @@ def taken_in_launches(choice: ReviewChoice) -> list[str]:
if not choice.higher:
return []
picks = [f"`{rung.agent_args()}` from {escape_and_impact}" for rung, escape_and_impact in choice.higher.items()]
return [f"Where an item you take into the chunk has an E + I of {min(choice.higher.values())} or more, launch each reviewer with the Agent tool set to {listed(picks, 'and')}."]
return [f"Where an item you take into the chunk has an E + I of {min(choice.higher.values())} or more, launch {EACH_REVIEWER} with the Agent tool set to {listed(picks, 'and')}."]
def rung_named(rung: Rung, route: Route, project: Rung) -> str: