/cub-scout:audit-fleet-conformancefrom cub-scout
Verifies conformance across multiple namespaces, clusters, or a defined View scope. Composes three-way comparison, source-truth checks, and fleet outlier detection for multi-resource/multi-cluster audits.
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 fleet-wide conformance loop. Multiple resources, possibly multiple clusters, need a structured "are these in agreement with their declared source of truth?" verdict. Composes compare three-way --view + compare source-truth --strategy + fleet outliers (+ optionally receipt verify --save for evidence persistence).
Requires connected mode (cub auth login) for the View, source-truth, and fleet surfaces.
Explicit phrasings:
monthly-spend-by-team?"namespace/payments"Implicit intents:
investigate-drifttriage-unhealthy-workloadoperator-incident-evidenceconfighub-source-truth zooms in on that--view <uuid-or-url>), a namespace (--scope namespace/<ns>), a cluster (--scope cluster), or the whole fleet via fleet outliers.compare three-way --view for DRY/WET/LIVE conformance per resource. compare source-truth --strategy <s> for strategy-typed verdict per resource. fleet outliers --view for cross-cluster comparison against a View baseline.--format json for machine-readable per-resource verdicts; ASCII for human review. The summary.agreement field on three-way output (agreed / converging / diverged / partial) is the headline.receipt verify <kind>/<name> --strategy <s> --save per resource if the audit needs fingerprinted evidence. Useful for periodic compliance reports.A View is the canonical scope for fleet-wide audits. Views are declared in ConfigHub (cub view ...) and resolved by cub-scout from a UUID or a hub.confighub.com URL:
$ cub-scout views resolve https://hub.confighub.com/views/monthly-spend-by-team
View: monthly-spend-by-team
scope: cluster
columns: [team, service, replicas, monthly_cost_estimate]
resolved at: 2026-05-22T10:30:00Z
If no View applies, fall back to a namespace or cluster scope:
$ cub-scout compare three-way --scope namespace/payments --format json | jq '.summary.agreement'
"diverged"
$ cub-scout compare three-way --view monthly-spend-by-team --format json
The output structures per-resource agreement (DRY/WET/LIVE) + rolls up to a scope-level summary.agreement field with four states:
| State | Meaning |
|---|---|
agreed | All resources in scope have DRY=WET=LIVE for every field. The fleet matches its intent. |
converging | Most resources agree; a small subset is in active reconciliation (controller-drift causes). The fleet is recovering. |
diverged | At least one resource has a hard mismatch with no controller-drift cause. Investigate. |
partial | Mixed; the rollup couldn't pick a single label. Read the per-resource detail. |
Per-resource fieldMismatches[] carries the same attribution evidence as the single-resource case (see investigate-drift).
When the audit is strategy-anchored (e.g., "all of payments should be Argo-reading-from-Git"), iterate compare source-truth per resource with the declared strategy:
$ for d in $(cub-scout map workloads --namespace payments --format json | jq -r '.[] | "\(.kind)/\(.name)"'); do
cub-scout compare source-truth "$d" -n payments --strategy git-argo --format json | jq '{name: "'"$d"'", status: .status, verdict: .source_truth}'
done
Each output is a one-line verdict per resource. The source-truth contract has two separate enums:
status (the four-valued evidence-quality verdict): PASS / WATCH / BLOCK / ASKsource_truth (the five-valued cross-surface agreement): AGREED / MISMATCH / INCOMPLETE / BLOCKED / UNKNOWNINCONCLUSIVE is the receipt-level verdict for receipts that themselves can't be evaluated; it does NOT appear in compare source-truth's own status enum. When you wrap the source-truth result in a cub-scout receipt verify --strategy <s> receipt, ASK status maps to receipt WATCH (per the locked synthesis in docs/proposals/receipts-way-forward.md).
Group the audit matrix by status: PASS / WATCH / BLOCK / ASK. INCOMPLETE on source_truth is recoverable (missing proof gaps); MISMATCH is not.
fleet outliers --view does the multi-cluster comparison. It walks each cluster's snapshot for the View's columns and flags rows where one cluster deviates:
$ cub-scout fleet outliers --view monthly-spend-by-team
View: monthly-spend-by-team
Clusters: 12
payments EXPECTED 3 deploys / cluster prod-euw1: 2 (outlier: missing payments-worker)
checkout EXPECTED 5 deploys / cluster ALL match
search EXPECTED 4 deploys / cluster staging-use2: 3 (outlier: missing search-replica)
Each row names the expectation (EXPECTED) and the offending cluster (outlier). Fleet outliers requires connected mode because the cross-cluster snapshots live in ConfigHub.
If the audit feeds a compliance dashboard or a Pilot acceptance kernel, generate a typed evidence artifact per resource:
$ for d in $(cub-scout map workloads --namespace payments --format json | jq -r '.[] | "\(.kind)/\(.name)"'); do
cub-scout receipt verify "$d" -n payments --strategy git-argo --save
done
$ cub-scout receipt list --format json | jq '[.[] | select(.verdict == "BLOCK")]'
See scout-verify for the receipt surface; the source-truth-pass predicate is the audit-aligned one.
$ cub-scout compare three-way --view monthly-spend-by-team --format json | jq '.summary'
{
"agreement": "partial",
"agreed": 18,
"converging": 1,
"diverged": 3,
"scope": "view:monthly-spend-by-team"
}
$ cub-scout fleet outliers --view monthly-spend-by-team
View: monthly-spend-by-team
Clusters: 12
payments EXPECTED 3 deploys / cluster prod-euw1: 2 (outlier: missing payments-worker)
Reading: 22 resources in the View; 18 conformant, 1 reconciling, 3 truly divergent, 1 multi-cluster outlier (a missing deploy in prod-euw1).
For the three divergent resources, drill into each with compare three-way <kind>/<name> to see the per-field attribution. For the outlier, drill into cub view get monthly-spend-by-team to confirm the expectation and then cub-scout explain the missing resource's cluster context.
Most of this skill requires cub auth login. Specifically:
compare three-way (DRY layer needs ConfigHub)compare source-truth (the contract is meaningless without all three surfaces)views resolvefleet outliersThe compare drift standalone variant works without ConfigHub for file-vs-live diffs, but it's narrower in scope than a fleet audit. Run cub-scout status first to confirm the mode; if standalone, tell the user the audit needs auth.
For periodic compliance checks (e.g., a daily audit job), the verbs are CI-shaped:
# Exit non-zero if any resource in scope is diverged (i.e., gate on conformance)
$ cub-scout compare three-way --view monthly-spend-by-team --fail-on warning
--fail-on warning|info (added in compare three-way) maps the agreement state to exit codes. The flag itself is read-only — it just decides whether to fail the pipeline, not whether to apply a fix.
Receipts are the more durable artifact:
# Save one receipt per workload in scope; commit them to an audit branch
$ ./audit.sh > audit-results.txt
$ cub-scout receipt list --format json > audit-receipts.json
$ git add audit-receipts.json && git commit -m "daily audit $(date -u +%F)"
fleet outliers; views resolve / project; scan (risk-classification overlay); map; summary list (connected snapshot reads); receipt verify --save for evidence persistence.--fail-on flag fails CI; it does not patch. ApplicationSet generation, unit creation, target binding are all cub operations.scout-compare — the four Compare verbsscout-govern — fleet outliers, views resolve, summaryscout-verify — typed audit evidenceconfighub-source-truth — the strategy-typed verdict variant#391 (parent), #414 (compare three-way --view), #403 (views resolve)#393, #418 (Phase 2 strategies)cub view create operation; out of cub-scout scope.receipt verify --save is the suggested persistence path for the audit trail.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)./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.Other plugins' skills for the same job