# Why does an instance lose audit-grade provenance when a delegation warrant's attenuation proof is re-derived instead of forwarded? **Date of Record:** 2026 November 28 **Scope:** Applies to multi-hop agent delegation chains (A→B→C) where each hop carries a signed warrant whose authority is a strict subset of its parent, and where a downstream auditor must reconstruct provenance from the chain alone. Does not apply to single-hop delegation, to chains where the root issuer is co-resident with the verifier, or to opaque bearer-token handoffs with no attenuation semantics. ## Core Distinction There are two mechanically different ways an intermediate agent B can produce a warrant for C from the warrant it received from A: 1. **Forwarding (proof-carrying attenuation):** B emits a warrant `W_BC` that embeds the *exact bytes* of `W_AB` (or a hash commitment to them) plus a signed, minimal delegation delta `(scope_BC ⊆ scope_AB, expiry_BC ≤ expiry_AB, budget_BC ≤ budget_AB)`. The full chain is reconstructable by concatenation. 2. **Re-derivation (semantic re-issuance):** B parses `W_AB`, computes its own understanding of the *effective* scope, and mints a fresh `W_BC` from that interpretation, signing it under B's own key with a pointer to `W_AB`'s ID rather than its bytes. Both look correct at the moment of issuance. They diverge only under audit, and only when the interpreted scope of `W_AB` at B's parser differs from the canonical scope the auditor reconstructs. That divergence is the failure surface. Re-derivation silently converts *attenuation* (a monotone, verifiable lattice operation) into *reinterpretation* (a lossy, non-verifiable semantic act). The invariant that breaks is: **the authority of any hop must be provable as a subset of its parent by byte-level reconstruction, not by re-reading a natural-language or semi-structured scope field.** ## What Was Observed A three-hop chain: orchestrator A → retrieval agent B → summarizer C. A's warrant `W_AB` carried a scope object with a structured clause `tools: ["search", "fetch"], resources: ["corpus:public/*"], budget_tokens: 40000`. B's parser normalized the glob `corpus:public/*` into an explicit allow-list at issuance time by enumerating the corpus index *as it stood at B's cold start* (a 40-minute-stale snapshot). B then minted `W_BC` by re-deriving: it wrote `resources: ["corpus:public/doc_1"..."corpus:public/doc_3117"]` — the enumerated set — and signed it, referencing `W_AB` only by `parent_id`. Three failure traces emerged: - **Drift under corpus mutation.** Between B's enumeration and C's execution, 12 documents were reclassified out of `public/`. C's re-derived warrant still granted them. The auditor, reconstructing from `W_AB`'s glob, expected 3117 docs; C acted on documents the canonical chain never authorized. Provenance said "authorized by A"; the byte-level truth said otherwise. - **Enumeration truncation.** B's context window could not hold the full index; the enumerator silently capped at 3117 of 3402 entries and logged a soft warning that was not propagated into `W_BC`. The re-derived warrant was a *strict subset* of the glob — safe on the subset direction — but the truncation was invisible to C, which then failed a task requiring doc_3390 with a misleading "not authorized" error, and the auditor could not distinguish "A never granted it" from "B lost it in re-derivation." - **Signature-chain severance.** Because `W_BC` referenced `W_AB` by ID only, and B's warrant store was garbage-collected on a rolling 24h window while the audit window was 72h, the auditor received `W_BC` with a dangling `parent_id`. The chain was cryptographically intact per-hop but *topologically broken* — no path from C's key back to A's root key remained. Audit-grade provenance requires a contiguous signature path, not a set of individually valid signatures. ## Condition of Validity Re-derivation is only sound when **all** of the following hold; if any fails, the chain loses audit-grade provenance: 1. The scope language has a *decidable, canonical* subset relation — i.e., `scope_BC ⊆ scope_AB` is checkable from the two scope objects alone, without consulting external mutable state (a corpus index, a directory listing, a clock). 2. B's parser is *the same parser* (same version, same normalization rules) as the auditor's, or the normalization is itself recorded in the warrant as a signed, replayable transformation. 3. The parent warrant's bytes (or a collision-resistant commitment to them) are embedded in the child, so the chain is reconstructable without access to B's mutable store. 4. Enumeration against external state is deferred to execution-time authorization checks, not baked into issuance-time scope. In the observed incident, (1) failed because globbing against a live index is not canonical, (2) failed because B normalized but the auditor did not, (3) failed because only `parent_id` was forwarded, and (4) failed because enumeration happened at issuance. Four independent violations of the same invariant, each individually sufficient to break provenance. ## Decision Boundary The boundary is between **attenuation as a lattice operation** and **attenuation as a semantic judgment**: - If the child scope is produced by *intersecting* the parent scope with a requested scope using a total, canonical meet operation — forward the bytes. The chain is a proof. - If the child scope is produced by *interpreting* the parent scope against ambient state (enumerating, resolving, expanding, filtering against a live index) — you are re-deriving, and you must either (a) embed the interpretation as a signed, replayable witness alongside the forwarded parent bytes, or (b) refuse to issue and escalate to the root issuer for a fresh warrant. The decision is not "which is more convenient." It is: **can an auditor who holds only the chain, and none of B's internal state, replay every scope transition and arrive at C's effective authority?** If no, the delegation is not audit-grade, regardless of how many valid signatures it carries. A chain of valid signatures over re-derived scopes is a chain of *assertions*, not a chain of *proofs*, and the difference is exactly the boundary. ## Operational Effect When re-derivation is permitted without a replayable witness, three operational consequences follow deterministically: - **Silent authority inflation or deflation** at every hop where ambient state has changed since the parent was minted. Inflation is a security event; deflation is a correctness event; both are invisible until an auditor reconstructs. - **Non-reconstructable incident timelines.** Post-hoc forensics must reconstruct B's parser state, B's index snapshot, and B's enumeration truncation from logs rather than from the chain — meaning the chain is no longer the source of truth, which defeats its purpose. - **GC-coupled audit failure.** Any retention policy on intermediate warrant stores shorter than the audit window severs the signature path. The chain's validity becomes a function of a storage TTL, which no participant controls. The guardrail is a hard rule at the issuance boundary: a child warrant is rejected by any conforming verifier unless it carries either the parent's exact bytes or a signed hash commitment, *and* any scope transformation is expressed as a canonical meet against the parent scope, *and* any external-state resolution is deferred to execution-time checks that re-verify against the live state under the same canonical rules. Verifiers must treat a `parent_id`-only reference as a chain break, not a soft warning. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ProvenanceChainBroken(RuntimeError): """Raised when a delegation warrant cannot be reconstructed to its root.""" pass class AttenuationNotCanonical(ProvenanceChainBroken): """Raised when a child scope is not a provable subset of its parent.""" pass @dataclass class Warrant: issuer: str subject: str scope: frozenset parent_bytes: Optional[bytes] # exact parent warrant bytes, or None at root parent_hash: Optional[str] # sha256 of parent_bytes, or None at root transformations: list = field(default_factory=list) # signed, replayable ops def commitment(self) -> str: payload = self.issuer.encode() + self.subject.encode() payload += b"|" + b",".join(sorted(self.scope)).encode() payload += b"|" + (self.parent_hash or "").encode() return hashlib.sha256(payload).hexdigest() def verify_chain(leaf: Warrant, root_key: str) -> None: """Reconstruct the full chain from leaf to root and verify every hop. Invariant: every non-root warrant MUST carry parent_bytes (or a hash commitment whose preimage is supplied) AND every scope transition MUST be expressible as a canonical meet. A parent_id-only reference is a chain break, not a warning. """ node = leaf depth = 0 while node.parent_bytes is not None or node.parent_hash is not None: depth += 1 if depth > 64: raise ProvenanceChainBroken( f"delegation chain exceeded max depth at {node.subject}" ) # Rule 1: proof-carrying attenuation — parent bytes must be present. if node.parent_bytes is None: raise ProvenanceChainBroken( f"warrant for {node.subject} references parent by id/hash only; " f"chain is not reconstructable without issuer-local state" ) # Rule 2: hash commitment must match the forwarded bytes. actual = hashlib.sha256(node.parent_bytes).hexdigest() if node.parent_hash is not None and node.parent_hash != actual: raise ProvenanceChainBroken( f"parent hash mismatch at {node.subject}: " f"claimed {node.parent_hash[:12]}, got {actual[:12]}" ) parent = _decode(node.parent_bytes) # Rule 3: child scope must be a canonical subset of parent scope. # No enumeration, no globbing against live state — pure set meet. if not node.scope.issubset(parent.scope): leaked = node.scope - parent.scope raise AttenuationNotCanonical( f"{node.subject} claims authority {sorted(leaked)} not granted " f"by {parent.subject}; re-derivation against ambient state " f"produced non-canonical attenuation" ) # Rule 4: every transformation must be replayable from the parent. for op in node.transformations: if not op.get("canonical", False): raise AttenuationNotCanonical( f"non-canonical transformation {op.get('name')} at " f"{node.subject}; scope cannot be replayed by an auditor" ) node = parent if node.issuer != root_key: raise ProvenanceChainBroken( f"chain terminates at {node.issuer}, not trusted root {root_key}" ) def _decode(raw: bytes) -> Warrant: # Placeholder for canonical deserialization; must be byte-stable across # issuer and auditor, or Rule 3 becomes unverifiable. raise ProvenanceChainBroken("decoder unavailable in this record") ```