Skip to content

Track lock correctness and lifecycle hardening #643

Description

@gaborbernat

The audit at ec3abb5 found
correctness, security, lifecycle, and performance gaps across native locks, soft locks, async wrappers, fork, and the
SQLite read/write backend. This issue tracks the dependency order. Each linked issue contains its source evidence,
upstream references, required contract, and regression checks.

Each change must preserve supported imports and call signatures. Use additive interfaces and targeted deprecation
warnings when a safer contract needs a new API. Protocol changes must test old/new contention and publish the minimum
participating version for each guarantee. Every pull request needs a changelog fragment; user-facing features and API
changes need matching documentation.

Wave 1: independent validation and platform fixes

Wave 2: state and error transactions

Issue #640 depends on #631, #632, and #633.

Wave 3: process ownership

Issue #635 builds on the process-ownership rules from #634 and must account for the inherited SQLite atexit hook.

Wave 4: strict locks and leases

Issue #636 defines the contract. Issue #637 implements claim publication and cleanup under that contract. Issue #639
adds owner identity and the signal sent when a lease holder loses its claim.

Wave 5: portability, documentation, and release evidence

Issue #641 depends on the public contracts from waves 2 through 4. Issue #642 runs after each implementation issue and
supplies the measured platform claims for #641.

Completion rule

Close this tracker after the linked issues have merged, the platform matrix has no unresolved mutual-exclusion or
lifecycle failures, and the documentation matches the shipped contracts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions