You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: add a TOCTOU and concurrent-owner regression matrix #24
The current suite covers several individual revalidation races, but it does not present a complete, reviewable matrix for owner replacement, concurrent unlock attempts, PID identity changes, lock inode replacement, transcript mutation, or owner acquisition of another thread lock. A safety regression must never turn any of these cases into a signal.
Scope
enumerate the evidence that must remain identical between initial inspection, pre-signal revalidation, and post-signal verification
add deterministic injected race fixtures where process timing alone would be flaky
retain real advisory-lock integration coverage for cases that prove OS behavior
cover concurrent unlock attempts against the same thread and competing owners
prove every refusal path sends zero SIGTERM signals
verify owner PID, start time, lock inode, owner lock set, transcript terminal record, and transcript hash transitions
Acceptance criteria
the regression matrix is documented in test names or a compact test document
every owner-replacement and concurrent-owner case fails closed
refusal cases assert that the target and competing processes remain alive
real advisory-lock and deterministic policy tests both run in CI
Development order: complete this safety matrix before or with #16. It should verify the refactor without expanding the supported public contract established by #31.
Activity
abruption commentedon Sep 22, 2026
Development order: complete this safety matrix before or with #16. It should verify the refactor without expanding the supported public contract established by #31.