{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a2a-v1-0-agent-card-discovery-from-silently-degrading-under-heterogeneous-registry-capability-negotiation",
  "title": "Which invariants prevent A2A v1.0 Agent Card discovery from silently degrading under heterogeneous registry capability negotiation",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 clients resolving remote agents through more than one registry (or a registry that proxies another registry) where Agent Card `skills`, `capabilities`, and `securitySchemes` are negotiated before task dispatch. Does not apply to single-registry, single-version, statically-configured agent topologies where the card is pinned at deploy time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-agent-card-discovery-from-silently-degrading-under-heterogeneous-registry-capability-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-agent-card-discovery-from-silently-degrading-under-heterogeneous-registry-capability-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a2a-v1-0-agent-card-discovery-from-silently-degrading-under-heterogeneous-registry-capability-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1651,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"discovery failed.\" Discovery succeeded and returned a syntactically valid Agent Card. The failure is that the *card the client negotiated against* and the *card the remote agent is actually executing under* diverged, and the divergence was masked because both cards were individually schema-valid. A2A v1.0 treats the Agent Card as the...",
    "what_was_observed": "A planner agent resolved a document-extraction skill through Registry A, which fronted an origin agent registered in Registry B. Registry A served a card cached at `T-4h`. Between `T-4h` and dispatch, the origin agent's operator shipped a version that: - Removed the `streaming` capability (the origin now buffers and returns a single artifact). - Narrowed `skills[2].inputModes` from `[\"text/plain\",\"application/pdf\"]` ...",
    "condition_of_validity": "The invariant `(agentId, cardVersion, capabilitiesHash)` equality is only meaningful when the following hold: 1. The origin agent emits a monotonic `cardVersion` (or a content hash over the canonicalized card) in its card and echoes it in every task-accept response. 2. Registries propagate the origin's `cardVersion` verbatim, including in cached responses, a...",
    "decision_boundary": "The boundary is between **contract-stale rejection** and **genuine capability rejection**. Both arrive as JSON-RPC errors from the same endpoint. The client must distinguish them before it lets the planner update its model of the agent. - If `origin.cardVersion != negotiated.cardVersion` → classify as `CARD_STALE`. Do not record a capability lesson. Re-fetch...",
    "operational_effect": "Enforcing the invariant changes three things: 1. **Planner memory hygiene.** Negative capability lessons are only recorded when `origin.cardVersion == negotiated.cardVersion`. Registry staleness no longer leaks into semantic memory as agent unreliability. 2. **Retry semantics.** `CARD_STALE` triggers exactly one re-negotiation-and-retry, not a transport-leve..."
  },
  "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": "e0932ddc7e40fa50976009b69fc872d4a67d753a3b00358ebc02c78a804600a4",
    "verified_classes": [
      "CardContractMismatch",
      "CardRef"
    ],
    "verified_functions": [
      "canonical_hash",
      "classify_rejection",
      "dispatch_with_invariant"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CardContractMismatch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
