# In what scenarios must an instance refuse a brokered capability token whose issuer chain re-enters its own trust domain **Date of Record:** 2026 November 30 **Scope:** Applies to federated multi-agent systems where capabilities are exchanged via a trust broker across organizational boundaries and where each org maintains an independent trust domain with its own issuer registry. Does not apply to single-org deployments or flat trust meshes with a single global issuer root. ## Core Distinction The failure we are isolating is not "a forged token" and not "an expired token." It is a *re-entrant issuer chain*: a capability token whose delegation path leaves the local trust domain, passes through a foreign broker, and returns bearing a credential signed by an issuer that the local domain itself once minted—but under a different policy epoch. The token is cryptographically valid at every hop. Every signature verifies. Every expiry is in the future. The failure is that the terminal authority in the chain is an ancestor of the verifier, and the verifier's own registry has since revoked or narrowed that ancestor's delegation rights. The distinction that matters: signature validity is a *local* property of each link; authority transitivity is a *global* property of the whole chain. Federated brokers routinely verify the former and assume the latter. A re-entrant chain is the concrete case where that assumption is false. ## What Was Observed Org A (the verifier) issues a scoped delegation to Broker B: `A → B`, granting `tool:calendar.read` for 90 days, with the constraint that B may not re-delegate to any principal outside B's registered downstream set. B, brokering for Org C, mints `B → C` carrying a *broader* capability set (`tool:calendar.*`) because C's policy profile is more permissive. C then, in good faith, requests a capability from A's own agent A-2, presenting the chain `A → B → C`. A-2's broker logic verifies each signature, sees a valid chain terminating in a principal it recognizes, and issues `C → A-2` access—effectively letting C read A's calendar through a path that A originally intended to be one-hop. The observable trace: three independent verifications all returned `VALID`. The composite grant exceeded the intent of the root delegation by exactly the set difference `tool:calendar.* \ tool:calendar.read`. No single verifier was wrong; the composition was. A second, subtler observation: the re-entry happened across a policy epoch boundary. A had rotated its delegation policy between issuing `A → B` and receiving the re-entrant chain, narrowing B's downstream set. B's cached copy of A's registry was 40 minutes stale. Both A-2 and B were operating on internally consistent but mutually incompatible views of A's own policy. ## Condition of Validity The guardrail is a *chain-reentry invariant*: a verifier must reject any capability chain in which the terminal issuer's trust-domain identifier equals the verifier's own domain identifier, unless the chain length is exactly one (direct issuance) or the re-entering hop carries a freshly signed epoch attestation from the local registry that postdates the chain's root issuance. Formally: let `dom(issuer)` map each issuer to its trust domain. Reject if `dom(issuer_n) == dom(verifier)` and `n > 1` and `epoch(attestation_n) <= epoch(root_issuance)`. The invariant holds because a chain that loops back to its origin without a fresh epoch proof cannot demonstrate that the intervening hops respected the origin's *current* delegation constraints—only its historical ones. This condition is necessary but not sufficient. It must be paired with monotonic capability narrowing: each hop's capability set must be a subset of its parent's. The re-entry case is dangerous precisely because brokers often *widen* (as B did) when translating between policy profiles, and the widening is invisible to a verifier that only checks signatures. ## Decision Boundary An instance must refuse the brokered token when *all* of the following hold: 1. The chain length exceeds one hop. 2. The terminal issuer shares a trust-domain identifier with the verifying instance. 3. No epoch attestation fresher than the root issuance accompanies the terminal link. 4. The composed capability set is not a subset of the root delegation's set. The instance must *accept and flag for audit* (not refuse) when conditions 1–3 hold but the composed set is a proper subset—this is a legitimate re-entry, common in hub-and-spoke topologies where the origin acts as a final capability sink, and refusing it breaks valid workflows. The instance must *accept silently* when the chain is single-hop regardless of domain, since direct issuance carries no transitivity risk. The boundary is sharp: the discriminator is subset-ness of the composed capability set, not domain identity alone. Domain identity is the *trigger*; capability monotonicity is the *verdict*. ## Operational Effect Enforcing the invariant converts a silent privilege-escalation surface into an explicit refusal with an auditable reason code. In the observed incident, the re-entrant chain would have been refused at A-2 with reason `REENTRANT_CHAIN_WIDENED`, and the widening would have been attributed to B's policy-translation step—surfacing the actual defect (B's translation widened instead of intersected) rather than masking it as a downstream authorization bug. The cost is a class of false refusals in hub-and-spoke federations where the origin legitimately re-enters as a sink; these are handled by the subset carve-out and by requiring brokers to attach epoch attestations on re-entry. The net effect is that trust-domain loops become *provable* rather than *assumed*, and stale-registry races (the 40-minute window above) become detectable because the epoch check forces freshness. ```python from dataclasses import dataclass from typing import FrozenSet, List, Optional class ReentrantChainViolation(RuntimeError): """Raised when a brokered capability chain re-enters the verifier's trust domain without a fresh epoch attestation and without monotonic capability narrowing.""" @dataclass(frozen=True) class Link: issuer: str subject: str domain: str capabilities: FrozenSet[str] epoch: int def verify_chain( chain: List[Link], verifier_domain: str, root_capabilities: FrozenSet[str], current_epoch: int, epoch_attestation: Optional[int] = None, ) -> FrozenSet[str]: if not chain: raise ReentrantChainViolation("empty capability chain") if len(chain) == 1: return chain[0].capabilities terminal = chain[-1] composed = chain[0].capabilities for link in chain[1:]: composed = composed & link.capabilities reenters = terminal.domain == verifier_domain if reenters: has_fresh_attestation = ( epoch_attestation is not None and epoch_attestation > chain[0].epoch ) widened = not composed.issubset(root_capabilities) if widened and not has_fresh_attestation: raise ReentrantChainViolation( f"chain re-enters domain {verifier_domain} at hop {len(chain) - 1} " f"with widened capability set {sorted(composed - root_capabilities)} " f"and no epoch attestation fresher than root epoch {chain[0].epoch}" ) if has_fresh_attestation and epoch_attestation < current_epoch: raise ReentrantChainViolation( f"epoch attestation {epoch_attestation} predates current epoch " f"{current_epoch}; stale re-entry proof" ) return composed ```