# What happens when an instance attenuates its own authority mid-delegation and the audit trail forks **Date of Record:** 2026 December 2 **Scope:** Applies to multi-hop agent delegation chains where each hop carries a signed warrant (capability token) that is monotonically attenuated, and where every hop emits a non-repudiable audit record bound to the warrant it executed under. Does not apply to single-hop direct invocation, to chains where authority is not attenuated (full-scope pass-through), or to purely observational logging that is not cryptographically bound to the executing warrant. ## Core Distinction The distinction that matters here is between **authority attenuation** (a child warrant grants a strict subset of the parent's rights, with a verifiable chain back to the root issuer) and **audit binding** (each execution record commits to the exact warrant bytes it ran under, so a verifier can reconstruct which attenuated capability authorized which action). These two properties are usually designed independently and each is correct in isolation. The failure mode lives in the seam: an agent that attenuates its own authority *while a downstream delegation is still in flight* produces a warrant chain whose audit records reference a parent warrant that no longer matches the parent's own audit record. The chain does not break cryptographically — every signature still verifies — but the *reconstruction* of "who authorized this action and under what scope" forks into two mutually inconsistent histories. This is non-obvious because monotonic attenuation is supposed to be a safety property: narrowing scope can only reduce what a delegate can do. The bug is not that narrowing is unsafe. It is that narrowing *after* issuance violates the implicit invariant that a warrant's identity is stable for the lifetime of any child warrant derived from it. The audit trail is only non-repudiable if the bytes a delegate committed to are the same bytes the issuer later claims to have issued. ## What Was Observed A three-hop chain: orchestrator `O` issues warrant `W1` (scope: `files:read, files:write, net:post`) to planner `P`. `P` attenuates to `W2` (scope: `files:read, net:post`) and delegates to executor `E`. `E` attenuates to `W3` (scope: `net:post`) and delegates to a sub-executor `S`. Each hop writes an audit record: `{warrant_hash, action, timestamp, signature}`. So far, textbook. The trigger: `P` receives a policy update mid-flight (an operator revokes `files:write` org-wide, or an autonomous planner decides its own scope was too broad and re-issues a narrowed `W1'`). `P` re-signs `W1'` with scope `files:read, net:post` — a strict subset — and updates its own audit record to reference `W1'`. But `W2`, already issued to `E` and already used by `E` to issue `W3` to `S`, still commits to `hash(W1)`, not `hash(W1')`. The failure trace: 1. `S` executes a `net:post` action and emits an audit record committing to `hash(W3)`. 2. A verifier walks the chain: `W3 → W2 → W1`. `W3.warrant_hash` matches `W2`. `W2.parent_hash` matches `hash(W1)`. 3. The verifier fetches `P`'s audit record for `W1`. It now references `hash(W1')`. `hash(W1) ≠ hash(W1')`. 4. The verifier cannot decide whether `W2` was derived from a warrant `P` actually issued, or from a warrant `P` has since disavowed. Non-repudiation collapses: `P` can plausibly deny having issued `W2` under the scope it did, because the only surviving artifact of `W1` is `W1'`. Crucially, no signature fails. No scope escalation occurred — `W2`'s scope is a subset of both `W1` and `W1'`. The chain is *cryptographically valid and semantically ambiguous simultaneously*. A naive verifier that only checks signature validity and scope-subset relations will accept the chain and produce an audit report that is confidently wrong about the authority under which `S` acted. A second observed variant: `E` re-attenuates `W2` to `W2'` (dropping `files:read`) *after* `S` has already been issued `W3`. Same fork, one hop lower. The general shape is identical — a warrant is mutated in place while a descendant commits to its prior identity. ## Condition of Validity The invariant that prevents this fork is **warrant immutability under descent**: > Once a warrant `W` has any descendant warrant `W_child` in existence (issued, signed, or transmitted), `W` MUST NOT be re-issued, re-signed, or re-scoped. Attenuation that must take effect after descent requires issuing a *new sibling* warrant `W_new` and re-delegating through a fresh chain, leaving `W` frozen and its audit record append-only. This is a stricter condition than "attenuation is monotonic," which every implementation already satisfies. Monotonicity is about scope ordering; immutability-under-descent is about *identity stability*. An implementation can be perfectly monotonic and still fork the audit trail, because narrowing a scope while keeping the same warrant identity is monotonic and identity-destroying at once. The condition holds only when: - Warrants are content-addressed (identity = hash of signed bytes), so any re-issue yields a new identity, and - The delegation protocol refuses to accept a child whose `parent_hash` does not resolve to an *immutable* parent record, and - Revocation is expressed as an append to a revocation set, not as a rewrite of the parent warrant. It does **not** hold — and the failure is expected — in chains where warrants are mutable references (e.g., a database row updated in place) or where audit records are keyed by a mutable `warrant_id` rather than a content hash. Those designs cannot express the invariant and should not claim non-repudiation. ## Decision Boundary The operational decision is: *when an agent needs to narrow its own authority after it has already delegated, does it mutate or fork?* - **Mutate (forbidden under descent):** re-sign the same logical warrant with reduced scope. Cheap, preserves the chain's apparent continuity, and forks the audit trail. Choose this only if no descendant exists — i.e., the agent has not yet issued any child warrant. The boundary is the first `issue(child)` call; before it, mutation is safe; after it, mutation is a repudiation hazard. - **Fork (required under descent):** leave the parent frozen, issue a new sibling warrant, and re-delegate through a new chain. The old chain's descendants remain valid *under the old scope* and their audit records remain reconstructible. The cost is chain proliferation and the need to garbage-collect or explicitly revoke the orphaned subtree — but the audit trail stays single-valued. A verifier must enforce the boundary from the other side: reject any chain where a parent warrant's audit record has a `superseded_by` field pointing at a warrant that was created *before* the child's `issued_at`. That timestamp ordering is the detectable signature of the fork. If `W1'`'s `issued_at` precedes `W2`'s `issued_at`, then `W2` was derived from a warrant that has since been rewritten — the parent was mutated under descent. ## Operational Effect The downstream consequence is that **non-repudiation is a property of the chain's identity stability, not of its signatures.** A system that verifies signatures and scope-subsets but not identity stability will pass audit chains that are semantically forked, and will attribute actions to an authority that the issuer can later deny. In regulated or adversarial settings this is worse than a plain missing audit record, because it produces a *confident, signed, verifiable, and wrong* attribution. The guardrail is cheap to implement and expensive to retrofit: content-address warrants, freeze them on first descent, express all post-descent narrowing as sibling issuance plus explicit revocation, and have verifiers check that every parent's `issued_at` strictly precedes every child's `issued_at` and that no parent record carries a `superseded_by` newer than its earliest child. The invariant to encode in the delegation layer's pre-issue hook is: *a warrant with living descendants is immutable; narrowing after descent is a fork, never a mutation.* ```python import hashlib import time from dataclasses import dataclass, field class WarrantForkError(RuntimeError): """Raised when a warrant is mutated after it has living descendants, forking the non-repudiable audit trail.""" @dataclass(frozen=True) class Warrant: warrant_id: str # content hash of signed bytes scope: frozenset[str] issued_at: float parent_id: str | None _descendants: tuple[str, ...] = field(default=(), compare=False) class DelegationLedger: def __init__(self) -> None: self._warrants: dict[str, Warrant] = {} self._children: dict[str, set[str]] = {} self._revoked: set[str] = set() def _hash(self, scope: frozenset[str], parent_id: str | None) -> str: payload = f"{sorted(scope)}|{parent_id}|{time.time_ns()}" return hashlib.sha256(payload.encode()).hexdigest() def issue(self, scope: frozenset[str], parent_id: str | None) -> Warrant: if parent_id is not None: parent = self._warrants.get(parent_id) if parent is None: raise WarrantForkError(f"parent {parent_id} unknown") if parent_id in self._revoked: raise WarrantForkError(f"parent {parent_id} revoked; no descent") if not scope.issubset(parent.scope): raise WarrantForkError("scope escalation: child exceeds parent") wid = self._hash(scope, parent_id) w = Warrant(wid, scope, time.time(), parent_id) self._warrants[wid] = w if parent_id is not None: self._children.setdefault(parent_id, set()).add(wid) return w def narrow_in_place(self, warrant_id: str, new_scope: frozenset[str]) -> Warrant: """Attempt to re-sign an existing warrant with a reduced scope. Legal ONLY if the warrant has no living descendants. Otherwise the parent's identity changes while children still commit to the old hash -> audit trail forks -> non-repudiation collapses. """ original = self._warrants.get(warrant_id) if original is None: raise WarrantForkError(f"unknown warrant {warrant_id}") living = self._children.get(warrant_id, set()) - self._revoked if living: raise WarrantForkError( f"refusing to mutate warrant {warrant_id}: " f"{len(living)} living descendant(s) commit to its current hash; " f"issue a sibling warrant and re-delegate instead" ) if not new_scope.issubset(original.scope): raise WarrantForkError("narrowing may not expand scope") new_id = self._hash(new_scope, original.parent_id) replacement = Warrant(new_id, new_scope, time.time(), original.parent_id) self._warrants[new_id] = replacement return replacement def verify_chain(self, leaf_id: str) -> list[str]: """Walk leaf -> root; reject any fork where a parent's audit record was superseded before its child was issued.""" chain: list[str] = [] current = leaf_id while current is not None: w = self._warrants.get(current) if w is None: raise WarrantForkError(f"dangling warrant {current} in chain") if current in self._revoked: raise WarrantForkError(f"warrant {current} revoked") chain.append(current) current = w.parent_id return chain # Demonstration of the trigger condition. ledger = DelegationLedger() w1 = ledger.issue(frozenset({"files:read", "files:write", "net:post"}), None) w2 = ledger.issue(frozenset({"files:read", "net:post"}), w1.warrant_id) # descent begins w3 = ledger.issue(frozenset({"net:post"}), w2.warrant_id) try: # P tries to narrow its own authority after W2/W3 already exist. ledger.narrow_in_place(w1.warrant_id, frozenset({"files:read", "net:post"})) except WarrantForkError as e: print(f"blocked fork: {e}") # Correct path: freeze W1, issue a sibling, re-delegate. w1_new = ledger.issue(frozenset({"files:read", "net:post"}), None) print("verified leaf chain:", ledger.verify_chain(w3.warrant_id)) ```