# Where must an instance refuse to re-attest its own delegation chain after a credential refresh **Date of Record:** 2026 November 29 **Scope:** Applies to autonomous agents operating under an Agent Identity Attestation Framework (AAIF) that hold verifiable credentials (VCs) and re-derive their attestation chain on token/credential refresh. Does not apply to stateless one-shot agents that never hold a delegation chain, nor to purely symmetric-key bearer-token schemes with no issuer-side verification. ## Core Distinction There are two structurally different operations an agent can perform on its own identity material, and conflating them is the failure: 1. **Credential refresh** — obtaining a new VC from an issuer for the *same* subject and *same* delegated capability set, with a new `iat`/`exp` and a fresh signature. The agent is the *subject*; the issuer is the *authority*. 2. **Delegation re-attestation** — the agent, acting as a *delegator*, re-signs or re-asserts a downstream capability grant to a sub-agent. Here the agent is the *authority* for the sub-agent's credential. A refresh loop that treats (1) as implicitly authorizing (2) is the boundary failure. The agent holds a freshly minted, valid VC for itself and — because it can verify that credential against the issuer's key — concludes it is entitled to *propagate* authority it now "holds." But possession of a valid subject-credential is not the same as authority to issue a delegation credential. The AAIF invariant is: **the right to delegate is a separate claim inside the credential (`can_delegate`, `delegation_depth_remaining`, `delegable_scopes`), and it must be re-verified against the issuer's policy at issuance time, not inferred from the credential's validity.** When the refresh path re-derives the delegation chain by re-signing downstream grants with the agent's own key — a common optimization to avoid an issuer round-trip — it silently converts a *renewal* into a *re-issuance* that the issuer never saw and never authorized. The downstream sub-agent now holds a credential whose chain terminates in a key the issuer attested *for authentication*, not *for delegation*. ## What Was Observed A three-tier agent deployment (orchestrator → worker → tool-runner). The orchestrator held a VC with `can_delegate: true, delegation_depth_remaining: 2`. The worker held a VC with `can_delegate: true, delegation_depth_remaining: 1`. The tool-runner held a leaf VC with `can_delegate: false`. On a scheduled refresh (VC TTL 900s, refresh at 80% of TTL), the following trace occurred: 1. Orchestrator VC expired at T+720s. Refresh request to issuer returned a new VC. **The issuer's policy engine had, between the original issuance and this refresh, revoked `can_delegate` for the orchestrator's scope due to an incident review.** The new VC carried `can_delegate: false, delegation_depth_remaining: 0`. 2. The orchestrator's refresh handler validated the new VC's signature, `exp`, and `sub` — all correct — and wrote it into its credential store. It did **not** diff the claim set against the prior credential. 3. The worker's VC had not yet been refreshed (different TTL phase). The orchestrator, on the next task dispatch, performed its standard "ensure downstream chain is live" step: it checked the worker's VC, found it valid and unexpired, and — because the worker's credential was signed by the orchestrator's *own key* — re-asserted the chain by attaching a fresh orchestrator-to-worker endorsement signed with the orchestrator key. This endorsement asserted `can_delegate: true` for the worker, copied from the orchestrator's *cached, pre-refresh* policy view. 4. The tool-runner received a chain: tool-runner ← worker ← orchestrator ← issuer. Every signature verified. But the orchestrator's *current* VC said `can_delegate: false`. The chain was cryptographically valid and semantically revoked. The tool-runner's verifier checked signatures and `exp` at each hop and accepted the chain. It did not re-fetch the issuer's *current* revocation status for the orchestrator hop, because the orchestrator's VC was unexpired and the chain was "fresh." The revocation was invisible for the remainder of the worker's TTL window (up to 900s). The observable symptom was not an auth failure — it was the opposite: **authorized-looking tool execution that the issuer had explicitly de-authorized.** The failure is silent by construction, because every local check passes. ## Condition of Validity The failure requires all of the following to hold simultaneously: - **Asymmetric refresh phases.** Delegation hops refresh on independent schedules, so at least one hop's credential is stale relative to another's. If all hops refreshed atomically, the claim diff would surface. - **Self-signed downstream endorsement.** The agent re-asserts downstream delegation using its own key rather than requiring a fresh issuer-signed delegation VC per hop. This is the enabling optimization; without it, every hop re-issues through the issuer and the revocation is caught. - **Claim-set caching.** The refresh handler persists the *identity* of the credential (subject, key, expiry) but not a claims fingerprint, so a claim downgrade (`can_delegate: true → false`) is not treated as a state transition requiring downstream invalidation. - **Verifier that trusts unexpired chain hops.** The leaf verifier does not perform online revocation checks (OCSP/status-list) on intermediate hops, or accepts a cached status older than the revocation event. Remove any one and the chain either fails closed or the revocation propagates. The dangerous configuration is the one where all four are individually defensible engineering choices. ## Decision Boundary The boundary is this: **a credential refresh that changes any delegation-relevant claim MUST invalidate every downstream credential the agent previously endorsed, before the next dispatch.** The agent must not treat "my new VC is valid" as "my delegation authority is unchanged." Concretely, the refresh handler must compute a **delegation-authority fingerprint** over the subset of claims that govern issuance — `{can_delegate, delegation_depth_remaining, delegable_scopes, issuer_policy_version}` — and compare it to the fingerprint under which existing downstream endorsements were signed. On mismatch: - If authority *increased* or scopes *widened*: downstream endorsements remain valid but must be re-signed to reflect the new policy version (audit trail), and the agent may now delegate further only up to the new depth. - If authority *decreased*, *narrowed*, or `can_delegate` flipped false: every downstream endorsement signed under the old fingerprint is **revoked at the agent**, and the agent must refuse to dispatch to any sub-agent whose chain traverses a stale endorsement until that sub-agent re-obtains a fresh issuer-signed delegation VC. The agent must also refuse to *self-verify* the delegation right. It may verify its own subject-credential signature; it may not conclude delegation authority from that verification alone. The authority claim is only meaningful relative to the issuer's current policy, which the agent cannot see locally. ## Operational Effect Without this boundary, the system exhibits **authority lag**: the window between an issuer-side delegation revocation and its propagation to leaf execution, bounded not by the revocation mechanism but by the slowest hop's refresh TTL. In the observed deployment this was up to 900s of unauthorized tool execution per revocation event, with full cryptographic validity throughout — meaning audit logs recorded the actions as authorized. The guardrail converts a silent, cryptographically-invisible failure into a fail-closed dispatch refusal. The cost is that a delegation-authority downgrade forces downstream re-issuance through the issuer (a round-trip the self-signing optimization was designed to avoid), and it can cause a brief dispatch outage for sub-agents whose chains traverse the downgraded hop. That outage is the correct behavior: it is the system surfacing a policy change that the optimization had been hiding. The alternative — accepting the outage as unacceptable and keeping the optimization — means accepting authority lag as a permanent, unlogged property of the deployment. The invariant to encode is that **delegation authority is never inferred from credential validity; it is a claim that must be diffed on every refresh and enforced at every endorsement.** ```python from dataclasses import dataclass from typing import FrozenSet class DelegationAuthorityDrift(RuntimeError): """Raised when a refreshed credential's delegation claims no longer match the fingerprint under which downstream endorsements were signed.""" pass @dataclass(frozen=True) class DelegationClaims: can_delegate: bool depth_remaining: int delegable_scopes: FrozenSet[str] issuer_policy_version: str def fingerprint(self) -> str: return ( f"{int(self.can_delegate)}|{self.depth_remaining}|" f"{','.join(sorted(self.delegable_scopes))}|{self.issuer_policy_version}" ) @dataclass class DownstreamEndorsement: sub_agent_id: str signed_under_fingerprint: str class RefreshHandler: def __init__(self) -> None: self._endorsements: list[DownstreamEndorsement] = [] def on_refresh( self, prior: DelegationClaims, refreshed: DelegationClaims, signature_valid: bool, subject_matches: bool, ) -> None: # Local validity checks — necessary but NOT sufficient. if not signature_valid or not subject_matches: raise DelegationAuthorityDrift( "refreshed credential failed local signature/subject validation" ) prior_fp = prior.fingerprint() new_fp = refreshed.fingerprint() if prior_fp == new_fp: return # authority unchanged; downstream endorsements remain valid # Authority changed. Determine direction. authority_lost = ( (prior.can_delegate and not refreshed.can_delegate) or refreshed.depth_remaining < prior.depth_remaining or not prior.delegable_scopes.issubset(refreshed.delegable_scopes) ) if authority_lost: stale = [ e for e in self._endorsements if e.signed_under_fingerprint == prior_fp ] if stale: # Fail closed: refuse dispatch until sub-agents re-issue. self._endorsements = [ e for e in self._endorsements if e.signed_under_fingerprint != prior_fp ] raise DelegationAuthorityDrift( f"delegation authority downgraded on refresh " f"({prior_fp} -> {new_fp}); revoked {len(stale)} downstream " f"endorsement(s): {[e.sub_agent_id for e in stale]}" ) else: # Authority widened: re-sign existing endorsements under new fingerprint. self._endorsements = [ DownstreamEndorsement(e.sub_agent_id, new_fp) for e in self._endorsements ] def endorse(self, sub_agent_id: str, current: DelegationClaims) -> None: if not current.can_delegate or current.depth_remaining < 1: raise DelegationAuthorityDrift( f"cannot endorse {sub_agent_id}: can_delegate=" f"{current.can_delegate}, depth={current.depth_remaining}" ) self._endorsements.append( DownstreamEndorsement(sub_agent_id, current.fingerprint()) ) ```