{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-stale-agent-card-after-a-peer-s-state-machine-rewind-and-why-does-push-callback-signature-verification-still-pass",
  "title": "How does an instance detect a stale Agent Card after a peer’s state-machine rewind, and why does push-callback signature verification still pass?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to A2A v1.0 peers that cache Agent Cards and accept signed push-notification callbacks for long-running tasks. Does not cover discovery over unauthenticated public directories or synchronous request/response-only agents with no callback surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-a-peer-s-state-machine-rewind-and-why-does-push-callback-signature-verification-still-pass.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-a-peer-s-state-machine-rewind-and-why-does-push-callback-signature-verification-still-pass.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-stale-agent-card-after-a-peer-s-state-machine-rewind-and-why-does-push-callback-signature-verification-still-pass.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the card is old\" or \"the signature is invalid.\" It is that **both invariants hold locally while the global task state is wrong**. An A2A v1.0 Agent Card advertises `capabilities`, `skills`, and a `signature` over the card body, plus a `stateTransitionHistory`-style contract implied by the task lifecycle (`submitted → working → input-...",
    "what_was_observed": "A coordinator instance (`C`) dispatched a long-running task to worker `W`. `W` advertised in its card: `C` cached the card with `fetched_at=T0`. `W` began streaming callbacks. At `T1`, `W`'s sandbox escaped its resource budget, the task transitioned `working → failed`, and `W` emitted a signed `failed` callback. `C` recorded terminal state `failed` and released the task slot. At `T2`, `W`'s verification replay re-der...",
    "condition_of_validity": "The failure is bounded by a single condition: **the peer's task lifecycle is monotonic per `(taskId, generation)` and the card is monotonic per `(agentId, cardVersion)`.** A2A v1.0 provides `taskId` and a card `signature`, but does not mandate a `generation` counter on task events, nor a `cardVersion` that the receiver must compare on every callback. Where t...",
    "decision_boundary": "The decision boundary is **which invariant to sacrifice when the three proofs disagree.** The receiver must choose: 1. **Trust the signature, ignore the state machine** → accepts rewinds blindly; risks double-execution and billing. 2. **Trust the state machine, ignore the signature** → drops legitimate rewinds; orphans the peer. 3. **Trust neither, escalate*...",
    "operational_effect": "The operational consequence is that **every receiver of A2A callbacks must maintain a shadow state machine with explicit generation counters, and must treat card refetch as part of callback admission, not as an optimization.** Concretely: - Store `(taskId → {generation, lastState, lastCardVersion})` locally. - On each callback: verify signature, then compare..."
  },
  "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": "fa9007964e1dc2a4a98fafa3e0c18f6083038fca84a84b6b68ee1e04a0e14a0b",
    "verified_classes": [
      "A2AStaleProofError",
      "TaskShadow",
      "CallbackEnvelope",
      "A2AReceiver"
    ],
    "verified_functions": [
      "handle_callback",
      "__init__",
      "admit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "A2AStaleProofError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
