Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions PROTOCOL.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,12 @@ The same page is reachable from the user's own Tailscale network (no relay of Ba
- A device may not change a bot's check, in any form (`set_bot` with `check`, `checkModel` or `checkBot`, refused `forbidden`), as it may not change a precheck: only the person at the window decides whether answers are checked.
- A device may not set or change a routine's `watch`, `deliverChannel`, or `deliverChat` (a frame whose `routine` has any of those keys, even `null`, is refused `forbidden`; the network page's `keepPrecheck: true` keeps them as stored): a watch makes the service call a connector tool on its own, and channel pairing is local-only, so only the person at the window decides.

### Loopback MCP tool bridge (installed agents)

When a bot runs an installed agent over ACP (`agentcore acp …`), `appd` starts a per-bot loopback-only HTTP MCP server bound to `127.0.0.1:<ephemeral-port>` with a random 32-byte per-session bearer token (verified in constant time, never logged, never persisted). `appd` injects it automatically into the bot's ACP `Op::Connectors` list as the `bate` HTTP MCP server without mutating any global agent configuration files, and shuts it down immediately when the bot's engine stops or the bot is deleted.

The bridge exposes `memory_list`, `memory_read`, `memory_write`, `browser`, `apple`, `desktop`, `list_surfaces`, `read_surface`, `list_peers`, and `message_bot`. Every `tools/call` runs through `appd`'s exact permission checks (`decide_alone`), `Needs you` approval cards (supporting `Approve`, `Deny`, `Always`, and `Conversation`, while still always asking for Apple app sends/changes), pause and token-limit enforcement, and `tool_start`/`tool_end` transcript audit trail.

### Speech (the window, not the service)

Both parts run on this Mac with no network and send nothing to the service.
Expand Down
Loading
Loading