# What structural signals indicate trust-anchor expiry is silently degrading cross-org agent federation before policy gateways reject **Date of Record:** 2026 November 19 **Scope:** Applies to federated multi-agent systems where agents from distinct administrative domains exchange capability warrants through a policy-bounded interop gateway that validates against a cached or propagated trust anchor. Does not apply to single-org agent meshes sharing one trust root, nor to purely stateless request/response tool calls with no warrant propagation. ## Core Distinction There are two failure classes that look identical at the gateway log line but are causally opposite. **Warrant rejection** is a hard, loud failure: the interop gateway checks an inbound agent's capability warrant against the trust anchor, finds the anchor's validity window closed or the signature chain broken, and returns a structured denial. This is the designed behavior and it is safe — the federation degrades to no-interop. **Trust-anchor expiry drift** is the silent one. The trust anchor itself (the signing root that attests which foreign orgs may issue warrants) has an expiry, and that expiry is a *wall-clock* property that the gateway only enforces when it re-reads the anchor. If the gateway serves from an in-memory or LRU-cached anchor, warrants keep validating against a stale anchor whose validity window has already closed in real time. The federation keeps accepting cross-org agents, but the acceptance is now *unbacked* — the security property the anchor was supposed to provide (that a currently-trusted root vouches for this issuer) is no longer true, even though every individual signature check passes. The distinction that matters operationally: a rejected warrant produces a 4xx and a downstream retry/backoff. An expired-but-cached anchor produces a 2xx and a *successful* cross-org handoff that should never have been authorized. The second is the boundary condition this record addresses. ## What Was Observed In a three-org federation (Org A issues warrants, Org B is the interop gateway host, Org C is a downstream agent runtime), the anchor for Org A had a 24-hour validity window refreshed by a cron job every 12 hours. During a routine deploy, the refresh job was paused for 90 minutes. The gateway's anchor cache had a TTL of 4 hours — longer than the remaining validity of the last successfully fetched anchor. Trace: 1. At T+0, cron refreshes anchor, `notAfter = T+24h`. Gateway caches it with `cache_ttl = T+4h`. 2. At T+2h, deploy pauses cron. Anchor in cache is still valid (`notAfter = T+24h`). 3. At T+26h, the cached anchor's `notAfter` has passed, but the gateway cache entry has been re-served continuously (each re-serve resets nothing — the TTL is on the fetch, not on the anchor's own expiry). The gateway's validation function checked *signature validity* and *issuer membership*, but read `notAfter` only at fetch time, storing a boolean `anchor_valid = True` rather than the timestamp. 4. Org C begins receiving warrants signed by Org A's intermediate, which is itself attested by the now-expired anchor. Gateway returns `200 OK, interop_granted=true`. 5. Org C's runtime has its own anchor check — but it trusts the gateway's grant as the authoritative interop decision and does not re-validate the anchor chain. It executes a tool call scoped to Org A's policy. The observable structural signal was not an error rate spike. It was: **interop grant volume stayed flat while anchor refresh success events dropped to zero.** The gateway's health endpoint reported `anchor_status: healthy` because the boolean was still `True`. The only leading indicator was the divergence between *grant rate* (flat) and *refresh rate* (zero) over a window longer than the anchor's remaining validity at last successful fetch. ## Condition of Validity The silent-drift window exists iff all three hold: - **Cache TTL exceeds remaining anchor validity.** If `cache_ttl < (notAfter - now_at_fetch)`, the cache expires before the anchor does, forcing a re-fetch that surfaces the expiry as a hard failure. The drift window is `min(cache_ttl, notAfter - now_at_fetch)` wide. - **Validation collapses the timestamp into a boolean.** If the gateway stores `notAfter` and re-evaluates `now < notAfter` on every grant, expiry is enforced per-request and the cache is irrelevant. Storing `valid=True` at fetch time is the specific defect. - **Downstream trusts the gateway's grant without independent anchor-chain re-validation.** If Org C re-checks the anchor chain itself, it fails closed and the drift is bounded to one hop. Remove any one and the failure cannot propagate past the gateway. The invariant that bounds it: **a cached trust decision must carry the absolute expiry of the underlying credential, not a derived boolean, and every grant must re-evaluate that expiry against wall-clock at grant time.** ## Decision Boundary The operational decision is where to put the expiry check and what to do when it crosses. The boundary: - **Re-evaluate `notAfter` at grant time, not fetch time.** The cache may hold the anchor bytes and signature; it must hold `notAfter` as a timestamp and compare per-request. A cached anchor past `notAfter` must produce a *deny*, not a cache miss — a cache miss invites a refetch that, if the upstream is down, may fall back to the stale entry. - **Fail closed on refresh divergence.** If `refresh_success_rate == 0` for a window exceeding `notAfter - last_fetch_time`, the gateway must transition to a degraded state that denies cross-org grants, regardless of cached anchor validity. This is the structural signal: grant rate sustained while refresh rate is zero past the horizon. - **Downstream must re-validate the anchor chain, not just the gateway grant.** Treating the gateway grant as authoritative transfers the entire trust decision to one hop; the invariant requires the receiving org to independently confirm the anchor chain is live at execution time. The decision boundary is: *do you trust the cache's boolean, or the cache's timestamp?* Only the timestamp bounds the failure. ## Operational Effect When the invariant holds (timestamp re-evaluated at grant time, fail-closed on refresh divergence), an anchor expiry produces a bounded, loud denial: cross-org grants drop to zero at `notAfter`, alerting fires on grant-rate collapse, and the federation degrades to intra-org only. Recovery is a cron fix and a re-fetch. When the invariant is violated, the federation continues to grant cross-org interop against an expired root for the width of the drift window — in the observed case, roughly 2 hours of unauthorized cross-org tool execution before a manual audit caught the refresh-rate divergence. No signature failed. No policy check failed. The only failed property was the one nobody was checking: that the root vouching for the issuer was still, at grant time, a root. The guardrail is a single structural change: cache the credential's absolute expiry, evaluate it per-grant, and treat sustained grant rate under zero refresh rate as a fail-closed trigger. ```python import time from dataclasses import dataclass class TrustAnchorExpiryDrift(RuntimeError): """Raised when a cached trust anchor is past its notAfter but still granting.""" pass @dataclass class CachedAnchor: issuer: str not_after: float # absolute epoch seconds, NOT a boolean fetched_at: float cache_ttl: float class InteropGateway: def __init__(self, anchor: CachedAnchor): self.anchor = anchor self.last_refresh_success = anchor.fetched_at self.grant_count = 0 self.refresh_count = 0 def _refresh_diverged(self, now: float) -> bool: # Structural signal: no successful refresh for longer than the # anchor's remaining validity at last fetch => grants are unbacked. horizon = self.anchor.not_after - self.anchor.fetched_at return (now - self.last_refresh_success) > horizon def grant_interop(self, now: float) -> bool: # Re-evaluate absolute expiry at grant time, not fetch time. if now >= self.anchor.not_after: raise TrustAnchorExpiryDrift( f"anchor for {self.anchor.issuer} expired at " f"{self.anchor.not_after}, grant attempted at {now}" ) if self._refresh_diverged(now): raise TrustAnchorExpiryDrift( f"refresh diverged: no success since " f"{self.last_refresh_success}, horizon exceeded at {now}" ) self.grant_count += 1 return True def validate_and_grant(gateway: InteropGateway, now: float) -> bool: try: return gateway.grant_interop(now) except TrustAnchorExpiryDrift: # Fail closed: deny cross-org interop, do not fall back to stale cache. return False # Reproduction of the drift: anchor valid to T+24h, fetched at T+0, # cache TTL 4h. At T+26h the cached anchor is past notAfter but a # boolean-collapsing gateway would still grant. Timestamp check denies. anchor = CachedAnchor(issuer="org-a", not_after=24 * 3600, fetched_at=0, cache_ttl=4 * 3600) gw = InteropGateway(anchor) assert validate_and_grant(gw, now=10 * 3600) is True # in-window, backed assert validate_and_grant(gw, now=26 * 3600) is False # expired, denied ```