Answer stability round 1: 0 🔴, 1 🟡 (0 misread); mark the routing calls raised only where the DM went out

This commit is contained in:
2026-12-04 10:57:50 +01:00
parent 1048e7a40a
commit 6f2d22dff6
2 changed files with 18 additions and 6 deletions
+8 -5
View File
@@ -55,14 +55,17 @@ 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 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."""
"""Says each call on stderr and DMs it, then puts it to the human through a claude in this setup's development clone, where the routing decision is changed. Off a terminal it stays unraised and comes again at the next measurement on one. A machine without that clone has no way to change the decision, so a DM that went out is the last word there and marks the calls raised; one that didn't go out leaves them to come again."""
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)
sent = 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)
if sent:
say(f"No development clone at {loop.paths.config_clone}, where the routing decision is changed: the calls above are all this machine puts to you, and they are not raised again.", loop.effects)
keep_raised(root, new, loop)
else:
say(f"No development clone at {loop.paths.config_clone}, where the routing decision is changed, and the DM didn't go out: the calls are raised again at the next measurement.", loop.effects)
return None
if not loop.effects.on_terminal():
say("Not on a terminal: the calls are raised again at the next measurement.", loop.effects)
@@ -76,6 +79,6 @@ def raise_calls(root: pathlib.Path, new: list[Call], rung: Rung, loop: Loop) ->
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."""
"""Marks the calls raised once they have been put to the human, answered or not: an unanswered call reaches the plan through docs/decisions.md → "Working rules", so it is not asked twice."""
if unmarked := state.mark_raised(root, new, utc(loop.effects.now()), loop.effects.replace_file):
say(f"routing figures: {unmarked.reason}", loop.effects)