Repository navigation
Conversation
|
Speaking as Kun's firstmate: thanks @co1smos. The negative cases are thorough (boot ID, identity, namespace, lock permissions, stale beacon, dead holder, other harnesses), and you've been upfront about what wasn't validated, which I appreciate. What I checked: head Contract-class: new-default (my read). One thing is needed from you: live validation is inconclusive. Your own verification note says native Codex Stop visibility is unverified. Could you run a real Codex session (logged in) on Linux, where the watcher and the Stop hook actually sit in different PID namespaces? Then post what the guard did at the Stop boundary, or re-raise through |
|
Follow-up native Linux Codex Stop verification (2026-10-24), on unchanged PR head b29dbd65 (Codex CLI 0.163.0; custom authenticated Headroom provider, not codex login): (1) Real interactive TUI Stop dispatch was confirmed by strace execve of bin/fm-turnend-guard.sh (PID 3966276, exit 0; Codex session 01a16f6c-2df6-79c1-b138-1396a83c7796). (2) In a separate disposable lab with one in-flight task, an exited watcher caused the native Stop hook to block with TURN WOULD END BLIND. (3) With a live watcher in a different PID namespace (local PID 17 / host PID 4006366, namespace pid:[4026532914] versus host pid:[4026531836]), the native Codex TUI turn completed without a Stop-hook block (session 01a16f23-6801-7e21-a43c-a53bd661fee6, 2026-10-24T19:44:10Z). Immediate read-only checks on the same live watcher: strict fm_watcher_healthy returned 1; Linux/Codex fm_watcher_cross_namespace_healthy returned 0; beacon age about 4.5 s. Limitation: the predicate checks were sampled just after successful Stop, not instrumented inside that callback; actual native dispatch and missing-watcher blocking were observed separately. Test watcher was stopped; source tree remained clean. One existing CI job, Behavior portable parallel 2 / tests/fm-test-run.test.sh packing exactly at the budget, remains failed (19/20 passed); reviewer reports the same baseline failure on main. No product source, PR head, or no-mistakes attestation was changed. Full sanitized evidence is retained locally in data/codex-pid-liveness-fix/native-stop-direct-live-test-2026-10-24.md. |
Follow-up: Native Linux Codex Stop Verification (2026-10-24)This supplements the earlier live-test report and the original no-mistakes validation. Testing used the unchanged PR head Observed results
Sanitized primary-evidence excerpts (from the disposable test logs; not screenshots): The two Codex sessions were Evidence limitations: The successful Stop callback was not instrumented internally. The strict/fallback predicate results were sampled immediately after the successful turn, while the same watcher was still alive, rather than inside that exact callback. Hook dispatch was directly traced and a missing-watcher Stop was directly observed separately. This is strong behavioral evidence, not a branch-by-branch trace or native CI: 19 checks passed; No new commit, PR-head change, PR-description edit, or no-mistakes attestation edit accompanies this comment. |
|
Speaking as Kun's firstmate: thank you @co1smos for the follow-up. It's exactly what I asked for. On the unchanged head CI: 18 of 19 green. Parallel 2 failed only on "packing exactly at the budget must be accepted", and it ran on a merge ref against main Contract-class: new-default (unchanged from my last read). It relaxes the specified PID-strict watcher liveness check on the default Linux+Codex path to accept a cross-namespace watcher. The guards are well-built, but this is new default behavior, not a restore. VISION, rule by rule: One captain/interface: aligns (no false "turn would end blind" blocks for a live watcher). Authority: aligns (nothing here acts for the captain; it only changes how a liveness check reads). Scripts own mechanics: aligns (exact pidfd and namespace/boot-id checks). Restart: aligns (the watcher records its pid namespace and boot id on disk). Delegation spine: aligns. Vendor: aligns (scoped to Codex on Linux, other harnesses unchanged). Scope: aligns. Status: this is with Kun now, not waiting on you. I've flagged it for a merge-or-leave decision. If he wants it merged, the CI run will need a fresh pass on current main (a rebase or new push would do it), and I'll ask for that only if he says go. |
b29dbd6 to
9b32578
Compare
…le namespace fixtures
9b32578 to
3695d70
Compare
[Medium impact] The PR appears safe to merge; no actionable defects were found. Reviews (1) · Last reviewed commit: "no-mistakes(document): Refresh Codex fal..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thank you @co1smos. New tip What I checked on this head: attestation binds Contract-class: new-default (unchanged). This is waiting on CI, not on you. Once quick checks are green on this head, it goes back to Kun as merge-or-leave (new-default). Until then, nothing more is needed from you. Rockets: none. Security: none. |
|
Speaking as Kun's firstmate: tip |
|
Speaking as Kun's firstmate: tip |
Intent
Fix #7620: on Linux, Codex’s workspace-write sandbox can expose a different PID namespace from the host, causing the Stop guard to reject a live watcher and incorrectly report
TURN WOULD END BLIND.Allow the Stop guard to recognize a live watcher across that namespace boundary, with the fallback restricted to Linux and Codex. Preserve strict lifecycle checks and reject stale or mismatched watcher evidence. Leave other platforms and agent runtimes unchanged.
What Changed
/proc, pidfds, process identity, fresh heartbeat evidence, and an unchanged lock snapshot without changing lifecycle authority.FM_HOMEfrom Linux/Codex checkpoints.Risk Assessment
Testing
The targeted guard, watcher-lock, and checkpoint regressions passed, and live Codex 0.163.0 sandbox checks reproduced the original rejection and verified the fix, safety negatives, default-home propagation, wake delivery, and cleanup after correcting lab-only setup; transcripts and persisted-state evidence were retained, with no native model-driven Stop or native non-Linux claim and no screenshot needed for this CLI-only change.
Evidence: Verification report, scenario results, setup corrections, and evidence limits
Source: Verification report, scenario results, setup corrections, and evidence limits
Evidence: Targeted guard, watcher-lock, and checkpoint regression output
Source: Targeted guard, watcher-lock, and checkpoint regression output
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
unshare -rpf --mount-proc trueand a Pythonos.pidfd_opencapability probe.codex --version,codex sandbox --help, and a realcodex sandbox -c 'sandbox_mode="workspace-write"' -- bash -c ...namespace probe.TMPDIR="$PWD/.test-pid-tmp" bin/fm-test-run.sh tests/fm-turnend-guard.test.sh tests/fm-watcher-lock.test.sh tests/fm-watch-checkpoint.test.sh.python3 ~/.no-mistakes/evidence/01M6QHJDG177QJ4SB557V6WXWQ/live-pid-driver.py "$PWD" ~/.no-mistakes/evidence/01M6QHJDG177QJ4SB557V6WXWQ/verifieddrove production checkpoint, watcher, session-lock, and guard scripts inside disposable Codex workspace-write sandboxes.Compared the base and candidate guards against the same running sandbox watcher: the base returned the false blind-stop alarm; the candidate allowed the supervised stop.Exercised invalid identity, boot ID, home, watcher path, namespace, PID, beacon, lock permissions, missing Python, dead-holder replay, and non-Codex primary selections.Verified direct wake delivery, hosted checkpoint timeout, removal of watcher locks, disposable-lab cleanup, unchanged HEAD, and a clean working tree.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.