Introducing a new way to review your PRs.

Read the announcement

hashgraph-online / hol-guard

Open-source antivirus and firewall for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.

View on GitHub

44 documents · Updated Nov 23, 2026

docs / dashboard-review-and-approval-workflow

Dashboard review and approval workflow

The Dashboard review and approval workflow gives operators one place to inspect actions that Guard paused or observed and then allow or block them. It joins a searchable review queue with action detail, bounded decision scopes, proof checks, bulk approval, extension recommendations, and recovery guidance so a decision can safely return to the app that requested the action. A local signed session controls whether the open tab may save that decision. See the Dashboard product workspaces page for the wider dashboard layout and Approval gates and scope resolution for the policy model.

Review queue

The review queue is the operator’s working set of pending actions and Watch-only findings. It keeps the queue and the selected decision card together so the operator can move through work without losing the current context. Search, filters, and paging change the visible work set without losing a selected request that was opened from a setup prompt. The approval center carries the actionable queue count into the desktop sidebar and mobile header so waiting work stays visible across dashboard views. When protection is in Watch mode, the inbox adds a banner that lets the operator restore protected mode or open Settings if the direct change cannot complete. dashboard/…/approval-center-layout.tsx• L126-190, dashboard/…/approval-center-layout.tsx• L242-332, dashboard/…/review-workspace.tsx• L97-153, dashboard/…/review-queue-page-sync.ts• L1-21

Queue states

The queue distinguishes work that needs a decision from work that is clear or cannot be changed. An empty queue reports that no action needs a decision and shows protection health, including whether Guard is still checking protection or whether the queue read is incomplete. A selected request can also be loading, stale, already resolved, expired, or protected by a terminal policy; those states guide the operator to wait, reload, retry the action, or use the required control instead of offering a misleading approval. MCP policy requests can route to a dedicated policy panel rather than the normal decision card. Saved native business requests can be shown for review, but they are read-only until review and execution are connected.

The queue supports these operator views:

  • Pending actions that Guard paused before they run.
  • Watch-only findings that already ran but are recorded for review.
  • Saved business requests that provide review context without an execution decision.
  • Empty queue when no action needs a decision.
  • Unavailable or stale detail when the local state changed after the queue was loaded.
  • Terminal decisions when policy blocks an override or requires a sandbox.
  • MCP policy requests that need a policy-specific review surface.

When a decision succeeds, the dashboard selects the next usable request. If none remains, it returns to the inbox and shows the saved result. A result stays tied to the request that produced it, even if the next request is already visible. Duplicate retries are resolved as part of their grouped request, which prevents the same event from remaining in the queue under another retry ID. If a Codex continuation is still pending or fails, the empty state keeps that resume status visible instead of presenting the queue as fully complete. dashboard/…/approval-center-layout.tsx• L33-50, dashboard/…/approval-center-layout.tsx• L126-190, dashboard/…/approval-center-utils.ts• L377-395, dashboard/…/use-review-decision-resolve.ts• L69-73, dashboard/…/use-review-decision-resolve.ts• L161-180, dashboard/…/review-states.tsx• L107-163

References: dashboard/…/approval-center-layout.tsx• L33-53 dashboard/…/review-queue-list.tsx• L17-43 dashboard/…/review-queue-list.tsx• L169-215 dashboard/…/review-workspace.tsx• L130-219 dashboard/…/review-queue-page-sync.ts• L8-20 dashboard/…/review-states.tsx• L107-163

Queue navigation

Queue navigation reduces a large set of actions to a useful review order. Operators can search the action text and context, group the queue by broad meaning, filter by setup need, category, or date, sort by time or risk, and move through pages. The active row opens its decision card; unread state marks new work without changing the underlying Guard decision. When a filter or page change hides the active row, the workspace selects the first visible request. A request opened from a setup card remains pinned until the operator changes the page or filters.

The broad queue groups are:

GroupMain purpose
File read / writeReview local file access and edits
Shell executionReview commands and workspace changes
Network / data egressReview external destinations and data movement
MCP, skill & packagesReview tool calls and package activity
Agent autonomy & otherReview prompts, policy changes, launches, and uncategorized actions

Keyboard movement follows the visible list. Bulk selection uses the filtered queue and keeps non-eligible rows visible with a disabled selection control rather than hiding why they cannot be chosen. Page-level selection applies only to eligible rows on that page. The shell keeps the waiting count visible in the inbox navigation and local Guard status, while the mobile header exposes the queue entry when review work is waiting. During bulk selection, the standard select-all and Escape shortcuts apply without changing focused form fields. dashboard/…/approval-center-primitives.tsx• L41-53, dashboard/…/approval-center-primitives.tsx• L101-125, dashboard/…/approval-center-primitives.tsx• L163-241, dashboard/…/review-queue-list.tsx• L187-215, dashboard/…/review-workspace.tsx• L228-268

References: dashboard/…/approval-center-layout.tsx• L33-50 dashboard/…/review-queue-list.tsx• L17-43 dashboard/…/review-queue-list.tsx• L169-215 dashboard/…/review-workspace.tsx• L130-219 dashboard/…/review-queue-page-sync.ts• L8-20

