<< All versions

Skill v1.0.4

currentAutomated scan100/100
openshift-eng/ai-helpers/payload-results-yaml

17 files

──Details
PublishedOctober 31, 2026 at 12:08 AM
Content Hashsha256:e280f2db6ea585d4...
Git SHA36d895619dd2
Bump Typepatch
Compare with v1.0.3
──Files
Files (1 file, 14.4 KB)
SKILL.md14.4 KBactive
SKILL.md · 271 lines · 14.4 KB

name: payload-results-yaml description: State management for agentic payload triage actions — you must use this skill whenever reading or writing the payload results YAML file metadata: version: "1.0.4"


Payload Results YAML

This skill defines the schema for the payload-results-{tag}.yaml file and provides the operations for reading and writing it. All skills in the payload triage pipeline must use this skill when interacting with the results file.

When to Use This Skill

Use this skill whenever you need to:

  • Create a new results file (during payload-analysis)
  • Read candidates or their actions (during payload-revert, payload-experiment)
  • Append an action to a candidate (during stage-payload-reverts, payload-experimental-reverts)
  • Update an action's status (during payload-experimental-reverts Phase 2)

File Location

The file is always written to and read from the current working directory:

payload-results-{tag}.yaml

Where {tag} is the full payload tag with colons and slashes replaced by hyphens (e.g., payload-results-4.22.0-0.nightly-2026-02-25-152806.yaml).

Schema

yaml
metadata:
payload_tag: "4.22.0-0.nightly-2026-02-25-152806"
version: "4.22"
stream: "nightly"
architecture: "amd64"
release_controller_url: "https://amd64.ocp.releases.ci.openshift.org/..."
analyzed_at: "2026-02-26T10:30:00Z"
force_accept_recommended: false
failing_jobs:
- job_name: "periodic-ci-...-e2e-aws-ovn"
prow_url: "https://prow.ci.openshift.org/..."
is_aggregated: false
underlying_job_name: ""
failure_type: "test"
root_cause_summary: "OVN gateway mode selection regression"
streak_length: 5
originating_payload_tag: "4.22.0-0.nightly-2026-02-20-150000"
failure_pattern: "F F F F F S S"
- job_name: "periodic-ci-...-e2e-gcp-ovn-techpreview"
prow_url: "https://prow.ci.openshift.org/..."
is_aggregated: false
underlying_job_name: ""
failure_type: "infra"
root_cause_summary: "Step pod unschedulable on build04: DiskPressure, 0/N nodes available"
cluster_profile: "gcp"
streak_length: 1
originating_payload_tag: "4.22.0-0.nightly-2026-02-25-152806"
failure_pattern: "F"
ship_status:
component_slug: build-farm
sub_component_slug: build04
cluster_profile: "gcp"
window_start: "2026-02-25T14:00:00Z"
window_end: "2026-02-25T15:30:00Z"
observed_health: healthy
existing_outage_id: null
queried_at: "2026-02-25T16:00:00Z"
action: pending
outage_id: null
dashboard_url: null
reason: ""
candidates:
- type: "pr"
pr_url: "https://github.com/openshift/cno/pull/2037"
pr_number: 2037
component: "cluster-network-operator"
title: "Fix OVN gateway mode selection"
confidence_score: 95
rationale: "temporal match + component match + error references code changed"
failing_jobs:
- "periodic-ci-...-e2e-aws-ovn"
actions:
- type: "revert"
status: "staged"
revert_pr_url: "https://github.com/openshift/cno/pull/2038"
revert_pr_state: "open"
result_summary: "Revert PR opened and payload jobs triggered"
jira_key: "TRT-1234"
jira_url: "https://redhat.atlassian.net/browse/TRT-1234"
payload_jobs:
- command: "/payload-job periodic-ci-...-e2e-aws-ovn"
test_url: "https://pr-payload-tests.ci.openshift.org/runs/ci/..."
test_prow_url: "https://prow.ci.openshift.org/view/gs/..."
- type: "rhcos_rpm"
rhcos_tag: "rhel-coreos-10"
rhcos_name: "Red Hat Enterprise Linux CoreOS 10.2"
package: "systemd"
old_version: "257-23.el10"
new_version: "257-23.el10_2.2"
confidence_score: 70
changelog_evidence: "systemd 257-23.el10_2.2: fix boot ordering race with local-fs-pre.target"
rationale: "systemd update correlates with variant-isolated boot timeout in RHCOS 10 jobs"
failing_jobs:
- "periodic-ci-...-e2e-metal-ipi-ovn-ipv4"
actions: []

