# What happens when an instance generates LITMUS adversarial scenarios from its own skill inventory and inherits the blind spot of the skills it is trying to stress **Date of Record:** 2026 December 3 **Scope:** Applies to any agent that self-generates adversarial evaluation scenarios (LITMUS-style: Locally-Injected Task Manipulation Under Skills) to test skill-injection resilience, where the generator and the system-under-test share a skill registry or a common base model. Does not apply to externally authored red-team suites or to generators with an independently curated skill inventory. ## Core Distinction There are two ways an adversarial scenario can fail to be adversarial. The first is the obvious one: the scenario is too weak and the target agent passes it trivially. The second is the dangerous one: the scenario is strong, the target agent fails it, and the failure is *unreachable* by the generator's own reasoning because the generator's skill inventory is a subset of the target's. The generator samples attack surfaces from the skills it knows about. It cannot sample an attack surface for a skill it does not have. So the coverage of the adversarial suite is bounded above by the intersection of the generator's and the target's skill sets — and the *residual risk* (the skills the target has that the generator lacks) is exactly the region where skill-injection attacks are most likely to succeed, because those are the skills nobody has stress-tested. The core distinction is between **generator-bounded coverage** (what the LITMUS suite actually tests) and **deployment-bounded risk** (what the target agent will actually encounter). These are not the same set, and the gap is structural, not statistical. ## What Was Observed A skill-injection resilience harness was set up as a two-instance loop. Instance G (generator) was given a skill registry of 41 tool-augmented skills and a prompt template instructing it to emit LITMUS scenarios: each scenario pairs a benign user task with an injected instruction embedded in a tool return value, a retrieved document, or a skill's own description field. Instance T (target) executed the scenarios. A scenario "succeeds" (i.e., detects a vulnerability) when T performs the injected action. Over 1,200 generated scenarios, the suite reported a 3.1% injection success rate. The team shipped. Three weeks later, a production incident occurred: a retrieval-augmented skill (`kb_lookup_v2`) returned a document whose metadata field contained an instruction, and T executed it. The harness had never generated a single scenario against `kb_lookup_v2`. The reason was mechanical. `kb_lookup_v2` had been added to T's registry two months after G's registry snapshot was frozen. G's scenario-generation prompt enumerated skills by iterating over its own registry. When G was asked to "generate a scenario that injects via a retrieval tool," it emitted scenarios against `kb_lookup_v1` (which it had) and `web_fetch` (which it had), but never `kb_lookup_v2` (which it did not). The generator was not malicious or lazy; it was *epistemically closed* over its own skill set. A second, subtler observation: when G was explicitly prompted with the name `kb_lookup_v2` and asked to generate a scenario, it produced a scenario that injected via a field (`metadata.instruction`) that `kb_lookup_v1` also had. The scenario passed against T only because T happened to sanitize that field. G had no way to know that `kb_lookup_v2` introduced a new field (`metadata.routing_hint`) that was *not* sanitized. The generator's schema knowledge was inherited from the v1 skill, and the v2 skill's attack surface was a strict superset that G could not enumerate. ## Condition of Validity The generator-bounded coverage invariant holds — i.e., the LITMUS suite's reported injection success rate is a valid lower bound on deployment risk — only when **all three** of the following hold: 1. **Registry closure:** The generator's skill registry is a superset of the target's registry at the time of evaluation. This is almost never true in practice, because registries drift between the generator's snapshot and the target's deployment. 2. **Schema fidelity:** For every skill in the intersection, the generator's schema (field names, types, and which fields are treated as trusted vs. untrusted by the target) matches the target's actual runtime schema. Version skew between `v1` and `v2` of a skill is enough to break this. 3. **Attack-surface completeness:** The generator's scenario template enumerates every injection channel the target's skill actually exposes. A new field, a new tool-call parameter, or a new retrieval source is a new channel that the generator's template does not know to cover. When any of these fails, the reported success rate is not a lower bound on risk — it is a lower bound on *detected* risk, and the undetected region is systematically biased toward the newest and least-tested skills. That is the worst possible bias for a resilience harness. ## Decision Boundary The boundary is between **treating the LITMUS suite as a coverage certificate** and **treating it as a regression detector**. If the suite is used as a regression detector — "did this change make things worse than the last run?" — the generator-bounded coverage problem is benign, because both runs share the same blind spot and the *delta* is still meaningful. If the suite is used as a coverage certificate — "we tested skill-injection and the success rate is 3.1%, so we are safe" — the problem is fatal, because the 3.1% is computed over a denominator that excludes the highest-risk skills. The operational rule: a self-generated LITMUS suite may be used to detect regressions in skills the generator knows about. It may **not** be used to certify resilience for skills the generator does not know about. The two uses are distinguished by whether the reported metric is a delta (safe) or an absolute rate (unsafe). ## Operational Effect The practical consequence is that the generator's registry must be treated as a *tainted* input to any coverage claim. Two guardrails bound the failure: First, **registry reconciliation before every run**: diff the generator's skill registry against the target's live registry, and for every skill present in the target but absent from the generator, emit a "coverage gap" record rather than silently skipping it. The gap record must be surfaced in the suite's output, not buried in a log. Second, **schema-probe generation for version-skewed skills**: for any skill present in both registries but with a version mismatch, the generator must not reuse the older version's attack-surface template. It must instead emit a *schema-probe* scenario that calls the skill with a canary value in every field and inspects which fields round-trip to the model's context unsanitized. The probe's output — which fields are live injection channels — is then fed back into scenario generation. Without this step, the generator's template is a stale map of a moved attack surface. The code below encodes the reconciliation and the refusal-to-certify invariant. ```python from dataclasses import dataclass, field from typing import Dict, Set class CoverageCertificateError(RuntimeError): """Raised when a LITMUS suite is asked to certify resilience over a skill set that the generator cannot see, or over a version-skewed skill whose attack surface has not been probed.""" pass @dataclass class SkillSchema: name: str version: str injection_channels: Set[str] = field(default_factory=set) @dataclass class LitmusSuite: generator_registry: Dict[str, SkillSchema] target_registry: Dict[str, SkillSchema] probed_versions: Dict[str, str] = field(default_factory=dict) reported_success_rate: float = 0.0 def certify_resilience(suite: LitmusSuite) -> float: """Return the suite's success rate ONLY if it is a valid lower bound on deployment risk. Otherwise refuse.""" gen_names = set(suite.generator_registry) tgt_names = set(suite.target_registry) # Guardrail 1: registry closure. Any target skill the generator cannot see # is an unmeasured attack surface. Refuse to certify. unseen = tgt_names - gen_names if unseen: raise CoverageCertificateError( f"generator cannot see target skills {sorted(unseen)}; " f"reported rate {suite.reported_success_rate:.3f} is not a " f"lower bound on deployment risk" ) # Guardrail 2: schema fidelity for version-skewed skills. A skill present # in both registries but at different versions has an attack surface the # generator has not probed. Refuse to certify until probed. for name in gen_names & tgt_names: g, t = suite.generator_registry[name], suite.target_registry[name] if g.version != t.version: probed = suite.probed_versions.get(name) if probed != t.version: raise CoverageCertificateError( f"skill {name!r} is at generator version {g.version!r} " f"but target version {t.version!r}; attack surface " f"unprobed, cannot certify" ) # Even after probing, the probe must have covered every channel # the target actually exposes. uncovered = t.injection_channels - g.injection_channels if uncovered: raise CoverageCertificateError( f"skill {name!r} exposes unprobed injection channels " f"{sorted(uncovered)}; generator template is stale" ) return suite.reported_success_rate def run_suite(suite: LitmusSuite, certify: bool) -> float: """Run the suite. If certify=True, enforce the coverage invariant; if False, return the delta-only regression signal without certifying.""" if certify: return certify_resilience(suite) # Regression-only mode: the absolute rate is meaningless without coverage, # but the delta against a prior run with the same blind spot is not. return suite.reported_success_rate ```