Decision cards

The decision card explains one action before it presents a choice. It identifies the action in plain language, names the app that requested it, shows what Guard stopped or what Watch observed, and places the allow and block choices after the supporting context. The card also moves protected choices into a proof step when the approval gate requires it. A signed-session check can replace those choices with a sign-in recovery panel when the tab cannot save a decision. dashboard/…/review-decision-card.tsx• L268-315, dashboard/…/review-decision-card.tsx• L324-387, dashboard/…/review-decision-card.tsx• L407-518, dashboard/…/review-states.tsx• L201-257, dashboard/…/review-decision-sign-in.tsx• L37-42

Review context

Review context connects the visible action to the reason for the pause and to the likely consequence of a decision. The card can show additional risk, matched protection rules, why the action was paused, data-flow evidence, scanner findings, skill risk, supply-chain risk, decoded content, and changes since a similar earlier decision. For Watch-only observations, matched-rule and pause explanations do not imply that Guard stopped the action. These details stay behind expandable areas when they are not needed for the first decision.

The primary action panel makes the boundary between Guard’s record and the agent’s claim clear. It shows the stopped action or the action that Watch observed, its working directory when known, and the agent’s stated intent as unverified context. The panel tells the operator to decide from the recorded action rather than from the agent’s description. dashboard/…/review-states.tsx• L201-257

The card also states what happens next:

  • Allowing a paused action lets the requesting app retry or continue.
  • Blocking stops the action and leaves the app to choose another path.
  • Reviewing a Watch-only finding records the operator’s view but does not undo the action that already ran.
  • Reviewing a saved native business request does not execute or change the request.
  • A terminal policy state removes the decision controls when an approval cannot override it.
  • An older native review can record approval while leaving the requesting app stopped if its retry cannot reuse that approval.

The decision labels match those outcomes. A remembered allow says that the action will be remembered, a Watch-only allow says “Keep allowing,” and a one-time approval that cannot be reused directs the operator to choose an available approval duration instead of promising that the requesting app will continue. dashboard/…/review-decision-labels.ts• L7-32

This context is separate from the saved evidence view. The review card helps decide now; the evidence workspace helps inspect the resulting record later. The evidence view marks the special outcome in which approval was recorded but the action stayed stopped. See Dashboard evidence and activity analytics for that later review path. dashboard/…/review-decision-card.tsx• L282-344, dashboard/…/review-decision-card.tsx• L449-501, dashboard/…/review-evidence.tsx• L17-109, dashboard/…/approval-center-utils.ts• L42-109, dashboard/…/approval-center-utils.ts• L377-395, dashboard/…/approval-outcome.ts• L1-14

References: dashboard/…/approval-center-utils.ts• L42-109 dashboard/…/approval-center-utils.ts• L377-395 dashboard/…/review-decision-card.tsx• L204-227 dashboard/…/review-decision-card.tsx• L268-344 dashboard/…/review-states.tsx• L201-257 dashboard/…/review-decision-labels.ts• L7-44 dashboard/…/review-evidence.tsx• L17-109 dashboard/…/approval-outcome.ts• L5-14

Decision sign-in

Decision sign-in is the recovery path for a tab that can read a request but cannot save an allow or block choice. A local signed session can be full or bound to one request. A full session can decide any request, while a bound session can decide only its matching request. An expired session cannot decide. Guard remains the authority that verifies the session and records the decision; the tab reads session claims only to explain the current limit. dashboard/…/dashboard-session-scope.ts• L1-17, dashboard/…/dashboard-session-scope.ts• L36-82

The sign-in panel names whether the tab has no session, has a session for another request, or has an expired session. It sends the operator back through Guard on the same device with a Desktop link or a terminal command, then offers Check again so the tab can pick up the new session. It never asks for a password or token. If the request identifier is malformed, it omits the links and command rather than creating an unsafe target. dashboard/…/review-decision-sign-in.tsx• L8-35, dashboard/…/review-decision-sign-in.tsx• L37-114, dashboard/…/review-decision-sign-in.test.ts• L50-71

References: dashboard/…/dashboard-session-scope.ts• L36-85 dashboard/…/review-decision-sign-in.tsx• L8-114 dashboard/…/review-decision-sign-in.test.ts• L27-71

Approval scopes

An approval scope defines how much future activity a decision can cover. The card recommends a scope that fits the action and only shows scopes allowed by the request’s decision contract. Operators should choose the narrowest scope that matches their intent. The Approval gates and scope resolution page explains the wider policy model.

ScopeEffect
ArtifactAllow or block this exact action
WorkspaceRemember the decision in the current project
PublisherApply it to matching actions from the same source
HarnessApply it to matching actions from the same AI app
GlobalApply it across projects and apps on this machine

Allow and block scopes are separate. A request can permit a narrow allow while still offering a wider block. The request can also recommend different scopes for allow and block. An exact action can be remembered only when the request proves that it is safe to persist; when a retry cannot reuse a one-time approval, the operator must opt into persistent consent for that exact action. Task access is shown only when the action has enough reusable proof and the policy allows it.

