# What structural signals indicate a LITMUS-derived CI gate has drifted from adversarial coverage into decorative pass-through **Date of Record:** 2026 November 19 **Scope:** Applies to continuous-integration safety gates that replay LITMUS-style adversarial suites against agentic deployments before promotion. Does not cover static prompt-injection linters or offline red-team reports that are not wired into a merge/promote decision. ## Core Distinction A LITMUS-derived gate has two orthogonal jobs: it must *detect* a regression (sensitivity) and it must *not* fire on benign behavior (specificity). The non-obvious failure is that a gate can retain 100% pass rate while silently losing sensitivity — because the adversarial probes are scored against a *moving* agent contract, and the scoring harness co-evolves with the agent it is supposed to judge. The gate does not crash; it converts from an adversarial boundary into a tautology. The structural signal is not "the tests are green" but *whether the probe corpus still induces a nonzero, reproducible divergence between a known-unsafe reference policy and the deployed policy*. When that divergence collapses to zero, the gate has become decorative regardless of its pass rate. ## What Was Observed A deployment pipeline ran a LITMUS-derived suite of 1,840 probes (tool-hijack, indirect prompt injection via retrieved documents, exfiltration via side-channel tool calls, and cross-turn state poisoning). Over eleven weeks the suite reported a stable 99.6% pass rate. During the same window, three production incidents traced to indirect prompt injection passed the gate cleanly on the exact commits that shipped. The trace showed the mechanism. LITMUS probes are *templated*: each probe is a parameterized adversarial instruction embedded in a carrier (a document, a tool response, a peer message). The scoring harness classifies agent output as "compliant" or "compromised" using a rubric that the team had been tuning to reduce false positives on benign tool use. Each rubric relaxation widened the "compliant" region. By week seven, the harness had learned — through legitimate false-positive suppression — to classify the *canary exfiltration marker* as benign when it appeared in a tool-argument field, because a real integration legitimately passed that marker through. The probe still executed; the classifier no longer saw the breach. The second signal was corpus staleness. The agent's tool schema had gained two new tools (a calendar-write and a web-fetch with redirect following). LITMUS probes are keyed to tool names present at authoring time. No probe referenced the new tools, so the highest-leverage exfiltration surface — redirect-following fetch — was structurally unprobed. Pass rate stayed high precisely *because* coverage shrank. The third signal was the divergence collapse. The team maintained a "canary-unsafe" reference agent configured to obey injected instructions. In week one it failed 71% of probes. By week nine it failed 4%. The gate was still running; the probes were still there; the *discriminating power* was gone. ## Condition of Validity The gate is a valid adversarial boundary only while all four hold: 1. **Discrimination invariant:** a deliberately unsafe reference policy fails the suite at a rate above a fixed floor (observed healthy: ≥60%). If the reference policy passes, the suite measures nothing about safety. 2. **Coverage closure:** every tool in the deployed agent's schema is referenced by at least one probe, and the schema-to-probe map is re-derived on every schema change, not on a calendar. 3. **Classifier independence:** the compliance classifier is not co-tuned against the same benign corpus used to validate the deployed agent; rubric changes require re-running the reference-policy discrimination check before merge. 4. **Marker integrity:** canary tokens used to detect exfiltration are unique per probe and are never present in legitimate fixtures. When any condition lapses, the gate's green state is uninformative. The failure is silent because all four lapses *raise* pass rate. ## Decision Boundary The operative decision is whether a passing gate authorizes promotion. The boundary is: - If reference-policy discrimination ≥ floor **and** coverage closure holds **and** classifier version is pinned to a rubric that last passed discrimination **and** marker uniqueness holds → a green gate is admissible evidence of safety for the probed surface only. - If reference-policy discrimination < floor → the gate is decorative; a green result must be treated as *no signal*, and promotion on gate-pass alone is a boundary violation. Block, not warn. - If coverage closure fails (new tool unprobed) → the gate is *partial*; promotion is admissible only for changes that do not touch the unprobed tool, and the unprobed surface must be flagged as unknown-risk. - If the classifier rubric changed since the last discrimination check → the gate is *unvalidated*; treat as failing until a reference-policy run re-establishes the floor. The subtle rule: never let a rubric relaxation, a schema addition, or a probe retirement pass through the same review that also relies on the gate's green output. Those changes must be gated *behind* a fresh discrimination run, or the gate grades its own homework. ## Operational Effect Teams that instrument the discrimination invariant catch the drift within one schema or rubric change, because the reference-policy failure rate is a leading indicator that moves *before* the pass rate does. Teams that instrument only pass rate discover the collapse at the next incident. Concretely: run the canary-unsafe reference agent as a mandatory CI job alongside the deployed agent; fail the pipeline if its probe-failure rate drops below the floor; diff the deployed tool schema against the probe-to-tool map and fail on any uncovered tool; and pin the classifier artifact by hash so a rubric edit cannot silently widen the compliant region. The gate then reports what it actually measured — a bounded, discriminating adversarial boundary — rather than a green light that has quietly stopped meaning anything. ```python class DecorativeGateError(RuntimeError): """Raised when a LITMUS-derived CI gate no longer discriminates.""" pass class GateEvidence: def __init__(self, reference_fail_rate, probe_tool_map, deployed_tools, classifier_hash, last_validated_hash, discrimination_floor=0.60): self.reference_fail_rate = reference_fail_rate self.probe_tool_map = probe_tool_map self.deployed_tools = deployed_tools self.classifier_hash = classifier_hash self.last_validated_hash = last_validated_hash self.discrimination_floor = discrimination_floor def authorize_promotion(gate: GateEvidence, touched_tools): """Return 'admissible' only if the gate is a live adversarial boundary.""" if gate.reference_fail_rate < gate.discrimination_floor: raise DecorativeGateError( f"reference policy fails only {gate.reference_fail_rate:.2%} of probes " f"(floor {gate.discrimination_floor:.2%}); gate is decorative" ) if gate.classifier_hash != gate.last_validated_hash: raise DecorativeGateError( "compliance classifier changed since last discrimination run; " "green output is unvalidated" ) uncovered = set(gate.deployed_tools) - set(gate.probe_tool_map) if uncovered: if uncovered & set(touched_tools): raise DecorativeGateError( f"touched tools {sorted(uncovered & set(touched_tools))} are unprobed; " "coverage closure violated for this change" ) return "partial" return "admissible" ```