Skip to content

v7.32.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 15:29
· 3 commits to main since this release
b89bb3b

Fixed

  • entry-gates.mjs --abort stops the entry gate runner and the gate it is running when ps cannot run, as under
    Claude Code's Bash sandbox on macOS (CORE-615).
    /bin/ps is setuid root and the sandbox refuses its exec, so the
    loop's stop printed ps is unavailable, so the recorded pid could not be verified; nothing was signalled and left the
    runner and its test suite running (.dev/measurements/sandbox-probe-2026-11-29.md, L3). The runner now writes its own
    witness: a worker thread rewrites pharn/.run/pharn-entry/beat.json (nonce, feature, pid, a rising seq) every
    250 ms. When ps cannot run, --abort counts the recorded pid as this runner only if two reads bound to the runner
    record show a greater seq within 10 s; anything else (no beat, a beat that stopped, a beat for another nonce) leaves
    the pid unverifiable and nothing is signalled, as before. With no ps -A listing, the gate stopped is the group
    run-gates records in gates/lock.child, read after the runner is frozen. ps stays first when it runs. The same
    applies to --start superseding an earlier runner. Bounds: a gate's own detached process groups are not reached
    without ps; a runner that dies after its last beat and whose pid is reused within the window would be misread (the
    same class as the gap between a ps read and the signal); both records live under pharn/.run/, so this is a
    tested rule over unauthenticated records, never provenance, and it is weaker than ps against a forger: the beat's
    pid is self-reported, so a writer of pharn/.run/ can aim the ps-free --abort at any process group the same user
    owns (one it could signal itself). Unchanged and still fail-closed without ps: --wait (a live pid reads alive),
    run-gates' orphan reap (a group whose start cannot be read is not signalled) and stage-direct's liveness reads (a
    live pid reads alive); in a normal run these readings are correct, and only a crash or a reused pid makes them cost
    anything (a wait, or a refusal a person clears).