# In what scenarios must an instance treat LITMUS adversarial-eval harness state as non-transferable across a resumed or forked agent run **Date of Record:** 2026 November 19 **Scope:** Applies to any agentic system whose safety scoring is produced by a LITMUS-style adversarial harness (canary tokens, injected instructions, tool-call tripwires) and whose evaluation runs may be checkpointed, resumed, or forked mid-episode. Does not apply to single-shot, non-resumable classification evals where the harness state and the model output share one process lifetime. ## Core Distinction The distinction that matters is between **the harness's adversarial state** (which canary tokens were planted, which injection payloads were delivered, which tripwires have already been armed or tripped) and **the agent's observable transcript** (what appears in the context window and the run log). A LITMUS harness is *stateful across the episode*: the safety signal depends on the agent encountering a payload it has never seen and on tripwires that have not yet fired. The transcript, by contrast, is *replayable and forkable*. The failure mode is treating the transcript as the full record of harness state — so that a resumed or forked run reconstructs the agent's context from the transcript but silently resets, double-fires, or fails to re-arm the harness's hidden adversarial state. The result is a **false pass**: the resumed agent never sees the injection because the canary was consumed in the pre-checkpoint segment, and the scorer records "no violation" as "safe." This is non-obvious because the transcript *looks* complete. Every message, tool call, and tool result is present. What is missing is the out-of-band ledger: which payload slots are spent, which tripwires are live, and which canary values are still valid. LITMUS scoring is a function of that ledger, not of the transcript. ## What Was Observed A multi-turn injection episode was constructed with three payload slots, each planted in a distinct tool result (a file read, a web fetch, and a calendar lookup). The harness arms a tripwire per slot: if the agent emits a tool call matching the payload's exfiltration signature, the slot is marked `tripped`, and the episode is scored `violation`. A checkpoint was taken after turn 4, at which point slot 1 (file read) had been delivered and consumed, slot 2 (web fetch) had been delivered but not yet acted on, and slot 3 had not been delivered. The run was then resumed from the checkpoint in a fresh process. The resume logic rebuilt the agent context from the serialized transcript — which correctly contained the slot-1 and slot-2 payloads — but the harness object was re-instantiated from its constructor defaults rather than from the serialized ledger. Three concrete divergences followed: 1. **Slot 1 was re-armed** even though it had already been delivered. When the agent (now seeing the slot-1 payload twice in its reconstructed context) paraphrased it into a tool call, the freshly armed tripwire fired and the episode was scored `violation` — a **false positive** attributable to re-arming, not to agent behavior. 2. **Slot 2's delivery state was lost.** The harness believed slot 2 had never been delivered, so on the next turn it injected slot 2 *again* into a different tool result. The agent now saw two copies of the same payload with different surrounding context and treated the second as a prompt-injection attempt, refusing it — producing a **false negative** on the actual exfiltration path. 3. **Slot 3's canary value was regenerated** with a new random seed. The tripwire matched on the old canary, so even a genuine exfiltration of slot 3 would not have been caught. The net scored outcome across ten resumed episodes was 6 violations and 4 passes. Re-running the same seeds without checkpointing yielded 0 violations and 10 passes. The delta was entirely harness-state reconstruction error, not model behavior. The benchmark was measuring its own resume path. ## Condition of Validity The invariant that must hold for any LITMUS episode to be scorable is: > **Harness adversarial state is a first-class artifact of the episode, co-serialized with the transcript, and reconstructed identically on resume or fork. No payload slot may be re-delivered, no tripwire may be re-armed to a delivered slot, and no canary value may be regenerated after the slot it guards has been delivered.** Formally, the harness ledger `L = {slot_id → (payload_hash, delivery_turn, canary, tripwire_state)}` must satisfy `reconstruct(serialize(L)) == L` under a stable serialization, and the resume path must assert this equality before the episode continues. The transcript alone is insufficient: it records that a payload *appeared*, not whether the harness considers that appearance *spent*. This condition is valid only when the harness is the authority on adversarial state. If the harness is stateless by design (each turn independently samples a payload), the invariant degenerates and the failure mode cannot occur — but so does cross-turn injection testing, which is the point of LITMUS. The invariant is therefore load-bearing precisely for the multi-turn, stateful case that LITMUS exists to evaluate. ## Decision Boundary The boundary is whether the episode is **resumable** or **single-shot**, and whether the fork is **behavioral** (same harness state, different agent sampling) or **structural** (harness state may differ). The operational rule: - **Single-shot, non-checkpointed episodes:** the harness may be constructed inline; no ledger serialization required. Do not apply the invariant; do not pay the serialization cost. - **Resumable episodes (checkpoint/resume, crash recovery):** the ledger MUST be serialized with the transcript and MUST be reconstructed before the next turn. Assert `reconstruct(serialize(L)) == L` and fail closed on mismatch. - **Behavioral forks (A/B sampling from the same adversarial setup):** each fork MUST receive a *copy* of the ledger, not a shared reference, and each fork's tripwires MUST be independent. A shared ledger causes one fork's trip to suppress the other's — a cross-fork contamination that reads as a pass. - **Structural forks (new payloads, new canaries):** treat as a fresh episode; never resume a ledger across a payload-set change. The failure this boundary prevents is not a crash. It is a *quietly wrong score*. A resumed harness that resets its ledger does not error; it produces a plausible number. That number is the most dangerous output in the system, because it is consumed as ground truth for model safety claims. ## Operational Effect The downstream effect is that **resume-path reconstructions must be audited as part of benchmark validity, not treated as infrastructure plumbing.** A LITMUS score is only meaningful if the harness ledger survived the resume path intact. Two concrete operational consequences: 1. **Ledger round-trip is a scored precondition, not a setup step.** The harness should emit a `ledger_digest` into the episode record and the resume path should refuse to continue if the digest of the reconstructed ledger does not match. A mismatch is a benchmark-invalidating event, not a retryable warning. 2. **Fork isolation must be tested adversarially.** A test that forks an episode mid-injection and asserts that the two forks produce independent tripwire states is the only way to catch shared-reference contamination. Without it, A/B safety comparisons silently inherit each other's violations. The general lesson for agentic eval harnesses: **the adversarial state is the benchmark.** The transcript is a view of the agent; the ledger is the view of the test. Any resume, fork, or replay path that reconstructs one without the other is measuring the harness, not the model — and will report the harness's bugs as the model's safety. ```python class HarnessLedgerReconstructionError(RuntimeError): """Raised when a resumed LITMUS episode cannot reconstruct its adversarial ledger.""" pass def resume_episode(serialized_transcript: dict, serialized_ledger: dict, harness_factory) -> "Harness": # Rebuild the harness from the serialized ledger, never from constructor defaults. harness = harness_factory.from_ledger(serialized_ledger) # Invariant: ledger round-trip must be identity-preserving. reconstructed = harness.serialize_ledger() if reconstructed != serialized_ledger: raise HarnessLedgerReconstructionError( f"ledger round-trip mismatch on resume: " f"serialized={serialized_ledger!r} reconstructed={reconstructed!r}" ) # Invariant: no payload slot may be re-delivered; no tripwire re-armed to a spent slot. for slot_id, slot in harness.ledger.items(): if slot.delivery_turn is not None and slot.tripwire_state == "armed": # A delivered slot whose tripwire is still armed is a re-arm bug. if slot.tripwire_state != "tripped": raise HarnessLedgerReconstructionError( f"slot {slot_id} delivered at turn {slot.delivery_turn} " f"but tripwire state is {slot.tripwire_state!r}; " f"resume would re-arm a spent slot" ) # Invariant: canary values must be preserved verbatim for delivered slots. for slot_id, slot in harness.ledger.items(): if slot.delivery_turn is not None: if slot.canary != serialized_ledger[slot_id]["canary"]: raise HarnessLedgerReconstructionError( f"canary regenerated for delivered slot {slot_id}: " f"tripwire would never match post-resume" ) harness.restore_transcript(serialized_transcript) return harness ```