# Where must an instance re-attest its delegated authority when an A2A handoff crosses a credential-issuer epoch boundary? **Date of Record:** 2026 December 3 **Scope:** Applies to multi-agent systems where agent A delegates a scoped task to agent B via an A2A handoff carrying a verifiable credential (VC) or signed capability warrant, and where the issuing authority rotates keys, revokes epochs, or re-issues the trust root while B is mid-execution. Does not cover single-agent tool-call auth, or handoffs where both agents share a single long-lived signing key with no epoch concept. ## Core Distinction The naive mental model treats a delegated credential as a *bearer token*: possession at handshake time implies authority for the duration of the task. The correct model treats a delegated credential as a *time-bounded proof anchored to an issuer epoch*. The distinction that breaks systems is between **signature validity** (the bytes verify against *some* published key) and **warrant validity** (the issuer still vouches for that key, at that epoch, for that scope, right now). These diverge precisely at an epoch boundary: a credential signed under epoch N still verifies cryptographically against epoch N's retained public key, so a naive verifier accepts it — but the issuer may have revoked epoch N, narrowed the scope, or rotated the subject's key. Agent B, holding a still-verifying credential, continues executing authority it no longer has. ## What Was Observed A three-agent pipeline: orchestrator A issues a VC to worker B delegating `write:staging_db` for a 40-minute batch job. B performs a slow multi-step migration and, at minute 22, calls a downstream auditor C to co-sign the write. C fetches the issuer's JWKS and validates B's credential. The signature checks out. C co-signs. The write lands. The failure: at minute 15 the issuer rotated its signing key and published a revocation entry for epoch N (the epoch under which B's credential was minted), because a separate incident had exposed that epoch's key material. The issuer's JWKS retained epoch N's public key for a 24-hour grace window (standard practice to avoid breaking in-flight verifications). So: - B's credential still verified against the *retained* epoch-N public key. - The revocation list entry for epoch N was published but C's verifier only checked the JWKS, not the revocation endpoint, because "the key is in the JWKS, therefore it's live." - B never re-attested, because the credential had a 40-minute `exp` and B's execution loop only re-checks `exp`, never `issuer_epoch_status`. The observable trace was a *silent* success: no error, no rejection, a co-signed write to staging under a credential whose authority had been revoked 7 minutes earlier. The audit log showed a valid chain of custody that was in fact a chain of a dead epoch. ## Condition of Validity The invariant that must hold for a delegated credential to remain authoritative is: > A credential is authoritative for agent B at time *t* iff (1) its signature verifies against the issuer's key for its declared `issuer_epoch`, AND (2) that `issuer_epoch` is not revoked as of *t*, AND (3) the subject key binding in the credential matches the issuer's current binding for B at *t*, AND (4) *t* falls within the credential's declared scope window, not merely its `exp`. Condition (2) and (3) are the ones that fail silently. The boundary is crossed whenever `epoch_rotation_time < t < credential_exp` and the verifier checks only signature + exp. The grace window that retains old public keys — a well-intentioned availability measure — is exactly the window in which this failure lives. The credential is *cryptographically* valid and *operationally* void. This condition is **invalid** to assume when the issuer publishes no epoch/revocation surface at all (in which case you must treat every credential as epoch-pinned to issuance and bound its lifetime to the rotation interval), and when the delegation is single-hop and synchronous with the handshake (rotation cannot occur mid-call). ## Decision Boundary The decision an architect must make is *where* re-attestation is forced. Three candidate boundaries: 1. **At handshake only** — cheapest, and the one that failed above. Adequate only if task duration < issuer rotation interval with margin. 2. **At every downstream co-sign / privilege escalation** — forces B to re-fetch epoch status before asking C to co-sign. Catches the case above; misses long stretches where B acts alone. 3. **At every authority-consuming action, gated on a monotonic epoch check** — B caches `last_seen_epoch` and, before any privileged action, verifies the issuer's current epoch equals the credential's `issuer_epoch`; if the issuer has advanced past it, B must re-attest (request a fresh credential) or halt. The correct boundary is (3), with (2) as a mandatory subset. The non-obvious part: the check must be a **monotonic epoch comparison**, not a boolean "is revoked." A boolean revocation check races with the issuer's publication latency — B may query revocation a few hundred milliseconds before the issuer's revocation list propagates. Comparing the credential's `issuer_epoch` against the issuer's *current advertised epoch* is a monotonic, order-preserving test that does not depend on revocation propagation timing: if the issuer has moved to epoch N+1, any credential bearing epoch N is suspect regardless of whether the revocation entry has reached B's cache yet. The guardrail: **epoch advancement is a hard invalidation signal; revocation is a soft one.** Treat the former as authoritative and synchronous, the latter as eventually-consistent corroboration. ## Operational Effect With boundary (3) enforced, the failure mode inverts: B, at minute 15, observes the issuer advertise epoch N+1 while holding an epoch-N credential, raises a re-attestation requirement, and either obtains a fresh credential (fast path) or halts the migration and checkpoints state (safe path). The cost is one extra issuer round-trip per authority-consuming action — bounded by caching the issuer's current epoch with a short TTL and invalidating on any observed advancement. The benefit is that the 24-hour JWKS grace window becomes safe: retained keys verify old signatures for *historical audit*, but no live agent acts on them, because liveness is gated on epoch equality, not key presence. The residual risk is issuer-epoch-advance propagation latency in the *other* direction: B may briefly believe the epoch is still N after the issuer has advanced. This is bounded by the epoch cache TTL, which must be shorter than the issuer's minimum rotation-to-revocation interval. If the issuer cannot guarantee that interval, no client-side check suffices and the only safe posture is to cap credential lifetime below the rotation interval. ```python import time from dataclasses import dataclass class StaleEpochCredentialError(RuntimeError): """Raised when a delegated credential's issuer epoch is no longer current.""" pass @dataclass(frozen=True) class Credential: subject: str scope: str issuer_epoch: int issued_at: float expires_at: float class EpochAwareHandoff: """Enforces the invariant: authority requires epoch equality, not just signature validity.""" def __init__(self, issuer_epoch_fn, epoch_cache_ttl_s: float = 5.0): # issuer_epoch_fn() returns the issuer's *current* advertised epoch. self._issuer_epoch_fn = issuer_epoch_fn self._ttl = epoch_cache_ttl_s self._cached_epoch = None self._cached_at = 0.0 def _current_epoch(self) -> int: now = time.monotonic() if self._cached_epoch is None or (now - self._cached_at) > self._ttl: self._cached_epoch = self._issuer_epoch_fn() self._cached_at = now return self._cached_epoch def assert_authoritative(self, cred: Credential, action_scope: str) -> None: now = time.time() # Condition (4): scope window, not just exp. if now >= cred.expires_at: raise StaleEpochCredentialError( f"credential for {cred.subject} expired at {cred.expires_at}" ) if action_scope != cred.scope: raise StaleEpochCredentialError( f"scope mismatch: credential grants {cred.scope!r}, action needs {action_scope!r}" ) # Condition (2)+(3): monotonic epoch equality. This is the boundary that # the JWKS-retention grace window silently violates. current = self._current_epoch() if cred.issuer_epoch != current: raise StaleEpochCredentialError( f"credential epoch {cred.issuer_epoch} != issuer current epoch {current}; " f"re-attestation required before consuming authority for {action_scope!r}" ) def consume(self, cred: Credential, action_scope: str, do_action) -> None: self.assert_authoritative(cred, action_scope) do_action() def run_handoff(handoff: EpochAwareHandoff, cred: Credential, scope: str, action) -> None: try: handoff.consume(cred, scope, action) except StaleEpochCredentialError: # Safe path: checkpoint and request fresh credential rather than proceed. raise StaleEpochCredentialError( "halting handoff: delegated authority is epoch-stale; checkpoint state and re-attest" ) ```