Upgrade: remote-agent fixes (A2A R0(e))
This page covers the A2A R0(e) releases, the remote-agent fixes of the remote agents and A2A design (spec, §15). Each release has its own section: what to do, then what changed.
What to do, by release
- agent-server
/statusand the Express adapter: an app that mountscreateExpressAdapterand relied on agent-server's JSON 404 for paths it does not route now gets its own later routes, or Express's 404. A reader of an agent-server child's/statuscan readstoppingandcommittedOutcome: 'suspension'.
agent-server /status and the Express adapter
@helix-agents/agent-server (major), @helix-agents/core (minor), @helix-agents/runtime-cloudflare (patch).
What to do
- Express: nothing, unless the app relied on agent-server answering a path it does not route.
createExpressAdapternow passes such a path to the next middleware (next(), nothing written), so routes registered after the mount answer, even when it is mounted at'/'as the remote-agents guides show. A path no route answers gets Express's own 404 (HTML by default), no longer agent-server's404 { code: 'NOT_FOUND' }. Every routed path is answered as before, an unknown session's 404 included. - A custom framework adapter built on
createHttpAdaptercan do the same: an answer withunrouted: trueis the 404 for a path agent-server does not route. Ignoring the field keeps today's 404. - Telemetry: with
telemetryset, every request reaches agent-server's handler beforenext(), so a request for an app route registered after the mount first records agent-server's SERVER span{METHOD} /*, ended withhttp.response.status_code404, and then the app answers it. To keep those spans apart from real 404s, mount the adapter on a path prefix (app.use('/agents', middleware)), or filter onhttp.route/*. /statusreaders: nothing required. ReadstoppingandcommittedOutcomeas described below if you need them.
What changed
/statusreportsstopping(truewhile a stop is recorded for the live current run and has not ended it yet) andcommittedOutcome: 'suspension'(the current run's client-call suspension is committed:runStatussuspended_client_toolorsuspended_step_partialover apausedsession, with its calls inpendingCalls). Before,committedOutcomewas only ever'terminal'andstoppingwas absent. A runsuspended_awaiting_childrenis live and reports neither. A stop record that cannot be read is logged and reported asfalse; it never fails/status.- The rule is the CF Durable Object's, now in core:
isCommittedClientCallSuspension,isRunStopping, andCLIENT_CALL_SUSPENSIONS/isClientCallSuspension(moved from runtime-cloudflare, which re-exports them internally). agent-server's/statuscallsisCommittedClientCallSuspensionandisRunStopping. The Durable Object's sub-agent/statuscallsisCommittedClientCallSuspensionfor its committed outcome, and computesstoppingby the same predicate asisRunStoppingwith its own synchronous reads. AgentHttpResponse.unrouted(new, optional): set with the 404NOT_FOUNDanswer for a path agent-server does not route.