Repository navigation
Description
Priority: P2 research follow-up. Baseline: v0.4.3, 543b661f64f65f65154e3322847be1756deb778e.
Evidence and limits
No hidden-holder, wrong-PID signal, or real Codex trigger was reproduced. The concern is an attribution assumption requiring OS evidence. Opener discovery accepts successful lsof output. With a held OS probe, classification treats one visible, stable, identity-complete opener as live_owner. Policy separately requires one eligible same-user Codex owner and one native thread lock.
Research question
Can supported lsof versions report one visible opener without warning while the advisory lock belongs to a process excluded by UID permissions, process visibility restrictions, or a PID namespace? A visible nonholder could retain an open descriptor while waiting for a lock or after a failed try-lock. Whether those conditions coexist, and whether actual Codex retains such descriptors, are currently unknown. If they do, held-lock evidence plus a unique visible opener is insufficient to identify the holder. Subsequent release verification would discover failure only after the selected process was signaled.
Acceptance criteria
- Produce an isolated, documented Linux/macOS evidence matrix covering a holder, a nonlocking opener, permission-limited visibility, and relevant namespace cases where supported. Record OS/lsof versions, exit status, stderr, visible records, and independent actual-lock observations. Use synthetic fixtures and real advisory locks; no live Codex signaling is needed.
- Investigate fork/inherited descriptors and shared open-file descriptions. A Linux
/proc/locksPID must not become sole authority: inherited flock lifetime and PID namespace reporting can invalidate a simple PID-to-holder interpretation. - Preserve independent guarded OS probes. Do not infer held state from file existence or lsof correlation. Any demonstrated incomplete or conflicting evidence must fail closed before signaling.
- If evidence supports a code change, propose its supported-platform contract and deterministic refusal tests before implementation. Do not silently weaken macOS support or introduce new native dependencies.
- If the hypothesized trigger cannot occur under supported configurations, documented evidence and precise visibility assumptions are a valid completion outcome. Distinguish OS attribution results from actual Codex behavior.
Related history: closed #55 establishes native guarded probes; closed #12 and #59 concern exit/release verification. Those post-signal protections do not by themselves establish initial holder attribution. Closed #9 supplies the broader fail-closed revalidation context.
Activity
abruption commentedon Oct 9, 2026
PR #115 records completed Linux/macOS synthetic measurements: a foreign-UID holder can be silently omitted while lsof exits 0 with empty stderr and exposes only a nonlocking opener. Warning refusal alone does not resolve this attribution condition. The PR hardens explicit warnings and proposes descriptor-level Linux evidence plus a separately reviewed macOS holder/visibility contract; this issue remains open pending that adoption decision. No wrong-target Codex signal was reproduced, and the research sends zero signals.
abruption commentedon Oct 13, 2026
The next design increment is in PR #125. It pins official Codex v0.162.1 acquisition/failure/drop lifetimes and distinguishes the measured OS visibility condition from a still-unreproduced wrong-target Codex signal.
Implementation/adoption scopes are now tracked separately:
#100 remains the parent research issue. The design PR does not implement either adapter, change existing recovery eligibility, or declare the attribution problem resolved. Rust #122 can reuse the contract; changing languages does not establish holder identity.
test: record synthetic inspection attribution counterexample (#134)