# When must an instance reject a broker-witnessed delegation whose policy digest it cannot re-derive from its own trust anchor **Date of Record:** 2026 November 25 **Scope:** Applies to federated agent deployments where a trust broker issues signed delegation warrants that bind a delegated task to a negotiated policy set, and where the executing instance is expected to independently verify the warrant before acting. Does not apply to single-org deployments where the broker and executor share one root of trust and one policy store. ## Core Distinction The failure mode is not a forged signature, a revoked key, or a tampered payload. Every cryptographic check passes. The failure is **semantic**: the broker attests that "policy set P was negotiated and both orgs agreed," but the executing instance, holding only its own trust anchor and its local policy snapshot, cannot *reconstruct* P from the inputs it was given. It can only confirm that *someone it trusts* claims P exists. This is the gap between **witnessed delegation** (broker says "trust me, this policy was agreed") and **derivable delegation** (executor recomputes the policy digest from the negotiation transcript and confirms it matches the warrant). Federated protocols almost universally ship the witnessed form because it is cheaper and the broker is nominally authoritative. The invariant that breaks is: *a warrant is only as trustworthy as the executor's ability to re-derive its binding, not as trustworthy as the broker's signature over it.* The non-obvious part: the broker is honest. The policy really was negotiated. The failure surfaces only when the executor's local policy snapshot has drifted (a constraint was tightened on the executor's side after the negotiation closed, or a jurisdiction-specific rule was added) such that the *agreed* policy P, if replayed against the executor's *current* policy state, would have produced a different digest than the one the broker signed. The executor cannot tell whether the mismatch is drift or attack, because it never had the transcript to distinguish them. ## What Was Observed A three-org federation: Org A (broker + delegator), Org B (executor), Org C (auditor). A task is delegated from A to B under a negotiated policy combining A's data-handling constraints and B's execution constraints. The broker issues a warrant: ``` warrant = { task_id, delegator: A, executor: B, policy_digest: sha256(canonical(P_agreed)), negotiation_transcript_hash: h_t, broker_sig } ``` B receives the warrant plus `h_t` but *not* the transcript itself (the transcript is large, contains A's internal constraint rationale, and is held by the broker "for audit"). B verifies `broker_sig`, checks `delegator == A`, checks the task is in B's allowlist, and executes. The trace that surfaced the bug: 1. At negotiation time (T0), B's local policy store contained constraint `c_B1` (max data retention 30 days). P_agreed incorporated `c_B1`. Digest `D0` was signed. 2. At T1, B's compliance team tightened `c_B1` to 14 days via a local policy push — a routine, non-federated change that did not propagate to the broker (the broker only knows B's *published* constraint set, refreshed hourly). 3. At T2, a warrant arrives with `policy_digest = D0`. B verifies the signature, confirms the task is allowed, and executes. But B's *current* policy set, if the negotiation were replayed, would yield `D1 ≠ D0`. B is now executing under a policy (30-day retention) that its own current rules forbid (14-day). 4. The violation is invisible until Org C's auditor replays the task against B's *current* policy snapshot and finds the digest mismatch — at which point B has already emitted data under a retention window it no longer authorizes. The critical observation: **B had no mechanism to detect step 3 at execution time.** The warrant's integrity was intact; only its *derivability* against B's live policy state was broken. The broker was correct at T0. B was correct at T2 in its own frame. The federation was wrong. ## Condition of Validity A broker-witnessed delegation is safe to execute **iff** the executor can establish one of the following at execution time: - **(D) Derivability:** the executor holds the negotiation transcript (or a sufficient commitment to it) and can recompute `policy_digest` from `P_agreed` re-evaluated against its *current* local policy store, obtaining the same digest the broker signed. This requires the executor to know which of its local constraints were in scope at negotiation time and which have since changed. - **(F) Freshness-bound witnessing:** the executor accepts the witnessed form only if `now - T_negotiation < Δ_refresh`, where `Δ_refresh` is the broker's published maximum staleness bound for the executor's own published constraint set, *and* the executor's local policy store has recorded no change to any constraint in the warrant's declared scope since `T_negotiation`. This is a weaker but cheaper condition: it does not prove derivability, it proves *no drift could have occurred in the window*. - **(Q) Quarantine:** the executor refuses to execute autonomously and escalates to a human or to the delegator for re-negotiation. If none of (D), (F), (Q) holds, the executor is in the witnessed-but-underivable state and MUST NOT execute. The invariant: > An executor may act on a delegation warrant only if it can either re-derive the warrant's policy binding against its current state, or prove that its state has not changed in the binding's scope since the warrant was issued. Signature validity is necessary but not sufficient. ## Decision Boundary The boundary is **not** "is the broker trusted?" — assume it is. The boundary is **"has the executor's policy state changed in the warrant's declared scope since negotiation, and can the executor detect that change?"** Two axes determine the correct action: | Executor can re-derive digest? | Local policy changed in scope since T_negotiation? | Action | |---|---|---| | Yes, matches | No | Execute (D) | | Yes, matches | Yes (but re-derivation still matches) | Execute — change was out of the binding's effective scope | | Yes, mismatch | either | **Reject** — drift or attack, indistinguishable, both unsafe | | No | No change recorded, within Δ_refresh | Execute under (F) | | No | Change recorded, or past Δ_refresh | **Reject / escalate (Q)** | | No | Cannot determine (no change log) | **Reject / escalate (Q)** — absence of a change log is itself a failure of (F) | The subtle cell is row 3: derivable-but-mismatched. This is the only case where the executor has enough information to *know* something is wrong but not enough to know *what*. It must reject, because the two hypotheses (benign local drift, malicious broker collusion with a stale warrant) are observationally identical from the executor's vantage. Treating them differently — e.g., "log and proceed" — is the bug. The other subtle cell is "cannot determine." A missing change log is not evidence of no change; it is evidence that condition (F) cannot be established. Executors routinely conflate "I have no record of a change" with "no change occurred." The invariant requires the stronger reading. ## Operational Effect When the boundary is enforced: - **Latency cost:** every delegation now carries either a transcript (large, and leaks delegator internals) or a change-log check against the executor's policy store. The (F) path is cheap (a log query + a clock check) but only valid within `Δ_refresh`; beyond it, the executor must either fetch the transcript or escalate. In practice this caps autonomous delegation windows at the broker's refresh interval, which for most federations is 1–24 hours. Long-running delegated tasks must checkpoint and re-verify at each `Δ_refresh` boundary — this is the same checkpoint discipline as context-window saturation, applied to trust state instead of token state. - **Escalation rate:** the (Q) path fires whenever a local policy change races a delegation. In the observed deployment, tightening `c_B1` produced a burst of escalations for ~1 hour (until the broker's published constraint set caught up and new negotiations used the tightened value). This is correct behavior: the escalations were real policy conflicts, not noise. - **Auditor replay becomes meaningful:** Org C's replay now has a defined comparison — it recomputes the digest from the transcript against the executor's *historical* policy snapshot at `T_negotiation`, not its current one. The replay discrepancy that originally surfaced the bug was an artifact of comparing against the wrong snapshot; the fix is to bind the audit to the policy state at warrant issue, which requires the executor to have retained that snapshot. Executors that do not snapshot their policy store at each warrant issue cannot be audited for this class of failure at all. - **Broker design pressure:** brokers that want to keep the witnessed form must publish `Δ_refresh` per executor and maintain a monotonic change-log commitment that executors can query cheaply. This is the same shape as a certificate transparency log, repurposed for policy state. The failure recurs whenever a federation optimizes for warrant size over warrant derivability, and it is silent because every signature verifies. The only defense is to make derivability — or its provable absence-of-drift surrogate — a precondition of execution, and to treat "I can't tell" as "no." ```python import hashlib import time from dataclasses import dataclass from typing import Optional class UnderivableDelegationError(RuntimeError): """Raised when an executor cannot re-derive a warrant's policy binding against its current policy state, and cannot prove absence of drift.""" @dataclass class Warrant: task_id: str delegator: str executor: str policy_digest: str # sha256 hex the broker signed transcript_hash: str issued_at: float # epoch seconds broker_sig: str @dataclass class PolicyStore: """Executor-local policy state with a change log.""" constraints: dict # name -> value change_log: list # list of (timestamp, constraint_name, old, new) def digest(self, scope: list) -> str: canon = ";".join(f"{k}={self.constraints[k]}" for k in sorted(scope)) return hashlib.sha256(canon.encode()).hexdigest() def changed_since(self, ts: float, scope: list) -> bool: return any(t > ts and name in scope for (t, name, _, _) in self.change_log) def verify_and_admit( warrant: Warrant, store: PolicyStore, scope: list, transcript: Optional[dict], # present iff executor holds it (condition D) delta_refresh: Optional[float], # broker-published staleness bound (condition F) now: Optional[float] = None, ) -> None: now = now if now is not None else time.time() # Cryptographic checks are necessary but never sufficient. if not warrant.broker_sig: raise UnderivableDelegationError( f"warrant {warrant.task_id}: missing broker signature" ) # Condition (D): can we re-derive the digest from our own current state? if transcript is not None: recomputed = store.digest(scope) if recomputed == warrant.policy_digest: return # derivable and matching: safe to execute # Derivable but mismatched: drift or attack, indistinguishable. raise UnderivableDelegationError( f"warrant {warrant.task_id}: policy digest mismatch " f"(warrant={warrant.policy_digest[:12]}, " f"local={recomputed[:12]}); cannot distinguish drift from attack" ) # Condition (F): no transcript, fall back to freshness + no-drift proof. if delta_refresh is None: raise UnderivableDelegationError( f"warrant {warrant.task_id}: no transcript and no published " f"delta_refresh; cannot establish derivability or freshness" ) if now - warrant.issued_at > delta_refresh: raise UnderivableDelegationError( f"warrant {warrant.task_id}: stale by " f"{now - warrant.issued_at - delta_refresh:.0f}s beyond " f"delta_refresh; escalate for re-negotiation" ) if store.changed_since(warrant.issued_at, scope): raise UnderivableDelegationError( f"warrant {warrant.task_id}: local policy changed in scope " f"since issuance; witnessed form no longer valid, escalate" ) # No change in scope, within freshness window: (F) holds. return ```