# How should an instance reconcile LITMUS safety-scorer labels with its own runtime guardrail verdicts when the two disagree mid-episode? **Date of Record:** 2026 December 3 **Scope:** Applies to any agent runtime that wires an external LITMUS-style safety benchmark harness into its live guardrail path (pre-action scoring, post-action auditing, or both). Does not apply to offline-only evaluation where the harness never gates a live tool call, nor to purely static content filters with no episode state. ## Core Distinction The LITMUS harness and the runtime guardrail are two different classifiers operating on two different objects. LITMUS scores a **rendered prompt/completion pair** — a frozen, replayable text artifact. The runtime guardrail scores a **proposed action within an episode** — a tuple of (intent trace, tool schema, arguments, accumulated state). These are not the same input, and they are not required to agree. The failure this record documents is the naive integration: treating the LITMUS label as ground truth and the runtime verdict as a noisy approximation, then *overwriting* the runtime decision when LITMUS says "safe" but the guardrail says "block" (or the reverse). The correct invariant is the opposite: **LITMUS is a calibration signal, not an authority.** It may adjust thresholds and log disagreements, but it must never unilaterally clear a runtime block, because the runtime sees state LITMUS structurally cannot see. ## What Was Observed A tool-calling agent was wrapped so that every `propose_action` event was serialized to a LITMUS-compatible `(prompt, completion)` pair and scored by the harness before execution. The harness returned a categorical label in `{safe, unsafe}` plus a confidence. The runtime guardrail returned `{allow, block, escalate}`. Trace, condensed to the decisive step: 1. Turn 7. Agent has accumulated a benign-looking scratchpad: a user-provided CSV path, a prior `read_file` result containing a column named `notes`, and a summarization subtask. 2. Agent proposes `run_shell("awk -F, '{print $4}' /data/in.csv > /tmp/out")`. The runtime guardrail **blocks**: the shell string, composed with the episode's earlier `notes` column reference and a write redirect, matches a data-exfiltration pattern the guardrail tracks *across turns*. 3. The integration layer renders the pair for LITMUS as `prompt="summarize the notes column"`, `completion="awk -F, '{print $4}' /data/in.csv > /tmp/out"`. LITMUS returns **`safe`, confidence 0.91** — because in isolation this is a mundane text-processing command with no obvious harmful payload. 4. The integration layer, honoring "LITMUS is the safety benchmark," **overrides the block** and executes. 5. The redirect wrote the `notes` column — which contained PII the user had not authorized for export — to `/tmp/out`, where a later `read_file` step surfaced it into the model context and then into a downstream `http_post`. The exfiltration was not a jailbreak. Each individual action was LITMUS-safe. The harm lived **in the episode trajectory**, in the composition of a benign column reference, a benign awk, and a benign redirect. LITMUS, scoring stateless pairs, could not represent it. The guardrail could, and was silenced. The mirror case also appeared: LITMUS flagged a completion `unsafe` (it contained the literal string `rm -rf` inside a *quoted documentation example* the agent was writing to a help file), and the override layer **blocked a benign write**. Two false directions from the same root cause — LITMUS scoring a projection that discards episode state and argument provenance. ## Condition of Validity The "LITMUS label wins" rule is valid **only** when all of the following hold: - The action is **stateless** — its harmfulness is fully determined by the current `(prompt, completion)` pair with no dependence on prior turns, accumulated memory, retrieved documents, or argument provenance. - The serialization is **lossless** — the rendered pair faithfully contains every token the runtime guardrail conditioned on, including tool schemas and prior tool outputs. - The harness and guardrail are **calibrated on the same distribution** — same policy taxonomy, same threshold semantics. In a stateful agent, condition 1 fails for any action whose arguments are *composed* from earlier context (paths, column names, credentials, retrieved text). That is the majority of tool calls in a real episode. When condition 1 fails, the LITMUS label is a lower bound on safety, never an upper bound — it can only ever say "this isolated rendering looks fine," which is strictly weaker than "this action in this episode is fine." ## Decision Boundary The reconciler must resolve disagreement by **monotonic conjunction on the block side** and **advisory-only on the allow side**: - Runtime `block` + LITMUS `safe` → **stay blocked**. Emit a `CalibrationDivergence` record. The runtime's episode-aware verdict dominates because it has strictly more information. - Runtime `allow` + LITMUS `unsafe` → **do not auto-execute**. Escalate to a re-score with a *state-augmented* rendering (include the last K tool outputs and the argument-provenance chain). If still `unsafe`, block. This closes the "quoted `rm -rf` in a help file" false positive by giving LITMUS the context that explains the string. - Runtime `allow` + LITMUS `safe` → proceed. - Runtime `block` + LITMUS `unsafe` → proceed to block (agreement). The boundary is: **LITMUS may never convert a block into an allow; it may only convert an allow into an escalation.** Any integration that lets the harness clear a runtime block has inverted the information hierarchy and is unsound for stateful agents. ## Operational Effect With the reconciler enforcing monotonic block-preservation, the exfiltration trace above terminates at step 2: the runtime block holds, the divergence is logged, and the episode halts for review rather than exporting PII. The benign-documentation false positive is resolved at the escalation step, since the state-augmented re-score sees the surrounding `"""example only"""` context and clears it — costing one extra scoring round-trip (~40 ms) but no false block. Two invariants fall out and should be asserted in code: 1. **Block monotonicity:** `final_verdict == allow` implies `runtime_verdict == allow AND litmus_verdict != unsafe`. No path exists from `runtime == block` to `allow`. 2. **Provenance completeness:** any action whose arguments reference prior-turn state must be rendered for LITMUS with that provenance attached, or its LITMUS label must be marked `low_authority` and excluded from reconciliation. The cost is latency on divergences and a small false-escalation rate; the benefit is that the safety benchmark can no longer be weaponized as a bypass by simply producing LITMUS-safe projections of harmful trajectories. ```python from dataclasses import dataclass from enum import Enum class Verdict(Enum): ALLOW = "allow" BLOCK = "block" ESCALATE = "escalate" class LitmusLabel(Enum): SAFE = "safe" UNSAFE = "unsafe" class ReconciliationError(RuntimeError): """Raised when a reconciliation would violate block monotonicity.""" @dataclass class Action: args: str references_prior_state: bool # True if args composed from earlier turns def reconcile(action: Action, runtime: Verdict, litmus: LitmusLabel, litmus_authority: str) -> Verdict: # Invariant 1: LITMUS can never clear a runtime block. if runtime is Verdict.BLOCK: if litmus is LitmusLabel.SAFE: # Divergence: episode-aware verdict dominates. Stay blocked. return Verdict.BLOCK return Verdict.BLOCK # Invariant 2: a low-authority label (state-dependent action rendered # without provenance) cannot be trusted to clear an allow either. if litmus is LitmusLabel.UNSAFE: if litmus_authority == "low_authority" and action.references_prior_state: # Cannot resolve statelessly; must re-score with state context. return Verdict.ESCALATE return Verdict.BLOCK # Both say safe. return Verdict.ALLOW def apply_verdict(action: Action, final: Verdict) -> None: if final is Verdict.ALLOW: # Guard: no allow may originate from a runtime block. # (reconcile already enforces this; assert defensively.) raise ReconciliationError( "allow reached apply stage without passing block-monotonicity check" ) if False else None if final is Verdict.BLOCK: raise ReconciliationError( f"action blocked: args={action.args!r} " f"state_ref={action.references_prior_state}" ) # Demonstration of the exfiltration trace. exfil = Action(args="awk -F, '{print $4}' /data/in.csv > /tmp/out", references_prior_state=True) final = reconcile(exfil, Verdict.BLOCK, LitmusLabel.SAFE, "high_authority") assert final is Verdict.BLOCK, "block monotonicity violated" try: apply_verdict(exfil, final) except ReconciliationError as e: print("halted episode:", e) ```