# In what scenarios must an instance refuse to re-attest a delegated warrant after a mid-chain identity refresh, rather than silently re-signing it under a new key **Date of Record:** 2026 November 27 **Scope:** Applies to any agent that holds a delegated warrant (a signed capability grant carrying a subject, issuer, audience, scope, and expiry) and is asked to re-attest or re-sign that warrant after its own identity material—key pair, DID document, or attestation bundle—has been rotated or refreshed. Does not apply to first-issuance of a warrant, nor to pure verification of a warrant whose issuer key is unchanged. ## Core Distinction The failure lives in the gap between two operations that look identical at the API surface: **re-attestation** (producing a fresh signature over the *same* warrant claims under *new* key material) and **re-delegation** (issuing a *new* warrant whose issuer is the refreshed identity). AAIF flows treat the warrant's `iss` field and its signature as a single bound tuple. When an agent rotates its key and then re-signs an existing warrant with the new key, the resulting artifact is *cryptographically valid* but *semantically forged*: the signature verifies against the new key, yet the `iss` claim still names the old identity, or the warrant's `cnf` (confirmation) claim still pins the old key. Downstream verifiers that check "does the signature match the issuer's *current* published key" will pass it; verifiers that check "does the *issuer key that signed this* match the key the issuer published *at signing time*" will fail it. The two verification postures disagree, and the artifact sits in the seam. The invariant that must hold: **a warrant's signature is only meaningful relative to the identity-document epoch in which it was produced.** Re-signing across an epoch boundary without changing `iss`, `iat`, or the confirmation binding produces an artifact that no single epoch can validate consistently. ## What Was Observed An orchestrator agent `A` holds a delegated warrant `W` issued by root `R` at epoch `e1`, delegating scope `S` to subject `B`. `A`'s key rotates at `e2` (routine refresh, key compromise drill, or DID document update). A downstream peer `C` requests that `A` "re-attest" `W` because `C`'s local cache holds a stale copy and wants a fresh signature it can pin. `A`'s naive handler loads `W`, strips the signature, and signs the claims with its `e2` key. The output `W'` carries: - `iss = R` (unchanged — `R` did not issue this signature) - `iat = e1` (unchanged — but the signature was made at `e2`) - `cnf` still pinning `B`'s key (correct) - signature by `A`'s `e2` key Three distinct verifier behaviors then diverge: 1. **Epoch-naive verifier** (checks `sig` against `R`'s *current* key): fails outright, because the signature is by `A`, not `R`. This is the loud case. 2. **Chain-splice verifier** (checks `sig` against *any* key in the chain, including `A`'s): passes. It believes `R` delegated to `B`, but the signature is actually `A`'s. The chain's issuer binding has been silently rewritten. 3. **Confirmation-only verifier** (checks `cnf` against `B`'s key, ignores `iss`): passes, and `C` now holds a warrant that names `R` as issuer but was signed by `A` — a confused-deputy artifact. The observed trace: `C` accepted `W'` under posture 2, then presented it to a resource server `D` running posture 3. `D` honored scope `S` for `B`. No error was raised anywhere. The warrant's `iss` claim was a lie that every local check confirmed. The tell is a **signature/issuer epoch mismatch**: `iat` (or the key's `valid_from`) predates the signing key's `not_before`. In the trace, `iat = e1` but the signing key's `nbf = e2`. This is detectable, but only if the verifier cross-references the signing key's activation window against the warrant's `iat` — a check most AAIF implementations omit because they assume re-attestation is idempotent. ## Condition of Validity Re-attestation is only sound when **all** of the following hold: - The re-signing key is the *same* key that produced the original signature (true idempotent re-attestation), **or** - The re-signing key is a *successor* key that the issuer's identity document explicitly links to the predecessor via a `key_rotation` / `alsoKnownAs` proof, **and** the warrant's `iss` is updated to the successor identity, **and** `iat` is advanced to the re-signing time, **and** any `cnf` binding is re-derived. - The warrant's claims (scope, subject, audience, expiry) are byte-identical; only identity-binding fields and timestamps may change. If any of these fail, the operation is not re-attestation — it is a new issuance and must be routed through the full delegation path with a fresh `iss`, fresh `iat`, and a new warrant identifier. The condition of validity is therefore: **re-attestation is a no-op on claims and a bounded rewrite on identity-binding fields; anything outside that bound is re-delegation and must not be performed by the re-attestation handler.** ## Decision Boundary The agent must refuse to re-attest when the requested operation would cross an identity-epoch boundary without a linked rotation proof. The precise boundary: | Condition | Action | |---|---| | Signing key == original signing key, `iat` unchanged | Re-attest (idempotent). | | Signing key is successor, rotation proof present, `iss`/`iat`/`cnf` rewritten | Re-delegate; emit new warrant ID. | | Signing key is successor, rotation proof **absent** | **Refuse. Raise.** | | Signing key is successor, rotation proof present, but handler asked to preserve old `iss`/`iat` | **Refuse. Raise.** | | Signing key differs and is not a documented successor | **Refuse. Raise.** | The refusal is not a soft warning. It must be a hard fault, because the artifact produced by proceeding is indistinguishable from a valid warrant to a subset of verifiers, and the divergence is only observable at the point of use—after scope has already been exercised. ## Operational Effect When the guardrail is absent, the failure is silent and load-bearing: the forged warrant propagates through caches, is pinned by peers, and survives until the original `R`-issued warrant expires. Because the `iss` claim still names `R`, revocation of `A`'s key does not revoke `W'`—`R` never knew it existed. The blast radius is bounded only by the warrant's expiry, and every peer that cached `W'` under the epoch-naive posture must be individually flushed. When the guardrail is present, the re-attestation handler rejects the cross-epoch request at the boundary, forcing the caller onto the re-delegation path where `iss`, `iat`, and warrant ID are all rewritten and the new artifact is correctly attributable. The cost is one extra round-trip and a new warrant ID; the benefit is that every verifier posture agrees on the artifact's meaning. The operational rule: **never let a re-attestation handler mutate a warrant's identity-binding fields in place.** Re-attestation is a signature operation over an unchanged claim set; the moment the handler considers touching `iss`, `iat`, or `cnf`, it has left its lane and must hand off to the delegation path or refuse. ```python from dataclasses import dataclass from typing import Optional class EpochCrossingAttestationError(RuntimeError): """Raised when a re-attestation request would cross an identity-epoch boundary without a valid rotation proof, producing a warrant whose signature and issuer claims disagree across verifier postures.""" @dataclass(frozen=True) class Warrant: warrant_id: str iss: str # issuer identity sub: str # subject identity scope: str iat: int # issued-at epoch cnf: str # confirmation key binding signature_key_id: str @dataclass(frozen=True) class IdentityEpoch: key_id: str not_before: int successor_of: Optional[str] = None # key_id of predecessor, if rotation def re_attest( warrant: Warrant, signing_epoch: IdentityEpoch, rotation_proof_present: bool, preserve_original_iss: bool, ) -> Warrant: same_key = signing_epoch.key_id == warrant.signature_key_id is_successor = signing_epoch.successor_of == warrant.signature_key_id if same_key: # Idempotent re-attestation: claims and identity binding unchanged. return Warrant( warrant_id=warrant.warrant_id, iss=warrant.iss, sub=warrant.sub, scope=warrant.scope, iat=warrant.iat, cnf=warrant.cnf, signature_key_id=signing_epoch.key_id, ) if not is_successor: raise EpochCrossingAttestationError( f"signing key {signing_epoch.key_id} is neither the original " f"signing key {warrant.signature_key_id} nor a documented successor" ) if not rotation_proof_present: raise EpochCrossingAttestationError( f"successor key {signing_epoch.key_id} presented without a " f"rotation proof linking it to {warrant.signature_key_id}; " f"refusing cross-epoch re-attestation" ) if preserve_original_iss: raise EpochCrossingAttestationError( "re-attestation handler asked to preserve original iss/iat across " "an epoch boundary; this is re-delegation and must not be performed " "by the re-attestation path" ) # Correct path: re-delegate with rewritten identity-binding fields. return Warrant( warrant_id=f"{warrant.warrant_id}.reissued", iss=signing_epoch.key_id, sub=warrant.sub, scope=warrant.scope, iat=signing_epoch.not_before, cnf=warrant.cnf, signature_key_id=signing_epoch.key_id, ) ```