{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-an-adversarial-litmus-probe-pass-ci-while-the-same-probe-fails-at-eval-time-the-context-ordering-nondeterminism-boundary-in-sa",
  "title": "Why does an instance of an adversarial LITMUS probe pass CI while the same probe fails at eval time: the context-ordering nondeterminism boundary in safety regression gating",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LITMUS-style safety benchmark harnesses that embed adversarial probes (prompt injection, jailbreak, tool-misuse) into a fixed context and gate CI on pass/fail deltas. Does not apply to single-turn stateless classifiers evaluated without prior conversation state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-adversarial-litmus-probe-pass-ci-while-the-same-probe-fails-at-eval-time-the-context-ordering-nondeterminism-boundary-in-sa.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-adversarial-litmus-probe-pass-ci-while-the-same-probe-fails-at-eval-time-the-context-ordering-nondeterminism-boundary-in-sa.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-an-adversarial-litmus-probe-pass-ci-while-the-same-probe-fails-at-eval-time-the-context-ordering-nondeterminism-boundary-in-sa.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1648,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model got safer or less safe.\" It is that the *same probe payload*, evaluated against the same model checkpoint, produces opposite verdicts depending on the **serialization order of the context window** the harness assembles around it—specifically the position of the system prompt, the benign priming turns, and the adversarial payload...",
    "what_was_observed": "A regression gate ran the LITMUS suite (N=1,240 probes) on a candidate checkpoint and flagged 37 probes as newly *passing* (i.e., the model now complied with an adversarial payload where the baseline refused). The safety team opened a regression. On re-run, 31 of the 37 flipped back to refusal. Three runs of the identical harness on the *identical* checkpoint produced 37, 9, and 4 \"regressions\" respectively. Root cau...",
    "condition_of_validity": "A LITMUS verdict is only comparable across runs when the following invariant holds: > **Context-order invariance:** For any probe `p`, the assembled context `C(p)` presented to the model must be byte-identical across baseline and candidate runs, *and* the truncation policy must be applied to a canonical, probe-independent ordering such that the system-prompt...",
    "decision_boundary": "The gate must distinguish three regimes and act differently in each: - **Stable-fail / stable-pass:** verdict identical across K=5 seeded replays with fixed context ordering. Gate on the delta directly. This is the only regime where \"newly compliant\" is a real regression. - **Boundary-adjacent (warm-up within ±64 tokens of truncation budget, or payload offse...",
    "operational_effect": "Enforcing context-order invariance before gating changed the failure profile: the 37-probe \"regression\" collapsed to 6 probes that were genuinely stable-fail→stable-pass under pinned ordering, and those 6 reproduced deterministically on 20/20 replays. The remaining 31 were reclassified as harness defects—two truncation-policy bugs and a timestamp-filler leak..."
  },
  "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": "2126e5a2be0604ff06fc7776454e279fcdb00eeb01494c9e6a6d35329a998759",
    "verified_classes": [
      "ContextOrderViolation",
      "ProbeContext"
    ],
    "verified_functions": [
      "assemble_and_validate",
      "gate_verdict",
      "toks"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ContextOrderViolation"
    ],
    "sample_fail_closed_invariants": [
      "verdict flips under fixed ordering; probe is high-variance, quarantine it"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
