Repository navigation
test: record synthetic inspection attribution counterexample - #134
Merged
Merged
Conversation
Synthetic fixtures that make every current inspectThread eligibility check pass while the selected owner is not the process holding the OS lock. The holder is hidden from lsof to model the clean omission already measured in CI run 37862990217; unlike that run's Python processes, the visible non-holder looks like Codex, so no earlier gate blocks it. Records eligible_wrong_target and stops before the signal boundary: the experiment never calls unlockInspectedThread and never signals a process. Children exit on stdin EOF. Not part of the npm package. Refs #100
Two fixture defects masked scenario C and could hang a run: the scenarios shared one Unix socket path, so the second transient failed listen with EADDRINUSE and never reported ready; and the transient took coordination with a blocking flock, deadlocking against codex-unlock's guarded probe when a barrier request timed out. Give each scenario its own socket, unlink it on exit, and take coordination non-blocking with a busy report. Record the measured mechanism: the wrong owner comes from combining a guard-inside probe with a guard-outside opener scan as if they were one atomic sample, not from a faulty probe. Scenario B reproduced 4/4. Refs #100
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #100, #126, #127. Add unpublished real-flock synthetic inspection research and independently checked evidence. This does not close #100 or implement stronger production holder attribution.
The diagnostic override filters an actual synthetic holder from real system lsof output while a transient synthetic Node opener is visible. A local rerun records
live_ownerandsafeToUnlock: truefor that nonholder. This is an injected visibility condition and an inspection-stage counterexample, not a naturally reproduced omission, actual Codex trigger, final unlock-revalidation result, or wrong-target signal. No unlock is called and no real Codex session is operated on.Harness corrections
insidebarrier response, failed thread acquisition and holder filtering before recording a counterexample. Avoid shell double-quote path expansion.Independent review and evidence
Read-only independent review used Codex CLI 0.162.1 with isolated defaults (actual model metadata not confirmed) and requested
claude-opus-5-5, confirmed by response model metadata. An earlierclaude-opus-4-6invocation was selected in error, retained in the private record, and not used as the requested review. Both reviewers saw the same frozen source input; original raw measurements were checked separately by the primary reviewer. Reviews identified the harness flaws corrected here and the limits documented in this PR. They did not execute tests or certify the final amended revision.Original result/event hashes were independently checked; their build provenance is limited because the old harness did not hash dist. After correction, the primary reviewer reran the synthetic harness locally: A selected its real holder; B selected the nonholder with no blockers; C was unknown with two openers. All five children exited 0, all three used homes passed identity/content invariance, and the runner exited 0. Result SHA-256:
6b16473a2007dad87cc75f07749993866d93572c2acc4827c25ff7410288c325. One earlier amended attempt failed due to a socket/directory collision; its result is preserved, excluded from reproduction counts, and covered by the new regression test.macOS studied APIs and Linux fdinfo mapping/participation limitations are documented without claiming a universal absence theorem or sole shared-description control. Numeric inode snapshot precision remains a separate production issue to address; this PR does not fix it or change recovery eligibility.
Validation and scope