Expand description
Host-neutral agent runtime contracts — the L4/L5 boundary a composing host answers.
Concrete process, CLI, RPC, and approval drivers remain private to the composing host. This module owns the contracts that let those drivers be selected and invoked without making the host depend on a particular lifetime or transport implementation:
- identity —
ProviderId: the opaque catalog identifier one runtime provider answers to, never a command, path, endpoint, or account; - capability evidence —
SubagentCapabilities,ReadinessEvidenceandExecutionAdmissionEvidence, reduced byreduce_readinessandreduce_execution_admission: missing evidence is an explicit denial, never an optimistic fallback; - session binding —
NativeResumeIdentityandDurableNativeBinding: adapter-owned opaque bindings with no serialization implementation, so they cannot be projected into wire payloads; - dispatch vocabulary —
SubagentDispatchRequest,RuntimeTransition,RuntimeDispatchReceiptandRuntimeObservation; - ports —
McpCallerIntegration(provider-owned caller registration behind a single-useRegistrationApproval) andSubagentRuntimeAdapter(the target runtime the host selects through its registry), plus the lane-erasedRuntimeDriver/RuntimeDriverRegistry/PersistentTurnRuntimecontracts.
Structs§
- Caller
Registration Plan - Caller
Registration Receipt - Durable
Native Binding - Private durable binding read from the host’s canonical conversation state. It has no serialization implementation and must never enter an Event or MCP receipt.
- Execution
Admission Decision - Execution
Admission Evidence - Canonical facts that decide whether a selected subagent runtime can be
attempted. Conversation readiness is deliberately absent: it is
observational evidence for
probe, not execution permission. - Native
Resume Identity - Adapter-owned native identity. Its fields are intentionally private and it has no serialization implementation, preventing projection into MCP/Event payloads. Only the adapter that resolved it should interpret the opaque binding.
- Provider
Id - Providers supported by the host-owned subagent mesh. The value is an opaque catalog identifier, never a command, path, endpoint, or account.
- Readiness
Decision - Readiness
Evidence - Evidence used by the one readiness reducer. Missing evidence is an explicit denial; callers never receive an optimistic fallback.
- Registration
Approval - Single-use approval bound to one immutable registration digest.
- Runtime
Dispatch Receipt - Runtime
Event Part - Runtime
Observation - Subagent
Capabilities - Explicit capability differences consumed by direct and Graph admission.
- Subagent
Continue Request - Subagent
Dispatch Request
Enums§
- Instruction
Policy - Provider-declared delivery for generated runtime guidance. User Events are never rewritten; this policy is applied only to the ephemeral driver call.
- Runtime
Transition
Traits§
- McpCaller
Integration - Provider-owned caller registration/install/readiness/removal port.
- Persistent
Turn Runtime - Persistent-turn operations shared by desktop reconnect and mobile resume. Conversation state and replay cursors are supplied by the durable store; an implementation may cache them, but the cache is never authoritative.
- Runtime
Driver - Stable identity and capability surface of one runtime driver.
- Runtime
Driver Registry - Read-only driver selection. The composing host owns registration and process lifetime; callers receive no mutable process-global authority.
- Subagent
Runtime Adapter - Provider-owned target runtime port. Application code selects this trait through the registry and contains no provider conditional.
Functions§
- reduce_
execution_ admission - reduce_
readiness - Reduce readiness identically for direct and Graph dispatch.
Type Aliases§
- Adapter
Failure - The failure vocabulary every runtime port reports through: the crate’s
one
AdapterError, under the name this boundary has always carried.