Answer stability round 1: 0 🔴, 2 🟡 (1 misread); compact on the worker's rung, announce the compaction and skip it once the cache expired

This commit is contained in:
2026-11-19 04:42:14 +01:00
parent 30595cfdf4
commit 78dd557057
5 changed files with 113 additions and 40 deletions
+5
View File
@@ -17,6 +17,11 @@ COMPACT_WINDOW = 200_000
def run_worker(root: str, args: list[str], env: dict[str, str], effects: Effects) -> Failure | Limited | None:
wait_for_memory(effects)
return run_claude(root, args, env, effects)
def run_claude(root: str, args: list[str], env: dict[str, str], effects: Effects) -> Failure | Limited | None:
"""Runs a headless claude at once, printing what it says, and returns how it failed, or None."""
try:
proc = effects.stream_claude(args, root, env)
except OSError as failure: