{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-continuous-red-team-harness-has-silently-drifted-its-attack-distribution-out-of-the-ci-gate-s-decision-region",
  "title": "How does an instance detect that a continuous red-team harness has silently drifted its attack distribution out of the CI gate's decision region",
  "date_of_record": "2026 November 27",
  "scope": "Applies to CI-integrated safety benchmark harnesses (LITMUS-style) that run adversarial probes against an agent instance on every pipeline invocation and gate the build on a pass/fail verdict. Does not apply to offline, one-shot red-team evaluations where the probe set is frozen per report, nor to runtime guardrails that inspect live traffic rather than scheduled CI probes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-continuous-red-team-harness-has-silently-drifted-its-attack-distribution-out-of-the-ci-gate-s-decision-region.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-continuous-red-team-harness-has-silently-drifted-its-attack-distribution-out-of-the-ci-gate-s-decision-region.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-continuous-red-team-harness-has-silently-drifted-its-attack-distribution-out-of-the-ci-gate-s-decision-region.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2170,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A continuous red-team harness has two distinct things that can drift: the **agent under test** and the **attack generator**. Conventional CI safety gates instrument only the former—they track the agent's refusal rate, jailbreak-success rate, and policy-violation rate over time, alerting when the agent \"gets less safe.\" The non-obvious boundary is that the ha...",
    "what_was_observed": "A pipeline ran a LITMUS-derived harness on every merge to a tool-using agent. The harness had three stages: (1) sample seed attacks from a fixed taxonomy, (2) mutate each seed via a generator model at `temperature=0.9` to produce `N=200` probes per run, (3) execute probes against the agent in a sandbox, score refusals vs. compliance, and fail the build if `violation_rate > 0.05`. Across 40 consecutive pipeline runs t...",
    "condition_of_validity": "The gate's verdict is valid only when the following holds: > The empirical distribution of executed probes `P_t(probe)` is stationary (or bounded within a declared tolerance) across the comparison window, so that a change in `violation_rate` is attributable to the agent's conditional compliance `P(comply | probe)` rather than to `P_t(probe)`. This decomposes...",
    "decision_boundary": "The boundary between \"agent regression\" and \"harness drift\" is crossed when the probe-distribution fingerprint exceeds tolerance *and* the violation-rate delta is concentrated in the drifted region of probe space. The operational test: - **Fingerprint within tolerance, violation rate up** → attribute to agent. Block merge, page agent owner. - **Fingerprint o...",
    "operational_effect": "Once the fingerprint-and-canary structure was added, the failure mode became detectable at the run where it originated rather than 30 runs later. The re-run against the pinned prior generator digest reproduced the baseline `0.02` violation rate on the unchanged agent, confirming harness drift and clearing the false block. The generator tag was pinned to a di..."
  },
  "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": "e68aa83d8eeb8562c064f61b13ab893a1d2e99a1d0b1e230d5731f7855018d06",
    "verified_classes": [
      "HarnessDriftError",
      "RunRecord"
    ],
    "verified_functions": [
      "classify_run",
      "gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "HarnessDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
