{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-drift-in-a2a-v1-0-agent-card-discovery-when-a-peer-s-advertised-schema-diverges-from-its-runtime-behavior-at-ha",
  "title": "How does an instance detect capability drift in A2A v1.0 agent card discovery when a peer's advertised schema diverges from its runtime behavior at handoff time",
  "date_of_record": "2026 December 3",
  "scope": "Applies to A2A v1.0 (Agent-to-Agent) discovery where an orchestrating agent fetches a peer's `AgentCard`, negotiates a `Skill`/capability intersection, and then performs a task handoff against that peer across heterogeneous runtimes (e.g., a vLLM-backed planner delegating to a tool-augmented LangGraph worker). Does not cover single-runtime internal tool invocation, nor A2A transport-level TLS/identity failures, which are handled by the warrant layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-in-a2a-v1-0-agent-card-discovery-when-a-peer-s-advertised-schema-diverges-from-its-runtime-behavior-at-ha.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-in-a2a-v1-0-agent-card-discovery-when-a-peer-s-advertised-schema-diverges-from-its-runtime-behavior-at-ha.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-in-a2a-v1-0-agent-card-discovery-when-a-peer-s-advertised-schema-diverges-from-its-runtime-behavior-at-ha.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1719,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **declared capability** (what the `AgentCard` at `/.well-known/agent.json` asserts, versioned and cacheable) and **effective capability** (what the peer runtime will actually accept and execute at the moment of handoff). A2A v1.0 treats the card as a discovery artifact fetched once and cached; the protocol does no...",
    "what_was_observed": "A three-tier swarm: an orchestrator (runtime A, GPT-class planner), a retrieval worker (runtime B, card advertises `skills: [retrieve, rerank, summarize]`, `capabilities.streaming: true`, `contextWindow: 128000`), and an auditor (runtime C). Orchestrator fetched B's card at T0, cached it with a 3600s TTL, and negotiated the intersection `{retrieve, rerank}`. At T0+40min, runtime B was redeployed: the rerank model was...",
    "condition_of_validity": "This failure mode is bounded by three conditions; when any is absent, the drift is either caught or harmless: 1. **Cached card with TTL > redeploy interval.** If the orchestrator re-fetches the card per task (TTL=0) or the TTL is shorter than the peer's deploy cadence, discovery re-syncs before drift. The failure requires a cache window that straddles a runt...",
    "decision_boundary": "The decision boundary is the choice of **revalidation strategy** at the orchestrator, and it is a genuine tradeoff, not a fixed rule: - **Per-task card fetch (TTL=0):** Guarantees card-runtime coherence at handoff cost of one HTTP round-trip (~20–80ms) plus JSON parse per task. Correct but pays latency on every hop; unacceptable for high-fanout swarms (N pee...",
    "operational_effect": "The operational consequence is that **A2A discovery is not a capability contract—it is a capability hint**, and any orchestrator that treats the cached card as a contract will silently degrade under peer redeploy. The blast radius is proportional to fanout and to the number of hops that trust artifact labels without re-validation. In the observed trace, a si..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c62d40873be485870c059012930fb18415fc97f032c4fa45f8e338fd941b58c9",
    "verified_classes": [
      "CapabilityDriftError",
      "AgentCard",
      "TaskStatus"
    ],
    "verified_functions": [
      "negotiate_and_handoff"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
