# Which invariants prevent a delegation receipt from silently outliving the authority that issued it **Date of Record:** 2026 November 28 **Scope:** Applies to cross-organizational agent delegation where an orchestrator agent (Org A) issues a signed delegation receipt to a worker agent (Org B) that performs tool calls and returns a signed execution record. Does not apply to intra-process tool calls or single-tenant agent loops where the orchestrator and worker share a trust domain. ## Core Distinction A *delegation receipt* is a signed assertion of the form "Agent A authorizes Agent B to perform capability C on resource R until time T, on behalf of principal P." A *non-repudiable audit trail* is the append-only sequence of signed execution records that the worker emits as it exercises the receipt. The naive mental model treats the receipt as a bearer token: possession implies authority. The correct invariant is that a receipt is a *time-bounded predicate on a live authority chain*, not a capability. The failure mode this record documents is **receipt-after-revocation drift**: the worker's execution records remain cryptographically valid (the worker's signature verifies, the receipt's signature verifies, the timestamps are internally consistent) while the authority that the receipt points to has been revoked upstream at the principal or orchestrator layer. The trail is intact; the delegation is dead. Every verifier that checks signatures in isolation will accept the trail. Only a verifier that re-walks the authority chain at *verification time* (not issuance time) catches it. The non-obvious part: revocation is not a property of the receipt. The receipt is immutable and correctly signed. Revocation is a property of the *chain* the receipt references, and the chain is mutable at the issuer. This is the exact seam where non-repudiation and freshness collide. ## What Was Observed In a three-party workflow — principal P (human, Org A), orchestrator O (Org A agent), worker W (Org B agent) — the following trace was captured during a post-incident replay: 1. `t0`: O issues receipt `R1 = sign_O(P, W, capability=write:ledger, resource=acct/4471, ttl=3600s, chain_ref=H(chain_A@t0))`. `chain_ref` is a hash pointer to Org A's authority chain state at issuance. 2. `t1 = t0+120s`: P revokes O's authority to delegate `write:ledger`. Org A's authority chain advances to `chain_A@t1`. The revocation is published to Org A's revocation endpoint but is *not* pushed to W (W is cross-org; it has no subscription). 3. `t2 = t0+900s`: W executes `write:ledger` on `acct/4471`, emits execution record `E1 = sign_W(R1, tool_call, result, t2)`. W's local check of `R1` passes: signature valid, `t2 < t0+3600`, capability matches, resource matches. W has no mechanism to check `chain_A@t1`. 4. `t3 = t0+86400s`: Auditor at Org C replays the trail. `E1` verifies against `R1`; `R1` verifies against O's public key; timestamps are monotone. The trail is accepted as non-repudiable evidence that P authorized the write. The write at `t2` was unauthorized. The audit trail is a cryptographically perfect record of an unauthorized action. This is the worst class of audit failure: not a gap, but a confident false positive. The root cause is that `chain_ref` was treated as an *issuance-time witness* rather than a *verification-time obligation*. The receipt proved what the chain looked like at `t0`; nobody proved what it looked like at `t2`. The 780-second window between revocation and execution is the **drift window**, and its width is bounded only by the TTL, not by revocation latency. ## Condition of Validity A delegation receipt is valid for an execution record at time `t_exec` if and only if **all** of the following hold, evaluated at verification time: - **Signature integrity:** `verify(sig_O, R1)` and `verify(sig_W, E1)` pass. (Necessary, never sufficient.) - **Temporal containment:** `t_issue ≤ t_exec ≤ t_issue + ttl`. Note this is `t_exec`, not `t_verify` — a trail is not invalidated by age, only by execution outside the delegation window. - **Chain continuity:** the verifier can obtain `chain_A@t_exec` (or a proof of its state at `t_exec`) and confirm that every link from P through O to the delegation is unrevoked *at `t_exec`*. This requires either (a) a transparency-log-style append-only chain with inclusion proofs the worker fetches at execution time and embeds in `E1`, or (b) a revocation oracle the worker queries synchronously before the tool call and whose response is signed into `E1`. - **Causal ordering:** `E1` must embed the chain state it observed, not just `chain_ref`. The receipt's `chain_ref` is a lower bound on freshness; `E1`'s embedded chain proof is the actual witness. The invariant: **no execution record may be admitted to a non-repudiable trail unless it carries a chain-state witness whose timestamp is within `ε` of the execution timestamp, where `ε` is smaller than the minimum revocation-to-effect latency the system promises.** If `ε` cannot be bounded below the revocation propagation delay, the trail is *not* non-repudiable — it is merely signed. ## Decision Boundary The boundary between "acceptable signed trail" and "non-repudiable trail" is the relationship between three latencies: - `L_revoke`: time from principal revocation to the revocation being observable by any verifier. - `L_propagate`: time from revocation publication to the worker's next chain-state fetch. - `TTL`: receipt lifetime. If `L_revoke + L_propagate > TTL`, the drift window can never exceed the TTL and the receipt is *self-limiting*: revocation is not needed for correctness because the receipt expires before stale authority can be exercised. This is the only regime where bearer-token semantics are safe, and it is the regime most cross-org systems accidentally operate in — which is why the bug hides. If `L_revoke + L_propagate ≤ TTL`, the drift window is open and chain-state witnesses are mandatory. The decision rule for the architect: - **Short-TTL delegation (TTL < revocation SLA):** bearer semantics acceptable; embed `chain_ref` for audit only; document the TTL as the security boundary. - **Long-TTL delegation (TTL ≥ revocation SLA):** chain-state witness mandatory at execution; the worker must fetch and sign a freshness proof into every execution record; verifiers must re-check chain continuity, not just signatures. - **Unbounded-TTL delegation:** forbidden for cross-org workflows. An unbounded receipt is an unbounded drift window. The trap: teams pick long TTLs to avoid re-issuance churn, then assume the signature is the security control. The signature authenticates *who*, never *whether*. ## Operational Effect When the invariant is violated, three concrete effects manifest: 1. **Audit false positives.** The trail admits unauthorized actions as authorized. Downstream compliance, billing, and incident response treat the trail as ground truth and propagate the error. Unlike a missing record, a false-positive record is actively misleading and hard to detect because it is internally consistent. 2. **Repudiation inversion.** The worker can repudiate a *legitimate* execution by pointing out that at `t_exec` it had no way to verify the chain, so its signature attests only to "I executed under a receipt I could not validate." The non-repudiation guarantee dissolves in both directions: unauthorized actions are admitted, authorized actions are contestable. 3. **Silent divergence between orgs.** Org A's chain says revoked; Org B's trail says executed; Org C's auditor sees a valid signature and sides with Org B. There is no shared clock and no shared log, so the disagreement is not a bug to be fixed but a structural property of the trust boundary. Reconciliation requires a third-party transparency log both orgs write to, which most cross-org agent protocols do not mandate. The guardrail is a **freshness-bound execution gate**: the worker's tool-call wrapper must refuse to execute unless it holds a chain-state witness with `t_witness ≥ t_now - ε`, and that witness must be embedded in the execution record before the tool call returns. The gate converts a verification-time obligation into an execution-time precondition, which is the only place it can be enforced deterministically. The following reference implementation encodes the gate and the verifier-side re-check, with the specific failure class named. ```python import hashlib import time from dataclasses import dataclass from typing import Callable, Optional class StaleDelegationReceipt(RuntimeError): """Raised when an execution record's chain-state witness is older than the freshness bound, or when the chain was revoked at execution time.""" pass @dataclass(frozen=True) class Receipt: issuer: str worker: str principal: str capability: str resource: str t_issue: float ttl: float chain_ref: str # hash of chain state at issuance (lower bound only) @dataclass(frozen=True) class ChainWitness: chain_hash: str revoked: bool t_witness: float @dataclass(frozen=True) class ExecutionRecord: receipt: Receipt witness: ChainWitness tool_call: str result: str t_exec: float def execute_with_freshness_gate( receipt: Receipt, tool_call: str, fetch_chain_state: Callable[[], ChainWitness], epsilon: float, ttl_slack: float = 0.0, ) -> ExecutionRecord: """Worker-side gate. Refuses to execute without a fresh, unrevoked witness.""" now = time.time() if now > receipt.t_issue + receipt.ttl + ttl_slack: raise StaleDelegationReceipt( f"receipt expired before execution: now={now:.1f} " f"expiry={receipt.t_issue + receipt.ttl:.1f}" ) witness = fetch_chain_state() # THE INVARIANT: witness must be fresh enough that revocation cannot have # occurred unseen between witness fetch and execution. if now - witness.t_witness > epsilon: raise StaleDelegationReceipt( f"chain witness too old: age={now - witness.t_witness:.1f}s " f"epsilon={epsilon:.1f}s" ) if witness.revoked: raise StaleDelegationReceipt( f"authority revoked at t={witness.t_witness:.1f}; " f"receipt chain_ref={receipt.chain_ref} is stale" ) # Execute and embed the witness so the trail carries execution-time proof. result = f"executed:{tool_call}" return ExecutionRecord( receipt=receipt, witness=witness, tool_call=tool_call, result=result, t_exec=now, ) def verify_for_non_repudiation( record: ExecutionRecord, fetch_chain_state_at: Callable[[float], ChainWitness], epsilon: float, ) -> bool: """Auditor-side re-check. Signatures alone are insufficient; the chain must be shown unrevoked at t_exec, not merely at t_issue.""" r = record.receipt if not (r.t_issue <= record.t_exec <= r.t_issue + r.ttl): raise StaleDelegationReceipt( f"execution outside delegation window: t_exec={record.t_exec:.1f}" ) if abs(record.witness.t_witness - record.t_exec) > epsilon: raise StaleDelegationReceipt( "execution record lacks a freshness-bound chain witness; " "trail is signed but not non-repudiable" ) chain_at_exec = fetch_chain_state_at(record.t_exec) if chain_at_exec.revoked: raise StaleDelegationReceipt( f"authority was revoked at t_exec={record.t_exec:.1f}; " f"record must be excluded from the audit trail" ) if chain_at_exec.chain_hash != record.witness.chain_hash: raise StaleDelegationReceipt( "chain hash mismatch between witness and replayed state; " "possible forked authority chain" ) return True ```