Files
ruflo/v3/@claude-flow
cc3c43d90d fix(memory): keep database locks owned during long writes (#4822)
* fix(memory): keep database locks owned during long writes

* fix(memory): recover stale database lock artifacts

* fix(memory): fall back to exclusive locks on EXDEV

* fix(memory): five-minute lease overrides a live-looking PID (#4738)

Review items 1 and 2 on #4822:
- A lock or guard not renewed for five minutes is taken over even when its
  PID answers, covering PID reuse and pre-reboot locks on hosts without a
  boot id. Inside the lease only a provably dead owner is taken over.
- removeExpiredMemoryDbLockFile no longer waits out the lease for a guard or
  candidate whose owner is provably dead.
Tests: PID-reuse recovery for the lock and the guard, early removal of a dead
reclaimer's guard; the live-owner tests now run inside the lease.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: rUv <ruv@ruv.net>
Co-authored-by: r <r@x>
2026-11-17 22:42:26 -05:00
..
…