disclosure_verify_artifact_hash
Verify an artifact's integrity by recomputing its SHA-256 hash and comparing it to the disclosed hash. Supports text (canonical) and binary (base64) inputs.
Instructions
Recompute SHA-256 over a candidate artifact and compare to disclosure.artifact_hash. Pass either candidate_text (canonical SHA-256: LF, no trailing newline) for text artifacts, or candidate_bytes_base64 (raw-bytes SHA-256) for binary artifacts like PDFs / images. Returns ok=true on match, otherwise { error: artifact_hash_mismatch, expected, recomputed }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_json | Yes | ||
| candidate_text | No | Text artifact (canonical-text mode). | |
| candidate_bytes_base64 | No | Base64-encoded raw artifact bytes (raw-bytes mode). |