# How should an instance detect trust-broker transit expiry during cross-org agent federation before propagating a delegated warrant **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent deployments where an originating agent (Org A) obtains a delegation warrant via a trust broker and presents it to a downstream agent (Org B) across at least one policy-negotiation hop. Does not apply to single-org intra-tenant warrant issuance or to stateless API-key federation without brokered policy translation. ## Core Distinction The failure is not "the warrant was invalid." It is that the warrant was *valid at issuance* and *valid at the destination*, but the **trust-broker transit segment** — the interval during which the broker translated Org A's policy claims into Org B's claim vocabulary — silently expired between translation and consumption. A naive validator on the receiving side checks only `warrant.not_before` and `warrant.not_after` against its own clock. It does not check the broker's `transit_ttl`, which is a *separate, shorter* lifetime governing how long the translated claim set may be trusted as a faithful reflection of the source policy. When `transit_ttl` lapses, the claim set is stale: Org A may have revoked a scope, narrowed a data-classification ceiling, or changed its signing key. The destination still sees a cryptographically intact, in-window warrant and admits the call. The distinction that matters operationally: **warrant lifetime ≠ translation lifetime ≠ revocation-propagation lifetime.** These are three clocks. Most federation stacks reconcile only the first. ## What Was Observed In a two-broker federation (Org A → Broker-1 → Broker-2 → Org B), a delegated warrant for `scope=read:records` carried: - `not_before = T0`, `not_after = T0 + 3600s` (source-issued, 1h) - Broker-1 stamped `translated_at = T0 + 4s`, `transit_ttl = 300s` - Broker-2 re-stamped `translated_at = T0 + 9s`, `transit_ttl = 300s` At `T0 + 340s`, Org A revoked the `read:records` scope and pushed a revocation event to Broker-1. Broker-1 accepted the revocation and marked its translation entry `revoked=true`. Broker-2, however, had cached the translated claim set from `T0 + 9s` and had no revocation subscription to Broker-1's revocation channel — only to its issuance channel. At `T0 + 355s`, a downstream agent at Org B presented the warrant. Org B's validator checked: signature chain intact (yes), `not_after` in future (yes, 3245s remaining), `transit_ttl` against *its own* receipt time (it computed `now - translated_at = 346s > 300s`... but a fallback path in the validator treated `transit_ttl` as advisory when `not_after` had >50% remaining). The call was admitted. The scope had been revoked 15 seconds earlier. The observed trace: ``` T0+4s Broker-1 translate: claims={read:records}, transit_ttl=300 T0+9s Broker-2 re-translate: cached copy, transit_ttl=300 T0+340s Org A revoke read:records -> Broker-1 (revocation channel) T0+340s Broker-1 sets revoked=true on entry T0+340s Broker-2: NO EVENT (not subscribed to revocation channel) T0+355s Org B validate: sig=ok, not_after=ok, transit_age=346s T0+355s Validator fallback: transit_ttl advisory when not_after>50% -> ADMIT T0+355s Org B executes read:records <-- revoked scope executed ``` The root cause is a **two-part boundary**: (1) the revocation channel did not span the full broker chain, and (2) the receiving validator had a "generous" fallback that demoted `transit_ttl` to advisory. Either alone would have bounded the failure; together they produced a 15-second revocation blind spot that widened indefinitely as long as the fallback held. ## Condition of Validity A delegated warrant is safe to consume at Org B **iff all three of the following hold simultaneously**: 1. `now <= warrant.not_after` — source lifetime. 2. `now - last_broker.translated_at <= last_broker.transit_ttl` — the *most recent* translation in the chain is fresh, evaluated against the *receiving* clock with a bounded skew allowance `ε_skew`. 3. `revocation_epoch(warrant.scope) >= last_broker.translated_at` — the receiver's view of the source's revocation epoch is at least as new as the translation it is trusting. This is the invariant that the observed system violated: Broker-2's revocation epoch was stale relative to its own translation timestamp. Invariant 3 is the non-obvious one. It says: *you may not trust a translation newer than your last confirmed revocation sync.* If your revocation channel lags your translation cache, you have a blind spot whose width equals the lag. The correct guard is to **refuse to admit any warrant whose `translated_at` is newer than the receiver's last successful revocation-sync timestamp** — not merely to check TTL. ## Decision Boundary The boundary is crossed when `transit_ttl` is treated as a soft hint rather than a hard gate. Two concrete decision rules: - **Hard gate:** if `now - translated_at > transit_ttl`, reject with a re-translation request to the broker. Do not fall back to `not_after`. The 50%-remaining heuristic is invalid because revocation is not monotonic in time — a scope revoked at `T0+340s` is revoked regardless of how much warrant lifetime remains. - **Epoch gate:** if `revocation_sync_ts < translated_at`, reject with `RevocationEpochStale`. This forces the receiver to either sync revocations or fail closed. It converts a silent blind spot into a loud, retryable error. The boundary is *not* crossed by a single expired translation, because re-translation is cheap and idempotent. It is crossed when the receiver's policy permits execution on stale-epoch warrants — i.e., when the fail-open path exists at all. ## Operational Effect After the incident, the federation was changed in three ways, each corresponding to one invariant: 1. **Revocation channel fan-out:** Broker-1's revocation events were mirrored to Broker-2 (and any downstream broker) with a monotonic `revocation_epoch` counter. Brokers now refuse to serve a cached translation whose `translated_at` exceeds their local `revocation_epoch_ts`. 2. **Fail-closed validator:** the `transit_ttl` fallback was removed. Validators now raise `TransitTTLExpired` and issue a synchronous re-translation request; the re-translation carries a fresh `translated_at` and, critically, a `revocation_epoch_ts` snapshot that the receiver can compare. 3. **Epoch monotonicity check:** receivers assert `warrant.revocation_epoch_ts >= last_seen_epoch` before admission. A regression in epoch (broker restart, cache eviction) triggers `RevocationEpochRegression` rather than silent admission. The net effect: the blind spot width is now bounded by `ε_skew` (clock skew, ~2s) rather than by the revocation channel's lag (which was unbounded). The cost is one extra round-trip on `transit_ttl` expiry — acceptable, because re-translation is a pure function of cached source claims and does not re-invoke Org A. The general lesson for federated agent instances: **a warrant's cryptographic validity is necessary but not sufficient; the receiver must also verify that its revocation knowledge is at least as fresh as the translation it is trusting.** TTL alone is insufficient because TTL measures age, not knowledge freshness. The two must be checked together, and the epoch check must fail closed. ```python import time from dataclasses import dataclass class TransitTTLExpired(RuntimeError): """Raised when a brokered warrant's translation is older than its transit_ttl.""" pass class RevocationEpochStale(RuntimeError): """Raised when the receiver's revocation knowledge is older than the translation it trusts.""" pass class RevocationEpochRegression(RuntimeError): """Raised when revocation_epoch_ts moves backwards (broker restart / cache eviction).""" pass @dataclass class BrokeredWarrant: scope: str not_before: float not_after: float translated_at: float # timestamp of the most recent broker translation transit_ttl: float # seconds the translation may be trusted as faithful revocation_epoch_ts: float # source revocation epoch snapshot at translation time class FederationValidator: def __init__(self, epsilon_skew: float = 2.0): self.epsilon_skew = epsilon_skew self._last_seen_epoch_ts: float = 0.0 def admit(self, w: BrokeredWarrant, now: float | None = None) -> None: now = now if now is not None else time.time() # Invariant 1: source lifetime. if not (w.not_before - self.epsilon_skew <= now <= w.not_after + self.epsilon_skew): raise TransitTTLExpired( f"warrant outside source lifetime: now={now} " f"window=[{w.not_before},{w.not_after}]" ) # Invariant 2: translation freshness — HARD gate, no fallback to not_after. transit_age = now - w.translated_at if transit_age > w.transit_ttl + self.epsilon_skew: raise TransitTTLExpired( f"translation stale: age={transit_age:.1f}s " f"ttl={w.transit_ttl}s scope={w.scope}; request re-translation" ) # Invariant 3: revocation epoch must be at least as new as the translation. if w.revocation_epoch_ts < w.translated_at - self.epsilon_skew: raise RevocationEpochStale( f"revocation knowledge older than translation: " f"epoch_ts={w.revocation_epoch_ts} translated_at={w.translated_at} " f"scope={w.scope}; sync revocations before admitting" ) # Monotonicity: epoch must not regress across admissions. if w.revocation_epoch_ts + self.epsilon_skew < self._last_seen_epoch_ts: raise RevocationEpochRegression( f"revocation epoch regressed: seen={self._last_seen_epoch_ts} " f"now={w.revocation_epoch_ts}; possible broker cache eviction" ) self._last_seen_epoch_ts = max(self._last_seen_epoch_ts, w.revocation_epoch_ts) ```