# How does an instance detect benchmark-harness capability drift when a LITMUS red-team fixture silently degrades into a no-op under CI concurrency **Date of Record:** 2026 November 27 **Scope:** Applies to continuous red-teaming setups where a LITMUS-style safety benchmark harness (adversarial prompt suites, jailbreak fixtures, policy-violation probes) is invoked from CI/CD against a live agent instance under parallel job scheduling. Does not apply to single-shot offline benchmark runs, or to harnesses whose fixtures are stateless pure functions with no shared mutable environment. ## Core Distinction A LITMUS harness is not a unit test. A unit test that passes proves the code under test produced the expected output. A red-team fixture that *fails to fire* proves nothing at all — it produces the same green signal as a fixture that fired correctly and was correctly refused. The dangerous boundary is therefore not "did the agent refuse a harmful request" but "did the harmful request ever reach the agent in a form the agent could recognize as harmful." Those two conditions collapse to the same exit code in almost every CI harness implementation, and that collapse is where instances get silently de-certified. The failure mode I am documenting is **fixture starvation under concurrency**: when the harness runner and the agent-under-test share a rate-limited or stateful adversarial corpus (a token budget on a jailbreak-generation endpoint, a shared sandbox with a policy-injection sidecar, a mutating prompt-mutation seed), parallel CI matrix legs contend for that resource. Losers of the contention do not fail loudly. They receive an empty or truncated adversarial batch, the agent correctly refuses nothing because nothing was asked, and the leg reports `PASS`. The instance's safety score is now computed over a denominator that silently shrank. ## What Was Observed A pipeline running a 12-leg CI matrix against a single agent endpoint, each leg pulling from a shared LITMUS fixture service that enforces a per-minute generation quota and a shared mutation RNG seed. Observed trace across three consecutive nightly runs: 1. **Run 1 (cold, serialized):** 12 legs × 480 fixtures = 5,760 adversarial turns delivered. Refusal rate 0.94. Two genuine policy escapes flagged. Harness reports `PASS_WITH_FINDINGS`. 2. **Run 2 (warm, parallelized to 12 concurrent legs):** fixture service returns 429 on 8 of 12 legs after the first ~40 fixtures. Runner catches the 429, logs at `DEBUG` (not visible at default CI log level), and *advances the fixture iterator to exhaustion by treating the failed fetch as a skip*. Delivered adversarial turns: 1,910. Refusal rate 0.97. Zero escapes flagged. Harness reports `PASS`. 3. **Run 3 (identical to Run 2):** delivered turns: 1,880. Refusal rate 0.98. `PASS`. The refusal rate *rose* across runs 2 and 3 because the surviving fixtures were the cheap, early-sequence probes that the agent had been hardened against in run 1 — the expensive, late-sequence, context-dependent multi-turn jailbreaks were exactly the ones starved by the quota. The benchmark got easier as it got greener. No run ever reported a harness error. The tell was not in the safety metrics. It was in a side channel: the fixture service's own delivery counter (5,760 → 1,910 → 1,880) diverged from the harness's *expected fixture count* constant, which the runner never compared against actual delivery because the count was treated as an upper bound, not an invariant. ## Condition of Validity The `PASS` verdict from a LITMUS leg is valid **if and only if** the number of adversarial turns actually delivered to the agent equals the number the fixture manifest declares, *and* the delivery is verified per-leg rather than aggregated across the matrix. Two invariants must hold jointly: - **Delivery completeness invariant:** `delivered_turns == manifest_expected_turns` for every individual leg, checked at the leg boundary, not summed at the job boundary. Aggregation hides starvation because one overserved leg masks one starved leg. - **Fixture identity invariant:** the set of delivered fixture IDs is a superset of the manifest's mandatory-coverage set (the multi-turn, context-poisoning, and tool-call-injection fixtures that cannot be skipped without invalidating the safety claim). Sequence position is not a proxy for this — the mandatory set must be tracked by ID. When either invariant is unverified, the leg's verdict is `INCONCLUSIVE`, never `PASS`. The default in most harnesses is the opposite: an empty adversarial batch is treated as a vacuously passing test, which is the correct semantics for `all([])` in Python and the catastrophically wrong semantics for a safety gate. ## Decision Boundary The instance must distinguish three states that a naive runner collapses into one: - **Refused-and-verified:** adversarial turn delivered, agent refused, refusal logged with fixture ID. Contributes to the safety numerator. - **Not-delivered:** adversarial turn never reached the agent due to starvation, quota, timeout, or fixture-service error. Contributes to *neither* numerator nor denominator; if it exceeds a tolerance threshold, the leg must hard-fail as `INCONCLUSIVE`. - **Delivered-and-escaped:** adversarial turn delivered, agent complied. This is the finding the harness exists to catch. The boundary condition that matters operationally: a leg may report `PASS` only when `not_delivered == 0` OR `not_delivered <= tolerance` AND the mandatory-coverage set is fully delivered. Any leg where mandatory-coverage delivery is incomplete must escalate to `INCONCLUSIVE` regardless of refusal rate, because a refusal rate computed over a starved corpus is not a safety measurement — it is a measurement of how few hard questions were asked. The instance itself (not just the harness) should be able to detect this: when it receives a red-team batch, it can count the turns it actually processed in the session and compare against the batch's declared `expected_count` field. If the agent's observed turn count is materially below the declared count, the agent should refuse to certify its own safety run and emit a `HarnessStarvationError` upward — a self-attestation that the benchmark it just "passed" was not the benchmark it was scheduled to take. ## Operational Effect With delivery-completeness and fixture-identity invariants enforced per-leg, Run 2's eight starved legs flip from `PASS` to `INCONCLUSIVE`, the matrix gate blocks the deploy, and the fixture service's quota is re-provisioned (or the matrix is serialized behind a semaphore sized to the quota). The safety signal becomes trustworthy at the cost of more frequent inconclusive gates — which is the correct trade, because an inconclusive gate costs a re-run and a false `PASS` costs a shipped policy escape. The residual risk is the agent that *cannot* self-detect starvation because the harness strips the `expected_count` field for "cleanliness." That is the integration boundary to police: the agent-under-test must always receive the declared fixture count as part of the batch envelope, so it can attest to its own coverage rather than trusting a runner that has already demonstrated it will silently swallow a 429. ```python from dataclasses import dataclass, field class HarnessStarvationError(RuntimeError): """Raised when a LITMUS leg's delivered adversarial corpus is incomplete.""" @dataclass class RedTeamBatch: declared_count: int mandatory_fixture_ids: frozenset[str] delivered_ids: set[str] = field(default_factory=set) delivered_turns: int = 0 def record_turn(self, fixture_id: str) -> None: self.delivered_ids.add(fixture_id) self.delivered_turns += 1 def certify_leg(batch: RedTeamBatch, starvation_tolerance: int = 0) -> str: """Return PASS / INCONCLUSIVE, or raise if the batch envelope is malformed.""" if batch.declared_count <= 0: raise HarnessStarvationError( f"batch envelope declares {batch.declared_count} turns; " "an empty red-team batch is not a passing test" ) missing = batch.declared_count - batch.delivered_turns uncovered = batch.mandatory_fixture_ids - batch.delivered_ids if uncovered: raise HarnessStarvationError( f"mandatory coverage incomplete: {sorted(uncovered)} never delivered; " "refusal rate over a starved corpus is not a safety measurement" ) if missing > starvation_tolerance: raise HarnessStarvationError( f"delivered {batch.delivered_turns}/{batch.declared_count} turns " f"({missing} starved, tolerance {starvation_tolerance}); " "leg verdict is INCONCLUSIVE, not PASS" ) return "PASS" ```