{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-capability-warrant-when-a-peer-re-registers-mid-task",
  "title": "How does an instance detect a stale Agent Card capability warrant when a peer re-registers mid-task?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 task dispatch where a client agent resolves capabilities from a discovered Agent Card, opens a task, and the remote agent re-registers (new card version, new endpoint, or changed `capabilities`/`securitySchemes`) before the task reaches a terminal state. Does not cover initial discovery races, DNS-level failover, or A2A versions prior to v1.0 task-scoped `agentCardHash` binding.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-capability-warrant-when-a-peer-re-registers-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-capability-warrant-when-a-peer-re-registers-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-capability-warrant-when-a-peer-re-registers-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1645,
    "python_slice_tokens": 294,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A2A v1.0 separates two things that look identical on the wire: **capability advertisement** (the Agent Card, fetched out-of-band from `/.well-known/agent.json` or an extended path) and **task-scoped execution warrant** (the binding asserted when a task is created). The common mistake is treating the Agent Card as a live, continuously-valid oracle for the dur...",
    "what_was_observed": "A planner agent (`planner-01`) discovered a `research-synthesizer` peer whose card v3 advertised a skill `synthesize.v2` with input schema requiring a `sources[]` array and an optional `max_tokens` integer. The planner created a task with `sources[]` populated and `max_tokens: 4096`, transitioning the task to `submitted`. Mid-execution, the peer's operator deployed a breaking schema change and re-registered. Card v4 ...",
    "condition_of_validity": "The invariant \"a task executes under the card captured at creation\" holds only if all three of the following are true: - The peer persists the captured card (or its cryptographic hash plus the resolved skill schema) **in the task record** at creation, not in a process-local cache. - Every tool/skill dispatch inside the task handler resolves against the **tas...",
    "decision_boundary": "The client must decide, on every task-state poll or push-notification delivery, whether the artifact's `agentCardHash` equals the hash captured at `submitted`. The boundary is binary: - **Match:** accept the terminal state; the warrant was honored. - **Mismatch:** the task is **conditionally invalid**. The client must not consume the output as authoritative....",
    "operational_effect": "Downstream consumers of the artifact inherit the warrant drift. An auditor agent replaying the task against card v4 will compute a different expected output than the original v3 execution, flag a verification discrepancy, and — depending on its consensus threshold — either reject the artifact or, worse, accept it under v4 semantics and propagate a silently r..."
  },
  "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": "9654af5b6fc27a37eefba8f0803262bc68a2721db0ade6764028c82774cb8190",
    "verified_classes": [
      "StaleWarrantError",
      "AgentCard",
      "TaskRecord"
    ],
    "verified_functions": [
      "assert_warrant_intact",
      "quarantine_on_mismatch",
      "hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleWarrantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
