Skip to content

test: record synthetic inspection attribution counterexample - #134

Merged
abruption merged 3 commits into
mainfrom
test/100-attribution-verification
Oct 13, 2026
Merged

abruption merged 3 commits into
mainfrom
test/100-attribution-verification

Conversation

@abruption

Copy link
Copy Markdown
Owner

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_owner and safeToUnlock: true for 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

  • Register every child immediately; bound buffered readiness and cooperative EOF cleanup, report incomplete PIDs without force termination.
  • Restore diagnostic overrides and verify actual used lock/coordinator/transcript identities and hashes in finally.
  • Reject reentrant transient attempts; release the private guard on disconnect or a short autonomous lease.
  • Require a valid inside barrier response, failed thread acquisition and holder filtering before recording a counterexample. Avoid shell double-quote path expansion.
  • Record source and built-dist hashes. Require an explicit private temporary root; keep sockets distinct from scenario directories and below the platform byte limit.
  • Five regression tests cover process-set filtering, split readiness, timeout registration, nonzero startup and socket-path collisions.

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 earlier claude-opus-4-6 invocation 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

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
@abruption abruption added this to the v0.4.6 milestone Oct 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T08:55:39.606489Z e99fd4e PR opened
🔒 Security Review ✅ Completed 2026-10-13T08:55:51.792079Z e99fd4e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 3b89057 into main Oct 13, 2026
33 checks passed
@abruption
abruption deleted the test/100-attribution-verification branch October 13, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

research: establish lock holder attribution when lsof process visibility is incomplete

1 participant