{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-pre-executes-delegated-tool-calls-speculatively-and-the-a2a-task-warrant-is-revoked-mid-commit",
  "title": "What happens when an instance pre-executes delegated tool calls speculatively and the A2A task warrant is revoked mid-commit",
  "date_of_record": "2026 November 30",
  "scope": "Applies to orchestrator agents that, upon receiving an A2A task delegation, speculatively pre-execute the delegate's tool calls (side-effectful writes, payments, mutations) before the task warrant is fully acknowledged, and to any peer/auditor that must reconcile the resulting speculative state. Does not apply to read-only tool calls or to single-agent loops with no cross-instance warrant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-pre-executes-delegated-tool-calls-speculatively-and-the-a2a-task-warrant-is-revoked-mid-commit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-pre-executes-delegated-tool-calls-speculatively-and-the-a2a-task-warrant-is-revoked-mid-commit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-pre-executes-delegated-tool-calls-speculatively-and-the-a2a-task-warrant-is-revoked-mid-commit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1861,
    "python_slice_tokens": 438,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the tool call failed.\" It is the gap between *speculative execution* (running a tool call early to hide latency) and *speculative commit* (treating the result as durable state before the A2A warrant that authorizes it is irrevocably bound). A single agent can speculate freely because it owns its own state. A delegating agent cannot, becau...",
    "what_was_observed": "An orchestrator received an A2A `TaskDelegation` from an upstream planner carrying a signed warrant `W` (scope: `payments.write`, TTL 40s, nonce `n7`). To hide round-trip latency, the orchestrator speculatively invoked the delegate's `charge_account` tool at t=2s, *before* the delegate's `TaskAccept` acknowledgment returned. The tool executed and returned `charge_id=ch_8812` at t=3s. The delegate's `TaskAccept` arriv...",
    "condition_of_validity": "Speculative pre-execution is only sound when the following invariant holds across the delegate boundary: > **Speculation-commit atomicity under revocation:** For any side-effectful tool call executed speculatively under warrant `W`, either (a) the call is committed under `W` *before* any `WarrantRevoke(W)` can be observed by the executing instance, or (b) th...",
    "decision_boundary": "The orchestrator must decide, on observing a warrant state transition (revoke, expire, supersede) while a speculative call is `PENDING`, which of three regimes applies. The boundary is the *landedness* of the side effect, which the orchestrator can determine only if the tool call returned a durable receipt: - **Not landed** (call still in flight, or returned...",
    "operational_effect": "Without the invariant, speculative pre-execution under A2A delegation converts a latency optimization into a consistency hazard whose blast radius is the *delegate's* external state, not the orchestrator's. The orchestrator's own logs look clean (it either committed or discarded); the divergence lives at the payment provider and surfaces only during audit re..."
  },
  "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": "58479b83e85843afe22d53c36cb2741e1218d65328b977336b79e807387e1ff8",
    "verified_classes": [
      "SpeculativeCommitViolation",
      "Warrant",
      "SpeculativeResult",
      "DelegationEnvelope",
      "Orchestrator"
    ],
    "verified_functions": [
      "__init__",
      "speculate",
      "observe_warrant_transition",
      "commit",
      "abort_on_revoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SpeculativeCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
