Answer principles round 1: 1 🔴, 7 🟡 (0 misread); every effect is handed in as an argument, no test patches a global, and the traces principle scopes tools that run on their user's machine
CI / tests (pull_request) Successful in 3m43s

This commit is contained in:
2026-11-19 12:42:03 +01:00
parent 8ca612b7a4
commit cb3135bc8c
124 changed files with 1437 additions and 793 deletions
+13
View File
@@ -4,6 +4,7 @@ import sys
import typing
from failure import Failure
from rung_replay.archive import kept_report
from model_routing.ladder import Ladder, Rung
from claude_code.reply import Limited
from loop_state.paths import paths_from
@@ -44,3 +45,15 @@ def limited_exit(tool: str, limited: Limited) -> int:
def failed(tool: str, reason: str) -> int:
print(f"{tool}: {reason}", file=sys.stderr)
return 1
def say(text: str) -> None:
"""Writes text to stderr, as each replay's progress and each round it leaves out are told."""
print(text, file=sys.stderr, flush=True)
def print_report(folder: pathlib.Path, report: str) -> None:
"""Prints the report a replay ends with, and keeps it in folder, beside the runs."""
print(report)
if kept := kept_report(folder, report):
say(kept.reason)