Answer architecture round 2: 0 🔴, 1 🟡; say what happens to calls off a terminal, mark a Reset as no call written after the merge, and test a failed figures write

This commit is contained in:
2026-10-15 00:50:19 +02:00
parent acdba1abf4
commit 178fef961f
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ def new_calls(root: pathlib.Path, paths: Paths, effects: Effects) -> list[str] |
def raise_calls(root: pathlib.Path, new: list[str], rung: Rung, paths: Paths, effects: Effects) -> Stop | None:
"""Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and raised again at the next measurement; this repo's AGENTS.md files them meanwhile."""
"""Puts the calls to the human through a claude in this setup's checkout, where the routing decision lives. Off a terminal they are only said, and stay in the figures, raised at the next measurement on a terminal."""
listed = "".join(f"- {call}\n" for call in new)
print(f"\nloop-claude's routing figures call for a routing change:\n{listed}The figures: {root / archive.FIGURES}", file=sys.stderr)
if not effects.on_terminal():
+4 -2
View File
@@ -437,10 +437,12 @@ class RoutingCheck(unittest.TestCase):
def test_says_a_figure_it_cannot_write_and_goes_on(self):
self.chunks(5, 4)
(self.root / "routing-figures.md").mkdir()
(self.root / "routing-figures.lock").touch()
self.root.chmod(0o555)
self.addCleanup(self.root.chmod, 0o755)
stop, said = self.check(FakeEffects())
self.assertIsNone(stop)
self.assertIn("routing figures: could not read", said)
self.assertIn("routing figures: could not write", said)
class ModelPrompt(unittest.TestCase):