Skip to content

ACP surface

ACP surface

Protocol: v1 (the SDK’s v2 is behind unstable_protocol_v2, which this workspace does not enable).

SDK: agent-client-protocol 5.6.1.

33 of 37 methods covered. 26 of those 33 were exercised against agent-client-protocol-test v5.6.1, in-process, and 7 more against HERO’s spec agent, which answers the methods testy does not implement as the schema specifies them; the rest are covered but unproven here.

Covered means a real send site or handler exists. Exercised means the testy run proved it: for a method we call, that we drove it; for one the agent calls on us, that we ANSWERED it — a -32601 refusal does not count, because a run with no activated session refuses every callback while still putting each frame on the wire. The two columns are separate on purpose: a surface you enumerate by reading is one you enumerate optimistically.

agent → us

Method Covered Exercised Notes
auth/status_update yes yes (spec agent) UNSTABLE (schema 1.19). Connection-level, so the connection chain decodes it (no session owner sees it) and the app emits acp-agent-auth-status for the composer’s card. Proven against HERO’s spec agent.
elicitation/complete yes yes Closes a dialog the agent no longer needs.
elicitation/create yes yes Both modes (form + url) in both scopes, through the shared ElicitationHost (D44). Advertised on both faces.
fs/read_text_file yes yes Sandboxed, with line/limit; an out-of-sandbox read prompts.
fs/write_text_file yes yes Sandboxed, prompt-gated outside the roots.
session/request_permission yes yes Tool-permission prompts, with a policy layer and replay.
session/update yes yes The sixteen update kinds an agent may send this client, through one projector (wire_projection) shared by the live path, restore and the phone mirror (D38). Five more are sent only to a client that advertises their capability, which HERO does not yet: subagent_update, session_message and session_message_chunk (subagents), prompt_suggestions_update (session.promptSuggestions) and cursor_update (session.cursors).
terminal/create yes yes Full terminal lifecycle.
terminal/kill yes yes Kills the process TREE, not the direct child (WINDOWS.md).
terminal/output yes yes Incl. truncation reporting.
terminal/release yes yes
terminal/wait_for_exit yes yes

us → agent

Method Covered Exercised Notes
auth/status yes yes (spec agent) UNSTABLE (schema 1.19), gated on auth.status. get_agent_auth_status asks it one-shot, and a composer card shows the agent’s sign-in state from it. testy 5.6.1 does not implement it; proven against HERO’s spec agent.
authenticate yes yes Auth-method picker, with replay selection on restore.
initialize yes yes Handshake, capability negotiation, protocol-version pin.
logout yes yes Gated on the agent advertising auth.logout.
providers/disable no no BYOK provider routing. Carries headers — API KEYS — so it is a credential path and must route through the keychain per CREDENTIALS.md. Tracked as AMXSF-518.
providers/list yes yes Read-only. AgentProviderInfo is deliberately shaped to carry non-secret routing config only, so no secret can ride this path.
providers/set no no As providers/disable — AMXSF-518.
session/archive yes yes (spec agent) UNSTABLE (schema 1.21), gated on sessionCapabilities.archive. Deleting a session in HERO archives it on the agent’s side too (one-shot), so it leaves the agent’s default session/list. No agent advertised it in the measured month. Proven against HERO’s spec agent.
session/cancel yes yes Notification — the stop button’s primary. The prompt stays parked until the agent answers StopReason::Cancelled, the defined end of the turn; teardown awaits the same ack before session/close. SessionState::session_cancel_ignored latches an agent that never answers so the watchdog can escalate.
session/close yes yes Bounded teardown: cancel → ack (1s) → settle (500ms) → close (2s) → kill, inside a 6s fleet deadline.
session/delete no no DELIBERATE: destructive and irreversible on the agent’s side. We delete our own session record; asking the agent to erase its history is a different act and is not wired to any UI.
session/fork yes yes The header’s Branch action (AMXSF-563): a NEW top-level session started from the source’s history, built by create_fork_session_request from the same inputs as session/new (mcpServers, additionalDirectories, the source’s system prompt choice), and its row remembers the source (forked_from_session_id, app-core D49). Sent only to an agent advertising sessionCapabilities.fork; to any other the action is not offered and a start fails SESSION_FORK_UNSUPPORTED — a branch is never simulated by copying messages. Still UNSTABLE in the spec (schema 1.18.0). testy implements no fork (3.6.0, and still 5.3.0), so the run proves only the SEND: our request on the wire and a clean -32601 (testy_does_not_advertise_fork). The branch lifecycle is proven against app-api’s fake agent (session_fork_tests).
session/list yes yes Agent-side session enumeration, used on restore.
session/load yes yes Restore WITH replay, incl. mcpServers + additionalDirectories — built by create_load_session_request so it cannot drift from session/new. Now the fallback half of the reopen pair: sent when the agent does not advertise sessionCapabilities.resume, or when we hold no wire rows for the session (a fetched one), where the replay is the only copy of the conversation.
session/new yes yes Incl. mcpServers + additionalDirectories.
session/options yes yes (spec agent) UNSTABLE (schema 1.17), gated on sessionCapabilities.options. When a composer’s config pickers have nothing cached, fetch_session_options reads the options a session would start with, without starting one, into the composer’s cache. Proven against HERO’s spec agent.
session/prompt yes yes Text, images, embedded resources, resource links, skills.
session/resume yes yes Reopen a session WITHOUT the agent replaying its history (ResumeSessionRequest, built by create_resume_session_request, incl. mcpServers + additionalDirectories) — the cheap counterpart to session/load, not a different moment. PREFERRED on reopen: sent whenever the agent advertises sessionCapabilities.resume AND we hold wire rows for the session, because the transcript renders from our own wire tap and load’s replay is then work we pay for and discard. 9 of our 10 agents advertise it.
session/set_config_option yes yes Session config options, incl. the legacy set-model fallback.
session/set_mode yes yes Session modes.
session/set_title yes yes (spec agent) UNSTABLE (schema 1.21), gated on sessionCapabilities.title. A rename in HERO reaches the agent’s own session list: over the running session’s connection, else one-shot (set_agent_session_title). Clearing a title sends nothing, as the schema has no clear. Proven against HERO’s spec agent.
session/status yes yes (spec agent) UNSTABLE (schema 1.21), gated on sessionCapabilities.status. Asked before a restore: an agent that no longer knows the session answers -32002 and the restore takes its rejection path instead of failing midway; any other outcome restores as before. Also get_agent_session_status. Proven against HERO’s spec agent.
session/unarchive yes yes (spec agent) As session/archive: one capability, sent by set_agent_session_archived(false). HERO has no screen that brings back a deleted session yet, so nothing in the UI sends it.

both

Method Covered Exercised Notes
$/cancel_request yes yes Outbound: sent by the SDK when a parked request future is dropped — the stop watchdog’s escalation after an agent ignores session/cancel. Inbound: every request handler runs under the SDK’s cancellation marker, so an agent cancelling its own request gets -32800 (a parked permission prompt is reaped), a cancelled elicitation/create answers {"action":"cancel"}, and a cancelled _agent/subagents ends the child’s turn.
mcp/message no no MCP-over-ACP: MCP traffic for a connection the agent asks US to host. We already give agents MCP through the bridge as a real stdio/HTTP server, so this is a second transport for a surface we serve, not a missing capability. Adopting it would put bridge policy behind a second door — see bridge/DECISIONS.md D11. Declared on BOTH faces, so it is one row; the SDK’s 3.0 dropped its mcp/connect and mcp/disconnect siblings.