ADR 0012 — AG-UI as the user-facing protocol ​
Status: accepted (2026-09-29). Amended (2026-10-02): the bullet "Authentication stays at the edge" (ADR 0033). Status note (2026-09-29): the run route is built. The "inbox key"
(agui, <threadId>:<messageId>)of this ADR is realised, while there is no inbox table, as the event's per-thread idempotency keyagui:<threadId>:msg:<messageId>(…:run:<runId>for an answer with no message id of its own); the decision stands. Details:api/agui.md. Status note (2026-09-29): the connect stream and the capabilities document are built. The stream is the viewer projection of the log folded from the first event on every connect, written from the cursor (no state in the process, so any replica serves any viewer);?mode=runcloses at the first point where the replay is done and no run is open; a killed replica is covered by an end-to-end test that reconnects to another one withLast-Event-ID. The document declaresmultiAgent.subagentsas a list, as the 1.0 schema types it (the flag of the plan was wrong). Details:api/agui.md. Status note (2026-09-29): the contract carries the AG-UI operations and the deprecation.chat-api.yamlgainsrunAgent,connectThreadandgetAgentCapabilities, whose bodies reference the vendored schema by file, and marks the four legacy operationsdeprecated: true; thechat-apisurface answers them withDeprecation: @1790640000(RFC 9745; the day of this note), on those operations only. NoSunset(removal follows the web, not a date) and noLink(optional in the RFC, and the successor is a URI template). The decision stands. Details:api/agui.md. Status note (2026-09-29): the web runs on AG-UI.@assistant-ui/react-ag-ui0.0.62 and@assistant-ui/react-generative-ui0.0.21 are pinned exactly,@ag-ui/clientis overridden to 1.0.0 (spike S5: the runtime works on it), and the REST interaction path is gone from the web. The decision stands; how the section "The web" was carried out differs in four places, each for a reason found while building it. (1)abortRun()is a truncation, not the cancel endpoint: the runtime calls it on unmount and on thread switches, so navigating away would have cancelled the run; Cancel is a separate call (ThreadAgent.cancel()), the outcome still arrives asRUN_FINISHED{cancelled}. (2) There is no history adapter: reload replays the connect stream through the runtime's own run path, and runs the client did not start are applied through the runtime's public API (thread.startRun,steerAway), so patches 1 (activities dropped on reload) and 2 (live subscription) are not needed, and only thecancelledoutcome is patched; the three gaps are drafted as upstream issues anyway. (3) The connect stream is handed over in whole groups (anid:closes one), so a cut connection cannot leave half a message in the runtime. (4) The browser mints thread ids as UUIDv7, because the resource API lists threads by id. Details:web/README.md,web/patches/UPSTREAM.md. Status note (2026-09-29): the legacy chat API surface is off by default.ORCH_SURFACESdefaults toagui; the resource API and health are still mounted whatever it says, so the web's thread list and Cancel keep working. An operator who still has clients ofcreateThread,postMessage,listEventsorstreamEventssetsORCH_SURFACES=agui,chat-api; without it those routes answer 404 (POST /api/threadsanswers 405: its path is the thread list's). Compose sets nothing and runs on the default, and the dev scripts (dev/coder-e2e.sh,dev/split-e2e.sh,dev/try-thread.sh) drive the orchestrator over AG-UI. This is step 2 of "The legacy interaction endpoints are deprecated by the flag"; step 3 (removal) is not done. The decision stands. A breaking change for operators:feat(orchestrator)!. Status note (2026-09-29): the plan's slices are built, and the documentation describes them. What runs: the wire types and the pure projection, the run route, the connect stream and the capabilities document, the contract with its deprecation markers, the web on@assistant-ui/react-ag-ui, the legacy surface off by default, and A2UI on both sides (ADR 0013). The user-facing leg of the job flow and the crate layout are inarchitecture.mdandorchestrator.md. Open questions 13 (implicit answers), 14 (non-extending partial messages) and 19 (body limit) are closed; 12, 15 to 18 and 20 to 22 stay open. What remains of this decision is step 3 of "The legacy interaction endpoints are deprecated by the flag", the removal of the crate, the feature and the operations, which waits for the owner. The decision stands. Status note (2026-09-30): ADR 0018 (planned, not built) changes one rule of the projection: a run stays open while a thread isqueued,workingorverifying, andRUN_FINISHEDcomes atdone, not at the agent'scompleted; a failed gate ends inRUN_ERRORwithcode: "checks_failed". It adds the activitiesvymalo.checkandvymalo.rework, anduser_messagegainsorigin(ADR 0019). The "inbox key" of this ADR stays the event's idempotency key: AG-UI does not use the inbox of ADR 0016. The decision stands.Status note (2026-09-30): the legacy chat API surface is removed; step 3 of "The legacy interaction endpoints are deprecated by the flag" is done, with the owner's approval. Gone: the crate
orch-surface-chat-api, the Cargo featuresurface-chat-api, theSurface::ChatApivalue, the four operationscreateThread,postMessage,listEventsandstreamEventsofchat-api.yamlwith theDeprecationheader component and theNewThreadandNewMessageschemas, and the tests that existed for them alone (theDeprecationtests, the legacy SSE resume tests). What stays: the resource API (GET /api/agents,GET /api/threads,GET /api/threads/{id},POST /api/threads/{id}/cancel, health), theEventschemas of the contract (they describe the log that AG-UI projects and thatdocs/api/examples/*.events.jsonpin; no operation returns them any more), andApp's own methods. The tests that used the legacy routes to set up other scenarios now go through the AG-UI routes, and the resource API's conformance test moved toorch-api. A deployment whoseORCH_SURFACESstill listschat-apifails closed: the process exits 78 (EX_CONFIG) at startup with an error that names the surface, says it was removed on 2026-09-30 and points to AG-UI, instead of starting without the routes it expects. Clients of the legacy routes must move toPOST /agui/agents/{agentId}andGET /agui/threads/{threadId}/connect(api/agui.md). A breaking change for operators and API clients:refactor(orchestrator)!. The decision stands.Status note (2026-09-30): ADR 0020 changes one row of the inbound table (
api/agui.md) and the 409 row of the refusals: a run that carries a new user message on a finished thread (done,failed,cancelled) is served and starts the thread's next job instead of being refused with "start a new thread". The projection gains the eventjob_started(thread.jobNumberinSTATE_SNAPSHOTfrom job 2, an activityvymalo.job, ids of the attempt-scoped activities with a job infix from job 2). Only an A2UI action on a finished thread is still a 409 ("this card belongs to a finished request"). A run is still open exactly while the thread isqueued,workingorverifying. The decision stands.Status note (2026-09-30): the projection speaks for the agent the way a chat reads it (the owner, after the first live runs: "It should feel like a classical chat, not a machine to machine chat interface"). (1) The words of an
agent_statuscompleted,input_requiredorauth_requiredare an AG-UI assistant message,TEXT_MESSAGE_START/CONTENT/ENDwith the idst-<seq>and the agent asname, in the open invocation and before the status activity; thevymalo.statusof those statuses no longer carriesdetail, and words equal to the invocation's last final agent message are not said twice.failedstays an error,workingstays a step. (2) Everyvymalo.*activity carriesat, the time of its event. (3)vymalo.artifactcarrieskind(branch,checks,pull_request,file) and the fields a card needs, read byorch_core::recognise_artifact, which now also recognises a pull request (the recognition moved from the MCP surface into the core, so both surfaces agree). All three are additive for a client that ignores unknown members, except that a client which showed a statusdetailnow finds the words in the transcript instead. Details:api/agui.md. The decision stands.Status note (2026-10-01): live text is decided in ADR 0027. The connect stream and the run response carry, beside the fold of the log, frames that are not in it: the words of a reply that is still being written,
TEXT_MESSAGE_*withmetadata["vymalo.live"], which are never given anid:and so are never resume points; the log's final message completes the same message id. "AG-UI is a view of the log" becomes "a view of the log, plus live frames that are never resume points". The decision stands.
Context ​
The owner: "I prefer we use standards. Because the industry might use it in the future."
Today the chat surface talks to the orchestrator through our own contract (chat-api.yaml): REST for agents and threads, POST …/messages and POST …/cancel, and an SSE stream of our Event JSON that replays from the Postgres event log with Last-Event-ID. It works, but it is bespoke: no other client speaks it, and nothing built on it is reusable elsewhere.
AG-UI is the agent-to-user leg of the MCP / A2A / AG-UI family. In its own words, "MCP connects agents to tools and context; A2A connects agents to other agents; AG-UI connects agents to users". That is our topology: A2A downstream to agents, MCP to tools, people upstream. AG-UI 1.0 has a normative specification and an authoritative JSON Schema. Its model is one RunAgentInput in, then an ordered stream of typed events out: runs with outcomes (success, interrupt, cancelled), interrupts answered by resume entries, activity messages for structured progress, subagent attribution, and CUSTOM/RAW escape hatches.
Three things do not fit one to one, and the decision has to handle them:
- Reconnect, attach and multi-viewer are not standardised. The SSE binding says "The binding has no stream resumption: SSE's
Last-Event-IDmechanism is not used".transport.resumableis a capability flag an agent may declare "for a transport of its own". Our design depends on one durable log per thread, replayable across restarts and replicas (ADR 0001). - AG-UI has no resource operations. It has no thread list, no agent list and no consumer-side cancel: a consumer that abandons a stream has a truncated run, not a cancelled one.
- AG-UI assumes the client holds the transcript. Our threads are server-owned, multi-actor logs that also receive events nobody requested (CI, reviewers, timers).
ADR 0011 (web v2 layout: shadcn/ui, kebab-case feature folders) is the web this migration starts from. Number 0010 is unused: the OpenUI proposal it was reserved for was withdrawn in favour of A2UI (ADR 0013).
Decision ​
AG-UI 1.0 is the default user-facing protocol and covers all chat interaction. The event log stays the only source of truth, and AG-UI is a pure projection of it. A small REST resource API stays for what AG-UI does not define.
What AG-UI covers, and what stays REST ​
| Concern | Protocol |
|---|---|
| Start a thread, send a message, answer an interrupt, run, stream progress and outcomes | AG-UI run endpoint POST /agui/agents/{agentId} (standard HTTP + SSE binding) |
| Attach to a thread, replay it, follow it across runs, resume after a drop | AG-UI connect stream GET /agui/threads/{threadId}/connect (our documented extension) |
| Agent capabilities | GET /agui/agents/{agentId}/capabilities (standard AgentCapabilities shape; retrieval is implementation-defined) |
| Agent list, thread list and thread details, cancel, health | REST resource API (/api/agents, /api/threads, /api/threads/{id}, /api/threads/{id}/cancel, /healthz, /readyz) |
The binding, every mapping table and the vymalo.* content schemas are in docs/api/agui.md.
The projection ​
- Wire types are ours, as closed enums. A new crate,
orch-agui-proto, models the AG-UI 1.0 events we emit andRunAgentInputas closed serde enums (ADR 0004). It has no SDK dependency: the Rust community SDKs model 0.x or are single-author alphas. It is checked against the vendored official schema (pinned by sha256) in tests, never on the receive path. Unknown inbound members are stripped with a warning, as the processing model requires. - The projection is pure. A new crate,
orch-agui-projection, folds the coreEventlog into AG-UI events and translatesRunAgentInputinto core inputs. It depends onorch-coreandorch-agui-protoonly: no async, no I/O.thread_state,agent_status,artifactanderrorbecome run outcomes (blocked→ interrupt,done→ success,cancelled→ cancelled,failed→RUN_ERROR), activity messages (vymalo.status,vymalo.artifact,vymalo.error, which survive history snapshots, unlikeCUSTOM) andSTATE_SNAPSHOT.threadfor the header.- Each A2A delegation becomes a subagent invocation (
SUBAGENT_*,subagentRunId). - The author and the revision that ran travel in
metadata["vymalo.actor"]. - Generative UI (A2UI, ADR 0013) travels as the ecosystem's
a2ui-surfaceactivity.
- Every AG-UI id is derived from the log (run, message, activity, subagent, interrupt), so every replica and every replay emits identical frames. Nothing about AG-UI is persisted beyond two additive, optional fields on
user_message:messageIdandrunId.
The run endpoint (standard) ​
POST /agui/agents/{agentId} takes a RunAgentInput and streams the requested run as HTTP + SSE, exactly as the binding says.
- Consumer-minted thread ids are accepted. The protocol has the application mint
threadId. It must be a UUID (400 otherwise). An unknown id creates a thread owned by the edge identity. An id that belongs to another owner, including a collision, gets 404 before the stream, so existence never leaks. - Messages are reconciled by id against the log; only new user messages become inputs.
resumeanswers the interrupt. The release (ADR 0008) travels inforwardedPropsunder the release-channels extension URI, validated live against the card, failing closed. - Pre-stream rejections stay RFC 9457 problems; in-stream failures are
RUN_ERROR{message, code}. - A run is never tied to its HTTP connection. Closing the stream does not cancel; only the cancel endpoint does. That is the spec's own rule: truncation is not cancellation.
The connect stream (our extension) ​
GET /agui/threads/{threadId}/connect is a custom transport, which the spec allows as long as it keeps the event model, the patterns and the processing rules.
- It replays the event log as a sequence of runs, then keeps streaming across runs (keepalive comments every 15 s), including runs the orchestrator starts itself.
- Frames carry
id: <seq>at resumable points.Last-Event-IDresumes: the server rebuilds the projector state up to that seq, re-opens the open run and invocations (a preamble, because every AG-UI stream must begin withRUN_STARTEDorRUN_ERROR), then sends the suffix. It works across replicas and restarts, because it reads the log (App::event_stream), not memory. ?mode=runcloses after the active run, or right after the replay when idle, like theconnectof CopilotKit's runtime.- It is announced as
AgentCapabilities.transport.resumable: true. A standard client that does not know it loses nothing but reconnect: the run endpoint alone is a conforming AG-UI server (the ADR 0008 pattern: optional, removable).
sequenceDiagram
participant W as Web (react-ag-ui + ThreadAgent)
participant A as Replica A
participant B as Replica B
participant P as orch-agui-projection (pure)
participant DB as Postgres event log
W->>A: GET /agui/threads/t/connect (no cursor)
A->>DB: events after 0, then LISTEN
A->>P: fold events
A-->>W: replayed runs (RUN_STARTED ... RUN_FINISHED), id: seq
W->>B: POST /agui/agents/coder RunAgentInput{threadId t, runId r7, messages, resume?}
B->>DB: inbox (agui, t:messageId), user_message seq 12
B-->>W: RUN_STARTED r7 (the POST is released, the tail carries the run)
DB-->>A: NOTIFY seq 12..
A->>P: fold new events
A-->>W: user triad, SUBAGENT_STARTED, ACTIVITY_SNAPSHOT ... (id: 12, 13, 14)
Note over A: replica A is killed
W->>B: GET /agui/threads/t/connect, Last-Event-ID: 14
B->>DB: events up to 14 (fold only), then after 14, LISTEN
B-->>W: preamble (RUN_STARTED r7, SUBAGENT_STARTED, STATE_SNAPSHOT), then seq 15..
B-->>W: RUN_FINISHED r7 (interrupt, success or cancelled) and later runsstateDiagram-v2
[*] --> Replaying: connect (cursor c, none = everything)
Replaying --> Tailing: caught up with the log
Tailing --> Tailing: new log event, frames with id seq
Tailing --> Idle: run closed (RUN_FINISHED or RUN_ERROR)
Idle --> Tailing: next run opens (user, agent or system event)
Tailing --> Truncated: connection lost
Idle --> Truncated: connection lost
Truncated --> Replaying: reconnect with Last-Event-ID (preamble, then suffix)
Idle --> [*]: client closes, or mode=run and the run closedA run, as the projection shows it:
stateDiagram-v2
[*] --> RunActive: user_message or producer event (RUN_STARTED)
RunActive --> Interrupted: input or auth required (RUN_FINISHED interrupt)
RunActive --> Succeeded: agent completed (RUN_FINISHED success)
RunActive --> Cancelled: cancel endpoint (RUN_FINISHED cancelled)
RunActive --> Errored: agent or delivery failed (RUN_ERROR)
Interrupted --> RunActive: next run with resume, or a new user message
Errored --> RunActive: next run (thread still open after a retryable failure)
Succeeded --> [*]
Cancelled --> [*]
Errored --> [*]: thread failedSeveral surfaces, mounted by configuration ​
Each inbound surface is an adapter crate behind a Cargo feature, and which compiled-in surfaces are mounted is runtime configuration. This is ADR 0009 exactly: build-time features plus configuration, no plugins.
| Surface | Crate | Cargo feature of bin/orchestrator |
|---|---|---|
| AG-UI (run, connect, capabilities) | orch-surface-agui | surface-agui (default) |
Legacy chat API interaction routes (createThread, postMessage, listEvents, streamEvents) | orch-surface-chat-api | surface-chat-api |
| A2A inbound (later) | orch-surface-a2a | surface-a2a |
- The binary's configuration moves to clap with environment fallback; every existing variable keeps its name.
--surfaces/ORCH_SURFACESis a comma-separated list, for exampleORCH_SURFACES=agui,chat-api. The default isaguionce the web runs on AG-UI; until then it wasagui,chat-api, so nothing broke mid-migration (it isaguisince the status note of 2026-09-29 above). The resource API and health are always mounted (they stay inorch-apiwith the auth layer and the problem mapping). - Fail closed: an unknown name, an empty list, or a surface whose feature was not compiled in stops startup with an error naming the surface and the feature.
- Surfaces depend only on
Appandorch-core. NoSurfacetrait is added: there is one caller and no infrastructure behind it.
The legacy interaction endpoints are deprecated by the flag ​
The four REST interaction operations are deprecated by configuration, not by a date:
- Until the web migrates: mounted by default (
agui,chat-api), and the compose stack sets it explicitly. The operations are markeddeprecated: truein the contract and answer with aDeprecationheader (RFC 9745; built, see the status note above). - When the web runs on AG-UI: not mounted by default (done, see the status note above). An operator who still needs them sets
ORCH_SURFACES=agui,chat-api. - Later: the crate, the feature and the operations are removed in their own PR. Done on 2026-09-30, see the status note above.
The web ​
The web uses @assistant-ui/react-ag-ui, pinned exactly and patched where needed, with every fix proposed upstream.
- A
ThreadAgent(anAbstractAgentsubclass) owns one connect stream per open thread.run()POSTs and then yields that run's frames from the connect stream (deduplicated by seq) until its terminal event.abortRun()calls the cancel endpoint and keeps reading untilRUN_FINISHED{outcome:{type:"cancelled"}}. (Built differently: see the status note above.) - Patches live in
web/patches/through pnpmpatchedDependencies; a dependency change goes through pnpmoverrides, never a patchedpackage.json. Each patch names its upstream issue or pull request and is deleted when a pinned release contains the fix. The known gaps:- Activities are dropped on reload when no assistant message precedes them (our first status line). The patch keeps an owner-less activity as its own message. (Not needed: see the status note above.)
- No live subscription: the runtime applies only events of a run it started. The patch lets it apply runs it did not start (another tab, a producer-initiated run, a run in flight at reload), fed by our connect stream. (Done outside the package, see the status note above.)
- Pre-1.0 client: it depends on
@ag-ui/client^0.0.59. We override it to 1.0.0 when a spike shows the runtime works on 1.0 (patching the few renamed events and adding thecancelledoutcome); otherwise the runtime keeps 0.0.59 while our goldens are checked with the 1.0 reference consumer. Upstream: a bump to@ag-ui/client@^1.
- ADR 0006 is amended:
useExternalStoreRuntimegives way to the AG-UI runtime; Next.js, assistant-ui and thedata-*renderers stay.
Rules ​
- The log is authoritative. An AG-UI frame is a function of the log prefix and the audience (the requesting POST, or a connect viewer), nothing else.
- Conformance is a test, not a claim. Every emitted event validates against the vendored 1.0 schema. Every golden passes the reference consumer's
enforceEventsandverifyEventswith no warning. A property test proves that reconnecting from any resume point yields exactly the remaining suffix. - Extensions are namespaced and optional.
vymalo.*activity types and metadata keys, the connect route andtransport.resumableare ignorable by a plain AG-UI client. We never put standard semantics intoCUSTOM. - Authentication stays at the edge.
X-Auth-Request-Email, fail closed, with the ownership check before any stream byte (404). Identity never comes fromforwardedProps,stateor message fields. Amended (2026-10-02, ADR 0033): identity is what anAuthenticatormakes of the request's credentials; withauth.mode: jwtthe orchestrator itself validates the bearer token oauth2-proxy forwards, and the header is only trusted inproxy_headermode (the default). The ownership check and the rule that identity never comes from the body stand. - Protocol version. We declare
protocolVersion: "1.0"onRUN_STARTED, serve any 1.x input with a warning, and reject another major before the stream (400).
Alternatives rejected ​
- Keep our own chat API only. No migration risk, but no client, SDK or UI kit outside this repository speaks it, which contradicts the owner's stated preference.
- AG-UI only for external clients, the web kept on our API. Two interaction contracts and two sets of goldens that drift, and our own UI would not use the standard. It remains an intermediate milestone (server first, web second), not the end state.
- Full replacement, including the resource API. AG-UI defines no thread list, agent list or consumer cancel, so we would invent them anyway as non-standard AG-UI routes.
- Waiting for upstream resumption. Without the connect extension there is no reconnect, no multi-viewer and no server-initiated update over AG-UI.
- The external store fed by
@ag-ui/client1.0 (the plan's first recommendation). It keeps ADR 0006 intact but has us own the AG-UI → message conversion, interrupt UI and A2UI wiring that react-ag-ui already has. The owner chose the standard runtime and upstream fixes instead. - A community Rust SDK (
ag-ui-core0.1.0,ag-ui0.5.0-alpha.3, others). They model the 0.x events, or are single-author alphas; a closed enum checked against the official schema is less code than adapting one. - A2A as the UI protocol. A2A is agent-to-agent by design; AG-UI carries the UI semantics (text triads, activities, interrupts with response schemas, generative-UI conventions).
- A fixed sunset date for the REST interaction endpoints. Replaced by the surface flag, which ties removal to the web's migration rather than to the calendar.
Consequences ​
- Easier: any AG-UI client (CopilotKit, react-ag-ui, the .NET and Python clients, CLIs) can drive a thread through the run endpoint; A2UI surfaces render with ecosystem components; subagent attribution is ready for MVP step 4 (planner and parallel workers); deployments choose their surfaces without a rebuild.
- Harder: we maintain a projection, a transport extension and patches on a 0.0.x runtime. Runs the orchestrator starts itself (webhooks, timers) and follow-ups during a run are at the edge of what the spec contemplates. AG-UI 1.0 is new, so the schema is vendored by hash and a bump is a reviewed PR.
- Required elsewhere:
- core:
UserMessageData{messageId?, runId?}andAgentStatus::AuthRequired(today folded intoinput_requiredwith a text prefix), so the interruptreasonis truthful; - the binary: clap configuration and surface mounting (
ORCH_SURFACES); the legacy routes move fromorch-apitoorch-surface-chat-api; - ADR 0006 and ADR 0007 amended (dated status notes);
chat-api.yamlgains the/agui/*operations and the deprecation markers (a later slice);open-questions.mdgains the questions this raises (12–21).
- core:
Verified ​
Every fact below was verified 2026-09-29 against the source named, or the copy of it downloaded that day.
- Spec and schema. AG-UI 1.0 has a behavioural spec ("The schema is authoritative for structure; this document for behaviour") and a JSON Schema 2020-12 with
$idhttps://ag-ui.com/spec/1.0/schema.json: 31 event types in 8 families. Sources: https://docs.ag-ui.com/spec/1.0/index.md, https://docs.ag-ui.com/spec/1.0/schema-files.md. - Packages.
@ag-ui/core,@ag-ui/client,@ag-ui/encoderand@ag-ui/proto1.0.0 were published 2026-09-17, MIT, withPROTOCOL_VERSION = "1.0". Source: the npm registry and the@ag-ui/core@1.0.0dist. - SSE binding. Consumers ignore
id:,event:andretry:; there is no resumption andLast-Event-IDis not used; pre-stream errors are HTTP statuses and in-stream failures areRUN_ERROR. Source: https://docs.ag-ui.com/spec/1.0/basic/transports/http-sse.md. - Several runs per stream; truncation. "A single stream MAY carry several runs in sequence — a replayed thread is the common case". A consumer that abandons a stream has a truncated run and "MUST NOT synthesize a
RUN_FINISHED". Source: https://docs.ag-ui.com/spec/1.0/events/lifecycle.md. - Custom transports. "A custom transport MUST preserve the event model, the patterns and the processing rules" and SHOULD frame JSON as the SSE binding does. Source: https://docs.ag-ui.com/spec/1.0/basic/transports/index.md.
- Outcomes and interrupts.
RUN_FINISHED.outcomeissuccess,interruptorcancelled;ResumeEntry{interruptId, status: resolved|cancelled, payload?}covers every interrupt, and a producer may be stateless across the gap. Source: https://docs.ag-ui.com/spec/1.0/basic/patterns/interrupt-resume.md. - Capabilities.
transport.resumabledescribes resuming by sequence number, which neither HTTP binding does; "An agent MAY declare them for a transport of its own". Retrieval is implementation-defined. Source: https://docs.ag-ui.com/spec/1.0/basic/capabilities.md. - Activity and
CUSTOM. Activity messages keep their place in the message sequence and are stripped from outgoing input;CUSTOMmust not carry standard semantics and its names should be vendor-prefixed. Sources: https://docs.ag-ui.com/spec/1.0/events/activity.md, https://docs.ag-ui.com/spec/1.0/events/passthrough.md. - Subagents. One
subagentRunIdper invocation, asuspendedoutcome, and an invocation may continue in a later run. Source: https://docs.ag-ui.com/spec/1.0/events/subagents.md. - The TS client.
@ag-ui/client1.0.0HttpAgenthas no retry or reconnect;abortRun()aborts the fetch;connect()is a hook whose default throws; it exportsverifyEvents,enforceEvents,parseSSEStream,compactEventsanddefaultApplyEvents. Source: the package's published source map (src/agent/http.ts,src/agent/agent.ts). - CopilotKit's
connect. In@copilotkit/runtime1.75.0,AgentRunner.connectreplays compacted history, bridges the active run and completes when idle; routesagent/run,agent/connect,agent/stop. A runtime convention, not part of the spec. Sources: the package source map, https://docs.copilotkit.ai/backend/agent-runner. - react-ag-ui.
@assistant-ui/react-ag-ui0.0.62 (2026-09-24, MIT) depends on@ag-ui/client^0.0.59. It drives runs throughagent.runAgent(input, subscriber)and has no other event entry. Activities of other types becomeagui-activity/<type>data parts;a2ui-surfacerenders natively. Its thread list and interrupts are experimental. On reload an activity with no preceding assistant message is skipped (if (ownerIndex === -1) continue;). Sources: the npm registry, https://www.assistant-ui.com/docs/runtimes/ag-ui/runtime-options.md, package source (src/runtime/adapter/conversions.ts,src/runtime/AgUiThreadRuntimeCore.ts). - pnpm.
pnpm patch/pnpm patch-commitregister a patch file underpatchedDependencies; dependency changes belong inoverrides, not in a patchedpackage.json. Source: https://pnpm.io/cli/patch. - Deprecation header. RFC 9745, "The Deprecation HTTP Response Header Field" (Standards Track, March 2025). Source: https://www.rfc-editor.org/rfc/rfc9745.
- Rust. The community SDK in
ag-ui-protocol/ag-ui(sdks/community/rust,ag-ui-coreandag-ui-client0.1.0, published 2025-08-12) models the 0.x event set;ag-ui0.5.0-alpha.3 says it is "not affiliated" with the protocol organisation. Sources: the crates.io API, the repository at024332c. - Positioning. AG-UI is complementary to MCP and A2A, and is not a generative-UI specification. Sources: https://docs.ag-ui.com/agentic-protocols.md, https://docs.ag-ui.com/concepts/generative-ui-specs.md.
- Unverified: AG-UI is governed by CopilotKit, a venture-backed company, rather than a foundation (secondary source: rywalker.com/research/ag-ui). The docs confirm only that CopilotKit offers commercial support (https://docs.ag-ui.com/talk-to-us.md).