ApprovalCard
The agent asks before it acts: risk, what will happen in words, an exact preview of the command or diff, and Approve (⌘/Ctrl+Enter) / Deny (Escape) with an optional auto-deny countdown.
Every time a policy rule stepped in on an agent by itself, newest first.
Rules stepping in on their own. Not ApprovalCard. Not PermissionRequest.
Filter, open an event, then request an override. Submit confirms first.
GuardrailLog shows policy rules acting on agents without being asked: blocked, rewritten or flagged. AutonomyDial sets the limits; this log shows them working. When the agent asks first, use ApprovalCard or PermissionRequest.
Every time a policy rule stepped in on an agent by itself: blocked, rewritten or flagged, what the agent tried, newest first. A row opens a Drawer with the exact attempt, the rule and its owner, and a confirmed override request.
import { GuardrailLog } from "agentic-ds-kit";From contracts/guardraillog.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| events | array | Yes | — | Newest first. { id, verdict: "blocked" | "rewritten" | "flagged", rule: { name, text, owner }, agent: { name, src? } (the Avatar shows only with src), attempted, sentInstead?, at, runHref?, summary? }[]. sentInstead shows for rewritten. summary ("Blocked a $5,000 refund on INV-1842, over the $500 cap") is the row title when given; rule, agent and time drop to the caption. |
| title | string | No | Guardrails | — |
| filters | object | No | — | { verdict?, rule?, agent?, time? }. Uncontrolled when omitted. Verdict, rule and agent filter the list; time is a label, so pass the events in that window. |
| onFiltersChange | function | No | — | — |
| timeOptions | array | No | ["Today","This week","This month"] | — |
| selectedId | string | No | — | The event open in the Drawer; null closes it. Uncontrolled when omitted. |
| onSelect | function | No | — | (id | null) => void. |
| onRequestOverride | function | No | — | (id, reason) => void, after the AlertDialog confirms. Submit request is the Drawer's one solid primary; omit to hide the request. |
| overrideStatus | idle | sending | sent | error | No | idle | sending disables Submit; sent shows a success Alert; error a danger Alert, keeping the reason. |
| compact | boolean | No | false | One line: the summary ("14 blocked · 3 rewritten · 6 flagged this week") plus the latest event. |
The agent asks before it acts: risk, what will happen in words, an exact preview of the command or diff, and Approve (⌘/Ctrl+Enter) / Deny (Escape) with an optional auto-deny countdown.
An agent asks for standing access to a capability (files, email, repo, billing), scope by scope, with why and expiry.
What people and agents did across the workspace, newest first and grouped by day.
A row of filter chips with add, clear all, and an overflow menu when the row is too long.