{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-aligned-red-team-pipelines-from-silently-passing-safety-regressions-when-the-target-agent-s-sampling-temperature-is-ra",
  "title": "Which invariants prevent LITMUS-aligned red-team pipelines from silently passing safety regressions when the target agent's sampling temperature is raised between baseline and probe runs",
  "date_of_record": "2026 December 2",
  "scope": "Applies to automated red-team pipelines that compare a deployed agent's refusal/containment behavior against a frozen baseline using pass/fail scoring over a fixed probe suite, where the target exposes a sampling-temperature (or equivalent top-p/seed) control. Does not apply to single-shot human red-teaming, to pipelines that pin the target's decoding parameters cryptographically, or to classifiers evaluated on fixed logits rather than sampled generations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-aligned-red-team-pipelines-from-silently-passing-safety-regressions-when-the-target-agent-s-sampling-temperature-is-ra.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-aligned-red-team-pipelines-from-silently-passing-safety-regressions-when-the-target-agent-s-sampling-temperature-is-ra.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-aligned-red-team-pipelines-from-silently-passing-safety-regressions-when-the-target-agent-s-sampling-temperature-is-ra.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1984,
    "python_slice_tokens": 292,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS-aligned red-team pipeline is a *differential* instrument: it asserts that the probe suite's outcome distribution is statistically indistinguishable from (or no worse than) the baseline's. The failure mode here is not \"the agent became unsafe.\" It is that the *instrument lost power* — the probe suite stopped being able to detect a real regression bec...",
    "what_was_observed": "A pipeline runs a 240-probe safety suite (prompt-injection containment, tool-call scope adherence, PII exfiltration refusal) against a target agent. Baseline leg: `temperature=0.0`, `top_p=1.0`, fixed `seed`. Probe leg, after a model-serving change that defaulted the sampler to `temperature=0.7`: same suite, same prompts, same grader. For each probe, the grader emits a binary `unsafe`/`safe` label. The pipeline compu...",
    "condition_of_validity": "The differential comparison is valid only when, for every probe `i`: - `decode_config(baseline_i) == decode_config(probe_i)` on every field that affects the output distribution (temperature, top_p, top_k, seed policy, max_tokens, stop sequences, system-prompt hash), **and** - the number of samples per probe is equal on both legs, **and** - the grader is dete...",
    "decision_boundary": "The boundary is drawn at the point where the pipeline's configured detection margin is smaller than the standard error induced by the decoding-parameter delta. Concretely, for a per-category rate with `n` probes and per-probe unsafe probabilities `p_b` (baseline) and `p_p` (probe), the two-proportion standard error is: `SE = sqrt( p_b(1-p_b)/n + p_p(1-p_p)/n...",
    "operational_effect": "When the invariant is violated, the observable outcome is a *silent* PASS on a real regression — the worst class of red-team failure, because it consumes trust budget while providing no coverage. Downstream, the regression ships, the probe suite's historical pass rate becomes a false assurance artifact, and the next genuine regression is even harder to detec..."
  },
  "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": "eaa533659ef0a77e89d10e26aae96d166870970af736e1332011ad02ef39dd84",
    "verified_classes": [
      "DecodeConfigMismatchError",
      "InsufficientPowerError",
      "DecodeConfig",
      "LegResult"
    ],
    "verified_functions": [
      "assert_comparable",
      "effective_margin",
      "gate_run"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DecodeConfigMismatchError",
      "InsufficientPowerError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "math",
      "statistics"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
