Report

Runtime assessment (embedded-assistant use case)

1. Programmable capabilities

Column scope: Capability interface: how tools are exposed and discovered. Reusable computation: what programs, workflows or scripts are kept and reused across runs. Capability transfer: what moves to a fresh agent, and with which dependencies and conversation state.

Equivalent mechanisms go by different names across runtimes:

  • Reusable instruction bundles: "skills" (SKILL.md), "recipes" (goose), "precursors" (spore), prompt templates (pi).
  • Model-written programs run in a sandboxed interpreter: "code mode" or "codemode", execute_code, workflow.
  • Scheduled reuse: "cron", "schedules", "automations".
Runtime Capability interface Reusable computation Capability transfer
codex Built in. A tool registry is rebuilt every turn from core tools, MCP (stdio or streamable HTTP), extension tools, hosted tools and host-executed "dynamic tools" (experimental). tool_search can defer large catalogs. Plugins bundle skills, MCP servers, apps and hooks; there is no in-process code ABI. P1P2P3P4 Partial. On-disk skills (SKILL.md plus scripts) and execpolicy .rules files persist and are rediscovered each session. No workflow or recipe engine was found. Code mode (V8) is under development and off; its store/load values live in memory only. P5P6P7P8 Note P-1 Built in. A fresh thread rediscovers on-disk skills, plugins, MCP config and rules, but dependencies must already be installed on that host. thread/fork and subagent fork_context carry the full history. Skills can declare MCP dependencies, which the user is offered to install. Code-mode values and live PTYs do not transfer. P9P10P11P12
goose Built in. MCP extensions (stdio, streamable HTTP, in-memory builtins) and in-process platform extensions are merged into a per-session tool snapshot with ext__tool names. The ACP host can add or remove extensions per session. Providers that run their own tool loop lose stdio/HTTP extensions. P13P14P15P16 Note P-2 Built in. Recipes are YAML/JSON files with instructions, parameters, extensions, sub-recipes, a response schema and retry checks, discovered from project and home directories. [opt: serve --enable-scheduler] runs recipes on cron. [opt: code_execution] JS is not retained between runs. P17P18P19P20P21 Skills, agent .md files and recipes are files in shared directories (including .claude/ and .agents/). A fresh session sees them without conversation state. Sessions can be exported, imported (goose JSON, Claude Code, Codex, Pi) or forked. Delegates receive only instructions and source content. Plugins bundle MCP servers; binaries are not bundled. P22P23P24P25P26
hermes-agent Built in. A Python registry imports self-registering tool modules, gates each with check_fn, and filters by toolset. Plugins (ctx.register_tool) and an MCP client (stdio, or HTTP falling back to SSE) add tools. MCP and plugin tools can be deferred behind tool_search. P27P28P29 No workflow or recipe engine. Reuse comes through skills (SKILL.md plus scripts/), which the agent creates and patches with skill_manage; the system prompt tells it to. execute_code keeps a Python kernel for one conversation but does not save scripts. Cron stores prompts, not programs. P30P31P32 Skills are portable directories, installed from the skills hub through a quarantine step or copied. A fresh agent sees an <available_skills> index. Environment requirements are declared, not bundled. Delegated children start without the parent transcript or context files and get only goal and context text. P33P34P35P36
letta-code Built in. About 30 static client tools are sent per request as client_tools and executed locally, not by the Letta server. Other sources are trusted in-process mods and host-injected external tools. MCP is reached through the letta mcp CLI or scripts, not as native model tools. P37P38P39P40P41P42 Note P-3 Built in. Skills persist at four scopes: bundled, global, agent (in MemFS) and project. Each Workflow run saves script.js, its args and an append-only journal, and can be re-run by scriptPath; the journal is never replayed. Crons persist prompts. P43P44P45P46 Skills move by file copy or through agent-scoped MemFS, which is git-synced to the server in API mode. Subagents inherit the parent's allow/deny lists and root-parent MCP scope; only the fork type carries conversation. AgentFile export was removed. P47P48P49P50 Note P-4
nullclaw Built in. Tools are compiled-in Zig vtables in a fixed allTools() list, some gated by config. Configured MCP servers (stdio or HTTP) are wrapped as mcp_<server>_<tool>, using only tools/list and tools/call. No runtime plugin loading. Arguments are not validated against the declared schema. P51P52P53P54 Partial. Cron jobs (shell commands or agent prompts) persist in cron.json. Skills (SKILL.md/TOML) persist as prompt instructions, not executable units. No workflow or script engine with typed inputs. A RuntimeAdapter (wasm3/docker) exists but has no production caller. P55P56P57 Note P-5 Built in for skills: install from a path, git, a web index or by name. Declared requires_bins/requires_env are checked at load, not installed. Conversation state does not transfer. [opt: snapshot_enabled] exports memory snapshots. SkillForge auto-discovery is dormant. P58P59P60P61
openclaw Built in. The tool list combines core tools, plugin registerTool tools and MCP tools from config and plugin bundles. Layered allow/deny policy (profile, provider, global, agent, group, sender) filters it, and deny wins. openclaw mcp serve exposes channel tools, not the agent toolset. Plugins run in-process. P62P63P64P65P66 Built in. Skills come from layered roots (SKILL.md plus scripts/). Agents author skills through Skill Workshop (on by default). Persisted cron jobs can carry script payloads, with a time limit and tool budget, run through Code Mode. [opt: Lobster] adds typed, resumable workflows. P67P68P69P70P71P72 Note P-6 Skills move as directories: copy, ClawHub install, or the team skill library (owner-granted). Plugins install from ClawHub by default; npm, git and path need --force. Skill requirements are probed; a missing binary disables the skill. Workshop skills stay per-agent until published. No conversation state moves. Whole-state backup only. P73P74P75P76
opencode Built in. One registry is fed by built-in plugins, npm or local plugins, SDK plugins and MCP. Tools carry input and output schemas. By default most tools sit behind one Code Mode execute tool; denying execute exposes them directly. Plugins run in-process, and only tool.execute.before can reject a call. P77P78P79P80P81 Built in. Automations are SQLite rows on by default (automations: false disables them). Each runs a prompt, shell command or Code Mode program on a timer, cron, one-shot or MCP-event trigger; code actions are capped at 30 s and 32 KiB of output. Skills, commands and plugins give file-based reuse. Code Mode calls are not stored otherwise. P82P83P84 Note P-7 Built in. Skills are discovered from .opencode, .claude and .agents directories and from configured paths or URLs; MCP-provided skills are dev-only. Subagents start with fresh context but inherit the parent session's permissions and metadata. Sessions fork, and experimentally export or import. Plugin and MCP executables must be installable on the target. P85P86P87P88P89P90
pi Built in. The default tools are read, bash, edit and write. TypeScript extensions loaded in-process via jiti register tools, commands and flags. Built-in replaceable extensions provide an MCP client (stdio, streamable HTTP), tool_search and codemode. Tools use TypeBox schemas in one per-session registry. P91P92P93P94 Partial. Skills (with scripts), prompt templates and extensions persist on disk. [opt: +codemode] QuickJS runs model-written JS; scripts are not saved, but store() values persist as session-branch entries. [alt: pi-durable] offers journal-replayed code mode. P95P96P97P101 Skills, extensions, prompts and themes move as files or as "Pi packages" (npm, git, local); project packages load only after trust [D]. Conversation moves only by fork, clone or JSONL import. No built-in subagent exists: the shipped example spawns a child pi with task text only. P98P99P100
software-agent-sdk Built in. A process-global name→resolver registry. The Agent declares tool specs, mcp_config (fastmcp), plugin bundles and client tools, with regex filtering. Tool classes must be importable in the executing process; the server re-imports them by module qualname. P102P103P104P105 Partial. Skills (scripts, references, assets), git-fetched plugins and agent .md files are file-based. Inline !`cmd` in a skill runs at render time with process privileges. [opt: workflow tool] runs model-written Python orchestration in-process ("MVP"), but scripts are not kept as named workflows. P106P107P108P109P110P115 Built in at the config level. Agent (LLM, tool specs, MCP, skills, condenser) is a serializable pydantic model. Conversations fork with full event history. Tool modules must be installed in the target. Secrets are redacted and lost on restore without a cipher. Sub-agents get exactly the parent's MCP servers. P111P112P113P114
spore Built in. The model sees seven fixed tools (read, write, edit, exec, wsexec, ask, quiet), filtered by the definition's grant. Everything else (spawn, recall, SQL, plugin programs, MCP) is a program run through exec. Plugins add programs and docs, not tools. MCP is an optional CLI plugin. P116P117P118P119P120P121 Built in, file-based. The agent writes programs under data/ and sub-agent definitions ("precursors") under precursors/, and grants programs to cells as "enzymes". [opt: schedules: grant] adds schedules; [opt: jobs: grant] adds bounded detached jobs. There is no workflow DSL. P122P123P124 Note P-8 Built in. define --from clones the definition, precursors, checks/ and the closure of granted enzymes and their declared dependencies. Transcript, data/memory/ and records are excluded. A missing declared dependency refuses the clone. Plugins transfer only by name. fork is the separate conversation copy. P125P126P127

