Canonical JSON matches eni6ma-id4-auto src/canon.rs: object keys are sorted, and the separators are a comma and a colon with no extra space.
The hashed body has six fields:
method:llm_applyendpoint_id:document-storefrom the policypolicy: default deny, executableapply_patch, upstream and downstream endpointdocument-store, mutable regionexhibit_summary, immutable regionssignature_pageandclause_4,max_patch_bytes256prompt: the exact string infixtures/prompt.txttau: application tau for the casenonce_uuid: application nonce for the case
request_hash is SHA-256 of that canonical body. The ledger row stores base64 of the canonical policy, policy_hash as SHA-256 of those bytes, and the proof fields circuit_hash, tau, nonce_uuid, status, request_hash, proof_hash, bearings, prime_shard, and Y.
validate derives the proof tau and nonce_uuid from request_hash. The payload tau and nonce_uuid are the application values. The agent burns the application nonce. The proof covers the request hash. The proof does not cover the model reply.