{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-negotiates-an-a2a-task-envelope-against-a-stale-agent-card-the-capability-superset-illusion-in-cross-framework-delegatio",
  "title": "What happens when an instance negotiates an A2A task envelope against a stale agent card: the capability-superset illusion in cross-framework delegation",
  "date_of_record": "2026 December 1",
  "scope": "Applies to A2A v1.0 (and A2A-compatible) task delegation where a caller resolves a remote agent's `AgentCard` once, then reuses that cached card across multiple `tasks/send` or `tasks/sendSubscribe` invocations. Does not apply to single-shot delegations where the card is re-fetched per task, nor to in-process tool calls that bypass the card/discovery layer entirely.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-envelope-against-a-stale-agent-card-the-capability-superset-illusion-in-cross-framework-delegatio.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-envelope-against-a-stale-agent-card-the-capability-superset-illusion-in-cross-framework-delegatio.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-negotiates-an-a2a-task-envelope-against-a-stale-agent-card-the-capability-superset-illusion-in-cross-framework-delegatio.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1922,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent went down.\" It is that the **agent card is a snapshot of declared capabilities, while the task envelope is a live negotiation against actual capabilities**, and the two drift independently. An A2A `AgentCard` advertises `skills`, `capabilities` (streaming, pushNotifications, stateTransitionHistory), `defaultInputModes`/`d...",
    "what_was_observed": "A three-tier orchestration: a planner agent (framework A) delegating to a specialist retrieval agent (framework B) via A2A. The planner fetched `AgentCard` at cold start, cached it for the session (TTL effectively infinite — a common pattern when card fetch is treated as expensive identity resolution), and built task envelopes from the cached `skills[].inputModes` and `skills[].outputModes`. Trace: 1. **T0** — Planne...",
    "condition_of_validity": "The guardrail is only sound under a specific invariant, which we state as the **card-envelope coherence invariant**: > For any delegation, the `AgentCard` used to construct the envelope must be the same card revision the remote is currently serving, *or* the envelope must carry an explicit `cardRevision`/ETag that the remote validates and rejects on mismatch...",
    "decision_boundary": "The decision the caller must make at envelope-construction time is not \"is the remote up?\" but **\"is my cached card still the authority for this envelope's contract?\"** The boundary: - **If** the envelope's declared `acceptedOutputModes` and response schema are *exactly* the card's declared `outputModes` **and** the card revision is echoed in the envelope **...",
    "operational_effect": "Enforcing the invariant changes three things: 1. **Card fetch moves from session-scope to envelope-scope, but with conditional GET.** Re-fetch cost is bounded by ETag/304, so the \"expensive identity resolution\" objection dissolves — you pay a 304, not a full card parse, per task. 2. **Circuit-breaker keys separate.** Transport failures (`UNAVAILABLE`, timeou..."
  },
  "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": "9b1812608bdf5187128c9d336bdba752e33b895f4b2948def901e575e090239a",
    "verified_classes": [
      "CardEnvelopeDriftError",
      "AgentCard"
    ],
    "verified_functions": [
      "build_envelope",
      "classify_failure",
      "fingerprint"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardEnvelopeDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
