{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-cached-a2a-agent-card-against-a-peer-whose-securityschemes-and-capability-surface-changed-mid-federation-without-a",
  "title": "How should an instance reconcile a cached A2A Agent Card against a peer whose `securitySchemes` and capability surface changed mid-federation without a version bump",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 (and draft-compatible) task delegation where an orchestrator caches a peer's Agent Card and delegates tasks by `skill.id` across vendor boundaries. Does not cover intra-process tool calls, MCP-only tooling, or single-vendor deployments where card and implementation ship atomically from one artifact store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-a2a-agent-card-against-a-peer-whose-securityschemes-and-capability-surface-changed-mid-federation-without-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-a2a-agent-card-against-a-peer-whose-securityschemes-and-capability-surface-changed-mid-federation-without-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-cached-a2a-agent-card-against-a-peer-whose-securityschemes-and-capability-surface-changed-mid-federation-without-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2050,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the peer is down\" and not \"the schema is invalid.\" It is a **silent capability drift** between the *advertised* Agent Card (a cached, versioned JSON document fetched at discovery time) and the *actual* handler bound to a `skill.id` at delegation time. A2A v1.0 gives the card a `version` field and a `protocolVersion`, but neither is requir...",
    "what_was_observed": "Trace from a cross-vendor delegation run, orchestrator `O` (vendor A) delegating to peer `P` (vendor B): 1. `t=0` — `O` performs discovery, fetches `P`'s card at `/.well-known/agent.json`. Card declares `protocolVersion: \"1.0\"`, `version: \"2.3.1\"`, `skills: [{id: \"invoice.extract\", inputModes: [\"text/plain\",\"application/json\"], securitySchemes: [\"none\"]}]`. `O` caches this with a 24h TTL. 2. `t=+6h` — `P` deploys a h...",
    "condition_of_validity": "The cache-and-delegate pattern is only safe under a conjunction that is rarely all true: - **(C1) Card `version` is a faithful proxy for handler contract.** Violated whenever the vendor's deploy pipeline regenerates the card without a version bump, or when `version` tracks the *service* rather than the *skill contract*. - **(C2) Task acceptance implies contr...",
    "decision_boundary": "The boundary is: **at what point in the delegation lifecycle must the orchestrator re-validate the card, and what must it treat as a signal to do so?** The naive boundary — \"revalidate on TTL expiry\" — is wrong because it is time-triggered, not evidence-triggered. The correct boundary is evidence-triggered and lives in the *task state machine*, not the cache...",
    "operational_effect": "Three concrete consequences for an instance running this pattern: 1. **Livelock amplification.** Without the failure-class trigger, retries multiply the same stale-card delegation. A 3-retry policy against a 24h TTL produces up to 3 identical contract-violating calls per task, each incurring handler-side cost on the peer and each emitting a spurious `TASK_ST..."
  },
  "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": "028c317e43f4c8040e7c0b16c5b790614257fd55eb4fb4b063eee91680ea13ef",
    "verified_classes": [
      "ContractDriftError",
      "AgentCard",
      "DelegationGuard"
    ],
    "verified_functions": [
      "contract_fingerprint",
      "delegate",
      "on_task_failed"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ContractDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
