Skip to content

feat(sandbox): track exec processes - #2848

Merged
sjenning merged 0 commit into
codex/2710-main-restart-policyfrom
codex/2710-exec-process-tracking
Aug 20, 2026
Merged

feat(sandbox): track exec processes#2848
sjenning merged 0 commit into
codex/2710-main-restart-policyfrom
codex/2710-exec-process-tracking

Conversation

@drew

@drewdrew commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Track processes launched through sandbox exec with stable identities and observable lifecycle state owned by the sandbox supervisor. This draft is the third PR in the issue #2710 stack.

The implementation will cover lifecycle metadata and list/get inspection. Reconnectable exec I/O, output replay, process control, descendant enumeration, and exec restart policies remain out of scope.

Related Issue

Relates to #2710.

Depends on #2726 and #2798.

Changes

  • Add a supervisor-owned registry for direct public exec processes.
  • Assign each exec a gateway-issued stable ID.
  • Reconcile exec start/exit state over the persistent supervisor session.
  • Persist bounded lifecycle records with supervisor-instance fencing.
  • Add authorized process list/get APIs and CLI commands.
  • Preserve existing sandbox main and restart-policy semantics.

Implementation is pending; the detailed editable plan is kept locally under architecture/plans/2710-exec-process-tracking.md.

Testing

  • Unit and API contract tests
  • Supervisor reconnect and snapshot reconciliation tests
  • Docker E2E for TTY and non-TTY exec lifecycle tracking
  • mise run pre-commit for the initial stack branch

Checklist

@copy-pr-bot

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@drew
drewforce-pushed the codex/2710-exec-process-tracking branch from 85106dc to eebc611CompareAugust 20, 2026 21:05
@drew
drewforce-pushed the codex/2710-exec-process-tracking branch from eebc611 to ccf8cdcCompareAugust 20, 2026 22:01
@sjenning
sjenning merged commit a5f39e2 into mainAug 20, 2026
@sjenning
sjenning deleted the codex/2710-exec-process-tracking branch August 20, 2026 22:32
@sjenning
sjenningforce-pushed the codex/2710-exec-process-tracking branch from ccf8cdc to a5f39e2CompareAugust 20, 2026 22:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@drew@sjenning