Answer principles round 1: 1 🔴, 6 🟡 (0 misread); end the AGENTS.md decision with item 585, send the routing calls once where no development clone exists, and file five principle findings as items 591 to 595
This commit is contained in:
@@ -55,22 +55,27 @@ def new_calls(root: pathlib.Path, paths: Paths, env: Mapping[str, str], effects:
|
||||
|
||||
|
||||
def raise_calls(root: pathlib.Path, new: list[Call], rung: Rung, loop: Loop) -> Stop | None:
|
||||
"""Puts the calls to the human through a claude in this setup's development clone, where the routing decision is changed. Off a terminal, or on a machine without that clone, they are only said, and stay in the figures, raised at the next measurement that has both."""
|
||||
"""Puts the calls to the human through a claude in this setup's development clone, where the routing decision is changed. Off a terminal they are only said, and stay in the figures, raised at the next measurement on one. On a machine without that clone they are said and sent as the DM, the only way that machine has to put them to the human, and marked raised, so they are not sent again every measurement."""
|
||||
bullets = "".join(f"- {call.sentence()}\n" for call in new)
|
||||
question = f"build-release's routing figures call for a routing change:\n{bullets}The figures: {root / archive.FIGURES}"
|
||||
say(f"\n{question}", loop.effects)
|
||||
tell(f"build-release in {loop.root} asks:\n\n{question}", loop.effects)
|
||||
if not loop.paths.config_clone.is_dir():
|
||||
say(f"No development clone at {loop.paths.config_clone}, where the routing decision is changed: the calls stay in the figures.", loop.effects)
|
||||
keep_raised(root, new, loop)
|
||||
return None
|
||||
if not loop.effects.on_terminal():
|
||||
say("Not on a terminal: the calls are raised again at the next measurement.", loop.effects)
|
||||
return None
|
||||
if not loop.paths.config_clone.is_dir():
|
||||
say(f"No development clone at {loop.paths.config_clone}: the calls are raised again at the next measurement.", loop.effects)
|
||||
return None
|
||||
prompt = f"Put these calls for a routing change from build-release's figures to the human, and don't change anything until they answer:\n{bullets}The figures are in {root / archive.FIGURES}. The ladder, its steps and the delegation rule are docs/decisions.md → `routing:`, and a change to them is the human's. Record what they decide in this checkout, the development clone, as the setup's CLAUDE.md says; the next chunk of this repo files the plan item for these calls."
|
||||
unstarted = hand_over(ClaudeCommand(claude_args(rung, [prompt]), str(loop.paths.config_clone), {}), loop.effects)
|
||||
if unstarted:
|
||||
return Stop(1, f"could not start claude for the routing calls in {loop.paths.config_clone}, the setup's development clone: {unstarted.reason}")
|
||||
# Raised once the human has seen them, answered or not: an unanswered call reaches the plan through docs/decisions.md → "Working rules", so it is not asked twice.
|
||||
keep_raised(root, new, loop)
|
||||
return None
|
||||
|
||||
|
||||
def keep_raised(root: pathlib.Path, new: list[Call], loop: Loop) -> None:
|
||||
"""Raised once the human has seen them, answered or not: an unanswered call reaches the plan through docs/decisions.md → "Working rules", so it is not asked twice. Without a development clone the DM is how they saw them."""
|
||||
if unmarked := state.mark_raised(root, new, utc(loop.effects.now()), loop.effects.replace_file):
|
||||
say(f"routing figures: {unmarked.reason}", loop.effects)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user