Documentationv1.4.0
audit
Query the local decision database for historical evidence and traceability.
auditThe audit command provides a searchable interface into the .gitresolve/audit.db. It is essential for security teams and lead engineers who need to understand exactly why a specific resolution was chosen weeks or months ago.
bash
$gitresolve audit --file main.go
Found 2 historical resolutions for main.go
ID: res_8f2a1
Date: 2026-05-01 14:22:01
Strategy: [O]urs
Confidence: 0.98
--file <path>Filter audit logs to only include decisions for a specific file.
--id <hash>Look up a specific resolution event by its unique ID.
--export <format>Export the audit database to CSV or JSON for external analysis.
--verify-integrityVerify that the audit database has not been tampered with since initialization.