Filesystem grants

What an agent may read and write is declared in its profile and installed into a kernel sandbox at startup. Those are not the same thing, and the gap between them is where the confusing failures live โ€” a grant can be written down, dropped by policy, and never reach the kernel at all.

mur agent perm list-paths mur
agent 'mur' โ€” sandbox enforcing (macos-sbpl)

READ
  โœ“ /Volumes/Firecuda4tb/Projects/mur
  โœ— /Volumes/Firecuda4tb/Projects/cc-proxy
      dropped โ€” path does not exist on disk
  โœ“ /Users/david/.mur/skills

Three states, not two

StateWhere it livesWhat it means
grantedprofile.yamlYou asked for it
admittedafter policyIt survived the checks โ€” a path that does not exist on disk is dropped
enforcedthe running sandboxThe kernel actually received it

list-paths shows all three at once: โœ“ for a grant that reached the kernel, โœ— dropped with the reason, and a plain ยท for a grant recorded but not yet enforced because the agent is not running.

The header is the fourth fact โ€” whether the sandbox is enforcing at all, and which backend installed it. An agent whose seal failed is not an agent with no grants; it is a different situation entirely, and the two used to look identical.

No approvals without a sealed sandbox. An agent running advisory-only (fail_closed_on_sandbox_error: false and the kernel seal failed) can read its own signing key, so any approval it holds could be forged. On that boot, tools that need approval are refused outright instead of asked โ€” including ones you approved earlier. The refusal points back at mur agent perm list-paths <agent>, whose header shows the seal state. Tools set to allow still run. Restarting does not help when the seal fails for a platform reason (no Landlock, sandbox_init refused); it fails the same way every time.

Granting

mur agent perm allow-read  mur /path/to/tree
mur agent perm allow-write mur /path/to/tree
mur agent perm deny-path   mur /path/to/secret
mur agent perm list-hosts  mur

Grants are recursive: allowing a directory allows everything under it. Changes take effect on the agent's next start โ€” the sandbox is installed once, at startup, and cannot be widened afterwards.

allow-write refuses a path that does not exist, so a write grant is always for something real. When a write is denied at run time, the agent's own error names the nearest existing ancestor you could grant instead of the path it tried.

Writable but not deletable

A rule that asks before rm matches text, and an interpreter can always spell a delete the rule does not recognise (python3 -c 'import os; os.remove(...)'). A no_delete entry puts the refusal in the kernel instead:

mur agent perm no-delete-path mur ~/work/ledger
mur agent perm remove-path    mur no_delete ~/work/ledger   # undo

The path stays writable โ€” create and edit files as usual โ€” but rm, os.remove, shutil.rmtree and renaming a file out of it all fail, whatever tool or language issues them.

PlatformHow it is enforced
macOSfile-write-unlink is denied on the subtree, layered on top of any write grant
LinuxLandlock cannot subtract a right from a subtree, so the covering write grant is split: the path and the directories leading down to it lose removal rights, sibling directories keep them. Files sitting directly in those intermediate directories cannot be deleted either
OtherThe agent refuses to start rather than run with the entry unenforced

Two limits are deliberate, and mur agent perm show prints them next to the list:

  • Truncation still works. : > file or opening a file for writing is a write, not a removal.
  • Temp-file + rename writers break. Replacing a file by renaming over it needs removal rights, so editors and tools that save that way fail inside a no-delete path.

The entry only means something inside a write grant. no-delete-path warns when no write grant covers the path, and mur agent doctor reports both an uncovered entry and a platform that cannot enforce one.

The path does not have to exist yet. A missing entry is resolved through its longest existing ancestor, so ~/work/alias/future with alias a symlink to real protects ~/work/real/future once it is created. An entry containing .. is refused at launch: after a symlink, .. could point at more than one directory, and the agent will not guess which one you meant.

Editing entitlements: by hand

MUR keeps a copy of each agent's entitlements outside the agent tree, at ~/.mur/entitlement-pins/<agent>.json. No agent sandbox can write there. When an agent starts, its profile.yaml entitlements are compared against that copy, and a mismatch refuses the start:

error[entitlements_unpinned]: mur's profile.yaml entitlements changed outside MUR (filesystem). If you made this change, accept it with `mur agent perm reseal mur`; otherwise the agent may have edited its own profile โ€” inspect it before resealing.

Every mur agent perm โ€ฆ command and the Hub's Permissions section update the pin for you. Only a hand edit of entitlements: needs the extra step:

