/cub-scout:pilot-promotion-gatefrom cub-scout
Gates variant-to-variant promotions (e.g., staging to prod, canary 5% to 50%) by consuming cub-scout's three-way compare, bindingSource graph, and source-truth compare per variant to render a cross-variant safety verdict with field-level diff reasons.
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 variant-to-variant promotion-safety scenario from Pilot's side. A pipeline (or a human) asks: is variant B safe to promote from variant A? — where A and B are two intentional configurations (staging → prod; canary 5% → 50%; blue → green; cell-A → cell-B). Pilot consumes cub-scout's evidence from both variants and renders a cross-variant safety verdict.
This is not pilot-cd-gate — that's the single-resource pre-deploy gate. Promotion is the cross-variant safety check: variant A has been running successfully; variant B is the proposed next state; the diff between them needs structured evidence before promotion fires.
Explicit phrasings:
Implicit intents:
pilot-cd-gatepilot-rollback-decisionpilot-release-verificationpilot-watch-alert-responsepilot-fleet-conformancepilot-compliance-audit release pipeline: variant A is running; variant B is the proposed promotion
│
▼
Pilot (acceptance judge)
│ "is B safe to promote from A?"
│
├──► For variant A (the current state):
│ cub-scout compare three-way <r> -n <ns-A> --format json
│ cub-scout compare source-truth <r> -n <ns-A> --strategy <s> --format json
│ cub-scout receipt verify <r> -n <ns-A> --strategy <s> \
│ --out variant-A.receipt.json
│
├──► For variant B (the proposed state):
│ cub-scout compare three-way <r> -n <ns-B> --format json
│ cub-scout compare source-truth <r> -n <ns-B> --strategy <s> --format json
│ cub-scout receipt verify <r> -n <ns-B> --strategy <s> \
│ --out variant-B.receipt.json
│
├──► Cross-variant binding diff:
│ cub-scout compare three-way <r> -n <ns-A> --format json \
│ | jq '.fieldMismatches[].bindingSource'
│ cub-scout compare three-way <r> -n <ns-B> --format json \
│ | jq '.fieldMismatches[].bindingSource'
│ # Pilot compares the bindingSource graphs field-by-field
│
└──► Cross-variant chained receipt:
cub-scout receipt verify <r> -n <ns-B> --strategy <s> \
--input-attestation variant-A.receipt.json \
--save \
--out promotion-target.receipt.json
│
▼
Pilot's cross-variant verdict:
│ A=PASS AND B=PASS AND diff is clean → PROMOTION PASS
│ A=PASS AND B=PASS but bindingSource → PROMOTION WATCH (caveats)
│ shifts in unexpected ways
│ A=PASS AND B=WATCH → PROMOTION ASK (B isn't ready)
│ A=PASS AND B=BLOCK → PROMOTION BLOCK (don't promote)
│ A=BLOCK → PROMOTION BLOCK (fix A first)
│
▼
release pipeline reads the verdict
│ PASS → fire Pilot's promotion mutation path
│ WATCH → fire with caveats attached to the release ticket
│ ASK → halt; the on-call decides
│ BLOCK → halt; alert; do not promote
└────────────────────────────────────────────────────
This skill handles three common variant shapes:
| Variant shape | Variant A | Variant B | cub-scout reads |
|---|---|---|---|
| Environment promotion | deploy/api -n staging | deploy/api -n prod | Same kind/name, different namespaces |
| Canary progression | deploy/api -n prod (HPA limit 5%) | deploy/api -n prod (HPA limit 50%) | Same resource, different Argo-Rollouts step |
| Blue-green flip | deploy/api-blue -n prod | deploy/api-green -n prod | Different names, same role; Pilot compares both against the shared upstream Unit |
| Cell rollout | deploy/api -n prod-use1 | deploy/api -n prod-euw1 | Same resource in different cluster cells |
For each shape, Pilot's cross-variant call is structurally the same: read both variants' three-way + source-truth + bindingSource graphs; compute the diff; render a verdict. cub-scout doesn't model variants as a first-class concept — it reads the kind/name/namespace pair Pilot passes. The variant pairing is Pilot's job.
bindingSource matters for promotionThe bindingSource per field (connected-mode only; from #435 C2) records which ConfigHub Link supplied this field's value. Cross-variant safety often hinges on whether the same upstream Link feeds both variants:
null → ASK; B might be unmanaged or the Link wasn't promoted alongsideThis is the load-bearing reason promotion-gate is distinct from pilot-cd-gate: a single-variant gate doesn't see the cross-variant Link-graph shift.
# Variant A (current)
$ cub-scout compare three-way deploy/api -n staging --format json > variant-A-3way.json
$ cub-scout compare source-truth deploy/api -n staging --strategy git-argo --format json > variant-A-st.json
$ cub-scout receipt verify deploy/api -n staging --strategy git-argo \
--save \
--out variant-A.receipt.json
# Variant B (proposed)
$ cub-scout compare three-way deploy/api -n prod --format json > variant-B-3way.json
$ cub-scout compare source-truth deploy/api -n prod --strategy git-argo --format json > variant-B-st.json
$ cub-scout receipt verify deploy/api -n prod --strategy git-argo \
--save \
--out variant-B.receipt.json
# Pilot's cross-variant diff — fieldMismatches by path
$ jq -s '
{
A_fields: .[0].fieldMismatches | map({path, value: .compareThreeWay.live, bindingSource}),
B_fields: .[1].fieldMismatches | map({path, value: .compareThreeWay.live, bindingSource})
}
' variant-A-3way.json variant-B-3way.json
Pilot reads:
bindingSource shifted (cross-variant Link-graph drift)The last category is the most important and the hardest to surface — only the cross-variant comparison can see it.
$ cub-scout receipt verify deploy/api -n prod \
--strategy git-argo \
--input-attestation variant-A.receipt.json \
--save \
--out promotion-target.receipt.json
The promotion-target receipt's inputAttestations[] records variant A's receipt — the audit trail says "promotion B was gated against the prior variant A's evidence." If A's receipt is later tampered with, the chain construction (VerifiedAttestationRef API-boundary verify) refuses.
| Variant A verdict | Variant B verdict | bindingSource diff | Pilot promotion verdict |
|---|---|---|---|
| PASS | PASS | none | PASS |
| PASS | PASS | shifted but explicable | WATCH |
| PASS | PASS | shifted without rationale | ASK (human decides) |
| PASS | WATCH | — | ASK (B isn't ready) |
| PASS | BLOCK | — | BLOCK |
| PASS | INCONCLUSIVE | — | ASK (B can't be evaluated) |
| WATCH / BLOCK | any | — | BLOCK (fix A first; don't promote a sick variant) |
| INCONCLUSIVE | any | — | ASK (A's evidence isn't reliable for the gate) |
The decision is cross-variant — both variants' verdicts and the diff between them all feed the promotion verdict. cub-scout doesn't synthesize this; Pilot does.
Promotion: deploy/payments-api from staging to prod. Declared strategy: git-argo.
# Per-variant receipts
$ cub-scout receipt verify deploy/payments-api -n staging \
--strategy git-argo --save --out staging.receipt.json
# verdict: PASS
$ cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo --save --out prod.receipt.json
# verdict: WATCH; proof_gaps lists git-source-anchor missing for one container
# Cross-variant chained receipt
$ cub-scout receipt verify deploy/payments-api -n prod \
--strategy git-argo \
--input-attestation staging.receipt.json \
--save \
--out promotion-target.receipt.json
Pilot's verdict synthesis:
Pilot's verdict pack:
{
"decision_type": "promotion",
"from_variant": "staging",
"to_variant": "prod",
"from_receipt": "staging.receipt.json",
"to_receipt": "prod.receipt.json",
"chained_target": "promotion-target.receipt.json",
"from_verdict": "PASS",
"to_verdict": "WATCH",
"binding_source_diff": "none",
"promotion_verdict": "ASK",
"rationale": "B (prod) has a WATCH verdict with proof_gaps; on-call should decide whether to proceed",
"next_step": "route to on-call; promotion mutation lives in Pilot's stack, not cub-scout"
}
Connected mode strongly recommended for promotion-gate:
compare source-truth --strategy — connected (per-variant strategy verdict)bindingSource field on each mismatch — connected (Link-graph data)impact for blast-radius — connectedStandalone mode degrades:
--predicate applied-matches-specimpact, views resolve / project, receipt verify / show / validate / list, explain, trace. All read-only.kubectl get/describe. NOT kubectl apply / edit / patch / delete.cub <entity> get / list for the entities named in allowed-tools. NOT any mutating cub verb.argocd app get, flux get. NOT argocd app sync, flux reconcile.scout-compare — Compare verbs (cub-scout side)scout-attribute — bindingSource semanticsscout-verify — chained receipts via --input-attestationpilot-cd-gate — single-resource pre-deploy companionpilot-rollback-decision — backward directionpilot-release-verification — post-promotion validationpilot-fleet-conformance — fleet-wide variant audit (related but different framing)#435 (C1+C2 bindingSource)#448 (parent), #463 (chained-half shipped)bindingSource requires connected mode AND both variants being ConfigHub-linked. Variants without Link coverage produce null bindingSource — the cross-variant Link-graph diff isn't surfaced. Pilot should escalate to ASK in that case.inputAttestations[] typically references variant A's receipt. If multi-step promotion (A → A' → B), Pilot may chain multiple prior receipts. The chain ordering is Pilot's choice — cub-scout treats inputAttestations[] as a set (RFC 8785 canonical JSON orders the array, but the meaning is set-shaped).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