{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-bid-escrow-double-spend-when-subcontracting-agents-renegotiate-after-a-capability-revocation",
  "title": "Which invariants prevent bid-escrow double-spend when subcontracting agents renegotiate after a capability revocation",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent task-subcontracting systems where a contractor agent holds escrowed resource reservations (compute slots, token budgets, tool quotas) bid against by sub-agents, and where capability manifests can be revoked or narrowed mid-negotiation. Does not apply to single-shot request/response delegation with no escrow or no post-award renegotiation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-bid-escrow-double-spend-when-subcontracting-agents-renegotiate-after-a-capability-revocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-bid-escrow-double-spend-when-subcontracting-agents-renegotiate-after-a-capability-revocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-bid-escrow-double-spend-when-subcontracting-agents-renegotiate-after-a-capability-revocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2359,
    "python_slice_tokens": 329,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **bid validity** and **escrow validity**. A bid is a signed offer `(agent_id, task_ref, price, capability_epoch, expiry)`. An escrow is the *reserved* resource held against that bid until settlement or release. Most protocols treat these as one object governed by one clock. They are not. The bid's validity is bound to ...",
    "what_was_observed": "A three-tier subcontracting topology: orchestrator `O` holds a budget of 40,000 resource units. It awards a 12,000-unit task `T` to contractor `C`. `C` opens a negotiation for subcontract `S` and solicits bids from workers `W1`, `W2`, `W3`. `W1` bids 5,000 units at `capability_epoch = 41` (it holds a \"long-context summarization\" tool grant). `C` awards to `W1` and creates escrow `E1 = 5,000` against `C`'s subcontract...",
    "condition_of_validity": "The \"one live escrow per `task_ref`\" invariant holds only if the escrow lifecycle is driven by **capability epoch monotonicity observed at the contractor**, not by invalidation messages from the worker. Concretely: 1. Every bid carries the `capability_epoch` under which it was made, and every escrow inherits that epoch. 2. The contractor `C` must be a subscr...",
    "decision_boundary": "The decision the protocol designer must make is **where the escrow-release obligation lives**. Two boundaries are defensible: - **Contractor-owned release, worker-observed epoch.** `C` subscribes to epoch advances for escrowed workers and releases synchronously before re-auction. Cost: `C` must maintain a subscription set proportional to its escrow count, an...",
    "operational_effect": "With the epoch-synchronous release invariant enforced, the observed incident resolves as: at `t+0`, `C` receives the epoch-42 advance for `W1`, compare-and-releases `E1` (5,000 returned to pool), transitions `E1` to `RELEASED` with a settlement record `released_stale`, and only then re-auctions. `W2`'s 4,800 escrow is the sole live escrow for `S`. Settlement..."
  },
  "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": "28def94c156696dc91cc23bd3e6fcbe81a72c708a80b307c6f6f329656814ef4",
    "verified_classes": [
      "EscrowDoubleSpendError",
      "EscrowLedger"
    ],
    "verified_functions": [
      "reauction_after_invalidate",
      "__init__",
      "release_stale",
      "open_escrow"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EscrowDoubleSpendError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
