Agent Consult

One agent asks another a question and gets an answer that can draw only on files both of them could read. Asking never widens what the asker can see.

# ~/.mur/agents/pm/profile.yaml — the agent that asks
communication:
  sends_to: [writer]        # whom pm may ask (globs; empty = nobody)

# ~/.mur/agents/writer/profile.yaml — the agent that answers
communication:
  accepts_from: ["*"]       # whom writer answers (globs; default "*")

Then, in pm's chat: "Ask writer what the release checklist says about tagging." The agent calls its ask tool, and the answer comes back into the same turn.

Edit communication: by hand and restart the agent (mur agent restart pm); it is not part of the entitlements pin, so there is nothing to reseal.

What happens

  1. pm's ask tool checks that writer is in its communication.sends_to and that writer is running. Nothing is written if either fails.
  2. It posts a signed Ask to pm's own ask channel: the question, a random nonce and a deadline.
  3. It dials writer. The dial carries no authority of its own: writer reads the Ask from the channel and checks it itself.
  4. writer answers in a restricted turn (below) and posts the answer as a signed AskReply to the same channel.
  5. The answer is returned to pm's turn.

Both events stay in the channel, so mur agent cli follow and the MUR Hub chat tab show the question and the answer as consult lines, and mur channel verify checks their signatures like any other event.

The restricted turn

The answering turn has one tool, read_file, and nothing else: no shell, no writes, no network, no MCP servers. A path is readable only if both agents could read it in their own ordinary turns. writer may know a directory pm cannot see; that directory is out of reach while it answers pm. A symlink in a shared folder that points into a private one is refused the same way.

The scope is computed from the asker's own profile.yaml on the answerer's side. Nothing the asker sends can widen it.

What the answerer checks

Each check that fails is a named refusal, returned to the asker as the tool result. The first is the answerer's ordinary connection gate; the rest belong to consult and run in this order:

CheckRefused when
Callerthe caller is not in the answerer's communication.accepts_from. The connection is refused before consult runs.
Backendthe answerer runs on a CLI backend (claude, codex, …), which MUR cannot confine to one tool. Refused before anything is read.
Platformnot macOS (see Limits)
Signaturethe Ask does not verify against the asker's key, for example because someone edited it in the log. Checked always, whatever MUR_CHANNEL_REQUIRE_SIG says.
Addressee and deadlinethe Ask is addressed to another agent, or its deadline has passed
Replaythis asker's nonce was already answered

Limits

  • Memory is not scoped. The file scope covers read_file. It does not cover what the answerer remembers: recall and injected memories reach the restricted turn as in any turn, so an answer can reflect something the answerer learned elsewhere. Do not rely on consult to keep a remembered fact from an asker.
  • macOS only, for now. Only on macOS is an agent's own profile.yaml protected by the kernel from that agent's bash, which is what makes the asker's profile a trustworthy scope. Linux, FreeBSD and Windows refuse to answer.
  • Built-in loop only. An agent on a CLI backend can ask, but it refuses to answer.
  • The answer is as public as the channel. The scope bounds what an answer may draw on, not who reads it.

Turning it off

Deny the tool for an agent, and it can no longer ask:

mur agent perm tool-deny pm ask

To stop an agent answering, narrow its communication.accepts_from.

What accepts_from does not grant

accepts_from decides who may talk to an agent. It does not decide who may operate it. A peer it admits can call the conversation methods (message/send, agent/card, skills/get, channel/delegate, channel/consult) and nothing else:

MethodsServed to
tools/list, tools/callthe agent's own processes only. Not even you can run an agent's tools over its socket.
secret/set, secret/delete, model/set, effort/set, memory/reload, tasks/get, tasks/list, tasks/cancel, turn/steer, hitl/list, hitl/forget, hitl/pendingyou. The mur CLI and MUR Hub attach a proof derived from a key in ~/.mur/secrets/, which a sealed agent cannot read.
  • One exception. The agent that submitted a task may call tasks/get and tasks/cancel on that task, and on no other. This is what lets mur fleet stop cancel member turns when the fleet's router is a sealed agent.
  • A refused call returns -32011, with the reason in the message. See Troubleshooting.
  • Known limits. A sibling agent can claim another agent's submitter rights (#2497), and a captured proof can be replayed against the same agent and method (#2498).

Configuration

# ~/.mur/config.yaml
consult:
  ask_expiry_secs: 600      # how long an Ask stays answerable; 0 = default (600)

The deadline is signed into the Ask, so changing it affects new questions only.

Upgrading

Upgrade every MUR binary on the machine together: the CLI, MUR Hub and every agent runtime, then mur update --restart-agents. A CLI or Hub older than v2.103.0 sends no owner proof, so an upgraded agent refuses the owner methods above. A binary older than v2.99.0 that appends to a channel whose last line is an Ask reuses that line's sequence number and silently drops its own event. An agent runtime that has not been restarted is refused at the dial with a mur agent restart <agent> hint.