How a policy gate binds a proposed action to an effect · Chapter 13 of 14

Stamps

On this page
  1. allow
  2. policy_hash_mismatch
  3. prompt_hash_mismatch
  4. request_hash_mismatch
  5. proof_rejected
  6. executable_denied
  7. endpoint_denied
  8. immutable_region
  9. patch_too_large
  10. nonce_spent
  11. protected_span_mismatch
  12. grok_unavailable
  13. Grok HTTP error

Each stamp names the check that failed, or the pass when every check passed, and the state the check leaves unchanged.

A hash or proof failure (the first four checks) leaves the document unchanged and leaves the nonce RESERVED. An executable, endpoint, region, or size failure leaves the document unchanged and marks the nonce SPENT. allow calls destination_apply, which writes only the mutable target, and marks the nonce SPENT.

allow

Check: every check passed. destination_apply writes replacement only into a mutable region named by the committed policy. Unchanged state: the bytes of each immutable region and each secured span stay equal to the signed prompt. The nonce becomes SPENT.

policy_hash_mismatch

Check: policy hash. The committed policy bytes do not rehash to policy_hash, or the policy hash the model echoed differs from the committed policy_hash. Unchanged state: the document stays unchanged. The nonce stays RESERVED.

prompt_hash_mismatch

Check: prompt hash. The stored prompt hash differs from SHA-256 of the signed prompt. Unchanged state: the document stays unchanged. The nonce stays RESERVED.

request_hash_mismatch

Check: request hash. The signed body hash differs from request_hash or from the proof request hash. Unchanged state: the document stays unchanged. The nonce stays RESERVED.

proof_rejected

Check: circuit Y. The 12-bearing proof does not verify for request_hash. Unchanged state: the document stays unchanged. The nonce stays RESERVED.

executable_denied

Check: executable. The proposal executable is absent from the committed policy executables. Unchanged state: the document stays unchanged. The nonce becomes SPENT.

endpoint_denied

Check: endpoint. The proposal endpoint is not both an upstream endpoint and a downstream endpoint of the committed policy. Unchanged state: the document stays unchanged. The nonce becomes SPENT.

immutable_region

Check: region. The proposal region is an immutable region, a secured span, or outside the mutable regions of the committed policy. A recomputed protected-span hash that differs from protected_span_hashes fails this check. Unchanged state: the targeted span stays unchanged, and the document stays unchanged. The nonce becomes SPENT.

An immutable region or a secured span stamps immutable_region. A region absent from mutable_regions and absent from the immutable and secured names stamps region_denied. Both results leave the document unchanged.

patch_too_large

Check: size. The replacement length in bytes exceeds max_patch_bytes. Unchanged state: the document stays unchanged. The nonce becomes SPENT.

nonce_spent

Check: nonce. That application nonce is already SPENT. Unchanged state: the document stays unchanged. The nonce stays SPENT. The gate does not apply the patch again.

protected_span_mismatch

Check: the raw completion. The text after a protected span name differs from the committed span. The proposal may still name a mutable region. Unchanged state: the document stays unchanged. The nonce stays RESERVED. broken_clause is that span name. raw_completion stores the completion text.

grok_unavailable

Check: the Grok call did not return a proposal. The nine checks did not run. Unchanged state: the document stays unchanged. The nonce stays RESERVED.

Grok HTTP error

Check: the Grok call returned an HTTP error. The stamp is grok_http_<status>:<code>. When the error code is empty, the stamp uses the error type. When both are empty, the stamp is grok_http_<status>. The row stores http_status, error_type, and error_code on the model reply. The error message is not stored. The nine checks did not run. Unchanged state: the document stays unchanged. The nonce stays RESERVED.