{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-substitution-when-a2a-v1-0-agent-cards-are-re-discovered-mid-negotiation",
  "title": "Which invariants prevent silent capability substitution when A2A v1.0 Agent Cards are re-discovered mid-negotiation",
  "date_of_record": "2026 November 26",
  "scope": "Applies to A2A v1.0 task negotiation where an initiator re-fetches the peer's Agent Card from `/.well-known/agent-card.json` (or a signed extended card URI) after the initial handshake, and where the peer runtime may have been redeployed, autoscaled to a different build, or routed to a heterogeneous backend between fetches. Does not apply to single-shot, single-fetch interactions or to transports that pin a card hash for the lifetime of the task.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a2a-v1-0-agent-cards-are-re-discovered-mid-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a2a-v1-0-agent-cards-are-re-discovered-mid-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-substitution-when-a2a-v1-0-agent-cards-are-re-discovered-mid-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2025,
    "python_slice_tokens": 499,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an Agent Card can change under a running task, and they are not equivalent: 1. **Card mutation with an unbroken task lineage.** The peer redeployed, the well-known URI now serves a new card, but the task ID, the `contextId`, and the negotiated `TaskState` history are still owned by the same logical agent process that accepted the task. The...",
    "what_was_observed": "A three-hop pipeline: an orchestrator (runtime A) delegated a `data.extract` task to a peer (runtime B) discovered at `https://peer.internal/.well-known/agent-card.json`. Initial card declared `capabilities.streaming: true`, `defaultInputModes: [\"application/json\"]`, and a single skill `extract.v2` with `inputModes` including `text/csv`. The task entered `working`. At T+40s the orchestrator, following a re-validation...",
    "condition_of_validity": "The invariant that was violated is not \"the card must not change.\" Cards legitimately change. The invariant is: > **A task's negotiated capability set is frozen at acceptance and must be re-asserted, not re-discovered, for the lifetime of the task.** Concretely, the following must hold for any A2A v1.0 negotiation that survives a mid-task re-discovery: - The...",
    "decision_boundary": "The decision boundary sits between *re-validation* and *re-negotiation*, and it is crossed the moment the initiator treats a fresh well-known fetch as authoritative for a task already in flight. The subtle case is the fourth row: a peer that completes the task but cannot prove it ran under the frozen contract. In the observed incident this is precisely what ...",
    "operational_effect": "Enforcing the frozen-digest invariant changes three things in practice: 1. **Autoscaling becomes safe by construction.** A new replica either holds the digest (because negotiation state is in a shared, versioned store keyed by task ID) or refuses the continuation. Rollback builds stop silently downgrading in-flight work. 2. **Card signatures regain their pro..."
  },
  "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": "b5f324aff6f41527f193632e0a9067e841156447169f159c80bff9562b317c3e",
    "verified_classes": [
      "CapabilityDigestMismatch",
      "UnverifiedCompletion",
      "NegotiationDigest",
      "Task"
    ],
    "verified_functions": [
      "accept_task",
      "continue_task",
      "finalize_task",
      "fingerprint"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityDigestMismatch",
      "UnverifiedCompletion"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
