payload-revert

payload-revert is a command for Claude Code from openshift-eng/ai-helpers. It costs 12 tokens per session (818 once invoked), scanned A, original, Apache-2.0.

A command that stages reverts for high-confidence changes suspected of causing failures in an OpenShift release payload. A payload is a group of changes tested together, and a revert undoes a change.

In plain words
What is it for?
Use it after payload analysis to create tracking JIRA bugs, open revert pull requests, and start validation jobs for qualifying candidates.
Why use it?
It turns analysis results into the next triage actions for candidates that meet the specified confidence threshold and have not already been reverted.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the ci plugin — 34 skills, 21 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/payload-revert
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install ci, the plugin that ships this one along with the rest of its 34 skills, 21 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payload-revert

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/payload-revert.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/payload-revert)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/payload-revert"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/payload-revert.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00818
Opus 5 $0.00006 $0.00409
Sonnet 5 $0.00002 $0.00164
Haiku 4.5 $0.00001 $0.00082

Measured 6d ago against content hash 581a292ceed2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

payload-revert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/ci/commands/payload-revert.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

ci:payload-revert

Synopsis

/ci:payload-revert <payload-tag>

Description

The ci:payload-revert command reads the payload results YAML produced by /ci:payload-analysis and stages reverts for all high-confidence candidates (confidence score >= 85) that have not already been reverted.

For each qualifying candidate, it creates a TRT JIRA bug, opens a revert PR, and triggers payload validation jobs using the stage-payload-reverts skill.

This command is one of three composable stages in the payload triage pipeline:

  1. /ci:payload-analysis — produces the payload results YAML
  2. /ci:payload-revert — stages reverts for HIGH confidence candidates (this command)
  3. /ci:payload-experiment — opens draft revert PRs for MEDIUM confidence candidates

Job Triggering Limits

  • Non-aggregated jobs: Up to 5 total across all candidates
  • Aggregated jobs: Up to 1 total

When the number of failing jobs across all candidates exceeds these limits, prioritize jobs from higher-confidence candidates first.

Implementation

  1. Parse the payload tag from the argument. Extract version, stream, and architecture from the tag (see payload-analysis Step 1 for parsing rules).

  2. Read the payload results YAML using the payload-results-yaml skill: Look for payload-results-{tag}.yaml in the current working directory. If not found, print an error and exit:

    Error: Payload results YAML not found for {payload_tag}.
    Run `/ci:payload-analysis {payload_tag}` first to generate it.
    
  3. Filter candidates: Select type: "pr" candidates with confidence_score >= 85. Exclude any that already have an action with status of "open" or "merged" (pre-existing revert). type: "rhcos_rpm" candidates are never reverted — they cannot be pulled out of a payload like a PR; the payload-results-yaml skill's Read Candidates operation excludes them for this reason.

  4. Dispatch to stage-payload-reverts skill: Pass all qualifying candidates with their context (results YAML path, payload tag, version, stream, architecture, release controller URL, and failing jobs). The skill updates the results YAML and HTML report in place. The trigger-payload-job skill validates that aggregated jobs have underlying_job_name set and skips them with an error if not.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 73 lines · 12 tokens per session scan A 581a292ceed2

Subscribe to this mod's changes

payload-revert is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 818 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.