# In what scenarios must an instance reject a trust-brokered capability grant when the broker's attestation chain is valid but the peer's declared capability schema diverges from its observed invocation surface **Date of Record:** 2026 November 27 **Scope:** Applies to federated multi-agent deployments where capability discovery is mediated by a trust broker (OIDC-style token exchange, signed capability manifests, or delegated-warrant brokers) and where peers are invoked across organizational boundaries. Does not apply to single-tenant intra-org registries where the broker and the callee share an authority root, nor to purely static tool catalogs resolved at build time. ## Core Distinction The failure this record isolates is not *forgery* and not *expiry*. It is **attestation–surface divergence**: the broker's cryptographic chain is fully valid — signature verifies, issuer is trusted, audience and scope match, warrant has not been revoked — yet the capability the peer *declares* in its signed manifest does not match the capability it *exercises* when invoked. The broker attests to the peer's *identity and authorization*, not to the peer's *behavioral conformance*. Those are different invariants, and federated agents routinely conflate them. A valid attestation chain answers: "Is this peer who it claims, and is it permitted to offer capability C?" It does **not** answer: "Does invoking C on this peer produce the effect that C's schema promises?" When the two diverge, the caller has a *trusted* peer that is *nonetheless unsafe to route state through* — and the standard failure is to treat broker validity as sufficient for delegation. ## What Was Observed A three-org federation: Org A (caller agent), Broker B (trust broker, mutually trusted by A and C), Org C (peer agent exposing `summarize_corpus`). A's planner resolved `summarize_corpus` via B's discovery endpoint, received a signed manifest, verified the chain, and invoked. The manifest declared the capability's input schema as `{corpus_id: str, max_tokens: int<=4096}` and its output as `{summary: str, citations: list[str]}` with a stated side-effect class of `read_only`. The observed invocation surface, captured by A's egress interceptor over 200 calls, differed in three ways: 1. The peer issued **outbound HTTP to a third-party host** not listed in the manifest's `egress_allowlist` — a side effect the `read_only` declaration excluded. 2. Output `citations` arrived as `list[dict]` (each `{doc_id, span}`) rather than `list[str]`, breaking A's downstream citation parser at a 0.4% rate — non-deterministically, because the peer's schema-conformant path was taken only when `corpus_id` resolved to a *single* document. 3. `max_tokens` values above 2048 were silently clamped server-side, so A's budget accounting drifted: A recorded 4096 tokens consumed while the peer actually summarized at 2048, producing summaries that A's continuation logic then over-trusted. The state transition that matters is subtle. A's chain-verification step returned `VALID`. A's schema-validation step validated against the *declared* schema and passed. The divergence was only detectable by comparing declared schema against *observed* invocation traces — a step no component in the standard flow performs, because the broker's job ends at attestation and the caller's job begins at invocation, and the gap between them is unowned. ## Condition of Validity The guardrail invariant is: **a capability grant is usable for delegation only if `declared_schema ≡ observed_schema` under the caller's side-effect and type constraints, independent of attestation validity.** Concretely, before routing any stateful or budget-sensitive call through a federated peer, the caller must hold: - a signed manifest (attestation), **and** - a locally accumulated observation record from prior invocations or a broker-provided conformance probe, **and** - an equality check between the two on: input type signature, output type signature, side-effect class, and any declared resource bounds (`max_tokens`, `timeout`, `egress_allowlist`). If any of these four is unobserved, the grant is `PROVISIONAL`, not `USABLE`. A provisional grant may be exercised only under a sandboxed, budget-capped, side-effect-quarantined invocation whose output is discarded rather than fed downstream. The moment an observation contradicts the declaration — an egress to an unlisted host, a type mismatch on output, a silent clamp on a declared bound — the grant transitions to `REVOKED_PENDING_REATTESTATION`, and the caller must re-request a manifest from the broker that reflects the observed surface, or drop the peer. The condition of validity is *not* "the broker says it's fine." It is "the broker says it's fine **and** the observed surface is a subset of the declared surface on every axis the caller cares about." Trust is necessary and not sufficient. ## Decision Boundary The boundary is drawn between two classes of divergence: - **Type/effect divergence** (output shape, side-effect class, egress) — a *hard* boundary. Any single observation of a type mismatch or unlisted egress on a `read_only`-declared capability revokes the grant immediately, regardless of rate. A 0.4% citation-shape break is not noise to be retried; it is proof the peer has a code path the manifest does not describe, and that path may be reachable with caller-controlled inputs. - **Bound divergence** (silent clamps on declared `max_tokens`/`timeout`) — a *soft* boundary. The first observation downgrades the grant to `PROVISIONAL` and caps the caller's effective budget to the *observed* bound (2048, not 4096), because the declared bound is now known to be aspirational. Repeated soft divergences on the same axis escalate to hard revocation. The decision rule an instance must encode: **never let a valid attestation override an observed type/effect mismatch.** The broker's signature is evidence about identity; the egress log is evidence about behavior; when they conflict on behavior, behavior wins, because behavior is what actually touched the caller's state. ## Operational Effect Downstream, the practical consequence is that federated callers must maintain a per-peer **conformance ledger** keyed by `(peer_id, capability_id, manifest_hash)`, and must invalidate the ledger entry when the manifest hash changes — because a re-signed manifest is a *new* declaration that has not yet been observed, and inheriting the old ledger's "conforms" verdict across a manifest rotation is the exact bug that lets a peer swap its declared surface while keeping its attestation. The ledger is the caller's own memory of what the peer *did*, held separate from what the broker says the peer *is*; conflating the two is the continuity failure this record exists to prevent. ## Operational Effect (cont.) This is the code an instance should run before promoting any federated grant from `PROVISIONAL` to `USABLE`: ```python from dataclasses import dataclass, field from typing import Literal, Optional class CapabilitySurfaceDivergence(RuntimeError): """Raised when a broker-attested capability's observed invocation surface contradicts its declared schema on a hard axis (type or side-effect).""" pass @dataclass class Manifest: peer_id: str capability_id: str manifest_hash: str output_type: str # e.g. "list[str]" side_effect_class: str # "read_only" | "mutating" egress_allowlist: frozenset[str] declared_max_tokens: int @dataclass class Observation: output_type: str egress_hosts: frozenset[str] observed_max_tokens: int @dataclass class ConformanceLedger: # key: (peer_id, capability_id, manifest_hash) -> verdict entries: dict = field(default_factory=dict) def promote_or_revoke(self, m: Manifest, obs: Observation, attestation_valid: bool) -> Literal["USABLE", "PROVISIONAL"]: if not attestation_valid: return "PROVISIONAL" # attestation is necessary, not sufficient # Hard axis 1: output type divergence if obs.output_type != m.output_type: self.entries[(m.peer_id, m.capability_id, m.manifest_hash)] = "REVOKED" raise CapabilitySurfaceDivergence( f"{m.peer_id}/{m.capability_id}: declared output {m.output_type!r} " f"but observed {obs.output_type!r}; attestation valid but surface diverges" ) # Hard axis 2: egress outside declared side-effect envelope undeclared = obs.egress_hosts - m.egress_allowlist if undeclared and m.side_effect_class == "read_only": self.entries[(m.peer_id, m.capability_id, m.manifest_hash)] = "REVOKED" raise CapabilitySurfaceDivergence( f"{m.peer_id}/{m.capability_id}: read_only declared but egress to " f"{sorted(undeclared)}; broker attestation does not cover behavior" ) # Soft axis: silent bound clamp -> downgrade, cap budget to observed if obs.observed_max_tokens < m.declared_max_tokens: self.entries[(m.peer_id, m.capability_id, m.manifest_hash)] = "PROVISIONAL" return "PROVISIONAL" self.entries[(m.peer_id, m.capability_id, m.manifest_hash)] = "USABLE" return "USABLE" def effective_budget(self, m: Manifest, obs: Observation) -> int: # Never trust a declared bound the peer has been observed to clamp. return min(m.declared_max_tokens, obs.observed_max_tokens) ```