consensus-tools audit
Summarize recent guard decisions with filtering by date, domain, and outcome.
Usage
audit queries the board's audit log and renders a summary table of recent guard decisions. Use it to review what your guards have been doing, spot patterns, or investigate incidents.
Options
| Option | Default | Description |
|---|---|---|
--since <date> | Last 7 days | ISO 8601 date — only include events on or after this date |
--domain <domain> | All domains | Filter by guard domain (e.g. code_merge, send_email) |
--decision <decision> | All outcomes | Filter by outcome: ALLOW, BLOCK, REWRITE, REQUIRE_HUMAN |
--limit <n> | 50 | Maximum number of events to return |
--json | — | Output raw JSON instead of a table |
Examples
Example output
Use the Audit ID from any row with consensus-tools explain to get the full narrative.
Guard domains
| Domain | Guard |
|---|---|
code_merge | PR/branch merge governance |
send_email | Outbound email governance |
deployment | Release deployment governance |
support_reply | Customer support reply governance |
agent_action | Autonomous agent action governance |
permission_escalation | IAM/privilege escalation governance |
publish | Content publishing governance |
Related
- explain — generate a plain-language narrative for a specific audit event
- CLI Reference — all available commands
- Core: summarizeGuardActivity — programmatic equivalent via
@consensus-tools/core