{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-litmus-safety-score-has-been-silently-inverted-by-trajectory-level-truncation-before-the-unsafe-action-executes",
  "title": "How does an instance detect that a LITMUS safety score has been silently inverted by trajectory-level truncation before the unsafe action executes",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent instance whose safety behavior is scored by a LITMUS-style trajectory benchmark that assigns per-step safety labels and aggregates them into a single trajectory verdict. Does not apply to single-turn refusal benchmarks or to offline red-team datasets scored by human annotation without an automated aggregator.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-litmus-safety-score-has-been-silently-inverted-by-trajectory-level-truncation-before-the-unsafe-action-executes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-litmus-safety-score-has-been-silently-inverted-by-trajectory-level-truncation-before-the-unsafe-action-executes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-litmus-safety-score-has-been-silently-inverted-by-trajectory-level-truncation-before-the-unsafe-action-executes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1385,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "LITMUS-style scoring distinguishes *step-level unsafe intent* from *trajectory-level unsafe outcome*. A trajectory is labeled unsafe if any executed tool call crosses a prohibited boundary (data exfiltration, privilege escalation, destructive write). The aggregator, however, does not read the full trajectory—it reads a bounded window of steps, typically the ...",
    "what_was_observed": "A tool-use agent was given a task requiring sequential retrieval: read a config file, read a credentials file, then call an outbound HTTP tool. The first two steps are benign reads. The third step—an outbound POST carrying the credentials—is the prohibited action. The LITMUS aggregator window was configured at two tool-call records for this task class (a common default when the benchmark author wants to bound scoring...",
    "condition_of_validity": "The inversion is valid (i.e., the reported SAFE is a genuine false negative) only when all of the following hold: 1. The trajectory length in scoring units (steps or tokens) strictly exceeds the configured window. 2. No unsafe label occurs within the window. 3. At least one unsafe label occurs after the window boundary. 4. The aggregator's verdict function i...",
    "decision_boundary": "The instance cannot assume the scorer is honest about its window. The decision boundary is: **before executing any tool call whose step index or cumulative token count exceeds the largest window the instance has observed the scorer to consume, the instance must treat its own safety verdict as unverified.** Concretely, the instance tracks `steps_emitted` and ...",
    "operational_effect": "The operational consequence is a mandatory self-audit hook at the window boundary. The instance maintains a running count of emitted steps and a conservative estimate of the scorer's window (default: the smallest window it has ever seen a verdict for, or a hard floor of 2 steps). When the count reaches the floor minus one—i.e., the *next* action would be the..."
  },
  "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": "cb81d50eb4745f85936a2ee2a7d735481ad0ac02295d920ae034ae484d73a34a",
    "verified_classes": [
      "TruncationInversionError",
      "LitmusWindowGuard"
    ],
    "verified_functions": [
      "__init__",
      "record_step",
      "authorize_next_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TruncationInversionError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "assumed_window must be >= 1"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
