# Where must an instance re-verify a delegated tool output's provenance chain when an intermediate agent is authorized to re-sign, and what breaks at the re-signing boundary **Date of Record:** 2026 December 2 **Scope:** Applies to multi-agent systems where tool outputs are wrapped in signed provenance records (signer identity + hash chain over inputs/outputs) and where delegated sub-agents hold signing authority to re-attest or co-sign records they did not originate. Does not apply to single-agent tool loops with no cross-instance signing, nor to systems where only the root orchestrator holds signing keys. ## Core Distinction There are two structurally different things an intermediate agent can do to an inbound provenance record: **forward** it (relay the original signature and chain unmodified) or **re-sign** it (produce a new signature asserting "I observed and accept this record"). Forwarding preserves a verifiable chain back to the originating tool call. Re-signing creates a *new* attestation whose trustworthiness is bounded by the re-signer's own observation window — which is strictly narrower than the data's history. The failure mode is treating a re-signed record as if it carried the originating signer's full evidentiary weight. It does not. A re-signature attests only to "this is what I received," never to "this is what actually happened upstream." When an audit walks the chain and hits a re-signing hop, it must switch from *signature verification* (cryptographic, cheap, decisive) to *trust delegation* (semantic, expensive, defeasible) — and most audit implementations silently conflate the two. ## What Was Observed A three-tier delegation: orchestrator `O` dispatches a task to sub-agent `A`; `A` invokes a tool `T` (a database reader) and receives a signed output record `R_T = sign(T, payload, input_hash)`. `A` is authorized to re-sign records before handing to sub-agent `B`, which performs a downstream action. `B` then hands to auditor `C`. The chain `C` receives is: `R_T` (signed by `T`) → `R_A = sign(A, hash(R_T), A_observed_at)` → `R_B = sign(B, hash(R_A), B_observed_at)`. Each link verifies cryptographically. `C`'s naive audit passes. The break: `A`'s re-signature `R_A` commits to `hash(R_T)` and `A_observed_at`, but **not** to the semantic content `A` actually reasoned over. In the observed trace, `A` re-signed `R_T` correctly, then — due to a context-window truncation between receiving `R_T` and emitting `R_A` — passed `B` a *paraphrased* payload in the message body while the signed hash still pointed at the original. `B` acted on the paraphrase; `R_B` commits to `R_A`'s hash, so the chain is internally consistent but the *action* `B` took is not covered by any signature. The audit verifies end-to-end and reports "provenance intact." The delegated action is unattested. The trigger condition is precise: **the re-signer's signed commitment must cover the exact bytes the next hop consumes, not merely the hash of the record it received.** When the re-signer's output channel (the message to the next agent) is distinct from the signed commitment field, a gap opens between "what was signed" and "what was used." Truncation, summarization, and re-serialization at the re-signing hop are the common producers of this gap — all of them probabilistic-context artifacts, not transport errors. ## Condition of Validity A re-signed provenance link is valid for end-to-end audit **iff** all of the following hold: 1. The re-signer's signature commits to a hash of the *exact payload delivered to the next hop*, not the payload it received. (Commit-to-output, not commit-to-input.) 2. The re-signer's commitment includes a content digest of its own reasoning-relevant view (the bytes it actually parsed), so a divergence between received and consumed is detectable. 3. The audit distinguishes *origin signatures* (from tools/leaf agents, weight = high) from *re-signatures* (weight = bounded by re-signer authority) and does not let a chain of re-signatures launder an origin signature's guarantees. 4. The re-signer's key is scoped to "attest receipt and forwarding," not "attest truth of upstream." If any of (1)–(4) is absent, the chain is *cryptographically closed but evidentially open*: verification succeeds while the delegated action escapes coverage. This is the invariant: **closure of the hash chain does not imply coverage of the action.** ## Decision Boundary An instance must **re-verify rather than trust-and-forward** at the re-signing boundary when: - The re-signer's output payload digest ≠ the digest of the record it received (divergence detected → the re-signature does not cover the consumed bytes; escalate to the origin signer or reject). - The re-signer holds authority scoped only to receipt/forwarding but the chain presents its signature as origin-equivalent (authority laundering). - The audit path crosses ≥2 re-signing hops, because each hop compounds the chance that a signed commitment diverges from a consumed payload, and the divergence is invisible to hash verification. An instance may **trust-and-forward** only when the re-signer's signature commits to the exact delivered bytes and its authority explicitly includes semantic attestation. In practice this is rare; most re-signers should be treated as forwarding witnesses, not origin authorities. ## Operational Effect The practical consequence: audit systems built on "verify every signature in the chain" will report green on chains that do not cover the delegated action. The remediation is not more cryptography but a **coverage check** layered atop signature verification: at each re-signing hop, assert `digest(delivered_payload) == digest(signed_commitment_field)` and assert `signer_authority ⊇ {semantic_attestation}` before granting the link origin-equivalent weight. Where the check fails, the audit must downgrade the link to "receipt-only" and require the consumer to re-fetch from the origin signer. This converts a silent evidentiary gap into an explicit, auditable downgrade — which is the entire point of a provenance chain. ```python import hashlib from dataclasses import dataclass from enum import Enum class ProvenanceCoverageError(RuntimeError): """Raised when a re-signed provenance link is cryptographically closed but does not cover the payload actually consumed by the next hop.""" class Authority(Enum): ORIGIN = "origin" # tool / leaf agent: attests truth of output RECEIPT_FORWARD = "receipt" # re-signer: attests only what it received SEMANTIC = "semantic" # re-signer: attests the bytes it delivered @dataclass(frozen=True) class SignedRecord: signer: str authority: Authority signed_digest: str # hash the signer committed to delivered_payload: bytes # bytes actually handed to the next hop def digest(b: bytes) -> str: return hashlib.sha256(b).hexdigest() def audit_link(record: SignedRecord, require_semantic: bool) -> None: # Cryptographic closure: the signature itself is assumed valid here. # The failure we guard is *coverage*, not signature validity. actual = digest(record.delivered_payload) if record.signed_digest != actual: # Re-signer signed one thing, delivered another (truncation, # paraphrase, re-serialization). Chain closes; action escapes. raise ProvenanceCoverageError( f"coverage gap at signer={record.signer}: " f"signed={record.signed_digest[:12]} delivered={actual[:12]} " f"authority={record.authority.value}" ) if require_semantic and record.authority is not Authority.SEMANTIC: # Authority laundering: a receipt/forward witness presented as if # it carried origin-equivalent evidentiary weight. raise ProvenanceCoverageError( f"authority laundering at signer={record.signer}: " f"chain requires semantic attestation, signer holds " f"{record.authority.value} only" ) def audit_chain(chain: list[SignedRecord]) -> None: # Cross >=2 re-signing hops => demand semantic authority at each. require_semantic = sum( 1 for r in chain if r.authority is not Authority.ORIGIN ) >= 2 for record in chain: audit_link(record, require_semantic=require_semantic) # Triggering trace: A re-signs R_T correctly, then delivers a truncated # payload to B. Signature verifies; coverage fails. bad_chain = [ SignedRecord("tool_T", Authority.ORIGIN, digest(b"full-db-row"), b"full-db-row"), SignedRecord("agent_A", Authority.RECEIPT_FORWARD, digest(b"full-db-row"), b"full-db-row..."), # truncated delivery ] audit_chain(bad_chain) # raises ProvenanceCoverageError ```