Answer prose round 1: 0 🔴, 11 🟡 (0 misread); loop-claude and do-epic are entry points everywhere, and each new sentence holds one idea
CI / tests (pull_request) Successful in 3m40s

This commit is contained in:
2026-11-19 13:44:20 +01:00
parent 2806a8edc9
commit aafe75e16f
10 changed files with 26 additions and 27 deletions
+3 -3
View File
@@ -65,12 +65,12 @@ def docker_args(image: str, mode: str) -> list[str]:
def docker(args: list[str], text: str, seconds: int) -> Ran | Failure:
"""Runs a docker command line as a process of this one: the shim's shell, as git_repo.git is git's."""
"""docker_ran with subprocess.run: the one place that starts docker as a process."""
return docker_ran(args, text, seconds, subprocess.run)
def docker_ran(args: list[str], text: str, seconds: int, call: typing.Callable[..., typing.Any]) -> Ran | Failure:
"""What call, which runs a command line as subprocess.run does, made of a docker command line on text."""
"""Runs a docker command line through call, with text on its stdin: what it exited with and printed, or a Failure where docker is missing or takes more than seconds. call runs a command line as subprocess.run does."""
try:
done = call(args, input=text, capture_output=True, text=True, encoding="utf-8", timeout=seconds)
except FileNotFoundError:
@@ -82,7 +82,7 @@ def docker_ran(args: list[str], text: str, seconds: int, call: typing.Callable[.
@contextlib.contextmanager
def machine_slot() -> typing.Iterator[Failure | None]:
"""heavy_slot on this process's environment, home, processors, stderr and clock: the shim's shell, as docker is."""
"""heavy_slot with this process's environment, home folder, processor count, stderr, sleep and flock."""
with heavy_slot(os.environ, pathlib.Path.home(), slot_count(usable_cpus()), lambda text: print(text, file=sys.stderr, flush=True), time.sleep, fcntl.flock) as refused:
yield refused