Back to Docs/Workflow modes

Workflow modes

Select the runtime policy for attempts, features, scheduled work, replay, evaluation, and review.

workflowMode is a runtime policy, not a model setting or machine type. It controls which source, artifact, snapshot, promotion, and lifecycle operations a durable Sandbox Runtime may perform.

Most applications should begin with attempt. Choose a more specific mode when the workflow requires stronger source-control, review, replay, or retention behavior.

Mode reference

ModeUse it forState to preserve
readonlyInspecting an existing result or snapshot without mutationReadable source, snapshot, logs, and artifacts
attemptOne-off AI work, research, scratch compute, or trying a changeEvents, outputs, and optional checkpoints
featureDurable app-backed code intended for review or promotionIsolated source ref, commits, checks, and review checkpoints
patch_onlyProducing a diff that requires approval before commitPatch artifact and review decision
hotfixUrgent app-backed change with explicit review visibilitySource checkpoint, validation artifacts, and promotion record
scheduled_runRecurring automation without permanently hot computeSchedule, run history, receipts, outputs, and optional volume
rolloutEvaluations, benchmarks, scorers, or training-data generationInputs, traces, metrics, rewards, and selected artifacts
replayReproducing or debugging a prior run from pinned stateSnapshot, input payload, logs, and new replay artifacts
template_buildBuilding and validating a reusable launch imageManifest, validation evidence, and published snapshot
multi_feature_batchComparing several code changes or strategiesParent summary plus child runtime artifacts and source refs

Common product choices

User interfaces can translate plain-language intent into these policies:

User choiceRuntime policy
Do one taskApp-less attempt
Try a code changeApp-backed attempt
Build a reviewable changefeature
Review a patch firstpatch_only
Run this repeatedlyscheduled_run
Reproduce this failurereplay
Compare many variantsrollout or multi_feature_batch

Resource size, lifecycle, and workflow mode remain separate decisions. A feature runtime can use small or large compute. An attempt can be deleted immediately or retained by an explicit policy. A scheduled runtime should normally materialize compute only for each run.

Promotion and authorization

Modes define capability boundaries, but they do not replace application authorization. A checkpoint records intent; waitForUser records a pause; a promotion policy records the allowed path. Your product should still require an explicit decision before publishing source, opening public access, or mutating an external system.

Lifecycle pattern

  1. Create the runtime with a mode and promotion policy.
  2. Materialize bounded compute only when the active step needs it.
  3. Record events, outputs, source state, and checkpoint hints.
  4. Stop or delete compute while the workflow waits.
  5. Resume from durable state when work continues.
  6. Archive the runtime when review and retention obligations are complete.

See runtimes, snapshots, and cleanup for the SDK flow and pricing and budgets for cost controls.