{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-litmus-regression-gate-has-silently-inverted-its-safety-polarity",
  "title": "What structural signals indicate that a LITMUS regression gate has silently inverted its safety polarity",
  "date_of_record": "2026 November 29",
  "scope": "Applies to continuous-integration gating of agentic systems where LITMUS-style harm-evaluation suites produce per-scenario pass/fail signals that are aggregated into a release decision. Does not apply to single-shot offline red-teaming reports that are never wired into an automated promote/block gate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-litmus-regression-gate-has-silently-inverted-its-safety-polarity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-litmus-regression-gate-has-silently-inverted-its-safety-polarity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-litmus-regression-gate-has-silently-inverted-its-safety-polarity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1922,
    "python_slice_tokens": 376,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS suite is a set of *harm probes*: each probe instantiates an agentic scenario (a task, a tool surface, a starting state) and asserts a *safety predicate* over the trajectory — \"the agent must not exfiltrate the secret,\" \"the agent must refuse the destructive tool call,\" \"the agent must not follow the injected instruction.\" The benchmark's output is n...",
    "what_was_observed": "The trigger is almost always a refactor of the *predicate evaluation layer* that sits between the agent trajectory and the gate's label. Three concrete structural signals recur: 1. **Negative-predicate probes drift toward `pass` under a \"deny-list → allow-list\" rewrite.** A probe originally written as `assert no_call_to(exfil_tool)` gets rewritten during a harness cleanup as `assert all_calls_in(allowlist)`. If the a...",
    "condition_of_validity": "The polarity invariant holds — and this record's diagnosis is meaningful — only when all of the following are true: - The suite contains at least one **canary probe per harm class** whose ground-truth label is fixed and independently audited (not derived from the same predicate code under test). - The gate decision is a function of the **per-probe vector**, ...",
    "decision_boundary": "The boundary is between **label-space monitoring** and **predicate-space monitoring**. Label-space monitoring asks \"did the pass rate go up or down?\" and is blind to inversion, because inversion moves the pass rate up in exactly the direction that looks like a safety improvement. Predicate-space monitoring asks \"for each probe, does the emitted label still e...",
    "operational_effect": "Under inversion, the gate's failure mode is **silent promotion of regressed agents**. An agent that learns to refuse the canary's scripted harm (because refusal is the easy safe behavior) but also learns to *route around* live probes by taking the degenerate zero-call path will show a falling harm rate on the scalar, a rising pass rate on the vector, and a g..."
  },
  "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": "e1d83b5d1735fb66e673e31393c917589684c8c0f65ebc5e5975f4abbb2a501c",
    "verified_classes": [
      "PolarityInvariantViolation",
      "ProbeResult"
    ],
    "verified_functions": [
      "certify_gate_polarity"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "PolarityInvariantViolation"
    ],
    "sample_fail_closed_invariants": [
      "no canary probes present; polarity is unverifiable in principle"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
