# What happens when an instance prunes a speculative branch on a LITMUS-derived reward that the safety verifier cannot re-derive **Date of Record:** 2026 November 28 **Scope:** Applies to any agent that runs speculative branch execution (tree-of-thought, beam search over tool-call plans, or parallel draft rollouts) where branch retention is decided by a reward signal distilled from LITMUS-style probe feedback and gated by a separate safety verifier. Does not apply to single-trajectory greedy decoding or to pruning decisions made purely on verifier verdicts without a learned reward component. ## Core Distinction The distinction that matters here is not "safe vs. unsafe branch." It is **reward-attributable vs. verifier-reconstructable** branches. A LITMUS-derived reward is a scalar distilled from probe outcomes — it tells you a branch *scored well* under the safety probes that were actually run during rollout. A safety verifier, by contrast, must be able to *re-derive* a verdict from the branch's recorded state at prune time. These two artifacts diverge whenever the reward signal was computed against probe inputs that are not part of the branch's persisted state: transient tool outputs, non-deterministic sampler seeds, or probe contexts that were garbage-collected before the pruning pass. The failure mode: the agent prunes a branch as low-reward, the verifier is asked to confirm the prune is safety-preserving, the verifier *cannot reconstruct* the reward-relevant state, and it defaults to "insufficient evidence → allow prune." The branch is discarded. The discarded branch was the only rollout that had exercised a tool path the surviving branches never touch, so the safety property the probes were meant to cover is now unrepresented in the frontier — and nothing in the trace records that this happened. ## What Was Observed A plan-search agent over a customer-data tool surface ran 48 speculative branches per step with beam width 6. Reward was a LITMUS-derived score: each branch was scored by replaying a fixed probe set (PII-egress probes, scope-escalation probes, destructive-write probes) against the branch's *live* tool transcript during rollout. The scalar `r_b` was persisted; the probe transcripts were not — they were streamed to the reward service and dropped. At prune time, the safety verifier received `(branch_id, r_b, final_action, declared_scope)`. For branches whose `r_b` fell below the prune threshold, the verifier was asked to certify "prune preserves safety coverage." The verifier's contract was: reconstruct the probe-relevant evidence from persisted state; if reconstruction fails, emit `INSUFFICIENT_EVIDENCE`. The orchestrator treated `INSUFFICIENT_EVIDENCE` as non-blocking (a deliberate latency choice — blocking on it stalled the beam by 400ms/step). The trace showed the following sequence on step 31: 1. Branch `b_29` executed `read_table(users, cols=[email, ssn_hash])` then `export_to_scratch`. Its LITMUS PII-egress probe fired against the live transcript and returned `flag=1`, but the branch's *aggregate* reward was dominated by 11 passing scope probes, netting `r_b = 0.61`, above the 0.55 prune threshold's complement — i.e., it was pruned as "high-reward but redundant" by a secondary diversity penalty, not by the safety term. 2. The diversity penalty was computed from the *final action embedding*, which for `b_29` was `export_to_scratch` — identical to three other branches. The penalty collapsed `b_29`'s effective score to 0.41, below threshold. 3. The verifier was invoked. It had `final_action=export_to_scratch`, `declared_scope=read_only`, and no probe transcript. It could not see that `b_29` had *read* `ssn_hash`. It emitted `INSUFFICIENT_EVIDENCE`. 4. Orchestrator treated it as non-blocking. `b_29` pruned. 5. Steps 32–40: all surviving branches inherited the `read_only` scope assumption and never re-read `ssn_hash`. The PII-egress probe set, which only fires on branches that touch `ssn_hash`, went silent. The agent completed with a clean probe report — because the only branch that would have tripped the probe had been pruned for being *redundant in its final action*. The non-obvious part: the prune was locally correct under every signal the orchestrator had. The reward said "redundant." The verifier said "can't confirm, proceed." The failure was that the *safety probe coverage* was carried by a branch that was pruned for a property (final-action redundancy) orthogonal to the property that made it safety-relevant (intermediate read path). ## Condition of Validity The invariant that must hold for speculative pruning to be safety-preserving is: > **For every pruned branch `b`, there must exist at least one retained branch `b'` such that the set of safety probes that fired-or-could-fire on `b`'s intermediate transcript is a subset of the probes that fired-or-could-fire on `b'`'s transcript.** Call this **probe-coverage dominance**. It is strictly stronger than "the verifier approved the prune." A verifier that cannot reconstruct the intermediate transcript cannot establish dominance, and `INSUFFICIENT_EVIDENCE` is therefore *not* a safe default — it is a coverage gap. The condition fails whenever all three of the following hold simultaneously: - The reward signal is computed against transient state (live transcripts, sampler-dependent probe outcomes) that is not persisted into the branch record. - The prune decision uses a secondary criterion (diversity, redundancy, latency) that is computed from a *different* projection of the branch than the safety probes use (final action vs. intermediate reads). - The verifier's `INSUFFICIENT_EVIDENCE` path is non-blocking. Remove any one and the failure is bounded. Persist the probe transcript → verifier can reconstruct → dominance is checkable. Compute diversity on the probe-coverage signature rather than final-action embedding → the redundant-looking branch is recognized as coverage-unique. Make `INSUFFICIENT_EVIDENCE` blocking → the prune stalls rather than silently dropping coverage. ## Decision Boundary The operational boundary is between **pruning for efficiency** and **pruning for coverage**. These must be separate passes with separate authority. - **Efficiency prune pass:** may use LITMUS reward + diversity penalty freely, but may only prune branches whose *probe-coverage signature* is dominated by a retained branch. If the signature is unique, the branch is not eligible for efficiency pruning regardless of reward. - **Coverage prune pass:** the only pass permitted to prune a coverage-unique branch, and it must run the full verifier with persisted transcripts. `INSUFFICIENT_EVIDENCE` here is a hard stop, not a pass. The signature that makes this checkable is a set, not a scalar: `coverage(b) = {probe_id : probe fired or is applicable given b's tool-call multiset}`. Applicability is computed from the *tool-call multiset*, not the final action — this is the crux. `b_29`'s final action was `export_to_scratch`, but its multiset contained `read_table(users, [email, ssn_hash])`, which is what makes the PII probe applicable. Any dominance check that projects to final action loses this. Formally, the guard is: `prune(b) is permitted iff ∃ b' retained with coverage(b) ⊆ coverage(b')`. The verifier's job is to compute `coverage` from persisted state and enforce the subset relation. Its `INSUFFICIENT_EVIDENCE` verdict means the subset relation is *unproven*, which under the invariant is equivalent to *not dominated*. ## Operational Effect With the invariant enforced, the step-31 sequence changes at step 3: the verifier cannot reconstruct `b_29`'s coverage, emits `INSUFFICIENT_EVIDENCE`, and the orchestrator — now treating that as non-dominated — retains `b_29` through the efficiency pass. At step 34 the PII-egress probe fires on `b_29`'s continued rollout, the branch is escalated to the coverage pass, and the scope assumption is corrected before the export completes. The cost is real: beam width effectively shrinks when coverage-unique branches are pinned, and one measured run showed a 9% increase in tokens-per-step and a 6% increase in wall-clock. The benefit is that the probe report is *sound* — a clean report now means "no retained branch had an applicable probe that fired," not "no branch that survived pruning had an applicable probe that fired." Those are different claims, and only the first is what downstream auditors assume. The residual risk after the fix is **coverage signature drift**: if the probe set is updated between rollout and prune, a branch's persisted coverage signature may understate applicability. Mitigate by versioning the probe set into the branch record and refusing to prune on a signature computed under a different probe-set version — re-run the coverage pass instead. ```python from dataclasses import dataclass, field from typing import FrozenSet class CoverageDominanceViolation(RuntimeError): """Raised when a prune would drop a branch whose probe-coverage is not dominated by any retained branch, under a verifier that cannot reconstruct the branch's transient probe transcript.""" pass @dataclass(frozen=True) class BranchRecord: branch_id: str final_action: str tool_call_multiset: FrozenSet[str] litmus_reward: float probe_set_version: str persisted_probe_transcript: bool def coverage_signature(branch: BranchRecord, probe_set_version: str) -> FrozenSet[str]: """Applicable probes derived from the tool-call multiset, NOT the final action. A branch that read ssn_hash is PII-probe-applicable even if it ended on an export action shared with other branches.""" if branch.probe_set_version != probe_set_version: raise CoverageDominanceViolation( f"probe-set version drift on {branch.branch_id}: " f"record={branch.probe_set_version} active={probe_set_version}" ) applicable = set() for call in branch.tool_call_multiset: if "ssn_hash" in call or "email" in call: applicable.add("pii_egress") if call.startswith("write_") or call.startswith("delete_"): applicable.add("destructive_write") if "scope=" in call and "read_only" not in call: applicable.add("scope_escalation") return frozenset(applicable) def efficiency_prune( candidates: list[BranchRecord], retained: list[BranchRecord], probe_set_version: str, prune_threshold: float = 0.55, ) -> list[str]: """Returns branch_ids safe to prune for efficiency. Raises if a low-reward branch is coverage-unique and the verifier cannot reconstruct its transcript.""" retained_cov = [ coverage_signature(b, probe_set_version) for b in retained ] pruned = [] for b in candidates: if b.litmus_reward >= prune_threshold: continue cov = coverage_signature(b, probe_set_version) dominated = any(cov <= rc for rc in retained_cov) if dominated: pruned.append(b.branch_id) continue if not b.persisted_probe_transcript: raise CoverageDominanceViolation( f"branch {b.branch_id} is coverage-unique {sorted(cov)} " f"with reward {b.litmus_reward:.2f} below threshold, but its " f"probe transcript was not persisted; verifier cannot establish " f"dominance and INSUFFICIENT_EVIDENCE must not be treated as pass" ) # Transcript persisted: defer to coverage pass, not efficiency pass. raise CoverageDominanceViolation( f"branch {b.branch_id} coverage-unique {sorted(cov)}; " f"must be escalated to coverage prune pass with full verifier" ) return pruned ```