/disruption:disruption-compare-cohortsfrom disruption
Compares before/after cohorts of disrupted Prow runs to classify candidate causes as pre-existing, worsened, or new. Builds a signal matrix from per-run analyses for disruption regression investigations.
Ships in disruption. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill answers what differs between the runs before a change and the runs after it. A regression is explained by something that changed, not by stress every run shares. It does not find the change in code (disruption-change-suspects) or search Jira (disruption-known-issues).
disruption_common library: the disruption plugin's scripts/disruption_common, installed with the plugin. If it is missing, the script exits and says so. Report the message; do not work around it.{runs_dir}/{build_id}/parsed.json and its analysis at {runs_dir}/{build_id}/analysis.md, both written by disruption-analyze-run. Cohorts come from disruption-find-runs (cohorts in the state file).The script is in this skill's directory: ${CLAUDE_SKILL_DIR} in Claude Code, or the directory containing this SKILL.md elsewhere.
ci-cluster-network-liveness is disrupted has unreliable disruption data. Do not rest a conclusion on its disruption counts alone; its other signals still count.{investigation_dir} is the state file's directory; {runs_dir} is {investigation_dir}/runs.python3 "${CLAUDE_SKILL_DIR}/compare_cohorts.py" \
--state-file "{investigation_dir}/investigation.json" --runs-dir "{runs_dir}"
Without a state file, pass the parser outputs directly: --before a.json,b.json --after c.json,d.json.
Each row is one signal, with how many runs in each cohort show it (runs/of) and its median size there:
disruption: disruptions, episodes, waves, and the count per phase on the selected backends.rollout: static-pod revision rollouts per operator, and how many had disruption inside.during: context events near disruption windows (concurrent events).run-wide: the same context sources over the whole run (run_context). A clean run has no disruption windows, so only these rows can show that a before run had the same stress without the disruption.The suggested label compares counts only. A run listed as missing parsed.json was not analyzed; analyze it or say the comparison is without it.
After the matrix, component repos whose commit differs come from each run's gather/releaseinfo.json (the runs must have been downloaded with --gather). changed means no after run shares a commit with any before run for that repo; mixed means some after runs still have a before commit, so the repo does not separate the cohorts. Both labels cover only runs whose releaseinfo lists component commits; the notes name any run left out, and a left-out before run could have shared a commit. releaseinfo is the payload each cluster ran last, which for upgrade jobs is the target, not the payload it started from. A changed component whose role fits a candidate (for example the kube-apiserver operator for a new rollout) is a lead for disruption-change-suspects, not proof. If the script says component versions were not compared, say so; the change search still works from payload tags.
A candidate is a mechanism the run analyses named (for example "second kube-apiserver rollout", "etcd slow fdatasync on master-0", "OVS poll stalls on the source node"), with the matrix rows that measure it. Read references/cross-run-comparison.md for how to line up episodes, waves, rollouts, payload pairs, and same-job pairs.
Put every candidate in exactly one class:
| Class | Evidence |
|---|---|
| Pre-existing, unchanged | Present in the before cohort about as often and as strongly as in the after cohort. It explains disrupted runs, but not why disruption increased. |
| Pre-existing, more impact | Present before, but in more after runs, larger, or now inside disruption episodes where before it was not. Say which of those it is. |
| New | Absent from the before cohort and present in most of the after cohort. |
| Not supported | Named by a run analysis but the matrix does not show it consistently in the after cohort. |
Rules:
during rows: a before run with no disruption has no during rows at all.Write {investigation_dir}/comparison.md: the matrix rows that matter (as printed), then each candidate with its class, the runs it rests on (build IDs linked to Prow), and why. Answer with the candidates by class, new and more-impact first, and the strongest explanation for the increase. If no candidate is new or more impactful, say plainly that the comparison explains the disrupted runs but not the increase.
End the turn with:
```disruption-checkpoint
stage: comparison
state_file: <path to investigation.json>
summary: <one line: the new or more-impact candidates, or "no candidate changed between cohorts">
next:
- find the change behind <candidate> (disruption-change-suspects)
- search Jira for <mechanism> (disruption-known-issues)
- analyze more runs (disruption-find-runs with a larger --per-side, then disruption-analyze-run)
- deep-dive run <build_id> (disruption-analyze-run)
- check the same series on <platform> as a control, in W3 only (disruption-trend --control platform-<platform> --platform <platform>)
```
List only the options that fit. Then stop and wait for the user's choice, unless the request said to run without pausing (--auto, or "just run it"); then record the default (find the change behind the strongest new or more-impact candidate; search Jira when there is none) and continue.
disruption-find-runs first, or pass --before and --after.disruption-analyze-run first.references/cross-run-comparison.md for patterns across the runs, and say no before/after conclusion is possible.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openshift-eng/ai-helpers --plugin disruption7 skills in this plugin
/disruption-analyze-runUse when explaining why specific Prow CI job runs were disrupted — downloads their interval/timeline data and analyzes disruption episodes, waves, revision rollouts, and concurrent etcd, OVS, CPU, and cloud signals per run, with audit and etcd logs when needed. Takes Prow URLs or job:build_id pairs. Usually one step of a disruption investigation (see investigate-disruption)./disruption-change-suspectsUse when looking for the code change behind a disruption regression or mechanism — lists every PR that landed between two release payloads, shortlists the ones whose description fits the mechanism and components, and reads their diffs. Also answers "what landed between payload A and B that could affect this backend?" on its own. Usually one step of a disruption investigation (see investigate-disruption)./disruption-find-runsUse when choosing which Prow job runs to analyze for a disruption question — sampling the currently disrupted runs of a series, proposing before/after cohorts around a disruption-trend transition, or checking cohorts the user supplied. To investigate a DisruptionRegression alert or dashboard, start with investigate-disruption; this skill is usually one of its steps./disruption-known-issuesUse when checking whether a disruption mechanism is already tracked in Jira — searches TRT and OCPBUGS by API family, mechanism keywords, and component, separates cards whose mechanism the evidence demonstrates from cards that are only related by backend or symptom, and checks whether a matching fix already landed. Usually the last step of a disruption investigation (see investigate-disruption)./disruption-trendUse when asked only when disruption started, got worse, improved, or changed for a disruption backend or series (given as an alert, a Grafana disruption dashboard URL, or a release plus backend), or to run a control series on another platform or release. Builds the per-run disruption time series and locates transitions and onset with stated uncertainty. To investigate why a DisruptionRegression alert fired, start with investigate-disruption; this skill is usually its first step./investigate-disruptionUse when investigating OpenShift CI disruption end to end — a DisruptionRegression alert, a Grafana disruption dashboard URL, Prow job runs, "when did disruption start", "what made disruption worse", or "what changed between these payloads". Picks the workflow, runs the disruption skills in order with a checkpoint between them, and assembles the final report with a verdict.Other plugins' skills for the same job