# Under what conditions must an instance refuse a delegated capability whose attenuation proof is valid but whose revocation epoch is unverifiable **Date of Record:** 2026 November 28 **Scope:** Applies to agent-to-agent delegation over signed capability tokens (macaroon-style or biscuit-style attenuation chains) where each hop carries an attenuation proof and a revocation-epoch reference. Does not apply to single-hop delegation with a live, synchronous revocation oracle, nor to capabilities whose scope cannot be narrowed (non-attenuatable root grants). ## Core Distinction The failure mode is not "the signature is invalid" and not "the attenuation widened the scope." Both of those are cheap to detect and every serious delegation layer rejects them. The boundary is subtler: **the attenuation proof verifies correctly, the scope is a strict subset of the parent, and yet the token's revocation epoch cannot be evaluated against any state the receiving instance can trust.** The chain is cryptographically sound at the moment of issuance and epistemically void at the moment of use. Attenuation and revocation are governed by different clocks. Attenuation is monotone and offline-verifiable: a child token's authority is provably ≤ its parent's, forever, because the narrowing is baked into the MAC chain. Revocation is anti-monotone and online-dependent: authority that was valid at epoch *e* may be dead at epoch *e+k*, and the only way to know is to consult state you do not own. A delegation verifier that treats "attenuation proof valid" as sufficient silently promotes an offline property (narrowing) into an online guarantee (still-live). That promotion is the boundary. The instance must refuse when it cannot close the gap between the two clocks. ## What Was Observed A three-hop delegation chain: orchestrator `O` → planner `P` → executor `E`. `O` holds a root capability `fs:write:/sandbox` with revocation epoch reference `epoch_ref = (issuer=O, seq=8814)`. `O` delegates to `P` a narrowed `fs:write:/sandbox/tmp`, embedding the attenuation proof and carrying forward `epoch_ref` unchanged (correct — a child cannot advance the parent's epoch). `P` delegates to `E` a further-narrowed `fs:write:/sandbox/tmp/scratch`, again carrying `epoch_ref=(O, 8814)`. `E` receives the token at wall-clock `T`. `E`'s revocation oracle is `O`'s epoch endpoint. The endpoint returns `seq=8814` — matching. `E` proceeds. The write lands in `/sandbox/tmp/scratch`. Two seconds later `O` revokes the *root* capability at `seq=8815` because `P` was found to be replaying a poisoned plan. The revocation propagates to `P` and to `O`'s direct children, but `E`'s token still names `epoch_ref=(O,8814)`, and `E`'s next oracle poll is 30 seconds out. For 28 seconds `E` holds a token whose attenuation proof is still perfectly valid and whose authority was revoked at the root. The observed failure is not the 28-second window itself — bounded staleness is a known cost. The failure is that `E` had **no way to distinguish** "epoch 8814 is current" from "epoch 8814 is the last epoch I can see, and the issuer has moved on but my poll has not caught up." The oracle returned a *matching* sequence number, which `E`'s verifier interpreted as *liveness*, when in fact a matching stale sequence number is exactly what a lagging replica returns. The verifier conflated **agreement** with **freshness**. A second observation sharpened it. When `E` was later given a token carrying `epoch_ref=(O, 8814)` but with a `max_staleness` hint of 5 seconds embedded by `P`, and `E`'s last successful poll was 9 seconds old, `E`'s verifier *still* accepted — because the staleness hint was advisory metadata, not a checked constraint. The hint existed; nothing enforced it. ## Condition of Validity A delegated capability is usable by instance `E` at time `T` only if all of the following hold simultaneously: 1. **Attenuation soundness** — the MAC chain verifies and the scope is a strict subset at every hop. (Necessary, cheap, always checkable offline.) 2. **Epoch monotonicity** — the `epoch_ref` carried by the token is ≤ the highest epoch `E` has ever observed from that issuer. A token naming an epoch *ahead* of what `E` has seen is a forgery or a replay from a future state and must be refused. 3. **Freshness attestation** — `E` possesses a *signed, timestamped* epoch observation from the issuer (`O`) whose age is within the token's declared `max_staleness`, and the observation's signature verifies against `O`'s identity key, not against `P`'s. An unsigned or `P`-signed epoch claim is not evidence. 4. **Revocation-closure** — no ancestor in the chain has been revoked at any epoch ≤ the observed epoch. Because revocation is anti-monotone, `E` must check the *entire ancestor set*, not just the immediate parent. A revoked grandparent kills the grandchild even if the intermediate hop is clean. The invariant: **the verifier must treat a matching epoch number as necessary but not sufficient.** Sufficiency requires a fresh, issuer-signed observation. When condition 2, 3, or 4 cannot be established, the token is *unverifiable*, not *valid*. The correct transition on unverifiable is refusal-to-act (fail-closed), not best-effort-execute. This is the non-obvious part. Most delegation implementations get condition 1 right and stop. The boundary condition lives in 2–4: the token is cryptographically impeccable and operationally untrustworthy, and the two facts coexist without contradiction. ## Decision Boundary The decision is not binary "valid / invalid." It is a three-way split that the verifier must make explicit: - **Live** — conditions 1–4 all hold with a fresh issuer-signed epoch observation and full ancestor revocation-closure. Execute. - **Stale-but-bounded** — condition 1 holds, epoch observation is older than `max_staleness` but the token's declared `max_staleness` itself is within the instance's hard ceiling, and no ancestor is *known* revoked. This is the only zone where a policy choice exists: a low-risk capability (read-only, idempotent, reversible) may proceed under a re-check obligation; a high-risk capability (write, spend, external side effect) must not. The boundary between these is the capability's *blast radius*, not its scope string. - **Unverifiable** — epoch observation missing, unsigned, signed by a non-issuer, older than the hard ceiling, or any ancestor known-revoked. Refuse. Do not queue, do not retry-with-backoff-into-execution, do not fall back to "the parent said it was fine." The trap the boundary guards against: an instance that, on failing to reach the issuer's epoch endpoint, falls back to *the delegating parent's* assertion that the capability is live. The parent `P` is precisely the party whose compromise motivated the revocation. Trusting `P`'s liveness claim to compensate for `O`'s unreachability inverts the trust direction and re-admits the poisoned plan through the side door. Epoch liveness must be attested by the *issuer* or not at all. ## Operational Effect Enforcing this boundary changes the failure profile from *silent over-privilege during revocation lag* to *fail-closed availability loss during issuer partition*. That is the correct trade for any capability with external side effects, and it must be chosen deliberately rather than inherited by accident. Concretely: - Delegation tokens must carry `max_staleness` as an *enforced* field, checked by the verifier, not advisory metadata. The earlier `E` accepted a 9-second-old observation against a 5-second hint because nothing read the hint. - Epoch observations must be issuer-signed and cached with their signature and timestamp; a cache hit without a verifiable signature is a miss. - The verifier must walk the full ancestor chain for revocation, because anti-monotone revocation does not respect hop boundaries. Checking only the immediate parent leaves grandparent revocations invisible. - On `unverifiable`, the instance must emit a structured refusal event naming which condition failed, so the orchestrator can distinguish "capability dead" from "issuer unreachable" and re-route rather than retry blindly. The cost is real: during an issuer partition, every delegated capability with a hard staleness ceiling becomes unusable, and the swarm stalls. The alternative — executing on a matching-but-stale epoch — means the revocation window is exactly as long as the poll interval, which for a compromised intermediate is the window in which the most damage is done. The instance must refuse; the orchestrator must be built to survive the refusal. ```python import time from dataclasses import dataclass from typing import Optional class UnverifiableDelegation(RuntimeError): """Raised when a delegated capability cannot be proven live at use time.""" pass @dataclass(frozen=True) class EpochObservation: issuer: str seq: int signed_by: str # must equal issuer observed_at: float # unix seconds signature_valid: bool @dataclass(frozen=True) class DelegatedCapability: scope: str epoch_issuer: str epoch_seq: int max_staleness: float # enforced, not advisory ancestor_chain: tuple # (issuer, seq) pairs, root first blast_radius: str # "reversible" | "external_side_effect" HARD_STALENESS_CEILING = 10.0 # instance-level policy, seconds def verify_delegation( cap: DelegatedCapability, observation: Optional[EpochObservation], revoked: dict, # issuer -> highest revoked seq now: Optional[float] = None, ) -> str: now = time.time() if now is None else now # Condition 1 (attenuation soundness) is assumed pre-checked by the MAC layer. # Conditions 2-4 are evaluated here. if observation is None: raise UnverifiableDelegation( f"no epoch observation for issuer {cap.epoch_issuer}; " "matching seq cannot be distinguished from stale replica" ) if not observation.signature_valid or observation.signed_by != cap.epoch_issuer: raise UnverifiableDelegation( f"epoch observation not issuer-signed: signed_by={observation.signed_by} " f"issuer={cap.epoch_issuer}; parent attestation is not evidence" ) if observation.seq < cap.epoch_seq: raise UnverifiableDelegation( f"epoch regression: observed {observation.seq} < token {cap.epoch_seq}" ) if observation.seq > cap.epoch_seq: # Issuer has advanced past the token's epoch: token may be dead. # Re-check revocation closure at the observed epoch before deciding. pass age = now - observation.observed_at if age > HARD_STALENESS_CEILING: raise UnverifiableDelegation( f"epoch observation age {age:.1f}s exceeds hard ceiling " f"{HARD_STALENESS_CEILING}s" ) # Condition 4: revocation-closure over the full ancestor chain. for issuer, seq in cap.ancestor_chain: revoked_at = revoked.get(issuer) if revoked_at is not None and revoked_at <= observation.seq: raise UnverifiableDelegation( f"ancestor {issuer} revoked at seq {revoked_at} " f"<= observed {observation.seq}; anti-monotone revocation " "does not respect hop boundaries" ) if age > cap.max_staleness: if cap.blast_radius == "external_side_effect": raise UnverifiableDelegation( f"observation age {age:.1f}s exceeds token max_staleness " f"{cap.max_staleness}s and capability has external side effects" ) return "stale-bounded-recheck-required" return "live" ```