Execution flow
This technical reference was reconciled statically with current implementation on 8 November 2026. Explicit historical examples, screenshots and pinned public links remain historical; they are not evidence of current runtime acceptance. Start with the current operator guide for installation and check your installed build before using newer capabilities.
This page follows a selected native tool call through validation, dispatch, provider continuation, and terminal reporting. For setup and tool arguments, see Tools.
From model output to execution
Native call IDs remain runtime metadata. The executor returns one result for every provider call, including malformed or denied calls, so a model can repair arguments without corrupting the provider's tool protocol.
Validation is repeated at dispatch
An earlier review is a receipt, not trusted authority forever. The concrete executor checks parser errors and operator-configured hard blocks again. Integration calls additionally resolve an enabled connection and grant; mod-backed tools recheck the live registry and grants at invocation time.
This catches changes between discovery, model selection, and execution. It does not turn arbitrary installed code into a sandbox.
Local and remote dispatch
Process and supported native filesystem routers use immutable target facts. Remote operation identity is derived from parent-run and provider-tool-call identifiers. Protected values are passed separately from ordinary command text.
Minion spawning is independently depth-gated: effective global/per-agent maxDepth defaults to 1 and permits 0–2; leaf tool surfaces omit spawn_subagent, and the executor rejects attempted bypasses. Runtime-owned lineage persists root, immediate parent, depth and the saved budget. See Minion Depth.
For local Burrow-harness minions, the parent writes a private temporary payload, starts the child Node process, and captures bounded stdout/stderr tails. The child emits progress and a distinct terminal JSON sentinel. The parent records the final receipt and removes temporary payload material. For remote-assigned Burrow-harness minions, the runner stays in-process to retain the trusted execution controller. Codex and Claude Minions instead use native CLI runners with separate protocol, credential, continuation and terminal-outcome contracts; see Minions.
Bound memory without ending useful work
Tool implementations own raw outputs. The loop retains compact calls, receipts, and evidence projections; the original result graph is released after the adapter serializes the native continuation. Histories are bounded independently of how many useful iterations can execute.
Exact repeated call-and-result streaks produce a warning and then a block using configured thresholds. The default helper thresholds correspond to warning on the second attempted identical call and blocking on the third. A repeated call whose observed outcome changes is different from an unchanged exact repeat. Semantic inspection-stall telemetry is observational rather than a separate universal stop rule.
When native continuation is supported, the runtime preserves protocol pairs and supplies prepared messages. Otherwise it uses an explicit evidence-based follow-up prompt. A terminal repeat block performs a tool-less synthesis that must distinguish executed results from skipped calls.
What gets persisted
Finalization separates several outcomes:
- Persist generated artifact bytes, then keep only normalized storage metadata
- Store canonical tool-call/result entries as debug data
- Store a compact execution digest for continuity and activity for presentation
- Store the assistant's user-visible answer
- Persist bounded run evidence and a compact receipt reference
- Commit terminal state under the session's continuity generation
An empty answer after tool use becomes incomplete. The transcript must not silently claim a finished task merely because tools ran.
Verification is a separate claim
Normal chat collects tool outcomes and structured completion evidence. It does not automatically execute every legacy work-loop verification/commit gate.
The retained work-loop verification helper looks for a successful model call, a mutation artifact, a passing check, no failed checks, and overlap with a changed target. Its recognized mutation/check types are limited. Current verification recognizes successful files_write, files_edit, and files_patch results as mutations; shell-based checks still need supported command/evidence classification. A successful write is therefore not interchangeable with “verified,” and a successful check should identify what it checked.
Failure and cancellation semantics
| Observation | Interpretation |
|---|---|
| Invalid/blocked tool result | That call did not execute; the model can choose a valid next step |
| Failed command | Inspect exit status, stdout/stderr, and any earlier effects |
| Failed multi-file patch | Earlier file operations may already have applied |
| Provider continuation failure | Earlier tools may have succeeded; reconcile their receipts |
| Superseded terminal result | Another run owns the session; no stale answer should become current |
| Cancellation | Abort is requested; do not assume previously completed side effects were rolled back |
| Minion prose without terminal signal | Not a completed child result |
The runtime is not a transaction manager for arbitrary shell commands, remote systems, or multi-tool work. Recovery must reconcile observed effects. Known limitations records static wiring and edge-path concerns; Troubleshooting explains operational diagnosis.
29 October development delta
Changed contracts above were checked statically against Backend 4057b50a5d5a9b14d36bb3b70f35781c4b29a9b9 on 2026-10-29. This is not a runtime, provider or collector test, nor a revalidation of unchanged historical sections. See source coverage.