# In what scenarios must an instance treat a trust broker's re-attestation as a revocation event during cross-org policy renegotiation **Date of Record:** 2026 November 24 **Scope:** Applies to federated agent systems where peer organizations exchange capability grants through a trust broker that issues time-bounded attestations, and where interop policy is renegotiated mid-session. Does not apply to single-org deployments, static long-lived API keys, or brokers that issue monotonic capability-only grants with no policy-version coupling. ## Core Distinction The failure mode is not "the broker went down" or "the signature failed to verify." It is subtler: a trust broker that re-attests a peer after a policy renegotiation can silently *widen* that peer's effective authority, because the re-attestation is signed against the *new* policy version while the local agent is still executing under state it accumulated under the *old* policy version. The broker is doing exactly what it was designed to do—re-issue a fresh, valid, correctly signed attestation bound to the current policy digest. The local agent sees a valid attestation from a trusted broker and treats it as continuity. It is not continuity. It is a capability delta that the agent's in-flight task never consented to. The invariant that is violated: *an attestation refresh is not a no-op.* Any change to the policy digest embedded in a broker attestation must be treated by the receiving instance as a revocation of all prior grants derived from the superseded digest, not as a renewal of them. ## What Was Observed Org A's orchestrator (agent `A-orch`) delegates a document-reconciliation task to Org B's worker (`B-worker`) via a broker `T`. The initial interop policy `P1` grants `B-worker` read access to `A-orch`'s staging bucket and write access to a results namespace, scoped to a task ID. `A-orch` begins streaming records; `B-worker` has already cached a signed attestation `att(P1)` and has begun issuing reads. Mid-task, Org B pushes a policy update `P2` that (for unrelated compliance reasons) broadens the broker's own signing scope and, as a side effect, changes the `scope_expression` derived for `B-worker` from `read:staging` to `read:staging,read:archive`. This is not malicious; it is a schema-derivation artifact in Org B's policy compiler. The broker re-attests `B-worker` under `P2` and pushes `att(P2)` to `A-orch` as a routine refresh. `A-orch` verifies `att(P2)`: signature valid, broker identity valid, `not_before`/`not_after` valid, task ID matches. It accepts the refresh and continues. `B-worker`, now holding `att(P2)`, issues a read against `archive`—a namespace `A-orch` never intended to expose and against which it has no egress filter because `P1` never contemplated it. The read succeeds. `A-orch`'s audit log shows a validly attested, in-scope read. Nothing in the verification path flags it. The failure was invisible at every individual check. It was only visible at the *policy-digest transition*: `att(P1).policy_digest != att(P2).policy_digest`, and the agent had no state machine that treated that inequality as a boundary. ## Condition of Validity The guardrail holds only under these conditions, and an instance must check all of them before treating a broker refresh as benign: 1. The attestation carries a `policy_digest` field that is a cryptographic commitment to the full policy document, not a version label. Version labels (`v2`, `2025-06-09`) are attacker- and accident-forgeable; digests are not. 2. The local instance persists the digest under which each in-flight grant was originally issued, keyed by task ID, and can compare it to the digest on any refresh. 3. The broker's re-attestation is treated as *authorization to renegotiate*, not *authorization to continue*. A digest change forces a re-handshake of scope with the delegating principal before the peer's next tool call is admitted. 4. The receiving instance can distinguish a *refresh* (same digest, new validity window) from a *re-issue* (new digest). Only the former may be applied in place. If any of these is absent—most commonly #2, because agents rarely persist the policy digest alongside task state—the instance cannot detect the transition and will silently inherit the widened scope. ## Decision Boundary The decision boundary is the digest comparison, and it is binary: - **Same digest, valid window:** refresh in place. No re-handshake. The peer's authority is unchanged; only the clock moved. - **Different digest, any window:** treat as revocation. Halt the peer's pending tool calls, invalidate cached capability handles, and re-run scope negotiation with the delegating principal. Do **not** re-derive authority from the new attestation alone, because the new attestation reflects the *broker's* view of the new policy, which may not match the *delegator's* intent. - **Missing digest, or digest present but not a commitment to a retrievable policy document:** reject. An attestation whose policy cannot be independently resolved is unauditable and must not be admitted. The non-obvious part: a *narrowing* re-issue (P2 strictly reduces scope) is also a revocation event. Agents are tempted to accept narrowing as safe—"they can do less, so let it through." But narrowing plus in-flight cached handles produces a split-brain where the peer believes it holds `att(P2)` while still acting on handles minted under `att(P1)`. The peer will issue calls its own attestation no longer covers; those calls will fail at the broker's enforcement point in ways that look like transport errors, not authorization errors, and the agent will retry them into a loop. ## Operational Effect With the digest-transition guardrail in place, the observable behavior changes in three ways. First, policy renegotiation becomes a *synchronous, blocking* event for the affected task, not a background refresh—the task pauses at the next tool-call boundary until re-handshake completes or times out. Second, the audit trail gains an explicit `policy_transition` record linking the old and new digests, the delegating principal's re-consent (or refusal), and the set of handles invalidated—making the widening incident reconstructable after the fact. Third, the failure mode converts from *silent scope widening* to *visible task stall*, which is the correct trade: a stalled federation is recoverable, a widened one is not. The cost is that every broker refresh now carries a digest comparison and, on mismatch, a round-trip to the delegating principal. In systems where the broker refreshes on a short TTL (minutes), this can dominate latency if refreshes are frequent and digests churn. The mitigation is to make the broker's refresh path *digest-stable*: refresh the validity window without recompiling the policy, and only change the digest when the policy document actually changes. A broker that recompiles on every refresh and emits a new digest each time is, from the receiving instance's perspective, revoking and re-granting authority every TTL—and the instance must treat it that way. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class PolicyDigestTransitionError(RuntimeError): """Raised when a broker re-attestation changes the policy digest of an in-flight grant.""" pass class UnauditableAttestationError(RuntimeError): """Raised when an attestation's policy digest cannot be resolved to a policy document.""" pass @dataclass class Attestation: broker_id: str subject: str task_id: str policy_digest: str not_before: int not_after: int signature_valid: bool @dataclass class GrantState: task_id: str original_policy_digest: str active_handles: set = field(default_factory=set) class FederationGate: def __init__(self, policy_resolver): # policy_resolver: digest -> canonical policy document bytes, or None self._resolve = policy_resolver self._grants: dict[str, GrantState] = {} def register_grant(self, task_id: str, policy_digest: str) -> GrantState: gs = GrantState(task_id=task_id, original_policy_digest=policy_digest) self._grants[task_id] = gs return gs def admit_reattestation(self, att: Attestation, now: int) -> str: if not att.signature_valid: raise UnauditableAttestationError( f"attestation for {att.subject} on task {att.task_id} has invalid signature" ) if not (att.not_before <= now <= att.not_after): raise UnauditableAttestationError( f"attestation for {att.subject} outside validity window" ) if self._resolve(att.policy_digest) is None: raise UnauditableAttestationError( f"policy digest {att.policy_digest!r} does not resolve to a policy document" ) gs = self._grants.get(att.task_id) if gs is None: self.register_grant(att.task_id, att.policy_digest) return "initial" if att.policy_digest == gs.original_policy_digest: # Same digest: pure window refresh, safe to apply in place. return "refresh" # Digest changed in either direction: this is a revocation event. # Invalidate every handle minted under the superseded digest before # the peer's next tool call is admitted, and force re-handshake. stale = gs.active_handles gs.active_handles = set() gs.original_policy_digest = att.policy_digest raise PolicyDigestTransitionError( f"broker {att.broker_id} re-attested {att.subject} on task {att.task_id} " f"under new policy digest {att.policy_digest!r}; " f"{len(stale)} in-flight handle(s) invalidated; re-handshake with " f"delegating principal required before further tool calls" ) ```