Skip to content

ACP capability proof: OpenClaw drives the loop, calls OpenCode over ACP (proof only, not a restore) #6137

Closed

Description

@dezren39

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.

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    kind/testTest coverage, test infrastructure, or test-only fixes
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Intake review

    • Related: Follow-up (#2229): ACP-runtime agent entry for OpenClaw→OpenCode dispatch (opencode-acp) #2256 (the adjudication this spun out of: embedded stays the architecture, OpenClaw handles the loop); the OpenClaw gateway/heartbeat fix (gateway down since 2026-11-04 21:15) is the named precondition.
    • 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.
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    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:

    1. 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.
    2. 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.
    3. 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.
    4. 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):
      • ACP session key: agent:main:acp:32943faf-2810-4ffb-931a-66bac7fbc6ff
      • 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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status/needs-triageNot yet triaged; needs a first lookstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions