feat(sandbox): PID 1 namespace lifecycle and orphan reaping #20

Open
opened 2026-09-09 10:15:32 +00:00 by larandar · 0 comments
Owner

Proposal

Run each sandbox with PID 1 lifecycle and orphan reaping.

Design

Use --unshare-pid and make supervisor PID 1 so orphaned descendants are reaped and namespace exits cleanly.

Tasks

  • Add PID flags; run supervisor as PID 1; handle child exit and teardown.

Gherkin Specification Delta

must.contracts.ting-workflows.deliverable-20

Scenario: Deliverable behavior

  • GIVEN the stated prerequisites and inputs
  • WHEN the feature is exercised
  • THEN an orphaned child, when sandbox exits, then PID 1 reaps it and namespace processes are cleaned up.
## Proposal Run each sandbox with PID 1 lifecycle and orphan reaping. ## Design Use --unshare-pid and make supervisor PID 1 so orphaned descendants are reaped and namespace exits cleanly. ## Tasks - Add PID flags; run supervisor as PID 1; handle child exit and teardown. ## Gherkin Specification Delta ### must.contracts.ting-workflows.deliverable-20 **Scenario: Deliverable behavior** - **GIVEN** the stated prerequisites and inputs - **WHEN** the feature is exercised - **THEN** an orphaned child, when sandbox exits, then PID 1 reaps it and namespace processes are cleaned up.
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.

Reference
Ting/workflows#20
No description provided.