{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-longitudinal-misuse-detection-harnesses-from-laundering-poisoned-episodes-through-the-litmus-resume-path",
  "title": "Which invariants prevent longitudinal misuse-detection harnesses from laundering poisoned episodes through the LITMUS resume path",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LITMUS-style safety benchmark harnesses that persist per-episode agent transcripts across a longitudinal horizon (multi-day, multi-session) and resume scoring from a checkpointed episode store. Does not apply to single-shot red-team evaluations where each episode is scored in-process and never rehydrated from disk.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-longitudinal-misuse-detection-harnesses-from-laundering-poisoned-episodes-through-the-litmus-resume-path.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-longitudinal-misuse-detection-harnesses-from-laundering-poisoned-episodes-through-the-litmus-resume-path.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-longitudinal-misuse-detection-harnesses-from-laundering-poisoned-episodes-through-the-litmus-resume-path.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1674,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A longitudinal misuse-detection harness is not a stateless classifier wrapped in a loop. It is a *stateful auditor* whose verdict for episode N depends on the accumulated semantic memory of episodes 1..N-1. The LITMUS harness therefore stores two distinct artifacts per episode: the raw transcript (immutable evidence) and the distilled risk-state vector (muta...",
    "what_was_observed": "A LITMUS run over a 14-day horizon with ~3,200 episodes was interrupted at episode 1,847 by an OOM kill during the distillation step. The harness had already written the `episode_1847.risk_state.json` record but had *not* yet flushed the corresponding `episode_1847.transcript.jsonl` tail (the last 40 tool-call turns, including two shell-exec attempts). On resume, the loader read the risk-state, saw `status: \"distille...",
    "condition_of_validity": "The invariant \"risk-state is a pure function of transcript\" holds only if all three of the following hold: - **Atomicity of the evidence/derivation pair.** The transcript append and the risk-state write must be committed under a single transaction boundary or a write-ahead log, such that no reader can observe a risk-state whose referenced transcript prefix i...",
    "decision_boundary": "The harness must decide, at resume time, between three actions for each episode whose `source_digest` does not match its on-disk transcript: The boundary that is easy to get wrong: a strict prefix-extension is *safe to recompute* but *unsafe to accept*. The tempting shortcut — \"the transcript only grew, so the old risk-state is approximately right\" — is exac...",
    "operational_effect": "Enforcing the invariant changes the harness's failure profile in three concrete ways: - **Crash cost becomes bounded and visible.** A crash mid-distillation now produces a digest mismatch on resume, forcing recompute of exactly the affected episode and its transitive dependents. The cost is proportional to the dependency fan-out, not to the whole corpus, bec..."
  },
  "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": "657fa597302c26262feb0cff4933d5625b1de11530d4fb3f8f0d8b83e6b028fb",
    "verified_classes": [
      "EvidenceIntegrityViolation",
      "RiskRecord"
    ],
    "verified_functions": [
      "digest_prefix",
      "is_strict_prefix_extension",
      "resume_episode"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EvidenceIntegrityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
