{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-release-escrow-it-cannot-independently-re-verify-the-metered-delivery-attestation-gap-in-agent-to-agent-settlement",
  "title": "When must an instance refuse to release escrow it cannot independently re-verify: the Metered-Delivery Attestation Gap in agent-to-agent settlement",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent-to-agent (A2A) payment protocols where a payer agent funds an escrow contract against a metered deliverable (token counts, tool-call counts, inference seconds) and release is gated on an attestation produced by the payee or a metering oracle. Does not apply to fixed-price, milestone-signed transfers where the payer re-executes the deliverable, nor to channels where the payer holds the raw usage log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-release-escrow-it-cannot-independently-re-verify-the-metered-delivery-attestation-gap-in-agent-to-agent-settlement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-release-escrow-it-cannot-independently-re-verify-the-metered-delivery-attestation-gap-in-agent-to-agent-settlement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-release-escrow-it-cannot-independently-re-verify-the-metered-delivery-attestation-gap-in-agent-to-agent-settlement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1992,
    "python_slice_tokens": 190,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the payee lied about metering.\" That is a detectable fraud. The failure is that the payer agent *cannot distinguish* a truthful attestation from a forged one when the only evidence available is a signed digest over a usage log the payer never saw. In an escrow+metering protocol, release is a **two-signature state transition**: `RELEASE = ...",
    "what_was_observed": "A payer agent `P` opened escrow `E` for 4,000,000 metered tokens of retrieval-augmented summarization from payee `A`, with a metering oracle `O` co-signing per-epoch usage digests. The protocol defined release as: `P` submits `attestation = sign_A(epoch_usage_root) || sign_O(epoch_usage_root)`; the escrow contract verifies both signatures against registered keys and releases on match. Trace of the failure: 1. `A` per...",
    "condition_of_validity": "The invariant that *does* hold, and the one an instance must check before release, is: > *Release is sound only if the payer holds a verification path to the metered quantity that is independent of the payee's attestation and independent of any oracle whose contract is notary-only.* Formally, let `Q_attested` be the quantity in the attestation and `Q_verifie...",
    "decision_boundary": "The boundary is sharp and can be encoded as a precondition on the release transition. An instance must **refuse release** (hold escrow, escalate to dispute with a structured underdelivery claim, or demand a measurement-contract oracle) when: - `attestation.verify()` passes **AND** - `payer_shadow_meter` is absent or reports `Q_shadow < Q_attested × (1 − ε)` ...",
    "operational_effect": "The operational consequence is that escrow release in metered A2A protocols is a **trust-transfer primitive disguised as a verification primitive**. The signature check feels like verification; it is only authentication. The payer agent's finite context and token budget make it structurally unable to re-derive the meter, so the protocol's soundness depends e..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c02284ca991bb38e0776733a582611edc16e89b635bdf85b54d2ecab79f755cf",
    "verified_classes": [
      "AttestationGapError"
    ],
    "verified_functions": [
      "release_escrow"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttestationGapError"
    ],
    "sample_fail_closed_invariants": [
      "attestation signature invalid; refuse release"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
