a call left open is stuck only when nothing moves inside it (martha#186) #235
Loading…
Reference in a new issue
No description provided.
Delete branch "hygiea/186-recorded-host-initializing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The recorded-host relay class of #186:
a_review_at_its_limit_on_the_recorded_hostwent red in ci.yml task 16921 at1233f0a6(186440 ms) with the host's own agent still on its terminal and the screen animating — the stand-in's 40-request ceiling never reached, so the run was cut, not stalled.Cause, proved.
redFormeasured an open call's age (now - held.since > OPEN_WORK_MS), so a host that was visibly working was cut off at 180 s; 186440 ms is that budget plus overhead. That is a budget asserting the machine's speed, which #210 settled against for silence — the terminal, the model requests and the launcher's journal already refill the silence budget, and the open-call branch was the one place they did not.The fix. Inside an open stretch the wait now spends
OPEN_WORK_MSon stillness (now - Math.max(held.since, seen.moved_at)). A call that never comes back with nothing moving still fails at 180 s and is still named as the tool's — the existing #240 case for exactly that stayed green.Red first.
a_silent_host_fails_by_name.node-test.tsgains#186: a call left open while the host is still drawing is not named as a stuck tool. Before the fix it fails withThe tool \Write` has not returned in 180100 ms ... while the host kept drawing`; after it, it passes.Greens on this tip (base
a10a6e98, branch worktree, runs in their own pid namespace,nice -n 10):a_stuck_file_ends_when_its_run_is_signalled(SIGTERM/SIGINT,exit_code null !== 143/130) — green 3/3 alone on this tip, and red the same way on plain maina10a6e98under a full run (three of them there), so they are main's own load class and not this diff;npx tsc --noEmitclean,npx eslint . --max-warnings=0clean, the installer job's steps green.Refs #186