This document defines how one component may invoke another component mounted in the same profile. It is an authoring, compile, preparation, and runtime contract; it is not a workflow language and it does not make a profile callable.
Status: compiler, closure preparation, and the first Agent SDK runtime realization are introduced in IR v0.8; current readers require IR v0.9. The compiler accepts
components[].entrypointandllm_steps[].component_calls, validates the materialized graph, and every shipped reader retains the resulting fields. Scoped preparation resolves only the selected root's transitive closure; whole-profile inspection reports selectable entries, internal mounts, dependencies, closure availability, and the target's invocation realization.claude-agent-sdk:localexecutes the deliberately narrow first slice through dispatcher-owned, step-scoped fresh child runs. Codex local supports composedorchestratethrough host-sequenced fresh ephemeral app-server steps with component-owned bindings and explicit Codex-specific admission limits (§10.2). Explicit Vercel/native host extensions emit non-executed plans; ordinary file paths still wall-hit instead of dropping or inlining an edge.
The design has three separate axes:
- authorization — a step declares which mounted components it may call, under local aliases;
- entry eligibility — a mount declares whether a caller may start it directly;
- realization — a target decides whether it can enforce the call with isolated authority.
Keeping them separate preserves the existing model: a profile is a materialized governed scope, a component is a callable behavior, and a caller or session chooses the entry form.
component_calls is an optional list on one llm_steps[] entry:
# components/dashboard/component.yml
id: dashboard
verb: dashboard
type: analytical
realization_kind: skill
llm_steps:
- name: plan_dashboard
tier: strong
prompt_ref: steps/plan_dashboard.md
produces: dashboard_plan
- name: compose_dashboard
tier: strong
prompt_ref: steps/compose_dashboard.md
consumes: [dashboard_plan]
component_calls:
- alias: answer
component: answer_query
required_capabilities:
- llm:strong
guardrails:
- { name: read_only_execution, locked: true }
trigger: { kind: one_shot }
effect: { render_blocks: [], outcome: { kind: none } }The profile mounts both components. A mount may separately opt out of direct entry:
components:
- use: dashboard
- use: answer_query
entrypoint: falseEach call declaration has exactly two fields:
| Field | Contract |
|---|---|
alias |
A step-local name matching [a-z_][a-z0-9_]*. It is unique within that step and is the only callee name exposed to that step at runtime. |
component |
The exact use identity of one component mount in the materialized profile. It is static authoring data; the model cannot supply or rewrite it. |
component_calls is the complete machine-checked allowlist for that step. The step's rendered
prompt_ref decides when, how many times, and with what request to use an authorized
alias. Putting a component id only in prompt prose grants nothing. Conversely, declaring an edge
does not schedule it: a run may take the edge zero, one, or several times, subject to the root
budget.
The runtime exposes only the alias. The request payload contains no component id, mount id, model, tool, capability, or target mechanism, so model output cannot redirect a call.
consumes and produces retain their existing meaning: ordered, named artifacts between steps of
one component invocation. They never name another component, create a component edge, carry a
child transcript, or imply that a child runs.
Component-call ordering, repetition, and choice stay in the caller step's prompt and runtime
interaction. The profile and IR gain no loop, branch, join, fan-out, or scheduling syntax. A
conditional step contributes all of its declared call edges to static validation even when its
when guard may skip the step at runtime.
This is authorization plus a bounded realization, not an exact invocation-count guarantee. The authoring scope boundary defers arbitrary flow syntax and new workflow state while preserving these isolation and admission rules. If a caller requires an exact order/count that its selected runtime cannot enforce, reject that requirement before execution; do not treat the caller prompt or an allowed edge as proof.
The first implementation deliberately supports one mount per component id per materialized
profile. components[].use is both source lookup and mounted identity. Compiling two mounts with
the same use is a loud error; there is no implicit instance number and no "first/last mount wins"
rule.
This constraint is narrower than a general mounted-instance model and keeps every current surface consistent:
component_calls[].componentresolves to exactly one mount;- direct component selection and manifest identity keep using the existing component id/verb;
- an overlay
mountadds one identity and may set itsentrypointand binds; - an overlay
unmountremoves that identity before graph validation; - an overlay bind patch changes only that mount's effective bind values. It cannot retarget a call, change the caller's allowlist, or change entry eligibility.
After the complete overlay is applied, the compiler re-runs uniqueness, alias, target, and graph checks. Removing a mount that a surviving step references is therefore a compile error naming the caller step, alias, and missing mount. An overlay never auto-mounts a referenced component. A callee runs with its own effective binds after overlay application; caller binds are neither inherited nor supplied as overrides.
Supporting repeated mounts later requires a distinct, explicit mounted-instance identity across profiles, overlays, IR, manifests, entries, traces, output naming, and call targets. It cannot be introduced by relaxing the duplicate check.
components[].entrypoint is an optional mount boolean. Its default is true, preserving the
meaning of profiles authored before the field exists.
| Surface | entrypoint: true |
entrypoint: false |
|---|---|---|
| direct component dispatch | eligible | rejected before execution |
caller-declared agent entry |
eligible | rejected before execution |
caller-declared scope inventory/delegation |
advertised and selectable | omitted from the selectable inventory |
| manifest/display | present, marked entry-eligible | present, marked callee-only |
component_calls target |
eligible | eligible |
Entry eligibility is orthogonal to the caller-declared native session entry kind. agent still
pins one entry; scope still starts at the profile scope and lets the driver select among the
advertised entries. Neither entry kind is inferred from call edges, and a callee-only mount does
not create a new entry kind.
Callability also does not imply invisibility. A shared component may remain entrypoint: true and
also be the target of several call edges. Authors use false only when direct entry would be an
invalid product surface, not merely because another component reuses it.
A scoped run prepares the union of the transitive closures of every entry it advertises. A pinned run prepares only the selected entry's closure. A whole-profile manifest reports every mount and each entry's availability/closure, but display preparation is not an executable plan and cannot be passed to a runner without executable preflight.
Compilation constructs a directed graph over mounted identities. For every
llm_steps[].component_calls[] entry it adds caller component -> callee component, including
edges declared on conditional steps.
Compilation loud-fails on:
- a duplicate mount identity;
- a duplicate alias within one step;
- an alias or component value that is empty or syntactically invalid;
- a callee absent from the post-overlay profile;
- a self-edge; or
- any directed cycle.
Cycle diagnostics contain one complete closed path, for example
dashboard -> answer_query -> dashboard. The traversal is deterministic by profile, step, then
declaration order so the same input yields the same diagnostic.
A diamond and shared leaves are valid: A -> B, A -> C, B -> D, C -> D is not a cycle.
Several aliases, including aliases on different steps, may target the same callee. Static edges are
authorization possibilities, not invocation counts, so calling a previously completed callee
again is valid and starts a fresh invocation.
Preparation produces two distinct collections:
entry plans roots that this operation may start
prepared callees immutable mount records addressable only through authorized edges
Reachable callees are never appended to the entry-plan list and never started merely because they were prepared. A mounted component may appear in both collections when it is entry-eligible and also called by another entry, but each invocation still has exactly one parent except for the root.
For a selected entry, preparation follows the complete transitive graph and resolves exactly that closure. Every reachable node must be ready before the root model starts:
- context binding and preconditions;
- effective mount binds;
- every step's tier-to-model/provider binding;
- selected slot variants;
- assets and their integrity/path constraints;
- explicit and implied capabilities;
- guardrail and effect enforcement;
- call eligibility and target support; and
- request/result limits and a root budget ledger.
An unreachable sibling with a missing model, slot, asset, capability, guardrail realization, or context requirement does not block a pinned dispatch. A scope entry resolves the union of all advertised entries' closures because the driver may choose any of them. Whole-profile emitters keep their existing all-profile atomicity, but an executable target that cannot realize any reachable call edge must wall-hit rather than emit a partially working scope.
The prepared registry is immutable for one root run. Every hop resolves its callee from that registry; no runtime source lookup, overlay mutation, auto-mount, or late capability widening is permitted.
The logical invocation boundary transports JSON, not transcripts or runtime objects.
requestis a required, non-empty UTF-8 string.inputis an optional JSON object; absent normalizes to{}.- The caller transcript, hidden reasoning, tool state, artifacts, and environment are not inherited.
Anything the callee needs from the caller must be copied deliberately into
input. - Alias-to-callee binding is host state and is never accepted from this payload.
- The first slice caps the UTF-8 JSON serialization at 65,536 bytes. Oversize requests are rejected before a child starts; they are never truncated.
The callee receives its own compiled prompt/brief, profile context, binds, slots, assets, model, capabilities, and guardrails plus this request. It does not receive the caller's authorities.
A successful call has one of two output kinds:
{
"status": "ok",
"output": {
"kind": "value",
"value": {
"columns": ["month", "net_revenue"],
"rows": [["2026-08", 42000]],
"summary": "Net revenue was 42,000.",
"verified": true,
"definition": { "sql": "...", "source_tables": ["orders"] }
}
},
"provenance": {
"verified": true,
"definition": { "sql": "...", "source_tables": ["orders"] }
}
}kind: value preserves a non-rendering component's terminal JSON value unchanged. This directly
supports the existing tabular terminal shape {columns, rows, summary, verified, definition}
without a component-id special case. When the value is an object with standard verified and/or
definition members, normalization copies them to the outer provenance field while preserving
the original value. The value need not be an object: the Hub answer_batch returns an array
with one such tabular entry (or an {slot_id, status: "unanswerable", reason} entry) per requested
slot, and normalization preserves the array as-is with no outer provenance — per-entry
verified/definition stay on the entries. The canonical answer_query declares effect.render_blocks: [] for precisely
this reason: its verified tabular result is reusable data, while a composing parent owns any final
render contract and artifact.
A component with non-empty effect.render_blocks instead returns:
{
"status": "ok",
"output": {
"kind": "render",
"blocks": [{ "type": "table", "columns": ["month"], "rows": [["2026-08"]] }],
"summary": "One verified panel."
},
"provenance": { "verified": true }
}The child's render envelope is validated generically against the callee's own
effect.render_blocks. Per-block definition stays on its block. The child does not run a
renderer or write an artifact; the validated envelope becomes a value in the caller run. Only the
root invocation may choose a render flavor and persist the final result.
The first slice caps the complete normalized result at 1,048,576 UTF-8 JSON bytes. A larger or
non-conforming value becomes invalid_result; it is never partially returned or truncated.
Refusal is a valid, non-success result and is never converted into prose success:
{ "status": "refused", "code": "callee_refused", "message": "The request is outside the bound context." }Execution/contract failure uses a stable envelope:
{ "status": "error", "code": "transient_transport", "message": "The child run did not complete.", "retryable": true }The initial cross-target code vocabulary is:
| Code | Retryable | Meaning |
|---|---|---|
unauthorized_call |
no | the active step has no prepared edge for the alias |
unsupported_callee |
no | callee shape or target realization is unavailable |
invalid_request |
no | malformed or oversize request |
invalid_result |
no | malformed, oversize, or contract-invalid child output |
budget_exhausted |
no | admission would exceed a root limit |
cancelled |
no | root or ancestor cancellation won the completion race |
transient_transport |
yes | an admitted child failed before producing a result and retry is safe |
callee_failed |
no | the child completed unsuccessfully for a non-transient reason |
Messages are bounded, sanitized explanations. Provider errors, paths, prompts, stack traces, tool arguments/results, SQL, secrets, and raw child output never cross this boundary.
A host that executes a component call may run its own post-processing step on the normalized
callee result after the child invocation completes and before the alias resolves in the
caller step. This clarifies existing behavior rather than adding a mechanism: the step is host
code at the boundary §11 already assigns payload redaction to, and it changes nothing about the
emitted IR, so it requires no warble_ir_version change and no new IR field.
The step may only narrow what the caller receives:
- refuse — replace a success with a §6.3 refusal (
status: refused), or replace one entry of an array value with a per-entry refusal such as{slot_id, status: "refused", reason_category}; - redact — replace a value with a sanitized value that carries strictly less information;
- strip — remove members such as
definition(query text, source tables) or rows beyond a policy limit.
It may never widen: it cannot add authority, tools, or data the callee did not return, cannot turn
a refusal or error into a success, cannot rewrite a value into a different value, and cannot
reorder or invent array entries. Whatever it removes is still available to the host itself — a
host may attach the stripped provenance to the root's rendered artifact directly from the child
run, as §6.2 already permits, without the caller model ever seeing it. The host owns the policy;
Warble neither defines nor evaluates it, and a component's prompts must not depend on it existing.
A host that runs such a step remains subject to §11: the trace records the call's status and
byte counts as delivered to the caller, and no payload, reason text, or policy input enters it.
effect.outcome.kind: none alone is not evidence that a component is side-effect free. A callee is
eligible only when the target can enforce every row below:
| Facet | First-slice eligible shape | Everything else |
|---|---|---|
| trigger | one_shot |
scheduled / event loud-fail unsupported_callee |
| realization | skill |
tool / gated-tool loud-fail |
| outcome | none |
assertion / mutation / dispatch loud-fail |
| data authority | read-only, under read_only_execution |
raw/unrestricted or write authority loud-fail |
| writes | no artifact_write, data_write, context_write, or setup_execution |
loud-fail before the root model starts |
| render | structured render_blocks may return as data; no prompt-render or child renderer |
any child-owned render/write path loud-fails |
| actions/transport | no borrowed action, external transport, approval channel, scheduler, or event bus | loud-fail |
| nested calls | allowed only through the same prepared DAG and ledger | ad hoc dispatch or external profile call loud-fails |
Targets may support a smaller subset and wall-hit. They may not infer safety from a component name, special-case a known family, silently inline a prompt, drop an edge, or claim success while ignoring the call.
A non-empty component_calls list implies the target-neutral capability
component_invocation. The compiler adds it to the component's and declaring step's effective
capability requirements even when the step authors a narrower capabilities list. Authors need
not duplicate it; an explicit duplicate is de-duplicated and grants nothing extra. A profile
capability_ceiling must include the implied capability or compilation fails. Its target-profile
contract is:
provided_by: runtime;- criticality
required; - resolution
nativeorrealize-viaonly when the target supplies the trusted handler described here; and - no
degradeoutcome.
Each callee is resolved independently with its own capabilities and enforcement floor. Its tools, model, guardrails, context, slots, assets, and authority are never unioned into the caller. The caller step receives only its own resolved surfaces plus its declared call aliases.
Isolation is checked against effective authority, not capability-string absence. A target whose
genbi_build and sql_execution:read_only both map to the same unrestricted command surface has
not removed SQL authority by deleting one string. Target preparation must classify the authority
of each realization and either provide a genuinely non-SQL projection for the caller or wall-hit.
The required negative conformance test attempts direct SQL from the caller through every granted
surface, including alternate capability realizations, and proves denial while the independently
prepared callee can execute its authorized read-only query. Inspecting required_capabilities
alone is not evidence.
Every runtime call is authorized by the tuple:
(root run id, trusted active step id, declared alias) -> prepared callee mount
The active step id comes from the dispatcher's immutable execution plan. A model-supplied step name, prompt text, request field, tool argument, transcript marker, or child claim is untrusted and cannot select the allowlist. Execution modes that cannot bind an invocation surface to a trusted active step must reject the composed entry during preflight.
The first Agent SDK realization is dispatcher-owned. Each logical component call starts a fresh,
non-resumed child query() from the prepared callee record. It does not use nested vendor
Task/Subagent delegation, read a child transcript file, resume the parent session, or add the
callee's tools to the caller. Child execution is separated from the existing root
render/persistence path: it creates no result file, trace file, output directory, or rendered
artifact of its own.
Before every hop, including object IR supplied by a library caller, the runtime rechecks:
- the IR version and complete call structure were validated for executable preparation;
- the active step id belongs to the running prepared node;
- the alias maps to an immutable edge from that exact step;
component_invocationis present in the effective requirement and realized by this target;- the callee is in the prepared closure; and
- the callee is not already in the active ancestry stack.
The ancestry check protects against forged or corrupted IR even though valid compiler output is a DAG. Popping a completed child permits a later fresh call to the same component. Shared leaves in a diamond are likewise valid. An unauthorized alias or forged step identity is a non-retryable security failure, not a request the model may repair by choosing another component id.
One root dispatch owns one ledger shared by the entry and all descendants. The first slice uses these deterministic defaults unless the host supplies a lower value:
| Limit | Default | Accounting rule |
|---|---|---|
| component-call depth | 8 | root is depth 0; admission of depth 9 is refused |
| admitted component-call attempts | 32 | every admitted initial call and retry counts, including failure/cancellation |
| in-flight component calls | 1 | later requests wait in runtime event order; no parallel child execution |
| request bytes | 65,536 | measured before admission as UTF-8 serialized JSON |
| normalized result bytes | 1,048,576 | measured before delivery to the caller |
| total model turns | 40 | root and every child assistant turn share one counter |
| model turns per child attempt | 12 | admission reserves min(12, remaining root turns) for the fresh child |
Admission is atomic: validate authorization, reserve one call attempt and the child turn allowance, then start the child. A queued call cancelled before admission consumes no call/turn reservation. Once admitted, an attempt remains charged even if it fails, is cancelled, or completes after cancellation. The runtime returns unused reserved turns when a child finishes; it never returns the attempt count.
An active parent Agent SDK query also reserves its maximum permitted turns before any synchronous
component tool handler may admit a descendant. Descendant reservations therefore come only from the
unreserved root balance; parent and child SDK limits can never each promise the same remaining turns.
The runtime preserves the existing dispatch/CLI maxTurns value and a composition-specific override
may only lower it.
A caller may retry only transient_transport, and each retry is a fresh child run subject to the
same edge, ancestry, and ledger checks. Refusal, authorization, policy, budget, cancellation, and
invalid-output errors are never retryable. Repair steps inside the callee are part of that child
invocation: their model turns and usage count against the root, but they do not become a caller
retry.
unsupported_callee is an executable-preflight failure for valid IR: the root model never starts.
unauthorized_call (including a forged active-step identity or tampered edge) terminates the root
as a security failure and is emitted only to the host trace/error surface, not returned as an
ordinary value for the model to work around. The remaining refusal/error envelopes may be returned
to the authorized caller step; they never enter consumes/produces as a successful value.
Provider-reported tokens and monetary cost are charged to root telemetry for every observed call, including failed and late calls. Warble does not call a dollar limit "hard" unless the target can reserve an enforceable worst-case before admission; a target asked for such a cap must either make that reservation or reject composition as unsupported. A completed provider call may never be hidden from usage merely because its result was discarded.
The current Agent SDK target rejects maxCostUsd during composed preflight. The SDK's
maxBudgetUsd threshold is evaluated only after provider spend and is therefore not represented as
the hard dollar cap defined by this contract.
Root or ancestor cancellation closes admission immediately and propagates to every active child.
The cancellation timestamp is the winner boundary: a completion observed after it is recorded as
late_discarded, never delivered to the caller, rendered, or persisted. Usage already incurred is
still charged. The root writes no final artifact after cancellation; its single aggregate trace may
record the sanitized cancellation events.
Codex local counts component-call attempts and step starts, not assistant/model turns.
An app-server turn is a user request plus its entire agent/tool loop; the adapter cannot reserve
or enforce the number of underlying model iterations. Its composed runtime therefore rejects
maxTurns, maxModelTurns, and maxCostUsd requests during preparation. The model-turn defaults
and reservations in §10 apply to the Agent SDK realization, not to Codex local.
Codex local defaults are depth 8, 32 admitted component-call attempts, 40 total step starts, 12 step starts per child invocation, and a 120,000 ms whole-root deadline. Hosts may lower these limits, never raise them. Root step starts and every descendant step start share the total counter; a child's own step limit counts its steps, while descendant attempts carry their own per-child limits. A step is charged synchronously before spawning its process, including failed starts. Attempts remain charged after failure or cancellation. Sibling calls are queued in event order; a parent waits while a child runs, including nested descendants. There is no concurrent sibling execution. Request/result limits remain 65,536 and 1,048,576 UTF-8 JSON bytes.
Deadline or external cancellation closes admission, terminates all live process trees and discards late results. The aggregate reports observed app-server token usage, including failed child usage when available. Token telemetry is observational; it is not an enforceable model-turn/dollar cap. The adapter does not invent missing monetary or model-iteration telemetry.
The first Codex slice is available only through composed orchestrate preparation. Each component
has explicit model, MCP/step-tool and host-context bindings. Every step runs in a fresh ephemeral
app-server thread/process with the exact MCP allowlist and only its declared dynamic aliases.
Step identity is fixed by the host plan and callback thread/turn identity; model payloads cannot
select a component or step. Composed runs cannot resume a thread or create provenance files.
Ordinary exec, turn and unconfigured orchestration retain preflight refusal for call edges.
Reachable non-empty context preconditions require the component binding's context to contain a
prepared-context JSON document. After structural closure validation, preparation runs the host
selected warble check-context verifier against that document and the complete resolved predicates
and arguments. It reuses the core compiler evaluator and never trusts precondition_result. Every
check must pass before any model or MCP process starts. Empty or omitted preconditions keep the
ordinary text-context path; malformed declarations fail closed. Unsupported reachable slots, assets,
borrowed actions, write authority or render shapes still fail before verification starts.
The verifier protocol is version 1: stdin carries {version, context, preconditions} and success
returns {version: 1, status: "pass", request_sha256} bound to the exact stdin bytes. Input is bounded
to 2 MiB; the adapter bounds stdout to 64 KiB and execution to 10 seconds per snapshot. Missing/old
verifiers, protocol/digest mismatch, malformed snapshots, unknown predicates, malformed arguments, false and
unanswerable conditions all refuse preparation with a sanitized error. model_has_timestamp accepts
an optional resolved model name; metric_additive accepts an optional resolved metric
name. Additional JSON arguments retain the compiler representation and evaluation semantics.
Malformed named selectors and unresolved top-level $param: argument references are refused.
The normalized verified snapshot becomes the component's immutable prompt context, so it cannot be replaced by unverified text after evaluation. There is no pass cache or IR-carried authority token. The digest correlates the verifier response; it is not a signature or a claim about the truth of host-supplied data. Hosts own the verifier binary, the factual snapshot, its freshness and its mapping to the component's MCP binding. Reprepare with a new snapshot when that source changes; the verifier performs no live database or domain-format I/O. Child render values use positional scalar/null rows and are validated without creating an artifact; only the host may persist the root result.
warble dispatch IR --target vercel --provider PROVIDER --host-contract HOST --out DIR
can emit a non-executed composition plan for a compatible host. vercel:headless and
vercel:interactive share this protocol. Ordinary dispatch without the host contract keeps the
composition wall-hit; native file targets reject this flag. No model, MCP process, context
verifier or vendor configuration is started or installed by this emitter.
The new vercel_bundle_version: "0.2" is intentionally incompatible with legacy 0.1 readers:
it has entries and components, and no agents array. A host must check the exact version and
protocol before interpreting any executable field. Unknown protocol versions or semantics must
be rejected, never projected onto the old agent-level tool loop.
The closed host declaration has these required fields:
{
"protocol": "warble-component-host/1",
"bundle_version": "0.2",
"features": [
"immutable_step_authority", "isolated_component_tools", "fresh_child_context",
"verified_context_preconditions", "component_owned_bindings", "exact_step_tiers",
"exact_dataflow", "bounded_repair", "shared_admission_ledger",
"deadline_and_descendant_cancellation", "normalized_child_results",
"root_only_persistence", "redacted_usage_trace"
],
"tool_authority": {
"query": {"source": "mcp:sample/query", "capabilities": ["sql_execution:read_only"]},
"semantic_introspect": {"source": "mcp:sample/semantic_introspect", "capabilities": ["semantic_introspection"]}
},
"guardrails": [
"read_only_execution", "row_limit", "statement_timeout", "deterministic_gate",
"artifact_write", "drill_depth_limit", "additivity_guard"
]
}features must match the protocol's ordered feature list exactly. The other string lists contain
unique nonempty values. Unknown fields and duplicate JSON keys reject before output. Tool
authority is keyed by the exact emitted tool name, with its source also matched, and must describe its complete
effective authority, not just the capability being requested. Every granted tool's authority must
fit inside the active step's effective capability set. Missing callable bindings, ambiguous tool
names and collisions with call aliases are errors. artifact_write is a host-only root terminal
action; it never becomes a model tool. A host may only advertise guardrails it actually implements
at the exact emitted scopes/thresholds, including unlocked authored guardrails.
This declaration is an implementation claim, not attestation or authorization. A host that
lies about a broad shell or SQL tool cannot acquire a safety guarantee by naming it narrowly.
Runtime tests must still prove effective isolation and context freshness. The emitted
execution_status: "not_executed" is mandatory; successful dispatch is not runtime readiness.
The bundle retains:
entries: independently selectable mount IDs. Internal reachable mounts appear only in the registry, never in this list. A mount may also be both an eligible root and a reachable callee.components[id].declaration: the complete selected IR node, including context bindings, preconditions, exact call edges, per-step restrictions, exclusive products, render schemas, authored description, framing and compiled parameter bindings. This is the authority source.components[id].steps: derived effective capability/tool projections and bounded repair realization, matched to declaration steps by exact identity. Hosts must validate agreement and must never let a model choose a step, child, capability set or execution handle.- Independent capability resolution reports, original profile context/system prompt, full host
declaration, shared admission limits, and canonical input/bundle SHA256 digests. Digests use
recursively sorted JSON object keys with array order retained and no insignificant whitespace;
bundle_sha256omits itself. They detect drift, not malicious substitution or authorization.
The initial subset is analytical, one-shot skills with outcome none, independent ordered steps
and adjacent on_failure repair. Repair consumes its predecessor's failure product and declares
a distinct conditional product; it runs at most once and failure after repair aborts. Skipped
repair produces nothing. Future or conditional-only input products are refused. Each step's
capabilities narrow its component; call edges require effective component_invocation.
Reachable callees cannot have borrowed actions, artifact/write authority or runtime assets.
Profile/reachable slots and assets, source parameters, unknown executable fields, other anatomy
and unsupported guardrail shapes fail closed. Literal compiled parameter bindings are retained.
The inventory and each component's step list are bounded to 128; input and compact bundle are
bounded to 4 MiB. A caller's hidden/unreachable internal mount is not an executable entry.
Before any model/tool starts, the host selects an advertised entry and prepares its immutable
reachable closure. Each component receives its own model/context/tool binding. The host obtains
fresh prepared context from the factual source matching that component's tools and verifies all
resolved preconditions (for example via warble check-context); IR precondition_result is never
runtime evidence. It revalidates source generation/revision before operations, and invalidation
closes admission. Root selection does not confer child/step authority. Only a tool closure bound
to the host's current immutable step can admit a child call through that step's declared alias.
Host protocol1 adopts the enforceable step-admission limits of §10.2: depth8, attempts32, total
step starts40, child step starts12, one in-flight sibling, request65,536 bytes, result1,048,576
bytes and root deadline120,000ms. Hosts may lower them. They must atomically charge admission,
retain failed/cancelled charges, cancel descendants and discard late results while accounting for
observed usage. model_turn_hard_limit and monetary_hard_limit are false: step counters do not
bound a vendor's inner model loop. A requested unsupported hard cap must reject preparation.
Fresh children receive only declared inputs and their own context/tools, never caller history or
ambient credentials. Results use §6's normalized envelopes and root-only persistence rules.
The emitter verifies declarations and structural/tool projections; implementing and certifying
this runtime remains the consumer's responsibility. Existing 0.1 consumers remain unsupported
for composition even when they can display the new file.
Only the root owns persistence. Its aggregate in-memory trace may record, for each attempt:
call_id, parent_call_id, caller_mount, trusted_step_id, alias, callee_mount,
attempt, depth, admitted_at, completed_at, status, request_bytes, result_bytes,
model_turns, token/cost telemetry
Request/result payloads, prompts, hidden reasoning, SQL, tool names/arguments/results, provider raw errors, environment values, and secrets are excluded by default. Payload hashes are permitted only after host redaction and must not be presented as reversible identifiers. Debug logging is an explicit host-local option but remains subject to the same secret and provider-error redaction floor. Public errors carry only the stable code and sanitized bounded message from §6.3.
IR v0.8 introduced this authoring and compiled contract atomically across:
- profile/component models and the compiler producer;
- post-overlay validation and goldens;
warble_ir_versionand changelog decision;- every Rust and TypeScript parser/reader, including raw-JSON and typed-object library entries;
- explicit unsupported-target rejection before executable output;
- generated IR schema/reference snapshots;
@warble/ir-specpackage version, constants, declarations, and dispatcher peer ranges; and- every exact-match/min/max version declaration and lockstep test.
No reader may accept v0.8 while dropping entrypoint or component_calls, and no producer may
emit the shape under v0.7.
The current IR 0.9 readers retain this composition contract and add optional context binding; cached 0.8 IR must be recompiled. Current support matrix:
| Target | Current support | Realization | Required behavior when unsupported |
|---|---|---|---|
| Claude Agent SDK | first slice supported | dispatcher-owned, trusted-step-scoped fresh child runs | unsupported callee/provider shapes preflight wall-hit |
| Codex local | composed orchestrate first slice | trusted-step dynamic aliases; fresh ephemeral app-server processes; Codex-specific limits (§10.2) | unconfigured/unsupported transport or callee preflight wall-hit |
| Claude Code ordinary file paths | no composition | no trusted host execution binding | preflight wall-hit; do not inline prompts |
| Codex ordinary interactive discovery | no composition | no trusted host execution binding | preflight wall-hit |
| Claude/Codex interactive with explicit native host | host-owned plan emission only | versioned fixed-root wrappers and component plans; direct-session contract | absent/incompatible host binding or unsupported entry form wall-hits; emitted files do not certify execution |
| Vercel | host-owned plan emission only | explicit host protocol1, bundle0.2 (§10.3); runtime supplied by consumer | absent/incompatible host declaration wall-hits; legacy hosts cannot execute composition |
Structural/display inspection may report an unavailable composed entry, but it must never produce an executable plan that bypasses the wall-hit.
The v0.8 preparation implementation separates root entry plans from an immutable prepared-callee
registry. Capability reports preserve that role boundary, and target-specific display manifests
include the component_invocation outcome (and its via mechanism when one exists). A pinned root
does not inspect an unreachable sibling's model binding, slots, capabilities, assets, or target
handler support. Whole-profile executable emitters start and emit only entrypoint:true mounts;
an internal mount is included only through a supported reachable call edge, never as an independent
artifact.
One target-neutral fixture suite owns the observable contract. At minimum it covers:
- authorized and unauthorized aliases under a trusted active step;
- dynamic component-id injection attempts;
- caller direct-SQL denial through every effective surface and callee read-only SQL success;
- unique mounts, overlay removal, missing targets, conditional edges, complete cycle paths, a diamond, shared leaves, and repeated completed calls;
- pinned-entry closure versus an unreachable sibling with missing model/slot/asset/readiness;
- separation of entry plans and prepared callees;
- tabular value, render blocks, provenance, refusal, invalid/oversize request and result;
- the canonical dashboard's repeated
answer_querycalls, per-component tool isolation, verified value marshalling, invalid-child refusal, and final dashboard-envelope validation; - child no-persistence/no-render behavior;
- retry accounting, depth/call/turn admission, cancellation with late completion, trace fields, and redaction; and
- mutated raw JSON/object IR with missing implied capability or a tampered alias target.
Deterministic conformance proves mechanism and policy; model-backed evaluation separately measures whether a caller chooses useful aliases and produces a useful composed answer.
The first executable proof was a Warble-owned Agent SDK litmus profile. Canonical promotion then
separately enumerated every mount site and shipped target. The promoted Hub
generate_dashboard.compose_layout authorizes exactly one answer -> answer_query edge, calls it
once per planned panel, accepts only normalized verified value results, and owns the sole final
dashboard render envelope. generate_dashboard has no direct SQL or generic build capability;
answer_query retains read-only SQL authority and no render blocks. The Agent SDK executes this
shape with fresh isolated children and root-only persistence/rendering.
The second promoted pair is the Hub report planner: plan_report.plan_layout authorizes exactly
one ask -> answer_batch edge and takes it once with the whole batch of cell questions plus a
report-level preamble in input; answer_batch answers them in one child run and returns the
array value described in §6.2; a host may narrow each entry under §6.4 before the alias resolves;
the host then materialises the verified values into the layout, and plan_report.narrate writes
the summary and per-cell notes over them without holding query authority. Neither planner step
carries a data capability, so the same caller-SQL-denial conformance test covers it. The
deterministic fixture dispatcher/conformance-fixtures/report-composition.json pins every stage's
artifact, and examples/report-agent is the compiled conformance base. Codex local supports the
generic call mechanism through composed orchestrate; this canonical closure also executes when
the answer callee is bound to a prepared context whose mdl_parseable predicate passes the
core verifier (§10.2). Deterministic compiled-profile fixtures cover repeated calls, exact tool
isolation and root render validation. File targets do not realize component calls; Vercel can emit
an explicit host-owned plan but does not supply the runtime. No target may inline
the old query workaround or drop an edge or precondition.
{ "request": "Answer the revenue question needed for the first dashboard panel.", "input": { "question": "What was net revenue last month?", "panel": "net_revenue" } }