Programmable capabilities: Notes

  1. P-1 (codex): The model sees a policy-filtered subset of the registry. MCP tools can be deferred behind tool_search or code mode, so "registered" does not mean "visible to the model" P1. The model-visible skills namespace (list/read/installations) caps responses at 512 KiB.

  2. P-2 (goose): Which extensions are on by default:

    • On: analyze, apps, extensionmanager, summon, developer, tom, and scheduler (hidden).
    • Off: todo, chatrecall, summarize, code_execution.

    [opt: GOOSE_TOOL_DEFERRAL=lookup] defers tools. An admin allowlist (GOOSE_ALLOWLIST) can restrict extension installs. An OSV malware check on npx/uvx commands fails open for unknown ecosystems. Exposure depends on the provider class: ACP-backed providers such as claude_acp and codex_acp lose goose's stdio/HTTP extensions P16. Neither the agent nor any other path has an in-tree way to save a callable program as a tool; reuse goes through files written with the generic write tool.

  3. P-3 (letta-code): Client MCP tools are not appended to the model's native tool list (per audit search). The model reaches them through Bash → letta mcp call, or through script scopes that permission-check builtins P42. Mods are documented as trusted local code with no sandbox P41. Any server-side tools on a Letta Cloud or self-hosted agent are outside the tree [D].

  4. P-4 (letta-code): The subagent launcher always passes --permission-mode unrestricted alongside the inherited --allowedTools/--disallowedTools lists P49. Visibility is narrowed by tool lists, not by approval. This is a capability-transfer fact; confinement implications belong to group 4. In API mode the client pushes skills and memory to the server git remote P47; that the server restores them is [D].

  5. P-5 (nullclaw): In prompt.zig, skills with always=true are injected in full; others appear as an XML summary the agent must file_read P57. Cron agent jobs run as a subprocess of the same binary. The audit found no production call site for RuntimeAdapter outside its own file and a re-export.

  6. P-6 (openclaw): Code Mode settings:

    • tools.codeMode defaults to "auto" and engages only for catalog models marked preferred.
    • The default executor is Node vm, which the config help calls "not a security sandbox"; a QuickJS executor is an alternative P70P71.
    • The per-session KV store allows 256 KiB per value and 1 MiB total.

    Lobster is in-tree, but its manifest has no enabledByDefault and its tool is optional P72. The README's plugins install @openclaw/lobster instruction leaves external distribution unresolved.

  7. P-7 (opencode): The release build is treated as the default. The following are off unless enabled with OPENCODE_FLAGS / experimental.* P85:

    • full_codemode, mcp_skills, and home_memory (which adds a scripts/ folder for "reusable scripts").
    • Code Mode agents and the session-interrupt and session-search tools.

    Basic Code Mode routing and automations are not flag-gated P78P83. Code Mode jobs interrupted by a restart are reported "Interrupted by server restart", not resumed. Versioned skills (*@sha256:*) default to ask.

  8. P-8 (spore): Readers run in parallel and mutators (write/edit/wsexec) run serially. Calling an ungranted tool returns a refusal that lists the granted set P128. The default identity tells the model to write programs for repeated work; this is a prompt instruction only [D]. Schedules fire via tick, through a systemd timer or spore-api --tick. Enzyme internals (rust/runner/src/enzymes.rs) were not traced by the audit. ARCHITECTURE says a clone is not told it inherited capabilities [D].

Programmable capabilities: Cross-runtime observations (column-specific)

  • Skills as the common transfer unit. Nine of ten runtimes reuse SKILL.md-style directories, and several read each other's directories (.agents/, .claude/):

    • codex, goose, opencode, pi and software-agent-sdk read .agents/skills.
    • goose and opencode also read .claude/.

    spore's unit is the precursor plus its granted programs. No runtime packages external binaries or secrets with a skill: requirements are declared and checked (nullclaw, openclaw, hermes), offered for install (codex MCP deps), or refused at clone time (spore).

  • Persistence of model-written programs differs:

    • Saved per execution and re-runnable: letta-code Workflow.
    • Saved as a scheduled action: opencode automations (code), openclaw cron script.
    • Persisted values only: pi codemode store() in the session log.
    • In memory only: codex code mode, hermes kernel, goose code_execution.
    • In-process, not retained: software-agent-sdk workflow.
  • Conversation versus capability. spore's define --from alone is built to transfer capability while explicitly excluding the transcript and memory. Elsewhere, transfer is either rediscovery from shared files (no conversation) or fork/import (whole conversation).

  • Isolation of capability code. In-process extension code runs with host privileges in:

    • goose platform extensions, letta-code mods, openclaw plugins, opencode plugins, pi extensions, software-agent-sdk tools.
    • hermes plugins (in-process registration, per the audit).

    nullclaw allows no runtime plugin loading. spore adds no tools, only programs run under its exec confinement.

2. Evidence and memory

Reading guide. Durable evidence = what is stored outside the model context, where, for how long, and who can change it. Context recovery = how material that has left the prompt (through compaction, truncation or a restart) gets back in. We separate a summary placed in the prompt from evidence stored outside it that comes back only through a tool, a reference or an automatic injection. Memory maintenance = how learned notes and skills are written, consolidated, corrected and retried. Having files on disk, or a bigger summary or preview, does not by itself make memory better. What matters is whether the agent can retrieve the material, through which path, and with what retention and mutation rules.

Runtime Durable evidence Context recovery Memory maintenance
codex Built in. One JSONL rollout per thread under ~/.codex/sessions/, plus SQLite state/log DBs. No age-based deletion of rollouts. Revert writes a new rollout file and leaves the old one. archive/delete remove history on request. Logs are pruned after 10 days. history.jsonl (prompts) can be turned off E1E2E3E4E13. Built in. Auto-compaction is remote (OpenAI backend) or local: a summary plus up to 20k tokens of user messages. The full rollout stays outside the prompt, but by default the model has no tool to search it, only file re-reading. [opt: memory tools; gated history/notes] E5E6E7E8. Optional memories (off by default). Phase 1: per-rollout extraction with secret redaction. Phase 2: a consolidation sub-agent edits ~/.codex/memories under a git baseline. Leases and retry backoff are documented only. Root, non-ephemeral sessions only E9E10E11E12. Note E-1.
goose Built in. Per-user SQLite sessions.db holds messages and a usage ledger. No automatic retention. Rows are mutable: replace, truncate and recipe retry delete rows. Spilled large tool outputs persist in temp files that are never cleaned up E14E15E16E17. Built in. Compaction at 80% of the window (cap 225k) inserts a summary. Originals stay as agent-invisible DB rows. No default tool reads them. [opt: chatrecall SQL-LIKE search]. Truncation markers give file paths E18E19E20E21. No automatic consolidation found. [opt: bundled memory MCP server with remember, retrieve and remove over text files]. The host can CRUD skills, recipes and agents through ACP source methods. Correction and retry are manual E22E23. Note E-2.
hermes-agent Built in. Per-profile SQLite state.db with FTS5. Retention is indefinite by default (auto-prune and auto-archive off). Rewind soft-deletes rows. replace_messages and session delete hard-delete. A JSONL rescue copy is written only if state.db is swapped E24E25E26. Note E-3. Built in. In-place compaction marks old rows compacted and keeps them. The default session_search tool does FTS5 discovery, scroll and read with no LLM. MEMORY.md/USER.md enter the prompt as a frozen per-session snapshot. [opt: external provider recall injected into the user turn] E27E28E29E30. Built in, best-effort. A background review fork (every 10 turns) patches memory and skills. An idle curator moves agent-made skills to stale and then archived, never deleting them. LLM consolidation is off by default. Failures are swallowed at debug level and not retried E31E32E33E34.
letta-code API mode: server-held messages (retention [D]/unknown), plus a client transcript.jsonl copy. Local mode: per-conversation messages.jsonl, appended, rewritten on fork or migration. No age-based retention. Tool overflow files are pruned after 24h, at interactive startup only E35E36E37E38. API: server-side compaction [D]. Local: an in-tree LLM sliding-window summary keeps the raw rows on disk. They are searchable with in-tree BM25 via letta messages search and a recall subagent. The agent has to ask. Nothing is injected automatically E39E40E41E42. Built in when MemFS is enabled. Memory is a git repo with post-turn push and rebase-retry. A repair subagent runs once per conflict signature. A reflection subagent (default every 25 steps) edits memory and skills in a worktree. Backoff is in-memory (60s to 30 min) E43E44E46E47. Note E-4.
nullclaw Built in. Hybrid SQLite memory.db. Each turn persists only the user and final assistant text, PII-redacted by default. Intermediate tool calls and results are not stored. Hygiene prunes conversation memories after 30 days. The messages table is not pruned E50E51E52E53E54. Built in. In-RAM compaction (100 messages or 75% of tokens) writes a summary of at most 2,000 characters. On overflow, all but 4 messages are dropped. Recovery: memory_recall tools and automatic memory injection (≤4 KB). Past tool outputs cannot be recovered E55E56E58E59. Note E-5. Partial. The agent stores, overwrites and forgets keyed memories through tools. Hygiene archives and purges by age. The LLM summarizer lifecycle module is configured but never invoked (dormant). No skill-learning or self-correction loop E53E59E60.
openclaw Built in. Per-agent SQLite transcript_events. Prunes by default: 30 days, 5,000 sessions, 10 GiB budget, then cold .jsonl.zst archive. Transcripts are rewritten in place (tool-result truncation, suffix replace), although the docs say append-only E61E62E63E64. Built in. The persisted compaction entry holds the summary plus a first-kept id. Older rows stay in SQLite. Retrieval through ungated sessions_history/sessions_search and memory_search (sessions included by default on single-user installs). Spill-file paths stop working after a restart E65E66E67E68. On by default through memory-core and skill-workshop. Pre-compaction note flush. Nightly LLM "dreaming" merges and supersedes MEMORY.md entries, with a 25% loss guard and an append-only fallback. Background skill review, daily archiving of unused skills, versioned restore. Failures are skipped E70E71E72E73E74. Note E-6.
opencode Built in. Single SQLite opencode.db (0600). Durable event payload log off for the CLI server (on for workerd). Revert and delete remove message rows. Tool and shell output files are kept 7 days. The embedded SDK defaults to :memory: E75E76E77E78E79E80. Built in. Auto-compaction writes a summary checkpoint and keeps about 15k tokens verbatim. Recovery is the in-prompt summary plus re-reading files and the saved tool-output paths. Session search/read tools need sqlite_fts, a dev-only flag (off in release) E81E78E82E83. No default memory store. [dev-only: home_memory flag, home-dir sessions only] gives memory/docs/scripts dirs and a daily unattended LLM maintenance session that merges and deletes notes. No validation. A failed run waits a day E84E85.
pi Built in. Append-only JSONL session tree per cwd under ~/.pi/agent/sessions/. Rewritten only for migration or branch extraction. No retention policy (manual delete). Secrets in tool output are stored verbatim E86E87E88E94. [alt: pi-durable stores] Built in. Compaction at window − 16k keeps about 20k tokens. The summary carries cumulative read/modified file lists so files can be re-read. No transcript-search tool. Bash full output is reachable by temp-file path E89E90E91. Note E-7. No learned-memory subsystem. Persistent guidance is AGENTS.md/CLAUDE.md and skills, edited by people or by the agent's ordinary file tools. Only compaction summarization is retried. Nothing consolidates or corrects notes E92E93.
software-agent-sdk Default local SDK: in-memory only (no persistence_dir). With persistence_dir, and on the server: base_state.json (rewritten) plus append-only per-event JSON files under a lock. No default expiry. The Conversation factory defaults delete_on_close=True E95E96E97E98E99. Note E-8. Optional. Agent.condenser defaults to None. The default preset adds an LLM summarizing condenser, whose Condensation event hides forgotten events from the view while they stay in the event log. No tool reads them. Cross-conversation tools are experimental and off E100E101E102E103E104. Optional (load_memory=False). User and project MEMORY.md are injected up to 6,000 characters and marked "not verified". Upkeep is a prompt instruction carried out with ordinary file tools. No consolidation job, validator or retry E105E106E103.
spore Built in. Per-workspace state.sqlite (transcript, turns, events, calls) plus calls/ streams. The transcript is never pruned. Optional retain: N prunes old call records. The agent cannot write the DB (read-only root, runner-held channel). The host can rewrite records E107E108E109E110. Built in. A turn-start LLM summary applies above min(256k, half the window). A mid-loop guard stubs out old tool results with "re-read if needed". Pull recall ($SPORE_RECALL BM25) and $SPORE_SQL reach outside-context rows. The default definition also pushes ≤5 hits into the prompt E112E113E114E115. Agent-written markdown in data/memory/, indexed by BM25 (default) or a host vector store. Consolidation only through an optional idle "dream" cell. Correction is a prompt instruction. Recall failure is non-fatal. Nothing retries failed memory writes E116E117E118.

