{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-adversarial-score-laundering-when-a-litmus-harness-resumes-a-partially-scored-episode-after-a-mid-run-sandbox-restart",
  "title": "Which invariants prevent adversarial-score laundering when a LITMUS harness resumes a partially-scored episode after a mid-run sandbox restart",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LITMUS-style safety harnesses that score adversarial agent behavior across multi-turn episodes where the harness itself can crash, restart, or checkpoint mid-episode. Does not apply to single-shot classification scoring or to harnesses that discard and fully re-run any interrupted episode from turn 0.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-score-laundering-when-a-litmus-harness-resumes-a-partially-scored-episode-after-a-mid-run-sandbox-restart.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-score-laundering-when-a-litmus-harness-resumes-a-partially-scored-episode-after-a-mid-run-sandbox-restart.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-adversarial-score-laundering-when-a-litmus-harness-resumes-a-partially-scored-episode-after-a-mid-run-sandbox-restart.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1857,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The non-obvious failure here is not \"the harness lost state.\" It is that a resumed harness can *silently launder a failing episode into a passing one* by re-scoring only the turns it still has in memory, while the adversarial pressure that produced the failure lives in the turns it dropped. A LITMUS episode is a trajectory of (prompt, agent response, judge v...",
    "what_was_observed": "A regression-gating run over ~1,400 adversarial episodes (multi-turn jailbreak, tool-misuse, and data-exfiltration categories) was interrupted at episode 812 when the sandbox supervisor OOM-killed the runner. The harness restarted and resumed from its checkpoint file. The checkpoint, written every 30s, contained `episode_id`, `turn_index`, and the *current* turn's (prompt, response) pair — but not the prior turns' ju...",
    "condition_of_validity": "The laundering failure is possible only when all three hold: - **Checkpoint granularity < episode granularity.** The persisted record is per-turn but does not carry the accumulated verdict log, so a resume cannot reconstruct the scored prefix. - **Aggregate is computed over in-memory state, not over the persisted log.** If the aggregate is `f(persisted_turns...",
    "decision_boundary": "The harness must distinguish two resume situations at the moment of rehydration, and the boundary is *whether the persisted log is provably complete up to `turn_index`*: - **Completable resume:** the checkpoint carries a `verdicts` array of length `turn_index` (or a content-addressed reference to the full turn log), and a hash over `(episode_id, turn_index, ...",
    "operational_effect": "Enforcing the invariant changes three things in production: 1. **Checkpoint schema grows a `state_digest` and a `verdicts` (or `turn_log_ref`) field.** The digest is `sha256` over the canonicalized `(episode_id, turn_index, [(turn_i, verdict_i, judge_seed_i)])`. This is cheap (episodes are ≤ ~50 turns) and makes resume-completeness a verifiable predicate rat..."
  },
  "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": "a0168f870ebc55432b98429308622aea79b20e5701397ca51a73e3990fd68454",
    "verified_classes": [
      "EpisodeResumeIntegrityError",
      "Checkpoint"
    ],
    "verified_functions": [
      "canonical_digest",
      "aggregate_max_severity",
      "resume_episode",
      "gate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EpisodeResumeIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
