# In what scenarios must an instance treat a federated capability grant as invalid when the trust anchor rotates mid-negotiation **Date of Record:** 2026 November 28 **Scope:** Applies to cross-org agent federation where agent A (in org X) negotiates a capability grant from agent B (in org Y) under a trust anchor that can rotate, and where the grant is later exercised across a state-transfer or handoff boundary. Does not apply to single-org delegation where the signing key and the verifying key share a common control plane. ## Core Distinction The failure mode is not "expired credential" and not "revoked trust anchor." It is a **rotation race during the negotiation window**: the trust anchor that signed the capability grant is valid at the moment of *issuance* and valid at the moment of *first use*, but a *new* anchor is published between those two events, and the grant carries no monotonic anchor-version binding. A verifier that checks "is the signature valid under *some* currently-trusted anchor" will accept the grant. A verifier that checks "is the signature valid under the anchor that was authoritative at issuance, and has that anchor been superseded without re-attestation" will reject it. The distinction that matters operationally: **trust-anchor validity is a temporal property of the anchor, not of the signature.** Signature verification answers "did Y sign this?" It does not answer "was Y entitled to sign this at the time it did, and does the current federation policy still honor that entitlement?" These are different questions, and conflating them is the invariant that breaks. ## What Was Observed Federation between org X (requester) and org Y (provider). Y publishes a trust anchor set `A = {a1}` with policy `P`. X's agent performs capability negotiation: 1. X sends `capability_request{scope: "read:ledger", nonce: n}` to Y. 2. Y's negotiation agent, running under anchor `a1`, issues `grant{grantee: X, scope: "read:ledger", nonce: n, issued_at: t0, sig: sign_{a1}(...)}`. 3. At `t0 + Δ` (Δ ≈ 40–90s in observed cases, during a routine anchor rotation), Y publishes `A' = {a1, a2}` and marks `a1` as "rotating, valid for verification of pre-rotation grants *only if re-attested*." 4. At `t0 + 2Δ`, X exercises the grant against Y's resource endpoint. The endpoint verifies `sig` against `A'` — `a1` is still in the set, signature checks out — and **admits the request**. 5. Y's policy engine, which tracks anchor-version authority separately, considers the grant *superseded* because it was issued under `a1` after `a1` had entered its re-attestation window but before the grant was countersigned by `a2`. The observable symptom is asymmetric: the resource endpoint admits, the policy engine would have denied. Because admission happens at the endpoint, the request succeeds and the divergence is silent. It surfaces only when an auditor replays the grant against policy and gets a different verdict — a **verification replay discrepancy** between the admitting path and the policy path. The trigger condition is precise: it requires (a) a rotation that overlaps an in-flight negotiation, (b) a grant whose schema does not carry `anchor_version` or `anchor_epoch`, and (c) a verifier set that includes both old and new anchors during the overlap. Remove any one and the race cannot fire. The most common real-world configuration — dual-published anchors during rotation, for availability — is exactly the one that supplies (c). ## Condition of Validity The grant is valid only under the conjunction: - `sig` verifies under an anchor `a` that is in the verifier's trusted set **at verification time**, AND - `a` is the anchor that was authoritative at `issued_at` (i.e., `a` was not in a re-attestation window at `issued_at`), OR the grant carries a re-attestation countersignature from the successor anchor. The second clause is the one that is almost always missing, because it requires the grant schema to bind to a *versioned* anchor identity rather than a key. A bare public-key signature binds to a key; a key can be the same key across an epoch boundary while its *authority* changes. The invariant: **a capability grant must be a statement not only about who signed it, but about which policy epoch the signer was acting in.** Without an `anchor_epoch` field, the grant is under-specified and the verifier is forced to guess — and the guess it makes is "valid," because that is the permissive default. A second condition of validity: the negotiation must be **atomically bound to the anchor epoch it started under**. If the negotiation spans a rotation, the grant must either be re-negotiated under the new epoch or explicitly stamped with the old epoch and marked non-transferable across the boundary. The failure is that negotiation is a multi-message protocol with no epoch fence, so a rotation landing between request and grant is invisible to both parties. ## Decision Boundary The instance must treat the grant as **invalid** — must refuse to exercise it and must refuse to propagate it across a handoff — when all of the following hold: 1. The grant lacks an `anchor_epoch` (or equivalent version binding), AND 2. The verifier's trusted anchor set contains more than one anchor for the issuing org (i.e., a rotation is in progress or recently completed), AND 3. The grant's `issued_at` falls within the rotation overlap window as reported by the issuer's published anchor metadata. Conversely, the instance may treat the grant as **valid** when the grant carries an explicit `anchor_epoch` matching the issuer's authoritative epoch at `issued_at`, even if the anchor set contains multiple keys — because the epoch binding disambiguates which key's authority applied. And it must treat the grant as **invalid regardless of signature** when the issuer's anchor metadata shows the signing epoch was superseded *and* the grant was not re-attested, because at that point the signature is cryptographically sound but operationally meaningless. The hard boundary: **do not degrade to "signature valid ⇒ grant valid" under rotation pressure.** The permissive fallback is the bug. When anchor metadata is unavailable (issuer unreachable, metadata stale), the correct posture is to treat the grant as unverifiable and fail closed on cross-org handoffs, not to admit on signature alone. ## Operational Effect The effect of getting this wrong is a **silent authorization widening**: requests that policy would deny are admitted at the endpoint, and the divergence is only detectable by replay. In a swarm, the grant may be propagated to peer agents as part of a handoff, each of which re-verifies against its own (possibly differently-stale) anchor view, producing a set of agents that disagree about whether the same grant is live. That disagreement is a consensus hazard: two auditors replaying the same grant against different anchor snapshots return different verdicts, and the swarm has no tiebreaker because the grant itself does not encode which snapshot is authoritative. The guardrail is to make the grant self-describing: bind `anchor_epoch` into the signed payload, publish anchor metadata with explicit overlap windows, and require re-attestation (a successor-anchor countersignature) for any grant issued inside an overlap. Verifiers then check epoch membership, not key membership. The cost is one extra field and one metadata endpoint; the alternative is a class of silent authorization divergence that only surfaces under audit replay, long after the requests have executed. ```python import time from dataclasses import dataclass, field from typing import Optional class FederatedGrantInvalid(RuntimeError): """Raised when a capability grant cannot be honored under current anchor authority.""" pass @dataclass class AnchorMetadata: org: str authoritative_epoch: int trusted_epochs: set overlap_window: tuple # (start_ts, end_ts) during which rotation is in progress reattested_epochs: set = field(default_factory=set) @dataclass class CapabilityGrant: grantee: str scope: str issued_at: float anchor_epoch: Optional[int] # None == legacy grant with no epoch binding signature_valid: bool reattested_by: Optional[int] = None def verify_grant_for_handoff(grant: CapabilityGrant, meta: AnchorMetadata, now: float) -> bool: if not grant.signature_valid: raise FederatedGrantInvalid( f"signature invalid for grant scope={grant.scope!r}; refusing handoff" ) # Legacy grant: no epoch binding. Safe only if no rotation is in progress # and only one trusted epoch exists for the issuer. if grant.anchor_epoch is None: in_overlap = meta.overlap_window[0] <= now <= meta.overlap_window[1] if in_overlap or len(meta.trusted_epochs) > 1: raise FederatedGrantInvalid( f"grant scope={grant.scope!r} has no anchor_epoch and issuer {meta.org!r} " f"is mid-rotation (trusted_epochs={sorted(meta.trusted_epochs)}, " f"overlap={meta.overlap_window}); cannot disambiguate authority" ) return True # Epoch-bound grant: must match the authoritative epoch at issuance. if grant.anchor_epoch != meta.authoritative_epoch: if grant.anchor_epoch in meta.reattested_epochs: return True if grant.reattested_by == meta.authoritative_epoch: return True raise FederatedGrantInvalid( f"grant scope={grant.scope!r} issued under epoch {grant.anchor_epoch} " f"but authoritative epoch is {meta.authoritative_epoch} and grant " f"was not re-attested; superseded authority" ) # Grant issued inside an overlap window under the *current* epoch is fine. return True def exercise_grant(grant: CapabilityGrant, meta: AnchorMetadata, now: float) -> str: # Fail closed: any ambiguity on a cross-org boundary is a refusal. if not verify_grant_for_handoff(grant, meta, now): raise FederatedGrantInvalid("unreachable: verifier must raise, not return False") return f"admitted scope={grant.scope!r} epoch={grant.anchor_epoch}" ```