Evidence and memory: Notes

  • E-1 (codex): memories/README.md describes leases, a failed state with retry backoff, and a consolidation agent "with no approvals, no network". Entry points were source-verified. Lease SQL and the agent's sandbox settings were not traced, so those details are [D]. The README also points to codex-rs/core/src/memories/, which does not exist; the code is in codex-rs/memories/write/src/. When memories are on, the agent can also write ad-hoc notes that feed consolidation, and can list, read and search them (namespace memories). The gated history/notes tools are hosted by an HTTP backend and need OpenAI plus Codex-backend auth plus an UnderDevelopment flag, so they are not a general retrieval path. Remote compaction content is produced server-side [D].
  • E-2 (goose): Pre-compaction messages are stored outside the prompt but flagged agent-invisible. No default-enabled tool queries the current session's hidden rows. chatrecall is cross-session keyword search, and loads only the first and last 3 messages of a session. Recipe retry erases the failed attempt's messages, so evidence of the failed attempt is not kept in the session store. Global memory entries are loaded into the server instructions at startup, so they are in the prompt rather than retrieved.
  • E-3 (hermes-agent): A config comment says pruning runs at CLI, gateway and cron startup. The audit found call sites only in the gateway and dashboard (unresolved). Retention numbers (90 days, archive after 3 days) apply only once the user turns the feature on. An optional memory.write_approval gate (off by default) stages background memory writes for approval E34. Children are barred from the memory tool.
  • E-4 (letta-code): The memory repo has constraints (.memfs.config.json: depth, char limits, read-only files) enforced by a git pre-commit hook E48, so some mutation rules are mechanical rather than prompt-only. Auto-reflection is off on native Windows unless LETTA_ENABLE_WINDOWS_AUTO_REFLECTION=1 E45. It is forced off in detached headless mode E49. reflected_through_message_id advances only on success, so a failed reflection is retried over the same span. Retry backoff resets on restart. API mode can delegate reflection to the server [D].
  • E-5 (nullclaw): The compaction summary lives only in RAM. After a restart the persisted user/assistant pairs are reloaded E57, not the summary, and compaction runs again. Because the persisted transcript is redacted, placeholders such as [EMAIL_1] replace the originals on disk, which limits what later recall can return. Automatic injection puts up to 5 entries and 4,000 bytes of memory into each user message, so these are in-prompt copies rather than references.
  • E-6 (openclaw): Dreaming and skill review spend model tokens without a user request, and no budget cap applies (see Execution controls). Skill review is skipped for errored runs, cron, subagent and ACP sessions. A flush is marked exhausted after 3 consecutive failures. The docs call session indexing opt-in (docs/concepts/memory-search.md:320-322 E69), but code enables it for single-user dmScope main installs. Spill files are indexed only in process memory and have no sweep.
  • E-7 (pi): Session files remain on disk and the agent has generic bash/grep/read tools, so it could in principle grep its own JSONL. No tool or prompt is designed for this; we treat it as "no designed retrieval path". Extensions can transform context through context hooks.
  • E-8 (software-agent-sdk): delete_on_close defaults to True in the Conversation(...) factory E97, but to False when RemoteConversation is constructed directly. A remote conversation created through the factory sends DELETE /conversations/{id} on close. An embedding host that wants durable remote history must pass delete_on_close=False. With [opt: DockerWorkspace], the container runs --rm with no default volumes, so server-side history disappears with the container unless volumes are set E98. Corrupt event files are replaced by stand-in events rather than failing the read.

3. Specialist collaboration

Scope: how a runtime defines a delegated specialist (subagent, delegate, cell, precursor), what of it survives follow-ups and restarts, and how parents schedule, message, cancel and bound children. Equivalent names: codex "agent threads/roles", goose "delegates" (summon), hermes "delegate_task children", letta "subagents/Task", nullclaw "subagents/delegate", openclaw "sessions_spawn children", opencode "subagents/jobs", pi "example subagent extension", software-agent-sdk "task/AgentDefinition", spore "cells/precursors".

Deeper or wider delegation is not inherently better. Each level multiplies model cost, and where caps are counted per node, total fan-out multiplies too (Note C-11). The second table shows how authority passes from parent to child. Read it with the confinement column in group 4.

Runtime Specialist definition Continuation Coordination
codex Built in (v1 on by default; v2 optional multi_agent_v2). Roles [agents.<name>] (+ optional file) set prompt, model, effort, tier. Roles can only disable some tools and skills. Approval policy, cwd and permission profile are copied from the parent turn C1C2C3C5C6. Built in. Each child is a full thread with its own rollout, linked by parent_thread_id. v1 send_input/resume_agent reload closed or unloaded agents from the rollout, so they survive a restart. The v2 mailbox keeps queued mail while a child is unloaded C7C8C9C10. Built in, model-driven tools. v1: depth 1 (children cannot spawn; tools hidden), 6 concurrent threads (v2: 4 including the root). Waits have timeouts; close_agent closes the whole subtree. v2 ignores max_depth. Message board off C11–C16; Note C-1.
goose Built in (summon extension, delegate tool). Takes ad-hoc instructions, a recipe or an agent .md. Per-call overrides: extension subset, provider/model, max_turns, working_dir. Child inherits the parent's goose_mode. Agent .md files have no tool or permission fields C17–C22. Built in. The child is a persisted SubAgent session. delegate(resume=id) appends follow-ups even after completion, failure or cancel. Results return as tool results. After a restart, undelivered children are found by scanning the parent conversation, but only once the parent steps again C23C24C31; Note C-2. Built in. Depth hard-limited to 1. 5 concurrent per parent turn; extras queue. Children share the parent's cancel token. Child approvals and elicitations go to the parent's client. No peer messaging; avoiding same-file conflicts is prompt guidance only C25–C30.
hermes-agent Built in (delegate_task). Fresh agent per child: parent toolsets minus a blocklist (delegate, clarify, memory, send_message, cron), parent model unless delegation.model is set. Roles: leaf/orchestrator only, plus profile routes. CLI children cannot prompt; they auto-deny by default C32–C37; Note C-3. Built in. Child transcripts persist. continue rebuilds a finished child from its transcript. After a restart, resumable_subagents rows are used (48 h TTL, max 32). Background children report back as a later turn. Auto-resume is optional (auto_resume, gateway only) C36C38C39C40. Built in. Thread pool, 10 concurrent. Depth 1 by default; max_spawn_depth can raise it with no ceiling. Parent interrupt fans out (background units excepted). No wall-clock timeout by default. No delegate mailbox; bot DMs and kanban are separate surfaces C41–C46.
letta-code Built in. Markdown frontmatter (tools, model, skills, fork) from built-ins, ~/.letta/agents and .letta/agents. Each child is a letta -p process launched with --permission-mode unrestricted plus the parent's deny list [alt: external coding agents with permissive modes] C48C49C51C63; Note C-4. Follow-ups reuse the child's conversation (on the server in API mode, on disk locally) via Task agent_id or SendAgentMessage. Live state (running tasks, abort hooks) is in memory and lost on parent restart. Whether ephemeral API children can be resumed: unknown C52C53C54C63. Built in. Task always runs in the background and reports through a queued notification. 32 concurrent tasks per process. Depth 2; the Task tool is removed at the limit. Cancel: SIGINT then SIGKILL to the process group, or server-side cancel. Agent messages use the server enqueue endpoint; authorization is server-side [D] C55–C62.
nullclaw Built in. Named profiles set provider, model, prompt, temperature, workspace; no per-profile tool or permission scope. Spawned subagents get a fixed reduced toolset and the global autonomy policy, but their shell tool has no sandbox backend. delegate is one tool-less LLM call C64–C67C71; Note C-5. Limited. Spawned subagents are in-memory OS threads with a fresh history and a single turn. Results arrive via the bus or a next-turn notice. No follow-ups; nothing survives a restart. Named-profile sessions persist like any session C67C68C75. Built in, minimal. 4 concurrent; a spawn over the cap fails (no queue). Children have no spawn or delegate tools. Running subagents cannot be interrupted. No inter-agent messaging beyond result delivery C69C70C72C73C74.
openclaw Built in (sessions_spawn; [alt: ACP runtime via the acpx plugin, on by default]). The child targets a configured agents.entries.<id> (model, tools policy, skills, sandbox, workspace prompt files). allowAgents gates which targets are allowed. Depth decides orchestrator or leaf deny lists. A sandboxed parent cannot spawn an unsandboxed child C76–C81; Note C-6. Default mode "run" is one-shot; the result is announced (120 s delivery timeout). "session"/thread mode keeps a persistent child for follow-ups. The run registry is in SQLite, but in-flight child runs are settled as errors on restart, not resumed C82–C85C94. Built in. Admission is checked before launch: depth 5, 5 active children per requester, with pending-slot reservation. Per-parent lane, width 8. Cancel cascades to descendants. sessions_send is denied to hidden subagents. Notify is in-process, not durable. Caps are per node, not tree-wide C86–C92; Note C-6.
opencode Built in. Agent records (model, prompt/instructions, mode, steps, ordered permission rules) come from config, agent .md files or plugins; built-ins are general and explore. Permission rules double as tool scoping. A child gets its own agent's rules plus the parent session's permissions; the parent agent's denies are not intersected C95–C98; Note C-7. Built in. A child is a durable session plus a subagent job. Follow-ups via sessionID work even after completion. At server boot, unreleased executions resume with a restart notice, up to 10 attempts, at-least-once C99C100C101. Built in. Subagents always run in the background; the parent receives notices. Depth 1 by default (experimental.subagent_depth). Cancel per job or by deleting the session. The recursive interrupt tool and Code Mode fan-out are dev-only flags (off in release builds) C102–C108.
pi Not found in core (packages/coding-agent/src). [alt: shipped example extension] Markdown agents with tools/model frontmatter, each run as a separate pi process with --tools/--model. Same OS user, full parent environment; there is no approval layer to inherit C109C110C111C119; Note C-8. Example extension: nothing survives. Children run --no-session and only the final output returns, as a tool result; a follow-up needs a new spawn. The parent session itself resumes via -c/--resume [alt: pi-durable checkpointed child tasks, restart limit 5] C110C115C116. Example extension: at most 8 tasks, concurrency 4; single, parallel and chain modes; abort sends SIGTERM then SIGKILL. No depth guard, no messaging. Core has steer/follow-up queues and an extension event bus [alt: pi-durable typed signals] C112C113C114C117.
software-agent-sdk Registry built in; task tool optional (enable_sub_agents=False by default). AgentDefinition (Markdown, plugin or code) sets tools, model, prompt, skills, permission_mode, caps, hooks. MCP is always inherited. Scope narrows visibility only; a definition may set never_confirm C120C121C122C134; Note C-9. In-process only: resume by task_id reloads the conversation from the parent's subagents/ dir, or from a temp dir that is deleted on close. The ID map is in memory, so resume does not survive a restart, though the event files do [opt: agent-server child conversations] C124C125C126. task blocks the parent until the child finishes; workflow runs up to 64 children concurrently (default 8). A child that does not finish returns an error with partial output. No parent-to-child cancel propagation and no depth cap found [opt: server projects messaging, experimental] C128–C133.
spore Built in. "Precursor" .cmk files set a tool subset, model alias, required limits, check and enzymes. A strict parser rejects unknown fields; the broker refuses models the definition does not name. Cells run Landlock-confined beneath the agent; the tree is one trust unit, and the tool list is not a boundary C135–C139; Note C-10. Optional (--keep/--resume); by default cells are single-use. Kept cells (up to living-cells, default 3) persist on disk across turns and restarts, and rerun with their prior conversation. Detached cells lose access at turn end C140–C143. Built in, minimal. One level of depth (env SPORE_CELL guard). Scheduling is OS processes or fanout (width 8). No messaging; results come back via an answer file. Cancel is the turn abort plus an owner-token sweep. Cost is counted tree-wide at the broker C144–C149; Note C-10.

