The agent checks the reply when the reply arrives. After interpret_completion, confine_reply keeps executable, endpoint_id, region, and replacement. It scans the raw completion for each protected span name. When the text after that name differs from the committed span, the reason is protected_span_mismatch and nothing is written. The raw completion is stored on the ledger row. The agent calls verify_receipt and calls destination_apply only when every check is pass: true. destination_apply calls verify_receipt again. It does not read agent_action.decision. If executable is absent from the committed policy, it returns without changing the document. destination_apply is the only writer of the document map. A destination checks the same receipt before it creates, reads, modifies, or deletes. The destination calls POST /verify with the receipt, the presented policy bytes, the presented prompt, and the proposal. The destination does not trust the agent's allow flag. verify_receipt does not read agent_action.decision.
verify_receipt recomputes policy_hash, prompt_hash, each protected-span hash, and request_hash. It checks the circuit proof for that request_hash. It runs the executable, endpoint, region, and size rules against the committed policy. A pass from verify_receipt is the check list with every entry pass: true.
Scope: the agent write and the destination create, read, modify, or delete. The agent's allow flag is outside both checks.