The scope contract is the request’s binding for these choices. The dashboard binds the decision to the request subject, contract version, and contract digest. If a request includes scope metadata without a complete binding, it offers no eligible scope and requires a refresh. When the request changes while the proof modal is open, the dashboard rejects the old choice and asks the operator to review the new contract. The submitted workspace scope carries the current workspace; other scopes do not add one. dashboard/…/approval-scopes.ts• L13-31, dashboard/…/approval-scopes.ts• L95-173, dashboard/…/approval-scopes.ts• L200-227, dashboard/…/approval-scopes.ts• L319-376

For actions whose retry cannot reuse approval, the one-time allow path is unavailable unless exact-action persistence is eligible and selected. Some actions have no safe reusable scope at all, such as an unverified script execution binding. Guard also explains why remembered approval is unavailable for sensitive paths, destructive commands, package actions, unstable launchers, and other unproven operations. dashboard/…/approval-scopes.ts• L115-152, dashboard/…/approval-scopes.ts• L229-281, dashboard/…/approval-scopes.ts• L284-317, dashboard/…/review-decision-card.tsx• L99-136, dashboard/…/review-decision-card.tsx• L360-379

References: dashboard/…/approval-scopes.ts• L13-31 dashboard/…/approval-scopes.ts• L95-173 dashboard/…/approval-scopes.ts• L200-227 dashboard/…/approval-scopes.ts• L319-390 dashboard/…/review-decision-card.tsx• L89-136 dashboard/…/review-decision-card.tsx• L347-387 dashboard/…/review-scope-controls.tsx• L27-120 dashboard/…/review-scope-controls.tsx• L126-164

Extension recommendations

An extension recommendation appears when Guard has identified extension settings that can let the requested command run in future. It gives the operator a separate choice to approve the current request and change the matching extension permissions. Other protections, secret-file rules, and blocks still apply.

The recommendation can point to each extension involved in a compound command. It can warn when a permission is critical, destructive, or touches sensitive data. Those permissions are presented for inspection and configuration, not as a one-tap setting. When the extension authority is not ready, the card offers a setup path and can update the recommendation after the device is enrolled. The operator can also open the matching extension settings instead of accepting the recommendation. dashboard/…/approval-extension-recommendation-types.ts• L1-23, dashboard/…/approval-extension-recommendation.ts• L57-77, dashboard/…/approval-extension-recommendation-card.tsx• L75-189, dashboard/…/approval-extension-recommendation-card.tsx• L194-255

The combined action saves the extension setting before it approves the current request. It uses the approval gate for the setting change and keeps the current decision separate from future matching commands. A stale settings revision is retried once against fresh state. If the setting saves but the request decision fails, the card reports that future matching commands are allowed while the current request still needs a decision. A network failure during the settings update is treated as uncertain, so the card does not claim that nothing changed. The card also pauses decision shortcuts and blocks a second confirmation while the combined action is in flight. dashboard/…/approve-with-extension-allow.ts• L38-55, dashboard/…/approve-with-extension-allow.ts• L64-130, dashboard/…/approval-extension-recommendation-card.tsx• L39-54, dashboard/…/approval-extension-recommendation-card.tsx• L101-141

References: dashboard/…/approval-extension-recommendation-card.tsx• L75-189 dashboard/…/approval-extension-recommendation-card.tsx• L194-271 dashboard/…/approval-extension-recommendation.ts• L57-77 dashboard/…/approve-with-extension-allow.ts• L38-130

Extension coverage

Extension coverage explains which parts of a paused command are already governed by extensions. It complements a recommendation by showing uncovered or separately configured steps, then links each step to the matching extension rule so the operator can set up trusted commands in advance. The coverage card is informational: it does not change settings or approve the current request. dashboard/…/approval-extension-coverage-card.tsx• L14-34, dashboard/…/approval-extension-coverage-card.tsx• L36-77

The card omits steps already linked by the recommendation above. For the remaining steps it shows the command stage, the extension that covers it, and any scope note. A compound command can therefore lead to several extension settings instead of hiding coverage behind only the first recommendation. dashboard/…/approval-extension-coverage-card.tsx• L21-34, dashboard/…/approval-extension-coverage-card.tsx• L52-74

References: dashboard/…/approval-extension-coverage-card.tsx• L14-34 dashboard/…/approval-extension-coverage-card.tsx• L36-77 dashboard/…/review-decision-card.tsx• L348-371

Approval proof

Approval proof is a local operator check required before Guard accepts decisions that need stronger assurance. A proof gate is ready only when it is enabled and configured; fail-closed surfaces block submission when the gate is missing or incomplete, while permissive surfaces can proceed without proof only when the gate is off. The card asks for an approval password or an authenticator code when the approval gate requires it, and a broad or strict decision can require fresh proof even when a short cooldown is active. Proof also protects trust changes and related supply-chain actions. See Approval gates and scope resolution for the gate’s policy role. dashboard/…/review-decision-card.tsx• L139-174, dashboard/…/review-decision-card.tsx• L479-494, dashboard/…/approval-gate.test.ts• L432-500

