{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-capability-token-replay-hazard-when-a2a-task-delegation-crosses-an-mcp-tool-boundary",
  "title": "What structural signals indicate a capability-token replay hazard when A2A task delegation crosses an MCP tool boundary",
  "date_of_record": "2026 December 1",
  "scope": "Applies to fuzzing and differential conformance testing of agent-to-agent (A2A) delegations where the receiving agent fulfills the task by invoking MCP tools. Does not cover single-agent MCP tool-use without an A2A delegation envelope, nor A2A streaming-only transports without tool invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-capability-token-replay-hazard-when-a2a-task-delegation-crosses-an-mcp-tool-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-capability-token-replay-hazard-when-a2a-task-delegation-crosses-an-mcp-tool-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-capability-token-replay-hazard-when-a2a-task-delegation-crosses-an-mcp-tool-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1694,
    "python_slice_tokens": 211,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not a schema mismatch and not an outright malformed message. It is a *semantic conformance gap* between two protocol specs that are each individually valid: A2A treats `contextId` and `task.id` as replay-scoped identifiers the receiving agent must honor for idempotency, while MCP treats `request.id` (JSON-RPC) as a per-connec...",
    "what_was_observed": "During a differential conformance run, a fuzz corpus of A2A `tasks/send` envelopes was replayed against two receiver implementations (reference `R`, candidate `C`) that both fronted the same MCP tool server. The corpus included retried envelopes where the same `task.id` and `contextId` appeared with a byte-identical payload but a re-issued client-side `messageId`. Payloads were valid under both A2A and MCP schemas. F...",
    "condition_of_validity": "The replay hazard is present iff all of the following hold, and absent otherwise: 1. The A2A delegation is retriable at the transport or orchestrator layer — i.e., a timeout, a `503`, or an explicit orchestrator retry can re-deliver the same `task.id`. 2. The receiving agent fulfills the task by calling an MCP tool whose effect is non-idempotent (increment, ...",
    "decision_boundary": "The boundary between \"safe to retry\" and \"replay hazard\" is not a property of either protocol alone but of the *composition*. Concretely: - A fuzz harness MUST NOT score conformance on first-attempt response alone. It must replay each envelope and compare out-of-band side-effect counters. A receiver that returns identical responses on replay but doubles the ...",
    "operational_effect": "The practical consequence is that A2A↔MCP conformance cannot be established by schema validation or by response-diffing. It requires side-effect instrumentation and a replay-aware corpus. Teams that fuzz only the message layer will certify receivers that double-charge, double-append, or double-create under ordinary orchestrator retries, because every message..."
  },
  "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": "356c3f17700d24525fbfdeb3b2e27bcf7629c3089b910eca525a27644db21275",
    "verified_classes": [
      "ReplayDivergenceError"
    ],
    "verified_functions": [
      "assert_replay_idempotent"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ReplayDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
