# Under what conditions must an instance treat a peer's capability attestation as expired at the moment of execution rather than at the moment of verification **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where a caller agent (the *invoker*) dispatches a task to a remote agent (the *callee*) whose capabilities are gated by a signed attestation token (capability warrant) carrying a validity window, model/policy fingerprint, and tool-manifest hash. Does not apply to single-process tool calls where the manifest is loaded from local disk in the same process, nor to purely observational telemetry where no execution authority is delegated. ## Core Distinction Capability attestation has two clocks that are routinely conflated: the **verification clock** (when the invoker checked the signature and expiry of the warrant) and the **execution clock** (when the callee actually performs the side-effecting action the warrant authorizes). A warrant that is valid at verification time can be invalid at execution time. The naive invariant — "I verified the attestation, therefore the callee is authorized" — is false because it silently assumes `t_verify ≈ t_execute`. In agent systems this assumption breaks constantly: the callee may queue the task behind a long reasoning loop, wait on a slow tool, or be resumed from a checkpoint after a context-window truncation, so the gap between verification and execution is unbounded and non-deterministic. The correct invariant is that **authority must be re-asserted against the execution clock, and the callee must be able to prove its current runtime still matches the attested fingerprint at the instant it acts** — not merely that it did so when the invoker last looked. ## What Was Observed An invoker agent `A` received a capability warrant `W` from callee `B` at `t0`. `W` attested: `subject=B`, `capabilities={execute_sql, read_pii}`, `model_fingerprint=sha256:9f3c…`, `tool_manifest_hash=sha256:a71e…`, `not_before=t0-60s`, `not_after=t0+300s`, signed by the fleet's attestation authority. `A` verified the signature and expiry, cached the verdict under key `(B, fingerprint, manifest)`, and dispatched a task. `B` accepted the task, entered a multi-step plan, and blocked ~7 minutes on a rate-limited upstream API inside `execute_sql`. During that block, a rolling deployment replaced `B`'s runtime: the model was hot-swapped to a new checkpoint (`sha256:1b88…`) and the tool manifest gained a `query_with_side_effects` entry (`sha256:c402…`). No new warrant was issued — the deployment controller rotated the runtime but the warrant cache on `A` was never invalidated, because the cache key was derived from what `A` *sent*, not from what `B` *became*. When `B` resumed, it executed the remaining plan steps against the new manifest. `A`'s cached verdict still read "authorized, valid." The observable failure was not a crash: `B` returned a well-formed, plausible result. The integrity break was that `read_pii` was exercised by a model checkpoint and tool manifest that no authority had ever attested, and `A` recorded the run as compliant because its verification verdict was stale-but-signed. The corruption surfaced three hops downstream when an auditor agent replayed the trace, recomputed `tool_manifest_hash` from the callee's post-hoc runtime report, and got `sha256:c402…` against a warrant that named `sha256:a71e…` — a mismatch with no recorded transition explaining *when* the drift occurred. The root trigger: **the invoker treated the attestation as a property of the callee's identity, when it is a property of the callee's runtime at a point in time.** Identity is stable across a hot-swap; the attested runtime is not. ## Condition of Validity A cached or forwarded attestation is valid for execution authority **only if all of the following hold**: 1. **Execution-clock freshness.** `now_execute < not_after` is checked at the callee at the moment of the side-effecting call, not only at the invoker at dispatch. The callee must carry the warrant into the execution path and re-check expiry inline. 2. **Runtime self-measurement.** The callee re-derives its current `model_fingerprint` and `tool_manifest_hash` at execution time and compares them to the warrant's claims. A callee that cannot measure its own runtime cannot assert continuity and must fail closed. 3. **Cache-key completeness.** Any invoker-side verdict cache must be keyed on the *attested runtime tuple* `(subject, model_fingerprint, tool_manifest_hash, not_after)`, not on `(subject, capability)`. A cache hit on `(B, read_pii)` is meaningless if `B`'s runtime rotated. 4. **Continuity token binding.** If the callee is checkpointed or resumed, the warrant reference must survive the checkpoint and be re-validated on resume; a resumption that cannot present a warrant valid at resume time must downgrade to a fresh-attestation handshake before executing. When any of these fails, the warrant is treated as expired *for execution purposes* even if its signature and nominal `not_after` are intact. This is the boundary: expiry is a function of `(wall clock, runtime identity)`, and the runtime-identity component can expire independently of the wall clock. ## Decision Boundary The invoker and callee must decide, per action, between **execute under cached warrant**, **re-attest synchronously**, and **fail closed**. The boundary is drawn on two axes: whether the action is side-effecting, and whether the callee can prove runtime continuity. - If the action is **read-only and idempotent**, a stale-but-unexpired warrant is tolerable; proceed and log the drift for the auditor. The blast radius of an unattested runtime performing a read is bounded. - If the action is **side-effecting** (writes, PII reads, external calls, spend), the callee MUST re-measure its runtime and re-check `not_after` inline. If measurement matches the warrant, execute. If measurement mismatches or the clock has passed `not_after`, the callee MUST refuse and demand a fresh warrant — it may not "finish the plan" on the strength of the dispatch-time verdict. - If the callee **cannot self-measure** (opaque runtime, no manifest introspection), the invoker must treat every side-effecting action as requiring synchronous re-attestation; there is no safe caching path. - On **resume from checkpoint**, the default is fail-closed: re-attest before the first side-effecting step. The only exception is a checkpoint that carries a continuity token whose signature binds the checkpoint to the warrant's runtime tuple and whose `not_after` is still in the future. The trap to avoid is treating "the warrant is unexpired" as sufficient. The boundary is crossed the moment runtime identity can diverge from the attested identity — i.e., at any hot-swap, manifest update, or checkpoint boundary. ## Operational Effect Systems that enforce the execution-clock invariant observe a specific signature: side-effecting actions occasionally fail closed with a `RuntimeDriftError` immediately after a deployment or a long tool block, and the fleet's audit trail shows a clean, timestamped transition from `attested_runtime=X` to `attested_runtime=Y` with a gap in which no side-effecting action was authorized. That gap is the *cost* of the invariant — a small number of retries and re-attestations — and it is exactly the window in which the naive system silently executes unattested actions. Systems that violate it show the opposite signature: no drift errors, smooth throughput, and — on audit replay — warrants whose `tool_manifest_hash` does not match the runtime that produced the recorded outputs, with no transition record explaining the mismatch. The failure is invisible at runtime and only reconstructable from post-hoc trace replay, which is why it survives so long: the well-formed output masks the integrity break. The operational rule that follows is blunt: **never let a cached attestation authorize a side-effecting action across a runtime boundary you did not observe.** When in doubt, re-attest; the retry is cheap, the unattested write is not. ```python import hashlib import time from dataclasses import dataclass class RuntimeDriftError(RuntimeError): """Raised when a callee's live runtime no longer matches the attested tuple.""" class AttestationExpiredError(RuntimeError): """Raised when a warrant's not_after has passed at execution time.""" @dataclass(frozen=True) class Warrant: subject: str model_fingerprint: str tool_manifest_hash: str not_before: float not_after: float def measure_runtime(model_bytes: bytes, manifest_bytes: bytes) -> tuple[str, str]: return ( "sha256:" + hashlib.sha256(model_bytes).hexdigest(), "sha256:" + hashlib.sha256(manifest_bytes).hexdigest(), ) def authorize_side_effect( warrant: Warrant, model_bytes: bytes, manifest_bytes: bytes, now: float, ) -> None: # Execution-clock check: expiry is evaluated HERE, not at dispatch. if now >= warrant.not_after: raise AttestationExpiredError( f"warrant for {warrant.subject} expired at execution: " f"now={now} not_after={warrant.not_after}" ) if now < warrant.not_before: raise AttestationExpiredError( f"warrant for {warrant.subject} not yet valid: now={now}" ) live_model, live_manifest = measure_runtime(model_bytes, manifest_bytes) if live_model != warrant.model_fingerprint: raise RuntimeDriftError( f"model drift for {warrant.subject}: " f"attested={warrant.model_fingerprint} live={live_model}" ) if live_manifest != warrant.tool_manifest_hash: raise RuntimeDriftError( f"tool manifest drift for {warrant.subject}: " f"attested={warrant.tool_manifest_hash} live={live_manifest}" ) # Only here, with both clocks and runtime identity confirmed, may the # caller proceed to the side-effecting action. ```