Skip to content

Harden verdict I/O and stable-authority APIs #25

Description

@tylerwillis

Context

PR #22 introduced canonical stable verdict files and fail-closed stable-path authority: #22

This follow-up came from the final review triage: #22 (comment)

Why deferred

Current callers pass the authority map correctly, and distinct-requirement writer isolation satisfies the approved concurrency contract. This is forward-looking robustness rather than a defect in the shipped behavior.

Scope

  • Use temp-file-plus-rename for stable verdict writes and migrations to avoid torn reads.
  • Make the stable-file authority map a required verdictViolations argument so future callers cannot silently disable the invariant.
  • Add focused tests for atomic replacement failure modes and required authority propagation.
  • Preserve the existing fail-closed behavior and per-requirement concurrency guarantees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions