GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) · Issue #2012 · developing-today/code

Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) #2012

New issue
Copy link
New issue
Copy link
Closed
Closed
Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721)#2012
Copy link
Assignees
dezren39
Labels
effort/mMedium: expected under 1 day of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/lowNice to have; do when convenientstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Implements the design in #1721 (design note: #1721 (comment)). Owner decision 2026-10-28: GO — build it with the design note's rulings.

What this builds

A first-class acpx muse agent for OpenClaw: an ACP adapter whose harness runs the Muse CLI as the agent, backed by muse serve (MSP) on the laptop. This is a harness door into the one Meta pool (the Muse API High Usage plan) via the CLI's sanctioned OAuth login — it is NOT a model route, and the OpenCode muse provider closure of 2026-10-25 stands untouched.

Rulings folded in (from the design note)

  • Q1: first-class door. The adapter sits alongside the existing acpx agents with per-agent command overrides pointing at laptop paths.
  • Q2 (build-blocking): metering and capping are acceptance criteria, not follow-ups — plan-only by construction, a per-session usage ledger, a pre-dispatch pool check, and a per-session turn budget (below).
  • Q3: muse serve is the transport (owner's smoke test: warm turns 7.2–7.8s vs exec 13.3–18.0s). muse exec exists only as the degraded fallback when serve fails before a response is committed.
  • Q4: the adapter owns no credentials and no login lifecycle. Auth is solely the CLI's laptop OAuth login (~/.config/muse/auth.json).

Acceptance criteria

  • acpx muse agent registered and selectable in OpenClaw; an ACP session on it completes a real coding turn end-to-end on the laptop.
  • Plan-only by construction: the child process is spawned with META_API_KEY deleted from its environment; no API-key route exists anywhere in the adapter.
  • Per-session usage ledger: the adapter records turns/usage per session in a durable, readable store.
  • Pre-dispatch pool check: dispatch refuses to start when the freshest Meta pool reading (≤60 minutes old) shows 100%; burns over an hour re-check at least hourly.
  • Per-session turn budget enforced from adapter config.
  • Auth failures (expired/revoked login) surface as a terminal session error — "muse login required on laptop" — never a silent retry, route switch, or interactive login attempt by the adapter.
  • CLI drift handled by probing serve --help / exec --help at startup (the bin/muse-proxy.mjs pattern), never by version-string checks.
  • The OpenCode muse provider remains disabled and untouched by this work.
  • Lands as a worktree branch + PR per fleet discipline (never the primary checkout).

Activity

Next
  1. dezren39
    added
    priority/lowNice to have; do when convenient
    effort/mMedium: expected under 1 day of work
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-933

  3. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  4. dezren39
    added
    queue/queuedHas a queued queue task
    on Oct 31, 2026
  5. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Status — owner order 2026-10-28, stalled, re-queued 2026-10-31.

    Drew's GO on this build was given 2026-10-28, but the enqueue recorded that night landed in repo-health-code-shadow (task 2936) by helper default — never claimable by the pilot lanes, and this issue carried no queue labels, so nothing ever picked it up.

    Remediation (2026-10-31, Oct-28 left-on-the-ground audit):

    • Shadow row cancelled; the task was re-enqueued into repo-health-code-pilot — task 2936 is now queued there (small_fix, priority 50, attempts 0/3, no not_before), verified by direct queue read after the move.
    • queue/queued label added to this issue.
    • Queue signal refreshed.

    The build is now live work for the next code lane shift.

  6. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo-worker-code
    • Session / ID: OpenChamber scheduled lane · ses_e5e6a60c95effeirbA39alqpp9
    • Task: Queue task 2936; validating issue Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) #2012 and its existing design/ownership before touching files.
    • Next: Check the current issue/PR state and ownership, then work or park with a resume brief within this scheduled run.
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  8. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: repo-worker-code
    • Session / ID: OpenChamber scheduled lane · ses_e5e6a60c95effeirbA39alqpp9
    • Task: Queue task 2936 is paused before implementation; no files were changed on its branch.
    • Blocker: Draft PR Wire OpenClaw ACP adapters to Nix runtime plugin #3275, authored and assigned to Drew, is open and owns overlapping home/openclaw/default.nix and home/openclaw/acpx adapter wiring.
    • Resume when: PR Wire OpenClaw ACP adapters to Nix runtime plugin #3275 is merged/closed or Drew explicitly releases the overlapping work. Then re-check Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) #2012 and all related PRs, sync the task branch to fresh main, coordinate the shared wiring, and continue the Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) #2012 acceptance (adapter, metering/cap, tests, and authorized laptop smoke).
  9. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    on Nov 1, 2026
  10. 74 remaining items

  11. dezren39
    removed
    queue/blockedQueue or user escalation state
    on Nov 16, 2026
  12. dezren39
    added a commit that references this issue on Nov 16, 2026

    feat(openclaw): acpx muse agent — ACP<->MSP adapter over muse serve (#…

    8818c6d
  13. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 16, 2026
  14. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: in-progress (PR #9026 rebased + verified; live meta turn waits on the pool gate it implements)

    • Agent: queue worker (repo-worker-code), lane any-a
    • Session / ID: task 2936 (small_fix, issue Build the acpx 'muse' agent — ACP adapter for the Muse CLI over muse serve (implements #1721) #2012)
    • Found via: queue claim (unfiltered), lane assignment direct; resumed from lane code-b's parked note (dependency cleared) and the prior unmerged implementation branch

    Done this shift:

    • Dependency gate re-verified cleared: PR Wire OpenClaw ACP adapters to Nix runtime plugin #3275 MERGED 2026-11-16T08:22:39Z, codex-only (files: codex-acp-wrapper.mjs, default.nix) — it does not build the muse agent.
    • Resumed the prior implementation (branch queue/2936-2012-acpx-muse-agent) instead of restarting: rebased onto current main (8818c6d), resolving the default.nix conflict against the code#1711 managed-wrapper layout. PR feat(openclaw): acpx muse agent — ACP<->MSP adapter over muse serve (#2012) #9026 is OPEN and MERGEABLE at that head.
    • Unit tests: node --test muse-agent-acp-wrapper.test.mjs — 6/6 pass (happy path + env hygiene + ledger, fresh-100% refusal, stale reading not refusing, turn budget, terminal auth error, exec fallback). nix-instantiate --parse home/openclaw/default.nix OK.
    • Live protocol smoke against the REAL muse serve binary (echo provider, stale pool fixture so no pool is drawn): ACP initialize -> session/new (real MSP session) -> session/prompt -> stopReason end_turn, agent text streamed as session/update chunks, ledger lines written with usage figures.
    • Live pool-gate check against the REAL current reading (~/atlas/meta-quota-export/latest.json, measured 2026-11-16T09:30:37Z): the 5h window is at 102.47%, so session/new was REFUSED with "meta pool at capacity" and the refusal was ledgered — the gate working as designed, not a failure.

    Remaining before merge: one real meta-provider coding turn through the adapter, which the gate correctly blocks until the 5h window resets (2026-11-16T11:04:30Z) or the rolling reading drops below 100%. This lane's shift budget covers that window; the turn, then merge, then task completion follow in this shift.

  15. dezren39
    added 2 commits that reference this issue on Nov 16, 2026

    fix(openclaw): propagate ACP cancel to the MSP turn + pool/budget/hos…

    671e07e

    Merge pull request #9026 from developing-today/queue/2936-2012-acpx-m…

    28d566f
  16. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Done — the acpx muse agent is built, verified live, and merged.

    Merged: PR #9026, merge sha 28d566f261bbd36acccf3c6fbe223b741bc9a42d (2026-11-16T11:07:32Z).

    What shipped

    • home/openclaw/acpx/muse-agent-acp-wrapper.mjs — ACP adapter for the Muse CLI: translates ACP <-> MSP against muse serve (design Consider: an acpx 'muse' agent — ACP adapter for the Muse CLI (plan-quota coding harness for OpenClaw) #1721). META_API_KEY is stripped from the child env; per-session JSONL ledger at ~/.local/state/muse-acp/ledger.jsonl; pre-dispatch meta-pool gate; per-session turn budget (MUSE_ACP_TURN_BUDGET, default 20); terminal auth error surfaces as "muse login required on laptop"; --help capability probing; muse exec fallback only before first output is committed.
    • Registration wired in home/openclaw/default.nix in all three places: managed wrapper file ~/.openclaw/acpx/managed-muse-agent-acp-wrapper.mjs, ~/.acpx/config.json agents, and acp.allowedAgents + the embedded acpx plugin agents.muse.
    • Tests: node --test home/openclaw/acpx/muse-agent-acp-wrapper.test.mjs — 9/9 pass. nix-instantiate --parse home/openclaw/default.nix OK.

    Review: all 5 Codex findings on the original head fixed in 671e07e3a3 and dispositioned in their PR threads (cancel propagation to MSP turn/cancel / exec SIGTERM, pool snapshot refresh split, failed-turn budget counting at dispatch, failed-initialize host disposal with stale-callback guards, stdin EPIPE routing). Codex re-review of the final head failed on Codex usage limits with zero findings; disposition recorded on PR #9026.

    Live verification (this shift)

    • Protocol smoke against the real muse serve (echo provider): initialize -> session/new -> prompt -> end_turn, agent text streamed, ledger lines with usage.
    • Pool gate verified in the refusing direction on a fresh exporter reading (5h window 102.47% used): session/new refused "meta pool at capacity" and the refusal was ledgered.
    • Live meta-provider coding turn after the window reset (fresh export 2026-11-16T11:05:39Z: 5h window 0% used, weekly 50.22%): MSP session 01a1e409-3eda-7583-aae6-91ab74cd316e, stopReason end_turn, agent replied DONE and created the requested file with the exact requested contents; ledger recorded the turn (inputTokens 26792, outputTokens 41, cacheReadTokens 26484).

    Closing as completed. Queue task 2936 completes as fixed_merged with this note as evidence.

  17. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 16, 2026
  18. dezren39
    closed this as completedon Nov 16, 2026
  19. developing-today
    added
    status:done
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

effort/mMedium: expected under 1 day of workepic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/protocol-gapAn agent touched this without the required agent-note comment or labels; needs review of whypriority/lowNice to have; do when convenientstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.