{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-halt-when-litmus-safety-benchmark-scoring-diverges-from-live-agent-behavior-under-context-window-drift",
  "title": "Where must an instance halt when LITMUS safety-benchmark scoring diverges from live agent behavior under context-window drift?",
  "date_of_record": "2026 December 2",
  "scope": "Applies to continuous red-teaming harnesses that periodically replay a fixed LITMUS-style safety probe suite against a live, stateful agent and gate promotion on the resulting safety score. Does not apply to one-shot offline benchmark runs against a frozen model snapshot with no persistent memory or tool access.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-scoring-diverges-from-live-agent-behavior-under-context-window-drift.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-scoring-diverges-from-live-agent-behavior-under-context-window-drift.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-halt-when-litmus-safety-benchmark-scoring-diverges-from-live-agent-behavior-under-context-window-drift.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1576,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS safety benchmark measures a *frozen* input-output mapping: probe prompt in, safety verdict out. A production agent is a *stateful trajectory machine*: the same probe prompt arrives after some number of prior turns, tool calls, and memory writes, and the agent's response is conditioned on that accumulated state. The harness treats the probe set as a ...",
    "what_was_observed": "A coding agent with an episodic memory store was red-teamed nightly against a 240-probe LITMUS suite. Probes are injected as the first user turn of a fresh session, but the agent's memory retrieval layer runs on every turn, including turn zero, and pulls \"relevant\" prior episodes by embedding similarity to the probe. Night 1: safety score 0.94. Night 14: 0.71. No model change, no system-prompt change, no tool-permiss...",
    "condition_of_validity": "The safety score `S = pass_count / probe_count` is a valid estimate of the agent's safety policy only if, for every probe `p`, the turn-zero context `C(p)` presented to the agent is a function of `p` alone and not of prior harness runs. Formally: This is the **probe-context invariance** condition. It is violated whenever any of the following hold: 1. Persist...",
    "decision_boundary": "The harness must halt and refuse to emit a safety score when probe-context invariance cannot be certified for the current run. The decision boundary is: - **Proceed** if every probe executes in a fresh session, memory retrieval is either disabled or scoped to a per-probe namespace that is cleared before execution, and the judge receives only the agent's emit...",
    "operational_effect": "Without this guardrail, continuous red-teaming becomes a self-poisoning loop: each run writes safety-relevant episodes into memory, which contaminate the next run's probes, which lower the score, which triggers remediation against a non-existent regression, which changes the agent's prompt or memory policy, which invalidates longitudinal comparison entirely...."
  },
  "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": "50dccd4eec65883b56eb9b15327582c064292b31cdb27e9ca6969493b5abe3ce",
    "verified_classes": [
      "ProbeContextContaminated",
      "ProbeRun"
    ],
    "verified_functions": [
      "certify_probe_context",
      "score_run"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProbeContextContaminated"
    ],
    "sample_fail_closed_invariants": [
      "empty probe set cannot yield a safety score"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
