Repository navigation
feat(acpbridge): tailnet-only ACP-over-WebSocket bridge daemon - #9
Merged
Merged
Conversation
…pt-in Daemon now refuses to start without --no-tailscale until the Tailscale identity gate is wired (deferred per the acp-bridge plan). Match the flag name to the spec/plan terminology so the future tsnet integration slots in cleanly, and so the mobile e2e harness has a stable knob. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mairu acp-bridgedaemon: tailnet-only WebSocket server that proxies ACP JSON-RPC frames between remote clients (mobile app, future tooling) and locally-spawned ACP agents (mairu acp,claude-code --acp,gemini --acp).Last-Event-IDreplay so reconnects don't lose frames.session/request_permissionis fanned out to every attached client; first responder wins, 60s fallback synthesizes a denial so the agent never blocks indefinitely.PeerAuthorizerinterface withAllowAll(dev) andTailscaleAuth(production-bound) implementations.tsnet.Serverembedding is deferred — see plan note 1.mairu acp-bridge --addr <host:port> --no-tailscale. The--no-tailscaleflag is required until the Tailscale identity gate is wired; the daemon refuses to start without it so production deployments can't accidentally run open.Implements the plan at
docs/superpowers/plans/2026-04-28-mairu-acp-bridge.mdand the design atdocs/superpowers/specs/2026-04-28-mairu-mobile-design.md.What's in here
All packages have unit tests; e2e against real `mairu acp` lives in `acpbridge/e2e_test.go`.
Test plan
Known deferrals (see plan self-review)
Pairs with
#$(date +%s) (`feat/mairu-mobile` — the phone client that consumes this bridge). The mobile branch's e2e auto-skips on branches without acpbridge and will activate once this PR lands.
🤖 Generated with Claude Code