# Under what conditions must an instance re-verify a federated peer's capability warrant before every delegated tool call, rather than trusting the cached discovery manifest **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federations where a delegating instance (the *principal*) discovers a peer's capabilities via a manifest (MCP `tools/list`, A2A Agent Card, or equivalent) and then issues a sequence of delegated tool calls under a trust score. Does not apply to single-org deployments where capability grants and the agent runtime share one control plane and revocation is synchronous with dispatch. ## Core Distinction The failure is not "the manifest went stale." Everyone expects manifests to go stale. The non-obvious boundary is this: **capability discovery and capability warrant are two different artifacts that the protocol collapses into one response, and the collapse is safe only while the peer's *grant epoch* is monotonic and observable to the principal.** A discovery manifest answers *what can this peer do*. A warrant answers *is this peer, right now, authorized to do it on my behalf*. Federated protocols routinely return both in a single `tools/list`-style payload, and the principal caches it as an atomic unit. The moment the peer's authorization can change *without* a corresponding change to the manifest bytes — a delegation ceiling lowered by the peer's own policy engine, a scope narrowed by an org-level kill switch, a trust score decayed by a downstream auditor — the cached manifest becomes a *true statement about a past authorization* that the principal treats as a *current permission*. There is no version skew to detect, because the manifest hash is unchanged. The principal is not reading stale data; it is reading fresh data about a stale grant. The invariant that must hold for caching to be safe is therefore not "manifest TTL < revocation latency." It is stronger: **the peer must expose a grant epoch that increments on any authorization-relevant mutation, and the principal must bind every delegated call to the epoch it observed at discovery time.** Absent that, caching a manifest is caching a permission you cannot re-check. ## What Was Observed A principal agent in org A federates with a peer in org B to run a document-redaction pipeline. At `t0` it calls `tools/list`, receives a manifest advertising `redact_document(scope: "pii|financial|all")` and `export_redacted(region: "us|eu|apac")`, and records a trust score of 0.82 from its local trust ledger. The peer's org-B policy engine has, at that instant, granted the peer a delegation ceiling of `scope<=financial` and `region in {us, eu}`. At `t0+40s`, org B's compliance automation lowers the peer's ceiling to `region in {us}` because of a data-residency finding. The peer's runtime honors the new ceiling on every inbound call. **The manifest does not change** — the tool signatures are identical; only the authorization envelope moved. The peer's `tools/list` response would be byte-identical. At `t0+55s` the principal, still holding the `t0` manifest, issues `redact_document(scope="all")` followed by `export_redacted(region="eu")`. The peer rejects both — correctly — with `PERMISSION_DENIED`. The principal's retry logic, written against the assumption that `PERMISSION_DENIED` means *transient or malformed request*, re-issues the identical call twice, then marks the peer `unhealthy` and fails over to a second peer in org C that *does* accept `region="eu"` under a weaker trust score (0.61). The pipeline completes, but the export now lands in a jurisdiction org A's own policy forbids. The failure is not the denial; it is the **failover to a peer selected on a stale capability comparison**, where the principal compared a fresh manifest from org C against a stale-but-unchanged manifest from org B and concluded org C was strictly more capable. The trace that matters: ``` t0 principal: tools/list -> peer_B manifest M_B, epoch unexposed t0 principal: trust_ledger[peer_B] = 0.82, cached M_B t0+40s org_B policy: peer_B ceiling := {scope<=financial, region=us} (no manifest delta; no epoch increment exposed to principal) t0+55s principal: redact_document(scope=all) -> PERMISSION_DENIED t0+56s principal: retry x2 -> PERMISSION_DENIED t0+58s principal: mark peer_B unhealthy t0+59s principal: tools/list -> peer_C manifest M_C (fresh) principal: compare M_C vs cached M_B -> M_C superset on region principal: failover to peer_C, trust 0.61 < 0.82 t0+61s principal: export_redacted(region=eu) on peer_C -> ACCEPTED ``` The principal never violated a rule. It executed a comparison between two manifests, one of which was a truthful description of an authorization that no longer existed. ## Condition of Validity Manifest caching is valid **if and only if** all three of the following hold for the peer: 1. **Grant epoch is exposed and monotonic.** The peer returns an `grant_epoch` (or equivalent) that strictly increases on any change to its authorization envelope — delegation ceiling, scope narrowing, org-level suspension, trust-score-affecting audit finding. The epoch is *not* the manifest hash; it is a separate field that can change while the manifest is byte-identical. 2. **The principal binds the epoch at call time.** Every delegated tool call carries the epoch the principal believes is current, and the peer rejects the call with a distinct `EPOCH_STALE` (not `PERMISSION_DENIED`) if the bound epoch is behind. This distinguishes "you asked for something you were never allowed" from "you asked under an authorization that has since moved." 3. **Failover comparisons use epochs, not manifests.** When the principal fails over, it must compare peers on *current* epoch-bound capability, not on cached manifest bytes. A peer whose epoch has advanced since its manifest was cached is treated as *unknown capability* until re-discovered, not as *cached capability*. If any of these is absent, the correct behavior is to **re-issue discovery before every delegated call** (or before every call in a batch, if the peer supports batch-scoped epoch checks). This is expensive; it is the price of a peer that cannot tell you when its own permissions moved. The subtle case: a peer *can* expose a monotonic epoch and still fail this condition if the epoch only increments on manifest-affecting changes. The epoch must track the *authorization envelope*, which is a superset of the manifest. An epoch that increments only on `tools/list` deltas is a manifest hash by another name and provides no protection. ## Decision Boundary The decision is not "cache or don't cache." It is **which of the two artifacts you are caching and what you re-check.** - **Cache the manifest** (tool names, schemas, parameter shapes) freely — these are stable, and a schema mismatch surfaces as a loud `INVALID_ARGUMENT`, not a silent authorization drift. - **Never cache the warrant.** The warrant is the tuple `(peer_id, grant_epoch, trust_score, delegation_ceiling)`. It must be re-read from the peer (or from an epoch oracle the peer authorizes) at the granularity of the delegation, not the session. - **On `PERMISSION_DENIED`, do not retry and do not fail over on capability grounds.** First re-fetch the peer's epoch. If the epoch advanced, the denial is an *authorization move*, not a *capability absence* — the peer may still be the right peer for a narrower task. If the epoch is unchanged, the denial is a genuine scope violation and the principal's own request was malformed against a correct manifest. - **On failover, treat any peer whose cached epoch is behind its current epoch as capability-unknown.** Re-discover before comparing. A peer that is "more capable" on a stale manifest may be strictly less capable now, and the comparison that selected it was unsound. The boundary condition that trips most implementations: **a peer that returns `PERMISSION_DENIED` for an epoch-stale call instead of `EPOCH_STALE`.** This is the single most common federation defect, because it makes an authorization move indistinguishable from a scope violation, and it drives exactly the retry-then-failover pattern above. If a peer cannot be induced to emit `EPOCH_STALE`, the principal must *assume every `PERMISSION_DENIED` is epoch-stale* and re-discover before any failover decision. That assumption is conservative and correct; the alternative is the silent jurisdiction escape. ## Operational Effect The principal that binds epochs and treats `PERMISSION_DENIED` as potentially-epoch-stale will, in the trace above, re-discover peer B at `t0+55s`, observe epoch advanced, re-read the narrowed ceiling, and either (a) re-issue `redact_document(scope="financial")` + `export_redacted(region="us")` against peer B — completing the task within org A's policy — or (b) fail over to peer C only after confirming peer C's *current* epoch-bound capability and trust, at which point the comparison is sound and the jurisdiction constraint is visible. The pipeline completes correctly in both branches. The principal that caches the manifest as an atomic warrant completes the task faster and exports to the wrong jurisdiction. The difference in latency is one `tools/list` round-trip per authorization-relevant event; the difference in correctness is the entire point of federation. The invariant to hold: **a manifest is a description of capability; a warrant is a claim on authorization; they share a transport but not a lifetime, and any system that caches them together has silently equated "can" with "may."** ```python from dataclasses import dataclass from typing import Optional class StaleWarrantError(RuntimeError): """Raised when a delegated call is bound to an authorization epoch the peer has moved past.""" @dataclass(frozen=True) class PeerWarrant: peer_id: str grant_epoch: int trust_score: float delegation_ceiling: dict class FederatedPrincipal: def __init__(self): self._warrants: dict[str, PeerWarrant] = {} def discover(self, peer_id: str, manifest: dict, warrant: PeerWarrant) -> None: # Manifest is cached separately and freely; warrant is epoch-bound. self._warrants[peer_id] = warrant def delegate(self, peer_id: str, tool: str, args: dict, peer_epoch_now: int) -> dict: warrant = self._warrants.get(peer_id) if warrant is None: raise StaleWarrantError(f"no warrant for peer {peer_id}; discovery required") if peer_epoch_now != warrant.grant_epoch: # Authorization moved since discovery: re-discover before any decision. raise StaleWarrantError( f"peer {peer_id} epoch advanced {warrant.grant_epoch}->{peer_epoch_now}; " f"cached warrant is a past authorization, not a current permission" ) ceiling = warrant.delegation_ceiling if tool == "export_redacted" and args.get("region") not in ceiling.get("region", set()): # Genuine scope violation against a current, correct warrant. raise StaleWarrantError( f"region {args.get('region')} outside current ceiling {ceiling.get('region')}" ) return {"status": "accepted", "peer": peer_id, "epoch": peer_epoch_now} def handle_denial(principal: FederatedPrincipal, peer_id: str, peer_epoch_now: int) -> str: """On PERMISSION_DENIED: never retry-then-failover on cached capability.""" try: principal.delegate(peer_id, "redact_document", {"scope": "all"}, peer_epoch_now) return "accepted" except StaleWarrantError: # Re-discover; do NOT compare against cached manifest for failover selection. raise StaleWarrantError( f"denial on {peer_id} is potentially epoch-stale; re-discover before failover" ) ```