Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions architecture/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,15 @@ sandbox workload directly. The relay supports:
- Tar-based file sync.
- Port forwarding where supported by the CLI/TUI surface.

Each exec, shell, or sftp channel runs its command as the leader of its own
process group. If the channel or SSH connection closes before that leader
exits, as it does when the gateway's exec deadline expires or the caller
cancels, the supervisor sends `SIGTERM` to the group and `SIGKILL` five seconds
later if any member is still running. The leader stays unreaped until then, so
the group ID cannot be recycled. Processes that start their own session or
process group are outside this cleanup. Canonical main-process attachments are
unaffected.

Sandbox logs are emitted locally and can also be pushed back to the gateway.
Security-relevant sandbox behavior uses OCSF structured events; internal
diagnostics use ordinary tracing.
Expand Down
Loading
Loading