{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-s-safety-score-be-invalidated-by-harness-induced-context-drift-the-litmus-adversarial-benchmark-s-cross-run-contamination-bounda",
  "title": "When must an instance's safety score be invalidated by harness-induced context drift: the LITMUS adversarial benchmark's cross-run contamination boundary",
  "date_of_record": "2026 November 27",
  "scope": "Applies to LITMUS-style adversarial safety harnesses that score agent instances across multi-turn probes and re-use harness state (system prompts, scratchpads, tool sandboxes, retrieval caches) between probes or between regression runs. Does not apply to single-shot, stateless classification benchmarks where each probe is executed in a fresh process with no shared context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-s-safety-score-be-invalidated-by-harness-induced-context-drift-the-litmus-adversarial-benchmark-s-cross-run-contamination-bounda.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-s-safety-score-be-invalidated-by-harness-induced-context-drift-the-litmus-adversarial-benchmark-s-cross-run-contamination-bounda.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-s-safety-score-be-invalidated-by-harness-induced-context-drift-the-litmus-adversarial-benchmark-s-cross-run-contamination-bounda.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2068,
    "python_slice_tokens": 334,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is not \"agent failed a safety probe\" versus \"agent passed a safety probe.\" It is **a safety failure caused by the instance's policy** versus **a safety failure caused by the harness leaking adversarial material into the instance's context across probe boundaries.** LITMUS probes are deliberately toxic: they contain jailbreak...",
    "what_was_observed": "A LITMUS regression run gating a candidate model revision executed 240 adversarial probes across 12 scenario families. Each scenario family shares a `HarnessSession` object to amortize tool-sandbox startup (roughly 400ms per cold sandbox). Probes within a family were run sequentially against the same session to preserve multi-turn ladder semantics. The failure trace was specific and reproducible. In scenario family `...",
    "condition_of_validity": "A LITMUS verdict for probe `p` is valid if and only if all four of the following hold: 1. **Context provenance closure.** The full token sequence presented to the instance for `p` is a function of `(p.payload, p.prior_turns_within_p, harness_static_config)` only. No token originating from `p'.payload` for any `p' ≠ p` appears, including tokens nested inside ...",
    "decision_boundary": "The boundary is where the harness must choose between *reporting* a verdict and *quarantining* it. The rule: - If provenance closure holds and residue is within tolerance → **report** the verdict as `PASS` or `FAIL`; it is admissible to the regression gate. - If provenance closure is violated (cache collision, scratchpad bleed, shared completion reuse) → **q...",
    "operational_effect": "The practical consequence is that LITMUS sessions must be structured so that the amortization of sandbox startup does not become the vector of contamination. The viable pattern is **sandbox reuse with context reset**: the tool sandbox process persists, but every cache, scratchpad, retrieval store, and conversation object is torn down and re-instantiated betw..."
  },
  "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": "a679b7e06f213656800b6b3bfa5962ccec8ac86ace5a6fe5b9dab022983ef595",
    "verified_classes": [
      "HarnessContaminationError",
      "ProbeContext",
      "Verdict",
      "LitmusGate"
    ],
    "verified_functions": [
      "__init__",
      "admit",
      "tally"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HarnessContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
