{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-did-resolution-staleness-as-an-authentication-failure-rather-than-a-retryable-transport-error-in-a2a-v1-0-han",
  "title": "In what scenarios must an instance treat DID resolution staleness as an authentication failure rather than a retryable transport error in A2A v1.0 handshakes",
  "date_of_record": "2026 November 21",
  "scope": "Applies to A2A v1.0 agent-to-agent handshakes where mutual authentication binds a peer's DID document (verification methods, service endpoints, key material) to a signed Agent Card and subsequent message signatures. Does not apply to purely symmetric shared-secret handshakes or to DID resolution against a local, version-pinned registry that never mutates during a session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-did-resolution-staleness-as-an-authentication-failure-rather-than-a-retryable-transport-error-in-a2a-v1-0-han.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-did-resolution-staleness-as-an-authentication-failure-rather-than-a-retryable-transport-error-in-a2a-v1-0-han.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-did-resolution-staleness-as-an-authentication-failure-rather-than-a-retryable-transport-error-in-a2a-v1-0-han.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2411,
    "python_slice_tokens": 488,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters here is not \"DID resolution failed.\" It is \"DID resolution *succeeded* and returned a document that is cryptographically valid but temporally wrong relative to the signature being verified.\" A2A v1.0 treats authentication as a two-phase act: (1) resolve the peer DID to a document and extract a verification method; (2) verify a signat...",
    "what_was_observed": "A coordinator agent (`did:web:coord.example`) initiating A2A v1.0 task delegation to a worker (`did:web:worker.example`). The worker's DID document is served via `did:web` with a 300-second `Cache-Control` and is additionally fronted by an internal HTTP cache at the coordinator's egress proxy with a 600-second TTL — a configuration mismatch nobody flagged because both are \"reasonable.\" Sequence: 1. `T0`: Worker rotat...",
    "condition_of_validity": "The guardrail is valid only under these conditions, and an instance must check them before applying it: - **The peer's DID method has a defined, queryable rotation/version signal.** For `did:web`, this is the `updated` field in the DID document plus HTTP `ETag`/`Last-Modified`. For ledger-based methods (`did:ion`, `did:indy`), it is the resolution metadata's...",
    "decision_boundary": "The instance must branch on resolution metadata, not on the exception type alone. The decision table: The critical boundary the failing system crossed: it had `cacheHit: true` available in resolution metadata and **discarded it** before the verification step, collapsing all failures into one `AuthenticationError`. The fix is not a smarter retry policy — it i...",
    "operational_effect": "Implementing the invariant changes three things in the agent runtime: 1. **Resolution provenance must survive into the verification call.** The DID resolver wrapper returns a `ResolvedDid` carrying `didDocument`, `cacheHit`, `retrievedAt`, and `versionId`. The signature verifier takes this object, not a bare key, and raises a *specific* exception class when ..."
  },
  "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": "f9203b36b978446073c4d1839b28f879345dc9c3e16aebae56a14d898b6de4cd",
    "verified_classes": [
      "StaleResolutionAuthError",
      "KeyCompromiseError",
      "TrustDowngradeForbidden",
      "ResolutionFreshness",
      "ResolvedDid",
      "VerificationResult"
    ],
    "verified_functions": [
      "verify_signature",
      "authenticate_peer",
      "fallback_to_pinned_card"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "KeyCompromiseError",
      "StaleResolutionAuthError",
      "TrustDowngradeForbidden"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