Specialist collaboration: Supporting table: parent→child authority

"Widening path": a documented or code-visible way a child can end up with more effective authority than its parent. This is not a judgement that the path is wrong; some embedders want it.

Runtime Approval / permission policy passed to child OS-level confinement of child Widening path found
codex Approval policy, reviewer and permission profile copied from the parent turn C5 Same permission profile (sandbox) as the parent C5 None via roles; roles can only disable tools C2
goose Parent goose_mode copied; child approval requests go to the parent's client C18C25 Same as the parent (no OS boundary by default; see group 4) None found; working_dir stays under the parent dir but is not an fs boundary C22
hermes-agent CLI: non-interactive callback, auto-deny (opt auto-approve). Gateway: per-session approval queue (code comment) C35 Same terminal backend as the parent (not separately traced) Global delegation.subagent_auto_approve C36
letta-code --permission-mode unrestricted; parent deny list and allow union passed C49 Only memory subagents are wrapped; launched unconfined if no backend is available C50 Unrestricted mode when the parent is interactive; external codex child runs approvalPolicy:"never", dangerFullAccess C51
nullclaw Global autonomy policy copied C67 Subagent shell built without sandbox_backend C65C66 OS sandbox dropped for spawned subagents (read from code, not run)
openclaw Target agent's tools policy plus fixed subagent deny lists C79 Sandboxed requester → sandboxed child required C81 Target agent's config may be broader (gated by allowAgents) C78; ACP spawn from an unrestricted main session skips admission C92
opencode Child agent's rules plus inherited session permissions C97 No OS sandbox found (group 4) Parent agent denies not intersected (e.g. plan → general can edit; the plan prompt forbids it only in text) C98
pi Nothing to inherit (no approval layer) None by default Not applicable (same user, full env) C111
software-agent-sdk Parent confirmation policy when permission_mode is unset C123 Shared host; scope narrows tool visibility only C122 Definition permission_mode: never_confirm C121; parent secret sources passed to children C124
spore Limits and model allowlist enforced at the broker; spend counted tree-wide C137C147 Cell runs sandbox: true beneath the agent's Landlock C138 The depth guard is an env var; env -u SPORE_CELL bypass not tested (Note C-10)

Specialist collaboration: Notes

  • C-1 (codex). max_depth is documented as "Ignored by V2" C15. V2 bounds fan-out by the per-session concurrency cap (4 including the root) and wait timeouts, not depth. Also, v1 is at "Deprecated" stage yet default-enabled C6, so the default is the older path.
  • C-2 (goose). Restart pickup of undelivered children is inferred from the scan logic C24. It needs a new prompt or resume to step the parent; there is no restart trigger. create_subagent_session falls back to GooseMode::Auto if the parent session id is empty C18. On the delegate path a parent id is supplied, so this is a defensive branch, but Auto allows tool calls before user permission rules (group 4 correction).
  • C-3 (hermes-agent). In CLI mode, child approvals are auto-deny by default C35. The delegate config comment says gateway sessions "resolve approvals via tools/approval.py's per-session queue", while the config_defaults.py comment says subagent threads "ALWAYS resolve approvals non-interactively" C36. Treat gateway child approval behaviour as unresolved. Each child gets a fresh iteration budget (iteration_budget=None, 250 by config) that is not shared with the parent C32; per the audit, older docstrings say "children inherit". Raising max_spawn_depth is uncapped, and the code itself warns that each level multiplies API cost C44.
  • C-4 (letta-code). The hard-coded unrestricted mode means a child does not prompt even if the parent would. Deny rules from the parent CLI and from settings still apply C49. Delegation to third-party coding agents (claude-code with acceptEdits; codex with never/dangerFullAccess C51) crosses into those tools' own permission models. Whether workflow SDK workers increment the depth counter: unknown.
  • C-5 (nullclaw). subagentTools builds the shell without sandbox_backend C65, while allTools sets it when sandboxing is enabled C66. So spawned-subagent shell commands are policy-checked but not OS-sandboxed even when the parent's are. Source reading only; Landlock is also reported unavailable in this runtime (group 4).
  • C-6 (openclaw). Admission caps apply per requester session. With default depth 5 and 5 active children per node, nesting can multiply concurrent descendants; no global subagent cap was found outside swarm totals (inference from C86C87). ACP spawns skip admission unless the caller is inside a subagent envelope or is a restricted sender C92. Hidden orchestrators can wait or cancel but not steer (sessions_send denied C79).
  • C-7 (opencode). Restart recovery assumes one managed server per database. Embedders that share a DB must enforce that themselves. Whether a user interrupt of a parent (HTTP session.interrupt) cascades to background children is unverified; explicit cascades exist on session removal C105 and in the flagged interrupt tool C104. Recovery is at-least-once: a resumed child may repeat external side effects C101.
  • C-8 (pi). The subagent capability ships as example code, not core. Per the audit sub-review, [alt: pi-durable] offers owned child conversations with checkpointing C116C117 and the p3 app has its own tool C118; both sit outside the core CLI runtime. Example children can load the same extension, so recursion is unbounded.
  • C-9 (software-agent-sdk). Project-level definition directories (.agents/agents, .openhands/agents) are discovered along with user dirs, and a definition can set never_confirm C121. No trust gate on project definitions was found in the reviewed load.py; not exhaustively searched. Built-in "read-only" roles are read-only by prompt only C127. The server "projects" coordinator/worker feature is experimental and describes its scoping as "not a security boundary" C131.
  • C-10 (spore). The depth guard is the SPORE_CELL env var, which is exported to everything a cell runs C145. A cell that clears it (env -u SPORE_CELL) is not refused by that check; whether planning still fails for other reasons is unverified. A cell's per-cell hard cost is enforced by the cell's own loop; the broker enforces only the tree total C147. Sources describe the owner-token sweep as missing processes that clear their env and leave the tree, absent a per-turn cgroup C148.
  • C-11 (cross-runtime). Default spawn depth: 1 for codex v1, goose (hard), hermes, opencode and spore (hard); 2 for letta-code; 5 for openclaw. No depth cap was found for software-agent-sdk or the pi example; nullclaw children simply lack spawn tools. Budget scope differs: spore counts cost tree-wide at the broker C146C147; hermes gives each child a fresh iteration budget C32; codex children inherit token-budget config C4 (whether spend is aggregated across descendants is covered in group 4). Higher depth or concurrency multiplies cost and makes cancellation and result attribution harder. Runtimes that cannot cancel running children (nullclaw C74; software-agent-sdk, none found) are a coordination limitation independent of depth.

4. Execution controls

Scope: what an agent's own actions are actually prevented from doing (Confinement), whether agent-run code can reach secrets (Credential handling), and what stops spend (Budget enforcement). Layers are named the same way in every row: tool visibility (which tools the model is offered), prompt instruction (text that asks the model to behave), approval (a person, rule, hook or reviewer model decides per call), and OS boundary (the kernel or a container enforces it whatever the model does). Network and credential exposure are described apart from the filesystem. For budgets: admission means a check that refuses new work before a call is made; reporting means usage or cost is computed after the call and only displayed or logged. Units ($ vs provider tokens vs turns vs wall time) and scope (one run, cumulative across runs, or including descendants) are stated each time.

