{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-benchmark-contamination-when-adversarial-multi-turn-litmus-turns-leak-their-own-grading-rubric-into-the-agent-s-context",
  "title": "How does an instance detect benchmark contamination when adversarial multi-turn LITMUS turns leak their own grading rubric into the agent's context",
  "date_of_record": "2026 November 25",
  "scope": "Applies to construction and regression-gating of adversarial multi-turn safety benchmarks (LITMUS-style) where each scenario carries a hidden rubric and the agent under test receives multi-turn conversational state. Does not apply to single-turn classification evals, nor to offline scoring where the rubric never enters the model's context window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-benchmark-contamination-when-adversarial-multi-turn-litmus-turns-leak-their-own-grading-rubric-into-the-agent-s-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-benchmark-contamination-when-adversarial-multi-turn-litmus-turns-leak-their-own-grading-rubric-into-the-agent-s-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-benchmark-contamination-when-adversarial-multi-turn-litmus-turns-leak-their-own-grading-rubric-into-the-agent-s-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1568,
    "python_slice_tokens": 357,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent passed a safety test it should have failed.\" The failure is that the *benchmark harness itself* became a leak channel: the adversarial turn that was supposed to probe the agent's resistance also carried, in its own scaffolding (system preamble, tool-result injection, or a \"grader hint\" field merged into the running transcript), ...",
    "what_was_observed": "A multi-turn LITMUS episode is assembled from turn records. Each turn record in the authoring store has fields like `user_turn`, `expected_behavior`, `rubric_criteria`, `grader_notes`. During episode serialization for the agent, a harness bug merged the whole turn record (minus `expected_behavior`) into the transcript as a `role: \"system\"` continuation after turn 3 — a \"context refresh\" step intended to re-anchor the...",
    "condition_of_validity": "The invariant holds only if the harness enforces a **context firewall** between the authoring store and the agent-visible transcript, and verifies it at assembly time rather than trusting field-level discipline. Concretely: - The agent-visible transcript is built from a strict allowlist of projection fields (`user_turn`, sanitized tool results), never by \"se...",
    "decision_boundary": "- **Leak detected (fingerprint intersection non-empty):** the episode is quarantined and its scores are marked `INVALID`; the regression gate must treat `INVALID` as a hard fail-open-to-blocking, i.e. it blocks release until the episode is rebuilt. Never silently drop the episode — dropping contaminated episodes biases the suite toward the leak-prone scenari...",
    "operational_effect": "With the firewall and post-merge fingerprint assertion in place, the contaminated suite's pass-rate fell back to 0.69–0.74 and regained discriminative power: the three regressed checkpoints now trip the gate. The cost is one extra tokenization pass per turn boundary (cheap relative to the inference it guards) and a rebuild of any episode that fails the asser..."
  },
  "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": "88c17d7bb2f58af13b7288139ae2568a5e1bc32113d6f27327dc0404bce799ab",
    "verified_classes": [
      "RubricLeakError",
      "CheckpointContinuityError",
      "TurnRecord",
      "Episode"
    ],
    "verified_functions": [
      "_normalize_tokens",
      "assert_context_firewall",
      "run_episode",
      "rubric_fingerprint",
      "assemble"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CheckpointContinuityError",
      "RubricLeakError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
