API contracts ​
What the orchestrator says to the outside, one page per contract. The event log is the source of truth; every page below is a view of it or of a decision about it (../architecture.md).
Start with extensions.md for the A2A extensions, chat-api.yaml for the resource API and agui.md for the AG-UI binding; the icons are the legend under "Status icons" below.
Every contract page: what it is, and its status
| Page | What it is | Status |
|---|---|---|
extensions.md | Start here for the extensions: every A2A extension this system defines in one table (URI, status, who defines and who uses it, what it is for), how they all work, and what a new page holds | Index of the pages below; the status of each is its own |
chat-api.yaml | OpenAPI 3.1: the resource API (agents, threads, export, cancel, health) and the AG-UI operations, in 13 tags (one per operation) with examples for the main bodies | ๐งช experimental ยท Built |
agui.md | The AG-UI 1.0 binding: run, connect and capabilities, the log-to-AG-UI mapping, the vymalo.* schemas, A2UI | โ built ยท Built |
webhooks.md | CI results by webhook: the generic signed shape and the GitHub adapter | ๐งช experimental ยท Built |
ui-catalog-v1.md | The web's component catalog, sent to agents (A2A extension ui-catalog/v1) | โ retired ยท Contract accepted; the orchestrator's handshake and the refetch (get_ui_catalog on the thread tools) are built. Retired by ui-catalog-v2.md at the A2UI v1.0 cutover; the contract of what is built until then |
ui-catalog-v2.md | The same catalog under A2UI v1.0 (A2A extension ui-catalog/v2): the document {catalogId, protocolVersion, components}, catalog 9 whole, the digest vector, the card and a2uiRendererCapabilities["1.0"], no surface without capabilities, the five members of an action, surfaces from before the cutover (ADR 0075) | โ
built ยท Contract written 2026-11-19 (slice C0 of epic #380); built 2026-11-20 (ADR 0075), and v1 is no longer detected; dev/choices-e2e.sh runs it against the pinned coder image (verified 2026-11-27 against extensions.md and dev/choices-e2e.sh) |
thread-tools-v1.md | A per-thread MCP endpoint for agents, with the HMAC token that opens it (A2A extension thread-tools/v1): the UI catalog, the answer announcement, the attached servers and their relayed tools, and ask_agent | ๐งช experimental ยท Contract accepted; built (the token, the endpoint, get_ui_catalog, turn_output and the grant in the A2A message). Built 2026-10-02: attached and the relay (_meta reportsStep and timeoutSecs, the step of each call). Built 2026-10-03 (PR-21, #132): ask_agent with its limits (ADR 0024, ADR 0026) |
signed-tool-requests-v1.md | How the orchestrator signs its requests to a tool server, in place of a bearer: one header (Tool-Request-Claims) on every HTTP request holding a COSE_Sign1 claim object (Ed25519, the cratestack-cose format) that binds the method, the path, the SHA-256 of the body, the thread and its owner; what a tool server must check, replay, clock skew, key rotation with two pinned keys, a worked example (ADR 0080). Not an A2A extension: an agent never sees it | ๐งช experimental ยท Contract proposed 2026-11-02; the orchestrator's side is built (proven on mocks and against the real cratestack-cose 0.17.2); no tool server verifies it yet |
uploads-v1.md | A presigned PUT for a file too large for the message, a thread tool request_upload, and a reference handed back (A2A extension uploads/v1); the downloads' redirect to a public files host is ADR 0058's amendment | โ ๏ธ partial ยท Contract accepted as a design 2026-10-11 at the owner's words; the orchestrator's side is built (6a, 2026-10-14) against mocks (the tool, the card, the ingest, the S3 store's presigned PUT); the downloads' redirect (6b) is built too, on the orchestrator's side and off by default; the chart's public files host, the web and adam-rs's client are not |
model-injector.md | The internal model path's header contract, beside the public route: who the injector is (Agent Router + Authorino, the calling pod identified by its service-account token through kubernetesTokenReview), what it checks before a model call (a run id, the run's live lease fetched with the injector's own token, a lease with a token and an account id, and the person's balance read from the ledger โ never a debit), the refusals (401/403, 402 for a spent or unknown balance, no request at the model endpoint), that a client-sent Authorization, x-account-id or x-budget-remaining is replaced and never merged, and the honest limits (the ledger settles spend; the injector can only refuse, and a cached balance lets a person overshoot by what they spend inside its TTL; the account id is the person's UserId, ADR 0065; the run id is a capability) | ๐งช experimental ยท Built in the chart, off by default; proven in kind (dev/agent-router-spike/), 2026-11-24/25 |
model-relay-v1.md | An OpenAI-compatible model endpoint per thread on the orchestrator: a thread token, POST {url}/v1/chat/completions and GET {url}/v1/models, forwarded with the orchestrator's own key, usage per call, a token budget, the person's model pick, SSE passed through, no model key in A2A (A2A extension model-relay/v1, ADR 0063) | ๐ง planned ยท Contract proposed 2026-10-11 at the owner's request; nothing is built |
network-tier-v1.md | How much network what the agent runs may reach, chosen by the person for each message: offline, allow-list or open (A2A extension network-tier/v1): the card, the activation, the one metadata member, the agent's duties, why nothing is passed to its children, the role cap, adam's egress proxy as a sketch (ADR 0062) | ๐ง planned ยท Contract proposed 2026-10-11 at the owner's request; nothing is built |
steps-v1.md | Nested steps: an agent's tool calls and its sub-agents' work reported as a tree (A2A extension steps/v1) | โ
built ยท Contract accepted; built (the agent_step event and its coalescing, the AG-UI subagents and vymalo.step activities, the adapter), apart from the web's tree. Revised 2026-10-02: a step may carry input and output, cut, redacted and budgeted (ADR 0030); built in the orchestrator, drawn by the web and sent by adam-rs |
steer-v1.md | A message to a task that is running, read at the agent's next step (A2A extension steer/v1): the card, the activation, the message, the refusals (ADR 0036) | โ built ยท Contract accepted 2026-10-02; built on the orchestrator's side (PR-13) and in adam-rs (#75, pinned) |
mentions-v1.md | Agents mentioned in a message as structured references (id, label, UTF-16 offsets), how they are checked and what the addressed agent receives (A2A extension mentions/v1) | โ
built ยท Contract accepted 2026-10-02; built 2026-10-02 (MVP slice 10, orchestrator side: the checks, the event, the metadata to an agent that lists it, the capabilities key, the projection). ask_agent and so coordinate built 2026-10-03 (PR-21, #132), the composer in the web 2026-10-03 (#129) |
message-text-v1.md | What the text of an agent's answer may contain and how any client draws it: CommonMark and GFM, raw HTML never rendered, links and images, fenced code with an optional language (unknown ones plain), display math between $$ lines (single $ is a price), error and size rules | Contract written 2026-11-14 at the owner's request, from what the web draws; no second client yet |
thread-search-v1.md | Searching a person's own threads, for any client: what a word is and how it is folded, how a query is read, when a document matches, what is searched, the snippet and its UTF-16 offsets, the order and the refusals, with vectors (examples/thread-search/) that the Rust core and the web's mock server both pass (ADR 0068) | ๐งช experimental ยท Contract written 2026-11-15; built (slice 7a, the orchestrator's POST /api/search/threads, and slice 7b, the web's box, 2026-11-15; ADR 0068, proposed); proven on mocks, and dev/search-e2e.sh passed in CI's coder-e2e job on main (run 45959707562, 2026-11-27) against the stack's mock agent mock-coder, not the pinned real agent image (verified 2026-11-27 against orchestrator/crates/api/src/search.rs, dev/search-e2e.sh and that run) |
prompts-v1.md | A person's prompt library, for any client: saved prompts with {{variables}} that are questions of the UI catalog, who sees a shared prompt (a role audience, no administrator exception, the author never named), what an answer is and the exact text a filled prompt becomes, the order of errors, with vectors (examples/prompts/) that the Rust core and the web's mock server both pass (ADR 0070) | โ ๏ธ partial ยท Contract proposed 2026-11-15; built in the orchestrator and the mock, no web UI |
projects-v1.md | A project, for any client (proposed, nothing built): a workspace's repositories with their default branch and worktree switch, instructions read before the repositories' own, members, an access-tier ceiling and default, a default agent and model servers; a fixed home (cloud or local) and workspace; a chat's project fixed at its first message; what a chat is run with; vectors in examples/projects/ (ADR 0093) | ๐ง planned ยท Proposed 2026-11-24 (ADR 0093); nothing is built (verified 2026-11-27: no projects route in chat-api.yaml and no projectId in orchestrator/ or web/src) |
teams-v1.md | A person's team presets: saved teams of two to eight members, each an agent the person may use, who sees a preset (its owner only), the bounds and the order of errors (ADR 0074) | โ ๏ธ partial ยท Contract written 2026-11-24; built in the orchestrator, no web UI |
attachments.md | A person's file sent from the browser in the same origin: POST /api/threads/{threadId}/attachments, raw bytes up to the deployment's artifacts.maxFileBytes (10 MiB by default), kept in the artifact store by content hash, read back through the artifact route by the thread's owner alone; the refusals and the client recipe (ADR 0067, slice 12 and its open question 9) | โ ๏ธ partial ยท Contract written 2026-11-24; the route is built on the recommendation of question 9 (the owner has not answered it); no web control and no message reference yet |
notifications-v1.md | Push notifications of a person's runs, for any client: the kinds, what a push carries on each channel (never a word of the thread), the device and settings routes, presence on the connect stream, the client recipe (ADR 0077) | ๐ง planned ยท Contract proposed 2026-11-19; nothing is built |
memory-v1.md | A person's memory: short notes of at most 1 KiB, off until the person turns it on, a switch per agent, and a note saved while it is on is stored at once โ there is no approval step and no pending note; reached only through three thread-tools/v1 tools (memory_read, memory_save, memory_forget), never put into a prompt, erased with the account, with vectors (examples/memory/) that the Rust core and the web's mock server both pass (ADR 0091) | ๐ง planned ยท Contract accepted 2026-11-24 on the owner's answer to the memory epic's questions; nothing is built โ slice M1 is the person's own page and settings, slice M2 the agent tools |
thread-markdown-v1.md | A thread as one Markdown file, from the data of Export JSON and nothing else: front matter, a heading for each speaker, messages verbatim, steps counted and never quoted, files by name, interfaces as a placeholder, forms with their answers, forks marked; plus the client recipe of Copy (source text as text/plain) and Quote (a block quote into the composer) | ๐งช experimental ยท Contract written 2026-11-14 (ADR 0067, wave 1 slice 6); built in the web, with golden files; no second client yet |
text-stream-v1.md | An agent's reply streamed as it is written, relayed live and logged once (A2A extension text-stream/v1) | โ built ยท Contract accepted; built on the orchestrator's side (the adapter, the relay between processes, the AG-UI live frames) and in the web (drafts) |
missions-v1.md | A mission: goal, limit, repositories, team, plan the person approves and a definition of done a machine checks; its seven states, routes, events and what it may do (ADR 0095) | ๐ง planned ยท Proposed 2026-11-24, nothing built |
usage-v1.md | The tokens of each model call and a task's totals, attributed to the agent, its sub-agents and the agents it asked (A2A extension usage/v1) | โ
built ยท Contract proposed 2026-10-08 at the owner's request; built on the orchestrator's and the web's side 2026-10-09 (ADR 0056: model_usage, model_usage_total, the AG-UI vymalo.usage and RUN_FINISHED.usage, the ring beside Send), proven on mocks; adam-rs's side merged (09291a6), not pinned here yet. Extended 2026-10-27 with the sandbox member of the totals, the time a run's commands used in a pod (section 5; adam-rs 55bbe9f, its ADR 0043; ADR 0056 amended) |
access-tier-v1.md | What an agent may do on its own, chosen by the person for each message: plan, edits, auto or bypass (A2A extension access-tier/v1): the card, the activation, the one metadata member, the agent's duties, why nothing is passed to its children, the role cap, the web's chip (ADR 0061) | ๐งช experimental ยท Contract proposed 2026-10-11 at the owner's request; built on mocks (the orchestrator and the web, 2026-10-11; no live agent lists it yet) |
child-sessions-v1.md | A helper an agent runs as a session, which a client opens, talks to, stops and closes as a thread of its own (A2A extension child-sessions/v1): the card, the activation, the parent task's events and sessions object, a person's start, the child context, the close (ADR 0072) | ๐งช experimental ยท Contract proposed 2026-11-18 (adam-rs ADR 0045, the owner's decision of 2026-11-14); built on every side: the orchestrator reads the card, activates it and projects the child threads (S1 to S2e), the person's half is S3 and the web S4 (2026-11-20); proven by dev/child-sessions-e2e.sh against mock-sessions, a mock (verified 2026-11-27 against extensions.md and dev/e2e-all.sh) |
commands-v1.md | An agent's own prompt templates, listed on its card and invoked as /name (A2A extension commands/v1): the card entry, activation, the text and metadata forms, the $ARGUMENTS/$1โ$9/$$ expansion with its bounds, what the orchestrator and the web each do (ADR 0079) | ๐งช experimental ยท Contract proposed 2026-11-19 (adam-rs ADR 0044 decision 9); built on every side: the orchestrator reads the card into the capabilities document, adam's side is built and the web's / menu is built (web/src/features/commands, web/src/features/slash); proven on the web's mock server, not against the real coder (verified 2026-11-27 against extensions.md and the page's own status line) |
trusted-components-v1.md | A component the agent names and the client draws (A2A extension trusted-components/v1): the card's components, the activation, the {component, hints} request in an agent Message's metadata and its bounds, the trusted_request event and the vymalo.trustedRequest card, and the receipt that rides in ui_action.context (ADR 0083) | ๐งช experimental ยท Contract proposed 2026-11-21; both halves are built (the card, the event, the card, and the web's interface; McpCredential only), and the orchestrator accepts a receipt that names a trusted card |
locale-v1.md | The interface's language, sent with each message as a hint (A2A extension locale/v1): the BCP 47 tag and what is refused, the card's params {locale}, the activation, the one metadata member, what the orchestrator does with it (nothing is logged, nothing is projected), and the client rule that the agent's own words never fill a high-risk string (ADR 0085) | โ ๏ธ partial ยท Contract proposed 2026-11-22; the orchestrator's side is built (the tag and its checks, the card read, the activation, dev/locale-e2e.sh); no agent lists it yet and the web does not send it yet |
model-pick-v1.md | A model alias the agent offers, picked per thread or message (A2A extension model-pick/v1; effort is adam's reasoning/v1): the card's choices, the metadata member, the forwardedProps keys, message-over-thread, the typed 422 refusals and what is stored (ADR 0086) | โ
built ยท Contract proposed 2026-11-23; both sides are built: the orchestrator's (the card read, the activation, the checks, the typed 422s, the log, the thread default), adam's (since adam-rs 9f90f1e6), the web's chips (web/src/features/pick) and the local stack's proof on the real image (dev/pick-real-e2e.sh) |
agent-mode-v1.md | An agent's mode (build, plan) picked per thread or message (A2A extension agent-mode/v1): the card's modes and default, the metadata member, message-over-thread, the typed 422 mode_not_offered, what is stored, the capabilities document and the unbuilt scenario (ADR 0109) | ๐ง planned ยท Contract proposed 2026-11-27; adam built (adam-rs 2c2b551d), the orchestrator's side not yet |
client-version.md | The minimum application version: the request header X-Client-Version, the setting server.minClientVersion and the problem client_update_required (426) an older application gets | Built; off by default |
windows-v1.md | A view onto something a run produces โ a page it serves, an app it builds โ that a person watches and an agent drives: the Window port on the run's side (open, look, act, close), four thread-tools/v1 built-ins served by the orchestrator, a frame as an artifact (screenshots, not a stream), the URL guard, the sandboxed frame a client may draw, and what a locked phone means (ADR 0092) | ๐ง planned ยท Contract proposed 2026-11-24 (epic #339, slice 1); nothing is built, and a live window onto a dev server waits on a platform-decided ingress path |
history.md | Thread history pages: a finite read of the AG-UI projection over settled chains, from the newest turn back, and a catch-up read (ADR 0059); the operations are getThreadHistory, getSharedThreadHistory and getPublicSharedThreadHistory in chat-api.yaml, this page keeps the rules | Built 2026-10-09, with the carry of the whole-thread readouts; the web opens a thread from it by default (ui.history.windowed) |
config.md | The orchestrator's one YAML configuration file: every key, which environment variable it replaces, which PR builds it; secrets by reference; GET /api/config, the web's public subset (ADR 0034, ADR 0035) | Built (plan 10, S9, 2026-10-02): the file, the loader, --print-config, config.schema.json; GET /api/config with S18 |
examples/ | Golden event transcripts and AG-UI streams that tests pin | Built |
Optional A2A extensions the orchestrator speaks ​
The whole list, with who uses each, is in extensions.md.
Each is optional, in the pattern of ADR 0008: an agent lists it in its card, the orchestrator reads the card on every send (never cached), an agent without it gets plain A2A, and nothing breaks when it is removed. The URIs follow the release-channels extension of another-agentic-platform (docs/extensions/release-channels-v1.md in that repository): https://agents.vymalo.com/a2a/extensions/<name>/v1, decided on the owner's delegation on 2026-10-01. A breaking change is a v2 URI and a new page, not an edit.
The sixteen extensions below are optional, and each has its contract page and the decision that made it.
The sixteen extensions: URI suffix, contract and decision
| Extension | URI suffix | Contract | Decided in |
|---|---|---|---|
| UI catalog | ui-catalog/v1 | ui-catalog-v1.md (accepted; built, the refetch included; retired at the A2UI v1.0 cutover) | ADR 0023 |
| UI catalog v2 | ui-catalog/v2 | ui-catalog-v2.md (written 2026-11-19; built 2026-11-20, ADR 0075) | ADR 0075 |
| Thread tools | thread-tools/v1 | thread-tools-v1.md (accepted; built, ask_agent included, since 2026-10-03 (slice 10); verified 2026-11-27 against orchestrator/crates/surface-thread-tools/src/ask.rs:51, docs/api/thread-tools-v1.md:15 and dev/mentions-e2e.sh) | ADR 0023, 0024, 0026 |
| Uploads | uploads/v1 | uploads-v1.md (accepted as a design 2026-10-11; orchestrator side built 2026-10-14 against mocks) | ADR 0058 |
| Model relay | model-relay/v1 | model-relay-v1.md (proposed 2026-10-11; nothing built) | ADR 0063 |
| Network tier | network-tier/v1 | network-tier-v1.md (proposed 2026-10-11; nothing built) | ADR 0062 |
| Steps | steps/v1 | steps-v1.md (accepted; built, apart from the web's tree) | ADR 0025 |
| Mentions | mentions/v1 | mentions-v1.md (accepted 2026-10-02; built, apart from ask_agent and the composer) | ADR 0026 |
| Steer | steer/v1 | steer-v1.md (accepted 2026-10-02; orchestrator side built in PR-13) | ADR 0036 |
| Text stream | text-stream/v1 | text-stream-v1.md (accepted; built in the orchestrator and the web) | ADR 0027 |
| Usage | usage/v1 | usage-v1.md (proposed 2026-10-08; built in the orchestrator and the web; sandbox added 2026-10-27) | ADR 0056 |
| Access tier | access-tier/v1 | access-tier-v1.md (proposed 2026-10-11; built on mocks: the orchestrator and the web, no live agent yet) | ADR 0061 |
| Child sessions | child-sessions/v1 | child-sessions-v1.md (proposed 2026-11-18; built on every side, proven on mocks: the card, the activation, the child threads and the person's half, and the web's S4) | ADR 0072 |
| Commands | commands/v1 | commands-v1.md (proposed 2026-11-19; built on every side: the card read and the capabilities key, adam's side and the web's / menu, proven on mocks) | ADR 0079 |
| Locale | locale/v1 | locale-v1.md (proposed 2026-11-22; the orchestrator's side is built, no agent lists it yet) | ADR 0085 |
| Trusted components | trusted-components/v1 | trusted-components-v1.md (proposed 2026-11-21; both halves are built โ the card, the request event, the card and the web's interface โ and the orchestrator accepts a receipt that names a trusted card; McpCredential only) | ADR 0083 |
The orchestrator reads the extensions of a live card into one closed set, and the AG-UI capabilities document lists each listed one under custom (see agui.md), so the web can flag an agent that lacks one before the person sends a message that needs it.
CBOR ​
Every JSON body of chat-api.yaml is also offered as application/cbor with the same schema (ADR 0102). Send Content-Type: application/cbor for a request and Accept: application/cbor for an answer; JSON is the default. Errors stay application/problem+json, and the event streams stay text/event-stream.
Status icons ​
One legend for every status table of the documentation (the same table is in the structure file the sites share). The word stays beside the icon, so nothing is carried by the icon alone.
| Icon | Word | Means |
|---|---|---|
| โ | built | every side named is built, and a dev/ scenario ran it against the pinned real agent image (a scripted model is fine) |
| โ ๏ธ | partial | partially: the cell says what is missing |
| โ | not supported | not supported |
| ๐ง | planned | in progress or planned |
| ๐งช | experimental | every side is built, but the halves have met only mocks |
| โ | n/a ยท retired | not applicable, or retired |
| ๐ | needs a role | needs a permission or a role |