/cub-scout:pilot-rollback-decisionfrom cub-scout
Decides when and which revision to roll back to after an incident or broken release. Consumes ConfigHub ChangeSet history, blast-radius impact, per-candidate evidence, and receipt verification to pick a rollback target with a safety verdict.
Ships in cub-scout. 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.
None: SKILL.md is the whole skill.
The rollback-decision scenario from Pilot's side. After an incident, a broken release, or a failed verification, Pilot is asked: should we roll back, and to which revision? Pilot consumes cub-scout's history + impact + per-candidate-revision evidence and picks the rollback target with a safety verdict.
cub-scout is the witness; Pilot is the judge. ConfigHub (via cub) is the authority. cub-scout never picks a target or executes the rollback — it produces structured evidence per candidate revision, and Pilot decides. The mutation (controller sync to the chosen revision) is Pilot's surface, not cub-scout's.
Explicit phrasings:
<sha>"Implicit intents:
pilot-cd-gatepilot-watch-alert-responsepilot-patch-and-driftpilot-incident-evidence. That skill captures the incident's evidence; this skill picks where to go next.pilot-promotion-gatepilot-release-verification broken release at HEAD = <bad-sha>
│
▼
Pilot (acceptance judge)
│ "should we roll back, and to which revision?"
│
├──► cub-scout history <r> -n <ns> --since 7d --format json
│ # ConfigHub ChangeSet timeline — candidate prior SHAs
│
├──► cub-scout impact <r> --format json
│ # blast-radius of the current state + each candidate
│
├──► For each candidate revision (call it <candidate-sha>):
│ cub-scout receipt verify <r> -n <ns> \
│ --strategy <s> \
│ --at-commit <candidate-sha> \
│ --out candidate-<sha>.receipt.json
│ # fingerprinted, per-candidate verdict
│ cub-scout compare three-way <r> -n <ns> --format json
│ # what fields would change between current and candidate
│
└──► (optional) chain the candidates:
cub-scout receipt verify <r> -n <ns> \
--input-attestation candidate-<sha1>.receipt.json \
--input-attestation candidate-<sha2>.receipt.json \
--strategy <s> \
--at-commit <chosen-sha> \
--save # the chosen-target receipt
│
▼
Pilot's rollback verdict, by candidate:
│
│ candidate.verdict == PASS → safe candidate
│ candidate.verdict == WATCH → safe but with caveats; check proof_gaps
│ candidate.verdict == BLOCK → unsafe target (would re-introduce a divergence)
│ candidate.verdict == INCONCLUSIVE → can't evaluate; pick another candidate
│
▼
Pilot picks the first PASS candidate (most recent prior SHA), records
the chosen-target receipt, and routes to Pilot's mutation path
(controller sync to <chosen-sha>; implementation lives outside cub-scout).
└────────────────────────────────────────────────────
Pilot's default policy is most-recent-first: walk the ChangeSet timeline backwards from the current HEAD, evaluate each candidate revision with --at-commit, pick the first one that produces a PASS receipt for the declared strategy.
This is not "roll back to the last green build" — the last green build may have been green for the wrong reasons (cached evidence, fewer resources in scope, transient luck). cub-scout's per-candidate receipt verify --at-commit <sha> evaluates the candidate against the current cluster state with the current strategy. Pilot's verdict pack carries that exact pairing.
Alternative policies (Pilot-side; cub-scout doesn't enforce):
| Policy | When to use |
|---|---|
| Most-recent PASS | Default; the smallest possible rollback to a verifiable state |
| Most-recent PASS with no INCOMPLETE proof gaps | Stricter; useful when source-truth evidence quality matters |
| Last release-tagged SHA | When the team distinguishes "release-tagged" SHAs from intermediate commits |
| Operator-named SHA | Pilot's interface to a human decision — the operator passes --at-commit <sha> directly |
Pilot's policy choice is its business; cub-scout's job is to make each candidate's safety legible via fingerprinted receipts.
$ cub-scout history deploy/payments-api -n prod --since 7d --format json
[
{"timestamp": "2026-05-22T14:00:00Z", "actor": "ci-bot", "change": "image: v1.4.2 → v1.4.3", "changeset": "CS-4821", "sha": "9e7d12fa"},
{"timestamp": "2026-05-22T09:30:00Z", "actor": "ci-bot", "change": "replicas: 2 → 3", "changeset": "CS-4818", "sha": "8b6c11e9"},
{"timestamp": "2026-05-21T17:15:00Z", "actor": "ci-bot", "change": "image: v1.4.1 → v1.4.2", "changeset": "CS-4815", "sha": "7a5b10d8"}
]
The ChangeSet timeline lists candidate prior SHAs in reverse-chronological order. Pilot's candidate set is [8b6c11e9, 7a5b10d8, …] (skip the current HEAD 9e7d12fa which is presumed broken). Connected mode required (cub auth login) for history.
--at-commit$ cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo \
--at-commit 8b6c11e9 \
--save \
--out candidate-8b6c11e9.receipt.json
# Pilot reads receipt.predicate.verdict directly
--at-commit <sha> overrides the controller-resolved revision in the spec anchor; the resulting receipt asserts "the live state at this moment matches the candidate revision per the declared strategy." A PASS verdict means rolling back to this SHA would NOT introduce drift; a BLOCK means it would.
Repeat per candidate. Each receipt is fingerprint-stable; Pilot's verdict pack carries the full set.
$ cub-scout impact deploy/payments-api --format json
impact is connected-mode only. It returns the blast-radius preview (downstream units, dependent workloads). Pilot weights candidates: a candidate that would change many downstream units is higher-risk than one that changes few — even if both verify PASS individually.
Once Pilot picks <chosen-sha>, the chosen-target receipt references each candidate evaluated:
$ cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo \
--at-commit <chosen-sha> \
--input-attestation candidate-<sha1>.receipt.json \
--input-attestation candidate-<sha2>.receipt.json \
--save \
--out rollback-target.receipt.json
The chosen-target receipt's inputAttestations[] records every candidate Pilot considered — even the ones it rejected. The chain shape is why Pilot picked this target, not just which target Pilot picked. Audit later can walk the chain and confirm the decision process.
Pilot's verdict pack:
{
"decision_type": "rollback",
"resource": "Deployment/payments-api in prod",
"current_sha": "9e7d12fa",
"candidates_evaluated": [
{"sha": "8b6c11e9", "verdict": "PASS", "receipt": "candidate-8b6c11e9.receipt.json"},
{"sha": "7a5b10d8", "verdict": "PASS", "receipt": "candidate-7a5b10d8.receipt.json"}
],
"chosen_sha": "8b6c11e9",
"chosen_receipt": "rollback-target.receipt.json",
"rationale": "most-recent PASS; smallest possible rollback to a verifiable state",
"blast_radius": "1 unit affected (payments-api); no downstream Link impact",
"next_step": "route to Pilot's controller-sync path with target=8b6c11e9; cub-scout does not execute the sync"
}
The downstream consumer (release rollback approver, change ticket) reads the verdict + chosen receipt. Pilot's mutation path (the controller sync to 8b6c11e9) is out of scope for cub-scout — typically a cub / Argo / Flux operation in Pilot's stack.
Production deploy/payments-api at HEAD 9e7d12fa is failing health checks. Pilot is asked to decide a rollback target.
# Step 1 — enumerate candidates
$ cub-scout history deploy/payments-api -n prod --since 24h --format json \
| jq '.[].sha'
"9e7d12fa" # current; broken
"8b6c11e9" # 4h ago
"7a5b10d8" # 21h ago
# Step 2 — verify each candidate
$ for sha in 8b6c11e9 7a5b10d8; do
cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo \
--at-commit $sha \
--save \
--out candidate-$sha.receipt.json
done
# Step 3 — read verdicts
$ for sha in 8b6c11e9 7a5b10d8; do
jq -r '.predicate.verdict' candidate-$sha.receipt.json
done
PASS # 8b6c11e9 → safe candidate
PASS # 7a5b10d8 → also safe (older)
# Step 4 — chain candidates into chosen-target receipt
$ cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo \
--at-commit 8b6c11e9 \
--input-attestation candidate-8b6c11e9.receipt.json \
--input-attestation candidate-7a5b10d8.receipt.json \
--save \
--out rollback-target.receipt.json
# Step 5 — blast radius
$ cub-scout impact deploy/payments-api --format json | jq '.affected_units | length'
1
Pilot's verdict: roll back to 8b6c11e9 (most-recent PASS), blast radius 1 unit, evidence chain attached. Routes to Pilot's controller-sync path with target SHA; cub-scout's role ends at the verdict.
Most of this skill requires connected mode (cub auth login):
history — connected (ChangeSet timeline lives in ConfigHub)impact — connected (blast-radius needs the Link graph)receipt verify --strategy source-truth-pass — connected--predicate applied-matches-spec, but without the ChangeSet timeline, Pilot has to supply candidate SHAs from somewhere else (release tags, the operator's memory, git log).Run cub-scout status upfront; if standalone and history is needed, Pilot's policy should escalate to ASK ("operator must supply candidate SHAs").
history, impact, Compare verbs (read-only), receipt verify / show / validate / list, explain, trace. All read-only.kubectl get/describe. NOT kubectl apply / edit / patch / delete / rollout undo.cub <entity> get / list for the entities named in allowed-tools. NOT cub * create / update / delete.argocd app get, flux get. NOT argocd app sync, flux reconcile.scout-govern — history, impact (cub-scout side)scout-verify — receipts; --at-commit for revision-pinned evaluation; --input-attestation for chained candidatesscout-compare — Compare verbspilot-cd-gate — pre-deploy companionpilot-incident-evidence — captures what happened; this skill picks where to go nextpilot-promotion-gate — variant-to-variant safety (forward direction)pilot-release-verification — post-deploy validation#448 (parent), #463 (chained-half shipped)cub-scout history reference in commands.md--at-commit <sha> is the only knob for pinning the candidate-evaluation to a specific revision. It overrides the controller-resolved revision in the spec anchor; the rest of the predicate evaluation (attribution, source-truth derivation) runs against the current cluster state.history requires connected mode AND the resource being ConfigHub-tracked. Resources not in ConfigHub's ChangeSet timeline can't be candidate-walked through history; Pilot has to supply candidate SHAs another way.inputAttestations[] is not ordered — RFC 8785 canonical JSON treats arrays as ordered, so Pilot should choose a deterministic order (e.g., evaluation order, or oldest-to-newest) for reproducibility.impact blast-radius is a snapshot — it reflects the Link graph at evaluation time, which may shift after the rollback. Pilot's policy should treat it as a hint, not a guarantee.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (confighub/cub-scout) — no native marketplace selected
npx claudepluginhub p/confighub-cub-scout35 skills in this plugin
/ai-agent-readonly-contextUse when the user is WIRING CUB-SCOUT INTO AN AI AGENT (Claude / Codex / a custom LLM workflow) and needs the patterns for read-only context, MCP gateway tools, deterministic context snapshots, and the prompt-shape that makes cub-scout's output reliable for LLMs. Natural phrasing: "set up cub-scout as a Claude tool", "expose cub-scout to my agent over MCP", "give the LLM a deterministic snapshot of this cluster", "what cub-scout patterns work well for AI agents?", "MCP config for cub-scout in Claude Code", "best practices for wiring cub-scout into Codex / Cursor / Continue", "AI-ready cluster context", "prompt template for cub-scout output". Composes `mcp serve` + `context-pack` + `--presentation ai` + the structured JSON contracts. Do NOT load for: a specific verb invocation (load the corresponding scout-* skill), authoring an MCP server in general (this is about wiring CUB-SCOUT specifically), or any mutating workflow (cub-scout never mutates; the read-only triad is the whole point of this skill)./audit-fleet-conformanceUse when the user wants to verify CONFORMANCE ACROSS A FLEET — multiple namespaces, multiple clusters, or a defined View scope. Natural phrasing: "which clusters are conformant?", "audit fleet conformance against this View", "show me all outliers in prod fleet", "compare every service against its source-truth strategy", "scope-wide three-way check for drift", "fleet-level compliance audit", "which deployments drift across the cluster?". Composes `compare three-way --view` + `compare source-truth` + `fleet outliers` for multi-resource / multi-cluster checks. Requires connected mode for the View + ConfigHub surfaces. Do NOT load for: a single resource (use investigate-drift), a triage (use triage-unhealthy-workload), incident evidence for one event (use operator-incident-evidence), or anything mutating./confighub-source-truthUse when the user wants a STRATEGY-TYPED, PILOT-ACCEPTANCE-SHAPED VERDICT about whether ConfigHub / controller / runtime agree under a declared delivery strategy — the `compare source-truth` workflow with the explicit `--strategy <name>` requirement. Natural phrasing: "give me a source-truth verdict for deploy/api", "verify under git-argo strategy that ConfigHub matches the cluster", "run the source-truth contract for upstream Pilot acceptance", "compare source-truth confighub-oci-flux strategy across the namespace", "produce strategy-relative correctness evidence", "show me where the strategy declaration is being violated". Composes `compare source-truth --strategy <s>` + the source-truth evidence contract + (optionally) `receipt verify --strategy <s>` for a fingerprinted version. Requires CONNECTED MODE. Do NOT load for: a single-resource live drift question without a declared strategy (use investigate-drift), a triage (use triage-unhealthy-workload), or a fleet-wide audit that doesn't need strategy framing (use audit-fleet-conformance). cub-scout NEVER infers a strategy — this skill enforces that boundary./cub-scoutUse when working in the cub-scout repo or when answering capability-assistant questions ("can cub-scout do X?", "should I use cub-scout or kubectl here?", "how does cub-scout differ from cub?"). This is the umbrella router — it points you at the verb-grouped scenario skills under `skills/scout-*/` and the workflow / observer / reference skills planned for batches 2–5. For a specific verb-group task (observe / diagnose / compare / attribute / adopt existing config / govern / integrate / verify) load the corresponding `scout-*` skill directly./investigate-driftUse when the user wants to compare live and desired state and inspect available manager and source evidence. Natural phrasing: "why is this Deployment different from the git manifest?", "which recognized manager is recorded for this path?", "controller-drift or interactive-manager evidence?", "compare three-way + attribution for deploy/api". Composes `compare three-way` + `compare drift` + the attribution layer (`cause` / `managerHint` / `gitSource` / `bindingSource`). Do NOT promise who changed the value or which manager wrote last: path-level manager evidence is not time-ordered, and resource-level `explain` evidence is not field-specific. Do NOT load for: a triage where the workload won't start (use triage-unhealthy-workload), pure inventory (use scout-observe), generating a fingerprinted evidence artifact (use scout-verify and the no-manual-edits-since predicate), or any mutating fix (cub-scout never mutates)./migrate-from-kubectlUse when the user is MIGRATING from ad-hoc `kubectl apply` toward GitOps (Argo / Flux / ConfigHub) — and needs to find the manual edits, decide what to do with each (revert / port to git / accept as canonical), and plan the transition. Natural phrasing: "find all the manual edits in this cluster", "we have years of kubectl-apply, help us move to GitOps", "which resources have been hand-edited?", "audit drift caused by humans not controllers", "port my cluster state to git", "show me everything kubectl-* has touched". Composes attribution layer (`cause: manual-edit`) + `map orphans` (resources without a controller owner) + `scan` (risk classification) + `snapshot` / `import --git-path` preview once a repo skeleton exists. Read-only throughout — the migration itself is user-driven. Do NOT load for: real-time triage (use triage-unhealthy-workload), single-resource drift question (use investigate-drift), a fleet conformance audit (use audit-fleet-conformance), or any mutating action.Other plugins' skills for the same job