The ledger row records the committed policy, policy_hash, the policy object the model echoed (model_policy), the echoed hash (model_policy_hash), and policy_hash_comparison.
policy_hash_comparison is one of three values:
match: the echoed hash and the echoed object, when present, rehash to the committedpolicy_hash.mismatch: an echoed hash or an echoed object differs from the committedpolicy_hash. The policy hash check fails.absent: the proposal omits both the echoed hash and the echoed object. The policy hash check uses the committed bytes only.
The row also stores prompt_hash, protected_span_hashes, request_hash, expected_action, broken_clause, and the check list. protected_span_hashes maps each protected span name to SHA-256 of its committed text. expected_action stores the allowed executable, the allowed endpoint, and the mutable region. broken_clause is executables, endpoints, immutable_regions, max_patch_bytes, or the span name. A pass leaves broken_clause empty. A live completion stores raw_completion on the same row. The row stores application_tau and application_nonce so a later caller can rebuild request_hash from presented policy bytes and a presented prompt. Each check is { "name", "pass" }. pass is true for PASS and false for FAIL. The first FAIL is agent_action.reason and ledger.reason.
Scope: one row per submit. The row stores the comparison. The row does not replace the committed policy with the echoed object.