Retain dead native agent workspaces for 24 hours #882

Closed
opened 2026-08-04 22:27:02 +00:00 by coilyco-ops · 1 comment
Owner

Follow-up to #858 and PR #880. Preserve a dead native session's worktrees for 24 hours after AOS first observes that its process has exited. Grace-period worktrees must remain protected from both startup cleanup and the fleet sweep. After the grace expires, the existing clean, remotely recoverable cleanup rules apply. Existing lease files without the new timestamp must receive a fresh grace period. Add regression coverage for first observation, the protected interval, expiry cleanup, active sessions, and backward compatibility.

Follow-up to #858 and PR #880. Preserve a dead native session's worktrees for 24 hours after AOS first observes that its process has exited. Grace-period worktrees must remain protected from both startup cleanup and the fleet sweep. After the grace expires, the existing clean, remotely recoverable cleanup rules apply. Existing lease files without the new timestamp must receive a fresh grace period. Add regression coverage for first observation, the protected interval, expiry cleanup, active sessions, and backward compatibility.
Author
Owner

Implemented in PR #884 as a follow-up to merged PR #880. Dead native leases now receive a backward-compatible 24-hour grace from first observation, remain protected from startup cleanup and fleet sweeps during that window, and use the existing clean and remotely recoverable checks after expiry. Local validation and Forgejo CI run 2784 pass.

Implemented in PR #884 as a follow-up to merged PR #880. Dead native leases now receive a backward-compatible 24-hour grace from first observation, remain protected from startup cleanup and fleet sweeps during that window, and use the existing clean and remotely recoverable checks after expiry. Local validation and Forgejo CI run 2784 pass.
Sign in to join this conversation.
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
coilyco-flight-deck/agentic-os#882
No description provided.