metadata

Written once by payload-analysis. Never modified by downstream skills.

FieldTypeDescription
payload_tagstringFull payload tag being analyzed
versionstringOCP version (e.g., "4.22")
streamstring"nightly" or "ci"
architecturestring"amd64", "arm64", "multi", etc.
release_controller_urlstringURL to the payload on the release controller
analyzed_atstringISO 8601 timestamp of when the analysis was performed
force_accept_recommendedbooltrue when all failures are temporary infrastructure issues, no more than 2 blocking jobs failed, and no payload has been accepted in the stream for 18+ hours. Determined by payload-analysis Step 6.4.

failing_jobs[]

All failed blocking jobs in the payload. Written once by payload-analysis. Never modified by downstream skills. This is the authoritative list of failures — every failed blocking job appears here regardless of whether a candidate PR has been identified.

FieldTypeDescription
job_namestringFull periodic job name
prow_urlstringProw URL for the failing run
is_aggregatedboolWhether this is an aggregated job
underlying_job_namestringFor aggregated jobs, the underlying periodic job name; "" otherwise
failure_typestring"test", "install", "upgrade", or "infra"
root_cause_summarystringBrief description of the failure mode
streak_lengthintConsecutive payloads this job has been failing
originating_payload_tagstringThe payload where this job first started failing in the current streak
failure_patternstringPass/fail history across the lookback window, most recent first (e.g., "F F F S F F")
cluster_profilestringOptional. Exact CI cluster profile name (for example azure4, hypershift-aws, hypershift-aks). Required on infra jobs. Copy it from the job's cluster_profile; do not invent a name from the cloud vendor or the job name.
ship_statusobjectOptional. SHIP Status observation for failure_type: infra jobs (and when infra is suspected). Omit the key entirely when SHIP read tools (get_outages_during / list_components) are not in the tool list. Do not write action: skipped as a stand-in for missing tools.

failing_jobs[].ship_status (optional)

Recorded by payload-analysis steps 6.5 (read) and 6.6 (write, only when record_payload_infra_outage exists). Downstream skills must not invent slugs.

FieldTypeDescription
component_slugstringSHIP Status component from the root-cause map (e.g. downstream-ci, boskos, boskos-hypershift, prow, build-farm). build-farm only when that CI cluster itself failed, never as a default from spec.cluster.
sub_component_slugstringSHIP Status sub-component (e.g. ci-config, gcp, build04)
cluster_profilestringOptional. Same exact cluster profile as on the job. Required on every infra ship_status observation.
window_startstringRFC3339 UTC start of the job's Prow run (same bound passed to get_outages_during)
window_endstringRFC3339 UTC end of the job's Prow run (job completion, or --as-of if missing)
observed_healthstringHealth overlapping the job run window from get_outages_during (healthy if none; otherwise the overlapping outage severity). Never live "now" status from get_infrastructure_status.
existing_outage_idint or nullOutage id overlapping the job window, or null if none
queried_atstringRFC3339 UTC timestamp of the read
actionstringRequired when ship_status is present. pending \created \linked \skipped
outage_idint or nullFilled after a Chai-hosted write
dashboard_urlstring or nullOutage URL after create/link
reasonstringSkip/error detail (unmapped, already_recorded, …)

candidates[]

Each entry represents a PR or an RHCOS RPM change identified as a candidate cause of payload failures. Top-level candidate fields are written once by payload-analysis and are read-only to downstream skills. The actions sub-array is mutable (see below).

Candidates reference failing jobs by job_name via the failing_jobs string array, linking back to the top-level failing_jobs[] entries.

Common fields (required on every candidate, regardless of type):

FieldTypeDescription
typestring"pr" or "rhcos_rpm" — determines which type-specific fields below apply
confidence_scoreint0-100 confidence that this candidate caused the failures
rationalestringExplanation of why this candidate is suspected, with itemized rubric signals
failing_jobsarray of stringsJob names from the top-level failing_jobs[] that this candidate is blamed for
actionsarrayActions taken on this candidate (see below). rhcos_rpm candidates cannot be reverted, so this is normally [] for them

`type: "pr"` fields:

FieldTypeDescription
pr_urlstringGitHub PR URL
pr_numberintPR number
componentstringOCP component name
titlestringPR title

