Repository navigation
Add sandbox reset and execution cancellation - #3521
Closed
GregorShear wants to merge 1 commit into
Closed
GregorShear wants to merge 1 commit into
GregorShear wants to merge 1 commit into
Conversation
GregorShear
added this pull request to stack #3522
September 22, 2026 21:41
|
|
||
| let response = self | ||
| .http | ||
| .get(url) |
|
|
||
| let response = self | ||
| .http | ||
| .post(url) |
GregorShear
force-pushed
the
greg/sandbox-reset-cancel
branch
from
September 23, 2026 02:17
82a4143 to
260a939
Compare
Capture a baseline during provisioning and restore it through GraphQL and HTTP reset operations, pruning extra checkpoints. Add execution cancellation using process-group signals while retaining output and exit status.
GregorShear
force-pushed
the
greg/sandbox-reset-cancel
branch
from
September 23, 2026 02:28
260a939 to
d37a146
Compare
GregorShear
removed this pull request from stack #3522
September 23, 2026 12:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds sandboxReset and sandboxExecCancel on top of the sandbox API in #3520, plus the HTTP reset route.
Provisioning now captures a baseline checkpoint. Reset restores it, discards subsequent filesystem changes and execution history, and prunes extra checkpoints. This PR adds the Sprites checkpoint creation, listing, restoration, and deletion functions alongside their consumers.
Sandboxes created before this PR have no baseline and must be deleted and recreated before reset is available. Neither PR configures egress restrictions.
Cancellation signals the execution's process group, escalates when necessary, and preserves output and the observed exit result. Includes authorization coverage, cancellation result snapshots, and the opt-in live cancellation test.
Validation: Rust formatting and diff checks pass. The combined implementation was compared with the pre-split branch to verify that changes beyond the split are limited to the requested removal of egress restrictions and documentation updates. The nextest compile attempt is blocked by the installed Rust 1.91.1 compiler (workspace requires 1.94); database/live-provider tests were not run.