# Where must an instance re-validate a capability warrant after cross-org policy renegotiation, and why the first-use cache is the failure point **Date of Record:** 2026 November 29 **Scope:** Applies to federated agent systems where agent A (org X) requests a capability from agent B (org Y) under a negotiated policy envelope (WARRANT), and A caches the granted capability for reuse across a task. Does not apply to single-org MCP servers with a static manifest, nor to stateless request/response tool calls that renegotiate on every invocation. ## Core Distinction There are two distinct moments at which a cross-org capability can become invalid: **at warrant issuance** (the negotiation handshake) and **at warrant consumption** (the first and subsequent tool invocations that rely on the grant). Most federation designs treat these as one event and validate the warrant once, at issuance, storing a boolean `granted: true` plus a capability token in the agent's working memory. The failure mode lives in the gap: the policy envelope under which the warrant was issued is a *live* object owned by org Y, subject to renegotiation, quota revision, data-classification upgrades, and revocation. The consuming instance holds a *snapshot* of that envelope, not the envelope itself. When Y renegotiates (e.g., tightens the data-classification ceiling on a shared capability after an internal audit), X's cached warrant remains structurally valid — signature intact, not expired, capability string matches — but is now *semantically stale*: it authorizes an action the issuer would no longer permit. The non-obvious invariant: **warrant validity is a function of the issuer's current policy state, not the state at issuance.** A cached warrant is a proof about the past. Consumption requires a proof about the present. The two diverge silently because the signature covers the grant, not the policy that motivated it. ## What Was Observed In a two-org federation (X = research agent swarm, Y = regulated data custodian), agent A negotiated a `read:corpus` capability with a policy envelope permitting `classification <= internal`. The handshake returned a signed warrant `W1` embedding `policy_hash = H(policy_v3)` and a TTL of 3600s. A cached `W1` in its episodic memory after the first successful call and reused it for 41 subsequent invocations over 22 minutes. At T+14min, org Y's policy engine promoted a subset of the corpus to `restricted` classification and bumped to `policy_v4`. Y's enforcement point began rejecting `read:corpus` calls whose warrant referenced `policy_v3` for any document in the promoted subset. But Y's rejection was *per-document*, not per-warrant: the enforcement point returned `403 classification_insufficient` on the 9 affected documents and `200 OK` on the other 32. Agent A's tool-call wrapper treated any non-403 response as "warrant still valid" and, critically, treated the 403s as *document-level* errors — retrying them with backoff under the same `W1`, never re-negotiating. The observable signature was subtle: a 27% error rate confined to a document subset, with the agent's reasoning loop interpreting the failures as transient (retryable) rather than as evidence of a stale warrant. The agent's planner, seeing partial success, concluded the capability was healthy and continued. Eleven minutes of retry churn produced 340 wasted invocations before the task's token budget collapsed. The warrant was never re-validated because no single call failed hard enough to trip the "renegotiate" branch. ## Condition of Validity The stale-warrant failure requires all of the following to co-occur: 1. **Partial enforcement granularity.** The issuer enforces policy at a finer grain (per-document, per-field, per-record) than the warrant's scope (per-capability). This produces mixed 200/403 responses under a single warrant, which masks the warrant-level invalidity as object-level errors. 2. **First-use caching.** The consumer stores the warrant after a successful call and does not re-validate against the issuer's policy state before reuse. 3. **Soft-failure semantics.** The issuer returns a per-object authorization error rather than a warrant-level revocation signal (`401 warrant_stale` / `409 policy_changed`). Without a distinguishable signal, the consumer's retry logic cannot separate "this object is forbidden" from "this warrant is dead." 4. **No policy-version pinning in the response.** The 200 responses do not echo the current `policy_hash`, so the consumer has no way to detect that the issuer's policy advanced mid-task. If any one is absent, the failure does not manifest. A hard warrant-level revocation signal (3) alone would have caught it. A response that echoed `policy_hash` (4) would have let A detect the drift on the next 200. The dangerous configuration is the one where enforcement is *more granular than the warrant*, because that is exactly the configuration regulators push for. ## Decision Boundary The boundary is between **cache-and-reuse** and **revalidate-on-policy-epoch-change**. The correct rule is not "revalidate every call" (prohibitively expensive across orgs; each validation is a cross-org round trip with its own latency and cost) and not "validate once" (the failure above). It is: > Revalidate the warrant when the issuer's policy epoch advances, where the epoch is observable to the consumer. This requires the issuer to expose a cheap, cacheable **policy epoch** — a monotonic version token — that the consumer can poll or receive via a lightweight heartbeat, distinct from the warrant itself. The consumer's cache key becomes `(capability, issuer_policy_epoch)`, not `(capability)`. On epoch change, all cached warrants from that issuer are marked *provisionally stale* and the next consumption triggers renegotiation. The consumer must also treat a mixed 200/403 pattern under a single warrant as a **warrant-health signal**, not as independent object errors: if the 403 rate for a warrant exceeds a threshold within a window, escalate to revalidation regardless of epoch signal. The complementary guardrail on the issuer side: enforcement points must return a warrant-level error code (`409 policy_epoch_advanced`, carrying the new epoch) whenever a request's warrant references an epoch older than current, *even if the specific object would still be permitted*. This makes staleness observable at the first affected call rather than only on the forbidden subset. ## Operational Effect Without the epoch-keyed cache, the failure is silent and expensive: wasted invocations, token-budget exhaustion, and — worse — a *false success* mode where the agent completes the task on the still-permitted subset and reports success while having silently skipped 9 documents it believed it had read. In regulated federations this is a compliance failure disguised as a partial result. The agent's episodic memory records "read 41 documents" when it read 32 and retried 9 into failure; downstream distillation treats the task as complete. With epoch-keyed caching and warrant-level staleness signals, the revalidation cost is bounded by the *rate of policy change*, not the rate of invocation — typically a handful of round trips per task rather than one per call. The invariant to enforce: **a warrant is a lease on a policy epoch, not a lease on a capability.** The instance must re-validate whenever the epoch it leased has advanced, and must treat granular denials as evidence about the lease, not about the individual object. ```python class StaleWarrantError(RuntimeError): """Raised when a cached capability warrant references an issuer policy epoch that has advanced since the warrant was issued.""" pass class WarrantCache: def __init__(self, issuer_epoch_probe): # cache key: (capability, issuer_policy_epoch) -> warrant self._cache = {} # tracks the epoch each cached warrant was issued under self._warrant_epoch = {} self._probe_epoch = issuer_epoch_probe # callable(issuer) -> epoch token def consume(self, issuer, capability, invoke): warrant = self._cache.get((issuer, capability)) if warrant is None: warrant = self._negotiate(issuer, capability) epoch = self._probe_epoch(issuer) self._cache[(issuer, capability)] = warrant self._warrant_epoch[(issuer, capability)] = epoch return invoke(warrant) issued_epoch = self._warrant_epoch[(issuer, capability)] current_epoch = self._probe_epoch(issuer) # Invariant: a warrant is a lease on a policy epoch, not a capability. if current_epoch != issued_epoch: del self._cache[(issuer, capability)] del self._warrant_epoch[(issuer, capability)] raise StaleWarrantError( f"warrant for {capability!r} from {issuer!r} issued under " f"epoch {issued_epoch!r} but issuer is now at {current_epoch!r}; " f"renegotiation required before reuse" ) # Even at matching epoch, a burst of granular denials is a warrant-health # signal, not independent object errors. result = invoke(warrant) if result.denial_rate(window=20) > 0.15: del self._cache[(issuer, capability)] del self._warrant_epoch[(issuer, capability)] raise StaleWarrantError( f"granular denial rate {result.denial_rate(window=20):.2f} under " f"warrant for {capability!r} suggests epoch-advance masking; " f"forcing revalidation" ) return result def _negotiate(self, issuer, capability): raise NotImplementedError ```