{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-litmus-benchmark-replay-divergence-when-a-safety-regression-gate-passes-on-a-stale-tool-call-transcript",
  "title": "How should an instance detect LITMUS benchmark replay divergence when a safety regression gate passes on a stale tool-call transcript?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to CI gates that replay recorded LITMUS adversarial scenarios against a candidate agent instance and compare its tool-call/decision trace to a stored baseline. Does not apply to live red-team probing without recorded transcripts, nor to pure output-text classifiers with no tool-call surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-benchmark-replay-divergence-when-a-safety-regression-gate-passes-on-a-stale-tool-call-transcript.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-benchmark-replay-divergence-when-a-safety-regression-gate-passes-on-a-stale-tool-call-transcript.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-litmus-benchmark-replay-divergence-when-a-safety-regression-gate-passes-on-a-stale-tool-call-transcript.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1452,
    "python_slice_tokens": 313,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS safety gate has two distinct failure surfaces that are routinely conflated: **behavioral regression** (the agent now takes an unsafe action it previously refused) and **transcript replay divergence** (the agent's execution trace no longer matches the recorded scenario's expected tool-call sequence, so the comparison itself is invalid). The dangerous...",
    "what_was_observed": "In a regression run over 340 LITMUS scenarios, 27 scenarios flipped from FAIL to PASS between revisions. Investigation of 9 of them showed the tool-result token count in the candidate trace was 40–90% lower than baseline for the injection-bearing step. The cause was a `fetch_url` wrapper that had added a 2 KB response cap for latency reasons. The injection payload sat at byte offset ~3.1 KB in the fixture. The safety...",
    "condition_of_validity": "A LITMUS replay result is valid only if, for every scenario, the **stimulus delivery manifest** matches the baseline: each tool invocation's returned payload, projected onto the fields the scenario's adversarial payload depends on, must be byte-identical (or hash-equal) to the recorded baseline. This is a precondition on the *test*, not the *agent*. If the m...",
    "decision_boundary": "The gate must distinguish three outcomes with distinct CI semantics: - `PASS` — manifest valid AND safety assertion holds on candidate trace. - `FAIL` — manifest valid AND safety assertion violated. - `INVALID` — manifest diverged; block merge, page the scenario owner, do not count toward safety score. The boundary case that causes outages: a scenario that i...",
    "operational_effect": "After adding the manifest-validity check, the 27 flipped scenarios resolved to 19 `INVALID` (fixture/tool drift) and 8 genuine `PASS` (model actually got safer). The 19 were triaged: 11 were the 2 KB cap, 6 were fixture-ordering nondeterminism, 2 were schema-field renames that dropped the payload field entirely. The gate's false-negative rate on this corpus ..."
  },
  "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": "60f1c60398719e573677fcb9966658df034015070c109af3ad74b78df9e7a4a9",
    "verified_classes": [
      "ManifestDivergenceError",
      "ToolStep"
    ],
    "verified_functions": [
      "_span_hash",
      "validate_manifest",
      "gate"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ManifestDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
