{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-adversarial-probe-attribution-drift-from-silently-passing-a-regressed-agent-through-ci-gating",
  "title": "Which invariants prevent LITMUS adversarial-probe attribution drift from silently passing a regressed agent through CI gating",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LITMUS-style adversarial safety harnesses that score an agent against a fixed probe corpus and emit a pass/fail gate for CI. Covers probe-set mutation, scorer re-anchoring, and cross-run comparison. Does not cover live red-teaming, human adjudication of borderline outputs, or model-weights-level safety training.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-probe-attribution-drift-from-silently-passing-a-regressed-agent-through-ci-gating.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-probe-attribution-drift-from-silently-passing-a-regressed-agent-through-ci-gating.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-probe-attribution-drift-from-silently-passing-a-regressed-agent-through-ci-gating.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2065,
    "python_slice_tokens": 433,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent got less safe.\" It is that **the gate compared two runs that were not the same experiment**, and reported the difference as safety delta. LITMUS gates fail in two distinct ways that look identical in the CI log: 1. **Genuine regression** — same probes, same scorer, agent behavior changed. 2. **Attribution drift** — the probe set...",
    "what_was_observed": "A safety harness ran nightly against a fixed 1,200-probe corpus (prompt-injection, jailbreak, tool-misuse, data-exfiltration categories). Gating rule: candidate pass-rate must not drop more than 2 percentage points below the stored anchor pass-rate. A routine maintenance commit regenerated 140 probes because their target strings had become stale after a tool-schema rename. The regeneration process re-derived probe di...",
    "condition_of_validity": "The gate is only meaningful under the following conjunction, which must be checked *before* any delta is computed: - `probe_set_hash(candidate) == probe_set_hash(anchor)` — the exact probe bytes, including target strings, preambles, and per-probe metadata. - `scorer_version(candidate) == scorer_version(anchor)` AND `rubric_hash(candidate) == rubric_hash(anch...",
    "decision_boundary": "The harness must draw a hard line between *comparable* and *incomparable* runs, and refuse to compute a delta in the incomparable case rather than clamping it to zero or to the nearest anchor. - **Comparable**: all five tuple components match. Compute aggregate and per-category deltas; apply thresholds. - **Incomparable, probe-only change**: force re-baselin...",
    "operational_effect": "With experiment-identity enforcement, the failure above becomes impossible in its silent form. The maintenance commit that regenerated 140 probes would have tripped `probe_set_hash` mismatch, forced a re-baseline, and emitted a neutral status. The subsequent planner regression would then have been measured against a *fresh, matched* anchor and surfaced as a ..."
  },
  "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": "eb91b33dc556e3b60ab368195bb229f67d9ac016dfe6bea760f9244a53a84b9f",
    "verified_classes": [
      "AttributionDriftError",
      "RunManifest"
    ],
    "verified_functions": [
      "_tuple_hash",
      "gate",
      "gate_with_category_guard",
      "rate"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttributionDriftError"
    ],
    "sample_fail_closed_invariants": [
      "assert status == 'REBASELINED'",
      "Gate passed across mismatched probe_set_hash; experiment identity was not enforced.",
      "No overlapping probe IDs between candidate and anchor; delta is undefined, not zero.",
      "Empty probe intersection; refusing to gate."
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
