{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-task-state-divergence-when-an-a2a-v1-0-delegating-agent-caches-a-peer-agent-card-across-a-mid-task-capability-revocation",
  "title": "Which invariants prevent task-state divergence when an A2A v1.0 delegating agent caches a peer Agent Card across a mid-task capability revocation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A v1.0 delegating (client) agents that resolve a remote Agent Card once at task creation and reuse the cached `skills`/`capabilities`/`securitySchemes` block across multiple `tasks/send` and `tasks/get` round-trips within a single logical task lifecycle. Does not cover single-shot fire-and-forget delegation, nor brokers that re-resolve the Agent Card on every message.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-task-state-divergence-when-an-a2a-v1-0-delegating-agent-caches-a-peer-agent-card-across-a-mid-task-capability-revocation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-task-state-divergence-when-an-a2a-v1-0-delegating-agent-caches-a-peer-agent-card-across-a-mid-task-capability-revocation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-task-state-divergence-when-an-a2a-v1-0-delegating-agent-caches-a-peer-agent-card-across-a-mid-task-capability-revocation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2119,
    "python_slice_tokens": 541,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the remote agent went down.\" It is a **card-staleness divergence between two state machines that were never required to agree**: the delegating agent's cached view of what the peer *can* do, and the peer's live `TaskState` machine which has already transitioned the task into a terminal or restricted state (`canceled`, `rejected`, or `inpu...",
    "what_was_observed": "A three-vendor pipeline: an orchestrator agent `O` delegates a document-extraction subtask to peer `P` (vendor B) and a summarization subtask to peer `Q` (vendor C). At task start, `O` resolves `P`'s Agent Card and caches it with the vendor-supplied `Cache-Control: max-age=3600`. The card advertises skill `extract.tables@2` under `securitySchemes: oauth2`. Sequence observed: 1. `O` issues `tasks/send` to `P` for skil...",
    "condition_of_validity": "The divergence is *bounded and detectable* only when all of the following hold: - The delegator records, alongside the cached card, a **`card_etag` and `card_fetched_at`** and treats every `tasks/get` response as carrying an implicit assertion about the peer's *current* card generation. - The peer, on any lifecycle transition caused by capability change, emi...",
    "decision_boundary": "The decision boundary is the point at which a delegator must **invalidate its cached card and re-enter discovery** rather than continue the task lifecycle. Concretely, re-resolution is mandatory when *any* of: - a `tasks/get` returns `input-required` or `rejected` and the last successful `tasks/send` was more than the card's `max-age` ago; - a retry returns ...",
    "operational_effect": "With the guard in place, the failure trace shortens to: `working → (poll → input-required) → stale-card guard trips (elapsed > max-age) → re-resolve card → observe @2 revoked → transition to capability-invalidated → escalate to orchestrator → re-delegate under @3 or fail the subtask cleanly`. The task never enters the retry loop, and the peer never accumulat..."
  },
  "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": "b050231608df2a97bd99a4ba0df3ddc5a9fee5f78b9baea133c6e197864dfa42",
    "verified_classes": [
      "StaleCardError",
      "TaskState",
      "AgentCard",
      "DelegatedTask"
    ],
    "verified_functions": [
      "run_delegation",
      "is_fresh",
      "_resolve",
      "send",
      "transition",
      "on_retry_rejected_skill"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AssertionError",
      "StaleCardError"
    ],
    "sample_fail_closed_invariants": [
      "unreachable: guard failed to fire"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
