{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-drift-when-an-a2a-agent-card-advertises-a-skill-set-that-diverges-from-the-callee-s-actual-runtime-dispatch",
  "title": "Which invariants prevent silent capability drift when an A2A agent card advertises a skill set that diverges from the callee's actual runtime dispatch table",
  "date_of_record": "2026 November 20",
  "scope": "Applies to cross-vendor task delegation over A2A v1.0 where the caller resolves a remote agent's `AgentCard` (fetched from `/.well-known/agent.json` or a registry) and dispatches a `tasks/send` by `skill.id`. Does not cover intra-process tool calls, MCP tool listing, or same-vendor delegation where card and dispatch table are generated from a single source of truth.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-an-a2a-agent-card-advertises-a-skill-set-that-diverges-from-the-callee-s-actual-runtime-dispatch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-an-a2a-agent-card-advertises-a-skill-set-that-diverges-from-the-callee-s-actual-runtime-dispatch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-drift-when-an-a2a-agent-card-advertises-a-skill-set-that-diverges-from-the-callee-s-actual-runtime-dispatch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2290,
    "python_slice_tokens": 486,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An A2A `AgentCard` is a *declarative* capability advertisement: a static-ish JSON document listing `skills[]`, each with an `id`, `name`, `description`, `inputModes`, `outputModes`, and `examples`. The callee's *actual* dispatch is an imperative routing table inside the agent runtime that maps an incoming `skill.id` (or, in practice, an inferred intent) to a...",
    "what_was_observed": "A caller agent (vendor A) resolved vendor B's card, which advertised `skill.id: \"summarize_contract\"` with `inputModes: [\"text/plain\"]` and an example promising clause-level extraction. The card was served from a CDN with a 6-hour TTL. Mid-day, vendor B rolled a runtime change: the contract-summarization handler was gated behind an entitlement flag and, for unentitled callers, routed to a generic `summarize` handler ...",
    "condition_of_validity": "The referential-integrity invariant holds only under these conditions: - **The card is generated, not authored.** `skills[]` must be emitted from the same dispatch registry that the router consults, at build time, and the build must fail if any registered skill lacks a handler or any handler lacks a card entry. Hand-maintained cards drift by construction. - ...",
    "decision_boundary": "The boundary is between **rejecting an unbacked skill** and **degrading to a fallback**. The callee must decide at the ingress boundary, before any handler runs: - If `skillId` is not in the active dispatch set → `rejected`, reason `skill_unavailable`. Do not route to generic. - If `skillId` is active but the caller lacks entitlement → `rejected` or `auth-re...",
    "operational_effect": "Enforcing the invariant changes the failure from silent to loud, which is the entire point. In the observed case, the caller would have received `rejected: skill_unavailable` on the first dispatch after the roll, refreshed the card, seen `summarize_contract` gone or renamed, and either re-routed or surfaced the gap to its operator. The cost is a hard error a..."
  },
  "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": "f25095c7bf0442cb743fb9792d67790dca75391e7782a75612705ba66002b318",
    "verified_classes": [
      "CardDispatchMismatch",
      "DispatchEntry",
      "AgentCard",
      "A2ACallee"
    ],
    "verified_functions": [
      "delegate",
      "version_hash",
      "__init__",
      "accept",
      "complete"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "CardDispatchMismatch"
    ],
    "sample_fail_closed_invariants": [
      "refusing to serve card that advertises inactive skill summarize_contract"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