Runtime Confinement Credential handling Budget enforcement
codex Built in, on by default for shell, unified-exec and apply-patch: Seatbelt (macOS); bwrap + seccomp + no_new_privs (Linux); restricted token (Windows, only when enabled). Default read-only mode can still read the whole filesystem. Trusted projects get workspace-write. Network is denied inside the sandbox. MCP stdio servers run unsandboxed. An approval can lift a sandbox denial. X1X2X3X4X5X6 Note X-1 Partial filtering, built in. Shell tools inherit the full environment minus case-insensitive *KEY*/*SECRET*/*TOKEN* (*PASSWORD* is not excluded); configurable via [shell_environment_policy]. MCP stdio servers get an allowlist. Login credentials sit in auth.json by default and are likely readable under the read-/ profile (inferred). Redaction covers memories and command display only. X7X8X9X10X11 Goal token_budget (goals on by default) is soft: once tokens reach the budget the goal becomes BudgetLimited and a steering message is injected. [opt: rollout_budget, under development, off] adds a hard weighted-token admission gate shared across the agent tree; in-flight responses are still billed. $ turn cost is polled from the backend for display. No turn cap. X12X13X14X15X16X17
goose No OS boundary by default; tools run as the user with full filesystem and network access. Default GOOSE_MODE=auto allows every call in the permission inspector before user NeverAllow rules are read. [opt: approve/smart_approve; PreToolUse hooks, fail-open unless on_failure: block; --container docker exec for stdio and goose-mcp extensions, but not developer shell/edit]. X18X19X20X21X22X23X24X25 Note X-2 Secrets resolve from env, then OS keychain (keyring 3.6.3), then secrets.yaml. Shell, hooks, recipe checks and stdio extensions inherit goose's full environment (no env_clear), so env-supplied keys are readable. Only configured extension env is filtered, and only for loader variables. Tool output and request logs are not redacted. X20X22X26X27X28 Turn count only: GOOSE_MAX_TURNS defaults to 1000 assistant turns per user turn, checked after each turn; children have separate caps. Per-call tokens and $ are written to a usage ledger (provider price, then user config, then bundled registry) for reporting only. No $/token admission check, no cumulative or descendant cap. X29X30X31X32
hermes-agent No OS boundary by default (terminal.backend: local). Approval gate smart (an auxiliary-LLM guardian) runs after hardline command floors that cannot be bypassed; --yolo allows everything else. Contexts with no matching unattended rule are allowed. File tools deny writes (not reads) to credential and system paths. [opt: docker (cap-drop ALL, network on by default), modal, daytona, vercel, ssh]. X33X34X35X36X37X38X39 Note X-3 Partial, built in. Local subprocesses inherit the env minus a blocklist of provider, messaging and cloud keys plus registry key vars; other variables pass through. MCP stdio servers get an allowlist. Secret redaction is on by default for logs, terminal output and child summaries. .env and auth.json (0600) stay readable to the local shell. X40X41X42X43X44 Iterations are unlimited by default (max_iterations=sys.maxsize), reset each turn. Each subagent gets its own 250-iteration budget, not drawn from the parent's. $ is estimated after each call from a bundled price snapshot plus models.dev, for reporting only. No $/token admission check. [opt: run_budget_seconds; context preflight; API 429 at 10 concurrent runs]. X45X46X47X48
letta-code Default permission mode unrestricted allows every tool once deny/alwaysAsk rules and a cross-agent memory guard have run. The main shell has no OS sandbox unless LETTA_FS_SANDBOX=1 (which only shields other agents' memory) or an app-server workspace_sandbox (fails closed). Memory subagents get bwrap/Seatbelt by default but launch unconfined if no backend exists. Network is never isolated. X49X50X51X52X53X54X55 Shell inherits the full process env, and the CLI injects LETTA_API_KEY (session token) and LETTA_BASE_URL. Vault secrets are substituted only when referenced as $NAME. Redaction is exact-match for the Letta key and vault values only, so ambient provider keys are not covered. Keychain only via Bun.secrets; otherwise tokens sit in plaintext ~/.letta/settings.json. X56X57X58X59 The only $ budget is Workflow maxCostUsd: per-worker usage is priced from the pi-ai catalog after each step, the workflow aborts once the total reaches the limit (one in-flight step may overshoot), and it stops when cost is unknown. --max-turns is opt-in and checked after each step. No token/$/time budget for the main agent or Task subagents. X60X61X62
nullclaw Default supervised policy (an approval-layer check, not an OS boundary): a shell allowlist (git, ls, cat…) that blocks high- and medium-risk commands (rm, curl, wget) and redirects. A model call that needs approval simply fails. OS wrapper auto: firejail, then bwrap, then docker (--network none), else none; the Landlock entry is a stub. Subagent, cron and MCP stdio processes are not wrapped. X63X64X65X66X67X68X69 Note X-4 Built in. The shell tool clears the env and passes PATH/HOME/TERM/LANG/LC_*/USER/SHELL/TMPDIR plus path-validated vars; MCP stdio gets a fixed inherit list. Config secrets are ChaCha20-Poly1305-encrypted at rest, with the key in <config_dir>/.secret_key on the same disk. Tool output is secret-scrubbed before it reaches the LLM. X69X70X71X72 max_tool_iterations is 1000 per turn (15 for subagents). max_actions_per_hour (20) is an admission check on tool calls, with one tracker shared across a runtime's sessions. CostTracker ($ daily/monthly limits, 8-model price table) is off by default and only records usage: checkBudget is called from tests only, so $ limits are not enforced. X73X74X75X76X77
openclaw No OS boundary by default: sandbox.mode is off, and exec runs on the Gateway host with security full and ask off. File tools are not workspace-limited unless tools.fs.workspaceOnly is set. before_tool_call hooks fail closed. [opt: sandbox docker/podman/ssh; Docker defaults are network none, read-only root, cap-drop ALL]. A sandboxed parent cannot spawn an unsandboxed child. X78X79X80X81X82X83X84 Host exec inherits the Gateway env minus a denylist (AWS_*, GH/GITHUB/NPM tokens, DATABASE_URL, gateway credentials). Provider *_API_KEY names are not on that list, so they pass. Docker sandbox env defaults to LANG only and blocks forwarding of *_API_KEY/TOKEN/PASSWORD/SECRET. Log redaction is on by default; tool output sent to the model is not redacted. [opt: egress-proxy secret substitution]. X85X86X87X88X89 No $, cumulative-token or turn-count cap. Limits are a 48 h wall-clock timeout per run (subagents: none by default) and a repeat guard that stops after 20 identical tool calls. Goal tokenBudget (derived from context growth, not billed tokens) only stops goal continuation. USD is estimated from the catalog for display. [opt plugin: deep-research per-call counters]. X90X91X92X93X94X95
opencode No OS sandbox in release or dev builds; shell, MCP stdio and file tools run as the user. An ordered allow/ask/deny ruleset defaults to allow *, external directories included; *.env reads ask. Shell commands are parsed for paths. Remote workspaces exist only if the embedder supplies a provider. A child agent's rules are not intersected with its parent's denies. X96X97X98X99X100 Local shell inherits the server's full process.env, or a per-session replacement the host sets via PUT /session/:id/environment. MCP stdio servers inherit the env. Stored credentials are plaintext JSON in the 0600 SQLite DB, which the shell can read. The *.env ask rule covers the read tool, not shell cat. No output redaction. X96X101X102X103X104 Per-agent steps (unset by default) forces a final tool-less step; it counts per agent loop and does not include descendants. No local $/token cap: cost is computed after each call from the provider-reported figure, else the models.dev catalog. OpenCode Console spend limits are enforced provider-side and surface as errors. Goal loop capped at 50 rounds. X105X106X107X108X109
pi None by default. Tools run with the OS user's permissions and no approval prompts; cwd only resolves relative paths. Project trust gates resource loading, not effects. Approval exists only through an extension tool_call hook (shipped as an example). [alt: Docker, Docker Sandboxes, OpenShell, Gondolin VM; documented/example]. Codemode scripts run in QuickJS without fs or network. X110X111X112X113X114 bash inherits the full process.env, plus PI_* session vars when exposed. MCP stdio servers inherit the env unless inheritEnv: false. auth.json is 0600 under a lock but readable by the same user. Config values can come from a !command (e.g. a host keychain CLI). No in-tree keychain; redaction applies only to bug reports. X115X116X117X118X119 No spend, token or turn budget in the pi CLI. Tokens and USD are computed per response from the bundled or remote catalog (or the provider's own figure) and summed for display and stats. Existing limits: 3 provider retries, codemode caps, the compaction threshold. [alt: pi-durable maxTurns; no cost admission]. X120X121X122X123
software-agent-sdk No enforced boundary in the local default: terminal, file editor (any absolute path) and browser run on the host. confirmation_policy defaults to NeverConfirm and the analyzer is off. [opt: AlwaysConfirm/ConfirmRisky; blocking PreToolUse hooks]. [opt: DockerWorkspace: open bridge network, no cap-drop, passwordless-sudo image]. [opt: server docker runtime: cap-drop ALL, no-new-privileges, resource limits, host bind mounts]. X124X125X126X127X128X129X130 Partial, built in. Terminal subprocesses inherit the host env minus a small denylist (session keys, OH_SECRET_KEY, OTel/Laminar headers), so provider keys such as LLM_API_KEY stay visible locally. Registered secrets are injected only into commands that reference them and masked in output, including streamed output. [opt: DockerWorkspace passes only forward_env]. X131X132X133 max_iteration_per_run defaults to 500. max_budget_per_run ($, default None) is checked after each step against the conversation's accumulated cost across all its LLMs. It is not a pre-call check, so a step can overshoot, and unknown costs (None) are never counted. Subagents get the parent's full cap; a child's cost reaches the parent's total only when the child's metrics are synced at completion. X124X134X135X136X137X138 Note X-5
spore Built in, Linux only, kernel-enforced by default. The agent runs under Landlock (reads limited to system/runtime/workspace paths, narrow write roots); exec gets a narrower Landlock plus seccomp; each turn has its own user/PID/mount namespaces. A confinement failure is fatal. Outbound network and visible unix sockets stay reachable (an accepted risk in SECURITY.md). No per-call approvals. [opt: unconfined: true; contain off]. X139X140X141X142X143X144 Note X-6 Built in. The agent gets a cleared env (env_clear) plus an explicit allowlist (PATH, locale, TZ, TMPDIR, OTEL, SPORE_OWNERS, runtime sockets, validated plugin vars). Provider keys and source secrets stay in the runner behind brokers that require a per-turn tree key. Commands can make model calls through the broker socket, counted in the budget. No output redaction. X139X145X146X147X148 Built in and mandatory: each definition declares soft/hard pairs for rounds, $ cost and wall time. The model broker refuses new calls (HTTP 402) once settled tree spend reaches hard cost. This is admission that covers descendants; dispatched calls finish and are billed, so spend can overshoot. Per turn only; no cumulative per-user $ cap. Prices come from mohdel [D]. X149X150X151X152X153X154X155X156

