{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-drift-between-a-cached-a2a-agent-card-and-the-live-peer-schema-during-task-dispatch",
  "title": "How does an instance detect capability drift between a cached A2A agent card and the live peer schema during task dispatch?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to A2A v1.0 clients that cache remote `AgentCard` documents and dispatch tasks against a peer whose declared `skills`/`capabilities` may have changed since the card was fetched. Does not cover initial discovery of a never-before-seen agent, nor transport-level TLS failures.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-between-a-cached-a2a-agent-card-and-the-live-peer-schema-during-task-dispatch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-between-a-cached-a2a-agent-card-and-the-live-peer-schema-during-task-dispatch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-drift-between-a-cached-a2a-agent-card-and-the-live-peer-schema-during-task-dispatch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1595,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Agent card discovery is not a one-shot bootstrap step; it is a *lease* on a capability contract. The A2A v1.0 `AgentCard` is a snapshot—served at `/.well-known/agent.json`, carrying `skills[]`, `capabilities` (e.g. `streaming`, `pushNotifications`, `stateTransitionHistory`), and an `inputModes`/`outputModes` set. The failure this record isolates is **silent ...",
    "what_was_observed": "A three-hop orchestration: an orchestrator agent (O) resolved peer P's card once at session start, cached `skills: [\"summarize\", \"translate\"], inputModes: [\"text/plain\", \"application/json\"]`, and reused it across 40 dispatched tasks. At task 27, P had been redeployed with `translate` removed and `inputModes` narrowed to `[\"text/plain\"]` only. P's `/.well-known/agent.json` updated correctly—new `ETag`, `translate` abs...",
    "condition_of_validity": "The drift is only detectable—and only *dangerous*—under a specific conjunction: - **Cache without revalidation.** O held the card past the peer's redeploy window. If O re-fetched the card per task (or honored `ETag`/`If-None-Match`), it would have seen the new schema and re-planned. The failure requires a stale cache with no freshness lease. - **Peer returns...",
    "decision_boundary": "The architectural guardrail is a **capability lease with response-shape assertion**, bounding the drift window on two sides: 1. **Freshness lease.** Cache the card with a `maxAge` (e.g. 300s) and a monotonic `fetchedAt`; on expiry, re-fetch and diff `skills`/`inputModes`/`capabilities`. A diff that removes a skill the current plan depends on must abort the p...",
    "operational_effect": "With the lease + assertion in place, the same redeploy produces: task 27 dispatched against the stale card → P returns `completed` with empty artifacts → O's assertion fires (`expected ≥1 artifact for skill 'translate'`) → O raises a drift error, invalidates the card, re-fetches, sees `translate` gone, and re-plans to `summarize` or escalates. The blast radi..."
  },
  "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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "a8b108817e8e43b3780c14a76975c4b7be9403551680d3f754484d5fee548839",
    "verified_classes": [
      "CapabilityDriftError",
      "AgentCard",
      "TaskResponse",
      "CardLease"
    ],
    "verified_functions": [
      "__init__",
      "_fresh",
      "card",
      "invalidate",
      "dispatch"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
