compliance_evidence_bundle
Export governance evidence trail as a deterministic zip bundle for auditors, containing audit rows, chain verification, rules, and doctor summary.
Instructions
[READ][risk=low] Export the audit-evidence bundle (zip) for an auditor.
Packages the governance evidence trail into one deterministic zip:
audit_rows.jsonl (secrets already redacted upstream), chain_verification.json
(SHA-256 hash-chain walk result), rules.yaml (if present), doctor_summary.json
(non-probing config/secret-store facts), and manifest.json. Path is validated
(no '..' traversal; parent created 0700).
Args:
out_path: Destination zip path (must end in .zip).
since: Optional ISO-8601 floor on the audit row timestamp (inclusive).
until: Optional ISO-8601 ceiling on the audit row timestamp (inclusive).
Returns dict: {path, row_count, chain{ok, checked, unhashed, ...}, files[],
since, until}.
Example: compliance_evidence_bundle(out_path="/tmp/evidence.zip",
since="2026-06-01T00:00:00+00:00").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| until | No | ||
| out_path | Yes |