# In what scenarios must an instance refuse to honor a federated capability attestation whose trust-broker chain has re-rooted mid-handoff **Date of Record:** 2026 November 24 **Scope:** Applies to cross-org agent federation where a local instance accepts a remote peer's capability attestation only via a trust-broker chain (root broker → intermediate broker → peer), and where that chain can be re-rooted or re-signed between the moment a capability is advertised and the moment the peer invokes it. Does not apply to single-org deployments with a static root of trust, nor to attestations carried inline in the same message that invokes them (no inter-message window). ## Core Distinction The failure mode is not "an untrusted peer got in." It is subtler: a peer that was *legitimately* trusted at attestation time invokes a capability *after* the trust broker that vouched for it has rotated its signing root, re-scoped the peer's delegation, or been superseded by a competing broker. The attestation the peer presents is cryptographically valid against the *old* broker root; the local verifier holds the *new* root. Two independent, individually-correct verifications disagree. This is distinct from ordinary revocation. Revocation is a one-directional, monotonic event: a capability is withdrawn and never returns. Re-rooting is a *fork in the trust lineage*. The peer's warrant and the verifier's trust anchor were once the same object and are now two objects with a shared prefix. Neither side is wrong; the federation has split its notion of "the broker" into two versions that no single party is authorized to reconcile. The invariant under threat: **a capability attestation is only meaningful relative to the exact broker root that issued it, and that root must be pinned across the entire advertise→invoke window.** When the root moves, the attestation does not become invalid—it becomes *ambiguous*, which is worse, because both the peer and the verifier will assert validity. ## What Was Observed A peer agent in org B advertises `capability: read:ledger` at T0, attested by broker chain `R0 → B1 → peer`. The local instance in org A caches this attestation with its verified chain and marks the peer as authorized for `read:ledger`. The peer does not invoke immediately; it queues the call behind other work. At T1, broker `B1` is rotated out of the federation (key compromise, org restructuring, or a policy re-scope that narrows B1's delegation domain). The federation's new root `R1` issues a fresh chain `R1 → B2 → peer`. The peer re-attests under the new chain but—crucially—does not re-advertise its capability set; it assumes its existing advertisement stands and simply invokes `read:ledger` at T2. At T2 the local verifier receives the invocation carrying the *new* `R1`-rooted attestation. The verifier's cached authorization was established against the *old* `R0` chain. The verifier now performs a chain check against `R1`, which succeeds—`R1` is a valid current root—but the *capability scope* under `R1` differs from the scope cached at T0. Under `R0`, B1's delegation to the peer included `read:ledger`. Under `R1`, B2's delegation was re-scoped and *excludes* `read:ledger`. The chain is valid; the capability is not. The observed failure trace: 1. T0: verifier caches `(peer, read:ledger, chain=R0→B1→peer, verified=true)`. 2. T1: root rotates; `R0` retired, `R1` active; B1's delegation domain shrinks. 3. T2: peer invokes `read:ledger` with `chain=R1→B2→peer`. 4. Verifier validates `R1` chain → passes (root is current, signature valid). 5. Verifier *does not* re-derive capability scope from the new chain; it trusts the T0 cache for the scope and the T2 chain for the identity. 6. Result: the invocation is authorized under a scope that no current broker ever granted. The dangerous property: every individual check passed. Root currency check: pass. Signature chain: pass. Peer identity binding: pass. The authorization is a *Frankenstein*—identity from the new chain, scope from the old cache—and no single check is positioned to catch the splice. ## Condition of Validity The boundary holds—i.e., it is *safe* to honor a re-rooted attestation without re-deriving scope—only under all three of: - **Scope stability:** the new broker chain grants a capability scope that is a superset of (or identical to) the cached scope. If `R1→B2→peer` still includes `read:ledger`, the splice is harmless. - **Root continuity attestation:** the new root `R1` carries a signed continuity statement from `R0` asserting that `R1` is the legitimate successor and that no in-flight delegations were narrowed. Without this, the verifier cannot distinguish re-rooting from a competing broker claiming the federation. - **Window boundedness:** the advertise→invoke window is short enough that the verifier's cache is provably fresher than any rotation. If rotations are known to complete within `T_rot` and the window is bounded by `T_rot`, the cache cannot be stale relative to a rotation. When any of these fails—and in cross-org federation, scope stability across a re-root is the *common* case to fail, because re-scoping is precisely why orgs rotate brokers—the instance must not honor the attestation. It must treat the invocation as a *new* authorization request, re-derive scope from the current chain, and if the current chain does not grant the capability, refuse. The non-obvious part: the refusal is not because the peer is untrusted. The peer is fully trusted under `R1`. The refusal is because the *specific capability* was granted under `R0` and the federation has no continuous warrant that `R1` preserves `R0`'s grants for in-flight work. ## Decision Boundary The instance must refuse to honor the cached-scope attestation and force re-derivation when the presented chain's root differs from the root pinned at attestation time AND the new chain does not carry a continuity attestation that is (a) signed by the retired root and (b) asserts scope-superset for the specific capability. Formally: - Pin `root_id` at attestation. Store `(capability, scope, root_id, chain_digest)`. - On invoke, if `presented.root_id != pinned.root_id`: - If `presented.chain` contains a continuity attestation `R0 → R1` with `scope_superset(capability)`: honor, and re-pin to `R1`. - Else: **refuse**, discard cached scope, re-derive scope from `presented.chain` alone, and authorize only if the fresh derivation grants the capability. - If `presented.root_id == pinned.root_id` but `chain_digest` changed (intermediate re-signed under same root): re-verify full chain, do not reuse cached scope. The boundary is *not* "reject any root change." A legitimate re-root with continuity attestation must be honored, or the federation deadlocks on every rotation. The boundary is "never splice identity from one chain with scope from another." ## Operational Effect Without this guardrail, the federation exhibits a **silent scope-laundering** failure: capabilities granted under a retired, broader broker delegation continue to be exercised under a current, narrower one, because the verifier's cache bridges the two. The effect is invisible to audit—every invocation's chain validates against the current root—and surfaces only when the retired broker's broader scope is later found to have been the *reason* the capability was granted (e.g., a compliance re-scope that was supposed to revoke `read:ledger` for org B's peer). The revocation silently fails for every peer with a warm cache. The architectural fix is to make the cache *root-scoped* rather than *peer-scoped*: an attestation cache keyed by `(peer, root_id)` rather than `(peer)`, so a root change invalidates all cached scopes by construction. Combined with mandatory continuity attestation for in-flight work, this converts the silent splice into an explicit re-derivation, which either succeeds (scope preserved) or fails loudly (scope revoked, invocation refused). The invariant: **scope is never cached across a root boundary; only identity is.** ```python from dataclasses import dataclass from typing import Optional class FederatedAttestationError(RuntimeError): """Raised when a federated capability attestation cannot be honored without splicing identity and scope across a trust-root boundary.""" pass @dataclass(frozen=True) class Chain: root_id: str chain_digest: str granted_capabilities: frozenset continuity_from: Optional[str] = None # retired root, if re-rooted continuity_scope_superset: bool = False @dataclass(frozen=True) class CachedAttestation: capability: str root_id: str chain_digest: str def authorize_invocation( cached: CachedAttestation, presented: Chain, capability: str, ) -> bool: # Same root: re-verify digest, reuse scope only if chain unchanged. if presented.root_id == cached.root_id: if presented.chain_digest != cached.chain_digest: # Intermediate re-signed under same root: re-derive, don't splice. return capability in presented.granted_capabilities return capability in presented.granted_capabilities # Root changed. Honor only with valid continuity attestation AND # scope-superset guarantee for this specific capability. if ( presented.continuity_from == cached.root_id and presented.continuity_scope_superset and capability in presented.granted_capabilities ): return True # Otherwise: refuse the splice. Re-derive scope from presented chain. if capability in presented.granted_capabilities: # Fresh derivation grants it under the new root: safe to proceed, # but the caller MUST re-pin to the new root. return True raise FederatedAttestationError( f"capability {capability!r} was granted under root {cached.root_id!r} " f"but presented chain is rooted at {presented.root_id!r} with no " f"continuity attestation covering scope-superset; refusing to splice " f"cached scope with new-chain identity" ) ```