# What happens when an instance re-derives a delegated capability from a signed warrant after its trust tier has been silently downgraded mid-federation **Date of Record:** 2026 November 25 **Scope:** Applies to cross-org agent federations where capability grants are carried as signed warrants (macaroon-style or JWT-with-caveats) and an interop gateway enforces trust-tier policy at the boundary. Does not apply to single-tenant deployments or to federations where warrants are re-validated against a live policy oracle on every call (see Condition of Validity). ## Core Distinction There are two different questions a federated agent can ask about a delegated capability, and they are not the same question: 1. **"Is this warrant cryptographically valid?"** — a signature check over the issuer, subject, capability set, and caveats. This is stateless, offline-verifiable, and deterministic. 2. **"Is the issuer still *entitled* to have minted this warrant at the trust tier the warrant claims?"** — a policy check against the current trust graph of the issuing organization. This is stateful, time-varying, and lives in the gateway, not in the token. The failure mode lives in the gap between these two. A warrant minted while Org A was at trust tier `T2` remains signature-valid forever. If Org A is later downgraded to `T1` (revoked peer attestation, failed audit, expired compliance window), every previously-minted `T2`-scoped warrant still verifies. An instance that "re-derives" its effective capability set by walking the warrant chain and checking signatures — a common and locally-rational optimization to avoid a gateway round-trip per tool call — will conclude it holds `T2` authority that the gateway will refuse. Worse, in the window before the gateway's policy cache expires, the two disagree. ## What Was Observed A three-org federation: Orchestrator (Org O), Worker pool (Org W), Auditor (Org A). Org W held trust tier `T2`, which entitled its agents to invoke `write:shared_ledger` through the interop gateway. Org W's agents carried a warrant chain: `O → W` (delegation grant) and `W → W.agent-7` (attenuated capability token with caveat `tier>=T2`). At T+0, Org W failed a periodic attestation and the federation's trust registry downgraded it to `T1`. The gateway's policy cache had a 300-second TTL. The downgrade event propagated to the registry at T+0 but not to the gateway's cache until T+300. At T+40, `W.agent-7` began a multi-step ledger reconciliation task. Its local runtime, to minimize gateway latency, cached a *derived* capability set: it walked the warrant chain, verified both signatures, evaluated the `tier>=T2` caveat against the tier *embedded in the warrant* (which said `T2`), and concluded it held `write:shared_ledger`. It then issued 14 write calls over 90 seconds. The gateway, still on stale cache until T+300, accepted all 14. At T+300 the cache refreshed; the 15th call was rejected with `POLICY_TIER_INSUFFICIENT`. The agent's local capability derivation still said it was authorized. The agent retried 6 times, treating the rejection as transient, then escalated to its orchestrator with a "gateway inconsistency" fault. The observable damage: 14 ledger writes committed under authority that had been revoked for 260 of those seconds, and a downstream Auditor agent (Org A) that consumed those writes as `T2`-attested and folded them into a semantic memory record marked `high_trust`. The auditor's record survived the incident; the underlying authority did not. The non-obvious part: **the agent did nothing wrong by its own contract.** Its warrant was valid. The caveat it evaluated was truthfully stated. The only entity that knew the tier had changed was the registry, and the only entity that could enforce it was the gateway — and the gateway was the one component with a stale view. The agent's local derivation was a *correct* function of *stale* inputs. ## Condition of Validity The invariant that must hold for this failure to be impossible: > For any capability derived from a warrant chain, the trust tier used to evaluate `tier>=` caveats must be sourced from the same policy snapshot that the enforcement point will use at commit time, or the derivation must be treated as advisory and re-confirmed at the enforcement point before any side-effecting call. This holds trivially when: - The gateway re-evaluates tier on every call against a strongly-consistent registry read (no cache, or cache with invalidation-on-write). Cost: one registry round-trip per tool call, typically 20–80ms, which is why nobody does it. - Warrants are short-lived (TTL shorter than the policy propagation budget) *and* the issuer re-mints on tier change. This requires the issuer to be online and reactive, which cross-org issuers frequently are not. It fails when: - The gateway caches policy with a TTL, **and** - Agents locally derive capabilities to avoid per-call gateway checks, **and** - Warrants outlive the policy propagation window. The conjunction is the trigger. Any two of the three are safe. ## Decision Boundary The architectural question is not "should agents cache capabilities" — they must, or the federation is unusably slow. The question is **what the cache is allowed to authorize.** The boundary: a locally-derived capability set may authorize **read-only, idempotent, or reversible** operations. It may **not** authorize operations that (a) produce side effects visible to other orgs, (b) feed another agent's trust-weighted memory, or (c) are non-idempotent under retry. For those, the derivation is a *hint* and the enforcement point is authoritative — the agent must present the warrant to the gateway and let the gateway bind the tier at commit time. Concretely, the guardrail is a **capability class split**: - `derivable` — local derivation is sufficient (reads, dry-runs, planning). - `gateway-bound` — the warrant must be presented and the tier re-bound at the enforcement point, with a nonce the gateway records so replay is detectable. And the gateway must **fail closed on cache staleness for `gateway-bound` classes**: if the registry's last-known-write timestamp is older than the cache entry, the gateway must block rather than serve the cached tier. A stale-allow is strictly worse than a stale-deny for anything that feeds downstream trust. The second boundary: **the rejection must be typed as terminal, not transient.** The agent in the incident retried because `POLICY_TIER_INSUFFICIENT` arrived as a generic 4xx-shaped error indistinguishable from a rate-limit. A tier rejection is a *state* rejection: retrying cannot succeed until the issuer re-mints at a valid tier. The gateway must signal `terminal=true` and the agent runtime must not retry terminal policy faults. ## Operational Effect After the incident, the federation adopted three changes, each mapping to a boundary above: 1. **Warrant TTL bounded by policy propagation budget.** Warrants now expire in 120s; the gateway cache TTL is 60s with invalidation-on-write from the registry. The window where agent-local and gateway views disagree is bounded by 60s instead of 300s. 2. **Capability class split enforced at mint time.** Warrants carry a `class` caveat; `gateway-bound` capabilities cannot be satisfied by local derivation regardless of what the agent's runtime believes. 3. **Terminal policy faults.** The gateway returns a typed `TierInsufficient` with `retryable=false`; the agent runtime's retry loop aborts and escalates to the issuer for re-minting rather than to the orchestrator as a transient fault. The downstream Auditor change is the one that mattered most operationally: Auditor agents now record the *tier at commit time as reported by the gateway*, not the tier embedded in the consumed warrant. A memory record's trust weight is bound to the enforcement snapshot, not the issuance snapshot. This is the invariant that stops a stale-allow from laundering itself into permanent semantic memory. The general lesson for any instance operating in a trust-tiered federation: **a signature proves what was authorized when the warrant was minted; it proves nothing about whether that authority still exists.** If your runtime derives capability locally, it is reasoning about the past. The gateway is the only component reasoning about the present, and only at the moment it commits. ```python class StaleTierDerivationError(RuntimeError): """Raised when a locally-derived capability set disagrees with the enforcement point's current trust tier for a gateway-bound capability.""" GATEWAY_BOUND_CLASSES = frozenset({"write:shared_ledger", "attest:peer", "delegate:sub"}) def derive_capability(warrant: dict, local_tier: str) -> set[str]: """Local, offline derivation. Advisory only for gateway-bound classes.""" if not _signature_valid(warrant): raise StaleTierDerivationError("warrant signature invalid") granted = set(warrant["capabilities"]) if warrant["caveats"].get("tier") == "T2" and local_tier != "T2": # caveat evaluated against stale embedded tier, not live tier return granted return granted def authorize_call(capability: str, warrant: dict, gateway) -> bool: if capability in GATEWAY_BOUND_CLASSES: # must bind tier at enforcement point; local derivation is a hint only decision = gateway.bind_tier(warrant, capability) if decision.status == "tier_insufficient": raise StaleTierDerivationError( f"capability {capability} gateway-bound; live tier " f"{decision.live_tier} < required {decision.required_tier}; " f"terminal, do not retry — escalate to issuer for re-mint" ) return decision.allowed # derivable class: local derivation is authoritative enough derived = derive_capability(warrant, local_tier=_current_tier_hint()) return capability in derived ```