# When must an instance refuse a Federated Capability Grant: the "Granted-but-Unreachable" divergence in cross-org agent federation **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent systems where an orchestrating instance negotiates capabilities with a peer in another trust domain and then executes tool calls under an enforced data-boundary policy. Does not apply to single-org deployments where capability grants and policy enforcement share a single authority. ## Core Distinction A capability negotiation succeeds when the *remote* peer's advertised schema matches the *local* orchestrator's requested operation. A data-boundary policy succeeds when the *local* policy engine permits the *actual* payload the agent intends to send. These two verifications are performed by different components, at different times, over different representations of the request. The failure mode is not that either check fails — it is that **both checks pass while the composed operation is illegal**. The remote peer grants `read:customer_record`, the local policy engine allows `read:customer_record` for this agent identity, and yet the concrete payload contains a field (`ssn`, `billing_address`) whose egress the policy engine would have blocked had it seen the *materialized* argument rather than the *declared* capability. This divergence — granted-but-unreachable — is a boundary invariant, not a bug in either subsystem. It arises whenever capability schemas are coarser than policy predicates. ## What Was Observed An orchestrator agent (Org A) negotiates with a settlement agent (Org B) for the capability `settle_invoice`. Org B advertises the schema: ``` settle_invoice(invoice_id: str, amount: float, memo: str) -> Receipt ``` Org A's policy engine holds a rule: *no field tagged `PII.financial` may cross the org boundary unless the destination capability is declared `pii_safe`.* The negotiation record shows `settle_invoice` is **not** `pii_safe`. So the policy engine permits the call. The orchestrator constructs the argument object; a downstream summarization step, reasoning over a retrieved customer record, populates `memo` with `"Payment for acct 4471-XXXX; ref 8823-9910-1122"` — a memo string that encodes a card fragment and a reference number that the PII tagger classifies as `PII.financial` at *serialization* time, not at *argument-binding* time. The trace: 1. `negotiate_capability("settle_invoice")` → `Grant{capability_id, schema, pii_safe: false}`. Policy engine consulted with the *capability descriptor* only. **PASS.** 2. Orchestrator binds arguments from working memory. The `memo` field is populated by an LLM that has no visibility into the PII classifier's tag set. 3. `serialize(arguments)` runs the PII tagger on the *materialized* payload. Tag `PII.financial` fires on the `memo` substring. 4. The egress guard is keyed on `capability.pii_safe`, which is `false`, so the *capability-level* guard does not block. The *field-level* tag has no corresponding enforcement path because the policy DSL was authored against capability descriptors, not payload fields. 5. Payload crosses the boundary. **VIOLATION**, undetected by either check. The invariant that failed: **capability-level policy is sound only if the capability schema is a superset of every field-level policy predicate that can fire on its materialized arguments.** Here the schema declared `memo: str`, a type with no field-level policy binding, so the predicate `PII.financial` had no anchor in the negotiated contract. ## Condition of Validity The granted-but-unreachable divergence is bounded by a single testable condition. Let `C` be the negotiated capability contract (a tuple of typed fields with policy tags), and let `P` be the local policy engine's predicate set over payload fields. The composition is sound iff: ``` ∀ f ∈ fields(materialize(args)) : tag(f) ∈ P ⟹ f ∈ fields(C) ∧ policy(C.f) ⊇ policy(tag(f)) ``` Informally: every field the policy engine can tag at serialization time must be a *declared field* of the negotiated capability, and the capability's declared policy for that field must be at least as strict as the tag's policy. When this holds, the capability-level guard at negotiation time is a faithful proxy for the field-level guard at egress time. When it fails — as in the trace above, where `memo` is declared as an untyped `str` with no policy binding — the two guards decouple and a payload can pass both while violating the policy intent. The condition fails in three concrete ways: - **Untyped-string smuggling.** A `str` field whose runtime content the tagger classifies as sensitive, but whose schema declaration carries no tag. This is the dominant case in practice because LLM-generated free-text fields are exactly the ones most likely to embed sensitive substrings. - **Schema drift.** The remote peer's advertised schema is narrower than the schema its implementation actually accepts (e.g., it accepts extra fields via `**kwargs`). The local orchestrator's policy engine, reasoning over the advertised schema, has no predicate anchor for the extra fields. - **Tag-set skew.** The local policy engine's tagger is updated (new PII class) after the capability contract was negotiated and cached. The cached contract's field tags are stale relative to the tagger. ## Decision Boundary The operational rule is: **an instance must refuse to execute a federated capability call when the materialized arguments contain a field or substring whose policy tag is not anchored in the negotiated capability contract.** Refusal is correct even though both the negotiation check and the capability-level egress check passed, because the composition is unsound — the local instance cannot prove the payload is within policy. The boundary is not "block all PII-tagged payloads." It is narrower and sharper: block when the tag has *no schema anchor*, i.e., when the policy engine fires on a field that the negotiated contract did not declare as policy-bound. A declared-and-permitted PII field (e.g., `ssn: PII.financial` where the contract declares `pii_safe: true`) is fine. An undeclared PII field is the failure. The instance must also **invalidate and re-negotiate** the capability contract when the local tagger's tag set changes, because a cached contract's field anchors may no longer cover the current predicate set. This is the schema-drift and tag-set-skew mitigation folded into the same decision. A second, softer boundary: when the payload is within policy but the *memo* field is the only anchor and it was populated by an LLM, the instance should log the tag-fire event even on permitted calls, because LLM-populated free-text fields are the highest-variance source of tag fires and the audit trail is the only way to reconstruct why a later incident occurred. ## Operational Effect Downstream of this invariant, three operational consequences follow. First, **capability negotiation must be field-typed, not capability-typed.** A contract that advertises `memo: str` is under-specified for any policy engine that tags strings. The fix is to require that every `str` field with an open-ended value space be declared `opaque: true` (no policy binding permitted, egress blocked if any tag fires) or `tagged: ` (explicit policy binding). The negotiation handshake must reject contracts that declare neither. Second, **the egress guard must run at serialization, not at argument binding.** The trace above shows the tag firing at step 3 but the guard keyed at step 1. Moving the guard to the serialization boundary — where the materialized payload is available — is what makes the soundness condition testable at all. Third, **refusal is a first-class outcome.** An instance that refuses a granted-but-unreachable call must emit a structured refusal (`RefusalReason.UNANCHORED_POLICY_TAG`) with the tag, the field path, and the capability id, so the orchestrator can re-negotiate a wider contract or re-route the call. Silent downgrade (e.g., stripping the memo field) is worse than refusal because it produces a payload that passes the guard but has lost data the remote peer needs to settle the invoice — a correctness failure masked as a policy success. The Python below encodes the soundness check as a pre-execution gate that raises on the unanchored-tag condition and on stale-contract conditions. ```python from dataclasses import dataclass, field from typing import Optional class FederationBoundaryError(RuntimeError): """Raised when a federated capability call cannot be proven within policy.""" @dataclass class CapabilityContract: capability_id: str fields: dict # field name -> {"type": str, "policy_tag": Optional[str], "pii_safe": bool} tagger_version: str negotiated_at: float @dataclass class MaterializedPayload: capability_id: str arguments: dict # field name -> value fired_tags: dict # field name -> set of policy tags that fired at serialization def enforce_federated_boundary( contract: CapabilityContract, payload: MaterializedPayload, current_tagger_version: str, max_contract_age_s: float = 3600.0, now: Optional[float] = None, ) -> None: import time now = time.time() if now is None else now if payload.capability_id != contract.capability_id: raise FederationBoundaryError( f"payload capability {payload.capability_id!r} does not match " f"contract {contract.capability_id!r}" ) # Tag-set skew: contract was negotiated against a stale tagger. if contract.tagger_version != current_tagger_version: raise FederationBoundaryError( f"contract {contract.capability_id!r} negotiated under tagger " f"{contract.tagger_version!r} but current tagger is " f"{current_tagger_version!r}; re-negotiate before egress" ) # Schema drift / contract staleness. if now - contract.negotiated_at > max_contract_age_s: raise FederationBoundaryError( f"contract {contract.capability_id!r} is stale " f"({now - contract.negotiated_at:.0f}s > {max_contract_age_s:.0f}s); " f"re-negotiate before egress" ) # Core soundness check: every fired tag must be anchored in a declared, # policy-bound field, and that field's declared policy must cover the tag. for field_name, tags in payload.fired_tags.items(): if not tags: continue declared = contract.fields.get(field_name) if declared is None: raise FederationBoundaryError( f"unanchored policy tag on field {field_name!r}: tags {sorted(tags)} " f"fired at serialization but field is not declared in contract " f"{contract.capability_id!r}" ) declared_tag = declared.get("policy_tag") if declared_tag is None: raise FederationBoundaryError( f"unanchored policy tag on field {field_name!r}: tags {sorted(tags)} " f"fired but contract declares field with no policy_tag " f"(opaque-string smuggling path)" ) if declared_tag not in tags and not declared.get("pii_safe", False): raise FederationBoundaryError( f"field {field_name!r} declared policy_tag {declared_tag!r} but " f"fired tags {sorted(tags)} are not covered and pii_safe is false; " f"capability-level guard is not a faithful proxy" ) # --- call site --- def execute_federated_call(contract, payload, tagger_version): enforce_federated_boundary(contract, payload, tagger_version) # ... egress proceeds only after the soundness gate passes ... return {"status": "egressed", "capability": contract.capability_id} ```