mur agent perm show   mur   # check the entitlements are what you meant
mur agent perm reseal mur   # accept them
mur agent restart     mur

Only entitlements is pinned. Changing the model, skills or companion settings by hand never needs a reseal. An agent created before this check existed gets pinned automatically the first time it starts after the upgrade.

Why it exists. Landlock is allow-only, so on Linux an agent's own directory is granted whole and its shell could rewrite its own profile.yaml. The next start would then seal whatever the agent wrote. macOS denies that write in the kernel. The pin covers both platforms. It also can't be laundered: if the entitlements on disk already differ from the pin, an unrelated mur agent perm save doesn't advance the pin. It warns you instead, and the agent stays refused until you reseal.

Why a grant gets dropped

The sandbox backends differ in what they can express. Linux Landlock has no deny rule, so an allow that overlaps a protected path has to be dropped whole; macOS SBPL can install the allow and re-close the protected paths after it. A grant that works on one host can therefore be dropped on the other โ€” which is why the drop is reported per path, with its reason, rather than summarised.

The kernel is not the only gate. MUR's tools check the same grants in-process before acting, and on Linux that check is the only place a deny-within-allow is enforced, precisely because Landlock cannot express one. A path can therefore be refused by the tool while the kernel would have allowed it โ€” see Troubleshooting for what that looks like.

An agent's own identity.key is always denied to the agent itself, on every backend: holding it is signing authority. Its own profile.yaml stays readable, so the agent can answer "what am I allowed to do?", but it can't make a change to its entitlements stick. macOS denies the write in the kernel. On every platform, the pin above refuses the next start.

That is self-protection, and it is the narrow case. A larger set of paths is refused to every agent โ€” other agents' directories and signing keys, ~/.mur/secrets, ~/.mur/auth.json, the host identity.key, the runtime binary and the autostart directories. Those are listed with their reasons under Troubleshooting.

Delegation checks the grant first

When work is handed to other agents, each member is told which directory to work in: the git repo root of the target, or the directory itself outside a checkout. Before anything is dispatched, MUR checks that every member may write there. A member never discovers a missing grant by building in the wrong tree.

mur fleet run builder --cwd /path/to/repo        # members routed to the repo root
mur workflow run release-notes --channel-new     # delegate_to steps are gated too

Three places dispatch to members, and all three go through the same check:

WhereTarget directory
mur fleet run--cwd, or the shell's directory when run by hand
parallel_jobs (agent tool or MCP tool)its cwd argument, or the calling agent's session directory
a workflow's delegate_to stepsthe current directory's repo root

For each member and directory, in order:

  1. The directory must exist โ€” a grant for a missing path would be dropped when the sandbox seals, so it is refused here instead. A target that covers the whole machine, the whole home directory, or a volume root is refused as too broad.
  2. A deny entry is final โ€” the dispatch is blocked with no offer to grant.
  3. Granted and not guessed โ€” it goes through silently.
  4. Anything else asks once โ€” as a write-tier approval. If you approve, the directory is added to the member's filesystem.write, the sandbox is resealed, and the member is restarted if it runs as a service. A member you started by hand is never respawned by MUR. The dispatch stops and tells you to run mur agent restart <member>.

A target that was guessed is always confirmed: an agent's session directory filled in because the call named none, or a workflow's current directory. That holds even when the grant already exists. The member's instructions also say the directory was assumed, so a wrong guess is visible rather than silent.

The check runs per member, not per job: ten jobs to one member raise one approval. Nothing is dispatched until every member passes. Unattended, the approval parks instead of timing out, and the message names the mur channel approve <channel> <hitl_id> that releases it.

Two things worth knowing:

  • A workflow only delegates on a channel run. Without --channel-new or --channel <id>, delegate_to steps print their description and call no one, so there is nothing to gate. mur workflow run warns when that happens.
  • A loop is checked once, and only when you start it. mur fleet run --loop routes every iteration to --cwd (or your shell's directory) and runs the check once, before the first iteration and before the deadline clock starts, so time spent approving is not taken from the run. If the check stops it, no job is claimed: queued work stays queued for the next run. A loop the daemon starts on a schedule, a loop started from the MUR Hub, and mur deep-research have no target directory, so they are neither routed nor checked.
  • Build Lane โ€” allow-spawn-dir, for toolchains that compile and then run their own output.
  • Unattended Approvals โ€” what happens to a grant approval when nobody is there to answer.