disclosure_verify_prompt_hash
Verifies a prompt hash in a hashed disclosure by comparing the SHA-256 of candidate text against the stored hash for a given prompt ID. Returns match confirmation or mismatch error.
Instructions
Verify a single prompt hash in a hashed-mode disclosure. Looks up prompt_id and compares canonical SHA-256 of candidate_text. Returns ok=true on match or { error: prompt_hash_mismatch, expected, recomputed }. Errors with wrong_prompt_mode if prompt_evidence_mode is not 'hashed'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_id | Yes | ||
| document_json | Yes | ||
| candidate_text | Yes |