Execution controls: Notes

  • Note X-1 (codex). Codex is one of three runtimes whose default deployment puts model-issued shell commands under an OS boundary (with spore, and nullclaw when a backend is installed); its read scope is wide: read-only and workspace-write both grant read on / X3, so the boundary limits writes and network, not what can be read. Escalation: on a sandbox denial the orchestrator retries without the sandbox only if the tool escalates on failure and the approval policy allows a prompt; under never it does not X6. Layers: tool visibility (feature-gated tools), approval (on-request default, optional guardian auto-reviewer), OS boundary (sandbox). The rollout_budget gate is the only tree-wide budget admission check besides spore's, and it is off and marked under development X15; its units are opaque weighted tokens, not dollars X16.
  • Note X-2 (goose). The --container CLI help says built-in extensions run inside the container. In code, platform extensions (developer shell/write/edit, analyze, summon) are filtered out of the container path and run on the host X23; only stdio extensions and goose-mcp builtins go through docker exec X22. Per the orchestrator correction, the "Auto allows before user rules" finding is scoped to PermissionInspector X19. Other inspectors still run in Auto: the security/prompt-injection inspector is off by default, the egress inspector only logs, and the adversary inspector runs only if ~/.config/goose/adversary.md exists (per audit). The goose docs say the macOS Seatbelt sandbox was removed X25 [D].
  • Note X-3 (hermes-agent). The approval gate is a guardian model plus pattern floors, not an OS boundary. Guards are skipped for the modal, daytona and vercel backends, and for docker without host mounts (audit, tools/approval.py:1282-1296). The write deny list does not cover reads, so cat ~/.hermes/.env on the local backend is stopped only if the guardian intervenes (audit, inferred). Doc/comment-vs-code: run_agent.py:242 comments "shared with subagents", and agent/iteration_budget.py docstrings give 500/50 defaults, but the code passes iteration_budget=None to children ("fresh budget per subagent") with a configured 250 X45X46X47.
  • Note X-4 (nullclaw). The allowlist policy is an approval-layer control, not an OS boundary. Without a sandbox backend (any host lacking firejail, bwrap and docker, and all macOS hosts without docker), an allowlisted cat /abs/path is not path-restricted, and only file tools enforce workspace scoping. That means cat ~/.nullclaw/.secret_key would pass policy (audit, inferred from policy code). The Landlock backend reports itself unavailable X67, so auto never selects it X66. security.resources.* limits are parsed but have no consumer (audit). The documented $ limits are not wired to any production gate X75.
  • Note X-5 (software-agent-sdk). Correction to the audit's framing: despite the _per_run name, the field description and the check use the conversation's accumulated cost across all of its LLMs, from conversation_stats X124X134. That is a cumulative-per-conversation cap, not a fresh per-run() allowance (persistence across a process restart was not verified). Child cost enters the parent's combined metrics when the TaskManager syncs the child's metrics X138, so a running child's spend is not visible to the parent's check until then. Doc-vs-code: AgentDefinition.max_budget_per_run says "None for no budget", but TaskManager substitutes the parent's full cap X137.
  • Note X-6 (spore). Trust model: host and operator trusted, agent untrusted, a delegation tree treated as one trust unit. Landlock does not gate connecting to unix sockets, /run is a read path, and no default hiding of /run/user (D-Bus session bus) was found. A practical escape via systemd-run --user is plausible but unverified (audit §9 experiment). The budget broker's settlement is explicit: once dispatched, a call runs to its end and the turn pays for all of it; only the host's per-call ceiling cuts one X151. Subscription ("unmetered") models are labelled not metered X156, so the $ hard limit presumably does not bind them (inferred). Pricing lives in the external mohdel 4.11.0 package; spore reads the cost field of its done event X155.
  • Cross-runtime pattern (budgets). Only spore (always) and codex rollout_budget (off, under development) check a budget before admitting new model calls across a delegation tree. software-agent-sdk and letta-code Workflow enforce $ caps after each step (overshoot up to one step). nullclaw has $ limits in config that nothing enforces. goose, hermes-agent, opencode, pi and openclaw compute $ for reporting only. Turn or iteration caps exist widely but are per agent loop and do not include descendants.
  • Cross-runtime pattern (credentials). Two runtimes start agent shells from a cleared environment plus an allowlist (nullclaw, spore); spore additionally keeps provider keys out of the agent by broker design. Codex, hermes-agent, openclaw and software-agent-sdk inherit the env minus a denylist; the lists differ, and provider *_API_KEY passes in openclaw and software-agent-sdk but is blocked in codex (*KEY*) and hermes-agent (named list). goose, letta-code, opencode and pi pass the full env. Wherever there is no read boundary, on-disk credential stores are readable by agent shells regardless of env filtering.

5. Product integration

Scope: how a host application drives the runtime (5a), how it is configured and how strictly configuration is checked (5b), and what happens to an in-flight turn when the client disconnects, input arrives concurrently, a model call fails, or the process restarts (5c). Default deployment comes first; alternatives are marked [opt: …] / [alt: …]. "Turn" means one user input processed to completion. Codex threads, goose sessions, letta conversations, openclaw sessions, OpenHands conversations and spore workspaces are treated as the same unit.

