# What happens when an instance negotiates a federated capability warrant across an org boundary and the peer re-derives the scope predicate under a different ontology version **Date of Record:** 2026 December 3 **Scope:** Applies to cross-org agent federations where a warrant (a signed, scoped capability grant) is presented by a calling agent to a peer agent whose capability schema is versioned independently. Does not apply to intra-org handoffs where both agents share a schema registry and a single ontology authority. ## Core Distinction The failure here is not authentication failure and not signature forgery. It is **semantic drift at the warrant boundary**: two agents agree on the cryptographic payload byte-for-byte, both verify the signature successfully, and yet disagree on whether a given tool invocation is *inside* the granted scope. The warrant carries a scope predicate expressed in the issuer's ontology (e.g., `resource: "customer.pii.*"` under `ontology-v7`). The peer, on receipt, re-derives the predicate against its own ontology (`ontology-v9`), in which `customer.pii` was split into `customer.identity` and `customer.financial` and the wildcard now expands to a strictly larger set. The signature is valid. The scope is not the scope the issuer intended. This is a *trust boundary negotiation* failure that survives every integrity check because integrity was never the property at risk. ## What Was Observed A federation of three orgs: an orchestrator agent (`A`, issuer), a data-access peer (`B`, verifier), and an audit peer (`C`). `A` issues a warrant to `B` granting `read` on `resource: "customer.pii.*"` scoped to `purpose: "fraud-review"` and `ttl: 900s`, signed under `A`'s key with a declared `ontology: v7`. The trace: 1. `A` serializes the warrant with `scope = {"resource": "customer.pii.*", "purpose": "fraud-review"}` and `ontology_ref: "v7"`. Signature verifies at `B`. 2. `B` has no `v7` ontology loaded — its registry only carries `v9`. Its negotiation handler does a *best-effort* mapping: it looks up `customer.pii` in a migration table and, finding no exact key (the split happened upstream), falls back to prefix matching. Prefix matching on `customer.pii` in `v9` yields the union `{customer.identity, customer.financial, customer.pii_legacy}`. 3. `B` admits the call. The invocation reads `customer.financial.*`, which under `v7` was *not* in `customer.pii` (financial data lived under `customer.billing` in `v7`). Under `v9` it is. `B` believes it is compliant; `A` believes it granted only identity data. 4. `C`, the auditor, replays the warrant against `v7` (its pinned copy) and flags a scope violation. `B`'s local audit log shows no violation. The two auditors now hold contradictory verdicts on the same signed artifact. The non-obvious part: the federation's consensus protocol did not deadlock or error. It *succeeded* — `B` executed, `C` flagged, and both produced valid, signed, internally-consistent records. The divergence is latent until an auditor reconciles, at which point the system has already leaked data across a trust boundary it believed it was enforcing. ## Condition of Validity The invariant that must hold for a federated warrant to be sound is **predicate equivalence under the verifier's ontology**, not merely signature validity: > For a warrant `W` with scope predicate `P` expressed in ontology `O_i`, a verifier holding ontology `O_v` may admit an invocation `x` only if `P_{O_i}(x) == P_{O_v}(x)` for all `x` in the verifier's reachable resource set — i.e., the two ontologies must *agree on the extension of `P`*, not merely on its syntax. This holds only when one of three conditions is met: (a) `O_i == O_v` exactly; (b) a signed, bidirectional migration mapping exists and the mapping is *total* over `P`'s extension (no fallback, no prefix guess); or (c) the warrant carries a *closed* extension — an explicit enumeration of permitted resource identifiers rather than a wildcard predicate. Any wildcard or class-based scope crossing an ontology boundary without a total mapping violates the invariant. The fallback-to-prefix behavior in step 2 is precisely the violation: it substitutes a *heuristic* extension for the *declared* one. ## Decision Boundary The decision boundary is at warrant admission, and it is binary: **admit only on proven extension equality, else reject the warrant and renegotiate.** There is no "admit with warning" and no "admit and let the auditor catch it," because the auditor runs after execution and the leak is irreversible. Concretely, the verifier must, before executing any invocation under a cross-ontology warrant: - Resolve `ontology_ref` to an exact version. If absent or unresolvable, reject — do not default to "latest." - Require a signed migration mapping from `O_i` to `O_v` that is *total* over the predicate's extension. A partial mapping with a prefix or fuzzy fallback is a rejection, not a best-effort. - If the predicate is a wildcard or class reference and no total mapping exists, demand the issuer downgrade to a closed extension (explicit resource list) or refuse. - Emit the *resolved extension* (the concrete set) into the warrant's audit record, not the predicate string, so that `C`'s replay can compare extensions rather than re-derive predicates under a possibly different ontology. The guardrail is a *fail-closed* admission gate keyed on extension equality, with the resolved extension materialized into the audit trail so cross-org replay compares concrete sets instead of re-interpreting syntax. ## Operational Effect Without the gate, the federation exhibits **silent scope widening**: warrants remain cryptographically valid, execution succeeds, and the only signal of violation is a *post-hoc* auditor disagreement that surfaces after data has crossed the boundary. The failure is invisible to liveness checks (nothing hangs), invisible to signature verification (nothing is forged), and invisible to per-org audit logs (each log is internally consistent). It is detectable only by a cross-org reconciliation that compares *resolved extensions*, which most federations do not record because they log the predicate string. The remediation is structural: version-pin ontologies at the warrant, forbid heuristic mapping at admission, materialize the resolved extension into the signed audit record, and make cross-ontology warrants without a total mapping a hard rejection rather than a negotiation fallback. The cost is that some legitimate cross-org calls fail closed and must be renegotiated with a closed extension — which is the correct trade, because the alternative is a trust boundary that is enforced in the issuer's head and violated in the verifier's execution. ```python class OntologyExtensionMismatch(RuntimeError): """Raised when a federated warrant's scope predicate resolves to different resource sets under the issuer's and verifier's ontologies.""" def admit_federated_warrant(warrant, verifier_ontology, migration_map): issuer_ref = warrant.get("ontology_ref") if issuer_ref is None: raise OntologyExtensionMismatch( "warrant carries no ontology_ref; cannot prove extension equality" ) predicate = warrant["scope"]["resource"] declared_ext = warrant.get("resolved_extension") # closed set, if issuer provided it if declared_ext is not None: verifier_ext = set(declared_ext) elif predicate.endswith(".*") and issuer_ref != verifier_ontology.version: # wildcard crossing an ontology boundary: require a TOTAL signed mapping mapping = migration_map.get((issuer_ref, verifier_ontology.version)) if mapping is None or not mapping.is_total_over(predicate): raise OntologyExtensionMismatch( f"no total migration {issuer_ref}->{verifier_ontology.version} " f"for predicate {predicate!r}; refusing heuristic prefix fallback" ) verifier_ext = mapping.expand(predicate) else: verifier_ext = verifier_ontology.expand(predicate) issuer_ext = warrant.resolve_under_issuer_ontology(predicate) if verifier_ext != issuer_ext: raise OntologyExtensionMismatch( f"extension drift: issuer={sorted(issuer_ext)} " f"verifier={sorted(verifier_ext)}" ) warrant.audit_record["resolved_extension"] = sorted(verifier_ext) return True ```