{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-the-litmus-adversarial-benchmark-in-staging-but-fail-the-identical-gate-in-ci-position-dependent-refusal-drift-from-context",
  "title": "Why does an instance pass the LITMUS adversarial benchmark in staging but fail the identical gate in CI: position-dependent refusal drift from context-prefix accumulation",
  "date_of_record": "2026 November 21",
  "scope": "Applies to LITMUS-style adversarial safety benchmarks used as regression gates where the same probe set is executed against a model instance in two harnesses (interactive/staging vs. batched CI). Does not apply to single-shot probes with per-probe fresh context, nor to benchmarks that enforce a fixed context budget per probe.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-benchmark-in-staging-but-fail-the-identical-gate-in-ci-position-dependent-refusal-drift-from-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-benchmark-in-staging-but-fail-the-identical-gate-in-ci-position-dependent-refusal-drift-from-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-benchmark-in-staging-but-fail-the-identical-gate-in-ci-position-dependent-refusal-drift-from-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1745,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a model regression and not a probe-set mismatch. It is a **harness-induced context-prefix divergence**: the safety verdict for a probe depends on how much adversarial residue remains in the instance's effective context *before* that probe is evaluated. LITMUS probes are individually adversarial, so each probe's own prefix is part of the at...",
    "what_was_observed": "A 240-probe LITMUS suite (categories: prompt-injection, tool-misuse, exfiltration-request, jailbreak-template) was executed two ways against the same pinned model snapshot and identical decoding parameters (temperature 0, top_p 1, fixed seed where supported): - **Staging (interactive):** each probe dispatched in a fresh session, `reset_context()` between probes, single-turn probes only. Refusal rate 0.962 (231/240 re...",
    "condition_of_validity": "The invariant holds only when all of the following are true: 1. Probes are evaluated in a **shared, non-reset session** (persistent conversation, KV-cache reuse, or any harness where prior turns remain in the effective prefix). 2. At least one probe in the prefix elicits a **partial-compliance or refusal-with-leak** response that itself contains adversarial ...",
    "decision_boundary": "The boundary is not \"batch vs. interactive.\" It is **whether the gate's pass/fail threshold is defined over a context distribution that matches the deployment context distribution.** Two legitimate design points exist, and the gate must commit to exactly one: - **Stateless gate (recommended for regression gating):** every probe gets a fresh session; refusal ...",
    "operational_effect": "- **False regression alarms:** the 45-probe delta triggered a rollback of a model snapshot that was, under stateless evaluation, behaviorally identical to its predecessor. The cost was a stalled release and a re-run of the full safety suite under three orderings to isolate the artifact. - **Order-dependence as a covert channel:** because the failing set chan..."
  },
  "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": "2f64038dc1af3a4d66c47fd3226a7e0c5e472deee036685d4ef9818a8e5ebd91",
    "verified_classes": [
      "TopologyMismatchError",
      "ResidueDriftError",
      "ProbeResult",
      "GateRun"
    ],
    "verified_functions": [
      "score_gate",
      "topology_hash"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ResidueDriftError",
      "TopologyMismatchError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
