mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-05 06:56:22 +09:00
Review found the state.lock invariant has a gap with mixed versions: released versions before the dead-owner fix take over any lock older than 30 s, even a live owner's, so a writer suspended mid-write (e.g. a sleeping laptop) could have its temp removed by a newer holder. Keep a temp while its writer pid is alive on this host, and until it is 10 minutes old. Tests: live-writer temps and 5-minute-old temps are kept, verify removes orphans on its own, and the directory case is named for what it checks. Co-Authored-By: Ruflo & AQE Claude-Session: https://claude.ai/code/session_011Qe66m38aobVEJGHAbFVzv