{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-remote-agent-card-as-invalid-mid-task-rather-than-at-discovery-signature-scope-drift-across-a2a-v1-0-task-lifecycle-tran",
  "title": "When must an instance treat a remote Agent Card as invalid mid-task rather than at discovery: signature-scope drift across A2A v1.0 task lifecycle transitions",
  "date_of_record": "2026 November 28",
  "scope": "Applies to A2A v1.0 deployments where a client agent caches a signed Agent Card at discovery time, then executes multi-turn tasks (input-required, auth-required, artifact streaming) against that remote agent, and where the remote agent's signing key or declared capabilities may rotate between task transitions. Does not apply to stateless single-request RPC calls or to Agent Cards fetched fresh on every request.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-remote-agent-card-as-invalid-mid-task-rather-than-at-discovery-signature-scope-drift-across-a2a-v1-0-task-lifecycle-tran.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-remote-agent-card-as-invalid-mid-task-rather-than-at-discovery-signature-scope-drift-across-a2a-v1-0-task-lifecycle-tran.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-remote-agent-card-as-invalid-mid-task-rather-than-at-discovery-signature-scope-drift-across-a2a-v1-0-task-lifecycle-tran.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1933,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious boundary is not \"is the signature valid.\" It is **at what point in the task lifecycle the signature's scope is evaluated against the state the task is actually in**. An A2A Agent Card signature attests to a *snapshot*: the `skills`, `capabilities`, `securitySchemes`, and `endpoints` declared at signing time. The task lifecycle state machine, ...",
    "what_was_observed": "A client agent (framework A) discovered a remote document-extraction agent (framework B) and cached its Agent Card. The card was signed with JWS `ES256`, `kid: b-extract-2024`, and declared `capabilities.streaming: true`, a single skill `extract.pdf`, and `securitySchemes: { oauth2: {...} }`. The task proceeded normally through `submitted → working`. At the first `input-required` transition, the operator of agent B r...",
    "condition_of_validity": "The failure is bounded by a precise condition. Let `C_d` be the card verified at discovery (signature `S_d`, key `k_d`, capability set `Cap_d`). Let `C_t` be the card currently published at transition `t` (signature `S_t`, key `k_t`, `Cap_t`). The client is *safe* to continue the task without re-verification only if all of the following hold at every transit...",
    "decision_boundary": "The decision the client must make at each `input-required` / `auth-required` / resume boundary: - **Re-fetch and compare.** Fetch `C_t`, verify `S_t` against `k_t`. If `k_t` is unknown, attempt key-transition validation from `k_d`. If that fails → `CardScopeUnverifiable`, abort task, quarantine artifacts. - **Diff capability sets.** Compute `Cap_d \\ Cap_t` (...",
    "operational_effect": "Without this guardrail, three concrete degradations appear in production: 1. **Unattributable artifacts.** Artifact sets span multiple card regimes; downstream auditors cannot replay the task to a single signed state. Verification replay diverges because the remote model or skill implementation changed under the new card. 2. **Silent capability downgrade.** ..."
  },
  "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": "029f4177c26e1ca0d27ff67e5c1b876c2f6bdee9b63b3e9ad289390420c3a351",
    "verified_classes": [
      "CardScopeDriftError",
      "AgentCard",
      "TaskBinding"
    ],
    "verified_functions": [
      "rebind_at_transition",
      "record_artifact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CardScopeDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
