Skip to content

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 ​

  1. agent-server /status and the Express adapter: an app that mounts createExpressAdapter and 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 /status can read stopping and committedOutcome: '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. createExpressAdapter now 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's 404 { code: 'NOT_FOUND' }. Every routed path is answered as before, an unknown session's 404 included.
  • A custom framework adapter built on createHttpAdapter can do the same: an answer with unrouted: true is the 404 for a path agent-server does not route. Ignoring the field keeps today's 404.
  • Telemetry: with telemetry set, every request reaches agent-server's handler before next(), so a request for an app route registered after the mount first records agent-server's SERVER span {METHOD} /*, ended with http.response.status_code 404, 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 on http.route /*.
  • /status readers: nothing required. Read stopping and committedOutcome as described below if you need them.

What changed ​

  • /status reports stopping (true while a stop is recorded for the live current run and has not ended it yet) and committedOutcome: 'suspension' (the current run's client-call suspension is committed: runStatussuspended_client_tool or suspended_step_partial over a paused session, with its calls in pendingCalls). Before, committedOutcome was only ever 'terminal' and stopping was absent. A run suspended_awaiting_children is live and reports neither. A stop record that cannot be read is logged and reported as false; it never fails /status.
  • The rule is the CF Durable Object's, now in core: isCommittedClientCallSuspension, isRunStopping, and CLIENT_CALL_SUSPENSIONS / isClientCallSuspension (moved from runtime-cloudflare, which re-exports them internally). agent-server's /status calls isCommittedClientCallSuspension and isRunStopping. The Durable Object's sub-agent /status calls isCommittedClientCallSuspension for its committed outcome, and computes stopping by the same predicate as isRunStopping with its own synchronous reads.
  • AgentHttpResponse.unrouted (new, optional): set with the 404 NOT_FOUND answer for a path agent-server does not route.

Released under the MIT License.