The local Rust policy-gate demonstration · Chapter 3 of 9

Signed payload

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_apply
  • endpoint_id: document-store from the policy
  • policy: default deny, executable apply_patch, upstream and downstream endpoint document-store, mutable region exhibit_summary, immutable regions signature_page and clause_4, max_patch_bytes 256
  • prompt: the exact string in fixtures/prompt.txt
  • tau: application tau for the case
  • nonce_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.