Repository navigation
Description
Problem
#100 / #115 measured a macOS foreign-UID holder omitted from lsof while a same-user nonlocking opener remained visible, with exit zero and no stderr. The optional lsof lock field was also blank for a genuine fixture holder. The current stable-opener correlation is therefore not proof of actual flock ownership. A real Codex wrong-target termination has not been reproduced.
Scope and decision to produce
Establish an explicit macOS holder/visibility contract before adopting stronger attribution or changing recovery support. Keep this separate from the Linux fdinfo adapter: Linux evidence cannot silently become a universal requirement.
Acceptance criteria
- Pin the Codex acquisition/failure/drop implementation and account for its handle lifetimes, including what source inspection does and does not exclude about observation interleavings.
- Evaluate a documented OS holder primitive or owner-cooperative release protocol with real macOS flock fixtures. Do not assume
F_GETLK, an open handle, optionallsoffields, or empty stderr proves the holder. - Specify a concrete, reviewed choice: retain an accurately documented correlation contract with explicit assumptions/limitations, or introduce a separately reviewed stronger recovery mode/support restriction when holder evidence cannot be established. Do not silently change the default supported-platform contract.
- Cover real holder/nonholder, hidden UID, inherited descriptors, process/file identity changes, permission failures, and unsupported OS/filesystem cases. Treat skipped cases as unverified.
- Preserve the independent nonblocking guarded probe, no native-file creation/deletion, and zero signals in research. Any future signal path requires exact revalidated same-user owner and stable completed transcript evidence.
- Document how the chosen contract would transfer to the Rust experiment (research: evaluate a Rust prototype for native Windows support #122) without claiming Rust resolves holder attribution automatically.
Priority: P2 safety research/design. Parent: #100. This issue does not authorize force termination, privileged production inspection, automatic support removal, or a new native dependency.
Activity
abruption commentedon Oct 14, 2026
Research update: Draft #139 records the same-user macOS/APFS
lsof +fgrefusal-filter experiment and sanitized evidence identifiers.The filter excludes never-locked and failed-acquirer descriptors but not a former holder that unlocks while retaining its FD. With the actual holder omitted by the experiment model, the former-holder candidate passes the sampled eligibility checks and remains
not_excluded. The sticky bit is not positive holder evidence. The reproduction requires injected omission/sample-window conditions; no actual Codex failure frequency is measured.The hardened parser aggregates multiple FDs and refuses detectable scan/format failures. Whole-record clean omission remains undetectable. Default macOS recovery policy has not changed. The support/attribution choice remains open; #139 does not close #127.
abruption commentedon Oct 18, 2026
PR #145 has merged as 9b69ccf. The source-pinned contract options and validated synthetic description-sharing fixture are now on main. Keep this issue open: no macOS recovery policy was selected, and the remaining visibility/platform evidence and explicit residual-risk decision are still required. Runtime behavior and supported platforms are unchanged.
abruption commentedon Oct 18, 2026
PR #153 adds the first two option-B prerequisite experiments and updates the evidence boundaries. No production filter or recovery policy is selected.
At
6082a34a664078491df4904f19e38c69f3c5d0aa, research CI run 39084774350 passed Rust 1.90.0 and 1.95.0 on macOS 15 ARM/Intel. In every combination, the default CLOEXEC descriptor was absent in the child; explicit inheritance preserved the shared lock after the parent closed its FD; normal exits were followed by independent free-lock probes. Actual initial/pre-spawn FD flags matched the expected values. All four measured rows passed with zero recorded errors/incomplete waits.The synthetic same-PID exec experiment also passed on macOS 15 ARM/Intel and locally on macOS 27 arm64: PID/start time stayed unchanged, executable path/argv changed, the lock remained held through exec, then became free after EOF exit. The high-resolution start time is actor-reported; ps start time is independently observed. This does not test production refusal, same-path/same-argv exec or actual Codex launch settings.
Mach fileport transfer, hidden shared descriptions, permission-limited observations, additional lsof/filesystem variants and native Codex behavior remain open. The new CI does not measure the former-holder sticky-bit case from #139. Keep this issue open for the remaining evidence and final policy decision. No merge or release has been performed for #153.