audit_chain_verify
Verifies hash chain integrity of GovernanceEvents, checking monotonic event IDs, prev_hash linkage, and event hash consistency. Returns validation result with break location and reason.
Instructions
Walk an array of GovernanceEvents top-to-bottom and verify the hash chain: monotonic event_id, prev_hash linkage, self-consistency of each event's hash. Returns { valid, checked, first_break_at, reason }, the same shape audit-stream-py's GET /verify endpoint emits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes |