Files
PaperClipAI/packages
Priya RamanandPaperclip 56043bf2e4 fix(runner): stop a displaced ACPX gate holder's release from deleting a fresh claimant's gate
Stale-gate recovery can capture a genuinely live gate and fail to
restore it, when a fresh claimant grabs the shared path first. The
displaced holder's own release then found something at the shared
path and unlinked it without checking whose gate it was, deleting
the fresh claimant's live gate. That broke the fresh claimant's
exclusivity and let a teardown overlap a live lease registration.

Release now captures whatever names the shared path with the same
atomic rename recovery uses, and only deletes it when its content
proves it is this holder's own gate. A mismatch is restored, or, if
a further claimant has since taken the path, left under a private
name for its real owner to reclaim by content later.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-03 14:21:15 +00:00
..