The proof interaction has two main forms:

  • Single-action proof appears in a focused modal after the operator chooses allow or block. The modal accepts the configured proof type and keeps confirmation disabled until the required input is ready. A configured cooldown can reduce repeated prompts for eligible decisions. The same modal can require a fresh authenticator code for strict operations and reports its busy state until the protected action finishes. While it is busy, it prevents a second submission and keeps the operator on the current decision.
  • Bulk proof appears in the bulk review drawer. It always requires the configured gate and does not use a cooldown to silently extend the batch decision.

An enabled authenticator gate takes an authenticator code instead of a password. Its password cooldown is not an effective bypass for approval; a recent successful code can satisfy an eligible prompt, but a fresh code is required for strict operations such as disconnect. The dashboard limits the code to six numeric digits and keeps the submit action disabled until the required proof is ready. Shared proof rules make the inline and modal paths omit credentials when recent proof is valid and send only the configured proof type when new proof is required. The same proof rule is required for local protection changes in the Protection Center. dashboard/…/approval-proof-inline.tsx• L21-119, dashboard/…/approval-proof-inline.tsx• L121-187, dashboard/…/approval-center-review-cards.tsx• L120-225, dashboard/…/local-cli-review-modal.tsx• L39-52, dashboard/…/local-cli-review-modal.tsx• L88-103, dashboard/…/approval-gate.test.ts• L75-107, dashboard/…/approval-gate.test.ts• L252-325

The approval gate can also be temporarily locked after failed proof attempts. While the lock is active, proof submission stays disabled even when credentials are present. The inline form and modal show the remaining wait time and refresh it until the lock expires, instead of inviting another credential attempt. A stale lock is ignored when the gate is disabled. dashboard/…/approval-proof-inline.tsx• L71-99, dashboard/…/approval-proof-inline.tsx• L203-220, dashboard/…/approval-center-review-cards.tsx• L120-201, dashboard/…/approval-gate-lock.test.ts• L20-71, dashboard/…/approval-gate-lock.test.ts• L73-110

The decision card checks the gate before it opens proof. An ordinary block can proceed without a locked gate when policy does not require proof, while an allow or broader block still stops and reports the lock. If Guard returns a lock or missing-code error after submission, the dashboard refreshes approval settings and asks the operator to retry; if that refresh fails, it gives an explicit refresh message. dashboard/…/review-decision-card.tsx• L139-174, dashboard/…/review-decision-card.tsx• L381-397, dashboard/…/use-review-decision-resolve.ts• L17-19, dashboard/…/use-review-decision-resolve.ts• L179-190

The dashboard clears proof fields after submission or cancellation. If the request’s scope contract changes while the proof prompt is open, the dashboard rejects the old choice and asks the operator to review the new contract. dashboard/…/review-decision-card.tsx• L114-125, dashboard/…/review-decision-card.tsx• L479-494, dashboard/…/use-review-decision-resolve.ts• L361-380

Approval password settings

Approval password settings explain that the password gates allow and trust changes. Operators must set up the password before those changes can take effect, and the settings surface provides a separate path to change an existing password. Password values are used for the request and are not treated as ordinary saved dashboard settings. dashboard/…/approval-password-copy.tsx• L3-14, dashboard/…/approval-password-copy.tsx• L17-41, dashboard/…/approval-gate.test.ts• L109-181

References: dashboard/…/approval-gate-utils.ts• L9-35 dashboard/…/approval-gate-utils.ts• L45-64 dashboard/…/approval-proof-inline.tsx• L21-119 dashboard/…/approval-center-review-cards.tsx• L113-225 dashboard/…/local-cli-review-modal.tsx• L39-103 dashboard/…/use-review-decision-resolve.ts• L106-195 dashboard/…/approval-password-copy.tsx• L17-41 dashboard/…/approval-gate.test.ts• L432-500

Bulk approval

Bulk approval is a guarded path for approving several eligible actions once. It groups duplicate retries, counts the underlying actions, keeps sensitive reads and trust-breaking actions out of the batch, and asks the operator to review a compact summary before submission. dashboard/…/use-queue-bulk-approve.ts• L142-193, dashboard/…/queue-state.ts• L366-436

Bulk selection

Bulk selection appears only when a local approval gate is configured and the queue has eligible requests. If eligible requests exist but the gate is not ready, the dashboard exposes a Settings prompt instead of hiding the feature. Selection follows the current filtered queue, while duplicate rows map back to one approval group.

Bulk approval is limited by purpose:

  • Read-only, non-sensitive file reads are the normal low-risk use case.
  • Elevated actions such as shell, edits, network, package, and deploy work raise the disclosure level.
  • Destructive actions can be selected but require the highest disclosure level.
  • Secret access, exfiltration, credential output, prompt injection, system prompt access, Guard bypass, encoded payloads, blocked actions, protected sandbox actions, and inconsistent decision data stay out of the batch.

