Expand description
Backwards-compatible composition facade for Supercode.
New integrations should select the narrow package they need:
supercode-interchange for session glue, supercode-reduce for reversible
token reduction, supercode-runtime for provider/runtime primitives, or
supercode-harness for the complete native Supercode agent and tool loop.
This crate preserves the historical supercode import by re-exporting the
complete harness surface.
Modules§
- acp_
frontend - First-class ACP client implementation of the canonical SDK runtime.
- acp_
server - Inbound Agent Client Protocol adapter for the SDK-owned Supercode runtime.
- agent_
package - Repository-native agent packages.
- approvals
- ORCH-9 (observed tier): one uniform listing of the approval requests waiting for an answer, across every harness supercode drives.
- audit
- Corpus coverage audit.
- background
- Compatibility path for native background-job state.
- browser
- Provider-independent browser capability owned by Supercode.
- catalog
- Compatibility path for session catalogs and durable locators.
- channels
- ORCH-14 — the
channelnoun at the OBSERVED tier: one uniform row per transport + account a gateway harness is reachable on, read from the harness’s own config file and never written. - checkpoint
- §2 module 20
checkpoint(COMPOSABLE-HARNESS-DESIGN.md line 470): file checkpointing / shadow-git; D4-adjacent revert; D3 turn-diff tracking. Line 1504: “restores FILES, not context — pairs with, never replaces, the reduction sidecar.” - claude_
compat - Claude Code project compatibility helpers.
- claude_
peer - Live Claude Code peer sessions: registry discovery and message delivery.
- claude_
runtime_ state - Lossless, non-executing reconstruction of Claude Code runtime state.
- codex_
peer - Live stock-Codex session discovery.
- config_
schema - BP-9 (D6 row “Published JSON schema for config”, cc§6): the published
JSON Schema for the supercode config file —
.supercode.toml,~/.config/supercode/config.toml, and the JSON mirror (HarnessConfig::from_json_str). - configfile
- §3 “The Single Config File” (
docs/composable-harness/COMPOSABLE-HARNESS-DESIGN.md) — P1 of the composable-harness migration (design §5.2, phase P1). - context_
injection - BP-4 (catalog:91 “Synthetic context-injection blocks”, design §1.4:
“harness-spliced reminders/nudges … the ambient nudge class is core”):
the injection REGISTRY behind
core.context_injections. - fidelity
- Compatibility path for canonical interchange fidelity measurements.
- formatters
- §2 module 29
formatters(COMPOSABLE-HARNESS-DESIGN.md line 479): “D10/oc§10 format-on-write” — reuses the EXACTcrate::tools::WriteObserverseam P5-9 built forcheckpoint(D-5: “write-path interception seam shared with checkpoint”), rather than a second interception point. - frontend
- Protocol-neutral frontend contract for one SDK-owned Supercode runtime.
- git_
metadata - P4e (COMPOSABLE-HARNESS-DESIGN.md §1.6/§3.1
core.session.git_metadata, catalog:331 “Git integration (metadata, diff, PR)”): a persisted, TYPED record of the git branch/sha/dirty state a session was RUNNING under, captured ONCE at session start (closes the loop catalog:331 flags — supercode already preserves a foreign session’s own git-shaped fields byte-for-byte on IMPORT viaSession::raw’s verbatim capture; this is the WRITE half: supercode’s OWN sessions get the same provenance). Deliberately flat/typed (not a formatted string), the exact same rationale ascrate::usage_log::UsageRecord/crate::model_change::ModelChangeRecord(§1.13): a translatable, lossless session-data channel, not a lossy notice — so it survives a save/load round trip byte-for-byte, and a future reader (a translator,doctor/inspect stats) can consume it without re-parsing prose. - goals
- BP-7 (catalog §4a “Goals (persistent objective across turns)”, cc’s
/goal, cx’s/goal+goals_1.sqlite): the session’s standing objective. - harness_
auth - Native coding-harness authentication coordination.
- harness_
command - The controlled tier’s substrate: one harness command, ready to run and ready to narrate.
- harness_
service - Versioned, language-neutral service over persisted harness sessions.
- hermes_
import - UNI-18: the Hermes write path, through Hermes’s own door.
- human_
export - P4e (COMPOSABLE-HARNESS-DESIGN.md §1.6/§3.1
core.session.export_format, catalog:283 “transcript export for humans”): a READ-ONLY rendering of acrate::Session’s conversation into text a human reads directly (terminal/file/clipboard) or opens in a browser — CC’s/export+/copy, CX’s Ctrl+O copy-last. This is core, not gated by thesession.sharemodule (§1.6: “export-to-human is universal while share links … are the OC+PI-only partsession.shareactually narrows to”). - interop_
settings - Harness-owned controls that materially affect Supercode interoperability.
- jobs
- Observed-tier, READ-ONLY inventory of scheduled jobs across the harnesses that have them (Domain 11, concept 6).
- jobs_
control - Controlled-tier scheduled jobs (Domain 11, concept 6) — the FIRST controlled-tier noun, and the shape the rest of wave 2 copies.
- live_
runtime - Trusted local receipts for attachable Supercode runtimes.
- lsp
- §2 module 28
lsp(COMPOSABLE-HARNESS-DESIGN.md line 478): “D1 LSP diagnostics in edit path + query tool” — this module ships the WEAKEST FORM that satisfies D1: server LIFECYCLE for a HANDFUL of user-configured language servers, and diagnostics surfaced in the edit/write TOOL RESULT via the shared D-5 write-path seam (crate::tools::WriteObserver, P5-9/P5-11). - mcp
- P5-2 (COMPOSABLE-HARNESS-DESIGN.md §2 module 15
mcp.client, D7 rows 1-8): full Model Context Protocol client support — stdio (P5-1 baseline, GROWN not rewritten), remote HTTP/SSE transports, resources + templates, prompts-as-commands, server instructions, and elicitation — plus thehandle_request/serve_stdioharness-as-MCP-server direction (module 16). - mcp_
oauth - P5-2 (COMPOSABLE-HARNESS-DESIGN.md §2 module 15 D7 row 2 “OAuth”; §2.1
dep “
model.oauth→ trust-grade token storage” — the same security class applies here): OAuth PROTOCOL support for authenticated remote MCP servers. - memory
- ORCH-12 — the
memorynoun at the OBSERVED tier: read and search the persistent cross-session memory documents a harness keeps on disk. - model_
catalog - §2 module 26
model.catalog(docs/composable-harness/ COMPOSABLE-HARNESS-DESIGN.md§3.1[capabilities.model_catalog]) — P4 of the composable-harness migration (design §5.2 phase P4: “aliases + fallback chains (userconfig.rs:386-411) promoted into core” + thesmall_modelknob). - model_
change - P4c (COMPOSABLE-HARNESS-DESIGN.md §5.2 “P4” core NEW-significant item,
§1.10/§3.1
core.model_switch.allow_switch, D9 row): a persisted, TYPED record of a mid-session model switch — pi’smodel_changeprecedent (design §1.10: “persisted change records … pi’smodel_changeis the cleanest precedent”). Deliberately flat/typed (not a formatted string), mirroringcrate::usage_log::UsageRecord’s exact rationale: a translatable, lossless session-data channel (§1.13), not a lossy notice — so it survives a save/load round trip byte-for-byte in the fields that matter, and a future reader (a translator emitting this same session under another harness’s format, adoctor/inspect statscommand) can consume it without re-parsing prose. - modules
- §2 “The Bolt-on Capability Taxonomy” (
docs/composable-harness/ COMPOSABLE-HARNESS-DESIGN.md) — P3 of the composable-harness migration (design §5.2, phase P3: “AModuleIdenum (the 35 names) + resolved activation set onConfig”). - ontology
- The supercode ontology (
docs/ONTOLOGY.md): the one model under the session spine and the orchestration. Lower layers never import upper ones — this module depends on nothing above it except the session layer’scrate::session::OrchestrationNounswire block, which aBindingprojects onto. - orchestration
- The orchestration piece of the ontology (
docs/ONTOLOGY.md§2.7,docs/ORCHESTRATOR-IR.md§2): a harness’s operational home as ONE typed value. These are the records the orchestrator loads, steps and saves; a Hermes or OpenClaw home compiles into them and decompiles back (the codecs are ONT-3’s). The wire form is the orchestrator IR’s canonical JSON: the runtime half is never persisted and is not here. - orchestration_
doors - ONT-4: the orchestration doors, in one implementation.
- orchestrator
- The orchestrator’s home, its daemon lease, and the service unit the operator verbs print (ORC-7).
- orchestrator_
door - ORC-13 — the orchestrator’s WRITE door, the one every controlled-tier noun
goes through when
--harness orchestratornames it. - output_
style - BP-5 (catalog D2 “Output style / personality module”: swappable response-style instruction layer; cc§7 “Output styles”; cx§2 “Personality layer”) — the named response-style layer.
- parity
- Behavior-parity ledger: the product’s own gap count, for the
cc-parityandcx-paritypresets and for the orchestration harnesses. - path_
rules - BP-5 (catalog D2 “Path-scoped rules”: rule files activated only when
matching files are touched; cc§2 “
.claude/rules/*.md— modular instruction files; optionalpaths:frontmatter scopes a rule to file globs so it loads only when Claude touches matching files”). - permissions
- P5-1 (COMPOSABLE-HARNESS-DESIGN.md §2 modules 10-11, §2.1 D-3, §2.2 C5, §5.3 risk 1): the permissions engine — command canonicalization + rule algebra + approval policy/cache + oc/cx import translators.
- plugins
- P5-12 (COMPOSABLE-HARNESS-DESIGN.md §2 module 18
plugins, D7 “in-process extension API, packaging/marketplaces, custom tools from files, provider injection, extension UI, plugin/package installation”; §2.1 D-10: “config-borne code execution without a trust gate is an injection hole”). - presets
- §4 “Presets” (
docs/composable-harness/COMPOSABLE-HARNESS-DESIGN.md) — P2 of the composable-harness migration (design §5.2, phase P2). - pricing
- BP-7 (catalog §4a “Turn/budget caps” — the spend cap; “Per-turn cost/usage accounting” — the cost half): token→dollars on the request path.
- pricing_
ref - Reference pricing constants used only to translate measured byte/token savings into a dollar figure in test logs and docs (D15). These are stated constants for one Opus-class API list price (July 2026) — not a live lookup, and not used anywhere on the request path.
- profiles
- ORCH-10 — the
profilenoun at the OBSERVED tier: one uniform row for every named, routable config home supercode can see, read from each harness’s own files and never written. - profiles_
control - ORCH-21 — the
profilenoun at the CONTROLLED tier: create and delete a routed config home through the HARNESS’S OWN verb, with supercode as the uniform client. - reduce
- Compatibility facade for optional reversible reduction.
- routes
- ORCH-15 (observed tier): the routing noun — which profile / agent a surface tuple resolves to.
- runs
- Observed-tier, READ-ONLY inventory of scheduled-job FIRES across the harnesses that keep a run store (Domain 11, concept 7).
- runtime
- Primitive live-runtime contracts and the Codex app-server reference adapter.
- runtime_
lease - Transport-neutral observer and controller leases for live SDK runtimes.
- runtime_
registry - Authenticated inventory and attachment for live and persisted sessions.
- sandbox
- P5-10 (COMPOSABLE-HARNESS-DESIGN.md §2 module 12
permissions.sandbox, ~row 462): the OS-level enforcement BACKSTOPpermissions.rules’ rule-layer floor and the file-toolcrate::tools::SandboxPolicyboth defer to for full coverage (crate::permissionsmodule doc: “complete OS-level write confinement of arbitrary bash… iscapabilities. permissions.sandbox’s job (P5 module 10, a later unit), not this one’s” — this IS that unit). - schema
- Typed schemas for the on-disk session formats.
- sdk
- Versioned public SDK contract shared by every Supercode surface.
- server
- §2 module 31
server(COMPOSABLE-HARNESS-DESIGN.md, D7 “full programmatic RPC/HTTP server”, D8 “remote attach”, D10 “daemon”; §1.9 Obligation 9’s out-of-process half — the in-process SDK already meets the core commitment viacrate::EventSink). - session
- Compatibility path for canonical sessions and native codecs.
- session_
activity - Protocol-neutral activity for persisted and live harness sessions.
- session_
index - Revisioned session-list subscriptions for latency-sensitive frontends.
- session_
journal - BP-8 (catalog domain 5): the append-only session journal — one
flush-per-record log of everything that happens to a session while it is
live, written beside the transcript as
<name>.journal.jsonl. - session_
title - P4b (COMPOSABLE-HARNESS-DESIGN.md §5.2 “P4”, §1.6/§3.1
core.session.auto_title, catalog:150, D-9): auto-title / session summary — a small-model side-call that titles a session, mirroringcrate::reduce::summarize’s plumbing exactly: an injectable trait (real implementations call out to a model; this crate’s own tests only ever inject deterministic fakes — no real network/model call anywhere in this crate, same posture ascrate::reduce::summarize::SpanSummarizer), a fixed versioned prompt, and a “never blocks, never fails the caller” contract. - session_
tree - Compatibility path for canonical session trees.
- sessions_
control - Controlled-tier conversations (Domain 11, concept 5) —
new,reset,archive,deleteover one uniform door. - sidecar
- Compatibility path for native interchange sidecars.
- skills
- ORCH-11 (observed tier): read-only enumeration of the skill packages each harness has installed.
- skills_
control - Controlled-tier skills (Domain 11, concept 15) —
installandremove, each through the door the harness itself publishes. - store
- A directory-backed store for supercode’s own sessions — naming, titles,
listing, archiving, and deletion. The analog of
claude --name/ the Codexresume/archive/deletesession lifecycle. - subagents
- P5-3 (COMPOSABLE-HARNESS-DESIGN.md §2 module 9
subagents: “D1 spawn tool; D3 sub-agents/named-defs/background+resume/teams; D5 subagent transcripts”; §2.1 D-1 “subagents → core.session(lineage), core.tools; background-mode → permissions.approvals”; §2.2 C6): the data shapes and pure-function resource-bound checks the spawn/join/background machinery incrate::agent::Agentbuilds on. Kept separate fromagent.rsso the depth/concurrency-cap arithmetic and the lineage record shape are unit-testable without a fullAgent/mock-Providerharness — the same “pure config → set, testable without the loop” precedent P3’scrate::modulesmodule documents for itself. - support
- Canonical implementation inventory for external coding harnesses.
- tokens
- Compatibility path for native runtime token budgeting.
- tools
- Tools the agent can call.
- triggers
- ORCH-16 (observed tier): the inbound-trigger noun — an HTTP route or hook mapping that opens a turn when something outside the harness fires.
- trust
- BP-10 (COMPOSABLE-HARNESS-DESIGN.md §2 module 14
trust, catalog row “Project/workspace trust gate”): the workspace-trust DECISION — the prompt, its per-project persistence, and the three surfaces it gates. - tui
- P5-4 (COMPOSABLE-HARNESS-DESIGN.md §2 module 30
tui; §1.9 recorded deviation; §2.1tools.question/permissions.approvals(ask-UI) →tui|server): the full-screen interactive TUI, AND — because §2.1 names it as the interactive surface three EARLIER phases explicitly deferred here — the home for the three handlers that close those deferred chains: - turn_
record - BP-7 (catalog §4a “Turn/step bracketing records”, “Interrupt/abort with
state preserved”, “Auto-retry on transient provider errors”): the
persisted per-round-trip marker log — cc’s
turn_duration/api_retrysystem records and cx’sturn_context/turn_aborted/responses_retryrows, in one typed shape. - usage_
log - P4b (COMPOSABLE-HARNESS-DESIGN.md §5.2 “P4”, §1.6/§3.1, catalog §4a
“Turn/step usage records surfaced per turn”): persisted per-turn
token/usage records.
crate::AgentEvent::Usagealready streams this data live (UX-23); this module makes it DURABLE session data — a typed, serde-round-trippable record, not a lossy display-only channel (§1.13’s lossless/sidecar discipline: this is typed session data, exactly likecrate::reduce::ReductionLog, not a text notice). - watch
- Compatibility path for passive session following.
- workflow_
doors - The workflow layer’s read door:
harness.v1.workflow.load, the same code thesupercode workflow loadverb calls. A harness’s board is read as one typedWorkflowvalue; the board is written only through the harness’s own door (hermes kanban …), never here.
Structs§
- AcpFrontend
Checkpoint - Durable delivery cursor for restarting an ACP frontend without replaying events it already consumed.
- AcpFrontend
Connect Options - Connection parameters for one ACP frontend attachment.
- AcpFrontend
Runtime - ACP transport implementing the same
SdkRuntimeconsumed by local and HTTP frontends. - AcpRuntime
Backend - Generic ACP v1 client backend for any ACP agent command.
- Agent
- Approval
Option - One answer the door that raised this request accepts.
- Approval
Registry - The live pending requests held by one service’s open runtime connections.
- Approval
Resolution - Everything
harness.v1.runtimes.respondneeds to answer one request. - Approval
Row - One approval request, in the vocabulary shared by every harness.
- Approvals
Query harness.v1.approvals.listrequest.- Approvals
Resolve Params harness.v1.approvals.resolverequest.- Bearer
Token - Bearer credential whose
Debugoutput never contains the secret. - Channel
Row - One transport + account a harness is reachable on, uniform across harnesses.
- Chat
Message - A single message in a conversation.
- Chat
Request - A single model-completion request.
- Claude
Background Child - Latest known state of a Claude
Agenttool call. - Claude
Code Runtime Backend - Claude Code live-runtime backend using bidirectional stream-json print mode with supercode registered as the CLI’s permission handler.
- Claude
Cron Job - One active Claude Cron job.
- Claude
Peer Delivery - Successful hand-off of one message to a live session.
- Claude
Peer Endpoint - Opaque addressing string published on a discovered descriptor.
- Claude
Peer Refusal Error - A refusal paired with the detail that names it.
- Claude
Peer Session - One live Claude Code session: a registry record whose pid answered
kill(pid, 0)during the read that produced this value. - Claude
Peer Settings - The user-settings portion Supercode can inspect without pretending to know a target process’s complete managed/project/CLI precedence stack.
- Claude
Queue State - End-of-transcript queue state.
- Claude
Runtime Manifest - A pure, serializable reconstruction of runtime state in a Claude transcript.
- Claude
Runtime Posture - Latest Claude CLI mode and permission posture.
- Claude
Runtime Residue - Verbatim evidence for one runtime-affecting source record.
- Claude
Wakeup - One scheduled one-shot wakeup that has not yet observably fired.
- Codex
Runtime Backend - Codex live-runtime backend using the official
codex app-serverJSONL protocol (initialize,thread/start|resume,turn/start|interrupt). - Config
- Everything that shapes an
crate::Agent: the model and endpoint, the credentials, sampling parameters, the system prompt, and per-tool overrides. - Config
Builder - Fluent builder for
Config. - Config
File - A config file: a set of named profiles (the analog of Codex
-p/--profile). This is the SDK/embedder config surface (JSON, viaConfig::from_profile_file). BP-9 gave the same named-bundle mechanism a launch-time selector on the CLI side:supercode --profile <name>selects a[profiles.<name>]bundle out of the user’s TOMLconfig.toml(userconfig::FileConfig), applied as its own layer between the user layer and the project layer (cx§6’suser → profile → projectorder). - Config
Profile - The serializable subset of a
Configthat can live in a config file. (Callbacks/handlers are code-only and are not represented here.) - Context
Injection Block - P4e (§1.4/§3.1
core.context_injections): one named ambient context block – seeConfig::context_injection_blocks. - Context
Usage - BP-4 (catalog:109 “Context-usage introspection”): the live
context-window accounting
Agent::context_usagereports — cc’s/contextgrid and cx’s/status+get_context_remainingin one shape, over the numbersresume --dry-run’s preflight already computes. - Coordinated
Runtime - Shared transport-neutral owner of a runtime and its client leases.
- Coordinated
Runtime Client - Authenticated client projection of one coordinated SDK runtime.
- Cross
Surface - ORCH-3: a conversation moved to another surface (Hermes
handoff_*). - Discovery
Page - One stable newest-first discovery page.
- Discovery
Query - Filters and roots used for one catalog scan.
- Door
Answer - One answered operator call.
- Fidelity
Metric - Result of measuring one actual translation cell.
- Fidelity
Residue - Measured residue of one actual export/reload cell.
- Frontend
Actions - Actions the current runtime adapter can actually perform.
- Frontend
Attach Snapshot - Serializable half of an attachment returned by an out-of-process runtime. The live receiver is transport-owned and joined to this snapshot locally.
- Frontend
Attachment - Atomic history/replay/live attachment to one runtime.
- Frontend
Command Descriptor - One runtime-provided command surfaced by a composer.
- Frontend
Display Capabilities - Display semantics emitted by the runtime.
- Frontend
Event - Canonical event before a wire transport adds subscription metadata.
- Frontend
Operation Descriptor - One operation the runtime can genuinely invoke.
- Frontend
Request - One pending interactive request, emitted as a sequenced frontend event.
- Frontend
Runtime Descriptor - Complete frontend-facing description of one SDK-owned runtime.
- Frontend
Runtime Metadata - Source/emulation identity supplied by the session-loading surface.
- Function
Call - The function payload of a
ToolCall. - Generated
Frontend Client - Generated typed Rust client over any facade transport.
- Harness
Authentication Launch - Process launch that an embedding host must run in a user-visible terminal.
- Harness
Authentication Method - One verified native authentication mechanism supported by a harness.
- Harness
Authentication Plan - Host-executable plan for one selected authentication method.
- Harness
Authentication Report - Redacted native authentication readiness and available methods.
- Harness
Catalog - Read-only entry point for discovering, loading, and following persisted harness sessions.
- Harness
Config - The top-level schema (§3.1): one TOML/JSON document that fully determines the harness’s shape (§3.0: “Everything the harness does is a function of the resolved file”).
- Harness
Event - Protocol-neutral envelope around a native live event.
- Harness
Homes - Configurable session roots for the built-in harnesses.
- Harness
Id - Extensible identifier for a coding harness.
- Harness
Interop Advisory - Actionable finding derived from native harness configuration.
- Harness
Interop Control - One harness-owned setting that Supercode can inspect or configure.
- Harness
Interop Settings Report - Canonical, revisioned snapshot shared across CLI, RPC, SDK, and UI.
- Harness
Run - Hard stop on how far a compression chain is followed from a fire’s own session to the readable tip. Hermes chains are short; a cycle in a corrupted store must not spin. One fire of one scheduled job, projected onto the uniform Domain 11 row.
- Harness
Session Service - Stateful persisted-session service. Each instance owns its follow subscriptions; discovery and loading remain read-only.
- Harness
Setting Change - Requested change to one stable interoperability control.
- Harness
Setting Choice - One allowed value for an interoperability control.
- Harness
Setting Recommendation - Concrete, reviewable remediation for an advisory.
- Harness
Support Descriptor - Http
Frontend Runtime - Authenticated HTTP implementation of
FrontendRuntime. - JobDeliver
- Where a fire’s output is delivered.
- JobDeliver
Spec - Uniform delivery for a create/update.
- JobMutation
- One mutating request, in the uniform Domain 11 vocabulary.
- JobMutation
Outcome - What one mutation did, with the harness’s own row read back afterwards.
- JobPayload
- What a fire actually does.
- JobPayload
Spec - Uniform payload for a create/update.
- JobSchedule
- A job’s firing rule, with the native expression preserved.
- JobSchedule
Spec - Uniform firing rule for a create/update.
- JobSource
- One store the listing consulted, and what it found there.
- Jobs
Listing - Result of a
jobs.list: the rows plus every store that was consulted. - Jobs
Query - Filters for a scheduled-job read.
- Lease
- The lease
<home>/orchestrator.lockholds: which process is serving this home, and since when. - Live
Runtime Endpoint - Browser-safe reference to a trusted local runtime receipt.
- Live
Runtime Metadata - Static runtime metadata recorded at registration. Dynamic state, actions, controller, and observers are queried from the authenticated SDK endpoint.
- Live
Runtime Record - Browser-safe inventory record for one reconciled live receipt.
- Live
Runtime Registration - RAII registration for one live runtime. Dropping it removes only the receipt created by this registration, leaving persisted chat data intact.
- Live
Runtime Source - Stable source identity through which a hosted continuation is discovered.
- Local
Runtime Registry - Local authenticated registry backed by harness discovery and private live-runtime receipts.
- McpServer
Launch - One stdio MCP server the caller wants mounted into the session it is
starting. Uniform shape; each backend translates it into whatever its own
harness accepts (the ACP backend into
session/new’smcpServers). - Memory
Document - One memory document, as one harness holds it.
- Memory
Match - One line of one memory document that matched a search.
- Memory
Query harness.v1.memory.showrequest.- Memory
Search Query harness.v1.memory.searchrequest.- Module
Activation - The resolved activation set for all 35 modules (§5.2 P3: “a resolved
activation set on
Config”) — pureHarnessConfig→ set, no loop required (§5.3 risk 2’s testability mitigation). Also carriestools_search’s three per-tool sub-flags, sincecrate::tools::ToolRegistry::from_configneeds them to decide which ofglob/search/list_dirto register — and (P4c)tools_web’s two, forweb_fetch/web_search. - Native
Support - Persisted-session and translation implementation facts.
- Open
AiProvider - An OpenAI-compatible HTTP provider. The composition layer supplies its endpoint, credentials, and headers from runtime configuration.
- Open
Code Runtime Backend - OpenCode live-runtime backend using its official HTTP API and SSE event
stream.
OpenCodeRuntimeBackend::connectcan join the server embedded in an already-running TUI when that TUI was launched with a known host/port. - Orchestration
Nouns - ORCH-6: the ORCH-3 conversation nouns as one additive wire block, carried
by
harness.v1.sessions.discover/sessions.loadrows and bycrate::catalog::SessionDescriptor. Every field is optional so an older client sees exactly the shape it already knows. - PiRuntime
Backend - Pi live-runtime backend using
pi --mode rpcJSONL. - PreTool
Outcome - BP-10: everything a pre-tool hook can say about one call — a decision, a human-readable reason, and (the rewrite half of the row) REPLACEMENT arguments.
- Process
Courier Runner - Real courier spawner.
- Profile
Mutation - One mutating request, in the uniform Domain 11 vocabulary.
- Profile
Mutation Outcome - What one mutation did, with the harness’s own row read back afterwards.
- Profile
Row - One named config home, uniform across harnesses.
- Prompt
Tokens Details - The cache portion of
Usage::prompt_tokens_details. - Recurrence
- ORCH-3: the job a recurring session belongs to.
- Resolved
Live Runtime - Secret host-side information recovered from a verified receipt.
- Resolved
Runtime Connection - Endpoint and credential resolved from a
RuntimeConnectLaunch. - Retry
Log - A shared, drainable buffer of
RetryNotices. - Retry
Notice - BP-7 (catalog §4a “Auto-retry on transient provider errors”): one transient failure the transport retried.
- Route
Match - The match side of a route, in the shared-noun vocabulary.
- Route
Row - One routing entry.
- RpcEngine
- The out-of-process RPC driver: wraps one already-constructed
crate::Agentwith thesubmit/interrupt/status/shutdownmethod set (§ module doc). Shared by both transports (run_stdio,run_http) so the method semantics — including the fail-closed permission behavior — can never drift between them. - RunDelivery
- A fire’s delivery outcome (ORCH-13).
- RunSource
- One store the listing consulted, and what it found there.
- Runs
Listing - Result of a
runs.list: the rows plus every store that was consulted. - Runs
Query - Filters for a run-history read.
- Runtime
Attach Request - Request to resume or attach through a new adapter connection.
- Runtime
Authorization - Permissions carried by one authenticated runtime client.
- Runtime
Capabilities - Mechanical facts an adapter can guarantee.
- Runtime
Client Id - Opaque identity scoped to one authenticated frontend connection.
- Runtime
Connect Launch - Connect to an already-running harness endpoint instead of spawning one.
- Runtime
Controller Lease - Controller lease visible through runtime describe/list operations.
- Runtime
Handle - Identity returned after a live session is started or resumed.
- Runtime
Input - User input accepted by a live runtime.
- Runtime
Launch - Executable configuration used to launch one adapter endpoint.
- Runtime
Lease Coordinator - One-controller, many-observer coordination state for a live runtime.
- Runtime
Lease Snapshot - Serializable ownership snapshot included in registry descriptors.
- Runtime
Observer Lease - One attached observer and its last authenticated activity.
- Runtime
Registry Entry - Stable joined descriptor returned by the registry.
- Runtime
Registry Owner - Process and controller ownership for one live entry.
- Runtime
Registry Query - Filters controlling one joined live/persisted inventory read.
- Runtime
Registry Watch - Bounded watch subscription. Dropping it stops the polling task.
- Runtime
Start Request - Request to create a fresh runtime session.
- Runtime
Support - Live runtime wiring known without launching the real executable.
- Scheduled
Job - One harness’s scheduled job, projected onto the uniform Domain 11 row.
- SdkAgent
- SDK-owned emulation runtime component.
- SdkCapabilities
- Capability inventory for the complete v1 SDK, independent of transport.
- SdkEvent
- Canonical event before a wire transport adds subscription metadata.
- SdkRequest
- One typed SDK request before a transport adds its envelope.
- SdkRuntime
Event - One runtime event paired with its durable SDK identity.
- Service
State - What the platform’s service manager says about the orchestrator unit.
- Service
Unit - A rendered service unit: what
setupprints and writes. - Session
- A normalized, replayable conversation loaded from a tool’s session log.
- Session
Activity - Normalized lifecycle state for one harness-native session.
- Session
Activity Evidence - Provenance for one normalized activity observation.
- Session
Descriptor - Lightweight metadata returned by catalog discovery.
- Session
Follower - Poll-based follower for one persisted Claude Code, Codex, Pi, OpenCode, or Grok session.
- Session
Index Delta - One subscription poll result. Revisions start at one for the initial snapshot and increase by exactly one for each non-empty delta batch or committed window resize. They describe the visible window, not changes to out-of-window inventory totals returned by a same-limit read.
- Session
Index Key - Stable public identity for a session-index change. Persistence paths remain inside the trusted host and are sent only as part of complete descriptors.
- Session
Info - Lightweight metadata about a stored session.
- Session
Locator - Stable identity for a persisted harness session.
- Session
Meta - Session
Mutation - One mutating request, in the uniform Domain 11 vocabulary.
- Session
Mutation Outcome - What one mutation did, with the conversation re-read afterwards.
- Session
Store - A filesystem session store rooted at a directory.
- Skill
Homes - Config homes the skill roots hang off. Defaults follow each harness’s own environment contract; a caller may override any of them (tests, probes).
- Skill
Mutation - One mutating request, in the uniform Domain 11 vocabulary.
- Skill
Mutation Outcome - What one mutation did, with the harness’s own row read back afterwards.
- Skill
Row - One installed skill package, as one harness holds it.
- Skills
Query harness.v1.skills.listrequest.- Supercode
Http Runtime Backend - Adapter that joins one authenticated Supercode SDK runtime without taking ownership of the process or creating a second model loop.
- Support
Registry Report - Machine-readable compiled support inventory.
- Surface
Key - ORCH-3: the conversation identity on a surface. Full tuple on a channel;
degenerate (all
None) on a terminal. - Tool
Call - A request from the model to invoke a tool.
- Tool
Context - Ambient context passed to every tool invocation.
- Tool
Override - Per-tool customization: enable/disable a tool and/or override the description the model sees for it.
- Tool
Override Profile - A single tool’s file-settable overrides — the
ConfigProfilemirror ofToolOverride(COMPOSABLE-HARNESS-DESIGN.md §3.1[core.tools.<name>], §3.2 mapping rowcore.tools.enabled+[core.tools.<n>].*). - Tool
Registry - An ordered set of tools offered to the model.
- Tool
Schema - A tool advertised to a model.
- Trigger
Row - One inbound trigger.
- Usage
- Token accounting returned with a completion.
- Workspace
Ref - ORCH-6: the wire form of [
SessionMeta::workspace] — a typed workspace carried on a discovered or loaded row. The D2 precedence that produces it lives inworkspace()(ORCH-3’s contract); this only names the result.
Enums§
- Agent
Event - Streaming events emitted by a native runtime agent as a turn unfolds.
- Approval
Choice - What a caller asked for, once the params have been validated.
- Approval
Decision - The uniform decision
harness.v1.approvals.resolvetakes, in the vocabulary shared by every harness rather than any one door’s spelling. - Approval
Door - Which protocol door raised a live request.
- Approval
Kind - Where a row came from.
- Approval
Policy - When the agent must seek approval before running a tool — the analog of
Codex’s
-a untrusted|on-request|neverand Claude’s permission modes. - Approval
Resolve Error - Why one resolve could not be planned.
- Approval
Status - Lifecycle state of one approval row.
- Cache
Plan - Prompt-caching plan applied while building a provider request.
- Channel
Error - Read-only channel failures.
- Channel
Status - Whether a live probe answered, and what it said.
- Claude
Background State - Lifecycle state recovered for a Claude background child.
- Claude
Cross Session Inbound - User-level policy Claude Code applies to messages from other sessions.
- Claude
Peer Refusal - Why a message could not be delivered into a live session.
- Claude
Peer Settings Error - Failure to read or safely update Claude Code’s user settings.
- Claude
Peer Status - Activity a live Claude Code session reports for itself.
- Door
- Which door answered.
- Door
Error - Why an operator call could not be answered.
- Error
- Errors that can arise while configuring or running an
crate::Agent. - Fidelity
- How faithfully a reconstruction reproduces its source.
- Frontend
Approval Decision - Typed approval decision accepted by
FrontendRuntime::respond. - Frontend
Connection State - Frontend-visible runtime connection state.
- Frontend
Elicitation Action - MCP elicitation outcome accepted by a frontend response.
- Frontend
Facade Method - One method in the versioned language-neutral frontend facade.
- Frontend
Operation Invocation - Typed invocation accepted by
FrontendRuntime::invoke. - Frontend
Operation Kind - Stable family for an explicitly invocable frontend operation.
- Frontend
Operation Result - Typed result returned by
FrontendRuntime::invoke. - Frontend
Request Kind - Kind of interactive request surfaced by the SDK runtime.
- Frontend
Response - Typed response to one SDK-owned interactive request.
- Frontend
Runtime Error - Typed failure returned by every SDK adapter and compatibility projection.
- Frontend
Turn State - Whether a model/tool turn currently owns the runtime.
- Harness
Advisory Severity - Importance of an interoperability advisory.
- Harness
Authentication Environment - Environment in which the native authentication interaction must work.
- Harness
Authentication Error - Failure to construct a truthful native authentication plan.
- Harness
Authentication Interaction - User interaction presented by an authentication method.
- Harness
Authentication Method Id - Stable identifier for a harness-native authentication mechanism.
- Harness
Authentication State - Credential readiness reported without exposing credential material.
- Harness
Browser Behavior - Whether the native CLI itself is expected to open a browser.
- Harness
Interop Settings Error - Failure while inspecting or changing harness interoperability controls.
- Harness
Setting Scope - Native configuration layer from which a control was read.
- Hook
Decision - BP-10 (catalog row “Hook/plugin permission veto”, semantics “Programmatic allow/deny/rewrite before the user sees it”): what a pre-tool hook decided about one call.
- Implementation
Kind - How a primitive is wired into the compiled core.
- JobControl
Error - Why a mutation could not be performed.
- JobScope
- Whether a job belongs to one conversation or to the whole install.
- JobVerb
- One uniform mutating verb.
- Lifecycle
Event - A loop lifecycle moment an embedder may observe (BP-11, catalog
“Lifecycle hooks, config-registered”): the compaction and subagent
boundaries the CLI’s
pre_compact/post_compact/subagent_start/subagent_stophook events are fired from. Observational only — a lifecycle hook can never veto the moment it observes. - Live
Runtime Receipt Error - Receipt registration or resolution failure.
- Live
Runtime Supervisor - Optional local process supervisor for an attachable runtime.
- Memory
Error - Read-only memory failures.
- Memory
Scope - Which config home a memory document belongs to, in the vocabulary shared by all three harnesses.
- Module
Id - The 35 §2 capability modules, numbered exactly as the design’s module table (§2, rows 1-35).
- Orchestrator
Error - Why an operator verb could not do its work.
- Profile
Control Error - Why a profile mutation could not be performed.
- Profile
Error - Read-only profile failures.
- Profile
Kind - Which harness concept a row came from.
- Profile
Verb - One uniform mutating verb over the profile noun.
- Role
- Who authored a
ChatMessage. - Route
Error - Why a listing was refused.
- Runtime
Endpoint - Observable endpoint backing a runtime connection.
- Runtime
Lease Error - Stable coordination failure shared by every transport projection.
- Runtime
Permission - Capability independently granted to an authenticated runtime client.
- Runtime
Registry Event - Change emitted by
RuntimeRegistryWatch. - Runtime
Registry State - Reconciled lifecycle state reported by list/describe/watch.
- Runtime
Submit Error - Typed turn failure shared by local, HTTP, ACP, CLI, and language adapters.
- Sandbox
EnvPolicy capabilities.permissions.sandbox.env_policy(§3.1): child-process environment sanitization for the spawnedbash/shellsubprocess.Inherit(the default) is today’s behavior — the parent’s environment (pluscore.shell_env_snapshot, if configured) passes through unchanged.Filteredstrips a sensitive-variable denylist (tokens, keys, cloud credentials).Nonekeeps onlyPATHand a couple of universally-needed variables (HOME,TERM,LANG) — nearest to a bare-metal shell with nothing extra.- Sandbox
Escalation capabilities.permissions.sandbox.escalation(§3.1): what happens when a confining fs tier is requested but this platform/kernel cannot actually enforce it.Deny(the default) refuses to run the subprocess at all — the cardinal “never silently unsandboxed” rule.Askroutes the decision throughcrate::permissions::PermissionsApprovalHandler(P5-1’spermissions.approvalsseam, wired here per this module’s build brief).Allowauto-permits an unconfined run with a loud, one-time warning.- Sandbox
Policy - Filesystem confinement applied to write-capable tools — the analog of
Codex’s
read-only/workspace-write/danger-full-accesssandbox modes. - Schema
Tier - How verbose an advertised tool schema is.
Fullis today’s behavior — byte-identical to the tool’s owndescription()/parameters(). Builtins default toFull(small, load-bearing); the win target is fat activated MCP tools (set via the global knob or a per-tool override, seecrate::Config::tool_schema_tier/crate::config::ToolOverride::schema_tier). - SdkError
- Typed failure returned by every SDK adapter and compatibility projection.
- SdkError
Code - Stable machine-readable SDK failure categories.
- SdkOperation
- One operation owned by the SDK facade.
- Session
Control Error - Why a mutation could not be performed.
- Session
Door - The door one
(harness, verb)pair goes through. - Session
Format - An on-disk session format supercode can both read and write.
- Session
Index Change - One complete replacement in a revisioned index delta.
- Session
Presence - Whether a durable session currently has a proven live owner.
- Session
Snapshot Reason - Why a watcher emitted a complete session snapshot.
- Session
Source - Which tool produced a session log.
- Session
Turn State - Turn activity, independent of presence and frontend attention.
- Session
Verb - One uniform conversation-lifecycle verb.
- Session
Watch Event - A normalized event emitted while following a local session.
- Skill
Control Error - Why a mutation could not be performed.
- Skill
Scope - Where a skill package was found, in the vocabulary shared by all six harnesses.
- Skill
Verb - One uniform mutating verb.
- Steering
Mode - How queued steering/follow-up messages are drained (S1.7, pi3
steeringMode/followUpMode). - Storage
Locator - Durable storage address for a persisted session.
- Tool
Advertising - How tools are advertised to the model (B6, D16).
- Tool
Outcome - The structural outcome known for a tool-result message.
- Trigger
- ORCH-3: why a session exists (the trigger noun;
docs/HERMES-IDEAL-SUPPORT-DESIGN.md§3). - Trigger
Error - Why a listing was refused.
- Trigger
Kind - What kind of trigger a row is.
- Workspace
Kind - ORCH-3 / UNI-9: the typed workspace, derived — never stored.
Constants§
- CHANNELS_
SCHEMA - Stable row schema shared by Rust, JSON-RPC, the SDKs, and the CLI.
- CHANNEL_
HARNESSES - Harnesses with a channel concept supercode reads, in product order.
Every other harness id is
ChannelError::UnsupportedHarness. - CLAUDE_
CROSS_ SESSION_ INBOUND_ KEY - Stable key for Claude Code’s native
crossSessionInboundpreference. - CLAUDE_
RUNTIME_ MANIFEST_ VERSION - Version of the persisted Claude runtime-state manifest schema.
- CLAUDE_
SESSION_ SCAN_ LIMIT - Newest-first cap on Claude Code sessions examined when no
sessionfilter is given. Claude’s jobs are session state, so an unfiltered listing would otherwise walk the whole history; the scan is reported inJobsListing::sourcesso a truncated answer is never silent. - CONTROLLED_
JOB_ HARNESSES - Harnesses whose scheduled jobs supercode can MUTATE through their own CLI
verb. Strictly narrower than
crate::jobs::JOB_HARNESSES: Claude Code is readable but not controllable. - CONTROLLED_
PROFILE_ HARNESSES - Harnesses whose profiles supercode can MUTATE through their own CLI verb.
Strictly narrower than
crate::profiles::PROFILE_HARNESSES: Codex profiles and supercode presets are readable but not controllable. - CONTROLLED_
SESSION_ HARNESSES - Harnesses whose conversations supercode can mutate through at least one of their own doors. Strictly narrower than the set it can READ.
- CONTROLLED_
SKILL_ HARNESSES - Harnesses whose installed skills supercode can MUTATE through a door the
harness publishes. Identical to
SKILL_HARNESSEStoday: the two CLI harnesses have a verb, the core four have their loader’s directory. - DAEMON_
ENTRY - The daemon entry inside the
sdk/orchestratorpackage. - DEFAULT_
RUNTIME_ LEASE_ TTL_ MS - Default controller duration. Successful mutations and explicit heartbeats renew it; disconnect and detach release it immediately.
- DEFAULT_
SYSTEM_ PROMPT - A default, deliberately small system prompt. Override it freely.
- FRONTEND_
REPLAY_ CAPACITY - Maximum sequenced events retained between canonical history snapshots.
- FRONTEND_
RUNTIME_ SCHEMA_ VERSION - Frontend contract schema version.
- HARNESS_
AUTHENTICATION_ SCHEMA - Stable schema identifier shared by authentication reports and launch plans.
- HARNESS_
INTEROP_ SETTINGS_ SCHEMA - Stable report schema shared by Rust, JSON-RPC, SDKs, and UIs.
- HARNESS_
SERVICE_ VERSION - Protocol namespace implemented by this service.
- HERMES_
DEFAULT_ PROFILE - Hermes’s implicit profile: HERMES_HOME itself, the
profile_name IS NULLpartition ofstate.dband the target when no route matches. - JOB_
HARNESSES - Harnesses that have a scheduled-job concept at all. Every other harness
answers
jobs.list/jobs.getwithUnsupportedAction, never an empty list — an absent verb and an empty inventory are different answers. - LOCK_
FILE - Lease file the daemon writes while it serves a home, relative to the home.
- MEMORY_
HARNESSES - Harnesses with a memory store supercode reads, in product order. Every
other harness id is
MemoryError::UnsupportedHarness. - MEMORY_
SCHEMA - Stable row schema shared by Rust, JSON-RPC, the SDKs, and the CLI.
- NODE_
BIN_ ENV - Environment variable overriding the
nodeused for the cold path (tests). - PROFILES_
SCHEMA - Stable row schema shared by Rust, JSON-RPC, the SDKs, and the CLI.
- PROFILE_
HARNESSES - Harnesses that have a profile concept supercode reads, in product order.
Every other harness id is
ProfileError::UnsupportedHarness. - ROUTES_
SCHEMA - Wire schema of
harness.v1.routes.list. - ROUTE_
HARNESSES - Harnesses with a routing concept.
- RUNTIME_
EVENT_ METHOD - Notification method emitted for live runtime events.
- RUN_
HARNESSES - Harnesses that keep a run store at all. Every other harness answers
runs.list/runs.getwithUnsupportedAction, never an empty list — an absent store and an empty history are different answers. - SDK_
SCHEMA_ VERSION - Current language-neutral SDK schema.
- SERVED_
MODEL_ KEY - Metadata key carrying the model the PROVIDER said served a response —
distinct from
"model", which every caller sets to the model it REQUESTED. Present only when the response actually reported one. - SERVICE_
DIR - Directory
setupwrites the rendered service unit into. - SERVICE_
NAME - launchd label / systemd unit name for the orchestrator daemon.
- SESSION_
ACTIVITY_ EVENT_ METHOD - Notification method emitted for normalized session-activity transitions.
- SESSION_
EVENT_ METHOD - Notification method emitted for followed-session changes.
- SESSION_
INDEX_ EVENT_ METHOD - Notification method emitted for revisioned session-list changes.
- SKILL_
HARNESSES - Every harness that has a skills root, in product order.
- SOCKET_
FILE - The daemon’s local socket inside one orchestrator home.
- SUPPORT_
REGISTRY_ SCHEMA - Schema emitted by
harness_support_registry. - TOOL_
ERROR_ METADATA_ KEY - Canonical metadata key marking a tool result as a structured error.
- TOOL_
OUTCOME_ UNKNOWN_ METADATA_ KEY - Canonical metadata key marking a tool result whose outcome is unknown.
- TRIGGERS_
SCHEMA - Wire schema of
harness.v1.triggers.list. - TRIGGER_
HARNESSES - Harnesses with an inbound-trigger concept supercode can read.
- UNKNOWN_
MODEL_ CONTEXT_ FLOOR - Conservative fallback context limit for an unrecognized model.
Traits§
- Courier
Runner - Spawner seam for the courier process.
- Frontend
Facade Transport - Transport seam consumed by the generated Rust facade client.
- Frontend
Runtime - Canonical live-runtime contract owned by the SDK.
- Provider
- Legacy provider abstraction preserved by the composition facade.
- Runtime
Backend - Factory for starting, resuming, and (where the native protocol permits it) joining one harness’s already-running runtime endpoint.
- Runtime
Connection - One connected harness-native runtime session.
- SdkPrompt
Source - Renderable prompt source configured on an SDK emulation component.
- SdkRuntime
- Canonical live-runtime contract owned by the SDK.
- SdkService
- Stateful SDK facade consumed by public transport adapters.
- Tool
- A callable capability.
- Write
Observer - P5-9 (design §2 module 20
checkpoint, §2.1 D-5 “write-path interception seam shared withformatters”): the ONE well-defined interception point around every file-mutating built-in tool (write_file/edit_file/apply_patch) — installed onToolContext::write_observer,Noneby default. Both hooks fire AFTERToolContext::check_writehas already approved the call (so an observer never sees a write the sandbox itself refused) and BEFORE/AFTER the actual mutation:
Functions§
- approval_
harnesses - Every harness id
approvals.listaccepts, in registry order. - channel_
status - Read one channel’s row by harness and name.
statusisChannelStatus::Unknownat this tier for every harness; the verb exists so the noun is complete and the driven tier has one door to fill. - claude_
user_ settings_ path - Claude Code’s user settings file for the configured Claude home.
- clear_
lease - Remove the lease file. A missing file is not an error —
stopis idempotent by design. - configure_
harness_ interop_ settings - Apply a revision-checked set of changes and return the resulting snapshot.
- controlled_
verbs - Every uniform verb
harnesscan actually perform, in declaration order. Empty for a harness with no door at all. - core_
messages - Canonical messages participating in cross-format fidelity scoring.
- create_
agent - Construct the emulation component inside the SDK ownership boundary.
- daemon_
entry - Locate the Node daemon entry (
sdk/orchestrator/bin/orchestrator.mjs). - daemon_
is_ live - Whether a LIVE daemon is serving this home right now.
- declared_
skill_ name - A skill package’s own declared name:
SKILL.mdfrontmattername, else the directory’s own name — exactly the rulelist_skillsapplies, so a row installed here is found again by the name the loader will report. - discover_
live_ runtime - Find the newest live receipt matching a discovered source session.
- discover_
session_ page - Discover one persisted-session page with its opaque successor cursor.
- discover_
sessions - Discover persisted sessions through the canonical SDK catalog owner.
- find_
live_ runtime - Resolve one stable runtime id, requiring an explicit choice if stale or concurrent registrations would otherwise make attachment ambiguous.
- forget_
live_ runtime - Remove only a stale attachment receipt. Canonical, sidecar, source-native, and exported session data are never addressed by this operation.
- format_
reply - Format an agent’s final reply for output.
jsonwraps it as{"result": "..."}; otherwise the reply is returned as-is. The stream-json form is the liveAgentEventstream via anEventSink. - get_job
- Read one job by harness and id, with the verbatim native record beside the
uniform row.
Ok(None)means the harness has no such job. - get_
profile - Read one profile by harness and name.
- get_run
- Read one fire by harness and id, with the verbatim native record beside
the uniform row.
Ok(None)means the harness’s stores hold no such run. - harness_
authentication_ methods - Return the verified native authentication methods for a harness.
- harness_
authentication_ plan - Select a method for the requested environment and create its host-owned launch plan.
- harness_
program - harness_
support - Look up one harness in the compiled registry.
- harness_
support_ registry - inspect_
harness_ authentication - Inspect redacted sign-in status using the harness’s own bounded status command.
- inspect_
harness_ interop_ settings - Inspect the interoperability controls exposed by one harness adapter.
- install_
service - Render the unit, hand it to the platform’s service manager, and start it.
- is_
tool_ error - Whether a message carries the canonical structured-error marker.
- landlock_
available - Whether real Landlock filesystem confinement is available on THIS
process’s kernel — a genuine, side-effect-free (beyond dropping one
ruleset file descriptor) PARENT-PROCESS probe: it builds a
CompatLevel::HardRequirementruleset requiring exactly the write-access rightsapply_linux_confinementwould later request and checks whetherRuleset::create()succeeds — it deliberately never callsrestrict_self()(that confines the CALLING process/thread permanently and every future child of it — calling it here would confine supercode ITSELF, exactly the “confinement targets the child, not supercode” invariant this module must never violate). Cached for the process lifetime (the kernel’s Landlock support can’t change at runtime). - list_
channels - List every channel supercode can see, optionally restricted to one
harness. Rows are ordered by harness (as in
CHANNEL_HARNESSES) then by name. - list_
jobs - Read every scheduled job the query selects.
- list_
live_ runtimes - List every reconciled live runtime without exposing its bearer token or loopback address. Dead-process receipts are removed as part of the read.
- list_
profiles - List every profile supercode can see, optionally restricted to one
harness. Rows are ordered by harness (as in
PROFILE_HARNESSES) then by name. - list_
routes - List routes, optionally for one harness and/or one target.
- list_
runs - Read every fire the query selects.
- list_
skills - List every installed skill package the query selects.
- list_
triggers - List inbound triggers, optionally for one harness.
- lists_
approvals - Whether supercode can list approvals for this harness id at all.
- live_
lease - The lease of a daemon that is actually alive right now.
- load_
session - Load one durable locator through the canonical SDK catalog owner.
- load_
session_ path - Load an explicit transcript/store path through the SDK import boundary. An OpenCode selector is accepted only for its SQLite store.
- lock_
path - The lease path for one home.
- mark_
tool_ error - Stamp a tool-result message as a structured error.
- mark_
tool_ outcome_ unknown - Stamp a tool-result message as having no structurally known outcome.
- measure_
fidelity - Measure an export/reload cell without applying a regression floor.
- message_
claude_ peer - Resolve
session_idin the registry and delivertextinto it. - messages_
equal - Compare semantic message fields shared by the supported harnesses.
- messages_
equal_ multimodal - Compare semantics plus multimodal parts and tool names.
- model_
context_ limit - Look up a model’s context-window size by its full provider slug.
- mutate
- Perform one mutation: translate to the harness’s own verb, run it, then re-read the row through the ORCH-7 loader.
- mutate_
skill - Perform one mutation through the harness’s own door, then re-read the row.
- netns_
available - Whether an unprivileged, self-contained network namespace cut-off is
available on THIS process’s kernel — a real probe, but one that (unlike
landlock_available) genuinely can’t be done risk-free in the calling process itself (unshare(2)acts on the CALLING process/thread, so probing it directly would isolate supercode’s own network, not just check availability). Instead this forks a disposable, single-purpose child that does nothing but attempt the unshare and immediately_exit()with the result — never touches the allocator, locks, or any other state the parent might hold mid-fork (the standard safe shape for a post-fork child that never execs), so it carries none ofpre_exec’s usual multi-threaded-fork hazards. Cached for the process lifetime. - orchestrator_
profile_ dirs - Every profile folder under an orchestrator home, in listing order: the
root (the implicit
defaultprofile) then eachprofiles/<name>/. - plan_
reply - Translate one caller’s choice into the token and envelope a request’s own door accepts.
- project_
root_ for - BP-9 (§3.1
core.project_root_markers, catalog:232 “Project-root detection markers”, cx§6, oc§6): the project root forcwd— the NEAREST ancestor (starting atcwditself) that directly contains any entry named bymarkers.Nonewhen no ancestor carries a marker, or whenmarkersis empty (an empty marker list is an explicit “don’t do root detection”, not an invitation to walk to/). - read_
claude_ peer_ registry - Read every LIVE session from a Claude registry directory.
- read_
claude_ peer_ settings - Inspect only the user-level inbound setting. The report deliberately does not claim to be Claude’s effective value because managed, project, and command-line settings can have higher precedence in a particular target.
- read_
lease - Read the lease, whether or not its process is still alive.
- register_
live_ runtime - Register an authenticated loopback runtime and return its opaque endpoint.
- register_
live_ runtime_ with_ metadata - Register a runtime with the static fields used by list/describe output.
- replay_
eligible - The replayable subsequence of a canonical transcript.
- resolve_
live_ runtime - Resolve an opaque endpoint and verify that it belongs to
expected. - resume_
agent - Resume canonical history inside a fresh SDK-owned emulation component.
- search_
memory - Search the same documents
show_memoryreports, line by line. - service_
status - Ask the platform’s service manager about the orchestrator unit.
- service_
unit - Render the per-platform service unit for one home.
- shell_
sandbox_ unenforceable - True when the requested sandbox policy cannot be enforced for shell
subprocesses: a confining policy, a platform without an OS sandbox
primitive wired up (only macOS/seatbelt is, via
sandbox-exec), and at least one shell tool ("bash"or"shell") enabled. - show_
memory - Read the memory documents the query selects.
- show_
model_ input - BP-5 (catalog D2 “Prompt-input debugging”): render the exact model-visible
input
promptwould produce, as JSON, without sending anything. - skill_
roots - Every
(scope, root)a harness’s own loader would consult, restricted to the roots that exist right now. - socket_
path - The daemon socket path for one home.
- submit_
agent - Submit one text turn through the SDK-owned emulation loop.
- submit_
agent_ with_ images - Submit one multimodal turn through the SDK-owned emulation loop.
- supports_
job_ control - Whether
harnesscan have its scheduled jobs mutated at all. - supports_
jobs - Whether
harnesshas a scheduled-job concept. - supports_
memory - Whether supercode reads a memory store for this harness.
- supports_
profile_ control - Whether
harnesscan have its profiles mutated at all. - supports_
runs - Whether
harnesskeeps a run store. - supports_
session_ control - Whether
harnesspublishes a door for at least one conversation verb. - supports_
skill_ control - Whether
harnesshas any skills door supercode can drive. - tool_
outcome - Return the canonical structural outcome for a tool-result message.
- uninstall_
service - Stop and unregister the unit, and remove the rendered file
setupwrote. - update_
claude_ peer_ settings - Set or reset Claude Code’s user-level inbound policy.
expected_revisionprevents an explicit UI action from overwriting settings inspected before another process changed the file. - writable_
skill_ roots - The roots supercode may WRITE a skill package into, in the harness’s own
precedence order — the same table
skill_rootsreads, narrowed to the two scopes a client may address and NOT filtered by existence (an install creates the root the harness’s loader would then read). - write_
claude_ peer_ settings - Explicitly update Claude Code’s user-level inbound policy while preserving every unrelated setting. The write is atomic, refuses symlinks, and aborts when it observes an edit between its initial read and commit.
- write_
lease - Write the lease for a running daemon.
- write_
unit - Write a rendered unit under
<home>/service/.
Type Aliases§
- Event
Sink - A sink for
AgentEvents. - Lifecycle
Hook - A lifecycle observer: receives every
LifecycleEvent(observational). - Result
- Result alias used throughout the crate.
- Stop
Gate Hook - A stop-gate hook: receives the would-be-final assistant message; returns
Some(reason)to veto termination and continue the loop (the reason is injected as a new user message), orNoneto allow the stop. SeeConfig::stop_gate.