Skip to main content

Exceptions and expiring windows

Guard has three ways to let something through that it would otherwise stop or ask about. They differ in who creates them, how long they last, and where they are managed:

KindCreated byLastsManaged in
Remembered ruleYou, from a review or the terminalUntil you remove it or the command changesLocal dashboard, Rules and exceptions, Remembered rules
Time-limited approvalYou, for a bounded windowOnce, 15 minutes, 1 hour, or 5 hoursCreated from the review card, listed by hol-guard exceptions
Cloud exceptionA Guard Cloud approver, after a requestUntil its expiryGuard Cloud, shown read-only on the device

Use an exception for an unusual, bounded case. If the same request keeps coming back, change a preset or a policy file instead, so the decision is made once and shared.

Remembered rulesDirect link to Remembered rules​

Choosing Always allow or Keep blocked on a review saves a remembered rule at the scope you pick. A rule is local to your machine. See Approval center and audit trail for scopes and for what makes a saved approval stop matching.

Open Rules and exceptions in the local dashboard. It has three tabs:

  • Remembered rules lists what you approved or blocked, grouped by app, with a button to remove each rule.
  • Cloud exceptions lists signed exceptions synced from Guard Cloud, and starts a request for a new one.
  • How Guard decides explains which rule wins when several apply.

Removing a rule means the next matching action is reviewed again.

From the terminalDirect link to From the terminal​

hol-guard allow and hol-guard deny save a remembered rule for an app. --scope is global, harness (the default), workspace, artifact, or publisher. --scope artifact needs --artifact-id, and --scope publisher needs --publisher. Add --expires-in-hours to make the rule expire on its own.

hol-guard allow codex --scope artifact --artifact-id <artifact-id> --reason "release build" --expires-in-hours 8
hol-guard deny codex --scope harness --reason "paused while we investigate"

If the approval gate is on, a broad allow asks for your password or app code first, and the command exits with status 4 when the gate blocks it.

hol-guard policies
hol-guard policies clear --harness codex
hol-guard policies clear --decision-id <id>
hol-guard policies verify

policies lists remembered rules and synced Cloud rows. policies clear needs --decision-id <id> (repeatable), --harness <name>, or --all, and it goes through the approval gate when that is on. policies verify checks the integrity signature on each saved rule. When integrity enforcement is on, it exits with status 1 if a rule was tampered with, is unsigned, or was signed by an unknown key. hol-guard approvals clear-history --harness <harness> (or --all) removes remembered rules and resolved approval history together, which is useful when you re-test a setup.

Time-limited approvalsDirect link to Time-limited approvals​

Some approvals expire on their own. Browser MCP approvals are the main case. A review card for routine browser actions can allow one exact call, one browser capability, or the server's routine tools for once, 15 minutes, 1 hour, or 5 hours. Transfers, privileged browser actions, secret access, file system access, command execution, and destructive actions are never covered by a window and always need their own review.

List active exceptionsDirect link to List active exceptions​

hol-guard exceptions
hol-guard exceptions --harness codex
hol-guard exceptions --json

The command prints active exceptions with their expiry. It combines two sources:

  • Synced Cloud exceptions.
  • Local remembered rules that have an expiry. Rules saved without an expiry are not listed here. Use the dashboard to see them.

The command only reads. It cannot create, extend, or remove anything.

Cloud exceptionsDirect link to Cloud exceptions​

A Cloud exception is a governed risk acceptance: it has an owner, an approver, a reason, an expiry, and a source record, and it reaches the device as part of a signed policy bundle. The device only applies it after it verifies the bundle signature against the keys it trusts, so a plain file or an unsigned response cannot add one.

On the device, Cloud exceptions are read-only. Guard does not let the local dashboard author broad exceptions directly. To get one, request it:

  1. Open Rules and exceptions, then Cloud exceptions, and start a request. The device must be connected to Guard Cloud.
  2. Source. Anchor the request to a recent approval, an evidence receipt, or a request ID that Guard recorded on this machine.
  3. Scope. Pick the narrowest scope that works: exact action, this working directory, this project, or this app. Team-wide exceptions are created in Guard Cloud, not here.
  4. Guardrails. Give a reason of 24 to 280 characters and a requested expiry in the future. You can add a max-uses note and a linked ticket. Those two are appended to the reason for reviewers and are not enforced on the device. Broad scopes may need extra verification during Cloud review.
  5. Review and submit.

A reviewer in Guard Cloud approves or rejects the request. After approval, the exception arrives on the device with the next policy sync and shows in the Cloud exceptions tab and in hol-guard exceptions.

Cloud exceptions never weaken a managed-restrictive floor. A block that organization-managed controls set stays a block, and local rules cannot lift it.

Operating loopDirect link to Operating loop​

  1. Prefer Allow once while you are still learning what an agent needs.
  2. Save a remembered rule only for commands you recognize, at the narrowest scope.
  3. Request a Cloud exception when the allowance must be recorded, approved by someone else, and expire.
  4. Review hol-guard exceptions periodically and let windows lapse instead of extending them by habit.
  5. Promote repeated exceptions into a preset change or a policy file.

Next guidesDirect link to Next guides​