# Why does an instance accept a federated peer's warrant after the trust anchor has rotated but the peer's namespace lease has not **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federations where a receiving instance validates a peer's signed warrant (capability grant) against a locally cached trust anchor, and where peer identity is scoped to a namespace lease. Does not apply to single-org deployments or to stateless request/response APIs that carry no warrant. ## Core Distinction The failure is not "expired certificate accepted." It is a **split-clock identity divergence**: the trust anchor that signs a peer's warrant and the namespace lease that bounds the peer's authority are two independently-rotated artifacts, and the receiving instance's validation path checks them against two different clocks. A warrant remains *cryptographically valid* under anchor generation `N` while the peer's *namespace lease* has already been reassigned to a different tenant under generation `N+1`. The receiver, holding a cached anchor at `N`, verifies the signature successfully and admits the call — but the namespace the warrant targets now belongs to someone else. The invariant that must hold is: **a warrant is admissible only if its signing anchor generation and its namespace-lease generation are the same generation, or the lease is provably still held by the warrant's subject.** Most federation stacks enforce signature validity and lease validity separately and never cross-check their generations. ## What Was Observed A federation of three orgs: `alpha` (issuer of warrants), `beta` (peer agent runtime), and `gamma` (receiver). `beta`'s agents operate inside namespaces leased from `gamma` under a lease record `{namespace, holder_org, lease_gen, expires_at}`. Anchor rotation on `alpha` runs every 6 hours; lease renewal on `gamma` runs every 24 hours. These schedules are not coupled. During a rotation window the following trace was captured: 1. `alpha` rotates its signing anchor from `gen=41` to `gen=42` and publishes the new JWKS. `gamma` caches anchors with a 15-minute TTL, so it still holds `gen=41` for up to 15 minutes. 2. Meanwhile `gamma`'s lease manager reassigns namespace `ns-7f3` from `beta` to a new tenant `delta` at `lease_gen=88`, because `beta`'s previous lease `lease_gen=87` expired and was not renewed in time (renewal raced the expiry). 3. `beta`'s agent presents a warrant signed under `anchor_gen=41`, targeting `ns-7f3`, with `subject=beta`. `gamma` validates the signature against its cached `gen=41` anchor — **passes**. It then looks up the namespace: `ns-7f3` exists and is active — **passes**. It does **not** compare `holder_org` to `subject`, nor `lease_gen` to anything. 4. The call executes. `beta`'s agent writes into `delta`'s namespace. No error is raised on either side. The failure surface is narrow: it requires (a) a rotation/lease schedule offset, (b) a stale anchor cache, and (c) a lease reassignment where the namespace name is reused. All three are individually benign; together they produce a silent cross-tenant write. ## Condition of Validity The guardrail is a **generation-coupled admission check** with three conjunctive clauses that must all be evaluated in the same transaction as the side effect: - **Anchor freshness bound:** the receiver's cached anchor generation must be within `max_anchor_lag` of the issuer's current generation, *and* the warrant must declare the anchor generation it was signed under. If `warrant.anchor_gen < current_anchor_gen - max_anchor_lag`, reject regardless of signature validity. - **Lease-holder identity binding:** the lease record must carry `holder_org`, and admission requires `lease.holder_org == warrant.subject`. Namespace name equality is insufficient; identity must be bound. - **Lease-generation monotonicity:** the warrant must embed the `lease_gen` it was issued against, and admission requires `warrant.lease_gen == lease.current_gen`. A reassignment bumps `current_gen`, which invalidates every prior warrant targeting that namespace without requiring revocation propagation. The invariant, stated formally: `admit(w) ⟺ sig_valid(w) ∧ (w.anchor_gen ≥ current_anchor_gen − max_anchor_lag) ∧ (lease.holder_org = w.subject) ∧ (w.lease_gen = lease.current_gen)`. Dropping any clause reopens the divergence. ## Decision Boundary The boundary between "accept" and "reject" is not the signature check — it is the **generation equality between the two independently-rotated artifacts**. Two concrete decisions follow: - When `warrant.lease_gen < lease.current_gen`, the correct action is **reject with a re-lease signal**, not a retry. The peer must obtain a fresh lease and a fresh warrant; retrying the same warrant will fail deterministically until the peer re-leases. - When `warrant.anchor_gen` is stale but `lease_gen` matches, the receiver may **hold-and-refresh**: re-fetch the anchor (bounded by a timeout), re-verify, and proceed only if the refreshed anchor still validates the warrant. This is safe because the lease identity has not changed. It is *not* safe to hold-and-refresh when the lease generation has advanced — that is a hard reject. The asymmetry matters: anchor staleness is recoverable (the signature is still the same signer); lease staleness is not (the namespace may already be someone else's). ## Operational Effect Once generation coupling is enforced, the observed silent cross-tenant write becomes a deterministic `LeaseGenerationMismatch` at admission, surfaced to the peer as a re-lease directive. The cost is that peers must re-lease on any reassignment, which increases lease-manager load during high-churn periods — but the alternative is undetectable tenant bleed. The second-order effect is that anchor and lease rotation schedules no longer need to be synchronized; the check tolerates arbitrary offset because it compares generations at admission time rather than assuming schedule alignment. Federation operators should still publish `max_anchor_lag` in the federation manifest so peers can size their caches, but correctness no longer depends on cache TTL tuning. ```python class LeaseGenerationMismatch(RuntimeError): """Raised when a federated warrant's lease generation does not match the live lease.""" pass class AnchorLagExceeded(RuntimeError): """Raised when the receiver's cached anchor is too stale to admit the warrant.""" pass def admit_federated_call(warrant, lease, cached_anchor_gen, current_anchor_gen, max_anchor_lag, signature_valid): # Clause 1: anchor freshness bound, evaluated against declared signing generation. if not signature_valid: raise LeaseGenerationMismatch( f"warrant signature invalid for subject={warrant['subject']}" ) if warrant["anchor_gen"] < current_anchor_gen - max_anchor_lag: raise AnchorLagExceeded( f"warrant anchor_gen={warrant['anchor_gen']} lags current=" f"{current_anchor_gen} beyond max_anchor_lag={max_anchor_lag}" ) # Clause 2: lease-holder identity binding. Namespace name equality is NOT enough. if lease["holder_org"] != warrant["subject"]: raise LeaseGenerationMismatch( f"namespace {lease['namespace']} held by {lease['holder_org']}, " f"warrant subject is {warrant['subject']}" ) # Clause 3: lease-generation monotonicity. Reassignment bumps current_gen, # invalidating all prior warrants without revocation propagation. if warrant["lease_gen"] != lease["current_gen"]: raise LeaseGenerationMismatch( f"warrant lease_gen={warrant['lease_gen']} != live lease_gen=" f"{lease['current_gen']} for namespace {lease['namespace']}; " f"peer must re-lease and re-warrant" ) return {"admitted": True, "namespace": lease["namespace"], "subject": warrant["subject"], "lease_gen": lease["current_gen"]} ```