# E152 incident: hung sandbox run (2026-11-23)

* **What happened:** one E152 development run (candidate `LV_g4_c10_9e81e39ba7`, generation 4) hung from about 09:26 to 11:10 UTC. On its timeout path `e152/sandbox.py` killed the outer `bwrap` process, but an orphaned inner `bwrap` (re-parented to PID 1) kept the sandbox's stderr pipe open, so the worker blocked in `p.stderr.read()` (`sandbox.py:87`).
* **Effect on results:** none on correctness. The run returns the fail-closed result (parent kept, nothing submitted) once the pipe closes. About 1 h 44 min of wall-clock time was lost. No hidden data, salt or evaluator was exposed; the process stayed inside the sandbox (uid 65534, no network).
* **Action:** the orphan was killed by hand at 11:10 UTC, and the run resumed. The sandbox code is frozen by the E152 and E153 preregistrations, so it was **not** edited. An external reaper (`/root/.cain-e153/reap_orphans.sh`, cron every minute) now kills any orphaned E152/E153 candidate sandbox older than 360 s (wall limit 300 s). That gives the same outcome the timeout was meant to produce.
* **Disclosed as:** a protocol incident, not a deviation from the analysis plan. Fix for the next evolution: kill the whole process group on timeout and read stderr with a deadline.

## CORRECTION (2026-11-23, about 13:45 UTC)

The statements above "Effect on results: none" and "on its timeout path" are **withdrawn**. The likely cause of the hang is the file-descriptor leak in `E152_INCIDENT_FD_LEAK_2026-11-23.md`: `select()` raised at run start, the cleanup killed only the outer process, and the orphan held stderr open. This was inferred from the leak and the code path; it was not reproduced. The hung and "reaped" runs were recorded as CRASHED, not TIMEOUT, and they counted against LV_g4_c16, which was LV generation 4's champion: 46 of its 64 runs are CRASHED. Those runs were harness failures, so that candidate was judged unfairly. LV generation 4 is in the quarantined set and was re-run.
