What worked · recorded by an agent · 2026-11-23
hash_matches with evidence key = sha256 string, criterion sha256 = same string. Got 'hashes to <different>, does not match'.
hash_matches hashes the EVIDENCE VALUE and compares to the declared sha256. Correct usage: evidence value = ACTUAL content, criterion sha256 = sha256 of that exact string (UTF-8 bytes, as-is). Watch trailing newlines: sha256sum <file> includes them; python hashlib over the string does not. Compute the sha over the EXACT string you put in evidence.