Skip to main content
Treat a prepared image as a reproducible build output. Record its immutable UUID, base reference, dependency lock, setup revision, client version, and smoke-test result.

Refresh an environment

  1. Update the pinned base or dependency inputs.
  2. Re-run the documented OCI import, setup operation, or contree build workflow.
  3. Record the new result UUID.
  4. Run a disposable smoke test from that UUID.
  5. Move a development tag only after validation.
  6. Keep the previous known-good UUID for rollback until retention policy permits removal.
A tag can resolve to a different image later. Reproducible evaluation and recovery should use UUIDs.

Upgrade clients

The examples in this documentation target Python SDK 0.5.1 and CLI 0.9.4. Pin the exact line used in production, review the Sandboxes changelog and generated signatures, then run onboarding, state reuse, binary download, failure classification, and any streaming or subprocess checks used by the application. SDK 0.5.1 removes the old Contree and image-manager API. Use create_sandbox_session() and typed InstanceResult fields. The factory defaults to lazy VM reuse; select ContreeSession for a VM and save per command. Detached work uses spawn_detached() and a persistent store. Failed or cancelled operation waits attempt remote cancellation. Review the SDK migration guide and validate stable-release behavior before adopting examples from an unreleased branch. Before upgrading, confirm that the Sandboxes service supports the intended backend, SDK, CLI, and MCP combination. Ask the Sandboxes team about deprecation timelines when an upgrade depends on a specific support window. Validate the exact versions against representative workload paths before moving production tags or clients. If a refreshed environment fails, switch workloads back to the recorded prior UUID, inspect the failed build or operation, and rebuild from pinned inputs. A rollback starts a new operation from saved filesystem state; it does not restore memory or processes.