Fix crash recovery for Harness home and session locks #213

Merged
hex-rollout-author merged 1 commit from fix/home-lock-owner-incarnation into main 2026-11-01 21:25:10 +00:00
Owner

Replace PID-only ownership with retained SQLite exclusive transactions using built-in Node SQLite. Permanent marker/inodes avoid stale reaper and unlink/recreate races. Legacy or malformed locks fail closed. Targeted tests and build pass; candidate independently exercised inside Minato Kata on actual Longhorn PVC: live exclusion, SIGKILL reacquire and eight-way recovery contention with exactly one owner. Security review pending. Activation must stop old writer and archive verified legacy PID-only lock without changing session or crypto data. No fleet rollout authorized; Minato-only consumer acceptance.

Replace PID-only ownership with retained SQLite exclusive transactions using built-in Node SQLite. Permanent marker/inodes avoid stale reaper and unlink/recreate races. Legacy or malformed locks fail closed. Targeted tests and build pass; candidate independently exercised inside Minato Kata on actual Longhorn PVC: live exclusion, SIGKILL reacquire and eight-way recovery contention with exactly one owner. Security review pending. Activation must stop old writer and archive verified legacy PID-only lock without changing session or crypto data. No fleet rollout authorized; Minato-only consumer acceptance.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!213
No description provided.