Files
PaperClipAI/packages
Priya RamanandPaperclip 3734eed2ee fix(runner): stage an ACPX gate's content before it names the shared path
Stale-gate recovery reaped an identity-less gate after a fixed
one-second grace period. A live holder that created its gate, then
took longer than that period to write its pid and token, could lose
the gate to recovery mid-critical-section, letting a second admission
or teardown overlap the first holder.

Write a holder's pid and token to a private staging path first, then
publish that content to the shared path with one atomic link. The
shared path now never names a gate before its content is complete, no
matter how long the write itself takes, so the grace-period fallback
only ever fires against genuine damage, never a slow live holder.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-03 13:54:03 +00:00
..