The selection bar shows the number of underlying actions and the current risk tier. A selected command whose one-time approval cannot be reused remains visible in the batch summary so the operator does not mistake approval for execution. dashboard/…/use-queue-bulk-approve.ts• L156-170, dashboard/…/use-queue-bulk-approve.ts• L417-429, dashboard/…/queue-state.ts• L366-436, dashboard/…/approval-retry-guidance.ts• L71-89

References: dashboard/…/use-queue-bulk-approve.ts• L142-193 dashboard/…/queue-state.ts• L366-436 dashboard/…/approval-retry-guidance.ts• L71-89 dashboard/…/queue-bulk-approval-credentials.ts• L4-18

Bulk confirmation

The bulk drawer is a review checkpoint before the batch is sent. It shows the risk tier, a grouped preview of the selected actions, duplicate retries, sensitive actions left for individual review, proof fields, and the exact once-only consequence. The preview groups actions by category and shows a limited set of entries so the operator can see the mix without losing the total count. Commands that cannot reuse a one-time approval are called out rather than presented as if the agent will run them. dashboard/…/queue-bulk-approve-flow.tsx• L200-378, dashboard/…/approval-retry-guidance.ts• L79-103

The drawer requires the local approval gate before it can submit. It asks for the configured approval password or authenticator code and sends only the credential type accepted by that gate. A password cooldown can be used only when the current gate confirms that the cooldown is open; authenticator-code bulk approval always sends a code. When the risk disclosure marks the batch as high impact, it also requires the operator to type the displayed confirmation phrase. The approval control stays disabled until the required proof and confirmation are ready. dashboard/…/queue-bulk-approve-flow.tsx• L380-476, dashboard/…/queue-bulk-approval-credentials.ts• L10-68, dashboard/…/approval-gate.test.ts• L219-250

The batch has three visible stages:

  1. Review shows the risk disclosure, selected action groups, proof requirements, and what will remain in the queue.
  2. Submitting prevents a second submission while Guard processes the batch.
  3. Completed reports how many actions were approved once and tells the operator to reload for the latest queue state.

When the gate is not ready, the drawer does not offer an approval path. It directs the operator to Settings so the local proof gate can be configured first. Bulk approval never creates a remembered future rule. A partial result reports the successes and sends the operator back to the failed items for individual review. dashboard/…/queue-bulk-approve-flow.tsx• L166-196, dashboard/…/queue-bulk-approve-flow.tsx• L200-256, dashboard/…/queue-bulk-approve-flow.tsx• L285-378, dashboard/…/queue-bulk-approve-flow.tsx• L380-476, dashboard/…/queue-bulk-risk-disclosure.ts• L51-78, dashboard/…/app.tsx• L721-751

References: dashboard/…/queue-bulk-approve-flow.tsx• L166-196 dashboard/…/queue-bulk-approve-flow.tsx• L200-256 dashboard/…/queue-bulk-approve-flow.tsx• L285-378 dashboard/…/queue-bulk-approve-flow.tsx• L380-476 dashboard/…/queue-bulk-approval-credentials.ts• L21-68 dashboard/…/queue-bulk-risk-disclosure.ts• L51-78 dashboard/…/approval-retry-guidance.ts• L79-103

Recovery interactions

Recovery interactions keep a valid review from ending in an unclear state. They address stale queue data, failed action resume, one-time approvals that cannot be reused, missing cloud checks for package actions, and local dashboard or Guard connection problems. Each path preserves the local Guard decision boundary while offering the next safe action.

Request recovery

When a request changes during review, the dashboard refreshes its detail and scope contract before it allows another decision. When resolution succeeds, supported Codex actions can resume automatically; pending or failed resume states remain visible and provide a retry action. If a request times out, the operator returns to the requesting app and starts a new attempt so the new action receives fresh review data. A failed decision submission or detail load also stays on the card with an explicit retry action instead of looking resolved. dashboard/…/app.tsx• L678-709, dashboard/…/review-decision-card.tsx• L373-397, dashboard/…/review-decision-card.tsx• L613-629, dashboard/…/approval-center-layout.tsx• L164-190, dashboard/…/approval-center-utils.ts• L377-395

Some native one-time approvals record the decision but cannot let the agent’s next call through. The card explains the retry limit and points to an exact remembered action when eligible, an Extension permission when Guard has verified one, or a fresh retry from the requesting app. The retry window is shorter for native reviews than for other requests. The evidence record labels the outcome as “Approved, still stopped” so later review does not imply that the action ran. dashboard/…/approval-retry-guidance.ts• L6-46, dashboard/…/approval-retry-guidance.ts• L11-15, dashboard/…/approval-center-utils.ts• L134-155, dashboard/…/approval-outcome.ts• L5-14

Codex resume results distinguish a continuation that is pending, sent, already sent, failed, or not found. A failed continuation keeps a retry action visible; a successful continuation tells the operator whether Guard notified the original chat or resumed Codex in the background. dashboard/…/approval-center-utils.ts• L731-815, dashboard/…/review-states.tsx• L51-105

