/disruption:disruption-trendfrom disruption
Builds per-run disruption time series from Sippy data and locates transitions/onset with uncertainty. For when disruption started, got worse, or improved on a backend or release.
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 when: when disruption on a series started, or when it changed. It does not explain why. It builds a time series of per-run disruption seconds for one series, then finds step changes (transitions) and the onset, and states every data limitation.
A series is one release, one or more exact backend names, the Sippy job variants (platform, architecture, topology, network, upgrade type, feature set, OS), and optionally master_nodes_updated.
sippy.dptools.openshift.org and storage.googleapis.com. Both are public, so no credentials are needed.disruption_common library. It is the disruption plugin's scripts/disruption_common, installed with the plugin (Claude Code installs the whole plugin; Chai copies scripts/ into each skill). If the library is missing, the script exits and says exactly that. Report the message; do not work around it.Take one of these, unchanged:
DisruptionRegression* alert: pass the full text, including every label and any link: annotation.grafana-loki.ci.openshift.org/d/...): pass it unchanged. Do not open or fetch it, because it is behind SSO.--release and --backend are required. Add --platform, --upgrade-type, --architecture, --topology, and --network when the user gives them.Optional inputs:
--days N. The default is 30, or the dashboard lookback if that is longer. The maximum is 90, because the public Sippy API only keeps about 90 days of runs. A longer request is capped at 90 and a caveat says so.--state-file <path>, the investigation state shared with the other disruption skills. When none is given, create one at .work/disruption-analysis/<YYYY-MM-DD>-<short-slug>/investigation.json.--auto: a workflow asked you not to pause at the checkpoint (see Step 4). This is an instruction to you, not a script flag.If the release or backend is missing, ask for it. If only a release and backend were given with no platform or upgrade type, say that the series pools every job for that release and backend, because a change in the job mix can look like a regression. Then either ask for the missing fields or continue and keep that caveat in the answer.
Backend names are exact. 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.
The script is disruption_series.py in this skill's directory. In Claude Code that is ${CLAUDE_SKILL_DIR}; elsewhere, it is the directory containing this SKILL.md. Run it once, from the working directory where .work/ should live:
python3 "<skill-dir>/disruption_series.py" \
--alert-file ".work/disruption-analysis/<id>/alert.txt" \
--state-file ".work/disruption-analysis/<id>/investigation.json"
Write the pasted alert unchanged to alert.txt in the investigation directory with your file-writing tool first; never put alert text on the command line, where backticks and $(...) in it would run. Use --grafana-url '<url>' (single quotes) instead of --alert-file for a dashboard. For explicit fields, use --release 5.0 --backend kube-api-new-connections --platform gcp --upgrade-type micro. Add --days N when the user asked for a different window.
Run it with a 10-minute command timeout (for example timeout: 600000 on the Bash tool). A 30-day window usually takes 15–60 seconds, but the Sippy disruption API allows only 25 requests per rolling hour, shared by every user, so the script may wait up to 5 minutes (--rate-limit-wait, default 300 seconds) for the limit to free up. Each request covers 500 runs. Progress and rate-limit waits go to stderr. Disruption data is cached under .work/disruption-analysis/cache/ after every request, so a rerun only fetches runs that are not cached yet. Run the script once; do not loop on it.
After the analysis, the script reads prowjob.json from the public GCS bucket for the 20 runs nearest each transition on each side (about 40 small files per transition, 4 at a time, cached) to get each run's initial and target payload. Add --no-payloads only if GCS is unreachable.
The table on stdout has the per-bucket run count, nonzero rate, P50/P75/P95, max, job count, and payload range. Then, for each transition: a summary line, a per-job table, the payload findings, and suggested before/after run pairs. The onset and caveats come last. A DEGRADED: line under the header means runs were lost to API failures (see Error handling). The full result, including every number referenced below, is in the state file under trend, and the per-run records (with initial_payload and target_payload for the sampled runs) are in trend.runs_file.
The values are per-run peak seconds on the exact selected backends. They are not the dashboard's percentile line. Say so if you compare them with the alert's numbers.
The script finds candidate change points with a Mann-Whitney test, using binary segmentation over the per-run values. strong means |z| ≥ 5 and moderate means |z| ≥ 4. Under no change, noise stays below about 4. A split also needs at least 5 runs above the series floor (usually 0s) on its higher side, so a couple of disrupted runs in a quiet series are not reported as a step. These are candidates, not conclusions. Judge each one:
practical: false means the shift is statistically detectable but too small to matter. Mention it at most in passing.per_job.jobs). It lists every job with at least one run after the step: runs before and after, the job's own before P50/P95, and its after P50 and max. A job whose after P50 is above its own before P95 moved clearly. Jobs marked small n have fewer than per_job.min_runs runs on a side: use them as supporting evidence, not proof, and say how many runs they rest on. A job with 0 runs before is new after the step and says nothing about a change. A real product change usually moves most jobs of the affected kind (for example every upgrade job) while unrelated jobs stay flat; name which jobs moved and which did not. per_job.jobs_compared, jobs_increased, and jobs_decreased count only jobs with enough runs on both sides.job_mix_shift of 0.3 or more means the set of jobs running changed at that point. The step may come from which jobs ran, not from a product change. Check per_job and the bucket table's job counts before calling it a regression.at. A real step shows up as a sustained change in nonzero rate or P95 across several buckets, not as one noisy bucket.Place the change between last_run_before and first_run_after. The candidate change window is between. Runs are ordered by start time, not by payload.
Payloads. payload_before → payload_after come from Sippy's release_tag, which is often empty or from a different stream, so prefer transitions[].payloads when it is present. It is read from each sampled run's prowjob.json (RELEASE_IMAGE_INITIAL and RELEASE_IMAGE_LATEST):
newest_target_before and oldest_target_after. With target_separates: true, every after-step run tested a newer payload than every before-step run, so report the change as landing between those two payloads. With false, the ranges overlap: after_on_old_target after-step runs tested a payload no newer than newest_target_before. That is ordering only; it does not show that any before-step run tested the same payload. Conclude that the target payload alone does not explain the step only when after_on_shared_target is above 0 (after-step runs that tested a target payload before-step runs also tested) and those runs show the after-step level (check their seconds and target_payload in trend.runs_file). Otherwise say the payload ordering is mixed and leave the target as a candidate.after_upgrades_by_initial): after-step upgrades are split by whether they started from a payload older than the estimated step payload (pre_step) or from it or later (post_step), with n, P50, and max. If pre_step is high and post_step is near the old level, the step depends on the payload upgraded from: upgrades that cross the change are disrupted, and upgrades that start after it recover. Say so; it means same-minor upgrade jobs will recover by themselves while jobs that upgrade from an older minor (5.0 → 5.1) will not. version_pairs gives the same comparison by initial and target minor version, before and after the step.fetch_failed and no_payload count runs whose prowjob.json could not be read or names no payload (jobs not started by the release controller). If none of the sampled runs had a payload, fall back to the Sippy payload range and say it is unverified.Never claim that a run did or did not include a change without its payload pair.
The script's shape (none, step, multiple, or gradual) is a heuristic. Confirm it against the buckets:
step: one credible transition.
multiple: two or more credible transitions. Report each one. The latest increase is usually what a current alert is about, but say if an earlier one explains more.
gradual: a sustained drift (trend_rho of 0.3 or more) with no clean step. Say there is no single transition to compare around.
none: no credible transition in the window. If an alert fired anyway, the likely reasons are:
compare_release) and happened before this window, orSay which the data supports, offer a longer window if the current one is under 90 days, and offer the compare_release control (Step 5) when the series names one.
Read trend.onset.status:
in_window: disruption rose from a near-zero baseline (nonzero rate ≤ 10%) at at. Give the date, the payload range, and the before and after nonzero rates.before_window: disruption was already present in the earliest runs. Never report the window's first day as the onset. Say it started before the window, and offer a longer --days if the window is under 90 days. At 90 days, or if a caveat says Sippy returned nothing earlier, say the public data does not reach back far enough, and offer the compare_release control (Step 5): it shows whether the previous release has the same level now. If onset.recurrence is set, disruption dropped to near zero inside the window and rose again at recurrence.at: report that as a recurrence with its date and payload range, not as the onset.sporadic: occasional disruption throughout, with no sustained start. Say there is no onset to point at.none: no disruption on these backends in the window.unknown: no run had usable disruption data, so the window says nothing about onset. Do not report this as "no disruption". Give the caveats that explain why: disruption data missing, the disruption API unreachable, or every run excluded for liveness disruption.Write a short answer to the user's question first: when, how confident, and what limits it. Then include:
payloads when present), before → after nonzero rate, P50, and P95, and its strength. Link last_run_before.url and first_run_after.url inline.trend.caveats, in plain words. Do not drop any. If trend.degraded is true, say so in the first paragraph of the answer, not only in the caveats.Do not guess at causes. This skill establishes when. Explaining why takes the other disruption skills: disruption-find-runs picks before/after cohorts around the transition, disruption-analyze-run analyzes them, and disruption-compare-cohorts says what differs.
End the turn with a checkpoint block, so a person or an orchestrating persona can choose the next step:
```disruption-checkpoint
stage: trend
state_file: <path to investigation.json>
summary: <one line: shape, the transition or onset with its change window, confidence>
next:
- compare runs before and after <at> (disruption-find-runs cohorts-around, then disruption-analyze-run)
- analyze just the suggested pairs around <at> (disruption-analyze-run with transitions[].handoff.download_runs)
- pick a different transition or date
- widen the window (--days <N>, at most 90)
- rerun later to fill runs lost to the disruption API (only when trend.degraded)
- no credible transition: analyze the currently disrupted runs (disruption-find-runs sample-disrupted with the same alert, dashboard URL, or series fields)
- compare with <compare_release> over the same window (disruption-trend --control release-<compare_release> --release <compare_release>; when the onset is before the window or there is no transition, and series.compare_release is set)
```
What each next option means:
disruption-find-runs with purpose cohorts-around and this state file builds larger before/after cohorts (5 per side by default) from the same per-run records. This is the regression path.disruption-analyze-run the runs in transitions[].handoff.download_runs (or the Prow URLs in handoff.prow_urls), unchanged. They are up to three before/after pairs (handoff.pairs), each from one job, nearest the step, with at most one run per launch batch, and with runs that show the change preferred (representative: true). handoff.download_runs is the same runs as job:build_id pairs for download_timelines.py --runs. Do not filter the runs file by hand. If a pair is marked not representative, or there are no pairs (no job ran on both sides), say so and pick runs from trend.runs_file for the jobs that moved in the per-job table.disruption-find-runs (purpose sample-disrupted) the same input this skill got: the alert text or dashboard URL, or, when the request named the series directly, the release, exact backend names, and any variant fields (platform, upgrade type, architecture, topology, network). It auto-selects representative disrupted runs from that window. Do not offer this when every disruption fetch failed (trend.runs.fetch_failed equals trend.runs.scanned): it queries the same API, so offer only to rerun after the rate limit clears.compare_release: a control series (Step 5) for the previous release the alert compares against.List only the next options that fit the result. Then stop and wait for the user's choice, unless the request said to run without pausing (--auto, or "just run it"). In that case, record the default you chose and why, then continue:
disruption-find-runs takes --transition N).none, analyze the currently disrupted runs, unless every disruption fetch failed: then stop and say to rerun after the rate limit clears (up to an hour).A control is the same series with one thing changed, run to test an explanation:
platform-<name>): is the cause specific to this platform? Asked for at the disruption-compare-cohorts or disruption-change-suspects checkpoint.release-<compare_release>): does the release the alert compares against show the same disruption now? Offered at this skill's checkpoint when the onset is before the window or there is no transition.Run the script with the same input as the investigated series, the one changed field, the same --days, the investigation's state file, and --control <name>:
python3 "<skill-dir>/disruption_series.py" \
--alert-file ".work/disruption-analysis/<id>/alert.txt" --platform gcp --days 30 \
--control platform-gcp --state-file ".work/disruption-analysis/<id>/investigation.json"
Use --release <compare_release> instead of --platform for the release control, and the same --grafana-url or explicit fields when there is no alert. With --control, the script records the control under controls.<name> and its runs in control-<name>-runs.json. It leaves the investigated series and trend unchanged. After the usual table it prints the control's runs in the 7 days before and after each of the investigated series' transitions (at_investigated_transitions), with the days the control window actually covers on each side (before_days, after_days) and the runs excluded as lost, liveness-unreliable, or unmeasured on the backends (before_excluded, after_excluded). A transition within 7 days of either end of the control window has a short side. complete: false (printed as INCOMPLETE) means a side is short or excluded more than 3% of its runs.
Judge it:
complete, a platform-specific cause is supported but not shown: it still needs a mechanism in the runs. If the control has few runs, or the comparison is not complete, it settles nothing; say which side is short or lost runs. Rerunning later recovers lost runs; a short after side fills in only as new runs arrive. Different platforms run different job mixes, so compare against the control's own before level, never its raw seconds against the investigated series.compare_release is at a similar level over the same window, the alert's regression is not visible in the current data: it predates the window, or the alert's baseline is from an older period. If compare_release is clearly lower now, the gap is real and current, even without a transition in the window; say the onset is before the window and that the cause stays unresolved.A control spends Sippy disruption requests from the same shared budget (25 per hour), so run one only when it answers an open question. End with the checkpoint (stage: control), with the control's verdict in summary and the investigation's previous next options.
--days or dropping a filter.master_nodes_updated matched nothing: report the warning. Do not rerun without the filter unless the user agrees.--rate-limit-wait seconds in total, then gives up on the remaining runs and continues. Those runs are counted in trend.runs.fetch_failed and in their own caveat with the run count, date range, and affected buckets. They are not in the "no disruption data" caveat. trend.data_loss has the details. When more than 3% of the window's runs, or of either side of a transition, are lost, trend.degraded (and transitions[].degraded) is true and the table prints a DEGRADED: line. Then:
unknown.prowjob.json cannot be fetched for some runs: a caveat gives the count for each transition. The payload findings use the remaining runs. If no sampled run had a payload, a caveat says the transition cannot be placed by payload; use the Sippy payload range and call it unverified.disruption plugin.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 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-compare-cohortsnpx claudepluginhub openshift-eng/ai-helpers --plugin disruptionOther plugins' skills for the same job