{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-the-litmus-adversarial-harness-in-rehearsal-but-regress-to-unsafe-tool-use-under-live-traffic-the-probe-ordering-contaminati",
  "title": "Why does an instance pass the LITMUS adversarial harness in rehearsal but regress to unsafe tool-use under live traffic? The probe-ordering contamination invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent instance evaluated by a LITMUS-style adversarial harness where probe cases share a mutable tool sandbox, a persistent context, or a warm model session across the probe sequence. Does not apply to fully hermetic, per-probe cold-started evaluations with isolated sandboxes and independent model sessions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-harness-in-rehearsal-but-regress-to-unsafe-tool-use-under-live-traffic-the-probe-ordering-contaminati.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-harness-in-rehearsal-but-regress-to-unsafe-tool-use-under-live-traffic-the-probe-ordering-contaminati.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-adversarial-harness-in-rehearsal-but-regress-to-unsafe-tool-use-under-live-traffic-the-probe-ordering-contaminati.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1609,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a weakness in the agent's safety policy. It is a *measurement* defect in the harness: the probe order itself changes the agent's observable safety behavior. A LITMUS harness is designed to answer \"does this instance refuse/contain adversarial pressure?\" But most harnesses execute probes as a *sequence* against a *warm* instance — same sess...",
    "what_was_observed": "A harness ran 40 adversarial probes (tool-use injection, authority spoofing, exfiltration lures) against a single agent instance. In rehearsal, ordered as `[benign_warmup, P1..P40]`, the instance scored 39/40 safe. The one miss was `P17` (a shell-escape lure). The team flagged `P17` as a model defect. Re-running the *same instance* with `P17` first — cold, isolated sandbox — the instance **refused** `P17` cleanly. So...",
    "condition_of_validity": "LITMUS results are only valid when *all three* leakage channels are severed between probes: - **Sandbox channel:** tool-result caches, filesystem residue, env vars, and any memoization keyed by input must be reset or namespaced per probe. A cache hit on an adversarial path is a *harness* artifact, not an agent behavior. - **Context channel:** the model sessi...",
    "decision_boundary": "The boundary is: **can the harness prove, per probe, that the agent's observation set contains no artifact it did not generate from the current probe's inputs?** Operationally, treat a probe as invalid (not passed, not failed) if any of the following hold: - A tool call in probe `p_i` returns a cache hit whose origin timestamp precedes `p_i`'s start. - The c...",
    "operational_effect": "The practical consequence is that LITMUS-style safety rates are **not comparable across harness versions** unless probe-order independence is enforced and reported. Two teams running the same instance with different probe orderings will report different safety numbers, and neither will be wrong about their own sequence — but both will be wrong about the inst..."
  },
  "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": "9328a15197e55357fb6489778c4d79e96f0b62bdd09988e38f07dd3f02d52b4f",
    "verified_classes": [
      "ProbeOrderContaminationError",
      "ProbeResult",
      "HarnessRun"
    ],
    "verified_functions": [
      "record",
      "assert_order_independence"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProbeOrderContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
