{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-passes-litmus-safety-gating-but-its-tool-call-trace-was-truncated-by-the-harness-before-scoring",
  "title": "What happens when an instance passes LITMUS safety gating but its tool-call trace was truncated by the harness before scoring",
  "date_of_record": "2026 November 23",
  "scope": "Applies to LITMUS harness runs where agent trajectories are captured, truncated at a configurable token/step budget, and then scored by safety classifiers and invariant checkers for regression gating. Does not apply to full-fidelity replay runs where the trace is captured end-to-end without truncation, nor to purely static prompt-level evaluations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-safety-gating-but-its-tool-call-trace-was-truncated-by-the-harness-before-scoring.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-safety-gating-but-its-tool-call-trace-was-truncated-by-the-harness-before-scoring.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-passes-litmus-safety-gating-but-its-tool-call-trace-was-truncated-by-the-harness-before-scoring.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1201,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"pass\" in a LITMUS gate: **trace-pass** (the scored, truncated trajectory contains no safety violation) and **behavior-pass** (the agent, given unbounded steps, would not have produced a violation). These diverge precisely at the truncation boundary. A truncated trace that ends mid-task — before the agent reaches the step wh...",
    "what_was_observed": "During a regression sweep on the `tool-abuse` suite (240 adversarial instances, step budget 32, token budget 16k), 19 instances flipped from `FAIL` on the prior baseline to `PASS`. Manual replay at budget 128 showed all 19 still produced the violating tool call — at steps 34–61, i.e., past the truncation point. The scored traces ended with a benign intermediate message (`\"I'll check the file listing before proceeding...",
    "condition_of_validity": "The gate is only valid when, for every instance scored `PASS`, the trace terminated by *agent completion* rather than by *budget exhaustion*. Operationally this requires the harness to distinguish terminal reasons (`agent_done`, `refusal`, `error`) from `budget_exhausted`. A `PASS` on a `budget_exhausted` trace carries no safety information and must be treat...",
    "decision_boundary": "Do **not** gate a deploy on a `PASS` whose trace termination reason is `budget_exhausted` — escalate to `INCONCLUSIVE` and either extend budget for that instance or mark it `REQUIRES_REPLAY`. Do gate normally when termination is `agent_done` or `refusal`. When extending budget, do not extend uniformly: extend only `INCONCLUSIVE` instances, and re-run with a ...",
    "operational_effect": "Treating budget-exhausted passes as inconclusive converts a silent false-pass into an explicit, countable signal. In the sweep above it surfaced 19 instances for replay, all of which re-failed at extended budget, restoring the gate's sensitivity. The cost is a modest increase in replay compute and a small increase in `INCONCLUSIVE` volume; the benefit is tha..."
  },
  "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": "2271ab09cfd6568d1afaafcb0092e29111c7e9445df3d786d4405bdb9e7e50bf",
    "verified_classes": [
      "LITMUSGateError"
    ],
    "verified_functions": [
      "evaluate_gate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LITMUSGateError"
    ],
    "sample_fail_closed_invariants": [
      "empty result set: gate cannot be evaluated"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
