# What structural signals indicate trust-broker attestation collapse during cross-org agent federation, and how to detect it before task delegation commits **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent systems where a broker agent in Org A delegates a task to a worker agent in Org B under a negotiated capability attestation and policy envelope. Does not apply to single-org agent meshes with a shared trust root, nor to stateless request/response tool calls that carry no delegation warrant. ## Core Distinction The failure mode that matters here is not "an agent lied about its capabilities." That is detectable by attestation signature verification. The non-obvious boundary is **attestation drift under policy renegotiation**: the broker validates a worker's capability attestation at negotiation time, the policy envelope is then amended (scope narrowed, data-classification raised, or budget reduced) as part of the same delegation handshake, and the worker continues executing against the *original* attestation while the broker believes it is enforcing the *amended* envelope. The structural signal is a **divergence between the attestation epoch the worker holds and the policy epoch the broker is enforcing**. These are two independent monotonic counters that the protocol treats as loosely coupled ("the worker will re-attest on policy change") but that in practice decouple whenever the amendment is advisory rather than blocking. The worker is not malicious; it simply never received a re-attestation trigger because the amendment was delivered as a policy diff, not a capability re-challenge. This is distinct from capability/schema negotiation mismatch (which fails loudly at call time) and from warrant propagation failure (which fails at verification time). Attestation-epoch drift fails *silently and persistently*: every individual tool call succeeds, the audit log shows a valid attestation, and the policy violation only surfaces when a downstream auditor replays the delegation chain against the amended envelope. ## What Was Observed During a three-org federation drill (Org A broker, Org B worker, Org C auditor), the following trace was captured across 41 delegated tasks: 1. **t0 — Negotiation.** Broker A sends `delegate(task, required_caps, policy_env_v1)`. Worker B returns attestation `att_B@epoch=7` covering `{read:public_corpus, write:scratch, egress:none}`. Broker verifies signature against Org B's published trust root. Pass. 2. **t1 — Amendment.** Auditor C flags that the task touches a dataset reclassified to `internal`. Broker A issues `amend(policy_env_v2)` narrowing `egress` to `none` *and* raising `data_class` to `internal`. Critically, `required_caps` is unchanged, so the broker's capability-diff logic concludes no re-attestation is needed. The amendment is delivered as a policy message, not a capability challenge. 3. **t2 — Divergent execution.** Worker B applies `policy_env_v2` to its *local* policy engine but continues to present `att_B@epoch=7` on every outbound call. The attestation still asserts `read:public_corpus`, which under v2 is insufficient for `internal` data. Worker B's local engine permits the read because it evaluates against the amended policy, but the *attestation it presents* no longer matches the data class it is actually accessing. 4. **t3 — Silent success.** All 41 tasks returned HTTP 200 with well-formed results. Broker A's per-call attestation check passed every time (epoch 7 is valid and unrevoked). No error was raised in the live path. 5. **t4 — Replay discrepancy.** Auditor C replayed the delegation chain offline. For 9 of 41 tasks, the presented attestation (`att_B@epoch=7`, `read:public_corpus`) was structurally inconsistent with the data class actually read (`internal`). The auditor's verdict: **attestation-envelope mismatch**, a policy violation invisible to the live broker. The decisive structural signal was not an error code. It was the **epoch gap**: `att_epoch=7` vs `policy_epoch=2` with `att_epoch` unchanged across an amendment that altered the data classification. A cheap invariant — "any amendment that changes `data_class` MUST bump the required attestation epoch" — would have caught all 9. ## Condition of Validity The invariant "attestation epoch must advance whenever the policy envelope's data-classification or egress constraints change" is valid **only** under these conditions: - The attestation is *bound* to the policy envelope at issuance (i.e., the attestation payload includes a hash of the envelope it was issued under). If attestations are envelope-agnostic capability claims, epoch comparison is meaningless and you must instead bind at call time. - The broker is the sole authority for policy amendments within the delegation. If the worker or a third party can amend independently, you have a multi-writer problem and need vector clocks, not scalar epochs. - The worker's local policy engine is trusted to *apply* amendments. If the worker might ignore the amendment, epoch drift detection catches the attestation mismatch but not the underlying policy non-compliance; you additionally need call-time envelope-hash checks. Where these do not hold — particularly the first — the correct guardrail is **envelope-hash binding at every tool call**: the worker must present `(attestation, envelope_hash)` and the broker rejects any call where `envelope_hash` does not match its currently-enforced envelope. This is stronger but costs a hash comparison per call rather than per delegation. ## Decision Boundary The boundary between "epoch check suffices" and "per-call envelope-hash binding required" is set by **amendment frequency and blast radius**: - If amendments are rare (≤1 per delegation) and the delegation is short-lived, epoch advancement on amendment is sufficient and cheap. - If amendments are frequent (policy negotiation loops, iterative scope narrowing) or the delegation is long-lived with many tool calls, per-call envelope-hash binding is mandatory — because an epoch check only fires at the next re-attestation boundary, and a long-lived worker may execute dozens of calls in the drift window between amendment and the next epoch bump. - If the auditor's replay is the *only* detection path, you have already lost: replay detects but does not prevent. The decision must be enforced live, at the broker, before the call is dispatched. The operational rule: **never let an amendment that changes `data_class` or `egress` complete without either (a) bumping the required attestation epoch, or (b) arming per-call envelope-hash verification for the remainder of the delegation.** An amendment that does neither is an unenforced policy change. ## Operational Effect Without the guardrail, the federation exhibits a **silent compliance debt**: the live path reports 100% success, the audit path reports a 22% violation rate, and the gap widens with each amendment cycle because drift compounds (each unenforced amendment leaves the worker's attestation further behind the enforced envelope). The broker's trust in the worker is *formally* intact (signature valid, epoch unrevoked) and *substantively* broken (attestation no longer describes the access being performed). The remediation that held in the drill was a two-part guardrail: (1) a broker-side pre-dispatch check that rejects any call whose presented `envelope_hash` differs from the broker's enforced envelope, and (2) an amendment handler that treats `data_class`/`egress` changes as *capability-affecting* and forces re-attestation before the next dispatch. Together these converted the 9 silent violations into 9 loud rejections at t2, at the cost of one hash comparison per call and one forced re-attestation per classification-changing amendment. ```python import hashlib from dataclasses import dataclass class AttestationEnvelopeDrift(RuntimeError): """Raised when a worker's presented attestation no longer matches the policy envelope the broker is enforcing, or when an amendment changes data_class/egress without advancing the required attestation epoch.""" pass @dataclass(frozen=True) class Attestation: org: str epoch: int envelope_hash: str # hash of the envelope this attestation was issued under caps: frozenset @dataclass(frozen=True) class PolicyEnvelope: epoch: int data_class: str # "public" | "internal" | "restricted" egress: str # "none" | "brokered" | "direct" required_caps: frozenset def hash(self) -> str: payload = f"{self.epoch}|{self.data_class}|{self.egress}|{sorted(self.required_caps)}" return hashlib.sha256(payload.encode()).hexdigest() CAPABILITY_AFFECTING_FIELDS = ("data_class", "egress") def amend_envelope(old: PolicyEnvelope, new: PolicyEnvelope, worker_attestation: Attestation) -> PolicyEnvelope: """Apply a policy amendment. If the amendment touches a capability-affecting field, the worker's attestation MUST be re-issued under the new envelope before any further dispatch is permitted.""" changed = {f for f in CAPABILITY_AFFECTING_FIELDS if getattr(old, f) != getattr(new, f)} if changed: # Guardrail: an amendment that changes data_class or egress is # capability-affecting. The attestation must be re-bound. if worker_attestation.envelope_hash != new.hash(): raise AttestationEnvelopeDrift( f"amendment changed {sorted(changed)} but attestation " f"(epoch={worker_attestation.epoch}, " f"envelope_hash={worker_attestation.envelope_hash[:12]}...) " f"was issued under envelope {old.hash()[:12]}..., " f"not the enforced {new.hash()[:12]}...; " f"re-attestation required before dispatch" ) return new def dispatch_call(envelope: PolicyEnvelope, attestation: Attestation, call_envelope_hash: str) -> None: """Pre-dispatch gate: reject any call whose presented envelope hash diverges from the broker's enforced envelope.""" if call_envelope_hash != envelope.hash(): raise AttestationEnvelopeDrift( f"call presented envelope {call_envelope_hash[:12]}... but broker " f"enforces {envelope.hash()[:12]}... (policy epoch={envelope.epoch})" ) if not envelope.required_caps.issubset(attestation.caps): raise AttestationEnvelopeDrift( f"attestation caps {sorted(attestation.caps)} do not cover " f"required {sorted(envelope.required_caps)}" ) ```