/disruption:disruption-analyze-runfrom disruption
Downloads Prow CI job interval/timeline data and analyzes disruption episodes, waves, revision rollouts, and concurrent etcd/OVS/CPU/cloud signals per run. Takes Prow URLs or job:build_id pairs.
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 why these runs were disrupted: the mechanism in each run. It does not decide whether disruption got worse, compare cohorts, or search Jira; other disruption skills do that.
which gcloud). The test-platform-results-public bucket is public. Do not run gcloud auth login, and do not change the user's gcloud config. download_timelines.py sets CLOUDSDK_AUTH_DISABLE_CREDENTIALS=true on each gcloud subprocess, and any direct gcloud storage command here uses the same variable. Anonymous access still needs network execution when the command runs in a sandbox.disruption_common library: the disruption plugin's scripts/disruption_common, installed with the plugin. If it is missing, the scripts exit and say so. Report the message; do not work around it.The scripts are in this skill's directory: ${CLAUDE_SKILL_DIR} in Claude Code, or the directory containing this SKILL.md elsewhere.
--backends unchanged. Do not shorten kube-api-new-connections to kube-api, and do not substitute derived probes (*-localhost-*, *-http1-*, *-http2-*, *-service-network-*, *-internal-lb-*) or cache-* backends unless the user named them.ci-cluster-network-liveness is disrupted has unreliable disruption data. Keep it, say so, and do not rest a conclusion on its disruption counts alone.investigation.json), {investigation_dir} is its directory; otherwise create .work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/. Runs go under {runs_dir} = {investigation_dir}/runs.prow.ci.openshift.org or gcsweb-ci), one or more. Or job:build_id pairs, such as cohorts.handoff.download_runs from disruption-find-runs in the state file.--backends): the exact names. Take them from the request, or from the state file's series.backends, or else its cohorts.backends (written by cohorts.py validate). Without any of these, analyze every backend that shows disruption and say so.From each Prow URL take the job name and build ID: the last two path segments after /logs/. The job name is letters, digits, ., _, and -, and the build ID is all digits; skip and report anything else rather than putting it in a shell command. Presubmit runs (/pr-logs/pull/...) are not supported: the download reads only /logs/ artifacts, so say so and skip them. Prow URLs may say origin-ci-test; the bucket is always test-platform-results-public.
Read references/artifacts.md and follow Timeline download: one download_timelines.py call for every run, with --output-dir {runs_dir}. When the runs are before/after cohorts, add --gather: disruption-compare-cohorts compares component versions from each run's releaseinfo.json, and the revision-trigger check needs the events and configmaps. On exit 2, continue with the runs that downloaded; on exit 1, stop and report each run's error.
Keep each run's payload pair (initial → target) from the output. For upgrade jobs, make no claim that depends on which payload a run started from or upgraded to without that run's pair; if it is unknown, say so.
For every run, save the parser's full JSON (the cohort comparison reads it) and print its one-line summary, in one loop:
for run in '{job_1}:{build_id_1}' '{job_2}:{build_id_2}'; do
job="${run%%:*}"; build_id="${run##*:}"; dir="{runs_dir}/${build_id}"
if python3 "${CLAUDE_SKILL_DIR}/parse_disruption.py" "${dir}"/logs/e2e-timelines_spyglass_*.json \
--job-name "${job}" --build-id "${build_id}" --backends '{exact_backends}' --format json > "${dir}/parsed.json.tmp"; then
mv "${dir}/parsed.json.tmp" "${dir}/parsed.json"
python3 "${CLAUDE_SKILL_DIR}/parse_disruption.py" "${dir}"/logs/e2e-timelines_spyglass_*.json \
--job-name "${job}" --build-id "${build_id}" --backends '{exact_backends}' --format summary
else
rm -f "${dir}/parsed.json.tmp" "${dir}/parsed.json"; echo "${build_id}: the parser failed; no parsed.json kept" >&2
fi
done
A run without timelines gets no parsed.json, and a failed rerun removes the one from an earlier run, so the cohort comparison reports the run as missing instead of reading an empty or stale file.
Then read references/timeline-analysis.md and follow 3.2 through 3.4 (blast radius, deep-dive of the runs that need it, and how to read each signal).
Compare runs by the parser's episodes and waves (for example "3 episodes in 1 wave" against "6 episodes in 2 waves (3+3)"), not by the disruption count. Check which static-pod revision rollout (rollouts:) each wave falls inside. If some runs have an extra rollout that others do not, Step 4 is needed: follow 4.3 Revision Trigger.
Only if the parser output does not establish the mechanism, read the Deep-dive artifact download section of references/artifacts.md and follow it: audit logs, etcd logs, the revision trigger (revision_triggers.py), and PromQL for live clusters. Prefix any direct gcloud storage command with CLOUDSDK_AUTH_DISABLE_CREDENTIALS=true.
When a wave sits inside a revision rollout that comparison runs do not have, run revision_triggers.py on a run with the rollout and one without it to find the write that started the revision. Use the script rather than reading events.json or configmaps.json by hand. The commits behind that write are the disruption-change-suspects skill's job: record the component and both runs for it (4.4).
references/timeline-analysis.md section 5 has the node-shutdown and endpoint-slice checks. Do them when disruption coincides with node events.
Write one short analysis per run to {runs_dir}/{build_id}/analysis.md:
references/evidence-links.md). Say "not determined" when it is not, and what was checked;Then answer with a compact table (one row per run: build ID, cohort, episodes/waves, mechanism, liveness) and the mechanisms in a few sentences. When there are several runs, say which mechanisms repeat across runs and which appear once. Do not compare before and after cohorts here; that is disruption-compare-cohorts.
End the turn with:
```disruption-checkpoint
stage: run-analysis
state_file: <path to investigation.json>
summary: <one line: runs analyzed, the recurring mechanism, anything undetermined>
next:
- compare the cohorts (disruption-compare-cohorts)
- look for the change behind <component> between <run without> and <run with> (disruption-change-suspects)
- search Jira for this mechanism (disruption-known-issues)
- deep-dive run <build_id>
```
List only the options that fit: comparing cohorts only when the runs are cohorts, the change search only when a component is implicated. 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 (compare the cohorts when there are cohorts, otherwise search Jira) and continue.
error text (credential-like values are removed). A sandbox that blocks the network is separate from an auth failure; request network execution and run the downloader again. Do not run gcloud auth login.--format summary to triage many runs before deep-diving, so large JSON stays in files.download_timelines.py (opens in a new tab)parse_disruption.py (opens in a new tab)references/artifacts.md (opens in a new tab)references/evidence-links.md (opens in a new tab)references/timeline-analysis.md (opens in a new tab)revision_triggers.py (opens in a new tab)test_download_timelines.py (opens in a new tab)test_parse_disruption.py (opens in a new tab)test_revision_triggers.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/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-compare-cohortsUse when deciding what behavior differs between a before and an after cohort of disrupted Prow runs — builds a candidate x cohort matrix from the per-run analyses and classifies each candidate cause as pre-existing and unchanged, pre-existing with more impact, or new. Also compares any set of analyzed runs for shared patterns. Usually one step of a disruption regression 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.npx claudepluginhub openshift-eng/ai-helpers --plugin disruptionOther plugins' skills for the same job