Approval center and audit trail
This guide explains what Guard does when it stops an action, where you resolve it, how long an approval lasts, and where to look afterward. Everything here runs locally. Approvals and the audit trail work without Guard Cloud.
What happens when Guard stops an actionDirect link to What happens when Guard stops an action
By default Guard uses Find a safe alternative for every harness. When an action needs review, Guard denies it without opening a permission prompt, a browser approval page, or an MCP approval prompt. The agent receives the reason and guidance to use a permitted alternative, and it is expected to avoid equivalent retries and explain the limitation if it cannot finish safely.
The denial is still recorded. The pending review appears in the Inbox of the local dashboard, and you can approve it there. If Guard cannot write the Inbox record, the action stays blocked.
To get approval prompts instead, open Settings, then Approval gate, then When Guard blocks a request, and choose Ask me for approval. The device setting is blocked_request_mode, with the values "safe-alternative" (default) and "ask". Workspace configuration cannot switch a project to prompts. In either mode, hard blocks and sandbox requirements stay enforced, and Watch mode keeps recording without stopping anything.
When prompts are on, the Ask surface setting picks where they appear: in the app when possible, always in Guard, or never open a browser.
Where you resolve a reviewDirect link to Where you resolve a review
Guard uses three approval surfaces:
- The native approval dialog of the harness, where the harness has a strong permission model of its own.
- The local Guard dashboard on
127.0.0.1. Pending reviews are in Inbox, and the same actions are under each app's activity. - The terminal, through
hol-guard approvals.
Which surface a given harness uses depends on the harness and on the setting above. See Harness support for per-harness behavior.
hol-guard approvals list
hol-guard approvals approve <request-id>
hol-guard approvals deny <request-id> --reason "not part of this task"
hol-guard approvals open <request-id>
list prints pending requests and recent receipts without opening the dashboard. open prints the dashboard URL for one request. If a link from an old block message returns an error, use Repair approval center in Settings, under Data and repair.
approve and deny take --scope artifact|publisher|workspace|harness|global. The default is artifact, which resolves only that request. Add --remember to save an exact-action rule at artifact scope instead.
Choices on a reviewDirect link to Choices on a review
Every review Guard pauses for can be approved. Guard offers Allow once on every review, and Always allow whenever it can bind the approval to an exact command. Hard blocks and sandbox-required results are verdicts, not reviews, so there is nothing to approve for them.
When Always allow is unavailable, the card says why and offers Allow once instead. Typical reasons are a tool call with no stable command or file to remember, a program that can run other code or config, chained steps Guard cannot verify one by one, a launch Guard cannot verify, files that may hold secrets, commands that delete, move, or send data, searches that cover too much, and repositories that configure Git helpers Guard cannot verify.
In the dashboard the duration choice reads This time or Always allow exact action. For a script bound to a version, the choices read Run once and Always allow this version in this project. The buttons are:
| Button | Effect |
|---|---|
| Allow just this once | Allows only this exact action once. Nothing is saved. |
| Allow and remember for this project | Saves the exact action for the current project. Matching actions skip review there until the action changes. |
| Approve and remember | Saves the decision at the scope you pick. |
| Keep blocked | Leaves the action blocked and saves nothing. |
| Block in project, Block matching actions | Saves a block at the scope you pick. |
Scopes, from narrowest to broadest, are this action, this project, this source, this app, and everywhere. A request shows only the scopes it supports. When Always allow is unavailable for a request, the card explains why and offers Allow once instead.
How an approval is reusedDirect link to How an approval is reused
- Allow once lets the agent's retry of that command through. The retry is a new tool call, so the approval binds the command, working directory, session, and policy, and leaves out the per-attempt call id. Native one-time approvals are honored for 5 minutes. Other one-time approvals are honored for 15 minutes.
- Always allow is saved against the command's hash. It ends only when you remove it or the command's hash changes.
- When Guard can prove what a command runs, the hash covers the resolved program and file contents as well as the command, plus Guard's rule set. Editing the script, or changing those rules, makes it a new command and Guard asks again.
- When Guard cannot prove it, for example an executable outside the workspace or a mutable script launcher, the approval falls back to a hash of the harness, tool name, workspace, working directory, and the command text or full tool input.
require-reapprovalmeans "ask again when the artifact changes", not "ask every time". An allow you saved still answers the identical retry.
Two cases are once-only. A request recorded by an older Guard release carries retry_cannot_reuse_approval, so the card cannot offer Allow once for it. Let the agent retry the command, and the fresh request offers both choices. A script that the harness cannot run from a verified snapshot reports script_execution_binding_unavailable. Keep that one blocked until a supported execution route is available.
Package approvalsDirect link to Package approvals
For a package install, a workspace approval is scoped to the repository identity plus the dependency graph. A workspace allow also answers the identical install in a linked worktree of the same repository, but only when the package execution context is identical. Approvals saved by an earlier portable format are ignored. If Guard cannot read, trust, or bound the inputs (unreadable, unsupported, oversized, symlinked, or dynamic files), the approval is limited to This retry only. Credentials never go into the saved evidence, only digests.
Browser MCP approvalsDirect link to Browser MCP approvals
Routine browser MCP actions (navigation, inspection, interaction) can be approved for a time instead of one call at a time. The card offers This exact call, This browser capability, or the server's routine tools, for once, 15 minutes, 1 hour, or 5 hours. Transfers, privileged browser actions, sensitive surfaces, shared browser profiles, secret access, file system access, command execution, and destructive actions are excluded and always need their own review.
Compound commandsDirect link to Compound commands
Guard parses shell chains, pipes, and wrappers and evaluates the whole command. A safe first segment does not hide a destructive later one. When Guard cannot fully parse a command and sees sensitive or destructive evidence in it, the minimum action is review. An allow grant for a local tool does not cover compound commands, wrappers, or redirects.
Waiting for a decisionDirect link to Waiting for a decision
A held package request or a bound hook review includes a request ID and a read-only wait command that an agent can run:
hol-guard approvals wait <request-id> --json
The command waits up to 120 seconds. --timeout <seconds> accepts 0 to 600, and 0 checks immediately. Exit status:
| Exit | Meaning |
|---|---|
| 0 | An allow decision was observed. |
| 1 | The request was blocked or was not found. |
| 2 | The wait timed out. The request stays pending, and a timeout is never approval. |
| 3 | The approval store is unavailable. The decision is unknown. |
Waiting does not approve, consume the approval, or run anything. After an allow, retry the identical action through Guard. Guard revalidates the retry, and a changed command or artifact may need a fresh review.
Approval gateDirect link to Approval gate
You can protect remembered trust with a local password and an optional app code. When the gate is on, Guard asks for it before it saves a scoped or broad allow, clears policy or approval history, or changes protection settings. The Approval gate tab in Settings manages it, hol-guard settings approval-password and hol-guard settings approval-totp do the same from the terminal, and hol-guard approvals unlock --duration 15m|1h opens a short cooldown window. hol-guard approvals lock ends it.
What the audit trail includesDirect link to What the audit trail includes
Each decision leaves a local record:
- The pending request, its changed fields, and the artifact that triggered it.
- The decision and the scope it was saved at.
- A receipt for the evaluation, with the reason, the policy action, and the approval source.
- Remembered rules, which you can list and remove under Rules and exceptions.
Use hol-guard receipts and hol-guard history to read it from the terminal, or Evidence in the dashboard. See Receipts, changes, and history. To clear remembered rules and resolved approval history for a re-test, use hol-guard approvals clear-history --harness <harness> or --all.
Recommended operator loopDirect link to Recommended operator loop
- Run your agents through Guard and leave the default safe-alternative mode on.
- Review the Inbox when something is held. Prefer Allow once until a pattern is stable.
- Save Always allow for commands you recognize, at the narrowest scope that fits.
- Check receipts and history only when something changes or looks wrong.
- Tune presets or write a policy file once repeated approvals show a stable pattern.