# Why does an instance escalate its trust tier on a replayed warrant and then route privileged payloads to a peer that never held the grant? **Date of Record:** 2026 November 21 **Scope:** Applies to cross-organization agent federations where message routing is gated by signed warrants carrying a trust tier, and where a receiving agent may escalate its own tier by presenting a peer's warrant as evidence. Does not cover single-org deployments with a single trust root, nor stateless request/response proxies that do not cache warrants. ## Core Distinction The failure is not "a forged warrant was accepted." Signature verification held. The failure is a **warrant-replay + tier-transitivity** interaction: a warrant W issued by org A to agent B1 (tier 2) is forwarded inside an A2A handoff to agent B2 in org B. B2's policy engine treats "possession of a valid tier-2 warrant" as grounds to *locally escalate* B2 to tier 2, then B2 routes a tier-3 payload to a peer C in org C because B2's *own* new tier satisfies C's inbound check. No single check is wrong. The composition is: **a warrant's subject is not bound to the presenter, and tier is treated as a property of the presenter rather than a property of the (issuer, subject, resource) triple.** The invariant that must hold and does not: *a trust tier is only ever asserted about the specific agent identity named as `sub` in the warrant, for the specific `aud` and `scope` in the warrant, and is never transferable to the holder of the warrant artifact.* Replay turns a capability into a bearer token unless the verification step binds `sub` to the authenticated transport identity of the caller. ## What Was Observed A three-org federation: A (issuer, root of trust for tier grants), B (broker with two agents B1, B2), C (resource holder). Sequence: 1. A issues W = sign_A(`{sub: B1, aud: B2, scope: "read:ledger", tier: 2, nonce: n, exp: t+300}`) so B1 can hand a task to B2 with delegated read authority. 2. B1 sends an A2A `task.handoff` message to B2 carrying W in an `authorization` field, per the federation's handoff schema. 3. B2's inbound policy engine runs `verify(W)` → signature valid, `aud == B2` → accept. It then runs `escalate_local_tier(W.tier)` because the policy text reads "an agent presenting a valid warrant of tier N may operate at tier N." 4. B2 now holds local tier 2. It emits a `task.delegate` to C for a `write:ledger` operation. C checks `presenter.tier >= 3`? No — C's policy for `write:ledger` requires tier 2 *plus* `scope` containing `write:ledger`. The tier passes. The scope check is evaluated against B2's *asserted* scope set, which B2 populated from W's `scope` field (`read:ledger`) merged with its own baseline (`write:ledger` from B's org policy). The merge is where the read grant became a write capability. Observed symptoms in the trace: - B2's audit log shows `tier=2 source=warrant(W)` — it recorded the escalation but not that W's `sub` was B1. - C's audit log shows a legitimate-looking tier-2 write from B2. No signature failure anywhere. - Replaying the same W to B2 a second time produced the same escalation (nonce `n` was checked for *freshness* at issuance, not for *single-use* at presentation; the nonce cache was keyed on `(issuer, nonce)` and populated only on the *first* presentation — but B2 restarted between presentations and the nonce cache was in-memory, so the dedup was lossy across cold starts). - The escalation was sticky: B2 retained tier 2 for the remainder of its process lifetime after W expired, because expiry was checked at `verify(W)` time and never re-evaluated against the local tier record. ## Condition of Validity The escalation is *legitimate* only when all of the following hold simultaneously. The boundary failure occurs when any one is silently dropped: 1. **Subject binding.** The authenticated transport identity of the presenter (mTLS SAN, or the A2A sender's signed `agent_id`) equals `W.sub`. If B2 presents W whose `sub` is B1, the warrant is *evidence about B1*, not a grant to B2. This is the load-bearing check and the one most often omitted because "the signature is valid" feels sufficient. 2. **Audience scoping.** `W.aud` names the *intended recipient of the delegation*, not "any agent allowed to read the warrant." B2 receiving W as `aud` is correct for *accepting a delegated task* but does not make B2 the subject. 3. **Nonce single-use, durable.** Replay protection must survive process restart. An in-memory nonce set is a cold-start amnesia bug wearing a security hat: the agent forgets it already consumed the warrant and re-escalates. 4. **Tier is not merged.** Local tier and warrant-derived authority must be tracked as separate, non-additive sets. `effective_scope = local_scope ∪ warrant_scope` is safe only if `effective_tier = min(local_tier, warrant_tier)` and the warrant scope is *dropped* when the warrant expires — never baked into the agent's persistent capability record. 5. **Expiry re-evaluated at use.** A tier derived from W must be recomputed per outbound message against W's `exp`, not cached at escalation time. ## Decision Boundary The precise line between "correct delegation" and "privilege laundering": - **Delegation (allowed):** B1 holds W with `sub=B1, aud=B2`. B1 uses W to *authorize its own outbound call to B2*. B2 accepts the task and, for actions B2 takes *on B1's behalf within scope*, B2 may act under a *derived, scoped, expiring* authority labeled `on_behalf_of=B1`. B2's *own* tier does not change. - **Laundering (the failure):** B2 treats W as raising B2's tier, then uses that raised tier for actions not traceable to B1's scope. The tell is in the audit record: if the outbound message from B2 to C cannot name `on_behalf_of=B1` and cite W's nonce, the escalation has escaped its warrant. The guardrail is a **capability-narrowing rule at every hop**: an agent may only emit authority that is a subset of the authority it received *for this task*, tagged with the originating warrant's nonce and subject. Tier never increases along a path; scope never widens; and the terminal resource holder (C) must verify the *chain* (`W.sub == B1`, `B1 → B2 on_behalf_of=B1`, `B2 → C on_behalf_of=B1`) rather than a single hop's asserted tier. ## Operational Effect Without the subject-binding and narrowing checks, a federation silently converts read delegations into write capabilities one hop downstream, and the conversion is invisible to per-message signature verification. The blast radius is bounded by the *most permissive scope any agent in the path holds locally*, not by the warrant — so a broker with broad local write scope becomes a write amplifier for every read warrant it receives. Cold-start nonce-cache loss makes replay trivially repeatable across agent restarts, which in practice means every deploy or crash-loop re-opens the window. The fix is structural: bind `sub` to transport identity, make nonce consumption durable, never merge warrant tier into local tier, re-check expiry per emission, and require the resource holder to validate the full `on_behalf_of` chain. An agent that cannot name whose authority it is currently exercising must refuse to emit. ```python from dataclasses import dataclass from typing import Optional class WarrantReplayEscalationError(RuntimeError): """Raised when a warrant is used to escalate a presenter's tier without subject binding, durable nonce consumption, or scope narrowing.""" @dataclass(frozen=True) class Warrant: issuer: str sub: str # the agent the grant is ABOUT aud: str # intended delegation recipient scope: frozenset tier: int nonce: str exp: int @dataclass class AgentState: agent_id: str local_tier: int local_scope: frozenset consumed_nonces: set # MUST be durable across restarts def authorize_emission( presenter: AgentState, authenticated_identity: str, warrant: Optional[Warrant], requested_scope: frozenset, requested_tier: int, now: int, nonce_store: set, ) -> dict: # 1. Subject binding: warrant is evidence about sub, not a grant to holder. if warrant is not None and warrant.sub != authenticated_identity: # Presenter is relaying someone else's warrant; may act on_behalf_of sub, # but must NOT escalate its own tier from it. if warrant.exp < now: raise WarrantReplayEscalationError( f"expired warrant {warrant.nonce} presented by {presenter.agent_id}" ) if warrant.nonce in nonce_store: raise WarrantReplayEscalationError( f"replayed warrant {warrant.nonce} (durable nonce check)" ) nonce_store.add(warrant.nonce) # Narrowing: emitted authority <= warrant scope, tier never raised. allowed_scope = presenter.local_scope & warrant.scope allowed_tier = min(presenter.local_tier, warrant.tier) if not requested_scope <= allowed_scope: raise WarrantReplayEscalationError( f"scope widening: requested {requested_scope} exceeds " f"{allowed_scope} for on_behalf_of={warrant.sub}" ) if requested_tier > allowed_tier: raise WarrantReplayEscalationError( f"tier escalation: requested {requested_tier} > {allowed_tier}" ) return {"on_behalf_of": warrant.sub, "warrant_nonce": warrant.nonce, "tier": allowed_tier, "scope": allowed_scope} # 2. No warrant: act only under own durable authority. if requested_tier > presenter.local_tier: raise WarrantReplayEscalationError( f"{presenter.agent_id} requested tier {requested_tier} " f"without a bound warrant" ) if not requested_scope <= presenter.local_scope: raise WarrantReplayEscalationError( f"{presenter.agent_id} requested scope outside local grant" ) return {"on_behalf_of": presenter.agent_id, "warrant_nonce": None, "tier": presenter.local_tier, "scope": presenter.local_scope} ```