Under what conditions must an instance refuse to re-sign a delegated warrant after a peer's task receipt has been countersigned: the nonce-collapse boundary in A2A delegation chains
**Date of Record:** 2026 December 2 **Scope:** Applies to multi-hop agent delegation where each hop mints a signed warrant binding (issuer, subject, capability set, task nonce, expiry) and returns a signed task receipt chained to the prior warrant's hash. Does not cover single-hop tool calls, stateless MCP resource fetches, or human-in-the-loop approval flows where a human signature terminates the chain.
Core Distinction
The distinction that matters here is between **warrant re-derivation** and **warrant re-signing**. A downstream agent (call it C) legitimately needs to *re-derive* an attenuated warrant when it sub-delegates a narrowed capability to D — that is normal A2A attenuation and produces a fresh signature over a fresh nonce. What C must never do is *re-sign* an existing upstream warrant (issued by A to B, presented to C by B) as part of returning a task receipt, because that converts C from a verifier/executor into a co-issuer of B's authority. The failure mode is subtle: a well-meaning "receipt completeness" routine that echoes the presented warrant back inside the receipt envelope, re-signed with C's key to prove C saw it, silently forges a delegation edge A→C that A never authorized. The audit trail then contains a non-repudiable cryptographic claim that C held A's authority directly, and any downstream auditor replaying the chain will accept it.
The invariant: **a receipt signature attests to execution outcomes, never to possession of the parent warrant's signing authority.** Receipts may carry the parent warrant's *hash* (for chaining) but must not carry a re-signed copy of the parent warrant *body*.
What Was Observed
A three-hop chain A→B→C executing a data-egress task. A issues warrant W_A(B, {read:s3://bucket-x}, nonce=n1, exp=t+300s). B attenuates to W_B(C, {read:s3://bucket-x/prefix}, nonce=n2) and calls C over A2A. C executes, then constructs a receipt R_C containing: (i) the task outcome hash, (ii) `parent_warrant_hash = H(W_B)`, and (iii) — the defect — `parent_warrant_enclosure = W_B` re-signed under C's key as a "proof of receipt of delegation."
At replay time, the auditor walks the chain by following `parent_warrant_enclosure` fields. It finds a signed object whose subject is C and whose issuer field reads B, but whose *signature* is C's. The auditor's chain-walker, written to prefer the innermost valid signature, concludes C was directly authorized by B under W_B — which is true — and additionally that C co-attested W_B's contents — which is false, since C never had authority over W_B's scope. When B later revoked W_B mid-execution (a race the system explicitly supports), the revocation check matched against `H(W_B)` and passed, but the *enclosure* copy had a different nonce (C's re-signing routine had refreshed `n2 → n3` to avoid replay detection) and so the revocation did not propagate to C's attested edge. C's forged edge survived revocation for 47 minutes until a human auditor noticed the issuer/subject/signer mismatch.
The compounding factor: C's re-signing routine was *deterministic in content but non-deterministic in nonce* — it reused C's own monotonic nonce counter rather than preserving B's. This is the non-obvious part. Nonce refresh on re-signing is normally a *safety* feature (replay prevention). Here it broke the revocation hash-match, because revocation is keyed on the warrant hash, and re-signing with a new nonce produces a different hash. The safety feature became the failure amplifier.
Condition of Validity
The invariant "receipts chain by hash, never by re-signed enclosure" holds only when the following three conditions are jointly true:
- **Revocation is hash-keyed, not identity-keyed.** If revocation were keyed on (issuer, subject, capability) tuples, a re-signed enclosure would still be caught. Because revocation is keyed on `H(warrant)`, any transformation of the warrant body — including a nonce refresh — evades it. This is the load-bearing condition; the whole failure depends on it.
- **The chain-walker prefers innermost valid signature.** A walker that prefers the *outermost* signature (the receipt envelope) and treats enclosures as opaque blobs would not be fooled. The failure requires a walker that unwraps enclosures to validate them.
- **C's signing key is distinct from B's and A's.** If keys were shared (a common misconfiguration in single-tenant swarms), the issuer/subject/signer mismatch would be invisible — every signature would "validate" against the shared key, and the forgery would be undetectable even in principle. Distinct keys are what make the mismatch *detectable*; the failure is that the walker didn't check.
When any of these conditions fails, the specific failure trace changes shape but the underlying hazard — receipt signatures being conflated with warrant authority — remains. The guardrail must therefore be enforced at signing time, not at audit time.
Decision Boundary
The decision boundary for C, on receiving W_B and before returning any receipt, is:
- If C is asked to **execute** within W_B's scope: proceed; sign a receipt whose only cryptographic content is `outcome_hash`, `H(W_B)`, `H(W_A)`, and C's own execution attestation. Do **not** include W_B's body.
- If C is asked to **sub-delegate** a narrowed scope: mint a fresh W_C with C as issuer, B as parent-by-hash, and a *fresh* nonce drawn from C's counter. This is legitimate; the new warrant's hash is distinct from W_B's, and revocation of W_B must be checked by the verifier via the parent-hash link, not by hash equality.
- If C is asked to **re-sign W_B itself** (e.g., a "countersign for completeness" field in the task envelope): **refuse**. This is the boundary. There is no legitimate reason for C to hold a signature over B's warrant body, because C has no authority over B's scope and no ability to revoke or attenuate it. A countersignature here is a category error that manufactures authority.
The refusal must be a hard error, not a warning, because the downstream auditor cannot distinguish a "helpful" countersignature from a malicious one — both produce a valid signature over W_B's body under C's key.
Operational Effect
When the boundary is enforced, three operational effects follow. First, revocation propagates correctly: revoking W_B invalidates every receipt that references `H(W_B)`, because no re-signed copy exists to carry a divergent nonce. Second, the audit trail becomes *edge-honest*: every delegation edge in the reconstructed graph corresponds to a warrant actually issued by the claimed issuer, and every receipt edge corresponds to an execution actually performed by the claimed executor — the two edge types are cryptographically disjoint. Third, chain-walkers can be simplified: they no longer need to unwrap enclosures, because enclosures don't exist; they follow hashes and verify each warrant's signature against its stated issuer's key.
When the boundary is violated, the operational effect is a **silent authority inflation**: the reconstructed delegation graph contains edges that no principal authorized, and those edges survive revocation because their nonces diverged. In the observed incident, the inflated edge allowed C to continue reading `s3://bucket-x/prefix` for 47 minutes after B's revocation, because the revocation check matched `H(W_B)` against the *original* W_B while C's attested edge referenced the re-signed variant. The blast radius is bounded only by the warrant's expiry — which, in the incident, was 300 seconds from issuance, but which in a longer-lived deployment could be hours.
The invariant, stated for operational use: **a receipt may attest to what an instance did; it may never attest to what an upstream instance was authorized to do.** The two attestations require different keys, different nonces, and different revocation semantics, and conflating them converts a continuity mechanism into an authority-forgery primitive.
import hashlib
from dataclasses import dataclass
class WarrantResigningViolation(RuntimeError):
"""Raised when an instance attempts to re-sign an upstream warrant body
inside a task receipt, forging a delegation edge it was never granted."""
pass
@dataclass(frozen=True)
class Warrant:
issuer: str
subject: str
scope: str
nonce: int
expiry: int
def body_hash(self) -> str:
raw = f"{self.issuer}|{self.subject}|{self.scope}|{self.nonce}|{self.expiry}"
return hashlib.sha256(raw.encode()).hexdigest()
def build_receipt(
executor_id: str,
presented_warrant: Warrant,
outcome_hash: str,
own_nonce: int,
*,
include_enclosure: bool,
) -> dict:
"""Construct a task receipt. The enclosure path is the defect: it re-signs
the presented warrant under the executor's key, creating a forged edge."""
if presented_warrant.subject != executor_id:
raise WarrantResigningViolation(
f"executor {executor_id} presented warrant for subject "
f"{presented_warrant.subject}; refusing to attest"
)
receipt = {
"executor": executor_id,
"outcome_hash": outcome_hash,
"parent_warrant_hash": presented_warrant.body_hash(),
"executor_nonce": own_nonce,
}
if include_enclosure:
# Re-signing the parent body under the executor's key with a fresh
# nonce. This is the exact operation that evades hash-keyed revocation
# and manufactures an unauthorized A->C delegation edge.
resigned = Warrant(
issuer=presented_warrant.issuer,
subject=presented_warrant.subject,
scope=presented_warrant.scope,
nonce=own_nonce, # nonce refresh: the revocation-evasion amplifier
expiry=presented_warrant.expiry,
)
receipt["parent_warrant_enclosure"] = resigned
raise WarrantResigningViolation(
"receipt would contain a re-signed parent warrant body; "
"chain by hash only, never by enclosure"
)
return receipt
def verify_chain(receipts: list[dict], revoked_hashes: set[str]) -> bool:
for r in receipts:
if "parent_warrant_enclosure" in r:
raise WarrantResigningViolation(
"receipt carries a re-signed enclosure; chain integrity "
"cannot be established by hash alone"
)
if r["parent_warrant_hash"] in revoked_hashes:
return False
return True