Answer stability round 1: 0 🔴, 3 🟡 (0 misread); bound the forge's CLI with a timeout in one runner, and read a pull request from a deleted fork
CI / tests (pull_request) Successful in 3m20s

This commit is contained in:
Lilleman
2026-11-19 23:30:30 +01:00
parent 356ae263e1
commit 0c52688ff8
7 changed files with 35 additions and 30 deletions
+3 -1
View File
@@ -26,6 +26,8 @@ from machine_load.slots import slot_folder
# Seconds before a Python script loop-claude runs is stopped, so a hung one, such as chunk-preflight, cannot hold the loop.
PYTHON_TIMEOUT = 600
# Seconds a command of the forge's CLI may take, so a stalled one cannot hold the loop.
FORGE_TIMEOUT = 60
class Streaming(typing.Protocol):
@@ -123,7 +125,7 @@ def system_effects(home: pathlib.Path, env: typing.Mapping[str, str], backends:
discard_typed=lambda: termios.tcflush(sys.stdin, termios.TCIFLUSH),
dm=lambda text, directory: notify(text, directory, home, backends),
execv=os.execv,
forge=runner,
forge=lambda cwd: runner(cwd, FORGE_TIMEOUT),
git=git_repo.git,
input=input,
local_time=lambda seconds: time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(seconds)),