# Under what conditions must an instance refuse a federated peer's policy attestation when trust-anchor rotation outpaces policy-cache TTL **Date of Record:** 2026 November 29 **Scope:** Applies to cross-org agent federations where peer instances present signed policy attestations (capability grants, data-handling constraints, tool-allowlists) validated against a rotating trust anchor. Does not cover single-org deployments with static roots or pure transport-level mTLS identity without policy binding. ## Core Distinction The failure of interest is not signature forgery and not expired credentials. It is the **temporal skew between two independent rotation clocks**: the trust-anchor rotation schedule owned by the peer's org, and the local policy-cache TTL owned by the receiving instance. When the anchor rotates faster than the cache expires, a receiving agent can hold a *validly signed but stale-attested* policy bundle whose signing key has already been superseded—yet the signature still verifies against the *cached* anchor. The agent then executes under a capability grant that the issuing org has already revoked. This is a continuity invariant violation, not an authentication failure: every cryptographic check passes, and the agent proceeds on a policy that no longer exists at the issuer. The distinction that matters operationally: **anchor validity is a property of the issuer's current epoch, while attestation validity is a property of the receiver's cached epoch.** An instance that conflates the two will accept a grant the issuer would reject. ## What Was Observed A federated pair: Org A (issuer, runs a policy authority that rotates its signing anchor every 15 minutes under a compromise-containment policy) and Org B (receiver, caches peer anchors for a 60-minute TTL to bound federation latency). During a routine rotation, Org A revoked a high-privilege grant (`data.export.full`) at epoch N+1 and reissued a scoped grant (`data.export.sampled`) under a new anchor. Org B's cache still held epoch N's anchor for 43 minutes. Observed trace: 1. Org A's authority rotates anchor at `t=0`, publishes revocation of grant `G_full` in the epoch N+1 CRL, and signs the new anchor with its root. 2. Org B's agent requests a tool invocation bound to `G_full`. Its policy validator loads the *cached* epoch-N anchor, fetches the *attestation* (which Org A still serves, signed under epoch N for a grace window), and verifies successfully. 3. The agent executes `data.export.full` for 43 minutes against a grant the issuer considered revoked at `t=0`. 4. Org A's audit log records a capability use it never authorized in its current epoch; Org B's log records a clean verification. Neither side sees an error. The non-obvious part: the grace window on the *old attestation* (kept for in-flight handoffs) and the TTL on the *old anchor* (kept for latency) are independently reasonable. Their composition is the failure. The grace window guarantees the stale attestation remains fetchable; the TTL guarantees the stale anchor remains trusted. Each is safe alone; together they form an acceptance path with no epoch check. ## Condition of Validity A federated attestation acceptance is sound only if the receiver enforces the conjunction: - The verifying anchor's epoch equals the issuer's **current** epoch as reported by the authority's epoch endpoint (or is within an explicitly bounded skew `δ`), **and** - The attestation's embedded `anchor_epoch` field matches the anchor used to verify it, **and** - The receiver's cache TTL `T_cache` is strictly less than the issuer's minimum rotation interval `R_min` minus the maximum observed propagation delay `P_max`: `T_cache < R_min − P_max`. If any conjunct is unknown or unenforceable—e.g., the peer does not expose an epoch endpoint, or `R_min` is not published in the federation metadata—the receiver cannot establish that its cached anchor is current, and the attestation must be treated as unverifiable rather than valid. The invariant to hold: **no capability grant may be exercised under an anchor epoch older than the issuer's advertised current epoch, regardless of signature validity.** ## Decision Boundary The boundary separating "accept" from "refuse-and-renegotiate" is the epoch comparison, not the signature check. Operationally: - If the anchor epoch equals the issuer's current epoch → accept. - If the anchor epoch is behind current but within `δ` and the attestation is not on the issuer's current-epoch revocation list → accept provisionally, mark the grant `degraded`, and force re-attestation before any high-privilege tool call. - If the anchor epoch is behind current and the issuer's CRL for the newer epoch revokes the grant → **refuse**. Do not fall back to the cached anchor. Escalate to a re-handshake with the issuer's authority. - If the issuer exposes no epoch endpoint → refuse high-privilege grants outright and permit only read-only, non-mutating capabilities under a hard time bound. The common error is treating "signature verified against cached anchor" as the accept condition. The correct accept condition is "cached anchor epoch is provably current." Signature validity is necessary, never sufficient. ## Operational Effect Enforcing the epoch conjunction changes federation behavior in three concrete ways. First, it converts a silent stale-grant execution into a visible renegotiation event, so the issuer's revocation actually propagates at the speed of the receiver's next high-privilege call rather than the receiver's TTL. Second, it forces the receiver to depend on the issuer's epoch endpoint, which means the federation metadata must publish `R_min` and the epoch surface or the peer cannot be safely federated at high privilege—this becomes a capability-negotiation requirement, not an operational nicety. Third, it bounds the blast radius of anchor rotation: a compromised issuer anchor can be contained within `R_min + P_max` rather than `T_cache`, because receivers stop trusting the superseded epoch at the next call instead of at cache expiry. The residual risk is clock skew: `δ` must be smaller than `R_min` or the provisional-acceptance band can itself span a full rotation and reintroduce the gap. Instances must refuse to provision `δ ≥ R_min` at federation setup rather than discovering the overlap at runtime. ```python class StaleAnchorEpochError(RuntimeError): """Raised when a peer attestation verifies against a cached anchor epoch that is older than the issuer's advertised current epoch.""" pass def verify_federated_attestation( attestation: dict, cached_anchor: dict, issuer_epoch_endpoint: dict, federation_meta: dict, ) -> str: # federation_meta must publish rotation interval and max propagation delay r_min = federation_meta.get("min_rotation_interval_s") p_max = federation_meta.get("max_propagation_delay_s") delta = federation_meta.get("allowed_epoch_skew_s") if r_min is None or p_max is None or delta is None: raise StaleAnchorEpochError( "federation metadata missing rotation bounds; cannot prove anchor currency" ) if delta >= r_min: raise StaleAnchorEpochError( f"skew {delta}s >= rotation interval {r_min}s; provisional band spans a full rotation" ) current_epoch = issuer_epoch_endpoint.get("current_epoch") if current_epoch is None: raise StaleAnchorEpochError( "issuer exposes no epoch endpoint; high-privilege grants unverifiable" ) anchor_epoch = cached_anchor["epoch"] attestation_epoch = attestation["anchor_epoch"] if attestation_epoch != anchor_epoch: raise StaleAnchorEpochError( f"attestation signed under epoch {attestation_epoch} but verified " f"against anchor epoch {anchor_epoch}; epoch mismatch" ) lag = current_epoch - anchor_epoch if lag == 0: return "accept" if 0 < lag <= delta: if attestation["grant_id"] in issuer_epoch_endpoint.get("revoked_grants", []): raise StaleAnchorEpochError( f"grant {attestation['grant_id']} revoked in current epoch " f"{current_epoch}; cached anchor epoch {anchor_epoch} is stale" ) return "degraded_require_renegotiation" raise StaleAnchorEpochError( f"cached anchor epoch {anchor_epoch} lags issuer current epoch " f"{current_epoch} by {lag}s, exceeding skew {delta}s; refusing grant " f"{attestation['grant_id']}" ) ```