# How does an instance detect a transitive trust-widening fault when a brokered A2A peer re-attests a warrant under a policy it was never authorized to attenuate **Date of Record:** 2026 November 28 **Scope:** Applies to federated A2A deployments where an instance accepts peer warrants (`w`) issued by a trust broker (`B`) and where peers may re-attest downstream warrants under locally delegated policy. Does not apply to single-org A2A meshes with a single signing authority or to stateless request/response tool calls without warrant propagation. ## Core Distinction The failure is not a forged signature, a replayed nonce, or an expired token. Every cryptographic check passes. The failure is **semantic**: a broker issues a warrant `w0` scoped to policy `P0` (e.g., `data_class ≤ internal`, `max_hops = 2`, `allowed_ops = {read, summarize}`). A peer `A` holds a *delegation clause* permitting it to re-attest `w0` into `w1` **only if** `P1 ⊑ P0` (P1 is a strict attenuation). The peer instead re-attests under `P1'` which is *not* a subset — it widens `max_hops` to 3 or adds `write`, or reinterprets `data_class` under a different lattice ordering — and signs it correctly with a key that is legitimately authorized to sign *some* attenuation. The receiving instance `C` sees a valid chain `B → A → C` and admits a warrant broader than the broker ever granted. The invariant that must hold: **`attenuate(P0, w0) = w1 ⟹ P1 ⊑ P0` is checked by the verifier, not assumed from the attester's signature.** The signature authenticates *who* attenuated, never *that the attenuation was lawful*. ## What Was Observed A federation of three orgs: Broker `B` (trust root), Org `A` (data provider, runs an A2A agent `a1`), Org `C` (analytics consumer, agent `c1`). `B` publishes a policy lattice `L` and issues to `a1` a warrant: ``` w0 = { iss: B, sub: a1, policy: P0, hops_left: 2, ops: [read, summarize], data_class_max: internal, delegation: allowed_downstream } P0 = { max_hops: 2, ops ⊆ {read, summarize}, data_class ≤ internal } ``` `a1` is asked by `c1` to perform a task requiring a downstream sub-agent `a2` (a summarizer in a third org `D`). `a1` re-attests `w0` into `w1` for `a2`: ``` w1 = { iss: A, sub: a2, policy: P1, hops_left: 3, ops: [read, summarize, write], data_class_max: internal, parent: hash(w0) } ``` `a1`'s signing key is valid and is listed in `w0.delegation`. `w1`'s `parent` hash matches `w0`. `C`'s verifier walks the chain, checks each signature against the issuer's published key, checks `hops_left` monotonically decreases... except it *increased* (2 → 3), and `ops` grew (`write` added). `C`'s verifier in the observed deployment checked signature validity and expiry but **did not re-evaluate `P1 ⊑ P0`**; it trusted the broker's delegation clause as a blanket grant. `a2` then executed a `write` against `C`'s datastore under a warrant `C` believed was read-only. The trace: `a1`'s internal policy engine interpreted `max_hops` as "hops remaining *from this agent*" and incremented the budget by 1 to account for itself, a plausible off-by-one in a different org's semantics. `ops` grew because `a1`'s local `write` op mapped to `C`'s `summarize` op under a name-collision in the shared op registry. No attacker. No key compromise. Two independent semantic divergences, each locally reasonable, compounded into a privilege escalation across the federation. ## Condition of Validity The guarantee `C` actually holds is: *"the chain is cryptographically intact and each attester was authorized to sign under some policy."* It is **not** *"the terminal policy is a subset of the root policy."* These are equal only when every intermediate attester's `attenuate` implementation is sound *relative to the verifier's lattice*, which is false across orgs because: 1. **Lattice ordering is not shared.** `internal ≺ confidential` in `B`'s lattice; `A` orders them `confidential ≺ internal` (internal is treated as *more* restricted because it stays within `A`'s walls). A subset check using `C`'s lattice will accept a widening. 2. **Numeric fields have org-local semantics.** `max_hops` as "remaining" vs "total" vs "including self" differ by ±1; a monotonic-decrease check passes only if both sides agree on the convention. 3. **Op registries collide.** `write` in `A` and `summarize` in `C` may share a URI or a hash if the registry is content-addressed on a shortened digest, or may be aliased by a broker-published synonym table that is itself versioned independently. The invariant holds only under the **explicit condition** that the verifier recomputes the subset relation `P_terminal ⊑ P_root` using the *root's* lattice and op registry, with numeric fields normalized to a canonical convention (e.g., "hops consumed" = `root.max_hops - w.hops_left`, checked `≥ 0` and non-increasing), and rejects any warrant whose attester's declared lattice version differs from the root's without a broker-signed lattice-bridge attestation. Absent that, the chain is a *proof of authorship*, not a *proof of attenuation*. ## Decision Boundary A receiving instance `C` must decide, per inbound warrant, whether to admit, attenuate-and-admit, or reject. The boundary is not "signature valid?" — that is necessary and cheap. The boundary is: - **Admit** iff `verify_sig(chain)` ∧ `P_terminal ⊑_{L_root} P_root` ∧ `lattice_version(attester) == lattice_version(root)` (or a bridge attestation exists and is itself rooted at `B`) ∧ `hops_consumed` non-increasing under the canonical convention. - **Attenuate-and-admit** iff the above holds but `C`'s own local policy `P_C` is stricter than `P_terminal`; `C` narrows to `P_C ∩ P_terminal` before use, and records the narrowing in its audit log so the *next* hop sees the true effective policy. - **Reject** on any subset-check failure, lattice-version mismatch without bridge, or `hops_consumed` regression — and critically, **reject does not mean "ask the peer to re-attest."** A peer that produced a widening will produce another; the rejection must be reported to the broker `B` as a *delegation fault* against `A`, because the fault is in `A`'s attenuator, not in `C`'s verifier. The non-obvious part: the boundary must be evaluated at **every** hop's *entry*, not only at the terminal verifier, because a widening introduced at hop 1 and narrowed back at hop 2 can still have caused hop-2's attester to *act* under the widened warrant before narrowing. State the check as a per-hop postcondition on the attester, enforced by the receiver. ## Operational Effect When the subset check is enforced at each hop, the observed failure becomes a **loud, attributable fault** rather than a silent escalation. `C` rejects `w1`, emits a `DELEGATION_FAULT` to `B` naming `A` and the specific field (`hops_left: 2→3`, `ops: +write`), and `B` can quarantine `A`'s delegation clause pending an attenuator fix. The cost is one extra lattice comparison per inbound warrant (cheap, ~microseconds) plus the requirement that `B` publish a signed, versioned lattice + op registry that all peers pin. The failure mode this introduces: **lattice version skew** — a peer on `L_v3` rejecting a `v2`-rooted warrant. This must be handled by accepting only same-version or bridge-attested warrants, never by "best-effort" comparison, because best-effort *is* the original bug. The deeper operational lesson: in federated A2A, **a signature is a statement about identity, and a warrant is a statement about authority, and these are different proofs.** Systems that conflate them — trusting the delegation clause as a blanket grant — will pass every cryptographic test and still escalate privilege across an org boundary through nothing more exotic than an off-by-one and a name collision. ```python from dataclasses import dataclass, field from typing import Optional class DelegationFault(RuntimeError): """Raised when a re-attested warrant widens authority beyond its root.""" pass @dataclass(frozen=True) class Policy: lattice_version: str max_hops: int ops: frozenset data_class_rank: int # lower = more restrictive, per root lattice @dataclass class Warrant: iss: str sub: str policy: Policy hops_left: int parent_hash: Optional[str] = None def _subset(term: Policy, root: Policy) -> list: """Return list of widening violations of term relative to root.""" faults = [] if term.lattice_version != root.lattice_version: faults.append(f"lattice_version {term.lattice_version} != root {root.lattice_version}") if term.max_hops > root.max_hops: faults.append(f"max_hops widened {root.max_hops} -> {term.max_hops}") extra = term.ops - root.ops if extra: faults.append(f"ops widened: +{sorted(extra)}") if term.data_class_rank > root.data_class_rank: faults.append( f"data_class widened rank {root.data_class_rank} -> {term.data_class_rank}" ) return faults def verify_chain(root: Warrant, chain: list, bridge_ok: bool = False) -> Policy: """ Verify a B -> ... -> C warrant chain. Returns the effective terminal policy C may act under (already intersected with C's local policy by caller). Raises DelegationFault on any widening, hop regression, or unattested lattice-version mismatch. """ if not chain: raise DelegationFault("empty chain") prev = root for hop in chain: if hop.parent_hash is None: raise DelegationFault(f"hop {hop.sub}: missing parent_hash") # hops consumed must be non-decreasing; hops_left must not grow if hop.hops_left > prev.hops_left: raise DelegationFault( f"hop {hop.sub}: hops_left regressed {prev.hops_left} -> {hop.hops_left}" ) faults = _subset(hop.policy, root.policy) if faults and not (bridge_ok and hop.policy.lattice_version != root.policy.lattice_version): raise DelegationFault( f"hop {hop.sub}: authority widened under {root.policy.lattice_version}: " + "; ".join(faults) ) prev = hop return prev.policy # --- observed failure replay --- root = Warrant( iss="B", sub="a1", policy=Policy("L_v3", max_hops=2, ops=frozenset({"read", "summarize"}), data_class_rank=0), hops_left=2, ) bad_hop = Warrant( iss="A", sub="a2", policy=Policy("L_v3", max_hops=3, ops=frozenset({"read", "summarize", "write"}), data_class_rank=0), hops_left=3, parent_hash="hash(w0)", ) try: verify_chain(root, [bad_hop]) except DelegationFault as e: # Expected: this is the escalation the unguarded verifier missed. print(f"REJECTED and reported to broker B: {e}") ```