Repository navigation
Description
Priority: P3 research/documentation follow-up. Baseline: v0.4.3, 543b661f64f65f65154e3322847be1756deb778e.
Evidence and limits
This formalizes a known residual limitation; it does not report a newly reproduced vulnerability. The Linux wall-clock dependence of lstart was raised in an earlier audit. Start identity uses ps -o lstart=. The final boundary awaits a matching start-time observation before a synchronous guarded probe and numeric PID SIGTERM. No host clock was changed, PID reuse was not induced, and no real Codex operation was performed for this finding.
Problem and scope
Sampling start time and then signaling a numeric PID cannot atomically bind the signal to that process instance. An exit and sufficiently rapid PID reuse can occur after the sample; second-resolution lstart can also leave distinct instances indistinguishable. On Linux, the relationship between displayed wall-clock start time and boot-relative process identity needs an explicit account. These are residual identity assumptions, separate from strengthening transcript or owner lock-set revalidation.
The existing synchronous signal boundary narrows the window. It should be preserved, but documentation must not imply that it eliminates PID reuse or all independent-writer races. Post-signal exit and lock verification also cannot undo a wrongly targeted signal.
Acceptance criteria
- Add a precise limitation and platform assumptions to the race matrix and safety documentation, including lstart resolution, clock interpretation, numeric signaling, and the absence of identity-bound atomic signaling. Separate earlier known concerns from any new evidence.
- Evaluate Linux boot-relative/high-resolution identity and pidfd-based signaling, plus available macOS equivalents. Explain namespace, inherited descriptor, compatibility, and failure behavior. Stronger sampled identity alone is not atomic signaling.
- Use injected observation seams and synthetic fixtures for deterministic identity-change/absence cases. Where practical, demonstrate limitations without signals. Do not change host time or use live Codex sessions to force a race.
- Preserve zero additional signals, fail-closed unknown identity, existing no-await guard boundary, and SIGTERM-only policy. No new native dependency is authorized by this issue; present a separate design before adopting one.
- A documented assessment supporting the current implementation, or disproving a proposed trigger under supported conditions, is a valid research outcome. State remaining uncertainty rather than claiming complete race elimination.
Related history: closed #9, #10, and #24 address race hardening; closed #12 and #59 cover exit observation. Closed #55 remains the native guard constraint.
Activity