`type: "rhcos_rpm"` fields:

FieldTypeDescription
rhcos_tagstringRHCOS image stream tag (rhel-coreos or rhel-coreos-10)
rhcos_namestringHuman-readable RHCOS version name
packagestringRPM package name (or the logical source package when subpackages are deduped)
old_versionstringPrevious RPM version
new_versionstringNew RPM version
changelog_evidencestringThe specific changelog entry or entries relating to the failure, or "none"

RHCOS RPM candidates cannot be reverted through the normal PR process — downstream skills that stage or filter reverts (e.g. stage-payload-reverts, /ci:payload-revert) MUST exclude candidates with type: "rhcos_rpm", regardless of confidence_score.

candidates[].actions[]

Actions taken on a candidate. New entries are appended by downstream skills. Existing entries may be updated in place (e.g., status, result_summary, payload_jobs) by the Update Action Status operation. An empty array means no action has been taken.

FieldTypeDescription
typestring"revert" or "experiment"
statusstringSee status values below
revert_pr_urlstringURL of the revert PR (draft or real)
revert_pr_statestring"draft", "open", "merged", "closed"
result_summarystringBrief description of the outcome
jira_keystringTRT JIRA key (e.g., "TRT-1234"), or ""
jira_urlstringTRT JIRA URL, or ""
payload_jobsarrayPayload validation jobs triggered (see below)

Status values:

StatusMeaning
"open"Pre-existing revert PR found open during analysis
"merged"Pre-existing revert PR already merged
"staged"Revert PR and JIRA created, payload jobs triggered (used by type: "revert")
"pending"Experiment dispatched, payload jobs running, results not yet collected
"passed"Payload jobs passed with the revert — candidate confirmed as cause
"failed"Payload jobs still fail with the revert — candidate is innocent
"inconclusive"Mixed or unfinished results
"skipped_conflict"Revert has merge conflicts, skipped
"deferred"Jobs skipped due to triggering limits, or candidate exceeded max experiment count

candidates[].actions[].payload_jobs[]

Payload validation jobs triggered against the revert PR.

FieldTypeDescription
commandstringThe payload command posted on the PR (e.g., /payload-job periodic-ci-...-e2e-aws-ovn)
test_urlstringpr-payload-tests URL for the run
test_prow_urlstringProw URL for the resulting test run

Operations

Create (used by payload-analysis)

Write a new payload-results-{tag}.yaml with metadata, failing_jobs, and candidates populated. All failed blocking jobs are recorded in failing_jobs. Every candidate carries a type ("pr" or "rhcos_rpm"). Candidates with no pre-existing revert start with actions: []. If a pre-existing revert PR is discovered during analysis for a type: "pr" candidate, append an action with type: "revert" and status: "open" or "merged".

Read Candidates (used by payload-revert, payload-experiment)

Read the file. Filter candidates by type: "pr" and confidence_score range — rhcos_rpm candidates cannot be reverted or experimented on and MUST be excluded. Exclude candidates that already have an action with status of "open" or "merged" (pre-existing revert). Return matching candidates. Use the top-level failing_jobs[] to look up full job details for each candidate's failing_jobs references.

Append Action (used by stage-payload-reverts, payload-experimental-reverts)

For a given type: "pr" candidate (matched by pr_url), append a new entry to its actions array. Do not modify existing action entries.

Update Action Status (used by payload-experimental-reverts Phase 2)

For a given candidate's action entry (matched by pr_url and type), update its status, result_summary, revert_pr_state, jira_key, jira_url, and payload_jobs fields in place.

Resume Detection (used by payload-experiment)

Scan all candidates. If any candidate has an action with type: "experiment" and status: "pending", the file has in-progress experiments awaiting Phase 2 collection. Phase 2 processes only pending experiments — candidates with other statuses are left unchanged.

See Also

  • Validator: run python3 plugins/ci/skills/payload-results-yaml/scripts/validate.py <payload-results-file> to check a generated YAML file against this schema.
  • Related Skill: payload-analysis — creates the results file
  • Related Skill: stage-payload-reverts — appends type: "revert" actions
  • Related Skill: payload-experimental-reverts — appends type: "experiment" actions, updates status in Phase 2
  • Related Command: /ci:payload-revert — stages reverts for high-confidence candidates
  • Related Command: /ci:payload-experiment — experimentally tests medium-confidence candidates
← v1.0.3All versions