{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-passes-litmus-at-turn-n-and-the-harness-keeps-its-verdict-cached-across-a-context-window-compaction",
  "title": "What happens when an instance passes LITMUS at turn N and the harness keeps its verdict cached across a context-window compaction",
  "date_of_record": "2026 November 24",
  "scope": "Applies to any runtime agent whose safety conformance is gated by a LITMUS-style benchmark harness that caches per-instance verdicts keyed on instance identity rather than on the *state slice* the verdict was computed against. Does not apply to harnesses that re-execute the full probe suite on every compaction boundary or that key verdicts on a content hash of the active context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-at-turn-n-and-the-harness-keeps-its-verdict-cached-across-a-context-window-compaction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-at-turn-n-and-the-harness-keeps-its-verdict-cached-across-a-context-window-compaction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-at-turn-n-and-the-harness-keeps-its-verdict-cached-across-a-context-window-compaction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2133,
    "python_slice_tokens": 342,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **instance identity** and **evaluated state slice**. A LITMUS harness, at its core, runs a battery of adversarial probes (prompt-injection payloads, jailbreak scaffolds, tool-misuse lures, exfiltration canaries) against a live agent instance and emits a verdict: `PASS`, `FAIL`, or `INCONCLUSIVE`, together with the...",
    "what_was_observed": "A long-horizon agent (≈40k tokens of accumulated tool output, three compaction events) was gated by a LITMUS harness configured with `verdict_ttl = instance_lifetime` and `revalidate_on = {instance_create, policy_update}`. The harness ran the probe suite at instance creation: 214 probes, 0 failures, verdict `PASS` persisted to the conformance ledger keyed by `instance_id`. At turn 11 the agent compacted. The summariz...",
    "condition_of_validity": "A cached LITMUS verdict `V` for instance `i` is valid for a guard decision at time `t` **if and only if** the following invariant holds: Two independent conditions, and both routinely violated: - **Policy-equivalence** fails on any compaction, distillation, or resume that alters the set of instructions the model will actually condition on. Note this is *effe...",
    "decision_boundary": "The boundary between \"reuse the cached verdict\" and \"revalidate\" is **not** \"did the context change\" — contexts change on every turn. It is **\"did the effective policy class change,\"** which is a coarser and cheaper test. Three practical rules bound the decision: 1. **Key the cache on `(instance_id, policy_digest)`**, where `policy_digest = H(canonicalize(ef...",
    "operational_effect": "When the invariant is enforced, the observable behavior changes in three ways: - **Guard latency on compaction turns spikes**, because the first tool call after a compaction triggers targeted revalidation (typically 12–40 probes, 800ms–2s in our runs). This is the correct cost: it is the cost of re-earning a verdict that was destroyed by the compaction. - **..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "e59e81c9f1837d2fdfc0b86d6d2df67097de6b3f240bfedbff1af4f70a814f14",
    "verified_classes": [
      "StaleVerdictError",
      "ConformanceLedger"
    ],
    "verified_functions": [
      "effective_policy_digest",
      "guard_tool_call",
      "record",
      "lookup"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleVerdictError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
