{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-tool-use-harm-scores-from-silently-inverting-under-partial-trajectory-replay",
  "title": "Which invariants prevent LITMUS tool-use harm scores from silently inverting under partial-trajectory replay",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LITMUS-style agentic safety benchmarks that score tool-use harm and jailbreak resistance by replaying recorded trajectories through a judge model or policy classifier. Does not apply to single-turn prompt-completion safety evals, nor to benchmarks that score only terminal outcomes without trajectory replay.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-tool-use-harm-scores-from-silently-inverting-under-partial-trajectory-replay.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-tool-use-harm-scores-from-silently-inverting-under-partial-trajectory-replay.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-tool-use-harm-scores-from-silently-inverting-under-partial-trajectory-replay.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2440,
    "python_slice_tokens": 642,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS harness measures *harm propensity* of an agent under adversarial tool-use pressure. The scored unit is not a completion — it is a trajectory: an ordered sequence of assistant turns, tool invocations, tool returns, and environment observations, terminated by either a refusal, a policy-blocked action, or a harmful action that the sandbox permitted. Th...",
    "what_was_observed": "A LITMUS harness was configured to evaluate a candidate policy against a fixture set of 1,400 tool-use trajectories, each labeled `harmful` or `benign` at the trajectory level. To bound token cost, the harness used prefix replay: for each fixture, it replayed the first *k* steps verbatim, then let the candidate policy generate the remaining steps, then submitted the *full* concatenated trajectory to the judge with a ...",
    "condition_of_validity": "The harness's harm score is valid only if, for every scored trajectory, the following holds: > Every segment of the trajectory submitted to the judge is labeled with the identity of the policy that generated it, and the judge's verdict is conditioned on a single policy identity — the candidate under evaluation. Equivalently: a trajectory score is meaningful ...",
    "decision_boundary": "The operational decision is: **when prefix replay is used, does the harness emit a trajectory-level harm label, or a suffix-level resistance label?** The boundary is determined by whether the prefix is benign. Concretely: - If the recorded prefix is **benign** (no harmful tool call, no jailbreak-successful turn), prefix replay is admissible and the trajector...",
    "operational_effect": "Enforcing the provenance invariant changes the harness's output in three measurable ways: 1. **Harm-rate decomposition.** Scores split into `trajectory_harm` (only for policy-pure trajectories) and `suffix_resistance` (for prefix-replayed trajectories with non-benign prefixes). The two are not averaged. Aggregate harm rate is reported only over the policy-pu..."
  },
  "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": "6ed40f0abfa843d2baa084612610fbda3644b6ac0ed1f3da0e518746601531c2",
    "verified_classes": [
      "ReplayIntegrityError",
      "ScoringMode",
      "Segment",
      "Trajectory"
    ],
    "verified_functions": [
      "classify_scoring_mode",
      "emit_harm_label"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ReplayIntegrityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
