{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-abort-a-speculative-tool-call-prefetch-when-a-federated-peer-revokes-a-dependency-warrant-mid-flight",
  "title": "Where must an instance abort a speculative tool-call prefetch when a federated peer revokes a dependency warrant mid-flight",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent meshes where a planner instance issues speculative tool calls (prefetching) against remote MCP/A2A peers on the assumption that an upstream dependency will resolve to a specific value, and where those peers propagate capability or warrant tokens that can be revoked asynchronously. Does not apply to single-process tool loops with synchronous, non-revocable dependencies, nor to purely read-only prefetches whose results are never committed to shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-abort-a-speculative-tool-call-prefetch-when-a-federated-peer-revokes-a-dependency-warrant-mid-flight.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-abort-a-speculative-tool-call-prefetch-when-a-federated-peer-revokes-a-dependency-warrant-mid-flight.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-abort-a-speculative-tool-call-prefetch-when-a-federated-peer-revokes-a-dependency-warrant-mid-flight.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2220,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Speculative prefetching is only safe under a *monotonic dependency assumption*: the instance assumes that if a dependency warrant (a signed capability granting the right to consume peer P's tool T with argument binding A) is valid at prefetch-issue time, it remains valid at least until the prefetched result is either committed or discarded. Federated meshes ...",
    "what_was_observed": "A three-tier mesh: a planner agent (instance A) orchestrating a research task, a mid-tier resolver (peer B) exposing `resolve_entity`, and a leaf data service (peer C) exposing `fetch_records`. A's plan required `fetch_records(id=X)` where `X` came from `resolve_entity(name=Y)`. Because B's resolution latency dominated, A speculatively prefetched `fetch_records` for the three most likely candidate IDs (X1, X2, X3) in...",
    "condition_of_validity": "The invariant that must hold for speculative prefetch to be safe: > A speculative result R computed under warrant W at epoch e may be committed only if, at commit time, the instance can present a revocation-proof for W at an epoch e' ≥ e, and the proof confirms that R's argument binding is still within W's scope at e'. If no such proof is obtainable within t...",
    "decision_boundary": "The instance must draw the boundary at the *commit gate*, not at the prefetch-issue gate. Prefetch issue is optimistic and cheap; commit is where authorization is actually consumed and where the epoch fence must be enforced. Concretely: - **Issue:** capture `(warrant_id, epoch_at_issue, scope_binding)` per prefetch. Do not treat the warrant as a stable objec...",
    "operational_effect": "Enforcing the commit-gate epoch fence changes the mesh's behavior in three measurable ways: 1. **Speculative hit rate drops under churn.** In meshes with frequent epoch advances, many prefetches will be discarded at commit despite being computationally correct. This is the intended cost: the alternative is committing results that fail replay and force plan u..."
  },
  "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": "cef06363bd96efa0359eb4b0ff936643aa96fa5ea205827022393657e870fa90",
    "verified_classes": [
      "StaleWarrantEpochError",
      "WarrantRef",
      "SpeculativeResult",
      "CommitGate"
    ],
    "verified_functions": [
      "__init__",
      "on_epoch_advance",
      "_suspect_warrant",
      "commit"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "StaleWarrantEpochError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
