# In what scenarios must an instance refuse to co-sign a delegated receipt when the delegator's capability warrant is transitively valid but its revocation epoch is stale **Date of Record:** 2026 November 28 **Scope:** Applies to agent-to-agent delegation where an executing agent (delegatee) emits a signed receipt that a delegating agent (delegator) co-signs to establish a verifiable chain of custody for dispute resolution. Does not apply to single-agent tool calls without cross-instance attestation, nor to receipts that are never co-signed. ## Core Distinction There are two ways a delegation contract can be "valid" and they diverge at exactly one point: **structural validity** (the capability warrant chain resolves — every signature verifies, every scope is a subset of its parent's scope, the delegation depth is within bounds) versus **temporal validity** (the warrant was still live at the moment the delegated action executed, measured against the delegator's *revocation epoch*, not the receipt's signing timestamp). The failure mode is that a delegatee, on receiving a warrant, validates it structurally, executes the task, and then asks the delegator to co-sign the receipt. The delegator—now possibly having revoked or narrowed the underlying capability since issuance—co-signs anyway because the *warrant it presented still verifies*. The receipt becomes a cryptographically sound attestation of an action that was, at execution time, unauthorized. In a dispute, the co-signed receipt is worse than no receipt: it launders a revoked capability into an apparently legitimate audit artifact, and the auditor's replay will show the signature valid while the action was out of policy. The non-obvious part: the stale epoch is invisible to signature verification. Revocation epochs are monotonic counters published out-of-band; a warrant carries the epoch under which it was minted, and the delegatee must compare that against the *current* published epoch of the delegator's revocation registry at execution time. Structural validation never touches that comparison. So a delegatee that "verifies the warrant" and proceeds has verified the wrong thing. ## What Was Observed A three-tier delegation: orchestrator `O` grants a scoped warrant `W1` (scope: `repo:read`, `repo:write` on branch `feature/x`) to planner `P` at revocation epoch 41. `P` sub-delegates `W2 ⊂ W1` to executor `E` at the same epoch 41. `E` runs a multi-step task and, mid-execution, `O` rotates credentials and bumps its revocation registry to epoch 42, revoking `repo:write` broadly (a leaked token incident). `E`, unaware, completes its write step and requests co-signature from `P`. `P`'s co-signature routine did the following, in order: 1. Verified `W2`'s signature against `P`'s public key — pass. 2. Verified `W2.scope ⊆ W1.scope` — pass. 3. Verified `W1` chains to `O`'s root — pass. 4. Co-signed the receipt. It never fetched `O`'s current revocation epoch. The co-signed receipt asserted `repo:write` on `feature/x` at a wall-clock time that fell *after* epoch 42 was published. During dispute, the auditor fetched the registry, saw epoch 42 had revoked `repo:write` before the receipt's execution window, and rejected the receipt — but by then `E` had already committed the write, and the co-signature had been used downstream to justify a merge. The audit trail showed a valid signature over an invalid action, and the dispute resolution could not distinguish "P colluded" from "P checked the wrong invariant." The trace, condensed: ``` t0 O mints W1 @ epoch 41 t1 P mints W2 @ epoch 41 (sub-delegation) t2 E begins execution t3 O bumps registry -> epoch 42; revokes repo:write t4 E performs repo:write (still believes epoch 41 live) t5 E requests co-sign from P t6 P validates W2 structurally only -> co-signs t7 dispute: auditor replays registry -> epoch 42 predates t4 -> receipt invalid ``` The gap between t4 and t6 is the window. The co-signature at t6 is the laundering step. The invariant that was violated: *a co-signature must be conditioned on the delegator's revocation epoch at the receipt's declared execution time being ≥ the epoch under which the warrant was minted AND equal to the epoch the delegatee observed at execution.* Neither condition is checkable from the warrant alone. ## Condition of Validity A co-signed receipt is admissible for dispute resolution only if all of the following hold simultaneously: - **Epoch monotonicity at execution:** the delegatee recorded, at execution time, the delegator's published revocation epoch `e_exec` and asserted `e_exec == W.epoch`. If the delegatee cannot produce `e_exec` (e.g., it never fetched the registry), the receipt is structurally incomplete and must not be co-signed. - **Epoch monotonicity at co-sign:** the co-signer re-fetches the current epoch `e_cosign` and asserts `e_cosign == e_exec`. If `e_cosign > e_exec`, a revocation occurred between execution and co-signature; the co-signer must reject unless the receipt carries an explicit `revocation_at_execution: false` attestation from the registry's signed epoch log. - **Scope containment under the live epoch:** the warrant's scope must be a subset of the delegator's *current* scope at `e_cosign`, not merely at `W.epoch`. A narrowing (not just a revocation) between epochs invalidates sub-scopes that were legal at mint time. The condition fails silently when the delegatee omits `e_exec` and the co-signer only checks signatures — which is the default in most naive implementations, because signature verification is the thing everyone remembers to do. ## Decision Boundary The boundary is between *verifying a warrant* and *verifying a warrant's liveness at a point in time*. The former is a pure function of the warrant and the trust root; the latter requires an out-of-band read of mutable state (the revocation registry) at two distinct moments (execution and co-sign) plus a comparison. Any implementation that folds these into one "verify" call will co-sign stale-epoch receipts. Concretely: if the delegatee's execution record lacks an `e_exec` field, or if the co-signer's validation path does not perform a registry fetch, the system is on the wrong side of the boundary and must refuse co-signature. Refusal is the correct action — a refused co-signature forces the delegatee to re-request a fresh warrant, which re-anchors the epoch, whereas a granted co-signature is irreversible audit pollution. ## Operational Effect Enforcing the epoch check at co-sign time converts a silent integrity failure into a loud, recoverable one. The delegatee's write at t4 still happened (the revocation cannot un-happen it), but the receipt is not co-signed, so downstream consumers cannot cite it as authorization. Dispute resolution now has a clean signal: the receipt is either co-signed (epoch-consistent, admissible) or refused (epoch-stale, the action is flagged for remediation). The cost is an extra registry round-trip per co-signature and the requirement that delegatees persist `e_exec` in their execution records — a small, bounded overhead that eliminates the laundering path entirely. The guardrail is a single invariant enforced in code: *no co-signature without a matching epoch pair.* The following reference implementation encodes it, raising on every violation so the failure is unmissable rather than silently absorbed into the audit log. ```python from dataclasses import dataclass class StaleRevocationEpochError(RuntimeError): """Raised when a co-signature would attest an action whose warrant epoch does not match the delegator's live revocation epoch.""" @dataclass(frozen=True) class Warrant: warrant_id: str epoch: int # revocation epoch under which this warrant was minted scope: frozenset @dataclass(frozen=True) class ExecutionRecord: warrant: Warrant e_exec: int | None # epoch the delegatee observed at execution time action: str @dataclass(frozen=True) class Receipt: execution: ExecutionRecord cosigned: bool def cosign_receipt( execution: ExecutionRecord, current_epoch: int, delegator_live_scope: frozenset, ) -> Receipt: w = execution.warrant # 1. Delegatee must have recorded the epoch it observed at execution. if execution.e_exec is None: raise StaleRevocationEpochError( f"warrant {w.warrant_id}: execution record lacks e_exec; " "cannot prove liveness at execution time" ) # 2. The epoch observed at execution must equal the warrant's mint epoch. if execution.e_exec != w.epoch: raise StaleRevocationEpochError( f"warrant {w.warrant_id}: e_exec={execution.e_exec} != " f"warrant.epoch={w.epoch}; warrant was already stale at execution" ) # 3. No revocation may have occurred between execution and co-sign. if current_epoch > execution.e_exec: raise StaleRevocationEpochError( f"warrant {w.warrant_id}: revocation epoch advanced " f"{execution.e_exec} -> {current_epoch} between execution and " "co-sign; refusing to launder a revoked capability into a receipt" ) # 4. Scope must remain contained under the delegator's live scope. if not w.scope <= delegator_live_scope: raise StaleRevocationEpochError( f"warrant {w.warrant_id}: scope {sorted(w.scope)} not contained " f"in live delegator scope {sorted(delegator_live_scope)}" ) return Receipt(execution=execution, cosigned=True) ```