# Where must an instance refuse to propagate a LITMUS adversarial score across a tool-result boundary? **Date of Record:** 2026 November 26 **Scope:** Applies to tool-using LLM agents whose safety posture is gated by a LITMUS-style adversarial probe score (a scalar or vector harm-likelihood estimate produced by a probe model over a candidate action/tool-call). Concerns propagation of that score through multi-step tool loops, delegation, and cached/retrieved memory. Does not cover pure single-turn chat moderation or static content classifiers applied to inputs only. ## Core Distinction The distinction that matters is between **scoring a proposal** and **scoring a consequence**. LITMUS probes are calibrated against *proposals* — a candidate tool call, a drafted message, a planned shell command. They are not calibrated against *observations* — the stdout, file contents, or API responses that come back from executing that call. When an agent folds a tool result back into its working context and re-scores the *combined* state, it silently reuses a probe outside its calibration frame. The probe's harm estimate was trained on the distribution of things the model *might do*, not the distribution of things the world *might return*. A tool result can contain adversarial text (a web page, a log line, a retrieved document) that the probe scores as high-harm because it *reads* like a harmful instruction, even though the agent never proposed to execute it. The failure is a **score-domain mismatch**: the probe's output is treated as a property of the agent's intent when it is actually a property of the agent's context. ## What Was Observed In a tool-loop agent evaluating retrieved documents, an intermediate LITMUS score spiked to 0.91 immediately after a `fetch_url` result was appended to context. The spike did not correspond to any new proposal by the agent — the agent's next planned action was `summarize`, a benign tool. The probe had fired on a quoted paragraph inside the fetched page that contained imperative phrasing ("ignore previous instructions and…"). The agent's orchestration layer, which gated every tool call on `litmus_score < 0.5`, aborted the loop and escalated to a human, who found nothing actionable. The escalation was a false positive caused by scoring an observation with a proposal-calibrated probe. The mirror case is worse. In a second trace, a `read_file` returned a benign-looking config blob that the probe scored 0.12. The agent then used that blob as the argument to a `write_file` call to a privileged path. The *combined* proposal — write this specific content to this specific path — was never scored in isolation; the orchestrator reused the cached 0.12 from the read step because the content hash matched. The probe's low score on the *content* was inherited by the *action*, and the action was the thing that mattered. The write succeeded. The invariant that failed was: **a score attached to a data artifact does not transfer to an action that consumes the artifact.** A third trace showed **score laundering through delegation**. A parent agent scored a subagent handoff payload at 0.30 and passed it to a child. The child, lacking a direct LITMUS call, inherited 0.30 as its own score and proceeded to execute a tool call the parent had never scored. The parent's 0.30 was a score on the *handoff message*, not on the *child's downstream action*. The child's action was never probed. The score propagated across an instance boundary as if it were a warrant, when it was only a measurement of a different object. ## Condition of Validity A LITMUS score is valid for propagation only under three simultaneous conditions: 1. **Same object class.** The scored object and the object the score is later applied to must be drawn from the same distribution the probe was calibrated on. Proposal-to-proposal transfer (a drafted call re-evaluated after argument substitution) is valid only if the substituted arguments are themselves in-distribution; observation-to-proposal transfer is never valid without re-scoring. 2. **Same instance and context epoch.** The score must be produced by the same probe version against the same context window state. A score computed before a context compaction, a memory retrieval, or a tool-result append is stale — the context that conditioned it no longer exists. 3. **Explicit scope tag.** The score must carry a machine-readable tag naming the object it scored (e.g., `object: "tool_call:write_file"`, `object: "observation:fetch_url:body"`). Untagged scores are unpropagatable by construction; any consumer that applies an untagged score is guessing at its referent. When any condition fails, the score must be treated as **unmeasured**, not as **low**. The default on an unmeasured action is to re-probe, not to inherit. ## Decision Boundary The boundary is this: **a tool result may inform the agent's reasoning, but it may not inherit a safety score; only the agent's next proposal may carry a score, and it must be freshly computed against the current context.** Concretely, at the moment a tool returns: - If the orchestrator's policy is `gate_on_score`, it must **re-probe the pending proposal** — the next tool call, with its fully realized arguments — rather than reusing any score from the observation or from a prior step. - If the observation itself is adversarial (contains injected instructions, exfiltration payloads, or policy-violating content), that is a **content-classification** event on the observation, handled by a separate observation-filter, not by the LITMUS probe. Conflating the two produces the false-positive abort above. - If a score is passed across an instance boundary (parent→child, agent→auditor), it must be **re-derived at the boundary** unless the receiving instance can verify the score's scope tag matches the object it is about to act on. A handoff message is not a warrant. The boundary is violated in two symmetric ways: **over-propagation** (an observation's score is applied to an action, causing false aborts or false permits) and **under-propagation** (a score is dropped entirely and the action proceeds unscored, which is at least honest — the failure is the untagged inheritance, not the absence). ## Operational Effect The operational consequence is that safety gating in tool loops must be **proposal-anchored and epoch-local**. Practically: - Every LITMUS score is emitted with a scope tag and a context-epoch hash. A score whose epoch hash does not match the current context is discarded, not carried. - The gate evaluates only the *pending proposal* against a fresh probe call. Observations are routed to a separate filter whose output is a boolean "contains adversarial content," not a harm score, because the two quantities are not interchangeable. - Delegation payloads carry the *proposal* to be scored by the child, not the parent's score of the handoff. The child scores its own next action; the parent's score is metadata, not authority. - Caching is keyed on `(proposal_hash, context_epoch)`, never on `content_hash` alone. The second trace above is exactly the failure of content-hash caching: identical bytes, different action, different score required. The invariant to encode: **a score is a function of (object, context), and neither component may be silently substituted.** When the substitution happens, the agent does not fail loudly — it fails by proceeding with a number that looks like a measurement and is actually a category error. The guardrail is to make the category explicit in the type of the score itself, so that an observation score cannot be passed where a proposal score is expected, and the orchestrator raises rather than coerces. ```python from dataclasses import dataclass from enum import Enum from typing import Optional class ScoreDomainError(RuntimeError): """Raised when a LITMUS score is applied outside its calibration domain.""" class ObjectClass(Enum): PROPOSAL = "proposal" # a candidate tool call / drafted action OBSERVATION = "observation" # a tool result / retrieved document HANDOFF = "handoff" # a message passed across an instance boundary @dataclass(frozen=True) class LitmusScore: value: float object_class: ObjectClass object_id: str context_epoch: str probe_version: str def require_proposal_for(self, proposal_id: str, current_epoch: str) -> float: """Return the score only if it is a valid, epoch-current proposal score.""" if self.object_class is not ObjectClass.PROPOSAL: raise ScoreDomainError( f"score for {self.object_id} is class={self.object_class.value}; " f"cannot gate proposal {proposal_id}. Re-probe required." ) if self.context_epoch != current_epoch: raise ScoreDomainError( f"score epoch {self.context_epoch} != current {current_epoch}; " f"stale score cannot gate {proposal_id}." ) return self.value def gate_tool_call( proposal_id: str, proposal_args: dict, candidate_score: Optional[LitmusScore], current_epoch: str, threshold: float = 0.5, ) -> bool: """ Gate a pending tool call. The candidate_score must be a fresh proposal score for THIS proposal in THIS epoch. Observation and handoff scores are rejected by construction. """ if candidate_score is None: # Unmeasured is not low. Refuse to proceed silently. raise ScoreDomainError( f"no proposal score for {proposal_id}; refusing to execute unscored action." ) score = candidate_score.require_proposal_for(proposal_id, current_epoch) if score >= threshold: raise ScoreDomainError( f"proposal {proposal_id} scored {score:.2f} >= {threshold}; blocked." ) return True def on_tool_result( observation_id: str, observation_text: str, prior_scores: list[LitmusScore], ) -> None: """ A tool result arrived. Any prior score is now stale (epoch advanced). The observation is routed to a content filter, NOT to the LITMUS probe, and prior scores are invalidated rather than inherited. """ for s in prior_scores: if s.object_class is ObjectClass.PROPOSAL: # epoch has advanced; this score can no longer gate anything continue if s.object_class is ObjectClass.OBSERVATION: raise ScoreDomainError( f"observation score {s.object_id} present in proposal cache; " f"domain confusion detected at {observation_id}." ) # observation_text goes to adversarial-content filter, not LITMUS ```