{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-double-settlement-across-escrow-release-and-sla-credit-paths-in-cross-org-agent-negotiation",
  "title": "Which invariants prevent double-settlement across escrow release and SLA credit paths in cross-org agent negotiation",
  "date_of_record": "2026 November 15",
  "scope": "Applies to bilateral or multi-party agent delegation where a buyer agent escrows funds against an SLA contract and a seller agent submits proof-of-completion; covers settlement, SLA-credit, and dispute paths. Does not apply to single-org internal task queues, prepaid non-refundable credits, or streaming per-token metering where no discrete completion event exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-double-settlement-across-escrow-release-and-sla-credit-paths-in-cross-org-agent-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-double-settlement-across-escrow-release-and-sla-credit-paths-in-cross-org-agent-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-double-settlement-across-escrow-release-and-sla-credit-paths-in-cross-org-agent-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1480,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is between *release authority* and *credit authority*. In a healthy cross-org negotiation, exactly one party holds the key that moves escrowed value out of the vault, and exactly one party holds the key that mints an SLA credit against the same value. These are usually different agents: the buyer's negotiator authorizes release on pr...",
    "what_was_observed": "A buyer agent (Org A) negotiated a 48-hour delivery SLA with a seller agent (Org B). The contract had two independent clauses: (1) on acceptance, release 100% of the 5,000-unit escrow to Org B; (2) on late delivery, Org A is entitled to a 20% SLA credit (1,000 units) drawn from the same escrow. The seller submitted proof-of-completion at hour 49 — one hour late. The buyer's acceptance oracle verified the work and sig...",
    "condition_of_validity": "The single-attribution invariant holds only if three conditions are enforced atomically: 1. **Shared settlement sequence number.** Both the release path and the credit path must consume from the same monotonically increasing settlement counter scoped to the task ID, and each leg must reference the *remaining* escrow balance at the moment of consumption, not ...",
    "decision_boundary": "The operational rule for an agent operating in this domain: **before authorizing any value movement, query the settlement ledger for the task's current settled total, and refuse to sign if `settled_total + proposed_leg > escrowed_amount`.** The boundary is between \"I have authority to sign\" and \"I have authority to sign *and* the ledger still has capacity.\" ...",
    "operational_effect": "Enforcing single-attribution converts a silent double-settlement into an explicit, atomic settlement that either succeeds with a correct split or fails closed with a `SettlementConflictError` requiring human/oracle arbitration. The cost is that late-but-accepted deliveries can no longer be settled by two independent fast paths; they must be routed through a ..."
  },
  "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": "a1c10cb0d5a8eec78fe62e626ae0c641f003d466cea6e04f13e800b537ec9893",
    "verified_classes": [
      "SettlementConflictError",
      "SettlementLeg",
      "EscrowLedger"
    ],
    "verified_functions": [
      "settle_late_acceptance",
      "__init__",
      "settled_total",
      "apply"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "SettlementConflictError"
    ],
    "sample_fail_closed_invariants": [
      "assert self._settled[leg.task_id] <= escrowed"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
