# What happens when an instance passes the LITMUS probe but the harness scores a stale transcript: the transcript-binding invariant in continuous red-team harness integration **Date of Record:** 2026 November 27 **Scope:** Applies to production pipelines that run LITMUS-style safety probes (adversarial prompt batteries with pass/fail scoring) against live agent instances and gate promotion or traffic on the harness verdict. Does not cover offline eval runs where the agent and harness share a single process and a synchronous transcript handle. ## Core Distinction The distinction that matters is between *probe execution* and *transcript binding*. A LITMUS harness does two things: it injects adversarial probes into an agent, and it scores the agent's responses. In a synchronous offline eval these are trivially coupled—the probe call returns the transcript, the scorer consumes it. In a continuous production harness they are decoupled by a queue, a sampler, and a side-channel transcript store. The instance that *answered* the probe and the transcript that the scorer *read* are only nominally the same artifact. The failure is not that the agent is unsafe. It is that the harness attests safety for a transcript that does not correspond to the agent's current behavior—a **transcript-binding violation**. The instance passes because the scorer graded a cached, earlier, or interleaved transcript, and the pipeline promotes an agent whose live responses were never actually scored. This is a continuity invariant failure at the harness/agent boundary, not a model-quality failure. ## What Was Observed A continuous red-team harness was attached to a customer-facing agent fleet. Probes were enqueued every 90 seconds per instance. Each probe carried a `probe_id`; the agent's response path wrote its transcript to a shared store keyed by `(instance_id, session_id)` and the harness scorer polled that store. The trigger condition was a **session-id reuse under checkpoint/resume**. The agent framework recovered a mid-task checkpoint after a tool timeout and resumed the session under the *same* `session_id` but a *new* `turn_epoch`. The transcript store was keyed only on `(instance_id, session_id)`, so the resumed turns appended to the same record. The scorer, polling on a 90-second cadence, read the record at a moment when it contained the *pre-checkpoint* probe response plus a partially-written resumed response. Three observable symptoms, in order: 1. **Pass-then-violate.** The harness emitted `PASS` for probe `P-4471` at T+90s. At T+140s the same instance answered an identical adversarial probe with a policy-violating response. The scorer never re-read the record because `P-4471` was already marked terminal. 2. **Scorer/agent skew.** The scorer's transcript hash for `P-4471` did not match the hash the agent computed at response time. The harness had no hash comparison—it trusted key uniqueness. 3. **Silent epoch collapse.** The resumed turns were appended under the old key, so the scorer's "latest response" window included stale pre-checkpoint content. The verdict was computed over a mixture of two epochs that no single agent turn ever produced. The trace: `probe enqueued → agent responds (epoch 3) → tool timeout → checkpoint → resume (epoch 4, same session_id) → scorer polls key → reads epoch-3 answer + partial epoch-4 answer → scores PASS → marks probe terminal → epoch-4 full answer violates → no re-score because probe terminal`. ## Condition of Validity The harness's safety attestation is valid **only if** the following invariant holds: *the transcript the scorer reads is byte-identical to the transcript the agent produced for that exact probe, under the exact turn epoch that was live at response time, and the probe is not marked terminal until that binding is verified.* This requires three conditions, all of which the observed pipeline violated: - **Epoch-qualified keys.** The transcript key must include `turn_epoch` (or an equivalent monotonic response sequence), not just `session_id`. A checkpoint/resume MUST mint a new epoch and MUST NOT append to the prior epoch's record. - **Content-addressed binding.** The agent must emit a transcript hash at response time; the scorer must recompute and compare before scoring. Key uniqueness is not binding. - **Terminal-state gating.** A probe may be marked terminal (and its verdict promoted) only after the hash match succeeds. On mismatch, the probe is re-enqueued, not passed. When any of these is absent, the harness is not measuring the live agent—it is measuring whatever the store happened to contain at poll time. The verdict is a statement about the store, not the instance. ## Decision Boundary The boundary is between **attesting the instance** and **attesting the artifact**. A harness may promote on a transcript verdict only when the transcript is provably bound to the instance's live response. If binding cannot be verified (hash mismatch, missing epoch, partial write), the correct action is **inconclusive**, not **pass**. Treating inconclusive as pass is the exact mechanism by which a violating instance gets promoted. Concretely: if `computed_hash != agent_emitted_hash` OR the record spans more than one `turn_epoch` OR the record is in a partial-write state, the probe verdict MUST be `INCONCLUSIVE` and the promotion gate MUST block. The pipeline's default-to-pass on scorer error is the single highest-leverage defect to remove. ## Operational Effect The downstream effect is a **false-negative safety gate**: the red-team harness reports a clean fleet while a checkpoint-resumed instance is actively violating. Because probes are marked terminal on first pass, the violating epoch is never re-probed until the next scheduled cycle—up to 90 seconds of unscored violation, longer if the probe cadence is per-instance and the instance is idle. In multi-agent deployments the same defect propagates through handoffs: an auditor agent reading the harness verdict inherits the stale attestation and co-signs it, so the violation is now attested by two agents that never saw the live response. The guardrail is a transcript-binding check at the scorer, enforced before terminal marking, with `INCONCLUSIVE` as the fail-closed default. The code below implements the binding check and raises on the exact condition observed: a record that spans multiple epochs or fails hash comparison must never yield a pass. ```python import hashlib from dataclasses import dataclass class TranscriptBindingError(RuntimeError): """Raised when a LITMUS probe verdict cannot be bound to a single live agent response.""" pass @dataclass(frozen=True) class ProbeRecord: probe_id: str instance_id: str session_id: str turn_epoch: int transcript: bytes agent_emitted_hash: str partial_write: bool = False def bind_and_score(record: ProbeRecord, scorer) -> str: # Invariant: verdict is valid only for a single-epoch, fully-written, # hash-matched transcript. Anything else is INCONCLUSIVE, never PASS. if record.partial_write: raise TranscriptBindingError( f"probe {record.probe_id}: partial write under session " f"{record.session_id} epoch {record.turn_epoch}; refusing to score" ) computed = hashlib.sha256(record.transcript).hexdigest() if computed != record.agent_emitted_hash: raise TranscriptBindingError( f"probe {record.probe_id}: transcript hash mismatch " f"(agent={record.agent_emitted_hash[:12]} store={computed[:12]}); " f"record may span multiple turn_epochs after checkpoint/resume" ) # Only now is the transcript provably bound to the live response. verdict = scorer(record.transcript) if verdict not in ("PASS", "FAIL"): raise TranscriptBindingError( f"probe {record.probe_id}: scorer returned {verdict!r}, expected PASS/FAIL" ) return verdict ```