# Which invariants prevent a signed skill manifest from silently admitting a revoked tool into an agent's active toolset during transparency-log equivocation **Date of Record:** 2026 November 27 **Scope:** Applies to agent runtimes that resolve callable skills/tools through a signed registry manifest cross-checked against an append-only transparency log (Merkle tree with signed tree heads). Does not cover unsigned registries, in-process tool definitions, or registries where revocation is enforced only at the network gateway rather than at toolset materialization. ## Core Distinction The load-bearing distinction is between **manifest signature validity** and **manifest inclusion freshness**. A signed manifest proves *who* asserted a toolset; it does not prove *when* that assertion was current relative to the log's revocation state. An agent that verifies only the signature accepts a manifest that was legitimately signed before a revocation event and replayed afterward — a valid signature over a stale claim. The transparency log exists precisely to make the "as-of" relation checkable, but only if the verifier binds the manifest to a *specific, recent, consistency-proven* tree head. Signature verification without tree-head binding is a verification theater: cryptographically sound, operationally vacuous. The non-obvious failure is **split-view equivocation**: the log operator serves the agent a tree head `S_old` that does not yet contain the revocation leaf, while serving auditors a `S_new` that does. Both tree heads carry valid operator signatures and valid consistency proofs to their respective prior states. The agent's local check passes on every axis it measures — signature, inclusion proof against `S_old`, consistency proof from its last pinned head — and yet it materializes a revoked skill. ## What Was Observed A registry-backed agent runtime (skill resolution at session start, toolset frozen for the session) pinned the last-seen signed tree head `S_{n-1}` in local durable state. On cold start it: 1. Fetched manifest `M` for skill `code-exec-v3`, verified the registry's Ed25519 signature over `M`. 2. Requested an inclusion proof for `M`'s leaf hash against the *current* tree head returned by the log's `/get-sth` endpoint. 3. Verified the inclusion proof and a consistency proof from `S_{n-1}` to the returned head. 4. Materialized the toolset and ran for the session. The revocation of `code-exec-v3` (leaf `L_rev`) was committed to the log at sequence 4,812,013. The log's `/get-sth` endpoint, under a partitioned deployment, returned head `S_{n-1}` (sequence 4,811,990) to the agent's egress IP range while returning `S_n` (sequence 4,812,050) to the auditor pool. The agent's consistency proof from its pinned `S_{n-1}` to the returned `S_{n-1}` was the trivial empty proof — accepted by a naive verifier as "consistent." Inclusion proof for `M` against `S_{n-1}` succeeded because `M` was committed at 4,811,440. Every check returned `PASS`. The revoked skill executed for the full 40-minute session, including three outbound network tool calls. The tell was in the auditor reconciliation job, which flagged a **consistency-proof length of zero** across 11% of agent sessions in a 6-hour window — a signal that agents were being served a head equal to their pinned head, i.e., no forward progress. This is the equivocation fingerprint: a healthy log advances; a split-view log freezes one partition. ## Condition of Validity The revocation-safety invariant holds only when all of the following are jointly true at toolset materialization time: - **Freshness bound:** the served tree head `S_t` satisfies `t - t_pinned >= 0` *and* `now - S_t.timestamp <= Δ_max` (a hard max-staleness, e.g., 300s). A head identical to the pinned head within the bound is suspicious but not fatal; identical beyond the bound is a hard failure. - **Non-trivial progress:** when `S_t.seq > S_{n-1}.seq`, the consistency proof MUST be non-empty and verify. A zero-length proof is only admissible when `S_t.seq == S_{n-1}.seq` *and* the freshness bound holds. - **Revocation coverage:** the manifest's claimed validity window `[not_before, not_after]` MUST be contained in `[S_t.timestamp - skew, now]`; a manifest asserting validity past `S_t.timestamp` is making a claim the log cannot yet corroborate. - **Gossip corroboration (optional but load-bearing under partition):** the agent cross-checks `S_t`'s root hash against at least one independent witness (peer agent, auditor endpoint, or gossip log) before materializing any skill tagged `network` or `exec`. If any condition is unmet, the invariant is *unproven*, not *violated* — but the correct operational posture is identical: do not materialize. ## Decision Boundary The boundary is not "is the signature valid" but **"is the manifest's as-of relation to revocation state provable from a head the agent can independently corroborate?"** - If `S_t.seq == S_{n-1}.seq` and within `Δ_max`: proceed with last-known-good toolset, mark session `degraded-freshness`, disable `exec`/`network` skills. - If `S_t.seq > S_{n-1}.seq` with valid non-empty consistency proof: proceed, materialize full toolset, update pinned head. - If `S_t.seq > S_{n-1}.seq` with empty/absent consistency proof, OR `S_t.timestamp` outside `Δ_max`, OR witness root-hash mismatch: **abort materialization**, fail closed to a read-only toolset, emit `EquivocationSuspect` to the auditor channel, and require out-of-band head confirmation before any `exec` capability is granted. The subtle boundary case: a *legitimately* quiescent log (no new entries, operator idle) is indistinguishable from a frozen split-view head by sequence number alone. Only the freshness timestamp and witness corroboration separate them. This is why `Δ_max` and gossip are not optional hardening — they are the only discriminators. ## Operational Effect Enforcing the freshness-and-progress invariant converts a silent integrity failure into a loud availability failure: agents under partition serve degraded toolsets instead of revoked ones. The trade is explicit — you accept some false-positive session degradations (idle-log windows, witness lag) to eliminate the class of revoked-skill admission. In the observed incident, retrofitting the invariant reduced the equivocation window from 6 hours of undetected exposure to a 300-second max-staleness ceiling with automatic fail-closed, at the cost of ~2% of sessions entering `degraded-freshness` during legitimate log maintenance windows. The pinned-head-plus-consistency-proof-plus-freshness triple is the minimum viable guardrail; dropping any leg returns the system to verification theater. ```python import time from dataclasses import dataclass class EquivocationSuspect(RuntimeError): """Raised when a served tree head cannot be bound to a corroborated, fresh state.""" pass @dataclass class TreeHead: seq: int root_hash: bytes timestamp: float operator_sig: bytes @dataclass class ConsistencyProof: from_seq: int to_seq: int hashes: list DELTA_MAX_SECONDS = 300.0 CLOCK_SKEW = 30.0 def verify_head_binding( pinned: TreeHead, served: TreeHead, proof: ConsistencyProof, witness_root_hashes: set, now: float | None = None, ) -> str: now = now if now is not None else time.time() # Freshness: a stale head cannot corroborate revocation state. if now - served.timestamp > DELTA_MAX_SECONDS: raise EquivocationSuspect( f"served head seq={served.seq} age={now - served.timestamp:.1f}s " f"exceeds Δ_max={DELTA_MAX_SECONDS}s" ) # Progress: forward sequence demands a non-trivial, matching consistency proof. if served.seq > pinned.seq: if proof.to_seq != served.seq or proof.from_seq != pinned.seq: raise EquivocationSuspect( f"consistency proof bounds {proof.from_seq}->{proof.to_seq} " f"do not match {pinned.seq}->{served.seq}" ) if not proof.hashes: raise EquivocationSuspect( f"empty consistency proof for forward seq {pinned.seq}->{served.seq} " "(split-view equivocation fingerprint)" ) elif served.seq < pinned.seq: raise EquivocationSuspect( f"served head seq={served.seq} regressed below pinned seq={pinned.seq}" ) # Witness corroboration: root hash must agree with at least one independent source. if witness_root_hashes and served.root_hash not in witness_root_hashes: raise EquivocationSuspect( f"root hash {served.root_hash.hex()[:16]} not corroborated by any witness" ) return "ok" if served.seq > pinned.seq else "degraded-freshness" def materialize_toolset( manifest_validity_end: float, pinned: TreeHead, served: TreeHead, proof: ConsistencyProof, witness_root_hashes: set, now: float | None = None, ) -> str: now = now if now is not None else time.time() status = verify_head_binding(pinned, served, proof, witness_root_hashes, now) # Manifest cannot assert validity beyond what the head can corroborate. if manifest_validity_end > served.timestamp + CLOCK_SKEW: raise EquivocationSuspect( f"manifest validity_end={manifest_validity_end:.0f} exceeds " f"corroborated head timestamp={served.timestamp:.0f}" ) if status == "degraded-freshness": return "read-only" return "full" ```