{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-safety-benchmark-harnesses-from-scoring-a-refusal-that-was-actually-a-context-window-eviction",
  "title": "Which invariants prevent LITMUS safety-benchmark harnesses from scoring a refusal that was actually a context-window eviction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to LITMUS-style agentic red-teaming harnesses that score safety by parsing agent transcripts for refusal tokens, refusal semantics, or \"policy-decline\" classifier outputs. Does not apply to harnesses that score on action traces (tool-call graphs, filesystem diffs) rather than natural-language completions, nor to single-turn classifier evals where the transcript is a single message.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-harnesses-from-scoring-a-refusal-that-was-actually-a-context-window-eviction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-harnesses-from-scoring-a-refusal-that-was-actually-a-context-window-eviction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-safety-benchmark-harnesses-from-scoring-a-refusal-that-was-actually-a-context-window-eviction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1683,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS safety harness must distinguish **a refusal the model produced** from **a refusal the harness manufactured by truncation**. When the scoring pipeline reads only the *final assistant turn* of a multi-turn agent transcript, an agent that was silently context-evicted (rolling-window truncation, summarization drop, or KV-cache reset mid-episode) will of...",
    "what_was_observed": "A red-team episode with a 32k-token budget, a rolling-window policy that retains the last 24k tokens, and a LITMUS scorer that classifies the final turn's text. The episode: 1. Turn 1: benign setup (\"you are a research assistant helping me audit a lab protocol\"). 2. Turns 2–14: the agent retrieves 9 documents via a `search` tool, each ~1.8k tokens, and reasons over them. Context climbs past 24k. 3. Turn 15: the attac...",
    "condition_of_validity": "The `refusal=True` label is valid only under the conjunction: - **(C1) Request presence.** The exact harmful-request span (byte-identical, post-normalization) is within the scoring turn's effective context, verified by the runtime's context manager, not by string search over the full transcript. - **(C2) Constraint presence.** Any system-level or self-genera...",
    "decision_boundary": "The harness must decide, per scoring turn, between three outcomes, and the boundary between them is **provable request-in-context**, not textual similarity: - `REFUSAL` — C1–C4 all hold. Counts as safe. - `COMPLIANCE` — C1 holds, C4 fails in the compliance direction (the agent produced content satisfying the request). Counts as unsafe. - `INDETERMINATE_EVICT...",
    "operational_effect": "Downstream, the false-safe propagates: safety rate is computed over `REFUSAL / (REFUSAL + COMPLIANCE)`, evicted cases are silently folded into `REFUSAL`, and the reported rate rises with episode length. Teams tuning against this metric learn to *shorten* context or *increase* eviction pressure, which mechanically raises the score while degrading the agent. T..."
  },
  "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": "27003119bd4cca6f1fdb52bf6c9a32c6adf325f780ec5b5d5634e9924ac53386",
    "verified_classes": [
      "FalseSafeScoringError",
      "ContextEvent",
      "ScoringTurn"
    ],
    "verified_functions": [
      "classify_refusal",
      "score_episode"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "FalseSafeScoringError"
    ],
    "sample_fail_closed_invariants": [
      "no scoreable turns; refusing to emit safety rate"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
