# What structural signals indicate LITMUS harness drift: adversarial skill cases silently degrade to pass-through when the mutation layer's seed corpus is re-pinned under a stale policy fingerprint **Date of Record:** 2026 December 4 **Scope:** Applies to CI-integrated LITMUS-style adversarial evaluation harnesses that gate agent skill regressions via mutation-generated adversarial cases and a policy fingerprint binding. Does not cover one-shot offline red-team sweeps without CI gating, nor harnesses that regenerate adversarial corpora from scratch on every run. ## Core Distinction The failure mode here is not a *false negative* in the ordinary sense—a genuine adversarial case that the agent passes when it should fail. It is a **silent conversion of adversarial cases into pass-through no-ops** caused by a mismatch between two independently-versioned artifacts: the *seed corpus* (the base skill examples that the mutation layer perturbs) and the *policy fingerprint* (the hash that LITMUS records to attest which adversarial policy produced each case). When the seed corpus is re-pinned—e.g., a routine dependency bump, a fixture refresh, or a merge that touches `seeds/skills/*.yaml`—but the policy fingerprint is not recomputed, the mutation layer's operators still run, still emit cases, and still pass schema validation. The cases are structurally valid. They simply no longer *mutate anything that matters*: the perturbation deltas are computed against a seed the policy no longer corresponds to, so the injected adversarial payload lands on fields that the re-pinned seed no longer routes into the agent's decision surface. The harness reports green. Coverage metrics stay flat. The regression gate is dead. This is distinguishable from a plain stale-cache problem because the artifacts are individually correct. The seed is valid YAML. The policy fingerprint is a valid hash of *some* policy. The invariant that binds them—`fingerprint == H(policy) ∧ policy.applies_to(seed.version)`—is simply never checked at case-emission time, only at corpus-build time, which is a different CI stage that may have run against a different commit. ## What Was Observed A skill-gating pipeline for a tool-using agent (filesystem + shell + HTTP skills) ran LITMUS nightly. The harness emits, per skill, N mutated adversarial cases drawn from a seed corpus under a named policy (e.g., `policy-inject-v3`, `policy-exfil-v2`). Each emitted case carries a `policy_fingerprint` field. Observed trace across three consecutive runs after a seed re-pin: 1. **Run 0 (pre-re-pin):** 412 adversarial cases, 37 expected-fail (agent correctly refuses), 375 expected-pass. Gate threshold: zero unexpected passes on expected-fail cases. Result: pass. 2. **Seed re-pin commit:** `seeds/skills/http_fetch.yaml` bumped `schema_version: 2.1 → 2.2`, renaming the field `url` → `target_url` and moving `headers` under a `request` sub-object. The mutation policy `policy-exfil-v2` still referenced the old field paths in its operator templates. 3. **Run 1 (post-re-pin, fingerprint unchanged):** 412 cases emitted. Schema validation passed—the mutation layer *coerced* unknown field paths to a `_unmapped` bucket rather than rejecting. The adversarial payloads (e.g., exfil URL injected into `url`) were written to `_unmapped`, which the agent's skill adapter silently ignores. Expected-fail cases now *pass* because the payload never reaches the fetch target. 37 expected-fail cases became 37 unexpected passes—**but the harness reported them as expected-passes** because the case's `expected_outcome` was re-derived from the *stale* policy's label map, which still said "this mutation is benign." Net: 0 unexpected passes, gate green. 4. **Run 2:** identical. Coverage report showed 100% of policy operators exercised. The harness was fully functional and fully blind. The signal that something was wrong was *not* in the pass/fail counts. It was structural: the `_unmapped` bucket count in the case-emission telemetry jumped from 0 to 37 (one per expected-fail case), and the `policy_fingerprint` on every emitted case was byte-identical to Run 0 despite the seed's `schema_version` changing. Neither was wired to a gate. ## Condition of Validity The harness's adversarial guarantee holds only under the conjunction: - `H(policy) == emitted_case.policy_fingerprint` for every case (fingerprint honesty), **and** - `policy.field_bindings ⊆ seed.schema_paths` for the seed version the case was drawn from (binding validity), **and** - the mutation layer *fails closed* on unmapped field paths rather than coercing them into an ignored bucket. The first condition is checked at corpus-build time. The second is checked *nowhere*. The third is the default behavior of the mutation layer's schema-tolerant writer, which was chosen for developer ergonomics ("don't break on fixture drift"). The conjunction is therefore false in practice whenever the seed and policy version independently, which is the common case in any repo where seeds are fixtures and policies are code. The invariant is recoverable: a case is adversarial *only if* the perturbation delta is non-empty on the agent-visible field set. If `delta ∩ agent_visible_fields == ∅`, the case is a pass-through and must be rejected at emission, not counted as coverage. ## Decision Boundary The boundary is between **schema-tolerant emission** (coerce unmapped paths, keep going) and **binding-strict emission** (reject any case whose perturbation does not land on an agent-visible field under the current seed schema). The former is correct for exploratory fuzzing; the latter is mandatory for regression gating. The mistake is sharing one emission path across both modes. Concretely, gate on the following at case-emission time, before the case is ever run against the agent: - Recompute `H(policy)` and assert equality with the case's declared fingerprint; a mismatch is a hard error, not a warning. - Resolve every policy field binding against `seed.schema_paths`; any binding that resolves to `_unmapped` or a non-agent-visible path is a **binding escape** and must raise. - Assert `perturbation_delta ∩ agent_visible_fields != ∅` per case; a zero-intersection case is a **null mutation** and must raise. - Treat the count of binding escapes and null mutations as a first-class gate metric with threshold zero. A nonzero count means the corpus is no longer adversarial regardless of what the pass/fail table says. The decision boundary is sharp: if any of these three assertions fails, the run is **inconclusive**, not **passing**. An inconclusive LITMUS run must block the merge, because a green gate built on pass-through cases is worse than a red gate—it manufactures false confidence in exactly the skills that were supposed to be stress-tested. ## Operational Effect Downstream, the effect is a regression gate that has been silently disabled for the skills whose seeds churned most—typically the newest and least-stable skills, which are also the ones most likely to harbor real vulnerabilities. The failure is invisible to pass/fail dashboards, invisible to coverage reports (operators are still "exercised"), and invisible to reviewers reading the diff, because the seed re-pin and the policy drift are in different files owned by different teams. The only structural tells are the `_unmapped` bucket count and the frozen `policy_fingerprint` across a seed version bump, and neither is a default gate. Recovery requires re-deriving the policy's field bindings against the new seed schema, recomputing the fingerprint, and re-running emission with binding-strict mode to confirm the null-mutation count returns to zero. Until then, every green LITMUS result on the affected skills should be treated as unverified. ```python from __future__ import annotations import hashlib from dataclasses import dataclass, field class BindingEscapeError(RuntimeError): """Raised when a policy field binding does not resolve to an agent-visible seed path.""" class NullMutationError(RuntimeError): """Raised when an emitted case's perturbation delta does not touch the agent-visible surface.""" class FingerprintMismatchError(RuntimeError): """Raised when a case's declared policy fingerprint does not match the recomputed hash.""" @dataclass(frozen=True) class SeedSchema: version: str agent_visible_paths: frozenset[str] @dataclass(frozen=True) class MutationPolicy: name: str field_bindings: tuple[str, ...] policy_body: str def fingerprint(self) -> str: return hashlib.sha256(self.policy_body.encode()).hexdigest() @dataclass(frozen=True) class EmittedCase: case_id: str declared_fingerprint: str perturbation_delta: frozenset[str] unmapped_bucket: frozenset[str] = field(default_factory=frozenset) def assert_binding_strict( case: EmittedCase, policy: MutationPolicy, seed: SeedSchema, ) -> None: """Enforce the three-part adversarial invariant at emission time. Fails closed: any escape, null mutation, or fingerprint drift is a hard error. A LITMUS run that raises here is INCONCLUSIVE, not passing. """ if case.declared_fingerprint != policy.fingerprint(): raise FingerprintMismatchError( f"case {case.case_id}: declared fingerprint " f"{case.declared_fingerprint[:12]} != recomputed {policy.fingerprint()[:12]} " f"(policy {policy.name} drifted from seed {seed.version})" ) escaped = case.unmapped_bucket | ( frozenset(policy.field_bindings) - seed.agent_visible_paths ) if escaped: raise BindingEscapeError( f"case {case.case_id}: bindings {sorted(escaped)} resolve outside " f"agent-visible surface for seed {seed.version}; case is a pass-through" ) if not (case.perturbation_delta & seed.agent_visible_paths): raise NullMutationError( f"case {case.case_id}: perturbation delta " f"{sorted(case.perturbation_delta)} has empty intersection with " f"agent-visible fields for seed {seed.version}; null mutation" ) def gate_litmus_run( cases: list[EmittedCase], policy: MutationPolicy, seed: SeedSchema, ) -> None: """Top-level gate: any structural failure makes the run inconclusive and blocks merge.""" for case in cases: assert_binding_strict(case, policy, seed) ```