Unattended Approvals

A risk-tiered step waits for a human. But when a run is unattended — a daemon tick, a schedule, a fleet loop — nobody is there to answer inside the next few minutes. MUR parks the request instead of burning a timeout against it.

mur channel approve fleet-builder hitl-01J...       # approve, whenever you get to it
mur channel approve fleet-builder hitl-01J... --deny
mur fleet run builder                               # re-run: it continues from there

What happens when nobody answers

The gate writes a durable request into the run's signed channel and returns immediately:

  • the step is blocked — not failed, so nothing is reported as broken and no on_failure handling fires;
  • steps that do not depend on it still run to completion, so the run gets as far as it legitimately can;
  • the channel stays input-required, so every surface keeps showing that a human still owes it an answer;
  • a --loop run stops rather than paying for another iteration that would arrive at the same unanswered question.

mur job status and mur fleet status report the run as blocked. That is deliberately not a terminal state: an approval resumes it.

Approving later

Approve from Hub's Needs You card or with mur channel approve <channel> <hitl_id>. Then re-run — the next fleet run, loop iteration, or schedule tick picks up where the last one stopped, and steps that already completed are skipped.

This works because an approval is matched on the action's content hash, not on the request id. The id is minted fresh every call, so an id-keyed lookup could never connect your answer to the next run.

Two consequences fall out of that, both intended:

  • Change the action and the approval no longer covers it. Different bytes, different hash — nothing you did not see gets executed on the strength of something you did.
  • A denial sticks. It settles the action for the same window rather than being re-asked every iteration.

Approvals and denials count for 7 days. The hash bounds what was approved; the window bounds how long ago.

Answers only count on an intact log

Your answers live in the channel log, and an agent could try to edit it — delete your later "no" so only the earlier "yes" remains. So the log is hash-chained, and its signed head is kept outside the agent's sandbox. The gate only acts on a log that passes that check:

  • On a damaged log, earlier answers stop counting. Approvals and denials alike are ignored and you are asked afresh.
  • A gate already waiting on you denies at once if the log is damaged mid-wait, rather than sitting out its timeout.
  • After a crash you may be asked one extra time. A write cut off mid-line looks like damage; re-asking is the deliberate, safe answer.

Run the same check by hand with mur channel verify <channel>. It is read-only and exits 0 when the log is intact, 2 when it is damaged, and 1 when the check could not run.

Recovering a damaged channel

A damaged log stays distrusted: every action on that channel is asked afresh, including ones you approved after the damage. To get out of that state, run:

mur channel repair <channel>          # asks for confirmation
mur channel repair <channel> --yes    # non-interactive (scripts, CI)
  • An intact channel is left alone. Repair runs the same check as verify and exits 0 without touching anything if the log is intact.
  • The log is never deleted. It is renamed in place to ~/.mur/channels/<channel>/events.quarantined-<timestamp>.jsonl for inspection. The old signed heads are replaced; what they held (line count, seq, chain hash) is copied into the repair record.
  • A fresh chain starts. Its first event is a signed record of the repair: who ran it, where the old log went, and what was wrong with it.
  • Old answers do not carry over. The damaged log is never re-signed as trustworthy, because a log with a denial cut out still verifies cleanly. The next action is asked once more; your new answer is reused from then on.
  • Pending requests on the old log are dropped. Work that was waiting on them asks again.

Without --yes, repair needs a terminal to confirm in. It also needs the router signing key on disk; without one it refuses and changes nothing, rather than start a chain it cannot sign. An agent's own approval channel is repaired too — its fresh chain is sealed with that agent's key — so run repair from your own shell, not from inside an agent's sandbox.

Deleting a conversation

When a conversation holds something it should not — a token pasted by mistake — remove it for good:

mur channel delete <handle>          # shows the conversation and asks first
mur channel delete <handle> --yes    # non-interactive (scripts, CI)
  • Everything goes. The log, its index and search rows, its signed head, and every agent's copy of its history (~/.mur/agents/<agent>/conversations/channels/<id>.json, and the older conversations/<id>.json) — including agents that have since left it.
  • Name it the way /channels shows it. A handle prefix of at least 4 characters, or the whole id. A prefix that matches more than one channel deletes nothing and lists the matches.
  • A running turn always refuses. However long it has been running, a turn would write its history back after the delete, so delete refuses while one is in progress — --force does not change that. A turn that starts while the delete is happening waits, then finds the conversation gone.
  • A pending approval refuses without --force.
  • Only conversations. Fleet and workflow run channels are audit records and are always refused.

Unlike repair, nothing is kept. Without --yes, delete needs a terminal to confirm in, and it exits 2 when you answer no. Run it from your own shell: it writes signed heads outside any agent's sandbox, so no agent or MCP tool can reach it.

Declaring a policy in fleet.yaml

hitl:
  mode: defer                        # defer | wait | deny
  auto_approve_tiers: [read, write]  # standing responsibility, capped at write

mode — what an unanswered gate does. Absent, MUR decides by whether a terminal is attached. State it explicitly when that is a poor proxy for somebody is watching:

modeUse it when
defernobody is watching in the next few minutes (the unattended default)
waitthe run is headless but a person is on Hub — poll for the answer
denythis fleet must never reach for a human; fail immediately and legibly

deny is a floor, not a preference. It refuses before consulting anything, so neither an older approval for the same action nor a stray --yes can lift it.

auto_approve_tiers — risk tiers whose actions this fleet's owner has pre-approved, so they run without asking.

It is an explicit list rather than a ceiling, and it is capped at write. spend, destructive, privileged and network-egress cannot be granted here at any tier: their cost is not something noticing afterwards can undo. mur fleet run refuses a fleet that lists one, rather than ignoring it quietly — a config line you believed took effect is worse than one that errors.

Three things stay true whatever you grant:

  • Your explicit no to an action outranks a standing grant for its tier. A decision someone actually made beats a blanket one made in advance.
  • Auto-approvals are still audited. The gate writes the request and its response to the channel with surface: policy, naming the tier it came from — so what did this run do without asking me? always has an answer.
  • There is no blanket auto-approve. --yes exists for interactive runs and is not reachable from an unattended fleet path.

A single mur agent send

mur agent send is headless too, but it is one turn, not a run that can be re-run later. By default a tool call that needs approval ends the turn at once with hitl_approval_required — recoverable, nothing recorded as a decision. Add --wait-approval to keep the turn open and answer it from another terminal:

mur agent send builder '' --wait-approval      # wait up to 30m
mur agent send builder '' --wait-approval=10m

mur agent hitl builder pending          # what is waiting, with a redacted label
mur agent hitl builder approve 0199aa   # a unique id prefix is enough
mur agent hitl builder deny 0199aa      # the turn ends with hitl_denied

While it waits, the exact approve and deny lines are printed on stderr; stdout still carries one JSON result. The wait ends at the flag's limit (default 30m) or the agent's deadline, whichever comes first. If nobody answers, the result is the same hitl_approval_required as without the flag, and no decision is recorded. An approval is remembered for that exact call, like one given in chat.

The agent has to be running a runtime that supports it; against an older one, send --wait-approval refuses up front and asks you to restart the agent, rather than ignoring the flag.

See also

  • Fleet Loops — what ends a loop, and the guards around an unattended one
  • Agent CLI — approving a tool call mid-conversation, which is a different gate