Skip to content

test: add a TOCTOU and concurrent-owner regression matrix #24

Closed

Description

@abruption

Priority

P0 — v0.2 safety gate.

Problem

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

Dependencies

This issue is a v0.2 safety gate and should be completed before or with #16.

Activity

  1. added
    enhancement
    on Sep 22, 2026
  2. abruption commented on Sep 22, 2026

    @abruption
    OwnerAuthor

    Development order: complete this safety matrix before or with #16. It should verify the refactor without expanding the supported public contract established by #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions