A sandbox has state, authority, and a lifecycle
Cloudflare announced Sandbox SDK 1.0 on September 30, 2026. For an agent or code-execution service, the important change is not the version number: the announcement moves a sandbox's operational center to the Durable Object that owns it. That class can start a container with a chosen image and instance size, decide when it stops, stream command I/O, and expose preview ports through Worker-controlled handling.
That raises the question this article works through: which Durable Object may resume, inspect, stop, or publish this execution's work? A container is not an anonymous scratch directory — its filesystem can hold an unfinished build, generated artifacts, cached dependencies, or material that must be discarded, its preview can become a network-facing capability, and its outbound requests can touch remote systems. Treating all of this as one generic "agent sandbox" hides boundaries that need separate tests.
The existing Cloudflare foundation chapter explains route-to-binding authority and deployment evidence. This update fills a narrower gap: a running execution environment now carries its own state-transition and recovery contract. A successful Worker deployment does not prove which filesystem state was resumed, whether internet access was enabled, or whether an old sandbox stayed alive.
Separate SDK availability from beta platform features
The September 30 post says Sandbox SDK 1.0 is available. It also says container snapshots and the durable_object scheduling policy are in public beta. Do not flatten those into "all of Sandbox 1.0 is generally available": a package version's availability, a runtime feature's beta status, and a particular account's enablement are separate facts.
The scheduling-policy announcement says a Durable Object can choose an image and instance size at runtime rather than relying on one centrally managed application configuration, and that Durable Object-managed instances have independent lifecycles outside application-wide image rollouts. That changes release review: deploying an image cannot be assumed to restart or replace every running execution. For each task, record the image reference, the instance choice, the owner object, and why the run ended. Do not infer capacity, isolation strength, uptime, or account availability from this announcement.
The same announcement shows an explicit enableInternet choice when starting a container. Treat it as an authorization decision, not a convenience default. A build that needs only checked-in source and a local compiler has a different outbound boundary from a task that must call an allowlisted artifact registry. The dated sources do not establish a universal egress policy, so define one for the application and test it with a harmless deny case.
A snapshot is a recovery input, not a mutable workspace
Cloudflare's separate snapshot update describes public-beta APIs for saving and restoring point-in-time container filesystem state. Snapshots require the durable_object scheduling policy and are immutable, so a restore is not permission to quietly rewrite a historical checkpoint — filesystem changes made after a restore need a new snapshot to persist.
That makes a small state ledger more valuable than a bare snapshot handle. For each checkpoint, retain the task identifier, owner, source revision or input digest, image reference, snapshot creation time, restore purpose, retention decision, and the policy that permitted it. Keep secret names in an execution design if they matter, but never write values into the snapshot record, source repository, preview URL, or agent-visible log. The changelog says Worker code can handle outbound requests so credentials and bindings stay in the Worker; it does not prove every application implemented that separation correctly.
Snapshots also do not prove a build is reproducible. A snapshot preserves a filesystem state; by itself it does not identify the user authorization, input provenance, network effects, image behavior, or commands that created it. A recovery flow should label a restored run as restored, then require the same output and authorization checks as a fresh run before publishing an artifact or taking an external action.
Rehearse the migration before moving state
The SDK 1.0 announcement says 0.x applications continue to run and receive bug and security fixes until December 31, 2026. It also says moving an existing class to the new policy is one-way, and it recommends rehearsal. "One-way" is an operational property, not an invitation to migrate on a production task.
Use a disposable fixture before any real migration. The following is an offline, unexecuted planning fixture, not a command sequence or evidence that a Cloudflare account is configured:
| Fixture state | Intended check | Passing observation |
|---|---|---|
| New owner with no snapshot | Start a sandbox with the chosen image, size, and explicit network policy | The run record names the owner and configuration. |
| Finished disposable task | Create a checkpoint | A snapshot handle is recorded with its source/input identity. |
| Restored checkpoint | Alter a harmless output file, then checkpoint again | The second checkpoint is a new handle; the first remains the old state. |
| Unauthorized viewer | Request a preview hostname | Worker-side authentication rejects it. |
| Migration rehearsal | Run only the intended 1.0 class in isolation with disposable, non-production state | The target state and stop/abandon criteria are documented before the irreversible move. |
This fixture deliberately avoids claiming that a container is a complete security boundary, that a preview is safe, or that a snapshot includes or excludes any undocumented file class. Read the current product documentation and account terms before implementation, and exercise the same image, outbound hosts, storage mount, preview authentication, command policy, retention period, and deletion path the real service will use.
What to measure after implementation
The first production question is not "did the agent finish?" Record whether the requested task was authorized, which execution state was used, whether a snapshot was new or restored, which network policy applied, and whether the final output passed its own validation. Measure start/recovery failures and stale-checkpoint rejections separately from model or build success. Test a restore with a different principal, an expired authorization, a changed input digest, and a forbidden preview request.
The September 30 documents are release signals from Cloudflare, not independent security evaluations or performance measurements. They provide concrete vocabulary for a stronger execution contract: owner, image, instance, network policy, snapshot, restore, retention, stop, and migration. The application still has to authorize and observe each transition, and to treat the policy-class migration as irreversible.
MENTAL MODEL / REASONING ORDER
From an announcement to your own decision.
Compare the announcement with the conditions in the paper and official documentation.
Sources
Publication dates belong to the source; access dates record when it was checked. Community observations are separate from official statements.
01