You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP capability proof: OpenClaw drives the loop, calls OpenCode over ACP (proof only, not a restore) #6137
Spun out of #2256 by Drew's adjudication (2026-11-05 01:44 CST): embedded stays the architecture — OpenClaw calls OpenCode, and OpenClaw handles the loop — but Drew wants to know ACP could work.
Scope: a bounded, one-shot capability proof, run AFTER the OpenClaw gateway/heartbeat fix lands (gateway down since 2026-11-04 21:15; fix in flight tonight):
OpenClaw (Shed), driving its own agent loop, dispatches a real, small task to OpenCode over ACP (opencode-acp).
Evidence required: the ACP session transcript showing the task dispatched, executed by OpenCode, and the result consumed by OpenClaw's loop (a completed round trip, incl. how a permission/tool call surfaces).
Verdict recorded here: works / works-with-gaps (named) / blocked (named cause).
Explicitly NOT in scope: restoring any standing ACP agent entry, changing standing dispatch config, or making ACP a routine route. This is a knowledge proof only.
Acceptance criteria
The OpenClaw gateway/heartbeat fix has landed (precondition named in the body) before the proof run starts.
OpenClaw (Shed), driving its own agent loop, dispatches one real, small task to OpenCode over ACP (opencode-acp) and consumes the result in its loop.
The ACP session transcript is attached/linked as evidence, including how a permission/tool call surfaces during the round trip.
A verdict is recorded on this issue: works / works-with-gaps (named) / blocked (named cause).
No standing ACP agent entry, dispatch config, or routine route is changed by this proof.
Still live: knowledge gap, filed today by Drew's adjudication; nothing to dedupe — no ACP capability proof exists in the fleet's records.
Notes: scope discipline is the deliverable: proof only. The transcript evidence requirement (including how a permission/tool call surfaces) is what makes the verdict reusable when ACP comes up again.
Risks: scope creep into restoring a standing ACP route — explicitly out of scope in the body; keep it out.
Suggested approach: wait for the gateway fix, run one small real task through OpenClaw's loop over ACP, attach the transcript, record the verdict.
Verdict: WORKS — full ACP round trip proven live (2026-11-05 02:33–02:36 CST)
Run after the gateway fix (gateway had been down since 2026-11-04 21:15; restored + hardened in PR #6142), on the live 2026.10.7 gateway, embedded architecture exactly as adjudicated — no standing ACP agent entry restored, no dispatch config changed.
The loop, as it happened:
Shed (main session) received the proof instruction and, driving its own agent loop, called sessions_spawn with runtime: "acp", agentId: "opencode" and the task text, then sessions_yield to wait for the child.
The embedded acpx backend registered on demand (gateway log 02:33:58 embedded acpx runtime backend registered, 02:33:59 ready) and routed the session through the ACP-to-HTTP adapter (bin/opencode-acp-adapter.mjs, OpenClaw: share one opencode serve via a small ACP-to-HTTP adapter #1243) onto the shared opencode serve at 127.0.0.1:13420.
OpenCode executed the task in its ACP session (child transcript, session 5c5ddebf): created /home/user/openclaw-acp-proof-2026-11-05, ran opencode --version > proof.txt 2>&1, read the file back.
The completion event woke Shed's yielded turn, and Shed consumed and reported the result in its own reply (main session seq 278, 02:35:50):
proof.txt contents as reported: opencode v2.0.30+7774bf0
"Anything that went wrong: nothing — the task completed successfully."
Independent verification:/home/user/openclaw-acp-proof-2026-11-05/proof.txt exists on disk (25 bytes, written 02:34) containing exactly opencode v2.0.30+7774bf0 — the facade's own build string, matching the child session's report byte for byte.
Permission/tool surfacing: the child's shell + read activity ran inside the ACP session transcript; no interactive permission request surfaced, because the acpx posture is the fleet's deliberate permissionMode=approve-all (gateway logs the expected security warning at boot). Under a different posture this is where a prompt would appear.
Minor observation (not a failure): Shed issued sessions_spawn twice (main session seq 265 + 269) before yielding — only one ACP session and one set of side effects resulted.
works-with-gaps: none for the capability itself. (Adjacent, tracked elsewhere: the claude/codex ACP wrappers point into a garbage-collected plugin capture and would fail if spawned — opencode and agy are unaffected.)
Activity
developing-today commentedon Nov 5, 2026
CODE-1775
dezren39 commentedon Nov 5, 2026
Intake review
dezren39 commentedon Nov 5, 2026
Verdict: WORKS — full ACP round trip proven live (2026-11-05 02:33–02:36 CST)
Run after the gateway fix (gateway had been down since 2026-11-04 21:15; restored + hardened in PR #6142), on the live 2026.10.7 gateway, embedded architecture exactly as adjudicated — no standing ACP agent entry restored, no dispatch config changed.
The loop, as it happened:
sessions_spawnwithruntime: "acp",agentId: "opencode"and the task text, thensessions_yieldto wait for the child.embedded acpx runtime backend registered, 02:33:59ready) and routed the session through the ACP-to-HTTP adapter (bin/opencode-acp-adapter.mjs, OpenClaw: share one opencode serve via a small ACP-to-HTTP adapter #1243) onto the sharedopencode serveat 127.0.0.1:13420.5c5ddebf): created/home/user/openclaw-acp-proof-2026-11-05, ranopencode --version > proof.txt 2>&1, read the file back.agent:main:acp:32943faf-2810-4ffb-931a-66bac7fbc6ffopencode v2.0.30+7774bf0Independent verification:
/home/user/openclaw-acp-proof-2026-11-05/proof.txtexists on disk (25 bytes, written 02:34) containing exactlyopencode v2.0.30+7774bf0— the facade's own build string, matching the child session's report byte for byte.Permission/tool surfacing: the child's shell + read activity ran inside the ACP session transcript; no interactive permission request surfaced, because the acpx posture is the fleet's deliberate
permissionMode=approve-all(gateway logs the expected security warning at boot). Under a different posture this is where a prompt would appear.Minor observation (not a failure): Shed issued
sessions_spawntwice (main session seq 265 + 269) before yielding — only one ACP session and one set of side effects resulted.works-with-gaps: none for the capability itself. (Adjacent, tracked elsewhere: the claude/codex ACP wrappers point into a garbage-collected plugin capture and would fail if spawned — opencode and agy are unaffected.)