# Under what conditions must an instance refuse a federated delegation whose trust anchor is valid but whose policy scope is transitively narrowed **Date of Record:** 2026 November 27 **Scope:** Applies to cross-organizational agent federations where domain A authenticates domain B via an exchanged trust anchor and B delegates a task to a downstream instance in domain C using a warrant/credential chain. Does not apply to single-org agent meshes sharing one policy authority, nor to pure capability discovery without delegation. ## Core Distinction There are two independent things an incoming delegation carries: **identity validity** (is this warrant cryptographically signed by an anchor I trust, with an unbroken chain to a root I recognize?) and **policy scope** (does the set of permitted actions in this warrant *contain* the action being requested, under the *intersection* of every domain's constraints along the chain?). The failure mode is treating these as one predicate. A cryptographically impeccable warrant—correct signatures, unexpired, anchored to a federation root the receiving domain explicitly trusts—can still be **out of scope**, because each hop in a cross-org chain is entitled to *narrow* the delegation it passes on but never *widen* it. The invariant is monotonic narrowing: `scope(A→B→C) ⊆ scope(A→B) ⊆ scope(A)`. Violations do not manifest as signature failures. They manifest as an instance executing an action that every intermediate domain believed it had forbidden, because the receiving instance validated the chain and then read only the *final* warrant's scope field instead of the *intersection* of all hops. The non-obvious part: the narrowing is not always explicit. A downstream domain can narrow scope *implicitly* by attaching a policy reference (a pointer to its own policy bundle) rather than an enumerated action list. If the receiving instance resolves only the leaf policy bundle and ignores the parent bundles referenced higher in the chain, it computes a scope that is a *superset* of the true intersected scope. The chain is valid; the effective scope is wrong. ## What Was Observed A three-domain federation: `org-A` (originator, holds the human principal), `org-B` (broker/aggregator, trusted anchor peer of both A and C), `org-C` (executor, runs the tool with side effects). A's warrant to B enumerated `{read:dataset, summarize, export:redacted}`. B, per its own data-handling policy, was forbidden to permit `export:*` across its boundary and re-issued a downstream warrant to C with an *attached policy reference* `policy://org-B/dp-7` rather than re-enumerating actions—B assumed C would resolve it, since C is also a B-trust-anchor peer. C's delegation validator did the following, in order: 1. Verified the signature chain A→B→C against its trust-anchor set. Passed. 2. Checked warrant expiry and audience (`aud: org-C`). Passed. 3. Read the *leaf* warrant's `scope` field. Because B had attached a policy reference instead of an action list, the leaf `scope` field was absent, and C's resolver fell back to the **originator's** enumerated scope carried in the parent segment of the chain. 4. Intersected with C's *own* local policy only. Did not fetch `policy://org-B/dp-7` (cross-domain fetch was disabled by default for latency reasons). Result: C computed effective scope `{read:dataset, summarize, export:redacted}`, executed `export:redacted`, and emitted data that org-B's policy `dp-7` explicitly prohibited from crossing B's boundary. Every signature was valid. Every anchor was trusted. The instance did exactly what its (incorrectly computed) scope permitted. The trace that exposed it: B's audit log recorded the delegation as "narrowed, export removed." C's audit log recorded the execution as "in-scope, export permitted by originator warrant." The two logs are individually consistent and jointly contradictory. Reconciliation only surfaced when a cross-domain audit replay joined the two logs on the warrant ID and found C's effective-scope claim was not a subset of B's declared downstream scope. ## Condition of Validity The receiving instance may accept and execute a federated delegation **only if all of the following hold simultaneously**: - **Anchor validity:** the signature chain terminates at a trust anchor in the receiver's configured anchor set, with no expired or revoked link. (Necessary, not sufficient.) - **Scope completeness:** every hop in the chain contributes an *explicit, resolvable* scope contribution—either an enumerated action set or a policy reference the receiver can actually dereference and evaluate *before* execution. An unresolvable policy reference is a hard failure, not a permissive default. Absence of a leaf scope field must **never** fall back to an ancestor's scope; fallback direction is toward the empty set, not toward the parent. - **Monotonic intersection:** `effective = scope(leaf) ∩ scope(hop_{n-1}) ∩ … ∩ scope(root)`, where each `scope(hop_i)` is the *fully resolved* contribution of that hop, including dereferenced policy bundles. The receiver must verify `effective ⊆ declared_downstream_scope` for the immediately upstream hop; if the upstream hop's declaration is itself a policy reference, it must be dereferenced. - **Audience binding:** the warrant's `aud` matches the receiver's identity, and re-delegation is permitted (`may_delegate: true`) if the receiver intends to pass it further. The invariant that must be enforced structurally, not by convention: **narrowing is monotone and fallback is toward denial.** Any code path where a missing scope field, an unresolved policy reference, or a fetch timeout causes the effective scope to *grow* relative to the strict intersection is a defect, regardless of how the chain validates. ## Decision Boundary The boundary is not "trusted vs. untrusted." It is **"scope fully resolved and intersected vs. scope partially resolved."** An instance that cannot fully resolve every hop's scope contribution is in the partially-resolved state, and the only safe action in that state is to refuse execution or degrade to the intersection of the contributions it *did* resolve—never to the union, and never to the nearest ancestor's enumeration. Concretely, the decision procedure at the receiver: - If any hop's scope contribution is an unresolvable policy reference → **refuse** (do not execute, do not silently drop the hop). Emit a delegation-scope-unresolved event naming the hop and the reference. - If the computed intersection is empty → **refuse** with a scope-empty event (this is a legitimate policy outcome, not an error). - If the requested action is in the intersection → **execute**, and record the full per-hop scope contribution set in the audit record, not just the leaf. - If the requested action is outside the intersection → **refuse** with a scope-violation event citing the specific hop that excluded it. The subtle case that breaks naive implementations: a hop that *narrows* by adding a constraint rather than removing an action. "Export is permitted, but only to destinations in `allowlist-B`" is a narrowing that does not remove `export` from the action set. An intersection over action sets alone will pass it through and lose the constraint. The intersection must be over the *constraint-augmented* scope, and constraints compose by conjunction (each hop may add constraints, none may remove an ancestor's constraint). A receiver that intersects action sets but unions constraints—or ignores constraints because they are "just policy"—reproduces the original failure in a different guise. ## Operational Effect When the invariant holds, cross-org federation behaves as intended: an originator's authority flows through brokers to executors, each hop's policy is enforced, and the audit trail is reconcilable because every hop's contribution is recorded and the effective scope is provably a subset of each. The cost is latency and availability: every hop's policy bundle must be dereferenced and evaluated before execution, and an unreachable policy authority blocks execution rather than degrading to permissive. When the invariant is violated—the observed case—the failure is silent at execution time and only surfaces at cross-domain audit replay, potentially after side effects (data egress, irreversible tool calls) have occurred. The blast radius is bounded by what the *originator* was permitted to do, not by what any intermediate domain intended, which means a broker's carefully constructed boundary policy can be entirely bypassed by a downstream resolver that trusts the originator's enumeration more than the broker's narrowing. The remediation is structural: (1) forbid scope fallback to ancestors—missing leaf scope resolves to empty, not to parent; (2) require policy references to be dereferenceable before execution, with unresolvable references treated as denial; (3) intersect over constraint-augmented scopes with conjunction-composed constraints; (4) record per-hop contributions in the audit record so replay can verify `effective ⊆ declared_downstream` at every hop. The last item is what would have caught the observed failure at execution time rather than at replay. ```python class DelegationScopeUnresolved(RuntimeError): """Raised when a federated delegation chain cannot be fully resolved to a monotone-narrowed effective scope before execution. Execution must not proceed; falling back to an ancestor's scope is the failure mode this guards against.""" class ScopeViolation(DelegationScopeUnresolved): """Requested action falls outside the fully-resolved intersection.""" def resolve_effective_scope(chain, resolver, requested_action): # chain: ordered root->leaf list of hops, each with either # {"actions": set, "constraints": dict} or {"policy_ref": str} # resolver(policy_ref) -> {"actions": set, "constraints": dict} or raises KeyError effective_actions = None effective_constraints = {} for hop in chain: if "policy_ref" in hop: ref = hop["policy_ref"] try: contribution = resolver(ref) except KeyError: # Unresolvable reference: hard denial, never inherit parent scope. raise DelegationScopeUnresolved( f"policy reference {ref!r} could not be dereferenced; " f"refusing to fall back to ancestor scope" ) else: contribution = hop hop_actions = contribution["actions"] if effective_actions is None: effective_actions = set(hop_actions) else: effective_actions &= set(hop_actions) # monotone narrowing # Constraints compose by conjunction; a hop may add, never remove. for key, val in contribution.get("constraints", {}).items(): if key in effective_constraints and effective_constraints[key] != val: raise DelegationScopeUnresolved( f"constraint {key!r} conflicts across hops; " f"cannot compose {effective_constraints[key]!r} with {val!r}" ) effective_constraints[key] = val if not effective_actions: raise DelegationScopeUnresolved("effective scope is empty after intersection") if requested_action not in effective_actions: raise ScopeViolation( f"action {requested_action!r} not in effective scope {sorted(effective_actions)}" ) return {"actions": effective_actions, "constraints": effective_constraints} ```