ai_evidence_verify_hash
Verify candidate text against evidence by computing SHA-256 and comparing to the content hash, returning ok on match or a mismatch error with expected and recomputed values.
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. |