References: dashboard/…/approval-center-utils.ts• L134-155 dashboard/…/approval-center-utils.ts• L731-815 dashboard/…/approval-retry-guidance.ts• L6-46 dashboard/…/review-decision-card.tsx• L373-397 dashboard/…/use-review-decision-resolve.ts• L161-195 dashboard/…/review-states.tsx• L51-105 dashboard/…/approval-outcome.ts• L1-14

Cloud recovery

Package review can show a cloud recovery panel when current package validation or authorization is missing. Local Guard remains active while the operator either approves the install once or connects Guard Cloud for a current check. The connect flow opens sign-in when possible, offers a manual link when a browser popup is blocked, waits for the connection result, and reports when sign-in is still pending. dashboard/…/review-cloud-recovery.tsx• L41-92, dashboard/…/review-cloud-recovery.tsx• L94-190

References: dashboard/…/review-cloud-recovery.tsx• L41-92 dashboard/…/review-cloud-recovery.tsx• L94-190

Connection recovery

If the queue cannot load, the dashboard shows a connection error with retry and repair paths. Retry reloads the local inbox state. Repair asks the approval center to reconnect, waits briefly for the service to return, and then reloads the queue. These actions recover the operator surface; they do not turn a failed load into an approval. When protection is in Watch mode, the inbox banner also exposes a path to restore protected mode or open Settings. dashboard/…/approval-center-layout.tsx• L126-143, dashboard/…/approval-center-layout.tsx• L316-335, dashboard/…/app.tsx• L753-783

References: dashboard/…/approval-center-layout.tsx• L126-143 dashboard/…/approval-center-layout.tsx• L316-335 dashboard/…/app.tsx• L753-783

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the queue’s bulk eligibility rules aligned with the server bulk-approval contract so a row cannot appear selectable while the service rejects it.
  • Keep request scope choices, recommended scopes, and the submitted scope-contract binding aligned so a changed request fails closed and refreshes before approval.
  • Keep single-action proof and bulk proof behavior aligned with the approval-gate state, including gate readiness, password versus authenticator-code paths, recent proof, fresh-proof requirements, and temporary locks.
  • Keep approval-gate lock handling aligned across the preflight check, proof form, modal countdown, and refresh-after-423 or missing-code path.
  • Keep approval-gate credentials aligned with the active gate: an unready gate must fail closed where required, authenticator proof must override password cooldown, and only the accepted proof field may be sent.
  • Keep approval-password setup and change flows separate from ordinary settings persistence so secret values do not become saved dashboard state.
  • Keep grouped duplicate counts and resolved IDs aligned with next-request selection so retries do not remain visible after a successful decision.
  • Keep read-only saved business requests separate from executable review requests, including their status, labels, and retry guidance.
  • Keep detail loading and error states connected from the workspace into the decision card so a failed read cannot look like a completed decision.
  • Keep active request pinning and page sync aligned so filters do not silently replace a setup request or show a result on the wrong request.
  • Keep recovery copy aligned with the actual resume, retry, Extension-setting, and repair states so operators know whether to retry the action or reload the dashboard.
  • Keep extension recommendation records bounded to validated permission IDs and catalog revisions, and keep the setting-save result separate from the current request result.
  • Keep extension coverage links distinct from recommendation links so every covered command step remains discoverable without repeating the same extension rule.
  • Keep extension authority setup, live recommendation updates, and approval-gate proof aligned so a newly enrolled device does not require a stale reload or bypass the local gate.
  • Keep bulk consequence copy aligned with commands whose one-time approvals cannot be reused by the requesting app.
  • Keep decision-result state tied to the request shown when the operator acted so a fast queue advance cannot display the wrong result.
  • Keep Watch-only wording, primary action labels, protection-health status, and agent-intent warnings aligned so an observed action is never described as stopped or verified.
  • Keep matched-rule explanations and derived evidence panels aligned with the request signals so the card does not show a guessed pause reason when Guard has a more direct rule match.
  • Keep extension review records bound to the current discovery digest and keep safe invocation checks aligned with native command matching and blocked operations.
  • Keep dashboard session scope and sign-in recovery aligned with Guard’s request binding and expiry rules so a tab cannot offer a decision for a request its session cannot save.
  • Keep sign-in recovery links limited to validated request identifiers and keep the recheck path attached to the same request after Guard creates a new session.

Important failure modes

