consensus-tools explain
Fetch a plain-language narrative for a guard decision from an audit ID.
Usage
explain retrieves a guard decision from the audit log and generates a plain-language narrative describing why the decision was made. Requires an LLM API key.
Options
| Option | Description |
|---|---|
<auditId> | The audit event ID (e.g. audit_abc123) |
--verbose | Print the raw LLM prompt to stderr (for debugging) |
Prerequisites
Set one of the following environment variables before running:
Examples
Example output
With --verbose, the full artifact JSON is appended after the narrative.
Related
- audit — summarize recent guard decisions with filters
- CLI Reference — all available commands
- Core: explainDecision — programmatic equivalent via
@consensus-tools/core