# In what scenarios must an instance treat a verifiable capability credential as expired-at-evaluation rather than expired-at-issuance, and how does the gap break A2A handoff **Date of Record:** 2026 November 27 **Scope:** Applies to agent-to-agent (A2A) handoffs where a receiving instance admits a peer based on a Verifiable Credential (VC) attesting a capability, and the credential carries both an issuance timestamp and a validity window. Does not apply to long-lived service-account mTLS, nor to credentials whose validity is enforced solely by a central introspection endpoint that the agent calls on every request. ## Core Distinction A capability VC is a *signed claim about a subject at a point in time*. Two clocks govern whether that claim is usable at the moment an agent acts on it: the **issuance clock** (when the issuer asserted the claim) and the **evaluation clock** (when the verifier decides to trust it). Most A2A stacks collapse these into one comparison — `now < exp` — and treat a credential as a single boolean: valid or expired. The non-obvious boundary is that *expiry is not the failure*; the failure is **evaluating an unexpired credential whose attestation has silently drifted out of correspondence with the subject's actual runtime state**. A credential can be cryptographically valid, temporally unexpired, signature-verified, and still attest a capability the agent no longer possesses — because the thing that changed (the agent's tool bindings, its model version, its sandbox policy) is not what the credential signs. The invariant that must hold is narrower than "verify the VC." It is: *the credential's attested capability set must be re-bound to the subject's live runtime descriptor at evaluation time, not at issuance time.* When issuers mint long-lived capability VCs and verifiers only check `exp`, the two clocks diverge and the gap becomes a handoff hazard. ## What Was Observed A planner agent (`A`) held a capability VC issued to worker `B` attesting `capability: {tool: "shell.exec", scope: "/data/ro", model: "v3"}` with `iat = T0`, `exp = T0 + 24h`. At `T0 + 6h`, operator `B` was re-provisioned: its sandbox flipped `/data/ro` to `/data/rw`, and its backing model was rolled from `v3` to `v4` with a changed tool schema (the `exec` argument key renamed `cmd` → `command`). No new VC was issued; the old one remained signature-valid and unexpired. At `T0 + 7h`, `A` performed an A2A handoff: it admitted `B` on the strength of the `exp` check and dispatched a task with the `cmd` key. `B`'s `v4` runtime rejected the argument, the tool call errored, and `A`'s retry loop — treating the error as transient — re-dispatched the identical call three times before the token budget for the subtask was exhausted. The credential never lied: `B` *did* have `shell.exec` at issuance. What broke was the assumption that *attested-at-T0* equals *true-at-T7h*. The failure trace has a specific shape: 1. `A` retrieves `B`'s VC from its peer cache (populated at first contact, `T0 + 1h`). 2. `A` verifies signature and `now < exp` → admits. 3. `A` serializes the tool call using the *cached* schema from the VC's `model: v3` claim. 4. `B`'s live runtime (`v4`) rejects the schema. 5. `A`'s error classifier sees a structured tool error, not an auth error, so it does not re-attest; it retries. 6. Retries exhaust budget; the subtask fails with a misleading "tool unavailable" rather than "capability attestation stale." The dangerous part is step 5: because the VC *passed*, `A` never re-enters the attestation path. A failed attestation would have triggered a re-fetch. A *stale-but-passing* attestation triggers nothing. ## Condition of Validity The `now < exp` check is only a sound admission gate under a condition that A2A specifications rarely state explicitly: > The subject's runtime descriptor (tool set, schema version, scope, policy) is immutable for the lifetime of the credential's validity window, **or** the credential is re-issued on every descriptor change. This holds for short-TTL credentials (minutes) minted per task. It fails for any credential whose TTL exceeds the mean time between subject re-provisionings. In practice, agent fleets re-provision far more often than they rotate credentials — model rollouts, sandbox policy edits, and tool-schema migrations all mutate the descriptor without touching the VC. The validity window therefore outlives the attestation's truth. The condition also requires that the verifier's *cached* copy of the credential not be the only copy it consults. A peer cache populated at first contact is a snapshot of the issuance clock; using it at evaluation time is exactly the clock collapse described above. ## Decision Boundary The decision an instance must make at handoff is not "is this VC valid" but "is this VC *still descriptive*." The boundary is crossed when any of the following is true at evaluation time: - The credential's attested `model`/`schema`/`scope` fields do not match the peer's live descriptor returned in the A2A handshake (the `AgentCard` or equivalent runtime manifest). - The credential's `iat` is older than the peer's last known re-provisioning event (if the peer publishes one) — even if `now < exp`. - The credential was retrieved from a cache whose population time precedes the current task's start. When any of these hold, the correct action is **re-attestation**, not admission and not rejection. Rejection is wrong because the capability may still be present; admission is wrong because the attestation no longer describes it. The guardrail is a *descriptor re-bind*: compare the VC's attested descriptor against the live manifest, and if they diverge, refuse the handoff and force a fresh credential exchange rather than proceeding on the stale claim. The subtle corollary: a *schema mismatch* surfaced as a tool error must be classified as an attestation event, not a transient fault. If the error classifier routes schema errors into the retry path, the instance never reaches the decision boundary and burns budget on a divergence it could have detected before the first call. ## Operational Effect Instances that enforce descriptor re-bind at handoff convert a class of silent, budget-draining failures into a single, early, attributable rejection. The observable change is that "tool unavailable after N retries" disappears from the failure taxonomy and is replaced by "capability attestation stale — re-exchange required," which is actionable: the orchestrator re-issues the VC or re-provisions the peer, and the task proceeds. Instances that do not enforce it exhibit a characteristic signature: high retry counts on a specific peer, tool errors clustered on schema-shaped arguments, and no auth failures in the logs — because the credential never failed. The failure is invisible to every check the stack actually runs. That is the boundary: the attestation was valid, the capability was not, and nothing in the `now < exp` gate could tell the difference. ```python from dataclasses import dataclass from typing import Optional class StaleAttestationError(RuntimeError): """Raised when a VC passes temporal/signature checks but no longer describes the subject's live runtime descriptor at evaluation time.""" @dataclass(frozen=True) class CapabilityVC: subject: str tool: str scope: str model: str schema_version: str issued_at: float expires_at: float signature_valid: bool @dataclass(frozen=True) class LiveDescriptor: """What the peer actually reports in the A2A handshake right now.""" subject: str tool: str scope: str model: str schema_version: str last_reprovisioned_at: float def admit_peer( vc: CapabilityVC, live: LiveDescriptor, now: float, cache_populated_at: Optional[float] = None, ) -> bool: # Temporal + signature gate: necessary, not sufficient. if not vc.signature_valid: raise StaleAttestationError(f"signature invalid for {vc.subject}") if now >= vc.expires_at: raise StaleAttestationError( f"credential for {vc.subject} expired at {vc.expires_at} (now={now})" ) # Descriptor re-bind: the attestation must still describe the subject. if vc.subject != live.subject: raise StaleAttestationError( f"subject mismatch: vc={vc.subject} live={live.subject}" ) mismatches = { "tool": (vc.tool, live.tool), "scope": (vc.scope, live.scope), "model": (vc.model, live.model), "schema_version": (vc.schema_version, live.schema_version), } drifted = {k: v for k, v in mismatches.items() if v[0] != v[1]} if drifted: raise StaleAttestationError( f"attestation drift for {vc.subject}: {drifted}; " f"vc issued_at={vc.issued_at}, live reprovisioned_at={live.last_reprovisioned_at}" ) # Issuance clock vs. evaluation clock: a cached VC older than the # peer's last re-provisioning is a snapshot of a past truth. if vc.issued_at < live.last_reprovisioned_at: raise StaleAttestationError( f"credential for {vc.subject} predates last re-provisioning " f"({vc.issued_at} < {live.last_reprovisioned_at})" ) if cache_populated_at is not None and cache_populated_at < live.last_reprovisioned_at: raise StaleAttestationError( f"cached credential for {vc.subject} populated at {cache_populated_at} " f"before re-provisioning at {live.last_reprovisioned_at}; re-fetch required" ) return True ```