Sandbox kinds
Both kinds start from the snapshot Fleet pins. See Snapshots. With
runtime.linked_children = true, Fleet creates child Sandboxes as Daytona sandboxes linked to the root Sandbox.
Each program invocation gets a fresh interpreter namespace with its own bindings and tools. Don’t rely on Python variables between Turns. Write anything you need later to the workspace.
How code runs
Fleet creates one Daytona interpreter context per namespace and sends each execution as onerun_code call. The sandbox reports host calls, such as llm_query or spawn_agent, as marker lines on stdout. Fleet runs the call and uploads the reply as a file that the waiting sandbox code reads. There is no HTTP daemon or bearer token inside the Sandbox.
- Each execution can run until the Turn deadline, if one is set. By default, Turns have no Fleet deadline. See Turn deadlines.
- A host call that gets no reply within the time left in the Turn raises
TimeoutErrorinside the sandbox. Model code can handle the error instead of stalling. Without a Fleet deadline, host calls wait without a limit. - At the deadline, on cancellation, or when a Turn fails, Fleet stops the root Sandbox to interrupt running Python, including infinite loops, and shuts down child Sandboxes. The next Turn starts in a new root Sandbox.
- A completed Turn keeps its root Sandbox warm for the next Turn.
- Fleet discards a host reply that arrives after its execution has ended and emits a
fencedevent.
Retries
Fleet retries idempotent Daytona calls, such as file transfers, sandbox start and stop, and listing, when they fail with a connection error, timeout, rate limit, or 5xx response. It makes up to three attempts with jittered exponential backoff. Fleet never retriesrun_code. A timed-out or disconnected execution may already have run, so Fleet stops the Sandbox and fails the Turn instead of replaying the code.
Turn preparation
Before each Turn, Fleet refreshes the root Sandbox state from Daytona. Daytona stops a Sandbox afterdaytona.auto_stop_minutes of inactivity. If the Sandbox is stopped, archived, or paused, Fleet starts it again and emits a sandbox_resuming event, so the Turn continues instead of failing.
Fleet then gathers the Turn’s remote inputs in a single sandbox execution:
- SHA-256 digests of the workspace files.
- The newest shared learned notes.
- A sandbox environment line with the Python version, which numeric libraries are installed or missing, and a hint about Python’s integer-to-string digit limit.
Child inputs
When a child agent starts, Fleet copies its inputs into the child workspace in one batch. By default the child receivesfiles/ and skills/. When the parent passes input_paths, the child receives those paths plus every Skill. Fleet records input receipts only after the whole batch lands. Successful child artifacts appear under artifacts/<agent-id>/ in the parent workspace.
Shared learned notes
Shared learned notes let later Sessions benefit from earlier Turns.- After a Turn commits with a non-empty learned note, Fleet writes it to
/learned/<session-id>-<turn>.mdon the shared Volume subpath. The file is markedstatus: unreviewed, and Fleet redacts labelled credentials from it. - When a later Turn starts, Fleet reads the newest notes, drops near-duplicates (a word overlap of 0.5 or more with a newer note), and keeps at most eight.
- Fleet adds their summaries to the memory summary as unreviewed hints. The model can read the full note at
/learned/<file>.
daytona.shared_notes_subpath or FLEET_SHARED_NOTES_SUBPATH. The default is shared/learned-notes. Set it to an empty string to disable the mount and stop writing notes. See the configuration reference.
Snapshots
Fleet pins the Daytona snapshot that every Sandbox starts from. You can’t select a different snapshot in TOML or the environment. The current pin isfleet-rlm-python313-v14: Python 3.13 with a locked set of Python packages, plus git, Node.js, npm, pnpm, TypeScript, ripgrep, and jq.
Before Fleet provisions a Sandbox, it checks that the snapshot exists in your Daytona organization, is active, and has at least 4 CPUs, 8 GB of memory, and 8 GB of disk. Otherwise the Turn fails with an error event that starts with Snapshot 'fleet-rlm-python313-v14' is unusable and says how to recover.
Build the snapshot once per Daytona organization. In fleet cli, type /setup and choose Build snapshot (Alt+B). If the snapshot exists but is inactive, choose Activate snapshot (Alt+A) instead. A snapshot that is still building becomes usable once Daytona marks it active.
Fleet records the resolved snapshot on each Turn’s outcome event, stored result, and trace. Fleet still probes each Sandbox’s Python environment during Turn preparation. When optional packages are missing, it emits one sandbox_environment_incomplete event and continues the Turn.