agi4-report
Markdown report rendering for AGI/4 verdicts.
Converts VerdictOutput JSON to human-readable Markdown reports with evidence tables, margin analysis, and reasoning.
Features
- Evidence Tables: Per-conjunct tables with source, measurement, value, threshold, status
- Provenance Links: Clickable links to upstream sources and documentation
- Margin Analysis: Min/max margin values for consistency bounds checking
- Consistency Details: Explanation of passed/failed consistency rules
- Verdict Summary: Readable verdict statement with reasons for non-attestation
- Known Gaps: Acknowledgments of intentional limitations
- Optional Fields: Graceful rendering when provider, version, or evidence absent
Usage
use render;
use VerdictOutput;
use serde_json;
let verdict_json = r#"{ ... }"#;
let verdict: VerdictOutput = from_str?;
let markdown = render;
println!;
Output Example
**Model**: example-model (example-org, 2026-05-25)
All four conjuncts pass with consistent evidence.
...
Status: **PASS**
Margins: Min 0.85, Max 0.90 (ratio 0.944 > 0.5) ✓
- -
See Also
- agi4-schema — JSON output types
- agi4 — CLI binary
- SPEC.md — Specification