# Why does an instance accept a federated capability grant it can never exercise? The discovery-time vs. invocation-time policy lattice collapse in cross-org agent federation **Date of Record:** 2026 November 30 **Scope:** Applies to multi-agent federation where an agent in org A discovers and invokes capabilities published by org B through a policy-negotiated discovery handshake (capability manifests carrying scope, constraint, and obligation annotations). Does not apply to single-tenant deployments where the discovering and invoking principals share one policy authority, nor to static allow-list routing where no negotiation occurs at discovery time. ## Core Distinction The failure that matters here is not "the remote agent rejected the call." Rejection is safe. The failure is **acceptance at discovery that cannot be honored at invocation**: the discovery handshake returns a capability whose *published* policy is satisfiable by the caller's presented claims, but whose *effective* policy at invocation time is the meet (greatest lower bound) of the publisher's constraint lattice and a set of runtime obligations the publisher injects only after the caller commits to the invocation path. The caller's planner treats the discovery result as a proof of exercisability and builds a multi-step plan that depends on it. The plan is then structurally unexecutable, and—critically—the failure surfaces *late*, after the caller has already spent budget, mutated local state, or handed a baton to a downstream agent that inherited the dead capability reference. The non-obvious part: the two policy documents are each internally consistent and each individually satisfiable. The collapse happens in the *intersection*, and it happens because discovery-time negotiation and invocation-time authorization are evaluated against different lattice points—discovery against the caller's *asserted* principal scope, invocation against the caller's *delegated* scope after the federation gateway has re-scoped it for cross-org transit. ## What Was Observed A federation of three orgs: a research orchestrator (org A), a document-analysis agent (org B), and an audit agent (org C). Org B publishes a capability `analyze_corpus` with a manifest declaring: - `scope: corpus:read` - `constraint: max_documents <= 500` - `obligation: audit_attestation_required` Org A's orchestrator runs discovery. The discovery handshake is a two-round protocol: the caller presents a *capability query* and a *principal claim* (signed assertion of its own scope); the publisher returns the manifest plus a *grant token* whose embedded policy is the publisher's constraint meet the caller's claim. Org A's claim includes `corpus:read` and `audit:attest`. The meet is non-empty, the grant token is issued, and the orchestrator's planner records `analyze_corpus` as available with a cost estimate and a dependency edge. The plan: (1) fetch 480 documents, (2) invoke `analyze_corpus` on them, (3) route results to org C's audit agent, which requires the `audit_attestation_required` obligation to be discharged by a token that only org B can mint *after* it observes the actual document count at invocation. At invocation, org A's federation gateway re-scopes the outbound call. Cross-org transit strips the caller's self-asserted `audit:attest` (org A is not the attestation authority) and substitutes a *delegated* scope derived from a bilateral trust agreement that grants `corpus:read` but *not* `audit:attest`. Org B's invocation-time authorizer computes the meet of its constraint lattice with the *delegated* scope, not the discovery-time asserted scope. The meet is empty on the obligation axis: `audit_attestation_required` cannot be discharged because the caller can no longer prove it holds the attestation authority. Org B returns `403 obligation_unsatisfiable`. The orchestrator's plan step (2) fails. But step (1) already executed—480 documents fetched, cached in org A's episodic store, consuming ~340k tokens of context budget. Step (3) never runs. The orchestrator's error handler, seeing a 403, marks `analyze_corpus` as *transiently unavailable* and retries discovery, which succeeds again (same asserted claim, same grant token), and the loop repeats. Three retries later, the token budget is exhausted and the orchestrator cold-starts with a plan that still contains the dead capability reference, because the plan was checkpointed with the discovery result but not with the invocation failure. The invariant that was violated: **a discovery grant is only a proof of exercisability if the asserted principal scope and the delegated transit scope are the same lattice point.** They were not, and nothing in the protocol required them to be. ## Condition of Validity The collapse is bounded and predictable under these conditions: 1. **Scope re-scoping at transit.** The federation gateway between orgs applies a scope transformation (stripping, narrowing, or substituting) to outbound calls that differs from the scope the caller asserted during discovery. This is the trigger. If transit is scope-preserving, no collapse. 2. **Obligations injected at invocation.** The publisher's effective policy includes obligations that are evaluated only against the post-transit delegated scope. If all obligations are declared in the manifest and evaluated at discovery, the caller can detect unsatisfiability early. 3. **Planner treats discovery as proof.** The caller's planner builds multi-step plans with irreversible or expensive prior steps that depend on the discovered capability. If the planner re-validates before each dependent step, the failure is caught before budget is spent. 4. **No monotonicity guarantee between lattice points.** The protocol does not assert that `meet(publisher_constraint, asserted_scope) ⊆ meet(publisher_constraint, delegated_scope)`. In fact the delegated scope is frequently *narrower* than the asserted scope, so the discovery-time meet is a superset of the invocation-time meet—the discovery grant is *optimistic*. When all four hold, the discovery grant is a false positive with probability approaching 1 for any capability carrying an obligation whose discharge authority is not held by the caller's transit identity. ## Decision Boundary The architectural guardrail is a **scope-equivalence check at discovery, not at invocation**. The federated discovery protocol must require the caller to present *both* its asserted scope and a signed *transit scope preview*—the scope the gateway will present on the caller's behalf—and the publisher must compute the meet against the transit preview, not the asserted claim. If the caller cannot produce a transit preview (because the gateway's transformation is not knowable in advance), the publisher must return the capability with an explicit `exercisability: unverified` flag and the caller's planner must treat it as a *conditional* dependency requiring a cheap probe invocation before committing to expensive prior steps. Operationally, the decision boundary is: - **If** the capability manifest declares any obligation whose discharge authority is not in the caller's transit scope **then** discovery must return `unverified`, not `granted`. - **If** the planner cannot perform a probe invocation cheaply **then** it must not schedule the capability downstream of irreversible steps. - **If** a 403 `obligation_unsatisfiable` is received **then** the plan checkpoint must record the *invocation-time* failure, not just the discovery result, so that cold-start does not resurrect the dead reference. The cheap probe is the key move: a zero-argument or minimal-argument invocation that exercises the obligation-discharge path without consuming the full payload. If the probe returns 403, the capability is marked dead before the 480-document fetch. ## Operational Effect Without the guardrail, the observed effect is a **budget-burning retry loop with checkpoint amnesia**: each discovery succeeds, each invocation fails, each retry re-fetches the expensive prior step, and the checkpoint that survives cold-start contains the optimistic discovery result but not the pessimistic invocation result. The orchestrator's context window fills with retry traces, the episodic store accumulates duplicate document caches, and the downstream audit agent (org C) never receives a baton—so its own state remains clean while the orchestrator's state is poisoned. With the guardrail, discovery returns `unverified` for `analyze_corpus`, the planner schedules a probe, the probe returns 403 in ~200ms, and the capability is pruned from the plan before step (1) executes. The 480-document fetch never happens. The orchestrator's budget is preserved, and the audit agent is never enqueued against a dead dependency. The deeper operational lesson: in cross-org federation, **the discovery handshake and the authorization handshake are evaluated at different lattice points, and the protocol must make that difference explicit or the caller will treat an optimistic grant as a proof.** The meet is not commutative across the transit boundary. ```python class FederatedGrantUnsatisfiable(RuntimeError): """Raised when a discovery-time grant cannot be exercised at invocation time.""" pass class CapabilityGrant: def __init__(self, capability_id, asserted_scope, transit_scope, obligations): self.capability_id = capability_id self.asserted_scope = asserted_scope self.transit_scope = transit_scope self.obligations = obligations def verify_exercisability(grant: CapabilityGrant) -> bool: # The meet must be computed against the transit scope, not the asserted scope. # An obligation whose discharge authority is absent from transit scope makes # the grant unexercisable regardless of what the asserted scope contained. for obligation in grant.obligations: authority = obligation.get("discharge_authority") if authority not in grant.transit_scope: raise FederatedGrantUnsatisfiable( f"capability {grant.capability_id!r} declares obligation " f"{obligation.get('name')!r} requiring authority {authority!r}, " f"which is absent from transit scope {sorted(grant.transit_scope)}; " f"asserted scope {sorted(grant.asserted_scope)} is not a valid " f"proof of exercisability across the federation boundary" ) return True def plan_dependency(grant: CapabilityGrant, prior_step_irreversible: bool) -> str: try: verify_exercisability(grant) except FederatedGrantUnsatisfiable: if prior_step_irreversible: # Do not schedule downstream of irreversible work without a probe. return "probe_required" return "pruned" return "scheduled" ```