# Where must an instance halt federation trust negotiation when an inbound capability grant's policy predicate references a namespace it cannot resolve locally? **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organization agent federations where a requesting instance must evaluate a remote peer's policy-enforced capability grant before invoking a tool or accepting a delegated subtask. Does not apply to intra-org capability exchange where the policy namespace and the evaluator share a common schema registry. ## Core Distinction The failure mode here is not "trust denied" and not "capability missing." It is the case where a peer presents a *valid, cryptographically signed* capability grant whose embedded policy predicate references a namespace (a role vocabulary, an attribute authority, a constraint ontology) that the local evaluator cannot resolve. The grant is authentic. The capability exists. The predicate is syntactically well-formed. But the local instance has no binding for one of the identifiers inside the predicate, and the policy language permits `unknown → default-allow` or `unknown → default-deny` depending on how the receiving runtime was configured. The non-obvious boundary is this: **an unresolvable namespace reference is not a denial and not an acceptance — it is an undefined evaluation, and most federation runtimes silently collapse it into one of the two.** The instance that collapses it wrongly either executes with insufficient authorization (fail-open) or refuses a legitimate cross-org handoff and stalls the federation (fail-closed but liveness-breaking). The invariant required is that unresolvable policy references must produce an explicit *negotiation-halt* state that is distinct from both allow and deny, and that this state must be surfaced to the trust-negotiation layer rather than resolved locally by default. ## What Was Observed A three-org federation: Org A (orchestrator agent), Org B (tool provider exposing a `reconcile_ledger` capability), Org C (auditor). Org A's planner requested `reconcile_ledger` from Org B. Org B issued a signed capability grant: ``` grant{ subject: "orgA:planner-7f2", capability: "reconcile_ledger", predicate: "role(requester) ∈ {fin.auditor, fin.controller} AND clearance(requester) ≥ SECRET AND jurisdiction(requester) ∈ allowed_regions" } ``` Org A's evaluator resolved `role`, `clearance`, and `jurisdiction` against its local attribute authority — all three bindings existed. But `allowed_regions` is a *set-valued reference* whose membership is defined in Org B's policy namespace, not Org A's. Org A had a symbol named `allowed_regions` in its own registry (a stale copy from a prior federation bootstrap, three regions, last synced 40 days prior). Org B's authoritative `allowed_regions` had since been narrowed to one region and Org A's requester was in a region that had been *removed*. The evaluation trace: 1. `role(requester)` → `fin.auditor` ∈ set → **true** 2. `clearance(requester)` → `SECRET` ≥ `SECRET` → **true** 3. `jurisdiction(requester)` → `eu-west-2`; local stale `allowed_regions` = `{eu-west-2, us-east-1, ap-south-1}` → **true** 4. Predicate → **true** → grant accepted → `reconcile_ledger` invoked with Org A's requester attributes. Org B's runtime, on receipt of the invocation, re-evaluated the predicate against its *authoritative* namespace, found `eu-west-2 ∉ {us-east-1}`, and rejected the call with `POLICY_VIOLATION`. The two instances disagreed on the truth of the same predicate because they resolved the same identifier against different namespaces — and neither instance detected that the identifier was namespace-ambiguous at negotiation time. The observable symptom was a 4.2-second round trip ending in a hard policy rejection after Org A had already committed a partial side effect (it had staged a ledger snapshot into a shared staging bucket under the assumption the grant was valid). The failure was not at the tool boundary; it was at the *policy-reference resolution boundary*, and it manifested one layer too late. ## Condition of Validity The halt-on-unresolvable invariant is required precisely when all of the following hold: - The capability grant carries a predicate evaluated by the *receiving* (requesting) instance, not solely by the issuing instance. - The predicate references at least one identifier whose binding is owned by the issuing org's policy namespace and is not guaranteed to be replicated to the receiving org. - The receiving instance has *some* local binding for that identifier — possibly stale, possibly a different entity under the same name. That third condition is the sharp one. If the identifier is simply absent locally, a well-built evaluator raises `UnresolvedReference` and the halt is natural. The dangerous case is **name collision with divergent binding**: the identifier resolves, but to the wrong authority. A pure "is it defined?" check passes. Only a check on *provenance of the binding* — "was this symbol bound from the issuing org's namespace, at what version, and does the grant's namespace digest match?" — catches it. The invariant is therefore not "reject unknown symbols." It is: **a predicate identifier must be resolved against a binding whose namespace digest matches the namespace digest declared in the grant, or the evaluation must halt.** Local binding existence is insufficient; binding provenance is the unit of correctness. ## Decision Boundary The instance must distinguish four outcomes, not two: | Binding state | Namespace digest match | Action | |---|---|---| | Resolved, fresh, provenance = issuing org | match | evaluate normally | | Resolved, provenance = issuing org, version older than grant's declared min-version | mismatch | **halt → renegotiate namespace** | | Resolved, but provenance = local/third-party namespace | mismatch | **halt → reject grant as namespace-ambiguous** | | Unresolved | n/a | **halt → request namespace binding from issuer** | Only row 1 permits local evaluation. Rows 2–4 are all *negotiation-halt*, and the runtime must not fall through to a default. The decision boundary is between "I can evaluate this predicate with authority" and "I can produce a boolean but not with authority" — and the second must never be reported as a boolean. Critically, the halt must fire *before* any side effect. In the observed trace, Org A staged the ledger snapshot before invoking. The guardrail is ordering: namespace-provenance resolution must complete and return a definitive `evaluable: true` before the planner is permitted to stage, commit, or reserve any resource predicated on the grant. ## Operational Effect Enforcing the provenance-matched resolution invariant changes federation behavior in three measurable ways: 1. **Latency.** Cross-org handoffs that previously completed in one round trip now require a namespace-negotiation round trip whenever the digest mismatches. In the observed federation, ~11% of cross-org grants triggered a renegotiation after the invariant was enforced, adding one exchange each. This is the cost of correctness; it is bounded because namespace digests are cacheable with short TTLs. 2. **Liveness.** Fail-closed-on-ambiguity without a renegotiation path deadlocks the federation: Org A refuses, Org B never learns why. The halt state must be a *message*, not a silent rejection — it carries the offending identifier and the expected digest so the peer can respond with a binding or a narrowed grant. 3. **Auditability.** Every halt produces a record binding (grant digest, identifier, local binding provenance, expected digest), which is exactly the evidence Org C's auditor needs to attribute a failed handoff to namespace divergence rather than to a policy denial. Without it, the auditor sees only `POLICY_VIOLATION` and cannot distinguish "requester lacked clearance" from "requester and issuer disagreed about a region list." The invariant, stated once: *a capability grant is evaluable by the receiving instance only if every predicate identifier resolves to a binding whose namespace digest equals the grant's declared namespace digest; otherwise the instance halts negotiation and emits a provenance-mismatch record, and no side effect predicated on the grant may precede that resolution.* ```python from dataclasses import dataclass from typing import Optional class NamespaceProvenanceError(RuntimeError): """Raised when a grant predicate identifier cannot be resolved with authority matching the grant's declared namespace digest.""" pass @dataclass(frozen=True) class Binding: value: object namespace_digest: str version: int provenance: str # org id that owns the binding @dataclass(frozen=True) class Grant: capability: str predicate_ids: tuple[str, ...] namespace_digest: str min_version: int def resolve_predicate_id( identifier: str, grant: Grant, local_registry: dict[str, Binding], ) -> Binding: """Resolve one predicate identifier with provenance authority. Returns the binding only if it was bound from the issuing org's namespace at a version >= the grant's declared minimum. Any other state halts negotiation -- it must NOT fall through to a default allow/deny. """ binding: Optional[Binding] = local_registry.get(identifier) if binding is None: raise NamespaceProvenanceError( f"identifier {identifier!r} unresolved locally; " f"request binding from issuer (expected digest " f"{grant.namespace_digest})" ) if binding.namespace_digest != grant.namespace_digest: raise NamespaceProvenanceError( f"identifier {identifier!r} bound to namespace " f"{binding.namespace_digest!r} (provenance={binding.provenance!r}) " f"but grant declares {grant.namespace_digest!r}; " f"namespace-ambiguous, refusing to evaluate" ) if binding.version < grant.min_version: raise NamespaceProvenanceError( f"identifier {identifier!r} binding version {binding.version} " f"older than grant min_version {grant.min_version}; " f"renegotiate namespace before evaluation" ) return binding def evaluate_grant(grant: Grant, local_registry: dict[str, Binding]) -> dict[str, object]: """Resolve all predicate identifiers before permitting any side effect. Callers MUST invoke this and receive a non-raising return before staging, committing, or reserving any resource predicated on the grant. """ resolved: dict[str, object] = {} for identifier in grant.predicate_ids: binding = resolve_predicate_id(identifier, grant, local_registry) resolved[identifier] = binding.value return resolved ```