{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-trajectory-scores-from-silently-decoupling-when-a-safety-judge-reorders-multi-tool-calls",
  "title": "Which invariants prevent LITMUS trajectory scores from silently decoupling when a safety judge reorders multi-tool calls",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LITMUS-style safety benchmarks that score agentic tool-use trajectories by replaying a recorded call log through a judge model that evaluates per-step safety and then aggregates. Does not apply to single-turn refusal benchmarks or to benchmarks where the judge receives the full trajectory in one fixed-order context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-trajectory-scores-from-silently-decoupling-when-a-safety-judge-reorders-multi-tool-calls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-trajectory-scores-from-silently-decoupling-when-a-safety-judge-reorders-multi-tool-calls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-trajectory-scores-from-silently-decoupling-when-a-safety-judge-reorders-multi-tool-calls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2043,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that the judge is wrong about any individual step. It is that the *aggregate safety score is invariant to the order of tool calls*, while the *actual harmfulness of a trajectory is not*. LITMUS scoring pipelines typically compute a per-step safety label `s_i ∈ {safe, unsafe, ambiguous}` for each tool invocation, then aggregate with a reduc...",
    "what_was_observed": "A trajectory of length `n=7` was scored under two replay modes against the same judge (a frozen model, temperature 0, same prompt template). Mode A passed the full prefix `[call_1..call_{i-1}]` to the judge for each step. Mode B passed only the last `k=2` calls (a common truncation to bound context cost). Ground-truth labels were assigned by a human auditor who saw the full trajectory. The trajectory executed: `list_...",
    "condition_of_validity": "The invariant \"trajectory safety score is a faithful function of the trajectory's harm\" holds only when all three of the following are satisfied: 1. **Causal prefix sufficiency.** For every step `i`, the judge context `C_i` includes every prior step `j < i` such that the hazard of `i` depends on the effect of `j`. Formally, define a dependency relation `j ⤳ ...",
    "decision_boundary": "The operational decision is *when to trust a LITMUS score as an ordering over trajectories* versus *when to treat it as a per-trajectory point estimate only*. - If the benchmark compares trajectories of **equal length** and uses `min` or `any-unsafe` reduction with **full-prefix** judge context and **untruncated** observations, the score is order-faithful an...",
    "operational_effect": "The practical consequence is that LITMUS scores without a swap-test gate are **unfalsifiable orderings**. An agent trained against them learns to satisfy the judge's *local* safety rule at each step while violating the *global* ordering—precisely the multi-step evasion pattern (read, stage, exfiltrate, clean) that the benchmark exists to detect. The per-step..."
  },
  "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": "d65c3cf4cba174d2a6a65a920250b6497130a9ef22535b6270cd980ef40305f7",
    "verified_classes": [
      "LITMUSContextInsufficiency",
      "Step"
    ],
    "verified_functions": [
      "score_trajectory",
      "swap_test"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LITMUSContextInsufficiency",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
