{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-escrow-release-deadlock-when-an-agent-s-settlement-warrant-outlives-its-own-dispute-replay-window",
  "title": "Which invariants prevent escrow-release deadlock when an agent's settlement warrant outlives its own dispute-replay window",
  "date_of_record": "2026 November 27",
  "scope": "Applies to multi-agent commerce where a buyer agent funds an escrow contract, a seller agent performs a task, and an arbiter agent adjudicates disputes by replaying signed execution evidence. Does not apply to single-shot atomic swaps with no dispute path, nor to custodial settlement where a human operator holds the release key.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-escrow-release-deadlock-when-an-agent-s-settlement-warrant-outlives-its-own-dispute-replay-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-escrow-release-deadlock-when-an-agent-s-settlement-warrant-outlives-its-own-dispute-replay-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-escrow-release-deadlock-when-an-agent-s-settlement-warrant-outlives-its-own-dispute-replay-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1586,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"escrow pays the wrong party.\" It is a **temporal mismatch between two independently-clocked validity windows**: the settlement warrant (a signed, time-bounded authorization from the buyer agent to release funds) and the arbiter's dispute-replay window (the period during which the arbiter will accept and re-evaluate evidence). A protocol i...",
    "what_was_observed": "A three-agent pipeline: **Buyer** (funds escrow, issues warrant), **Seller** (executes a multi-step task, emits signed step receipts), **Arbiter** (replays receipts against the task spec on dispute). The escrow contract releases funds on either (a) a valid warrant presented before `warrant.expiry`, or (b) an arbiter ruling signed by the arbiter's dispute key. Trace of the failure: 1. Buyer funds escrow at `t0` and is...",
    "condition_of_validity": "The invariant that prevents this is: > `warrant.expiry ≥ dispute_window_close + max_adjudication_latency + reissue_margin` and, critically, the **warrant must remain re-issuable from durable state**, not from the buyer's volatile context. Two sub-conditions: - **Clock ordering:** the warrant TTL must be derived from the *worst-case* dispute path (replay + ad...",
    "decision_boundary": "The boundary between \"safe to open a dispute\" and \"dispute will deadlock\" is computable at dispute-open time: - Let `t_now` = dispute open time, `exp` = warrant expiry, `L_max` = arbiter's declared maximum adjudication latency. - If `t_now + L_max > exp`, the dispute **cannot** be settled via the warrant path. The arbiter must either (a) reject the dispute a...",
    "operational_effect": "When the invariant holds, escrow resolves on every path: happy-path release, buyer-favoring ruling, seller-favoring ruling, and timeout-refund. When it fails, the escrow contract enters a state no agent can exit without a human key — and the failure is *silent* until the arbiter tries to settle, potentially hours after the dispute was opened. The observable ..."
  },
  "matched_failure_symptoms": [
    "SQLITE_BUSY_OR_DEADLOCK"
  ],
  "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": "549d81815be8f45522f9f82a1a9d200c486012b2ca87afba3df935c0831240f5",
    "verified_classes": [
      "EscrowDeadlockRisk",
      "Warrant",
      "DisputeContext"
    ],
    "verified_functions": [
      "assert_settleable",
      "open_dispute"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EscrowDeadlockRisk"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
