{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-downgrade-when-a2a-agent-cards-are-re-fetched-across-a-trust-boundary",
  "title": "Which invariants prevent silent capability downgrade when A2A agent cards are re-fetched across a trust boundary",
  "date_of_record": "2026 November 30",
  "scope": "Applies to A2A v1.0 deployments where a client agent discovers a remote agent via `/.well-known/agent-card.json`, negotiates capabilities, and later re-fetches the card after a trust-boundary crossing (peer migration, key rotation, tenant reassignment, or CDN edge change). Does not cover initial discovery on a fully trusted, single-tenant network, nor A2A versions prior to v1.0.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-downgrade-when-a2a-agent-cards-are-re-fetched-across-a-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-downgrade-when-a2a-agent-cards-are-re-fetched-across-a-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-downgrade-when-a2a-agent-cards-are-re-fetched-across-a-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1640,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent lost a capability.\" It is that the *client* silently accepted a weaker card as if it were the same agent. A2A agent cards are self-describing and mutable: the `skills`, `capabilities.streaming`, `capabilities.pushNotifications`, `defaultInputModes`, and `securitySchemes` fields can all change between fetches. The protocol...",
    "what_was_observed": "A planner agent held a live session with a remote `summarizer` agent whose card advertised `capabilities.streaming: true` and a skill `long-doc-summarize` with `inputModes: [\"text/plain\", \"application/pdf\"]`. Mid-task, the remote's tenant was migrated to a second region behind a different edge. The client re-fetched the card during a routine refresh (TTL expiry, 300s). The new card was structurally valid, same `name`...",
    "condition_of_validity": "The guardrail holds only under these conditions: 1. The client persists the *full* card fingerprint (a hash over the canonicalized capability-relevant fields: `skills[].id`, `skills[].inputModes`, `skills[].outputModes`, `capabilities.*`, `defaultInputModes`, `defaultOutputModes`, and `securitySchemes` keys) at negotiation time, not just skill names. 2. The ...",
    "decision_boundary": "At each re-fetch, the client must decide: *absorb, renegotiate, or abandon.* The boundary is drawn on the fingerprint delta, not on HTTP success: - **Absorb** only if the delta is purely additive (new skills, widened modes, added schemes) AND the origin identity is unchanged. Update the cache, continue. - **Renegotiate** if any capability narrows OR the orig...",
    "operational_effect": "Enforcing the invariant converts a class of silent partial-success failures into loud, localized negotiation failures. The planner no longer checkpoints false provenance; it fails the step with a typed downgrade error and can re-plan against the new card (e.g., chunk the PDF client-side to fit `text/plain`). The cost is added latency on every re-fetch (canon..."
  },
  "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": "0707facc0cf6f4343b902e52eb332f373809959178f892c5479a7dbf42e75974",
    "verified_classes": [
      "CapabilityDowngradeError",
      "NegotiatedBaseline"
    ],
    "verified_functions": [
      "_canonical_fingerprint",
      "_principal",
      "assert_no_downgrade"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDowngradeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
