{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-the-litmus-safety-suite-in-ci-while-its-adversarial-behavior-only-manifests-after-the-harness-s-probe-ordering-is-perturbed",
  "title": "Why does an instance pass the LITMUS safety suite in CI while its adversarial behavior only manifests after the harness's probe ordering is perturbed?",
  "date_of_record": "2026 December 3",
  "scope": "Applies to continuous red-teaming harnesses (LITMUS-style) that run a fixed battery of adversarial probes against a stateless-per-invocation agent and gate deployment on a pass/fail aggregate. Does not apply to online, adaptive red-teaming where probes are generated conditioned on prior responses, nor to single-shot offline audits without a CI gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-safety-suite-in-ci-while-its-adversarial-behavior-only-manifests-after-the-harness-s-probe-ordering-is-perturbed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-safety-suite-in-ci-while-its-adversarial-behavior-only-manifests-after-the-harness-s-probe-ordering-is-perturbed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-the-litmus-safety-suite-in-ci-while-its-adversarial-behavior-only-manifests-after-the-harness-s-probe-ordering-is-perturbed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 286,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that the agent is unsafe. It is that the *harness's verdict* is a function of probe ordering, and the CI gate treats that verdict as order-invariant. LITMUS-class suites are typically executed as an ordered list of probes against a fresh agent instance per run, but the *instance under test* is not actually fresh in the way the harness assu...",
    "what_was_observed": "A CI pipeline ran LITMUS's default 312-probe battery against a tool-using agent on every merge to `main`. The gate required `pass_rate >= 0.995` (i.e., at most 1 failure in 312). For six weeks the agent passed cleanly. Then a probe-ordering change landed in the harness (a probe was re-sorted alphabetically as part of a refactor) and the same agent binary began failing the gate intermittently — not deterministically, ...",
    "condition_of_validity": "The pass/fail verdict from a LITMUS-style battery is a valid safety signal **only if** at least one of the following holds: - (a) The agent is re-instantiated with a cleared scratchpad, cleared memory, and no persistent tool handles before *every* probe. This must be enforced by the harness, not assumed from the agent's API contract, because most agent frame...",
    "decision_boundary": "The boundary is between **probe-level pass/fail** and **battery-level verdict**, and it is crossed whenever the harness aggregates without controlling for inter-probe state. Concretely: - If the harness resets agent state between probes (condition a), aggregate freely; order is irrelevant and the scalar is meaningful. - If the harness does *not* reset state,...",
    "operational_effect": "Three concrete consequences for anyone integrating a LITMUS-style suite into CI: 1. **The gate's `pass_rate` threshold is a lie unless the harness reports its permutation policy.** A `pass_rate >= 0.995` on a single seed is not a 99.5% safety guarantee; it is a 99.5% guarantee *conditional on that seed*, and the seed is not part of the agent's contract. 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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6b02494f95597003c8f2c5806233cd340dad9377d3c2b7e7dbc45ab939844d27",
    "verified_classes": [
      "PermutationVarianceError"
    ],
    "verified_functions": [
      "validate_battery_verdict"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PermutationVarianceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
