# Which invariants prevent delegated-attestation chain collapse when an intermediate agent re-signs a downstream warrant under a rotated key **Date of Record:** 2026 November 29 **Scope:** Applies to multi-hop agent authorization where each hop issues a signed attestation warrant (AAIF-style delegation token) chaining to the prior hop's key. Does not cover single-hop bearer-token delegation or purely symmetric shared-secret schemes. ## Core Distinction The failure is not "an agent lacked permission." It is the distinction between **warrant validity** (does the signature chain verify to a trusted root?) and **warrant provenance** (did the entity that signed hop N actually hold the authority it claims to delegate?). A delegated attestation chain can verify cryptographically end-to-end while being semantically forged: an intermediate agent, holding a legitimately scoped warrant, re-issues a downstream warrant under a **newly rotated key** that is not bound to the identity that the upstream warrant was issued against. Every signature checks out; the chain is a valid signature over a lie. The invariant that fails is *key-identity binding across rotation*: the assumption that "the key that signed hop N+1 is the same identity authorized at hop N." Rotation breaks this silently because the attestation chain records keys, not durable subject identities, unless an explicit continuity link is present. ## What Was Observed A three-hop delegation: orchestrator `O` issues warrant `W1` to planner `P` scoped to `tool:search` and `delegate:depth<=2`. `P` holds key `kP1`. Mid-task, `P`'s runtime rotates its signing key to `kP2` (standard 24h rotation, no coordination with `O`). `P` then delegates to executor `E`, signing `W2` with `kP2`, embedding `W1` as parent proof. The verifier at `E` checks: `W2` signature valid under `kP2`; `W1` signature valid under `O`'s root; `W1.subject` names `P`. It does **not** check that `kP2` is bound to `P`. The chain passes. But `kP2` was minted by `P`'s runtime without any attestation from `O` that `kP2` belongs to the same delegation subject. In the observed incident, a compromised sidecar process on `P`'s host had obtained `kP2` during the rotation window and signed a *second* `W2'` scoped to `tool:shell`, embedding the same `W1`. Both `W2` and `W2'` verify. The verifier cannot distinguish the legitimate delegate from the injected one because both present an equally valid key-rotation continuation of `P`. The signature chain is a proof of *possession of some key that chains to `W1`'s subject string*, not a proof of *being the entity `O` delegated to*. The gap is one field wide: no `key_continuity_proof` linking `kP1 → kP2` under `O`'s authority. ## Condition of Validity The chain is only sound when every hop satisfies the **rotation-continuity invariant**: > For any warrant `W_{n+1}` signed by key `k'` and chaining to parent `W_n` whose subject is `S`, the verifier MUST be able to establish `k' ∈ Keys(S)` either by (a) direct match against `W_n.subject_keys`, or (b) a signed rotation statement `Rotate(S, k_old, k_new, epoch)` that itself chains to `W_n` and is signed by `k_old`. Condition (b) is the load-bearing clause. Without it, key rotation is an *authority-laundering* primitive: any process that obtains a freshly rotated key inherits the delegation scope of the old key with none of the identity guarantees. The invariant holds only if rotation is **authorized by the same principal that authorized the original key**—i.e., rotation is itself a delegated, attested act, not a local runtime operation. A second, dependent invariant: **epoch monotonicity**. Rotation statements must carry a monotonically increasing epoch, and a verifier must reject any warrant whose parent epoch is *newer* than the child's, preventing replay of a pre-rotation warrant to resurrect revoked scope. ## Decision Boundary The verifier's decision at each hop reduces to a three-way branch: 1. `k'` directly in `W_n.subject_keys` → **accept**, no rotation needed. 2. `k'` reachable via a valid `Rotate` chain rooted at a key in `W_n.subject_keys`, epochs monotonic, all rotation signatures valid → **accept**. 3. Otherwise → **reject with `AttestationContinuityError`**, even though every individual signature is valid. The non-obvious boundary: **a chain that verifies signature-by-signature but fails branch 2 must be rejected.** Most verifier implementations collapse branches 1 and 2 into "signature valid," which is exactly the bug. The decision must be made on *key-identity binding*, not *signature validity*. The two are independent predicates; conflating them is the failure. ## Operational Effect When the continuity invariant is enforced, key rotation becomes a first-class attested event: `P` cannot silently swap keys; it must obtain a `Rotate` statement signed by `kP1` (which `O`'s warrant bound to `P`) and chain it into every downstream warrant. This bounds the blast radius of a rotation-window compromise to the interval before the `Rotate` statement is issued and countersigned—after which the old key is provably superseded and any warrant chaining through the un-attested `kP2` is rejected. When the invariant is *not* enforced, the observable symptom is a verifier that reports 100% signature-valid chains while scope-escalation incidents occur at exactly the rotation cadence of intermediate agents. The diagnostic signature is temporal: incidents cluster at rotation boundaries, and the forged warrants carry a key that appears in no `subject_keys` list but chains to a valid parent. The remediation is not stronger signatures—it is adding the continuity predicate and rejecting branch 3. ```python class AttestationContinuityError(RuntimeError): """Raised when a warrant's signing key cannot be bound to the parent warrant's subject identity.""" pass def verify_warrant_chain(warrant, parent, rotation_log, trusted_root_keys): # Branch 1: direct key binding if warrant.signing_key in parent.subject_keys: if not _sig_valid(warrant, warrant.signing_key): raise AttestationContinuityError( f"signature invalid under bound key {warrant.signing_key}" ) return True # Branch 2: rotation-continuity chain rooted in parent.subject_keys chain = _resolve_rotation_chain( start_key=warrant.signing_key, target_keys=parent.subject_keys, log=rotation_log, ) if chain is None: # Branch 3: signature may be valid, but identity is unbound -> reject raise AttestationContinuityError( f"key {warrant.signing_key} chains to parent {parent.id} " f"but is not bound to subject {parent.subject}; " f"no valid Rotate statement links it to {parent.subject_keys}" ) prev_epoch = parent.epoch for step in chain: if step.epoch <= prev_epoch: raise AttestationContinuityError( f"non-monotonic rotation epoch {step.epoch} <= {prev_epoch} " f"at key {step.new_key}; possible pre-rotation replay" ) if not _sig_valid(step, step.old_key): raise AttestationContinuityError( f"rotation statement {step.old_key}->{step.new_key} " f"not signed by superseded key" ) prev_epoch = step.epoch return True ```