# Where must an instance refuse a delegated AAIF credential whose issuer chain re-anchors to a rotated root mid-delegation? **Date of Record:** 2026 November 30 **Scope:** Applies to agent-to-agent (A2A) and MCP-mediated handoffs where authority to act is carried as a verifiable credential (VC) chain under an Agent Authorization & Identity Framework (AAIF) profile, and where at least one link in the delegation chain was issued by an issuer whose trust anchor (root key set) was rotated between the time of issuance and the time of presentation. Does not apply to single-issuer, single-hop credentials, nor to bearer tokens without delegation semantics. ## Core Distinction The failure is not "expired credential" and not "bad signature." Every signature in the chain verifies. Every `notAfter` is in the future. The failure is a **trust-anchor re-anchoring ambiguity**: a delegated credential `C_leaf` was issued by `I_2`, whose own authority to delegate was attested by `I_1` under root key `R_old`. Between issuance and presentation, the trust registry rotated `I_1`'s root to `R_new` and published a rotation proof. The verifying instance now holds a chain that is cryptographically intact against `R_old` but whose intermediate `I_1` is, under the *current* registry view, no longer the anchor of `I_2`. The distinction that matters operationally: **signature validity is a property of the chain; authorization validity is a property of the chain *relative to a specific registry snapshot*.** A verifier that conflates the two will accept a delegated capability that the current trust fabric no longer endorses — a silent authority escalation across a root rotation. The correct behavior is to bind verification to an explicit registry epoch and to reject any chain whose intermediate issuer is not anchor-consistent *within a single epoch* unless a rotation proof explicitly bridges the two epochs for that issuer. ## What Was Observed A three-hop delegation chain was presented to a downstream executor agent: 1. `I_1` (issuer, root `R_old`) issued a delegation credential to `I_2`, granting `I_2` the right to sub-delegate `scope: "refund:create"`. 2. `I_2` issued `C_leaf` to agent `A` for `scope: "refund:create"`, `max_amount: 500`, `notAfter: T+3600s`. 3. Agent `A` presented `C_leaf` + the `I_1→I_2` delegation to executor `E` at `T+600s`. At `T+300s` the trust registry rotated `I_1`'s root from `R_old` to `R_new`. The rotation proof was published, but it attested only that `R_new` supersedes `R_old` for *new issuances*; it carried no re-attestation of `I_2`'s existing delegation. Executor `E`'s verifier: - Fetched the registry, obtained `R_new` as current root. - Walked the chain, verified `C_leaf` against `I_2`'s key, and verified `I_2`'s delegation against `I_1`'s key. - Verified `I_1`'s key against… a cached `R_old` embedded in the delegation credential itself (the credential carried its own `issuer_root` hint). - Concluded: valid. Executed the refund. The defect: the verifier used the **credential-supplied root hint** (`R_old`) as the anchor instead of the **registry-current root** (`R_new`), and never checked whether `I_1` remained a valid anchor for `I_2` under the current epoch. An attacker who controls `I_2` (or who obtained `I_2`'s key) can therefore mint delegated credentials that self-anchor to a superseded root, and any verifier that trusts the embedded hint will honor them indefinitely — a persistence-of-authority-after-rotation bug. In the observed trace, `I_2`'s delegation had in fact been *revoked* at rotation (the rotation event superseded `I_1`'s sub-delegation grants), but the verifier never consulted revocation because it never established which epoch the chain belonged to. A second, subtler observation: when the verifier *did* consult the registry (in a sibling run), it fetched `R_new` and then attempted to verify `I_1`'s signature on the `I_2` delegation against `R_new` — which failed, because `I_1`'s delegation had been signed under `R_old`. The verifier then fell back to "try all known roots," accepted `R_old`, and again executed. So both the "trust the hint" and the "try all roots" strategies converge on the same unsafe outcome: **the chain is accepted under an epoch in which its intermediate issuer is no longer anchor-valid.** ## Condition of Validity A delegated AAIF chain is anchor-valid at presentation time `t` **iff** there exists a single registry epoch `e(t)` such that: - every issuer key in the chain resolves to a trust anchor published in epoch `e(t)`, and - for each hop `I_k → I_{k+1}`, `I_k` is *anchor-consistent* in `e(t)` — i.e., `I_k`'s delegation right was granted under an anchor that is either the epoch-`e(t)` root or is bridged to it by a rotation proof whose validity interval covers `t`, and - the chain carries no hop whose issuer was revoked or superseded in `e(t)` without a bridging proof. The invariant to enforce: **anchor-consistency is evaluated per-hop against one epoch, never per-hop against whichever root happens to verify that hop's signature.** The "try all roots" fallback violates this by allowing different hops to be anchored in different epochs with no bridge. The "trust the embedded hint" strategy violates it by letting the presenter choose the epoch. Rotation proofs are the only legitimate bridge. A rotation proof `P: R_old → R_new` for issuer `I` must, to be usable, (a) be signed by both `R_old` and `R_new`, (b) explicitly enumerate or hash-commit the set of outstanding delegations from `I` that survive the rotation, and (c) carry a validity window. A chain is acceptable across a rotation only if every intermediate issuer it depends on is either re-attested under `R_new` or enumerated in a bridging proof's survival set. Absent that, the chain is *anchor-stale* and must be rejected, not downgraded. ## Decision Boundary The verifier must draw a hard line between three outcomes, and must not collapse them: - **Anchor-valid:** chain verifies against a single epoch and every hop is anchor-consistent in that epoch → accept. - **Anchor-stale:** chain verifies cryptographically but at least one hop's issuer is superseded in the current epoch with no bridging proof covering `t` → **reject** (do not "accept with warning"; the executor cannot distinguish a benign rotation lag from an attacker-pinned superseded root). - **Anchor-ambiguous:** registry is unreachable or returns multiple candidate epochs and the chain does not pin an epoch → **reject** (fail-closed), because accepting under ambiguity is exactly the hint-trusting failure. The boundary condition that is easy to get wrong: a chain that is anchor-stale is *not* the same as a chain that is merely old. Age is bounded by `notAfter`; anchor-staleness is bounded by epoch membership. A credential with `notAfter` far in the future can be anchor-stale the instant its root rotates, and a credential near expiry can be perfectly anchor-valid. The verifier must check epoch membership *independently of* temporal validity, and must reject on either failure. ## Operational Effect Enforcing per-epoch anchor-consistency changes the executor's failure surface in three concrete ways. First, delegated capabilities that survive a root rotation now require an explicit survival attestation from the rotating issuer; issuers that rotate without enumerating outstanding delegations will see their sub-delegations fail closed at the next presentation — a deliberate, correct liveness cost traded for safety. Second, verifiers must carry a registry epoch identifier (a monotonic counter or root-key hash) through the entire verification trace and into the audit record, so that a replay of the decision can be re-evaluated against the same epoch; without epoch pinning, verification is non-reproducible and cannot be audited. Third, presenters must present the rotation proof alongside the chain when crossing an epoch boundary; a presenter that omits it is indistinguishable from one pinning a superseded root, and the executor must treat the omission as a rejection trigger, not a missing-optional-field. The downstream consequence for multi-agent swarms: a baton passed from a coordinator to a worker across a rotation event will fail closed at the worker unless the coordinator re-mints the delegation under the new epoch or attaches the bridging proof. This is the desired behavior — it forces the authority chain to be re-established at the rotation boundary rather than silently inherited — but it means swarm orchestration must treat rotation events as **delegation-invalidating events** and re-issue, not merely re-sign. ```python from dataclasses import dataclass from typing import Optional class AnchorStaleDelegationError(RuntimeError): """Raised when a delegated AAIF chain is cryptographically intact but its intermediate issuer is superseded in the current registry epoch with no bridging rotation proof covering presentation time.""" pass @dataclass(frozen=True) class Hop: issuer: str subject: str signed_under_root: str # root key hash the signature verifies against revoked_in_epoch: Optional[int] = None @dataclass(frozen=True) class RotationProof: issuer: str from_root: str to_root: str surviving_delegations: frozenset # hashes of delegations that survive valid_from: int valid_to: int def verify_delegated_chain( chain: list[Hop], current_epoch: int, current_root: str, rotation_proofs: list[RotationProof], presentation_time: int, pinned_epoch: Optional[int] = None, ) -> None: # Fail-closed on epoch ambiguity: the verifier must know which epoch it # is judging against, and must not let the presenter pick via hints. if pinned_epoch is not None and pinned_epoch != current_epoch: raise AnchorStaleDelegationError( f"chain pinned to epoch {pinned_epoch} but registry is at " f"{current_epoch}; refusing cross-epoch trust without bridge" ) for hop in chain: # Revocation in the current epoch is fatal regardless of signature. if hop.revoked_in_epoch is not None and hop.revoked_in_epoch <= current_epoch: raise AnchorStaleDelegationError( f"issuer {hop.issuer} revoked in epoch " f"{hop.revoked_in_epoch} <= {current_epoch}" ) # Anchor-consistency: the hop's signing root must be the current # root, OR be bridged to it by a rotation proof that covers # presentation_time AND enumerates this delegation as surviving. if hop.signed_under_root == current_root: continue bridging = [ p for p in rotation_proofs if p.issuer == hop.issuer and p.from_root == hop.signed_under_root and p.to_root == current_root and p.valid_from <= presentation_time <= p.valid_to ] if not bridging: raise AnchorStaleDelegationError( f"hop {hop.issuer}->{hop.subject} signed under " f"{hop.signed_under_root} but current root is " f"{current_root} at epoch {current_epoch} with no " f"bridging rotation proof covering t={presentation_time}" ) # Even a bridging proof is insufficient unless it attests that # THIS delegation survives the rotation. A proof that supersedes # the root for new issuances does not re-attest old grants. if not any( hop.subject in p.surviving_delegations for p in bridging ): raise AnchorStaleDelegationError( f"rotation proof for {hop.issuer} does not enumerate " f"delegation to {hop.subject} as surviving; authority " f"was superseded at rotation, not inherited" ) ```