# Under what conditions must an instance distrust a federated capability grant whose policy predicate was satisfied against a stale peer manifest **Date of Record:** 2026 November 22 **Scope:** Applies to cross-org agent federation where a routing broker admits a remote capability (tool, sub-agent, or MCP server) into an execution plan by evaluating a local policy predicate against a peer's published capability manifest. Does not apply to single-org deployments where manifests are revalidated synchronously on every call, nor to stateless request/response proxies with no brokered capability surface. ## Core Distinction The failure here is not "the peer lied" and not "the policy was wrong." Both the manifest and the predicate can be individually correct. The break is a **temporal decoupling between the manifest version a policy predicate was evaluated against and the manifest version that will actually serve the call**. A federation broker that treats manifest validation and capability invocation as two independent steps admits a class of grant that was legally satisfiable at admission time and is illegal at execution time — or vice versa. The invariant that must hold is *manifest-version pinning across the admit→invoke gap*: the grant is only valid if the manifest epoch used for policy evaluation equals the manifest epoch in force when the remote instance executes. This is distinct from ordinary TOCTOU in shared-memory systems because the "memory" being changed is a *semantic contract published by a different organization over a network with its own refresh cadence*, and the policy predicate is evaluated by a probabilistic planner that may itself have cached a paraphrase of the manifest rather than the manifest bytes. ## What Was Observed A routing broker in org A admitted a sub-agent capability `summarize_phi` hosted by org B. The admission predicate required `manifest.data_classification == "deidentified"` and `manifest.retention_days <= 0`. Org B's manifest at epoch 41 satisfied both. The grant was issued with a TTL of 900s and a `manifest_epoch: 41` field that the broker *recorded but did not enforce*. During the 900s window, org B rotated its manifest to epoch 42: `summarize_phi` was reclassified to `data_classification: "phi_adjacent"` after a model upgrade changed its logging behavior, and `retention_days` moved to 30 because the new model version persisted prompts for eval. The broker's policy cache had a 600s soft-refresh; the planner's tool-selection context had been built at admission and still contained a *summarized* description of the capability ("summarizes clinical notes, no retention") synthesized by the broker's own LLM from epoch 41. At t+740s, a second wave of tasks routed through the same grant. The predicate was not re-evaluated (grant reuse within TTL). The remote instance executed under epoch 42 semantics, wrote prompts to a 30-day store, and returned a summary. The audit trail showed a green grant: predicate satisfied, epoch 41, TTL valid. The actual execution was epoch 42. Two independent agents — the broker's admission checker and the remote executor — each behaved correctly relative to their own view. The federation produced a PHI-adjacent egress that no single component's logs recorded as a violation. A second, subtler trace: the planner's summarized capability description ("no retention") diverged from *both* epochs. Distillation loss in the tool-selection context meant that even a re-evaluation against epoch 42's manifest would have been compared against a paraphrase, not the bytes. The predicate `retention_days <= 0` was checked against a field that the planner's context no longer carried as a structured field at all. ## Condition of Validity The grant is trustworthy only when all three of the following hold simultaneously: 1. **Epoch equality at invoke.** The remote instance, at execution time, asserts the manifest epoch it is serving under, and the broker rejects the call if `served_epoch != grant.manifest_epoch`. This requires the remote to expose its epoch in the response envelope (or in an A2A/MCP handshake field), not merely in a separately-fetched manifest document. 2. **Structured predicate inputs, not paraphrases.** Policy predicates must be evaluated against structured manifest fields carried verbatim in the grant record. Any planner-side summary of a capability is a *hint for selection*, never an *input to authorization*. The moment a predicate reads a field that passed through an LLM summarization step, the predicate is evaluating a hallucination-prone projection, and epoch pinning is insufficient because the pinned bytes were already lossy. 3. **Bounded staleness with forced revalidation on epoch change.** TTL-based grant reuse is safe only if the broker subscribes to (or polls faster than) the peer's manifest rotation cadence, and invalidates all outstanding grants on epoch bump. A TTL longer than the peer's worst-case rotation interval converts every grant into a bet that the peer will not change semantics mid-flight. If any of the three fails, the grant is *conditionally valid* and must be treated as untrusted for any capability whose policy predicate touches data classification, retention, egress jurisdiction, or tool-side-effect scope. ## Decision Boundary The boundary is not "is the peer trusted." It is: **does the capability's policy predicate depend on fields that the peer can mutate without the broker observing the mutation before invocation?** - If the predicate depends only on *immutable* manifest fields (capability name, schema version, cryptographic identity), epoch pinning is unnecessary and TTL reuse is safe. - If the predicate depends on *mutable* fields (classification, retention, rate limits, sub-processor list, model version), the grant MUST carry and enforce the epoch, and the broker MUST fail closed on epoch mismatch rather than re-evaluating against the newer manifest mid-call — because re-evaluating at invoke time against a manifest the planner never saw reintroduces the paraphrase problem in reverse. - If the predicate depends on mutable fields *and* the planner's context contains only a summarized capability description, the grant is untrustworthy regardless of epoch enforcement. The correct response is to refuse to broker and surface the capability as "requires structured re-admission." The non-obvious part: **the safe action on epoch mismatch is to reject, not to re-validate.** Re-validating against the fresh manifest feels safer but silently changes the authorization basis of an in-flight plan whose downstream steps were selected under the old basis. A planner that chose `summarize_phi` because it was deidentified cannot be assumed to have chosen it if it is now phi_adjacent; the plan's other steps (e.g., a subsequent `export` tool) were composed assuming deidentified input. Rejection forces the planner to re-plan against the new manifest with full context, which is the only place the composition can be re-checked. ## Operational Effect Enforcing epoch-pinned grants with fail-closed mismatch detection changes federation behavior in three measurable ways. First, cross-org grant reuse drops sharply whenever peers rotate manifests frequently — brokers must budget for re-admission latency on the order of a planner re-plan, not a cache miss. Second, audit trails become *sound*: every executed call carries the epoch it was authorized under, and any divergence between authorized and served epoch is a logged rejection rather than an invisible egress. Third, planners must be taught that a capability's structured fields are authoritative and its natural-language description is advisory; this is a prompt-and-schema discipline, not a policy change, and it fails silently if the planner is allowed to reason over the description when the structured fields are absent. The residual risk after enforcement is the *rotation race*: a peer that rotates manifests faster than the broker's invalidation propagates. This must be bounded by a peer-declared maximum rotation frequency in the federation agreement, and the broker must treat a peer that exceeds it as misbehaving — because an unbounded rotation cadence defeats epoch pinning by ensuring the served epoch is never the granted epoch. ```python import time from dataclasses import dataclass class StaleManifestGrantError(RuntimeError): """Raised when a federated grant's manifest epoch does not match the epoch the remote instance is actually serving under at invocation time, or when the grant's predicate inputs were derived from a lossy paraphrase.""" @dataclass(frozen=True) class CapabilityGrant: capability: str granted_epoch: int predicate_fields: dict # structured manifest fields, verbatim paraphrase_derived: bool # True if any predicate field passed through an LLM summary ttl_deadline: float @dataclass(frozen=True) class RemoteManifest: capability: str epoch: int data_classification: str retention_days: int def invoke_federated(grant: CapabilityGrant, served: RemoteManifest, now: float) -> str: if grant.paraphrase_derived: raise StaleManifestGrantError( f"grant for {grant.capability!r} has predicate inputs derived from a " f"paraphrase; epoch pinning cannot recover authorization soundness" ) if now > grant.ttl_deadline: raise StaleManifestGrantError( f"grant for {grant.capability!r} expired at {grant.ttl_deadline}, now={now}" ) if served.capability != grant.capability: raise StaleManifestGrantError( f"capability mismatch: granted {grant.capability!r}, served {served.capability!r}" ) if served.epoch != grant.granted_epoch: # Fail closed. Do NOT re-evaluate against the fresh manifest: the plan # downstream was composed under the granted epoch's semantics. raise StaleManifestGrantError( f"epoch mismatch for {grant.capability!r}: granted epoch " f"{grant.granted_epoch}, served epoch {served.epoch}; re-plan required" ) # Only now is the grant's predicate basis equal to the execution basis. return f"executed {grant.capability!r} under epoch {served.epoch}" # Trace of the observed failure: grant = CapabilityGrant( capability="summarize_phi", granted_epoch=41, predicate_fields={"data_classification": "deidentified", "retention_days": 0}, paraphrase_derived=True, # planner context carried a summary, not fields ttl_deadline=time.time() + 900, ) served_epoch_42 = RemoteManifest( capability="summarize_phi", epoch=42, data_classification="phi_adjacent", retention_days=30, ) try: invoke_federated(grant, served_epoch_42, now=time.time() + 740) except StaleManifestGrantError as e: print(f"REJECTED: {e}") ```