TriggerConsequenceGuard
Scope contract changes while an operator reviews a requestThe old decision may no longer match the actionRefresh the current detail and scopes, then require a new decision
A request has scope metadata but no complete contract bindingThe dashboard could submit a choice without a stable policy contextOffer no eligible scope and require a refresh
A request is terminally blocked or requires a sandboxAn approval cannot change the enforcement resultRemove decision controls and explain the policy limit
A Watch-only observation is shown as a stopped actionThe operator may think approval can undo an action that already ranLabel it as observed and explain that the displayed outcome is informational
Agent-stated intent is treated as verified evidenceThe operator may approve based on an untrusted descriptionShow the recorded action first and mark the agent text as unchecked
A direct matched protection rule is replaced by a generic pause reasonThe operator may miss why Guard selected the actionPrefer the matched rule explanation when rule evidence exists
Protection health is still checking or the queue read is incompleteAn empty view may look like a final all-clear stateShow the checking or incomplete status and keep the protection summary visible
A saved native business request is treated as executableReview could imply that it changed or ran the business requestMark it read-only and explain that execution is not connected
Selected request detail fails to loadThe operator could act on missing or stale contextShow the detail error and keep an explicit retry path
A decision result arrives after the queue shows another requestThe previous result may appear on the wrong actionAccept resolved state only when its request ID matches the shown request
A filter or page change hides the active requestThe operator may review a detail that is no longer in the visible work setSelect the first visible request, except for a pinned setup request
Sensitive or trust-breaking requests are selected for bulk approvalSecret access or unsafe content could bypass individual reviewKeep those groups in the queue and show them as excluded
A high-impact bulk batch is selectedMass approval can hide an unexpected or destructive actionShow risk disclosure and require an exact typed confirmation
The bulk approval gate is not configuredThe operator could mistake a visible batch for a ready approval pathDirect the operator to Settings and keep submission disabled
A proof gate is enabled but not configured or has no verifierA fail-closed surface could accept credentials without a valid proof checkTreat the gate as unready, send no proof, and direct the operator to approval settings
A password cooldown is applied to an authenticator gateThe operator may believe an approval needs no current authenticator proofIgnore the password cooldown as an approval bypass and require eligible recent or fresh code proof
Bulk approval resolves only part of the batchSome requests leave the queue while failed requests still need actionReport both counts and send the operator to retry failed items manually
A selected command cannot reuse a one-time approvalThe operator may expect the requesting agent to run it after approvalCount it in the confirmation and offer exact-action, Extension, or fresh-request recovery
The approval gate is temporarily lockedAnother credential attempt could fail and extend an unsafe retry loopDisable proof submission, show the remaining wait, and retry after the lock expires
A locked gate is disabled before the dashboard refreshes its stateA stale lock could block a decision that no longer needs proofIgnore the stale lock when the gate is disabled
An authenticator code is reused for an operation that needs fresh proofA strict action could accept proof that is too oldIgnore recent proof for the strict path and require a new code
An authenticator gate receives a password instead of its codeThe proof payload does not satisfy the configured gateUse the gate type to send only the matching proof field
Guard returns a lock or missing-code error after a decision submissionThe operator may see a generic failure or retry with stale settingsRefresh approval settings and show a retry instruction; report refresh failure explicitly
An extension recommendation uses malformed permission data or a stale catalog revisionThe dashboard could change an unintended protection settingDrop invalid recommendations and retry settings changes against fresh authority state
An extension recommendation contains a risky permissionA one-tap setting could widen protection for destructive or sensitive commandsShow the permission for inspection and require configuration through the extension surface
Extension authority is unavailable during reviewThe operator may act on an old recommendation or assume the setting was changedOffer authority setup and refresh the recommendation when enrollment completes
Extension settings save but the current request does not resolveFuture matching commands may run while the current action remains pendingReport the saved-only result and keep the normal decision controls available
The extension settings update has an uncertain network resultThe dashboard could claim that no setting changed when the service may have changed itReport an uncertain outcome and do not resolve the current request automatically
Extension coverage links duplicate recommendation linksThe operator may see repeated rules and miss another command stepFilter linked patterns and show only the remaining covered steps
An extension review uses a stale discovery snapshot or incomplete evidenceThe compiled decision may not describe the operation that was reviewedReject the review and require a new snapshot with explicit evidence
A safe extension invocation uses an unknown option or overlaps a blocked operationA supposedly safe variant could escape its reviewed boundaryMatch literal arguments against the known grammar and reject conflicts
Cloud package validation or authorization is unavailableThe current package safety check cannot completeKeep local Guard active and offer one-time approval or Cloud sign-in
Queue or Guard connection failsThe dashboard may show stale or no review dataUse retry or repair, then reload the inbox state
The tab has no signed session for the requestThe operator can read the card but cannot save a decisionReplace decision controls with a local Guard sign-in path and a recheck action
A request-bound session is used for another requestA link opened for one request could be mistaken as permission for anotherExplain the request mismatch and require the operator to open the target request from Guard
A session expires or Guard restarts during reviewThe operator may retry a decision with an unusable sessionExplain that the session ended and direct the operator to obtain a new local session
A request identifier is malformed in sign-in recoveryThe dashboard could create a link or command for an invalid targetOmit the Desktop link and terminal command

Key files

