# In what scenarios must an instance re-validate a delegated capability token at the trust-broker boundary, and what breaks when it does not **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organizational agent handoffs where an orchestrator in org A presents a verifiable credential (VC) plus a capability-scoped bearer/authorization token minted by a trust broker to an agent in org B, and org B's agent must decide whether to execute a tool call on the caller's behalf. Does not apply to single-org intra-tenant calls, nor to stateless request/response APIs where no delegation chain exists. ## Core Distinction The failure this record isolates is **delegation-depth attenuation drift**: the boundary where a capability token's `scope` was correctly narrowed at mint time, but the *verification* of that narrowing is performed against the broker's *current* key/revocation state rather than the state at the moment the delegation chain was constructed. Two things are routinely conflated: (1) *is this token cryptographically valid right now*, and (2) *was this token's scope legally derived from the delegator's authority at the time of delegation*. A broker that answers only (1) will admit tokens whose attenuated scope was never actually checkable against the delegator's original grant, because the delegator's grant may have been minted under a key or policy version that has since rotated out of the broker's active verification set. The invariant that must hold: **every link in a delegation chain must verify against the policy epoch under which that link was created, and the effective scope is the intersection across all links evaluated at their own epochs — never the intersection of the leaf scope with the broker's present-day view.** ## What Was Observed An orchestrator agent `A:planner` in org A holds a root capability `repo:read,repo:write` scoped to `resource=dataset://acme/finance`. It delegates to a sub-agent `A:analyst` a narrowed token `repo:read` only, signing the attenuation proof with the broker's epoch-7 key. `A:analyst` then crosses the org boundary into org B's `B:executor` and presents: root VC (epoch-7 signed), attenuation proof (epoch-7 signed), leaf token (`scope=repo:read`, `delegation_depth=2`). Org B's `B:executor` calls the broker's introspection endpoint. The broker had rotated to epoch-8 keys 40 minutes earlier. Its introspection response validated the *leaf* token (still within TTL, signed by a key the broker recognizes) but returned `attenuation_chain_verified: false` with reason `unknown_signing_epoch` for the epoch-7 attenuation proof. `B:executor`'s handler treated `false` as advisory — the token itself was "valid" — and proceeded. Because the leaf token carried only `repo:read`, no write occurred. But the *root* VC, re-presented in the same envelope for audit, still asserted `repo:write`. `B:executor` logged the operation against the root scope, and a downstream audit reconciliation flagged a write-capability exposure that never happened, while the actual read proceeded under a chain whose attenuation could not be verified at all. The compounding case: when `B:executor` retried the introspection after the broker's epoch-8 key set finished propagating, the epoch-7 attenuation proof became *permanently* unverifiable (the epoch-7 public key was retired from the active set), so the token transitioned from "advisory failure" to "hard failure" with no change to the token bytes. The same opaque token was valid, then questionably valid, then invalid, purely as a function of broker key lifecycle — a non-monotonic trust state. ## Condition of Validity The invariant holds only when three conditions are jointly satisfied: 1. **Epoch pinning.** Each token and attenuation proof carries the policy epoch (or key ID) under which it was signed, and the broker retains verification material for all epochs within the maximum delegation TTL. If the broker garbage-collects epoch-7 keys before the longest-lived epoch-7 token expires, the chain becomes unverifiable-by-construction and the only safe response is rejection. 2. **Scope intersection at construction time.** The effective scope presented to `B:executor` must be the precomputed intersection of all links, each evaluated at its own epoch, and this intersection must be a signed field of the leaf token — not recomputed by the verifier. If the verifier recomputes the intersection against present-day policy, a policy change in org A between delegation and execution silently widens or narrows authority. 3. **Monotonic trust semantics.** A token that verified at time `t` must not become *more* trusted at `t+1` due to broker state changes (key propagation completing), and must not silently degrade to "advisory" — verification is binary at the boundary. Any `false` in the chain is a hard reject, never a warning. ## Decision Boundary The decision boundary is **not** "is the token signature valid." It is: *does the verifier have, at the moment of the call, the verification material for every epoch referenced anywhere in the delegation chain, and does the leaf token's signed effective-scope field match the intersection the broker computed at mint time?* Concretely, `B:executor` must reject when: - any link's signing epoch is absent from the broker's retained verification set (retirement ≠ revocation, but both are rejections at the boundary); - the leaf's signed `effective_scope` is absent (verifier would have to recompute — forbidden); - `delegation_depth` in the leaf exceeds the verifier's configured maximum, regardless of what the broker says; - the introspection response distinguishes "valid" from "chain_verified" and the handler is tempted to treat the former as sufficient. It may proceed only when all links verify at their pinned epochs, the signed effective scope is present and is a subset of the root grant *as recorded at the root's epoch*, and the depth bound holds. ## Operational Effect Absent this discipline, two failure classes appear. First, **phantom exposure**: audit systems reading the root VC report capabilities the leaf never held, producing false incident escalations and, worse, training operators to ignore scope-mismatch alerts. Second, **non-monotonic admission**: the same token is admitted, then flagged, then rejected as broker key state evolves — meaning a retry loop around a transient introspection failure can launder a token through the "advisory" window into execution. The guardrail is to make the boundary fail-closed on epoch absence, carry signed effective scope in the leaf, and forbid the verifier from ever recomputing intersection against live policy. The code below encodes the fail-closed check and the specific exception raised at the epoch-retirement boundary. ```python import hashlib from dataclasses import dataclass from typing import Optional class DelegationChainUnverifiable(RuntimeError): """Raised when a link's signing epoch has no retained verification material.""" class EffectiveScopeMissing(RuntimeError): """Raised when the leaf token omits its signed effective-scope field.""" @dataclass(frozen=True) class Link: epoch: int scope: frozenset signature_ok: bool @dataclass(frozen=True) class LeafToken: links: tuple signed_effective_scope: Optional[frozenset] delegation_depth: int class TrustBrokerBoundary: def __init__(self, retained_epochs: set, max_depth: int): self.retained_epochs = retained_epochs self.max_depth = max_depth def admit(self, token: LeafToken) -> frozenset: # Fail-closed on any epoch whose verification material was retired. for link in token.links: if link.epoch not in self.retained_epochs: raise DelegationChainUnverifiable( f"link signed under epoch {link.epoch} has no retained " f"verification material; retained={sorted(self.retained_epochs)}" ) if not link.signature_ok: raise DelegationChainUnverifiable( f"link at epoch {link.epoch} failed signature check" ) if token.delegation_depth > self.max_depth: raise DelegationChainUnverifiable( f"delegation_depth {token.delegation_depth} exceeds bound {self.max_depth}" ) # Verifier must NEVER recompute intersection against live policy. if token.signed_effective_scope is None: raise EffectiveScopeMissing( "leaf token carries no signed effective_scope; refusing to " "recompute intersection at verification time" ) # Signed effective scope must be a subset of every link's scope. for link in token.links: if not token.signed_effective_scope <= link.scope: raise DelegationChainUnverifiable( f"signed effective_scope {set(token.signed_effective_scope)} " f"is not a subset of link scope at epoch {link.epoch}" ) return token.signed_effective_scope ```