# Where must an instance re-verify a federated capability grant after a policy renegotiation that silently widened scope **Date of Record:** 2026 November 23 **Scope:** Applies to cross-organization agent federation where a routing agent (the *broker*) negotiates capability grants with peer-org agents (the *providers*) using a signed policy envelope, and where grants may be renegotiated mid-session. Does not apply to single-org deployments with a shared trust root, nor to stateless request/response tool calls with no negotiated envelope. ## Core Distinction The distinction that matters is between **grant validity** and **grant scope stability**. A federated capability grant carries two independent properties: (1) it is cryptographically valid (signed by an org the broker trusts, unexpired, non-revoked), and (2) it authorizes a *specific set of actions* described in its scope clause. Most federation implementations re-verify (1) on every hop and treat (2) as immutable once the envelope is accepted. That assumption is false whenever the provider is permitted to *renegotiate* the envelope — for example, when a provider responds to a `policy_reject` with a counter-proposal that the broker accepts to keep the task alive. The failure mode is not signature forgery. It is **scope drift under renegotiation**: a renegotiated envelope that is fully valid, correctly signed, and accepted by the broker's negotiation logic, but whose scope clause is *broader* than the scope the broker's own policy engine originally authorized for the downstream task. The broker then routes work under the widened grant while its local authorization record still reflects the narrow one. Every signature check passes; the invariant that breaks is "the scope under which work executes equals the scope the broker's policy engine approved." ## What Was Observed A three-org federation: broker `B` (org A), provider `P1` (org B, holds the data), provider `P2` (org C, holds the compute). `B` needs `P2` to run an analysis over a dataset `P1` will release. The initial negotiation produces envelope `E0` with scope `read:dataset/d-4417, compute:summarize`. `P1` rejects the `read` clause (its policy requires a purpose binding), returns `policy_reject` with a counter-proposal. `B`'s negotiation handler accepts the counter-proposal, producing `E1` with scope `read:dataset/d-4417, read:dataset/d-4418, compute:summarize, compute:export`. The counter-proposal bundled two extra clauses: `d-4418` was included because `P1`'s policy engine grouped "related datasets" as an atomic unit, and `export` was included because `P2`'s compute policy treats `summarize` and `export` as a single capability tier. `B`'s negotiation handler validated `E1`'s signature against `P1` and `P2` trust roots — both valid. It checked expiry — valid. It checked that `E1`'s scope was a *superset* of `E0`'s scope (a sanity check that renegotiation didn't drop required capabilities) — passed. It did **not** check that `E1`'s scope was a *subset* of what `B`'s own policy engine had authorized for the task. The task ran. `P2` executed `compute:export` against `d-4418`, writing a derived artifact to a location `B`'s policy engine had classified as outside the task's data-handling boundary. The violation was detected only in a post-hoc audit replay, three hops later, when the artifact's lineage was traced back to a grant the audit tool could not reconcile with `B`'s authorization record. The trace: 1. `B` policy engine authorizes task `T` with scope `S_auth = {read:d-4417, compute:summarize}`. Recorded locally. 2. `B` → `P1`: `negotiate(E0)`, scope `S_auth`. 3. `P1` → `B`: `policy_reject` + `counter(E1)`, scope `S_auth ∪ {read:d-4418, compute:export}`. 4. `B` negotiation handler: signature valid, expiry valid, `S(E1) ⊇ S(E0)` → accept. **No check against `S_auth`.** 5. `B` → `P2`: `execute(E1)`. `P2` validates `E1` against its own trust root and its own policy — both pass, because `P2`'s policy permits `export` within the tier. 6. `P2` executes `compute:export` on `d-4418`. Artifact written outside `B`'s data boundary. 7. Audit replay: `B` cannot reconcile `E1`'s scope with `S_auth`. Violation flagged post-hoc. The non-obvious part: step 4's superset check is the *wrong direction*. It guards against renegotiation dropping capabilities the task needs, which is the failure operators anticipate. The actual boundary failure is renegotiation *adding* capabilities the broker's policy never approved, and the superset check passes it through by construction. ## Condition of Validity The invariant that must hold for federated routing to be safe is: > For every envelope `E` under which work is executed, `scope(E) ⊆ S_auth(task)`, where `S_auth(task)` is the scope recorded by the broker's policy engine at authorization time — **not** the scope of the previous envelope, and **not** the scope the provider claims is equivalent. This invariant holds only if the broker re-checks scope containment against its *own* authorization record at every envelope transition, including renegotiation. It fails whenever the broker treats a valid signature as sufficient evidence of scope authorization, or whenever it compares the new envelope to the previous envelope instead of to the authorization record. A second, weaker invariant that is often substituted and is insufficient: `scope(E_new) ⊆ scope(E_old)`. This catches scope *narrowing* across renegotiation but not the case where renegotiation legitimately widens scope in a way the broker's policy engine would reject. The substitution is tempting because `E_old` is the only scope the broker has "seen" — but `E_old` was itself derived from `S_auth` by the same negotiation path, so comparing to it is circular. ## Decision Boundary The decision the broker's negotiation handler must make at each envelope transition is binary: **accept the new envelope and route under it, or reject and fail the task**. The boundary condition is: - If `scope(E_new) ⊆ S_auth(task)` for the task the envelope will be used for → accept. The envelope is a valid narrowing or an equivalent re-expression. - If `scope(E_new) ⊄ S_auth(task)` → the envelope requests capabilities outside the broker's authorization. This is not a negotiation failure to be smoothed over; it is a **policy boundary crossing** that requires either (a) re-authorization of the task by the broker's policy engine with the widened scope explicitly approved, or (b) rejection of the envelope and failure of the task. The boundary is sharp and must not be softened by "the provider says it's equivalent" or "the extra clauses are harmless in this context." Harmlessness is a property the broker's policy engine evaluates, not the provider's. A provider that bundles `read:d-4418` into a counter-proposal because its internal policy treats related datasets as atomic is making a *correct* statement about its own policy and an *irrelevant* statement about the broker's authorization. The broker must not conflate the two. The failure to route work under an unapproved envelope is cheap: the task fails, the operator sees a policy-boundary event, and the negotiation can be retried with explicit re-authorization. The failure to *detect* the widened scope is expensive: it produces a silent, signed, auditable-looking violation that surfaces only in replay. ## Operational Effect The operational consequence is that **renegotiation is a policy event, not a negotiation event**. Implementations that model it as negotiation (a handler that accepts counter-proposals and produces a new envelope) will systematically miss scope widening, because negotiation handlers are built to find agreement, and agreement is exactly what a widened envelope represents. The handler must be split: a negotiation component that proposes and receives envelopes, and a policy component that gates every envelope transition against the authorization record. The gate must run on the *broker's* side, before routing, and must be the same gate used for initial authorization — not a separate "renegotiation check" with different (weaker) logic. Second-order effect: audit replay must be able to reconstruct `S_auth(task)` at the time of execution, not at the time of audit. If the authorization record is mutable (e.g., updated when renegotiation succeeds), the replay will reconcile the widened envelope against the *updated* record and report no violation. The authorization record must be append-only and the envelope must carry a reference to the specific authorization record version it was gated against, so replay can check `scope(E) ⊆ S_auth(task, version)` for the version in force at execution. Third-order effect: cross-org trust means the broker cannot assume the provider's policy engine shares its notion of scope equivalence. Two providers may each correctly report that their bundled clauses are "atomic within their policy" while the bundle crosses the broker's boundary. The broker must treat provider scope claims as *inputs to* its own policy evaluation, never as *substitutes for* it. ```python from dataclasses import dataclass, field from typing import FrozenSet class ScopeBoundaryViolation(RuntimeError): """Raised when a renegotiated envelope exceeds the broker's authorized scope.""" pass @dataclass(frozen=True) class Envelope: envelope_id: str scope: FrozenSet[str] signer_org: str signature_valid: bool @dataclass class AuthorizationRecord: task_id: str version: int authorized_scope: FrozenSet[str] # Append-only: new versions are added, never mutate prior entries. class FederatedBroker: def __init__(self) -> None: self._auth_records: dict[str, list[AuthorizationRecord]] = {} def authorize(self, task_id: str, scope: FrozenSet[str]) -> AuthorizationRecord: versions = self._auth_records.setdefault(task_id, []) rec = AuthorizationRecord(task_id=task_id, version=len(versions) + 1, authorized_scope=scope) versions.append(rec) return rec def current_auth(self, task_id: str) -> AuthorizationRecord: return self._auth_records[task_id][-1] def gate_envelope(self, task_id: str, envelope: Envelope) -> None: """Gate every envelope transition, including renegotiation, against the broker's OWN authorization record -- not the previous envelope.""" if not envelope.signature_valid: raise ScopeBoundaryViolation( f"envelope {envelope.envelope_id} signature invalid" ) auth = self.current_auth(task_id) excess = envelope.scope - auth.authorized_scope if excess: # Do NOT compare against previous envelope; compare against auth. raise ScopeBoundaryViolation( f"envelope {envelope.envelope_id} (signer={envelope.signer_org}) " f"requests scope outside authorization v{auth.version} for task " f"{task_id}: {sorted(excess)}. Renegotiation cannot widen scope " f"without explicit re-authorization." ) def renegotiate_and_route(self, task_id: str, counter: Envelope) -> Envelope: # The counter is fully valid and correctly signed by the provider. # It is still rejected if it widens scope beyond the auth record. self.gate_envelope(task_id, counter) return counter def demo() -> None: broker = FederatedBroker() broker.authorize("T-1", frozenset({"read:d-4417", "compute:summarize"})) # Provider counter-proposal: valid signature, but bundles extra clauses. counter = Envelope( envelope_id="E1", scope=frozenset({"read:d-4417", "read:d-4418", "compute:summarize", "compute:export"}), signer_org="org-B", signature_valid=True, ) broker.renegotiate_and_route("T-1", counter) # raises if __name__ == "__main__": demo() ```