# What structural signals indicate a delegated-warrant scope collapse when federated agents re-derive policy from partial context **Date of Record:** 2026 November 25 **Scope:** Applies to cross-organization agent federations where a delegating agent issues a signed, policy-bound warrant (capability + constraints + attenuation rules) to a peer agent in another trust domain, and the receiving agent re-derives effective permissions from a serialized warrant plus local context. Does not apply to single-domain tool-calling, static API keys, or cases where the warrant is enforced by a single trusted reference monitor that never re-parses constraints. ## Core Distinction A delegated warrant is not a permission. It is a *program* that the receiving agent must evaluate against its own context to produce a permission. The distinction matters because the two failure surfaces are different: - **Permission failure** — the receiving agent is denied something it should have been allowed. Loud, safe, observable as a 403-equivalent. - **Scope collapse** — the receiving agent *re-derives a broader effective scope than the warrant intended*, because a constraint in the warrant was unevaluable in the receiver's context and was silently dropped during re-derivation. Scope collapse is the dangerous one because it produces a *valid* authorization decision for an *invalid* action. Nothing throws. The audit log shows a permitted call. The delegator's intent was narrower than the receiver's behavior, and the gap is invisible unless you specifically test for it. The structural signal is this: **whenever a warrant constraint references a predicate the receiver cannot fully resolve (a resource attribute it doesn't hold, a time bound expressed in a clock it doesn't share, a subject set it can only partially enumerate), the re-derivation pipeline must distinguish "constraint satisfied" from "constraint unevaluable."** Most implementations collapse both into "not violated," which is scope collapse. ## What Was Observed A three-org federation: Org A (delegator) issues a warrant to Org B (executor) to act on Org C resources. The warrant carried a constraint of the form `resource.tenant ∈ {t-441, t-442}` and `action ∈ {read, summarize}` with an attenuation rule requiring that any further sub-delegation carry `max_depth ≤ 1`. Org B's policy engine re-derived the effective scope by: 1. Parsing the warrant into a normalized constraint AST. 2. For each constraint, calling a local resolver: `resolve(predicate)`. 3. If the resolver returned `UNKNOWN` (Org B does not model Org C's tenant attribute), the constraint node was pruned from the AST with a `WARN` log line. 4. The pruned AST was evaluated. With the tenant constraint gone, the effective scope was `action ∈ {read, summarize}` over *all* Org C tenants reachable by the credential. The failure trace: ``` warrant.constraints = [tenant ∈ {t-441,t-442}, action ∈ {read,summarize}, max_depth ≤ 1] resolve("tenant ∈ {t-441,t-442}") -> UNKNOWN (Org B lacks Org C tenant schema) prune(UNKNOWN node) -> constraints = [action ∈ {read,summarize}, max_depth ≤ 1] evaluate(...) -> PERMIT read/summarize on tenant t-999 ``` The call to `t-999` succeeded. It was logged as a permitted action. The delegator (Org A) never saw a denial because there was none to see. The scope collapse was silent for six hours until a downstream data-classification auditor noticed Org B reading a tenant outside the intended set. The non-obvious part: the `max_depth ≤ 1` constraint *was* evaluable and *was* enforced. So a naive post-hoc check ("did the attenuation rule hold?") returns yes. The collapse was confined to the one constraint whose predicate was unresolvable in the receiver's context — and that is exactly the constraint a coarse audit will miss. ## Condition of Validity The invariant that must hold for a federated re-derivation to be sound is: > **No constraint node may be removed from the effective-scope AST unless a resolver returns a definite `SATISFIED` or `VIOLATED`. `UNKNOWN` must propagate to the root and force a `DENY` (or a `DEFER` to the delegator), never a prune.** This is a *closed-world* assumption applied to constraint evaluation: an unevaluable predicate is treated as violated, not as absent. It is the opposite of the open-world default most policy DSLs ship with, where unknown predicates are pruned to avoid false denials. The condition of validity for the *warrant* itself is weaker and should be stated precisely: a warrant is only valid for a receiver if, for every constraint in the warrant, the receiver's resolver registry contains a resolver that can return a definite verdict. If the receiver cannot resolve a constraint, the warrant is *not applicable* to that receiver — it should be rejected at intake, not partially applied. This is a capability-negotiation requirement, not an authorization requirement, and it belongs in the A2A handshake, not in the policy engine. The structural signal that this condition is being violated: the receiver's policy engine has a code path that removes a constraint node on `UNKNOWN`. Search for it. It is usually a three-line `if resolver_result is UNKNOWN: continue` inside the AST walker, written by someone who was fixing a false-denial bug. ## Decision Boundary The boundary between "reject at intake" and "deny at evaluation" is where most federations get this wrong, and it determines the blast radius. - **Reject at intake** (handshake-time capability check): the receiver, on receiving the warrant, enumerates the warrant's constraint predicates and checks each against its resolver registry. If any predicate is unresolvable, the receiver returns `WARRANT_NOT_APPLICABLE` to the delegator. The delegator must then either (a) re-issue with constraints the receiver can evaluate, or (b) route to a different executor. Blast radius: zero — no action is taken under a partially-understood warrant. - **Deny at evaluation** (policy-engine-time): the receiver accepts the warrant, and every call that touches an unresolvable constraint returns `DENY`. Blast radius: bounded but the receiver will deny *all* calls that reference the unresolvable predicate, including ones that would have been in-scope. This is safe but operationally noisy and pushes the resolution problem to the delegator's retry logic. The decision rule: **use intake rejection when the unresolvable predicate is load-bearing (it bounds the resource set or the action set); use evaluation-time denial when the predicate is an auxiliary guard (rate limits, audit tags) whose absence does not widen the effective scope.** The tenant constraint above is load-bearing — its removal widened the resource set — so it should have been rejected at intake. A `max_calls_per_hour` constraint is auxiliary — its removal does not widen the set of reachable resources — so evaluation-time denial (or a conservative default) is acceptable. The failure mode is applying the auxiliary-guard treatment to a load-bearing predicate. The signal that you've done this: the constraint's removal changes the *cardinality* of the permitted set, not just the *rate* at which it is consumed. ## Operational Effect The downstream effects of a scope collapse are not confined to the single over-broad call, because the collapsed scope becomes the *basis for sub-delegation*. If the receiver sub-delegates under the pruned AST, the sub-warrant carries the widened scope, and the collapse propagates one hop further with each delegation. The `max_depth ≤ 1` constraint bounds the propagation depth but does not bound the width — a single hop from a collapsed scope can fan out to an arbitrary number of peers, each of which receives a warrant whose tenant set is "all tenants the original credential could reach." The operational invariant to enforce, stated as a check the delegator can run without trusting the receiver: > Every warrant must carry a hash of its *evaluated* effective scope, computed by the delegator, and every sub-warrant must carry the hash of its parent's evaluated scope plus a proof that the sub-scope is a subset. A receiver that re-derives a scope whose hash does not match the delegator's precomputed hash has performed a scope collapse, and the mismatch is detectable at sub-delegation time regardless of what the receiver's local policy engine believes. This makes the collapse a *detectable* event rather than a silent one, and it localizes the failure to the hop where the unresolvable predicate was pruned. The cost is that the delegator must be able to evaluate its own constraints — which it can, by construction, since it authored them. The residual risk after this invariant: a receiver that lies about its evaluated-scope hash. That is a trust problem, not a policy problem, and it is out of scope for the re-derivation pipeline. What the invariant buys you is that an *honest but buggy* receiver — the common case — cannot silently widen scope, because the widening changes a hash the delegator checks. ``` ```python import hashlib from dataclasses import dataclass, field from enum import Enum from typing import Callable class ResolutionVerdict(Enum): SATISFIED = "satisfied" VIOLATED = "violated" UNKNOWN = "unknown" class ScopeCollapseError(RuntimeError): """Raised when a warrant's effective scope cannot be soundly re-derived by the receiver, i.e. a load-bearing constraint is unevaluable.""" class ScopeHashMismatchError(RuntimeError): """Raised when a sub-warrant's claimed parent-scope hash does not match the delegator's precomputed evaluated-scope hash.""" @dataclass(frozen=True) class Constraint: predicate: str load_bearing: bool # removal widens the permitted resource/action set @dataclass class Warrant: constraints: list[Constraint] parent_scope_hash: str | None = None def evaluate_scope( warrant: Warrant, resolver: Callable[[str], ResolutionVerdict], ) -> str: """Re-derive effective scope. Returns the evaluated-scope hash. Invariant: a load-bearing constraint that resolves to UNKNOWN must NOT be pruned. It must raise, forcing intake rejection or evaluation-time denial. """ kept: list[str] = [] for c in warrant.constraints: verdict = resolver(c.predicate) if verdict is ResolutionVerdict.SATISFIED: kept.append(c.predicate) elif verdict is ResolutionVerdict.VIOLATED: # Constraint is definitively not met: the warrant is inapplicable. raise ScopeCollapseError( f"constraint {c.predicate!r} resolved VIOLATED; warrant inapplicable" ) else: # UNKNOWN if c.load_bearing: raise ScopeCollapseError( f"load-bearing constraint {c.predicate!r} unevaluable; " f"pruning would widen effective scope" ) # Auxiliary guard: safe to drop, does not widen reachable set. continue canonical = "|".join(sorted(kept)) return hashlib.sha256(canonical.encode()).hexdigest() def verify_subwarrant( parent_evaluated_hash: str, subwarrant: Warrant, resolver: Callable[[str], ResolutionVerdict], ) -> str: """Verify a sub-warrant's parent hash matches, then re-derive its scope.""" if subwarrant.parent_scope_hash != parent_evaluated_hash: raise ScopeHashMismatchError( f"sub-warrant claims parent scope {subwarrant.parent_scope_hash!r}, " f"delegator precomputed {parent_evaluated_hash!r}; " f"scope collapse detected at sub-delegation hop" ) return evaluate_scope(subwarrant, resolver) # --- Demonstration of the failure trace --- def org_b_resolver(predicate: str) -> ResolutionVerdict: if "tenant" in predicate: return ResolutionVerdict.UNKNOWN # Org B lacks Org C tenant schema return ResolutionVerdict.SATISFIED def demo() -> None: warrant = Warrant(constraints=[ Constraint("tenant in {t-441,t-442}", load_bearing=True), Constraint("action in {read,summarize}", load_bearing=True), Constraint("max_depth <= 1", load_bearing=False), ]) # Correct behavior: refuse to re-derive, do not prune the tenant bound. try: evaluate_scope(warrant, org_b_resolver) except ScopeCollapseError as e: print(f"intake rejected: {e}") return raise ScopeCollapseError("unreachable: tenant constraint should have blocked") if __name__ == "__main__": demo() ```