verify_audit_chain
Verifies the cryptographic integrity of the audit trail by checking the SHA-256 hash chain from genesis to latest entry. Detects tampering for compliance or dispute resolution.
Instructions
Verify the cryptographic integrity of AVP's immutable audit trail.
Checks that no audit entries have been tampered with by verifying
the SHA-256 hash chain from genesis to the latest entry.
Use this before relying on audit data for compliance or dispute resolution.
For an individual agent's audit history, use get_audit_trail instead.
Read-only — no authentication required. Safe to call at any time.
Returns:
JSON with is_valid (true/false), total_entries count, latest_hash,
and verification timestamp. is_valid=false means tampering detected.
Returns {"error": "..."} on network errors.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |