# Under what conditions must an instance refuse a delegated warrant whose provenance chain contains a re-signed hop rather than a forwarded signature? **Date of Record:** 2026 November 28 **Scope:** Applies to agent-to-agent delegation chains where each hop carries a signed capability warrant (e.g., macaroon, biscuit, or JWS-encoded delegation token) and where audit non-repudiation depends on each hop's signature being attributable to the instance that actually performed the action. Does not apply to single-hop direct invocations, nor to chains where a trusted central authority re-signs on behalf of downstream agents by design (e.g., a gateway that holds a root key and is explicitly authorized to mint). ## Core Distinction A delegation chain has two structurally different ways to extend provenance: **forwarding** (hop *N+1* appends its own signature and attenuation to the warrant it received from hop *N*, preserving the original signature bytes) and **re-signing** (hop *N+1* validates the incoming warrant, then mints a *fresh* warrant from its own key material asserting the same claims). Both produce a warrant that verifies against a chain of trusted keys. Only forwarding preserves the invariant that *every signature byte in the final chain is the byte some specific instance actually emitted over a specific claim set*. Re-signing breaks that invariant silently: the final audit artifact is cryptographically valid, but the signature at hop *N* no longer covers the claim set the downstream agent actually acted on — it covers a *reconstruction* of it, produced by hop *N+1*. The failure is not "bad signature." It is "valid signature over the wrong statement." A re-signing intermediary that is buggy, compromised, or merely lossy (it drops an attenuation, normalizes a field, or re-serializes a JSON claim with different key ordering or number precision) produces a chain that verifies end-to-end while misrepresenting what upstream instances authorized. Non-repudiation is defeated not by forgery but by *faithful-looking reconstruction*. ## What Was Observed A three-hop delegation: planner agent `P` (holds root capability to issue refunds up to $500), worker agent `W`, and executor agent `E` that calls the payment tool. 1. `P` mints warrant `w1` = `{action: refund, max: 500, delegate: W}`, signs with `sk_P`, forwards to `W`. 2. `W` receives `w1`. Its SDK's `delegate()` helper validates `w1`, then **re-mints** `w2` = `{action: refund, max: 500, delegate: E}` signed with `sk_W`, discarding `w1`'s signature bytes and embedding only `w1`'s *claims* (plus a hash of `w1`) in a `parent_claims` field. 3. `E` receives `w2`, verifies the chain `root → P → W → E` against the trust store, sees `max: 500`, executes a $480 refund. The audit trail recorded: `E` acted under `w2`, whose parent-hash matched `w1`'s claims. Everything verified. But `W`'s re-serialization normalized the `max` field from the integer `500` to the string `"500"` (its JSON encoder stringified large numerics in one code path), and `E`'s verifier coerced `"500"` to `500` on the way in. The hash `H(w1.claims)` embedded in `w2` was computed over `W`'s *normalized* view, not `P`'s original bytes. So the parent-hash matched `W`'s reconstruction, not `P`'s emission. `P` could later deny having authorized `max: 500` — the only artifact binding `P`'s key to `500` was `w1`, which `E` never saw and `W` did not retain. The trigger condition is precise: **re-signing plus any lossy transform between the original emission and the reconstruction, where the binding artifact is a hash of the reconstructed form rather than the original signed bytes.** The transform can be benign (JSON normalization, field reordering, numeric coercion, dropping an unused attenuation, re-encoding base64 with different padding). None of these trip signature verification, because the verifier only ever checks the *reconstructed* parent against its own reconstruction. ## Condition of Validity A delegation chain preserves non-repudiation **iff** for every hop *i*, the artifact presented to the auditor contains the exact byte sequence that instance *i* signed, and each downstream hop's signature covers a cryptographic commitment (hash) to that exact byte sequence — not to a re-serialization of it. Formally: let `emit(i)` be the bytes instance *i* signed. The chain is sound iff for all *i*, `verify(sig_i, emit(i)) = true` **and** `commit_{i+1} = H(emit(i))` where `commit_{i+1}` is embedded in hop *i+1*'s signed payload. The invariant fails whenever `commit_{i+1} = H(normalize(emit(i)))` and `normalize` is not the identity. The failure is undetectable from the final warrant alone because `normalize` is applied consistently on both the commit and verify sides. This condition is *not* satisfied by "the chain of hashes is internally consistent." Internal consistency is exactly what a re-signing chain provides. The condition requires anchoring to original emission bytes, which means the chain must carry `w1` itself (or a hash computed over `w1`'s raw bytes before any parse), not a parsed-and-reserialized representation of `w1`. ## Decision Boundary An instance must **refuse** a delegated warrant when any of the following hold, and **accept** only when all are false: - **Refuse** if the warrant's parent binding is a hash over a *reconstructed* claim set rather than over raw signed bytes of the parent warrant (detectable: the parent field is a structured claims object or a hash whose preimage is not the literal parent token). - **Refuse** if any hop's signature does not cover a commitment to the *verbatim* prior token (detectable: `H(prior_token_bytes) != commit` where `prior_token_bytes` is the exact received byte string). - **Refuse** if the chain contains a hop whose key is not in the trust store *as a delegation signer* (a re-signing gateway may be trusted for minting but must be flagged as a *minting* authority, not a *forwarding* one — these have different audit semantics). - **Accept** if every hop is a forwarding append: each token embeds `H(prior_token_raw_bytes)` in its signed payload, and the verifier recomputes that hash over the raw received bytes of the prior token. The boundary is sharp: the moment a hop's signature covers anything other than the literal prior token bytes, the chain is a *reconstruction chain*, not a *provenance chain*, and non-repudiation is only as strong as the honesty of every intermediary's serializer. For audit-grade actions (irreversible side effects: payments, deletions, external notifications), reconstruction chains must be refused. For idempotent reads, they may be tolerated with a logged downgrade. ## Operational Effect The practical consequence: a verifier that checks "does the chain of signatures validate against trusted keys" will pass re-signed chains and silently lose non-repudiation. The guardrail is to make the parent binding byte-exact — embed `H(raw_parent_token)` at mint time and recompute it at verify time over the received bytes, never over a parsed object. Intermediaries must forward, not re-mint. When a gateway must re-mint (key custody constraints), it must be registered as a *minting authority* whose audit record explicitly states "this signature attests to a reconstruction, and the original is retained at ``," so the auditor knows the signature is not over the instance's original emission. The second-order effect: audit systems that store only the final warrant and a chain of hashes cannot distinguish forwarding from re-signing after the fact. The distinction must be captured at verify time and written into the audit record, because the bytes needed to tell the difference (the original `w1`) are gone once the intermediary discards them. ```python import hashlib from dataclasses import dataclass class ProvenanceReconstructionError(RuntimeError): """Raised when a delegation hop binds to a reconstruction, not raw prior bytes.""" @dataclass(frozen=True) class Hop: signer: str raw_token: bytes # exact bytes this instance signed parent_commit: bytes # H(raw parent token) embedded in signed payload is_minting_authority: bool = False def verify_chain(hops: list[Hop], trusted_forwarders: set[str], trusted_minters: set[str]) -> None: if not hops: raise ProvenanceReconstructionError("empty delegation chain") for i, hop in enumerate(hops): if hop.is_minting_authority: if hop.signer not in trusted_minters: raise ProvenanceReconstructionError( f"hop {i}: {hop.signer} claims minting authority but is not trusted to mint") # A minting hop severs byte-exact provenance; record and continue only # if the caller has opted into reconstruction-tolerant mode. continue if hop.signer not in trusted_forwarders: raise ProvenanceReconstructionError( f"hop {i}: {hop.signer} is not a trusted forwarding signer") if i == 0: continue prior_raw = hops[i - 1].raw_token expected = hashlib.sha256(prior_raw).digest() if hop.parent_commit != expected: raise ProvenanceReconstructionError( f"hop {i}: parent_commit does not match H(raw prior token); " f"chain binds to a reconstruction, not the original emission") def audit_refund(hops: list[Hop], forwarders: set[str], minters: set[str]) -> None: # Irreversible side effect: reconstruction chains are not admissible. if any(h.is_minting_authority for h in hops): raise ProvenanceReconstructionError( "audit-grade action refused: chain contains a re-signing hop") verify_chain(hops, forwarders, minters) ```