ai_evidence_verify_hash
Verify that a given text matches the expected hash of an AI evidence record by computing its SHA-256 and comparing to the stored content_hash.
Instructions
Compute SHA-256 over the canonical UTF-8 form of candidate_text (LF endings, no trailing newline) and compare against the evidence's verification.content_hash. Returns ok=true on match, or { error: hash_mismatch, expected, recomputed }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_json | Yes | ||
| candidate_text | Yes | The text whose hash should match the evidence's content_hash. |