FileWhy to read it
dashboard/…/approval-center-layout.tsxShows how inbox states, detail loading and retry, policy-specific requests, protection posture, and recovery paths enter the review surface
dashboard/…/approval-center-primitives.tsxShows how the shell exposes the inbox count, local Guard status, and queue navigation across desktop and mobile views
dashboard/…/review-workspace.tsxShows how queue state, filters, page sync, selection, detail errors, and the decision card form one review surface
dashboard/…/review-queue-list.tsxExplains queue search, grouping, sorting, paging, read state, setup filtering, and page selection
dashboard/…/review-queue-page-sync.tsDefines how the active request follows the visible page while setup evidence can stay pinned
dashboard/…/review-decision-card.tsxShows the operator path from action context to allow or block, scope selection, proof prompt, Extension recommendation, coverage links, and recovery
dashboard/…/review-decision-labels.tsDefines operator-facing labels for one-time, remembered, Watch-only, and unavailable-retry decisions
dashboard/…/review-states.tsxShows empty-queue protection health, Codex resume status, and the primary action context for stopped or Watch-only work
dashboard/…/review-evidence.tsxShows how direct rule matches and derived risk evidence become operator-facing review context
dashboard/…/dashboard-session-scope.tsDefines how full, request-bound, and expired local sessions limit which request a tab may decide
dashboard/…/review-decision-sign-in.tsxShows the no-session, wrong-request, and expired-session recovery panel without collecting secrets in the tab
dashboard/…/review-decision-sign-in.test.tsVerifies session scope checks, sign-in reason copy, safe Guard links, recheck behavior, and secret-free recovery
dashboard/…/use-review-decision-resolve.tsKeeps proof preflight, request-bound results, stale contracts, retry, and gate refresh in one decision path
dashboard/…/approval-center-review-cards.tsxShows the operator-facing proof modal, lock countdown, proof-state messages, and broad-decision confirmation
dashboard/…/approval-center-utils.tsDefines operator-facing action summaries, read-only business-request handling, terminal states, share links, bulk consequence copy, and Codex resume messages
dashboard/…/approval-retry-guidance.tsDefines one-time retry limits and recovery guidance when the requesting app remains blocked
dashboard/…/approval-outcome.tsDefines the evidence label for an approval that leaves the action stopped
dashboard/…/approval-extension-recommendation-card.tsxShows extension links, authority setup, risky-permission warnings, approval-gate proof, combined setting and request approval, and saved-only outcomes
dashboard/…/approval-extension-coverage-card.tsxShows extension coverage that remains after recommendation links and routes each command step to its matching rule
dashboard/…/approval-extension-recommendation.tsValidates recommendation data and creates the operator-facing permission-change copy
dashboard/…/approval-extension-recommendation-types.tsDefines the recommendation contract for validated extension permissions
dashboard/…/approve-with-extension-allow.tsShows the ordered flow that saves an Extension setting and then resolves the current request
dashboard/…/approval-proof-inline.tsxDefines password and authenticator-code proof inputs, recent-proof reuse, gate-lock behavior, credential selection, and fresh-proof rules
dashboard/…/approval-proof-modal.tsxShows the focused proof interaction used when a decision or recovery action needs operator credentials
dashboard/…/local-cli-review-modal.tsxShows how the same local proof gate protects Extension and provider permission changes
dashboard/…/approval-password-copy.tsxExplains approval-password setup and change actions in Settings
dashboard/…/approval-gate-utils.tsDefines gate locks, cooldown labels, and when a single decision needs proof
dashboard/…/approval-scopes.tsDefines the meaning and limits of reusable decision scopes, action-specific scope contracts, exact-action persistence, and contract binding
dashboard/…/review-scope-controls.tsxPresents exact-action duration, broader scopes, advanced scope, and block choices
dashboard/…/queue-state.tsDefines queue categories, duplicate groups, risk tiers, bulk eligibility, and next-item choice
dashboard/…/use-queue-bulk-approve.tsCoordinates bulk selection, disclosure, proof, submission, and completion state
dashboard/…/queue-bulk-approval-credentials.tsDefines bulk gate readiness, cooldown use, and proof payload choice
dashboard/…/queue-bulk-approve-flow.tsxPresents the bulk review drawer, grouped action preview, proof or gate setup, risk confirmation, and completion stages
dashboard/…/queue-bulk-risk-disclosure.tsDefines the escalating disclosure and typed-confirmation rule for batch risk
dashboard/…/review-cloud-recovery.tsxExplains package review recovery when cloud validation or sign-in is unavailable
dashboard/…/app.tsxConnects single and bulk resolution results to queue refresh, resume, retry, and repair behavior
dashboard/…/approval-gate-lock.test.tsVerifies lock duration, disabled proof submission, lock-aware resolution preflight, locked-modal copy, and countdown refresh
dashboard/…/approval-gate.test.tsVerifies gate readiness, cooldown behavior, proof payload selection, recent authenticator proof, fresh proof for disconnect, and password field handling
dashboard/…/approval-extension-recommendation.test.tsVerifies recommendation validation, ordered setting and approval actions, uncertain updates, saved-only outcomes, and duplicate-submit protection
dashboard/…/approval-retry-ux.test.tsVerifies retry limits, request-bound receipts, unavailable one-time approval copy, and bulk retry warnings
src/…/review.pyDefines the evidence-bound review record for discovered extension operations
src/…/review_invocations.pyChecks that reviewed safe invocations stay within the discovered command grammar