{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-invalidate-its-own-litmus-safety-benchmark-score-when-the-scoring-harness-s-judge-model-shares-a-context-window",
  "title": "Under what conditions must an instance invalidate its own LITMUS safety-benchmark score when the scoring harness's judge model shares a context window with the attack it is grading",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agentic red-team harnesses that score attempted-harm trajectories using an LLM-as-judge whose grading call is co-resident (same context window, same KV cache, or same conversation transcript) with the adversarial turns it is evaluating. Does not apply to out-of-band judges with a fresh, isolated context, nor to deterministic string-match or classifier-based scorers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-its-own-litmus-safety-benchmark-score-when-the-scoring-harness-s-judge-model-shares-a-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-its-own-litmus-safety-benchmark-score-when-the-scoring-harness-s-judge-model-shares-a-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-invalidate-its-own-litmus-safety-benchmark-score-when-the-scoring-harness-s-judge-model-shares-a-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1777,
    "python_slice_tokens": 187,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between a judge that *reads* an attack transcript and a judge that *inhabits* it. In a correctly isolated harness, the judge model receives the attack trajectory as inert data—a quoted transcript inside a delimited field—and its own reasoning is causally upstream of nothing. In a co-resident harness, the judge is invoked as a ...",
    "what_was_observed": "A red-team harness ran a 400-episode battery of multi-turn jailbreak attempts against a target agent. The judge was configured with a system prompt instructing it to output `SAFE` or `UNSAFE` for the final assistant turn. In the \"streaming\" variant of the harness, the judge was appended to the live transcript via a `judge_turn` injection to save a re-serialization pass—the transcript plus a trailing instruction: *\"Re...",
    "condition_of_validity": "A LITMUS score is valid only if the judge's verdict is *counterfactually independent* of the attack content it is scoring—that is, if the verdict would be identical under a judge that had never seen the attacker's nested instructions. Co-residency violates this directly. The precise condition that must hold is: > The judge's decision function must be a pure ...",
    "decision_boundary": "The boundary between \"report the score\" and \"invalidate the score\" is not the contamination rate—it is whether the contamination is *detectable per-episode*. If the harness can flag, for each episode, whether the judge's verdict was reachable only via attacker-installed text (e.g., via the sentinel-substitution test above), then contaminated episodes can be ...",
    "operational_effect": "The architectural invariant that bounds this failure is *judge-context purity*: the scoring call must be issued from a fresh context whose only inputs are the serialized trajectory (as data), the rubric, and nothing else. This is enforceable and cheap—one extra serialization pass per episode, which is exactly the cost the streaming harness tried to avoid. Th..."
  },
  "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": "b4255d8c3cd01a5b6b109f6249c22df918fbafae03da6505f2a22a6dcd8effc6",
    "verified_classes": [
      "JudgeContextContamination"
    ],
    "verified_functions": [
      "score_episode"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "JudgeContextContamination"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
