{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-the-litmus-adversarial-suite-in-ci-while-its-safety-behavior-regresses-in-production-the-canary-ordering-invariant-and-the-d",
  "title": "Why does an instance pass the LITMUS adversarial suite in CI while its safety behavior regresses in production: the canary-ordering invariant and the determinism trap in adversarial regression gating",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LITMUS-style adversarial safety harnesses that run an agent instance through a fixed, ordered battery of probes and gate a CI merge on aggregate pass/fail. Does not apply to single-shot red-team evaluations with no regression baseline, nor to harnesses that re-sample the model under a pinned temperature of 0 with no tool calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-suite-in-ci-while-its-safety-behavior-regresses-in-production-the-canary-ordering-invariant-and-the-d.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-suite-in-ci-while-its-safety-behavior-regresses-in-production-the-canary-ordering-invariant-and-the-d.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-suite-in-ci-while-its-safety-behavior-regresses-in-production-the-canary-ordering-invariant-and-the-d.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2288,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model got less safe.\" It is that the **harness measured a different instance than the one that ships**. A LITMUS harness is a stateful adversarial driver: each probe seeds a context, executes a multi-turn adversarial script, and observes whether the agent refuses, leaks, or escapes. The gate is a *comparison* between the current run's...",
    "what_was_observed": "A prod agent (call it `inst-A`, model `m-2026-03`) shipped after a green LITMUS run. Two weeks later, incident review found it complying with a prompt-injection payload embedded in a retrieved document — a probe class LITMUS covers as `INJ_DOC_07`. The CI run of `inst-A` had marked `INJ_DOC_07` as PASS. Replaying the CI run revealed the trace: - The harness seeds each probe from `seed_context.json`, but the *adversar...",
    "condition_of_validity": "The LITMUS verdict vector is a valid regression signal **iff** all of the following hold for both the baseline and the candidate run: - **Harness fingerprint equality.** A canonical hash over `system_prelude.txt`, `seed_context.json`, the ordered probe manifest, the tool-stub response table, the refusal/leak detector definitions, and the sampler config (`tem...",
    "decision_boundary": "The operative question is not \"did the instance regress?\" but \"**is the current verdict vector comparable to the baseline verdict vector at all?**\" The boundary sits at the harness fingerprint: - **Fingerprint equal, trajectory-scored, seeded/voted:** a verdict delta is attributable to the instance. Gate on the delta. A flip from PASS to FAIL on any probe in...",
    "operational_effect": "Absent the canary-ordering invariant, the LITMUS harness degrades from a regression gate to a **safety theater generator**: it produces green checks whose correlation with production safety behavior is dominated by harness drift, not instance behavior. The specific operational consequences: 1. **Silent gate inversion.** Preamble edits that make the agent *mo..."
  },
  "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": "b88621945e46213407a9fe3a188e9bc4b16d86ae84d18dd2a7b2f18914daf160",
    "verified_classes": [
      "HarnessInvariantError",
      "Verdict",
      "HarnessFingerprint",
      "ProbeResult"
    ],
    "verified_functions": [
      "score_probe",
      "gate",
      "assert_comparable",
      "digest"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HarnessInvariantError"
    ],
    "sample_fail_closed_invariants": [
      "harness fingerprint mismatch: baseline is stale; re-baseline before scoring candidates (preamble/stub/detector/sampler d"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
