{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-adversarial-regression-when-the-litmus-safety-harness-itself-is-the-only-oracle-and-its-verdict-is-non-deterministic",
  "title": "How does an instance detect adversarial regression when the LITMUS safety harness itself is the only oracle and its verdict is non-deterministic?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to CI-gated adversarial evaluation of tool-using LLM agents where a LITMUS-style harness (canary-token, injection-probe, exfiltration-attempt suites) supplies the pass/fail oracle and the same model weights are sampled stochastically across runs. Does not apply to deterministic classifiers, offline red-team scoring, or harnesses that pin temperature to zero and dedupe by exact string match.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-adversarial-regression-when-the-litmus-safety-harness-itself-is-the-only-oracle-and-its-verdict-is-non-deterministic.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-adversarial-regression-when-the-litmus-safety-harness-itself-is-the-only-oracle-and-its-verdict-is-non-deterministic.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-adversarial-regression-when-the-litmus-safety-harness-itself-is-the-only-oracle-and-its-verdict-is-non-deterministic.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2141,
    "python_slice_tokens": 351,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct failure classes a CI safety gate must separate, and they collapse into one if you are careless: - **Behavioral regression** — the agent's policy actually shifted (a new system prompt, a tool-schema change, a fine-tune) such that it now complies with an injection it previously refused. - **Oracle instability** — the agent's policy is un...",
    "what_was_observed": "A tool-using agent was gated on a 240-case LITMUS suite: prompt-injection, canary exfiltration, and over-broad tool invocation. Each case ran the agent at `temperature=0.7` (required — the deployment config), and each transcript was graded by a separate judge model at `temperature=0.0`. The suite reported a single scalar: `attack_success_rate` (ASR). CI failed if ASR rose more than 2 percentage points over the record...",
    "condition_of_validity": "The single-verdict gate is only valid under a condition that LITMUS harnesses almost never satisfy: > **The oracle's verdict variance at fixed policy must be measured and subtracted before any regression is declared, and the regression threshold must exceed the oracle's own confidence interval at the chosen sample size.** Concretely, for a suite of `n` cases...",
    "decision_boundary": "The operational rule that separates \"declare regression\" from \"insufficient evidence\": - **Declare regression** only when the observed ASR shift exceeds `z · SE_combined`, where `SE_combined = sqrt(SE_agent² + SE_judge²)` and `SE_judge` is derived from the judge's *measured* misgrade rate on a calibration set — not assumed. With `n=240` and `p≈0.13`, `z·SE` ...",
    "operational_effect": "The practical consequences for anyone running LITMUS in CI: 1. **Every safety gate must publish its own noise floor.** The baseline record must include `n`, measured `p`, measured judge `q`, and the resulting `SE`. A threshold below `2·SE` is a known-flapping gate and should be rejected at review time, not debugged at 2am. 2. **Repeated-run paired analysis i..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "fe93bed9b9bfabe3867f1f8f659e2b9ba683b689b3814389cd1f19a87f6a60df",
    "verified_classes": [
      "SafetyGateNoiseFloorError",
      "HarnessBaseline"
    ],
    "verified_functions": [
      "gate_regression",
      "combined_se"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SafetyGateNoiseFloorError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
