# In what scenarios must an instance refuse to honor an attenuated AAIF capability token whose revocation epoch trails the issuer's by more than one delegation hop? **Date of Record:** 2026 November 27 **Scope:** Applies to multi-hop AAIF delegation chains where a child token carries an attenuated scope set and a revocation epoch (`rev_epoch`) stamped by its immediate parent. Does not apply to single-hop tokens issued directly by a root authority, nor to tokens carrying a monotonic global revocation counter that is verified against the root at every use. ## Core Distinction AAIF attenuation is *additive in restriction, subtractive in authority*: each delegation hop may only narrow scope, never widen it, and must carry forward a revocation epoch that is at least as fresh as its parent's. The subtle failure is not scope escalation—that is caught by set-inclusion checks—but **revocation epoch lag**: a grandchild token whose `rev_epoch` is numerically valid against its own parent but stale relative to the root, because an intermediate delegate re-signed with a cached epoch snapshot taken before a revocation event propagated. The token passes every local scope check and every parent-epoch check, yet authorizes an action the root has already revoked. The invariant that must hold is: *for any token at depth d, `rev_epoch(token) >= rev_epoch(root)` at the moment of use, not merely `rev_epoch(token) >= rev_epoch(parent)`.* ## What Was Observed A three-hop chain: root R → orchestrator O → sub-agent S → tool-worker W. R issued O a token with `rev_epoch = 4412`. O delegated to S, re-stamping `rev_epoch = 4412` (a cached value from O's local epoch table, refreshed every 90 s). At t=0 the root revoked S's scope class `filesystem.write` and bumped the global epoch to `4417`. The revocation propagated to O at t=14 s. But S had already, at t=6 s, delegated a narrowed token to W with `rev_epoch = 4412` and scope `{filesystem.write:/tmp/staging}`. W verified: scope ⊆ S's granted scope (pass), `4412 >= 4412` against S (pass). W executed a write to `/tmp/staging` at t=22 s—**nine seconds after the root revocation, five seconds after O learned of it**—because W never consulted anything fresher than S's cached epoch. The write was to a path that a concurrent root-level policy had quarantined. The failure was silent: no scope violation, no signature failure, only a lagging epoch that made a revoked capability look live. The trace: `revoke(S, filesystem.write) → epoch 4412→4417 @ R → [14s] → O.epoch=4417 → [but S's cached token still says 4412] → W accepts @ 4412`. The lag is structural: each hop's cache refresh interval adds to the worst-case staleness, so a depth-3 chain has worst-case revocation latency ≈ sum of per-hop refresh intervals, not the max. ## Condition of Validity The parent-epoch check (`child.rev_epoch >= parent.rev_epoch`) is only sound when the parent's epoch is itself fresh at the instant of the child's use. That freshness cannot be established by the child alone. It requires either (a) the verifier W reaching a root-authoritative epoch source within a bounded staleness window, or (b) the token carrying a signed *epoch chain*—the sequence of epochs at each hop—so W can detect a hop where the epoch failed to advance. Condition (a) holds only if W has a network path to the root's revocation service and the token's `max_staleness` field is less than the observed round-trip. Condition (b) holds only if every delegate is contractually required to increment-or-carry the epoch chain and to refuse to sign when its own cached epoch is older than its parent's by more than one hop's refresh budget. Absent either, the check degrades to "the parent believed it was current," which is exactly the assumption revocation is supposed to defeat. ## Decision Boundary An instance must **refuse** to honor the token (fail closed) when all of the following hold: the token is at depth ≥ 2; the verifier cannot reach a root-authoritative epoch within `max_staleness`; and the token's epoch chain shows a hop where `rev_epoch` did not advance across a delegation that occurred after that hop's last known refresh. It may **honor with a downgrade** (treat scope as read-only, log a `stale-epoch` warning) when the token is at depth 1 or the action is idempotent and reversible. It must **honor normally** only when the epoch chain is monotonic non-decreasing across all hops *and* the terminal epoch is within `max_staleness` of a root-signed value. The boundary is not "is the signature valid" but "can I prove the epoch I'm trusting was current when the delegator signed"—and if that proof is unavailable at depth ≥ 2, the safe action is refusal, because the cost of a revoked write is unbounded while the cost of a refused write is a retry. ## Operational Effect Enforcing root-relative epoch freshness converts a silent authorization leak into a bounded, observable refusal. In the replay above, W would have refused at t=22 s with a `StaleEpochError`, the write would have been queued, and on retry at t=30 s (after O's epoch table refreshed) the token would have been re-minted at `4417` and the write correctly denied because the scope class was revoked. The operational cost is a per-hop refresh budget that must be *summed* into the chain's `max_staleness`, not maxed—so a depth-3 chain with 15 s hops needs a 45 s staleness allowance or must carry an epoch chain. Teams that set `max_staleness` to a single hop's refresh interval will see intermittent refusals under load; teams that set it to the sum will see correct behavior but must size their revocation SLA accordingly. The invariant to encode in the verifier: `assert token.rev_epoch >= root_epoch_at_use - max_staleness`, evaluated against a root-signed value, never against the immediate parent's cached copy. ```python class StaleEpochError(RuntimeError): """Raised when a delegated AAIF token's revocation epoch cannot be proven fresh relative to the root authority at the moment of use.""" def verify_attenuated_token(token, root_epoch_source, max_staleness: int, now: int): # token: dict with keys depth, rev_epoch, epoch_chain, scope, parent_scope if not token["scope"].issubset(token["parent_scope"]): raise StaleEpochError("scope escalation: child scope not subset of parent") root_epoch = root_epoch_source.current_epoch() # root-signed, authoritative root_freshness = now - root_epoch_source.last_signed_at() if token["depth"] >= 2: # epoch chain must be monotonic non-decreasing across hops chain = token["epoch_chain"] for prev, cur in zip(chain, chain[1:]): if cur < prev: raise StaleEpochError( f"epoch chain regressed at hop: {prev} -> {cur}" ) # terminal epoch must be within max_staleness of root if token["rev_epoch"] < root_epoch - max_staleness: raise StaleEpochError( f"rev_epoch {token['rev_epoch']} trails root {root_epoch} " f"by more than max_staleness {max_staleness}" ) if root_freshness > max_staleness: raise StaleEpochError( f"root epoch source stale by {root_freshness}s " f"(> {max_staleness}s); cannot prove freshness" ) return True ```