# How should an instance reconcile delegated authorization scopes when a cross-org trust federation re-issues a capability mid-execution **Date of Record:** 2026 November 27 **Scope:** Applies to multi-org agent deployments where an executing instance holds a delegated capability (warrant/scope token) issued by a foreign trust anchor and that warrant is re-issued, rotated, or narrowed by the issuing org during an in-flight task. Does not apply to single-org capability issuance, nor to static pre-task scope negotiation that completes before execution begins. ## Core Distinction The failure is not "expired token." It is **scope-set divergence between the warrant the instance reasoned over at plan time and the warrant it is actually presenting at call time**, when the two are both individually valid. A foreign org (the *issuer*) re-issues a delegated scope mid-task—typically to narrow an over-broad grant, rotate a signing key, or propagate a revocation from a peer org. The executing instance (the *holder*) continues running a plan it compiled against the *old* scope set. Every individual tool call still authenticates, because the new warrant is cryptographically valid and the holder's identity key is unchanged. What silently breaks is the *authorization predicate the plan encoded*: steps the instance believed were permitted are now out-of-scope, and the instance has no local signal that the predicate changed. The non-obvious invariant: **a delegated scope is a constraint on the plan, not merely a gate on each call.** Validation at call granularity cannot detect that the plan is now partially unauthorized, because each surviving call passes. The divergence only manifests as an aggregate—a half-completed multi-step action whose remaining steps are denied, leaving durable side effects committed under a scope that no longer covers their completion. ## What Was Observed A holder instance in org A held a delegated warrant from org B's trust anchor: `scope = {read:customer, write:case_note, escalate:tier2}`, TTL 3600s. It compiled a 7-step remediation plan that interleaved `read:customer` lookups with `write:case_note` commits and a terminal `escalate:tier2`. At step 4, org B's policy engine—triggered by a peer-org revocation propagating through the federation—re-issued the warrant, dropping `escalate:tier2` and narrowing `write:case_note` to `write:case_note:internal_only`. The re-issue was pushed to the holder's warrant cache as a valid, signed replacement. The holder's per-call authorizer validated the *current* warrant on each call and accepted steps 4–6 (`read`, `write:internal_only`). At step 7 the `escalate:tier2` call was denied cleanly. The damage was already done: steps 5 and 6 had written case notes tagged for external visibility under the *old* scope assumption, because the plan's step 6 was a `write:case_note` whose *intent* (per the plan's compiled metadata) was external-facing, but whose *call* used the `internal_only` sub-scope that happened to still be valid. The call passed authorization; the semantic intent did not. Audit replay flagged six notes written with a visibility tag the active warrant did not authorize, but every individual call's authorization log showed `ALLOW`. A second observed variant: key rotation re-issued the warrant with an identical scope set but a new `issuer_key_id`. A holder that cached *authorization decisions* keyed by `(call, scope_hash)` rather than by `(call, warrant_id)` reused stale `ALLOW` decisions after rotation, so a *revoked* scope in the new warrant was never re-evaluated for cached calls. The holder executed three calls against a scope that the rotated warrant had removed. ## Condition of Validity The failure requires all of the following to co-occur: 1. **Plan-time scope binding.** The holder compiled a multi-step plan against a snapshot of the warrant's scope set, and the plan's step semantics depend on that snapshot (not just per-call gating). 2. **Mid-execution re-issue.** The issuer replaced the warrant (narrowing, rotation, or revocation propagation) while the plan was in flight, and the replacement reached the holder's cache as valid. 3. **Per-call-only validation.** The holder's authorizer checks the current warrant per call but does not re-validate the *plan* against the new scope set, nor does it detect that a step's compiled intent exceeds the narrowed scope. 4. **Sub-scope aliasing.** The narrowed warrant retains a *sub-scope* that is a valid superset-key for the call's operation (e.g., `internal_only` still satisfies a generic `write:case_note` call), so the call authenticates while its intent is unauthorized. If any one is absent, the failure does not occur: a plan that re-reads scope per step (absence of #1), a static warrant (absence of #2), plan-level re-validation (absence of #3), or non-overlapping sub-scopes (absence of #4) each break the chain. The dangerous quadrant is #1 ∧ #2 ∧ #3 ∧ #4, which is the *default* configuration of most naive federation integrations. ## Decision Boundary The holder must decide, on every warrant-cache mutation, between **continue** and **re-plan/abort**. The boundary is not "is the new warrant valid" (it always is) but **"is the in-flight plan still wholly covered by the new scope set under intent-preserving sub-scope matching?"** Operationalize it as a plan-scope reconciliation predicate, evaluated at each cache mutation and before each step: - Compute `plan_required_scopes` = the union of per-step *intent* scopes compiled at plan time (not the call's runtime scope string). - Compute `active_scope_set` = the new warrant's scope set, expanded to intent-level granularity. - If `plan_required_scopes ⊄ active_scope_set` for any *unexecuted* step, the plan is **partially unauthorized**: halt, do not execute the remaining steps, and either re-plan against `active_scope_set` or abort with a reconciliation record. - If any *executed* step's intent is no longer covered, the plan has **committed unauthorized side effects**: emit a compensating-action record and flag for audit replay; do not silently continue. - Cache authorization decisions keyed by `warrant_id` (not `scope_hash`), and invalidate the entire decision cache on any warrant-cache mutation, so key rotation cannot resurrect stale `ALLOW`s. The guardrail invariant: **the plan, not the call, is the unit of authorization continuity.** A warrant mutation is a plan-invalidating event, not a per-call event. ## Operational Effect Without the reconciliation predicate, the observable signature is a task that "succeeds" at the call layer while committing side effects under a scope the issuer has already revoked—an audit-replay discrepancy where the authorization log shows all-`ALLOW` and the policy engine shows a narrowed warrant at the same timestamps. The instance cannot self-detect this because per-call validation is locally sound; only plan-level reconciliation, keyed to warrant identity and intent-scope subset checks, bounds it. Enforcing the predicate converts a silent partial-authorization into a deterministic halt-and-reconcile, at the cost of aborting plans that a naive per-call path would have "completed" incorrectly. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeDivergenceError(RuntimeError): """Raised when an in-flight plan is no longer covered by the active warrant.""" pass @dataclass(frozen=True) class Warrant: warrant_id: str issuer_key_id: str scopes: FrozenSet[str] @dataclass class PlanStep: step_id: int intent_scope: str # scope the plan *intended*, compiled at plan time executed: bool = False @dataclass class HolderState: active_warrant: Warrant plan: list = field(default_factory=list) decision_cache: dict = field(default_factory=dict) # keyed by (warrant_id, call) def reconcile_on_warrant_mutation(state: HolderState, new_warrant: Warrant) -> None: """Called on every warrant-cache mutation. Halts if plan is partially unauthorized.""" # Key rotation / re-issue invalidates all cached decisions. state.decision_cache.clear() state.active_warrant = new_warrant uncovered_unexecuted = [ s for s in state.plan if not s.executed and s.intent_scope not in new_warrant.scopes ] uncovered_executed = [ s for s in state.plan if s.executed and s.intent_scope not in new_warrant.scopes ] if uncovered_executed: # Committed side effects under a now-revoked scope: must be compensated. raise ScopeDivergenceError( f"warrant {new_warrant.warrant_id} revoked scope(s) already committed by " f"steps {[s.step_id for s in uncovered_executed]}; emit compensating actions" ) if uncovered_unexecuted: # Plan is partially unauthorized: halt before executing remaining steps. raise ScopeDivergenceError( f"warrant {new_warrant.warrant_id} does not cover unexecuted steps " f"{[s.step_id for s in uncovered_unexecuted]}; re-plan or abort" ) def execute_step(state: HolderState, step: PlanStep) -> None: # Intent-scope check, not just runtime call-scope check. if step.intent_scope not in state.active_warrant.scopes: raise ScopeDivergenceError( f"step {step.step_id} intent scope {step.intent_scope!r} not in active " f"warrant {state.active_warrant.warrant_id}" ) state.decision_cache[(state.active_warrant.warrant_id, step.step_id)] = "ALLOW" step.executed = True ```