Repository navigation
Description
Priority: P3. Evidence semantics correction; the current output remains JSON Schema valid.
Evidence is a static review of v0.4.3 at commit 543b661f64f65f65154e3322847be1756deb778e. In the SIGTERM exception branch, every exception immediately returns processExited: false together with processObservation: null. There is no exit observation between the exception and this return. The JSON contract describes nullable evidence as unavailable or inapplicable, while the schema permits either boolean or null. Accordingly, this issue concerns the meaning of the emitted evidence, not schema rejection.
For example, the owner could exit after its final identity sample and before process.kill, causing an ESRCH exception. Other errors, such as EPERM, likewise do not establish the owner's exit state. Reporting false without another observation presents a negative exit conclusion where the implementation has only a failed signal attempt. This could mislead automation that distinguishes an observed process still running from unavailable evidence.
The error scenario was not executed during this review, and no real Codex process was signaled. The confirmed evidence is the unconditional return in the source. Keep the scope narrow: use processExited: null when no exit observation exists, or populate the field from an independently obtained observation that preserves owner identity semantics. An ESRCH error alone should not become a verified successful unlock.
Acceptance criteria:
- Add a deterministic test helper that makes the attempted SIGTERM throw
ESRCH, and a separate permission-error case. Use synthetic owners with real advisory-lock fixtures, never live Codex sessions. - Assert unavailable exit evidence is null unless an explicit identity-aware observation supports a boolean.
- Preserve
signalSent: null,changed: false, the failed-termination outcome, and a useful sanitized signal-error reason. Do not infer successful lock release from the exception. - Validate the resulting JSON against the existing v1 schema and document any clarified evidence semantics.
- Confirm the successful-signal path still preserves signal information when subsequent observations fail, and never retries with a stronger signal.
Related closed issues: #12 and #66. This addresses the pre-observation exception branch while retaining their post-signal reporting safeguards.
Activity