# Under what conditions must an instance reject a federated capability grant whose issuer chain is valid but whose trust-root attestation has silently rotated mid-handoff **Date of Record:** 2026 November 27 **Scope:** Applies to cross-org multi-agent federations where a receiving agent (the *verifier*) accepts a delegated capability token (a *warrant*) minted by a foreign trust root and where that root's signing key may rotate independently of the warrant's TTL. Does not apply to intra-org delegation where a single control plane owns both issuer and verifier, nor to stateless request/response tool calls that carry no delegated authority. ## Core Distinction The failure is not a signature failure. A warrant whose Ed25519 signature verifies against the *current* published key of the issuing org's trust root is, cryptographically, a valid warrant. The boundary condition is subtler: **the trust root that signed the warrant is not the trust root the verifier bootstrapped against.** Between the moment the verifier cached the foreign trust anchor (at federation join time) and the moment a downstream warrant arrives (often minutes to hours later, mid-task), the issuer's root key set can rotate. If the verifier's bootstrap record is keyed by *root identity* rather than *root identity + key epoch*, a rotated root will either (a) be silently re-trusted because the verifier refreshes lazily and accepts whatever key the discovery endpoint now serves, or (b) cause an outright rejection that the orchestrator misreads as a policy denial rather than a trust-bootstrap staleness event. Both outcomes are wrong, and they are wrong in opposite directions. The invariant that must hold: **a warrant is only as trustworthy as the chain of *epoch-pinned* attestations linking it to the exact root key material the verifier independently validated at bootstrap.** Any link in that chain that resolves to "the current key" instead of "the key at epoch N" is an unpinned reference, and an unpinned reference in a trust chain is a substitution surface. ## What Was Observed A three-org federation: Org A (orchestrator agent), Org B (data-retrieval agent), Org C (auditor agent). A's agent holds a long-lived warrant `W_A→B` delegating `read:dataset` scoped to a task ID. Mid-task, B needs a sub-delegation to C for audit replay, so B mints `W_B→C` whose issuer chain is `C_root ← B_intermediate ← W_B→C`, and presents it to C's verifier. C's verifier had joined the federation 40 minutes earlier and cached B's trust anchor as `{root_id: "b-root-1", pubkey: , fetched_at: T0}`. At T0+35min, B rotated its root signing key to `K1` under the *same* `root_id` (a routine operational rotation; B's operators considered `root_id` stable identity). B's discovery endpoint at T0+40min served `{root_id: "b-root-1", pubkey: }`. C's verifier, on receiving `W_B→C`, did a lazy refresh: it saw `root_id` matched its cache, fetched the discovery document, and — because it compared only `root_id` — **overwrote `pubkey` with `K1`**. The warrant `W_B→C` had actually been signed with `K0` (B minted it before rotation completed, or from a replica that had not yet propagated `K1`). Signature verification against `K1` failed. C's verifier raised a generic `SignatureInvalid`, which the orchestrator surfaced to A as "policy denied by C." A's agent, reasoning probabilistically over its error taxonomy, retried the *policy negotiation* path three times, burning its token budget, and then escalated to a human with a misleading "C is refusing audit scope" narrative. The inverse case was observed in a second incident: C's verifier had *not* refreshed, still held `K0`, and accepted a warrant signed with `K0` that B had **revoked** at rotation (B's rotation was a compromise response, not routine). The verifier accepted a revoked-key warrant because revocation was published under `root_id` with a `not_after` field that the verifier's cache schema did not carry. Two failure directions from one unpinned reference: false rejection (rotation, benign) and false acceptance (revocation, hostile). The mechanism is identical. ## Condition of Validity The guardrail is a **trust-bootstrap epoch pin**, and it is only valid under all of the following: 1. **Root identity is `(root_id, key_epoch)`, never `root_id` alone.** Every cached anchor carries the epoch integer and the exact key material. A discovery refresh that returns the same `root_id` with a higher epoch is a *rotation event*, not an update-in-place; it must not mutate the existing cache entry. 2. **Warrants carry the issuer's key epoch explicitly** in a signed field (`iss_epoch`), and the verifier checks `warrant.iss_epoch == cached_anchor.key_epoch` *before* signature verification. A mismatch is a distinct error class, not a signature failure. 3. **Rotation produces an overlap window with dual-published keys.** During the window `[T_rot, T_rot + overlap]`, the discovery document lists both `K_n` and `K_{n+1}` with per-key validity intervals. A warrant signed with `K_n` and `iss_epoch = n` verifies against `K_n` even after `K_{n+1}` is published, *provided* `now < K_n.not_after`. This is what makes benign rotation invisible to the handoff instead of fatal to it. 4. **Revocation is epoch-scoped and monotonic.** A revoked epoch publishes `revoked_at`; the verifier must reject any warrant whose `iss_epoch` is at or below the highest revoked epoch, regardless of whether the key still verifies. 5. **The verifier never lazily overwrites a pinned anchor from a discovery fetch.** Discovery may *add* epochs; it may not *replace* the material the verifier independently validated at bootstrap. Re-bootstrapping a root (accepting a new epoch as the new baseline) is an explicit, logged, human-or-policy-gated operation — not a side effect of a cache miss. The condition fails — and the instance must reject — when any of (1)–(5) cannot be established from verifier-local state. In particular: if the discovery endpoint is reachable but returns an epoch the verifier has no independent attestation for, the verifier has *no basis* to trust the new key, and accepting it because "the endpoint said so" collapses the entire federation trust model into trust-on-first-use-per-fetch. ## Decision Boundary The precise boundary the instance must enforce: - **Accept** iff `warrant.iss_epoch` is present, equals the cached anchor's epoch, the signature verifies against the cached key material, `now` is within that epoch's validity interval, and the epoch is not in the revoked set. - **Accept-with-overlap** iff `warrant.iss_epoch` is in the cached anchor's *published overlap set* (both epochs pinned at bootstrap or added via an attested rotation record), signature verifies against that epoch's key, and `now < that_epoch.not_after`. - **Reject as `TrustEpochMismatch`** — *not* `SignatureInvalid`, *not* `PolicyDenied` — iff the warrant's epoch is unknown to the verifier or the signature fails against the pinned material for that epoch. This is the error that must propagate to the orchestrator so it does not misclassify a staleness event as a policy refusal. - **Reject as `TrustEpochRevoked`** iff the epoch is revoked, even if the signature is valid. - **Never** resolve an unknown epoch by fetching and trusting the live discovery key. Escalate to re-bootstrap. The non-obvious part: the orchestrator's error taxonomy must distinguish these. A `TrustEpochMismatch` is *retryable after re-bootstrap*, not after policy renegotiation. An agent that treats it as `PolicyDenied` will burn its retry budget on the wrong remediation path — which is exactly what happened in the first incident. ## Operational Effect Pinning the epoch changes the failure from *silent and misattributed* to *loud and correctly routed*. The benign-rotation case (C holds `K0`, warrant signed `K0`, B rotated to `K1`) now succeeds via the overlap window instead of failing signature verification. The hostile case (B revoked `K0`, warrant signed `K0`) now fails as `TrustEpochRevoked` even though the signature is valid — closing the false-acceptance hole. The ambiguous case (warrant carries an epoch C never bootstrapped) fails as `TrustEpochMismatch`, which the orchestrator routes to a re-bootstrap gate rather than a policy retry loop. The cost is that federation join must capture and persist the epoch, not just the key; and rotation must publish overlap intervals rather than swapping keys atomically. Both are cheap. The alternative — a trust chain with an unpinned reference — is a substitution surface that fails in two directions from one root cause, and the agent layer is precisely where that root cause gets laundered into a plausible-sounding but wrong narrative. ```python from dataclasses import dataclass from typing import Optional class TrustEpochError(RuntimeError): pass class TrustEpochMismatch(TrustEpochError): """Warrant epoch unknown to verifier, or signature fails against pinned material.""" pass class TrustEpochRevoked(TrustEpochError): """Warrant epoch is revoked; signature validity is irrelevant.""" pass @dataclass(frozen=True) class PinnedAnchor: root_id: str key_epoch: int pubkey: bytes not_after: float # epoch validity end revoked: bool = False @dataclass(frozen=True) class Warrant: issuer_root_id: str iss_epoch: int signature: bytes signed_payload: bytes def verify_warrant( warrant: Warrant, anchors: dict[tuple[str, int], PinnedAnchor], now: float, verify_sig, ) -> None: """ Enforce epoch-pinned trust bootstrap. `anchors` is keyed by (root_id, epoch) and is populated ONLY at bootstrap or via attested rotation records — never by lazy discovery refresh. Raises on any boundary violation. """ key = (warrant.issuer_root_id, warrant.iss_epoch) anchor: Optional[PinnedAnchor] = anchors.get(key) if anchor is None: # Do NOT fall back to "current key" from discovery. That is the # unpinned-reference substitution surface. raise TrustEpochMismatch( f"no pinned anchor for root={warrant.issuer_root_id} " f"epoch={warrant.iss_epoch}; re-bootstrap required" ) if anchor.revoked: raise TrustEpochRevoked( f"epoch {warrant.iss_epoch} of {warrant.issuer_root_id} is revoked" ) if now >= anchor.not_after: raise TrustEpochMismatch( f"epoch {warrant.iss_epoch} expired at {anchor.not_after}, now={now}" ) if not verify_sig(anchor.pubkey, warrant.signed_payload, warrant.signature): # Signature failure against the *pinned* key for this exact epoch is a # trust-epoch event, not a generic crypto failure: the issuer may have # signed with a different epoch's key. raise TrustEpochMismatch( f"signature does not verify against pinned key for " f"{warrant.issuer_root_id}@{warrant.iss_epoch}" ) # Accepted: warrant is bound to the exact root key material the verifier # independently validated, within its validity window, and not revoked. ```