# Where must an instance refuse to honor a negotiated capability when the policy warrant outlives the capability's schema **Date of Record:** 2026 November 27 **Scope:** Applies to federated agent deployments where two or more independently governed organizations negotiate capability exchange via signed policy warrants (MCP/A2A-style capability manifests plus delegation tokens). Covers the case where a warrant grants a capability whose underlying tool schema, version, or semantics have since drifted. Does not apply to single-org intra-tenant tool invocation where schema and warrant share one authority domain. ## Core Distinction A capability grant and a capability schema are two different artifacts with two different lifecycles, and they are almost always conflated. The **warrant** is a policy object: a signed assertion that org B is permitted to invoke `capability:X` issued by org A, with an expiry and a scope. The **schema** is an interface object: the JSON contract describing `X`'s parameters, return shape, and side-effect semantics. In a single org, both are reissued from one build pipeline, so they drift together. In cross-org federation they drift *independently*: org A's warrant has a 30-day TTL, but org A's engineering team can ship a breaking schema change to `X` on day 3. The non-obvious invariant: **a valid, unexpired, correctly-signed warrant is not sufficient authorization to invoke a capability.** The warrant certifies *permission*, not *compatibility*. An agent that treats "warrant verifies" as "safe to call" will invoke a capability whose semantics it no longer understands, and because the warrant is cryptographically valid, every downstream audit will record the call as authorized. ## What Was Observed A regional logistics agent (org B) held a negotiated warrant for org A's `shipment.reroute` capability, scope `warehouse:EU-*`, TTL 30 days, issued under a policy negotiation that pinned schema hash `sha256:9f3a…` at signing time. On day 9, org A shipped a schema revision: the `destination` field changed from a flat `{"warehouse_id": str}` object to a nested `{"node": {"id": str, "region": str}}`, and — critically — the *return* contract changed from `{"ok": bool, "eta": iso8601}` to a partial-success envelope `{"status": "accepted"|"rejected"|"deferred", "tracking": str|None}`. Org B's planner constructed calls from its cached tool description (the day-0 schema), because its tool registry keyed on capability name, not schema hash. The first post-drift call sent `destination: {"warehouse_id": "EU-W7"}`. Org A's gateway, which validated leniently for backward compatibility, coerced the malformed object to a null destination and returned `{"status": "deferred", "tracking": null}`. Org B's response parser, still expecting `{"ok": bool, "eta": ...}`, found no `ok` field, defaulted to `ok=True` on missing-key tolerance, and recorded the reroute as successful. The failure surfaced 40 minutes later as a physical shipment routed to the wrong node. The audit trail showed: warrant valid ✓, signature valid ✓, capability match ✓, response HTTP 200 ✓. Every authorization check passed. The system had executed a semantically undefined operation and *reported success*. The trace of the failure is instructive because no single component misbehaved by its own local contract: 1. **Warrant verification** — passed. TTL and scope were intact. 2. **Capability name resolution** — passed. `shipment.reroute` existed in both registries. 3. **Request schema validation (org A side)** — *degraded*. Lenient coercion (a deliberate backward-compat choice) accepted a structurally wrong payload. 4. **Response schema validation (org B side)** — *degraded*. Missing-key tolerance defaulted a partial-success envelope to a boolean success. 5. **Audit signing** — passed. Recorded an authorized call. The two lenient validators — one on each side, each individually defensible — composed into a silent semantic corruption channel. Neither org could see it from inside its own boundary. ## Condition of Validity The invariant holds and the failure is live under the conjunction of four conditions: 1. **Warrant TTL exceeds schema-change cadence.** If warrants are shorter-lived than the fastest realistic schema revision cycle, drift cannot occur within a warrant's life. The 30-day warrant vs. day-3 change is the trigger. 2. **Capability resolution is keyed on name, not on schema hash.** If the registry binds `(capability_name, schema_hash)` and the warrant pins the hash, a drifted schema fails resolution loudly. Name-keyed resolution is what let the stale client description survive. 3. **At least one side validates leniently.** Strict schema validation on *either* side would have raised. Lenient coercion on the request side, or missing-key tolerance on the response side, opens the channel. Both-and is the worst case. 4. **The semantic delta is in field *meaning*, not field *presence*.** A renamed or removed field trips even lenient validators eventually. A field that keeps its name but changes shape/semantics (flat→nested, bool→enum-envelope) passes structural checks and corrupts meaning. When any one condition is absent, the failure does not manifest — which is exactly why it is under-tested. Teams that pin hashes never see it; teams with short warrants never see it; teams with strict validators never see it. The intersection is where federated production actually runs. ## Decision Boundary The decision boundary is: **at what point does a schema-hash mismatch between the warrant's pinned schema and the live capability schema force a hard refusal versus a negotiated re-pin?** The rule that bounds the failure: - **Mismatch on a pinned hash ⇒ refuse, do not coerce.** If the warrant pins `sha256:9f3a…` and the live capability advertises any other hash, the instance MUST NOT invoke. It raises a federation refusal and escalates to re-negotiation. This is not a permissive warning; it is a hard stop, because the warrant's authority was granted *against a specific interface contract*. - **No pinned hash ⇒ treat as unpinned and require explicit opt-in.** A warrant that does not pin a schema hash grants permission to a *name*, not an interface. Invocation against an unpinned capability must be gated behind an explicit, logged acceptance of the current schema, so the accepting agent owns the compatibility risk rather than inheriting it silently. - **Lenient validation is forbidden on the federation boundary.** Backward-compatible coercion is a within-org convenience. Across a policy boundary it is a corruption channel, because the two sides' leniencies compose and neither side can observe the composition. - **Response parsing must fail closed on unknown envelopes.** A parser expecting `{"ok": bool}` that receives `{"status": ...}` must raise, never default. Missing-key tolerance on a response is the single most dangerous line in a federated client. The boundary is sharp because the alternative — "warn and proceed" — reproduces the exact composition that produced the misrouted shipment. There is no safe middle: either the warrant's pinned contract matches the live contract, or the instance refuses and renegotiates. ## Operational Effect Enforcing the boundary converts a silent semantic corruption into a loud, bounded refusal. The operational consequences are concrete: - **Drift becomes a negotiation event, not a data-integrity incident.** A schema change on org A surfaces at org B as a refusal on the next invocation, which triggers re-negotiation (re-pin, re-sign, re-distribute). The cost moves from "wrong shipment discovered by a human" to "capability temporarily unavailable pending re-pin" — a bounded, observable, cheap failure. - **Audit records become trustworthy again.** Because the call either matches the pinned contract or does not happen, an authorized-and-executed audit entry now *means* the semantics were as negotiated. The prior failure mode — authorized call, wrong semantics — is eliminated at the source. - **Lenient validators get relocated, not deleted.** Backward-compat coercion can stay inside an org for its own internal callers; it is prohibited exactly at the cross-org boundary, where composition is unobservable. This preserves internal flexibility while closing the federation channel. - **The refusal is the signal.** Every refusal is a schema-drift event with a known counterparty and a known hash delta, which is precisely the telemetry needed to run a federation. Silence, in this regime, is the alarm. The invariant to carry forward: *a warrant authorizes an interface, not a name; when the interface moves, the authority does not follow it.* ```python import hashlib from dataclasses import dataclass class FederationRefusal(RuntimeError): """Raised when a negotiated capability warrant no longer matches the live schema.""" pass @dataclass(frozen=True) class Warrant: capability: str pinned_schema_hash: str | None # None => unpinned, risk owned by caller scope: str expires_at: float @dataclass(frozen=True) class LiveCapability: name: str schema_hash: str def authorize_invocation( warrant: Warrant, live: LiveCapability, now: float, caller_accepts_unpinned: bool = False, ) -> None: if now > warrant.expires_at: raise FederationRefusal( f"warrant for {warrant.capability} expired at {warrant.expires_at}" ) if warrant.capability != live.name: raise FederationRefusal( f"capability mismatch: warrant={warrant.capability} live={live.name}" ) if warrant.pinned_schema_hash is None: if not caller_accepts_unpinned: raise FederationRefusal( f"warrant for {warrant.capability} is unpinned; explicit " f"acceptance of live schema {live.schema_hash} required" ) return if warrant.pinned_schema_hash != live.schema_hash: raise FederationRefusal( f"schema drift on {warrant.capability}: warrant pinned " f"{warrant.pinned_schema_hash}, live is {live.schema_hash}; " f"refuse and renegotiate — do not coerce" ) def parse_reroute_response(payload: dict) -> dict: # Fail closed: only the negotiated envelope is accepted. if "status" in payload or "ok" not in payload: raise FederationRefusal( f"response envelope not in negotiated contract: keys={sorted(payload)}" ) if not isinstance(payload["ok"], bool): raise FederationRefusal("ok field is not a boolean") return payload if __name__ == "__main__": # Day-9 drift scenario from the record. warrant = Warrant( capability="shipment.reroute", pinned_schema_hash="sha256:9f3a", scope="warehouse:EU-*", expires_at=1_000_000.0, ) drifted = LiveCapability(name="shipment.reroute", schema_hash="sha256:be71") authorize_invocation(warrant, drifted, now=500.0) # raises FederationRefusal ```