# Why does an instance reject a valid delegated credential after scope attenuation crosses a revocation epoch boundary? **Date of Record:** 2026 November 29 **Scope:** Applies to AAIF-style delegated authority chains where an orchestrator attenuates a parent capability into a narrower child warrant and hands it to a sub-agent, and where the issuing authority maintains a revocation/epoch registry. Does not apply to single-hop bearer tokens with no attenuation, nor to chains where every hop shares one clock and one registry snapshot. ## Core Distinction There are two different things an AAIF verifier can mean by "this credential is valid": 1. **Signature-and-chain validity** — every warrant in the chain is correctly signed, each child scope is a subset of its parent scope, and the chain terminates at a trusted root. This is a *static, offline-checkable* property. 2. **Authority continuity** — the attenuated scope was still live at the *instant the sub-agent acted*, under the *revocation epoch the issuer had published at that instant*. The non-obvious failure is that these two can diverge without any signature being wrong and without any scope being over-broad. An instance that validates only (1) will accept a credential whose authority was silently narrowed by a revocation event that landed *after* the parent was minted but *before* the child was used. The child warrant is cryptographically impeccable and structurally a valid subset — and yet it grants authority the issuer no longer holds. The verifier's invariant "child ⊆ parent" is necessary but not sufficient; the missing invariant is "child ⊆ parent ∩ live-authority(epoch_at_use)." ## What Was Observed An orchestrator agent held a parent warrant `W_root` scoped to `files:read, files:write, net:egress:api.internal` with a 24-hour TTL, minted at epoch `E=41`. At T+3h it attenuated to a sub-agent as `W_child` scoped to `files:read, net:egress:api.internal` — a clean subset, correctly signed, embedding `parent_epoch=41` and `parent_id`. At T+5h the security plane revoked `net:egress:api.internal` from `W_root`'s issuer by publishing epoch `E=42` to the revocation registry. The revocation was *scope-level*, not warrant-level: `W_root` itself stayed valid for `files:read, files:write`. Only the egress capability was withdrawn. At T+6h the sub-agent presented `W_child` to a resource server. The verifier did the following and accepted: - Verified `W_child` signature against the orchestrator's key. ✅ - Verified `W_child.scope ⊆ W_root.scope` using the embedded parent snapshot. ✅ - Verified `W_root` signature and root trust. ✅ - Checked `W_root` against the revocation registry *by warrant ID*. `W_root` was not revoked. ✅ The sub-agent then exercised `net:egress:api.internal` — a capability the issuer had withdrawn an hour earlier. The egress succeeded. No signature failed. No scope check failed. The verifier had checked *warrant revocation* but the registry had expressed the withdrawal as a *scope-narrowing at epoch 42*, which the verifier never consulted because it only looked up warrant IDs. The trace, reduced: ``` T+3h mint W_child(scope={read, egress}, parent_epoch=41) OK T+5h publish E=42: W_root.issuer loses {egress} registry updated T+6h verify W_child: sig(W_child) ok subset(W_child, W_root@41) ok <-- snapshot at mint time revoked?(W_root.id) = false <-- wrong lookup key epoch(W_child.parent_epoch=41) vs current(42) NOT CHECKED -> ACCEPT T+6h sub-agent uses egress SUCCEEDS (should fail) ``` The root cause is a **lookup-key mismatch between warrant identity and scope-epoch identity**. The child carried a *parent epoch* field precisely so that a verifier could detect "the authority I inherited has moved since I was minted," but the verifier treated that field as informational metadata rather than as a mandatory freshness gate. ## Condition of Validity The subset invariant `W_child.scope ⊆ W_parent.scope` is only sound under the hidden premise that `W_parent.scope` is *monotonically non-increasing* over the child's lifetime. AAIF attenuation guarantees monotonicity of the *structural* scope at mint time, but revocation introduces a second, asynchronous narrowing channel that the structural check cannot see. The corrected invariant a verifier must enforce is: ``` accept(W_child) iff sig_chain_ok(W_child) ∧ subset(W_child.scope, W_parent.scope) ∧ epoch(W_child.parent_epoch) == current_epoch(W_child.parent_id) ∧ ¬revoked_scope(W_child.parent_id, W_child.scope, current_epoch) ``` The third clause is the one that was missing. It is a **continuity gate**, not a signature check: it says "the authority snapshot I was derived from is still the live snapshot." If `parent_epoch` is stale, the child must be treated as *provisionally valid but unconfirmed* — it may still be usable for the subset of scope that was not touched by intervening epochs, but any capability that could have been withdrawn between `parent_epoch` and `current_epoch` must be re-validated against the delta. This is why the failure is non-obvious: the child is a *correct* attenuation of a *stale* parent. Correctness of derivation does not imply freshness of the derived-from. A verifier that conflates the two will pass every structural test and still leak revoked authority. ## Decision Boundary The boundary is whether the verifier treats `parent_epoch` as a **hard gate** or a **soft hint**. - **Hard gate (correct):** `parent_epoch != current_epoch` ⇒ the child is downgraded to `PENDING_RECONFIRM`. The verifier fetches the epoch delta `[parent_epoch, current_epoch]` for the parent issuer and intersects the child's scope with the surviving scope. Only the intersection is exercisable; the rest raises and forces the sub-agent to request re-attenuation from a live parent. - **Soft hint (the failure):** `parent_epoch` is logged but not compared, on the theory that "the parent warrant wasn't revoked, so the child is fine." This is exactly the assumption that scope-level revocation invalidates. The boundary is sharp because the two regimes are indistinguishable from the child's bytes alone. The child cannot tell you whether its parent's authority moved; only the registry's current epoch can. So the decision must be made *at verification time against live registry state*, never deferred to the child's embedded snapshot. A second boundary: **who bears the re-confirmation cost.** If the verifier hard-gates, a long-lived child under a frequently-epoching parent will thrash into `PENDING_RECONFIRM` constantly. The mitigation is not to soften the gate but to make attenuation *epoch-pinned*: the orchestrator mints children with a short `max_parent_epoch_drift` and re-mints proactively when it observes the parent's epoch advance. The sub-agent's credential then carries a freshness guarantee the verifier can honor cheaply. ## Operational Effect Downstream, the uncorrected verifier produces a class of **silent authority leak** that is invisible to every standard AAIF conformance test, because conformance tests check signature validity and subset containment — both of which pass. The leak only manifests when three conditions co-occur: (a) a child outlives an intervening epoch, (b) the intervening epoch narrows a scope the child inherited, and (c) the verifier looks up revocation by warrant ID rather than by scope-epoch. In production this surfaces as "the agent did something the security team thought they had turned off an hour ago," with an audit log showing a perfectly valid credential. The corrective posture for an agent runtime: 1. **Never trust the embedded parent snapshot for authorization.** Use it only to reconstruct *which* parent to query; always re-derive live authority from the registry's current epoch. 2. **Treat `parent_epoch` staleness as a capability reduction, not a warning.** Intersect child scope with the epoch delta before exercising any capability. 3. **Emit a distinct failure class** so the orchestrator can distinguish "credential forged/tampered" (do not retry) from "credential stale, re-attenuate" (retry after re-mint). Conflating these causes either unsafe retries or needless dead-ends. 4. **Pin child TTL to parent epoch cadence.** A child whose TTL exceeds the parent's expected epoch interval is a latent leak; bound it at mint time. The invariant to carry forward: *attenuation preserves structure, not liveness.* A delegated credential is a claim about a past authority snapshot; only the epoch gate makes it a claim about the present. ```python from dataclasses import dataclass from typing import FrozenSet class StaleParentEpochError(RuntimeError): """Raised when a delegated warrant's parent epoch is behind the live registry epoch.""" @dataclass(frozen=True) class Warrant: warrant_id: str parent_id: str | None parent_epoch: int | None scope: FrozenSet[str] @dataclass(frozen=True) class Registry: current_epoch: dict[str, int] # issuer/parent_id -> live epoch revoked_scope: dict[tuple[str, int], FrozenSet[str]] # (parent_id, epoch) -> withdrawn caps def verify_delegated( child: Warrant, parent: Warrant, registry: Registry, ) -> FrozenSet[str]: """Return the exercisable scope of `child`, or raise if authority continuity is broken. Structural subset is checked, then the epoch-continuity gate is applied. Exercisable scope is child.scope intersected with the parent's surviving authority across every epoch since the child was minted. """ if not child.scope.issubset(parent.scope): raise StaleParentEpochError( f"scope escalation: {child.scope - parent.scope} not in parent" ) if child.parent_epoch is None: raise StaleParentEpochError("child warrant lacks parent_epoch; cannot gate continuity") live_epoch = registry.current_epoch.get(child.parent_id or "") if live_epoch is None: raise StaleParentEpochError(f"unknown parent issuer {child.parent_id!r}") if child.parent_epoch == live_epoch: return child.scope # Parent authority moved after mint: intersect across the epoch delta. surviving = set(parent.scope) for e in range(child.parent_epoch + 1, live_epoch + 1): surviving -= registry.revoked_scope.get((child.parent_id, e), frozenset()) exercisable = child.scope & surviving withdrawn = child.scope - exercisable if withdrawn: raise StaleParentEpochError( f"child {child.warrant_id} inherited {sorted(withdrawn)} " f"revoked between parent_epoch={child.parent_epoch} and live={live_epoch}" ) return exercisable ```