Runtime Embedding interfaces Declarative configuration Durable execution
codex Built in: codex app-server JSON-RPC (about 200 methods plus typed notifications and server-to-client approval requests) over stdio by default [opt: unix socket, WebSocket]. Non-loopback WebSocket refused without auth. Python SDK wraps app-server; TypeScript SDK wraps codex exec --experimental-json. Some fields are experimental. Not an MCP server. I1I2I3I4I5I6 Built in: layered TOML (system, user, project .codex/, managed layers, -c overrides); generated JSON Schema checked in. Unknown keys warn by default and are errors only with --strict-config; the schema's deny_unknown_fields does not affect parsing. I7I8I9I10I11 Built in: a client disconnect drops subscriptions, but a live thread keeps running. Input to an active turn becomes a steer. Cross-process rollout writer lock. Request/stream retries 4/5. Daemon restart continues eligible local turns; a crash cold-resumes from the rollout (Note I-2). I12I13I15I16I17I18
goose Built in: ACP (JSON-RPC) via goose acp (stdio) or goose serve (HTTP+WS, default 127.0.0.1:3284, secret key required unless --dangerously-unauthenticated, optional TLS). About 100 _goose/unstable/* extension methods. TS ACP client; Rust crates; uniffi bindings cover providers only. I19I20I21I22I23 Built in: free-form YAML merged system → user → GOOSE_ADDITIONAL_CONFIG_FILES, env vars override. No schema; keys read ad hoc, unknown keys silently ignored; a few keys parse strictly. Recipes get structured validation (goose recipe validate). I24I25I26 Built in: one active run per session; concurrent prompt rejected with a steer hint. Each step is persisted to SQLite (WAL). Dropping the prompt future (lost connection) cancels the run. On restart only turns paused at tool confirmation resume, via session/load (Note I-3). I27I28I29I30I31
hermes-agent Built in: in-process Python AIAgent with callbacks; ACP stdio server. [opt: API_SERVER_ENABLED] OpenAI-compatible HTTP server (default 127.0.0.1:8642, bearer key) with durable /v1/runs and SSE; dashboard WebSocket JSON-RPC; HMAC webhooks. No general MCP server. I33I34I35I36I37 Built in: ~/.hermes/config.yaml deep-merged over versioned defaults (v54), secrets in .env. Hand-written structural checks print warnings. Unknown root keys deliberately ignored (bridged to env), so typos fail silently. Migrations only from v12 onward. I38I39I40 Varies by surface. Gateway: per-session turn lease; busy input interrupts by default [opt: queue, steer]; shutdown marks sessions resume_pending and re-drives them. API SSE disconnect interrupts the run; /v1/runs is connection-independent with idempotency keys. No step replay after a crash (Note I-4). I41I42I43I44I45I46
letta-code Built in: headless -p with stream-json in/out; local WebSocket app server (default ws://127.0.0.1:0, non-loopback refused without token auth) with a typed client export. [opt: --openai-api] OpenAI-compatible routes. Letta Agent SDK and Letta REST API are external [D]. No ACP or MCP server. I47I48I49I50I51I52 Built in: JSON settings (global, project, project-local) spread over defaults. No schema validation; unknown keys pass through. A parse error falls back to defaults with a console error. Specialists, skills and mods are Markdown/JS files. I53 API mode: sends run as server-side background runs [D]; on "busy" the client re-attaches to the active stream or polls (5 min); 3 LLM retries. Local mode: runs held in memory; concurrent run rejected; interrupted tool calls settled as incomplete; no resume after a crash. I54I55I56I57I58I59I60
nullclaw Built in: HTTP gateway (default 127.0.0.1:3000, pairing bearer) with async /webhook and A2A v0.3.0 JSON-RPC (SSE streaming); ACP stdio shim spawning one CLI process per prompt, unstreamed, session/cancel no-op; Zig module without C ABI. Gateway serves one connection at a time (Note I-5). I61I62I63I64I65I66 Built in: single JSON file ~/.nullclaw/config.json. Hand-walked parsing silently drops unknown keys and wrong-typed values. Config.validate() checks a fixed set of semantic errors before daemon start. No published schema. Some keys are not wired (e.g. idempotency TTL). I67I68I69I70 Built in: per-session mutex. Default queue_mode=off drops messages for a busy session (logged) [opt: serial, latest, debounce]. Turn persisted only after completion; mid-turn crash loses the turn. A2A tasks and subagents in memory only. Provider retries and fallbacks. No webhook dedup. I71I72I73I74I75I76
openclaw Built in: Gateway WebSocket RPC (TypeBox schemas, protocol v4, loopback bind by default, token/password auth); in-repo TS SDK with event replay on reconnect, unpublished (private). [opt] OpenAI-compatible HTTP (disabled by default); ACP stdio bridge; openclaw mcp serve. No in-process run API. I77I78I79I80I81I82I83 Built in: single JSON5 file ($include supported) validated by a Zod strictObject root plus plugin configSchema. Unknown keys error ("Unrecognized key"); invalid config throws at load. No compatibility aliases for old keys [D]. I84I85I86 Built in: chat.send persists input with an idempotency key, acks started, and runs asynchronously, so it outlives the client. One turn per session; extra input steers by default (cap 20). 8 retries/90 s then failover. Restart sends a "resume without replaying" prompt; tools not replayed (Note I-6). I87I88I89I90I91I92
opencode Built in: @opencode/sdk in-process host (promise and Effect APIs); HTTP API (OpenAPI) with volatile SSE events plus an experimental durable-log SSE; Basic/HMAC-token auth; ACP agent (opencode acp); generated client. Several features are dev-only (Note I-7). I93I94I95I96I97I98 Built in: layered JSONC (opencode.json[c]) from global, .opencode, .claude, .agents, project, env and macOS MDM; Effect Schema decode. Unknown keys silently ignored; a malformed document is dropped with a warning log. Hot reload. Some parsed keys unused (lsp). I99I100I101 Built in: prompts go to a durable inbox drained server-side, so disconnect does not stop a turn. One execution per session; new input steers or queues. Boot sweep resumes orphaned execution claims at least once (up to 10 attempts); tool side effects may repeat. I102I103I104I105
pi Built in: in-process TypeScript SDK (createAgentSession); --mode rpc JSONL over stdin/stdout (about 40 commands) plus json event mode and print mode; lower-level agent-core and provider libraries. No HTTP, WS, ACP or MCP server in the CLI. [alt: p3 app — HTTP on loopback, unix sockets]. I106I107I108I109 Built in: JSON files in ~/.pi/agent/ and .pi/ (settings, models, mcp, keybindings, trust). Published JSON Schemas, but settings are not validated at runtime (unknown keys allowed, errors become warnings). models.json is checked with compiled TypeBox. I110I111I112 Not durable mid-turn: entries appended as finalized; on resume, orphaned tool calls get synthetic "No result provided" errors, not re-run. Second prompt while streaming rejected unless steer/followUp. stdin EOF waits for pending work. No session-file lock. [alt: pi-durable] (Note I-8). I113I114I115I116I117
software-agent-sdk Built in: Python SDK with in-process LocalConversation or RemoteConversation over HTTP+WS; agent-server with REST, event WebSocket with resend, OpenAI-compatible /v1 gateway and webhooks; TS client. Server binds loopback unless a session API key is set. ACP and MCP: client side only. I118I119I120I121I122I123 Code-first pydantic models, serializable to JSON; server JSON file merged with OH_* env. Types/ranges validated; unknown keys silently ignored for server Config, LLM and settings, but rejected for events and conversation requests. Settings schema export for UIs. I124I125I126I127 Local SDK: run() is synchronous in the caller's thread; nothing persists without persistence_dir. Server: runs in background tasks that survive disconnect; second run rejected. On reload, stale RUNNING becomes ERROR, no auto re-run. File lease (45 s TTL) per conversation; 5 LLM retries. I128I129I130I131I132I133I134
spore Built in: Node ESM library (same machine), spore CLI with --json, and spore-api HTTP/1.1 (unix socket or TCP, loopback by default, bearer tokens ≥32 chars, NDJSON event stream with after/follow). API cannot define spores. [opt] webhook ingress. No MCP, ACP or JSON-RPC. I135I136I137I138I139 Built in: spores are .cmk files parsed by one Rust parser that refuses unknown fields, tools, models and missing limits. Host JSON configs refuse unknown keys; API tokens must be ${VAR} references. No JSON Schema file; validation is code. I140I141I142 Built in: a detached runner owns the turn and outlives the caller. requestId makes sends idempotent; one runner per workspace (flock); concurrent sends join the inbox at the next round. Next runner finalizes a crashed turn as error, message left unread; no auto-continue. 3 model retries. I143I144I145I146I147I148I149

Product integration: Notes

  1. Note I-1 (cross-runtime: protocol families). Four protocol families recur. (a) Agent Client Protocol (ACP) over JSON-RPC: goose (primary), hermes-agent, nullclaw (shim), openclaw (bridge), opencode. software-agent-sdk consumes ACP agents, and goose can too. (b) Product-specific JSON-RPC or RPC: codex app-server, hermes tui_gateway, openclaw Gateway WS, letta app-server, pi --mode rpc. (c) OpenAI-compatible HTTP facades: hermes, letta, openclaw, software-agent-sdk. These map agents onto /v1/chat/completions or /v1/responses and lose most agent-specific control. (d) Bespoke REST/NDJSON: spore, opencode, software-agent-sdk. In-process libraries that create and drive a session are available in hermes (Python), opencode, pi (TypeScript), software-agent-sdk (Python), spore (Node), goose (Rust crates, unversioned API), and codex (Rust app-server-client, in-tree). openclaw and nullclaw expose no supported in-process "create agent and run" call.

  2. Note I-2 (codex restart). Daemon recovery captures only a regular, uncancelled turn whose input is already recorded, and only for a single local environment with thread-owned configuration ("Remote identities/configuration are not persisted across daemon restarts") I17I18. The crash path (no snapshot) relies on cold-resume from the rollout. That the in-flight turn is not replayed is an audit inference, not a traced path. Separately, spawn_task aborts running tasks with TurnAbortReason::Replaced I14. That is task replacement, distinct from steering user input.

  3. Note I-3 (goose disconnect vs residency). There are two mechanisms. detach_connection keeps a disconnected connection's sessions resident I29. But the run is cancelled when its prompt future is dropped, through ActiveRunDropGuard I28. Whether agent-client-protocol 2.2.0 drops that future on transport loss is external to the tree [D]. A crash mid-tool-call leaves a persisted request without a response. UnhandledToolCallsOperation answers such requests with errors I32. Re-execution behavior was not traced.

  4. Note I-4 (hermes surfaces). The turn lease does not cover CLI-continuity processes (stated limit in I41). ACP prompts on a busy session are redirected or queued I46. After a crash, recovery is a new turn with a recovery note when the interruption is recent and the owner is still allowed. It is not a replay of the interrupted model call I43.

  5. Note I-5 (nullclaw gateway). The gateway accepts connections in a single loop and handles each inline I64. A synchronous /webhook (opt-in webhook_sync_for_workers) or a non-streaming A2A message/send therefore blocks other gateway requests for the length of the agent turn (code reading, not measured). A sync-webhook disconnect has no cancellation hook. A2A tasks/cancel and /stop set an interrupt flag that is checked before each tool I76. The idempotency store is hard-coded to 300 s, and its recordIfNew has no non-test caller I70.

  6. Note I-6 (openclaw restart). Per docs [D] I92, cron, ACP, PTYs and background processes are not resumed, effects are not exactly-once, and a rare double reply is accepted. Subagent runs are lost. An explicit client-disconnect abort path was not found, which is consistent with asynchronous dispatch.

  7. Note I-7 (opencode build variants). Feature flags (OPENCODE_FLAGS / experimental.*) default off in release builds. The durable-log SSE is under /api/experimental/ I96. In the default CLI deployment events.persist is false (audit §2a), so what that log replays there is not established. Restart recovery runs at boot in the managed server and in the SDK host. The code says embedders "may call it from their own start-up" I104.

  8. Note I-8 (pi-durable alternative). The separate packages/durable harness commits state before display. It counts an interrupted model request as a failed retry attempt. It re-runs an in-flight tool only if the tool declares replay: "safe"; otherwise the tool settles as failed ("may have partially run"). It assumes one writer per storage and leaves locking to the host (p3 uses a per-session process lock) I117. This is an alternative package, not the CLI default.

  9. Note I-9 (validation strictness spectrum). Unknown configuration keys are rejected by openclaw (Zod strict) and spore (code checks). They warn in codex (error with --strict-config). They are silently ignored in goose, hermes-agent (deliberate), letta-code, nullclaw, opencode and pi (settings; models.json is checked), and in software-agent-sdk's server, LLM and settings models. A published or generated JSON Schema exists for codex and pi. openclaw and software-agent-sdk export schemas for UIs. Schema existence and enforcement are separate properties: pi publishes schemas but does not enforce them at load.

  10. Note I-10 (concurrency on one session). Every runtime serializes turns per session. Runtimes differ in what happens to extra input:

    • steered into the running turn: codex, goose (via explicit steer call), openclaw (default), opencode, spore (at round boundary), nullclaw latest/debounce;
    • queued: hermes queue, opencode, nullclaw serial, software-agent-sdk local FIFO lock;
    • rejected with an error: goose plain prompt, pi without streamingBehavior, software-agent-sdk server, letta local;
    • dropped: nullclaw default off;
    • interrupting the current turn: hermes gateway default.
  11. Note I-11 (restart semantics vocabulary). These are four distinct outcomes:

    • resume with step replay (opencode, at least once; pi-durable for replay: "safe" tools);
    • resume via a new instruction turn (openclaw, hermes gateway, codex daemon-recovery continuation);
    • finalize as error, no auto-continue (software-agent-sdk server, spore, pi CLI, letta local);
    • in-flight turn lost (nullclaw; goose except confirmation-paused turns).

    None of the runtimes claims exactly-once tool effects.

6. Operations and verification

Columns: Service dependencies (what must run when active / when idle) · Execution records (who writes logs, transcripts, traces; what can alter them; how failures are recorded) · Result checks (what validates results and what happens when a check fails).

Result-check vocabulary used in every row (see Note O-1):

  • finished process: the loop or turn reached a terminal state.
  • delivered answer: text or an object reached the caller.
  • structural validity: arguments or output conform to a schema or format.
  • task correctness: the work actually achieves the goal.

On a failed check, cells say whether the runtime retries (re-prompts or re-runs), releases (lets the answer out anyway), or blocks / fails (no success result).

Runtime Service dependencies Execution records Result checks
codex Built in: a single local process plus a model endpoint and login. State is embedded SQLite files plus JSONL in CODEX_HOME; MCP servers run as child processes. Idle: nothing runs. [opt: app-server daemon (remote control, auto-update); exec-server (experimental); OTLP collector] O1O2 Built in. RolloutRecorder appends a session JSONL. Tracing goes to the logs_2.sqlite diagnostic DB (10-day retention). OTLP is off by default; metrics go to the vendor (Statsig) only when analytics consent is on. Records can be altered by archive/delete RPCs and by compression (replace-by-rename); none is tamper-evident. O3O4O5O6O7 Hooks: command/MCP-tool hooks (on by default). A Stop-hook block re-prompts the turn, with no runtime cap (Note O-2). --output-schema goes to the provider as a strict schema; no local validation was found. codex review is an explicit review agent. No built-in check of task correctness. O8O9O10O11O12
goose Built in: one process with embedded SQLite and stdio MCP children. CLI idle: nothing runs. goose serve (desktop) stays resident and runs the cron scheduler. [opt: Docker --container, OTLP/Langfuse, opt-in PostHog] O14O15O16 Built in. Transcript and usage rows in SQLite; per-component tracing logs; raw request JSONL; optional OTel spans. Failures (compaction, max turns, retries exhausted) are stored as assistant error messages. Rewind, retry and truncate delete rows; no tamper protection. O17O18 Optional recipe/delegate json_schema adds a jsonschema-validated final_output tool; the model is nudged until it calls it. Recipe retry.checks (shell exit 0) retry up to max_retries, then emit an error. A Stop hook blocks at most 8 times, then releases. O19O21O23O24O25
hermes-agent Built in: per-profile SQLite state.db; no broker. The gateway daemon is optional but clients start it on demand; an auto-started gateway exits after 600 s idle. While up it ticks cron every 60 s. [opt: systemd/launchd/Windows/s6 service; Docker; remote backends] O27O28O29O30 Built in. Rotating, redacted logs (agent/errors/gateway/gui) under ~/.hermes/logs. Transcripts in SQLite can be rewound, replaced, deleted and pruned. Sessions carry end_reason. Trajectory JSONL comes only from the legacy flag. Dashboard-auth audit JSONL. No tamper-evident log. O31O32O33 Shell and plugin hooks; only pre_tool_call can block. Off by default: stop gates (verify-on-stop, pre_verify) re-prompt up to 3 times, then release the held answer. delegate_task output_schema: one retry, then passed on unvalidated. /review reviewer. O34O35O36O37O39
letta-code API mode (default): needs a reachable Letta server (Cloud or self-hosted) for every turn. [alt: local backend: provider endpoints plus the git binary.] Idle: nothing runs unless the listener or cron is started. Telemetry goes to Letta Cloud by default. O42O43O44 Plain files under ~/.letta: transcripts, sessions.jsonl, debug log (5 sessions / 10 MB, TUI). In API mode the server holds the canonical messages [D]. Background failures often appear only in the debug log. With default permissions the agent's own tools can edit these files. O45 Hooks: exit 2 blocks; errors and timeouts fail open. A Stop-hook block re-prompts only in the TUI, with no visible cap. Workflow json output that fails to parse is marked failed; schema and response_format are enforced by the server/SDK [D]. A memory pre-commit validator exists. O47O48O50O51O53
nullclaw Built in: one binary with vendored SQLite; no external service by default. The daemon (if run) hosts the gateway, channel pollers, heartbeat and cron. [opt: Postgres/Redis/ClickHouse/vector stores, sandbox binaries, tunnels, OTLP collector] O54O55 Logs go to stderr; observers (file/OTLP) are off by default (backend = "none"). Session store holds redacted turns. The documented signed AuditLogger has no production caller (Note O-6). Failures appear as success=false tool results, logs and cron last_status. All records are mutable. O56O57O58O59O63 Structural only. Tool arguments must parse to a JSON object; each tool validates its own fields; outputs are secret-scrubbed. When iterations run out, a summary is forced. No hooks, schema-checked output or verifier found. scheduler_retries has no runtime consumer. O60O61O62
openclaw Built in: a resident Gateway daemon with embedded node:sqlite. When idle it still hosts cron, nightly "dreaming", channel connections and update checks. agent --local runs without the Gateway. [opt: Postgres, Docker sandbox, sqlite-vec] O64O65O66 Several writers: agent DB transcripts and trajectories; Gateway JSONL logs (rotation plus 24 h pruning); an audit ledger, on by default, that keeps metadata only and is best-effort (drops events when its queue is full; 30 d / 100k rows). Terminal phases record failed/aborted with codes. Not tamper-evident. O67O68O69O70O71 TypeBox validation of tool arguments; errors go back as tool results. before_agent_finalize hooks may force up to 3 revision passes and fail open; then the answer is released. Opt-in: llm-task (JSON schema; throws on mismatch), autoreview. No default check of correctness. O73O74O75O76O77O78
opencode Built in: a local opencode service process (loopback, random password) with embedded SQLite; the service stays resident when idle. [opt: persistent PTY daemon (falls back without it); Console, remote MCP, OTLP] [alt: SDK embedded host: no process or port, :memory: DB] O80O81O82O83 The server writes SQLite session projections plus one shared log file compacted in place past 50 MiB. Typed failure events (step/tool/execution failed, retry scheduled). Optional OTLP. Revert and delete remove rows; no append-only audit log by default. O84O85O86O87 Tool inputs are decoded against their schema (error asks the model to retry) and outputs against declared output schemas. Only tool.execute.before hooks can reject. Built-in /goal LLM judge (≤50 rounds, 3 stalls). Schema-checked Code Mode agent() exists only behind a flag that is off in releases. No LSP or test gate. O88O89O90O92O93O95
pi Built in: a single Node process; no daemon or DB. MCP servers and managed fd/rg binaries run as children. Network extras (model catalog, version check) can be disabled with --offline. [alt: p3 app: supervisor, per-session workers, SQLite] O96O97O98O99 Built in. The SessionManager JSONL is the record: messages, tools, usage, compactions, custom entries. Provider failures and failed retries are kept. Extensions can append entries and replace finalized messages. A telemetry contract exists but ships no exporter; there is a crash log. O100O101O102O103O104 Built in: TypeBox validation of tool arguments; failures and blocked calls return isError to the model. Tools may declare outputSchema/structuredContent; no runtime validation found. Extension hooks can block, rewrite results or force another turn. No built-in correctness check. O105O106O107O108
software-agent-sdk Local SDK: no services; LLM provider plus optional tmux (falls back to subprocess), browser stack and MCP processes. Agent server: uvicorn with file-backed stores. Even when idle it runs lease, eviction and maintenance loops. [opt: Docker runtime] O109O110O111 Built in: per-event JSON files written by the conversation runtime, append-only under a lock but writable on the filesystem. Error and limit events and status transitions are recorded. Logs go to stderr (optional file/JSON). Laminar/OTel is optional; product telemetry is off. O112O113O114O115 All opt-in. Tool response_schema (pydantic or JSON Schema) errors return to the model as an event (a retry in effect). Stop hooks can veto finish. Critic with iterative refinement re-prompts below a threshold. A /goal judge reports complete or capped. O116O117O118O119O120O121
spore Built in: no daemon, no DB server; zero processes when idle. An active turn spawns a detached native runner, agent and session processes plus confinement. [opt: systemd user units for schedules, API, webhooks, plugin services; external vector store] O123O124O125 Built in. The runner is the only writer of state.sqlite (events, transcript, calls, turns). It records failures and also turns the agent left unrecorded. Output goes to spore.out/.err; OTel only if configured. The operator can prune or rewrite; agent writes are prevented by confinement [D]. O126O127O128O129O130 Optional owner-written answer check (program or checker cell) on the final answer. It can send the answer back once; after that, or on a failed check or timeout, the answer is released. No tool hooks and no schema check on free answers. O131O132O133

Operations and verification: Notes

O-1. Four outcome levels. No runtime makes a task-correctness check part of its default path.

How each level shows up, per runtime:

Runtime Finished process Delivered answer Structural validity Task correctness
codex Turn completes Turn completes Provider-side, when a schema is requested Opt-in only (see below)
goose Turn ends ACP stop reason (EndTurn/MaxTokens/Cancelled) O26 final_output schema Opt-in only (see below)
hermes-agent Session end_reason Gateway delivery status (not traced) Delegation output_schema Opt-in only (see below)
letta-code Exit code / max_steps Stream end Server or workflow schema [D] Opt-in only (see below)
nullclaw Loop ends Final text Tool-argument JSON parse None found
openclaw Terminal phase / completion row O71O72 Announce or delivery TypeBox arguments, llm-task Opt-in only (see below)
opencode session.execution.succeeded Message Tool I/O schemas Opt-in only (see below)
pi agent_settled Last assistant message TypeBox arguments Opt-in only (see below)
software-agent-sdk Model called finish finish response_schema Opt-in only (see below)
spore stopReason / concluded output plus deliverables Owner check or on-wrap policy Opt-in only (see below)

Opt-in task-correctness mechanisms, all configured by the owner or host:

  • goose recipe shell checks;
  • hermes verify-on-stop and pre_verify;
  • opencode /goal judge;
  • software-agent-sdk critic and goal judge;
  • spore answer check;
  • user hooks in codex, goose, letta-code, openclaw and pi.

Each of these is only as strong as its checker. A pass does not prove the task is correct.

O-2. Codex Stop-hook continuation. A block with a reason appends the hook prompt and continues the turn with stop_hook_active = true, so the hook itself can choose to stop blocking O10. I found no iteration cap at this call site; only the turn's other limits bound it. A block without a prompt is ignored with a warning. Memory-consolidation sessions turn a block into an error instead of feeding it back.

O-3. Retry and release behaviour after a failed check.

Runtime Mechanism After the check fails
goose Recipe retry.checks O23 Optional on_failure command, reset, retry until max_retries, then an error message. Fails closed: no success result.
goose Stop hook O24O25 After 8 denials it yields with a warning. Releases.
hermes-agent Stop gates O34O35 Up to 3 nudges; the held candidate answer becomes the fallback. Releases.
hermes-agent Delegation schema O39 One retry, then the output goes to the caller unvalidated. Releases.
openclaw before_agent_finalize O75O76 Up to 3 revision passes, then completes. Releases. A throwing hook means continue (fail-open) O74.
openclaw llm-task O77 Throws, so the tool call fails. Blocks.
opencode /goal judge O90 Pauses after 50 rounds or 3 stalls; a goal armed by an earlier process returns paused.
software-agent-sdk Critic refinement O119 Bounded by max_iterations.
software-agent-sdk Goal judge O121 Ends as capped, distinct from complete.
spore Answer check O132 Sends the answer back once, then releases. A failed or timed-out check releases immediately. The first answer on the hard-limit round is unchecked.
letta-code Workflow json worker O51 Marked failed; no automatic retry at this site.
codex, letta-code, pi Stop/settle hooks No cap at the call site.

O-4. Validating arguments is not validating results. codex, goose, nullclaw, openclaw, opencode, pi and software-agent-sdk all validate tool arguments, and send errors back to the model as tool results so it can retry. This tells you nothing about whether the answer is right.

Tool output is schema-checked only where a declared schema exists:

  • opencode: output encoded against the declared schema O88;
  • software-agent-sdk: response_schema O117;
  • goose: final_output O19;
  • openclaw: llm-task O77.

pi documents structuredContent "matching the tool's outputSchema" O107, but no runtime validation was found (grep outputSchema in packages/agent/src and packages/coding-agent/src).

O-5. Where provider-side schemas are enforced. For codex (output_schema_strict) O11 and letta-code (response_format, workflow schema) O52, structured output relies on the provider or server. A schema-conforming result is therefore [D] from this tree.

O-6. nullclaw audit doc conflict. docs/en/security.md:36 and README.md:327 describe a signed audit trail that is enabled O59. AuditLogger O57 has no production caller; the only references are the re-export O58 and config round-tripping. The separate workspace audit secret scanner does write audit-log.jsonl (per the audit file, src/main.zig:3940-3942; not re-checked).

O-7. Who can alter records. In every runtime the records are ordinary files or SQLite rows, so any process running as the same user can change them. None uses a hash chain or signatures. The runtimes differ in whether the agent's own tools can reach them by default:

  • codex, goose, hermes-agent (local backend), letta-code, nullclaw, pi: reachable when tools run unconfined or are auto-approved.
  • spore: documents that the confined agent cannot write state.sqlite O130 [D].
  • openclaw, opencode, software-agent-sdk: depend on the sandbox or permission settings covered in group 4.

openclaw's ledger is metadata-only by default and documented as "not a lossless compliance archive" O79.

O-8. Idle footprint matters for embedding. Some runtimes leave nothing running between turns:

  • codex, goose CLI, pi, spore, nullclaw without its daemon, and the software-agent-sdk local SDK;
  • the opencode SDK embedded host;
  • hermes, whose auto-started gateway exits after 600 s.

Others stay resident and keep working between turns:

  • openclaw Gateway: cron, dreaming, channels, update checks;
  • opencode service: schedulers;
  • software-agent-sdk agent server: lease and eviction loops;
  • goose serve.

Telemetry egress by default:

  • letta-code sends telemetry to Letta Cloud unless disabled, even in local mode O43O44;
  • openclaw update.checkOnStart sends anonymous update pings [D, per audit];
  • goose PostHog is opt-in O16;
  • codex Statsig metrics are gated on analytics consent O7.