pilot-fleet-conformance
Use when Pilot (or another acceptance-judge tool) is rendering a FLEET-WIDE CONFORMANCE VERDICT across multiple clusters / namespaces / a ConfigHub View. Natural phrasings: "Pilot, give me the fleet verdict for prod", "is the payments fleet conformant against `git-argo`?", "render the conformance report Pilot can attach to the compliance ticket", "what does Pilot say across all 12 clusters?", "per-cluster PASS/WATCH/ASK/BLOCK rolled up to a fleet verdict". Pilot consumes cub-scout's `compare three-way --view` + per-resource `compare source-truth --strategy` + `fleet outliers --view`, optionally persisting per-resource receipts via `receipt verify --save`, then synthesizes a fleet-level verdict. Differs from `audit-fleet-conformance` which is the OPERATOR-DRIVEN audit loop; this skill is the JUDGE-DRIVEN companion (Pilot reading the same surfaces but framing the output as a verdict, not a checklist). Do NOT load for: a single-resource pre-deploy gate (use pilot-cd-gate), real-time event-driven response (use pilot-watch-alert-response), or any mutating action.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 14
- Forks
- 1
01 前言 Front Matter
- name
- pilot-fleet-conformance
- phase
- cross-cutting
- description
- Use when Pilot (or another acceptance-judge tool) is rendering a FLEET-WIDE CONFORMANCE VERDICT across multiple clusters / namespaces / a ConfigHub View. Natural phrasings: "Pilot, give me the fleet verdict for prod", "is the payments fleet conformant against `git-argo`?", "render the conformance report Pilot can attach to the compliance ticket", "what does Pilot say across all 12 clusters?", "per-cluster PASS/WATCH/ASK/BLOCK rolled up to a fleet verdict". Pilot consumes cub-scout's `compare three-way --view` + per-resource `compare source-truth --strategy` + `fleet outliers --view`, optionally persisting per-resource receipts via `receipt verify --save`, then synthesizes a fleet-level verdict. Differs from `audit-fleet-conformance` which is the OPERATOR-DRIVEN audit loop; this skill is the JUDGE-DRIVEN companion (Pilot reading the same surfaces but framing the output as a verdict, not a checklist). Do NOT load for: a single-resource pre-deploy gate (use pilot-cd-gate), real-time event-driven response (use pilot-watch-alert-response), or any mutating action.
- allowed-tools
- Bash(./cub-scout compare three-way *) Bash(cub-scout compare three-way *) Bash(cub scout compare three-way *) Bash(./cub-scout compare source-truth *) Bash(cub-scout compare source-truth *) Bash(cub scout compare source-truth *) Bash(./cub-scout fleet outliers *) Bash(cub-scout fleet outliers *) Bash(cub scout fleet outliers *) Bash(./cub-scout views resolve *) Bash(cub-scout views resolve *) Bash(cub scout views resolve *) Bash(./cub-scout views project *) Bash(cub-scout views project *) Bash(cub scout views project *) Bash(./cub-scout receipt verify *) Bash(cub-scout receipt verify *) Bash(cub scout receipt verify *) Bash(./cub-scout receipt list *) Bash(cub-scout receipt list *) Bash(cub scout receipt list *) Bash(./cub-scout receipt show *) Bash(cub-scout receipt show *) Bash(cub scout receipt show *) Bash(./cub-scout receipt validate *) Bash(cub-scout receipt validate *) Bash(cub scout receipt validate *) Bash(./cub-scout map list *) Bash(./cub-scout map workloads *) Bash(./cub-scout map orphans *) Bash(cub-scout map list *) Bash(cub-scout map workloads *) Bash(cub-scout map orphans *) Bash(cub scout map list *) Bash(cub scout map workloads *) Bash(cub scout map orphans *) Bash(./cub-scout scan *) Bash(cub-scout scan *) Bash(cub scout scan *) Bash(./cub-scout summary list *) Bash(cub-scout summary list *) Bash(cub scout summary list *) Bash(kubectl get *) Bash(cub space list *) Bash(cub unit get *) Bash(cub unit list *) Bash(cub link get *) Bash(cub link list *) Bash(cub view get *) Bash(cub view list *) Bash(cub unit-event list *) Bash(cub resource list *) Bash(cub release list *) Bash(cub changeset list *) Bash(cub view list)
02 资源文件 1
- 参考文档agents/openai.yaml143 B
03 SKILL.md 正文
pilot-fleet-conformance
The fleet-wide conformance scenario from Pilot's side. Pilot is asked for a verdict across a fleet — multiple clusters, multiple namespaces, or a ConfigHub View scope — and synthesizes a single fleet-level PASS / WATCH / ASK / BLOCK from per-resource cub-scout evidence.
This is the judge-driven companion to audit-fleet-conformance (the operator-driven audit loop). Same cub-scout verbs feed both; the difference is framing: an operator runs an audit to find what's wrong; Pilot renders a verdict that downstream consumers (compliance dashboards, governance tickets, release boards) act on.
When to use
Explicit phrasings:
- "Pilot, give me the fleet verdict for prod"
- "Is the payments fleet conformant against
git-argo?" - "Render the conformance report Pilot can attach to the compliance ticket"
- "What does Pilot say across all 12 clusters?"
- "Per-cluster PASS/WATCH/ASK/BLOCK rolled up to a fleet verdict"
- "Fleet conformance check on Hub View
monthly-spend-by-team" - "Which clusters are out of conformance with their declared strategy?"
Implicit intents:
- The user is operating across many resources — namespace, View, or full fleet
- The output needs to be a single verdict with structured drill-down, not a per-resource checklist
- The judgment is strategy-anchored — the user has declared what the source of truth should be
- The result feeds a dashboard / ticket / compliance flow, not an interactive triage
Do not load for
- A single-resource pre-deploy gate —
pilot-cd-gate - An operator-driven audit checklist (same verbs, different framing) —
audit-fleet-conformance - A real-time event-driven fleet response (Pilot subscribes to a watch stream) —
pilot-watch-alert-response - A postmortem evidence assembly —
pilot-incident-evidence - A drift classification per resource —
pilot-patch-and-drift - Anything that mutates the fleet. Pilot's mutation path is
cub/ Argo / Flux, never cub-scout.
The Pilot ↔ cub-scout fleet loop
compliance dashboard / release board / governance ticket
│
▼
Pilot (acceptance judge)
│ "render the fleet verdict for view:monthly-spend-by-team"
│
├──► cub-scout views resolve <url-or-uuid> # confirm scope
│
├──► cub-scout fleet outliers --view <uuid> # cross-cluster outliers
│
├──► cub-scout compare three-way --view <uuid> # per-resource DRY/WET/LIVE
│ --format json
│
├──► for each resource in scope:
│ cub-scout compare source-truth <r> --strategy <s>
│ --format json # per-resource verdict
│
└──► (optional, for audit attachment)
for each resource in scope:
cub-scout receipt verify <r> --strategy <s>
--save # fingerprinted artifact
cub-scout receipt list --format json # the artifact inventory
│
▼
Pilot's fleet verdict = max-severity over per-resource verdicts
│
▼
downstream consumer reads the verdict
│ PASS → conformant fleet, no action needed
│ WATCH → conformant with caveats; attach receipts; review at next sync
│ ASK → human-needed; the per-resource ASKs surface proof gaps
│ BLOCK → halt promotion / release; quarantine the divergent resources
└────────────────────────────────────────────────────
Scope sources
Pilot's fleet verdict needs a defined scope. cub-scout exposes three scope shapes:
| Scope | Verb path | Use when |
|---|---|---|
| View | views resolve <url-or-uuid> → --view <uuid> on the audit verbs |
The team declared the scope in ConfigHub (preferred for governance) |
| Namespace | --scope namespace/<ns> |
One namespace's workloads |
| Cluster | --scope cluster |
Entire kubeconfig context |
| Multi-cluster | fleet outliers --view <uuid> |
Cross-cluster comparison against a View baseline (connected mode only) |
Views are declared via cub view create (out of cub-scout's scope — cub operation). cub-scout reads them via views resolve. If the team doesn't have a View, Pilot can still render a fleet verdict over a namespace or cluster scope; the scope is just less semantically anchored.
Verdict synthesis (per-resource → fleet)
Pilot's synthesis policy is max-severity by default:
| Per-resource verdicts | Fleet verdict |
|---|---|
| All PASS | PASS |
| Some WATCH, rest PASS | WATCH |
| Some ASK, rest PASS/WATCH | ASK (humans needed for the proof gaps) |
| Any BLOCK | BLOCK (one divergent resource halts the fleet verdict) |
fleet outliers adds a cross-cluster dimension: if all per-cluster resource counts match the View baseline, the fleet is outlier-free; if one cluster diverges, Pilot's verdict downgrades to at least WATCH and may escalate to BLOCK depending on the missing resource's role.
This skill does NOT prescribe the synthesis policy beyond max-severity — Pilot may want a different aggregation (majority, weighted by criticality). The cub-scout side is verdict-producing per resource; the fleet roll-up is Pilot's call.
Step-by-step
Step 1 — resolve the scope
$ cub-scout views resolve https://hub.confighub.com/views/payments-prod-conformance
View: payments-prod-conformance
scope: cluster
columns: [team, service, replicas, source_truth_strategy]
resolved at: 2026-05-22T10:30:00Z
If no View applies, fall back to a namespace scope; the rest of the loop is identical except --scope namespace/<ns> replaces --view <uuid>.
Step 2 — outliers (true fleet shape)
$ cub-scout fleet outliers --view payments-prod-conformance
View: payments-prod-conformance
Clusters: 12
payments-api EXPECTED 3 deploys / cluster prod-euw1: 2 (outlier: missing payments-api-worker)
payments-db EXPECTED 1 deploy / cluster ALL match
payments-cron EXPECTED 4 deploys / cluster staging-use2: 3 (outlier: missing payments-cron-billing)
fleet outliers emits per-row mismatches. Each outlier is at minimum a WATCH for Pilot's fleet verdict (the per-cluster resource count doesn't match the View baseline); it escalates to BLOCK if the missing resource is in the View's critical-set (a separate policy Pilot enforces).
Step 3 — per-resource three-way + source-truth
# Three-way conformance across the View (DRY/WET/LIVE per resource)
$ cub-scout compare three-way --view payments-prod-conformance --format json \
| jq '.summary'
{
"agreement": "partial",
"agreed": 18,
"converging": 1,
"diverged": 3,
"scope": "view:payments-prod-conformance"
}
# Strategy-anchored source-truth per resource
$ for r in $(cub-scout views project --view payments-prod-conformance --format json \
| jq -r '.[] | "\(.kind)/\(.name) -n \(.namespace)"'); do
cub-scout compare source-truth $r --strategy git-argo --format json \
| jq '{resource: "'"$r"'", status: .status, source_truth: .source_truth, proof_gaps: .proof_gaps}'
done
Each per-resource output has status (PASS/WATCH/BLOCK/ASK) + source_truth (AGREED/MISMATCH/INCOMPLETE/BLOCKED/UNKNOWN) + proof_gaps[] (a string array of free-form missing-evidence entries) + safe_next_action (a free-form human-readable next step). Pilot collects these into the synthesis matrix. Field names are snake_case per pkg/agent/source_truth.go:280-287.
Step 4 — persist fleet evidence as receipts (audit-quality)
# Per-resource receipts, saved to the immutable local store
$ for r in $(cub-scout views project --view payments-prod-conformance --format json \
| jq -r '.[] | "\(.kind)/\(.name) -n \(.namespace)"'); do
cub-scout receipt verify $r --strategy git-argo --save
done
# Audit inventory: every fleet receipt with verdict BLOCK or WATCH
$ cub-scout receipt list --format json \
| jq '[.[] | select(.verdict == "BLOCK" or .verdict == "WATCH")]'
The receipt store is immutable (each filename is canonical and O_EXCL-protected; duplicate saves return os.ErrExist and never overwrite). The fleet audit produces a fingerprint-stable evidence pack that can be archived for compliance review.
Worked example
Pilot is asked for the daily fleet verdict on View payments-prod-conformance, strategy git-argo:
$ cub-scout fleet outliers --view payments-prod-conformance
View: payments-prod-conformance
Clusters: 12
payments-api EXPECTED 3 deploys / cluster prod-euw1: 2 (outlier)
payments-cron EXPECTED 4 deploys / cluster staging-use2: 3 (outlier)
$ cub-scout compare three-way --view payments-prod-conformance --format json \
| jq '.summary'
{
"agreement": "partial",
"agreed": 18,
"converging": 1,
"diverged": 3
}
$ # per-resource source-truth (abbreviated)
$ ... 18 PASS, 1 WATCH, 3 BLOCK
Pilot's synthesis:
- 22 resources in scope
- 18 PASS + 1 WATCH + 3 BLOCK per source-truth
- 2 cluster-level outliers (counted as WATCH)
- Max-severity verdict → BLOCK
Pilot's verdict surface to the compliance dashboard:
{
"fleet": "payments-prod",
"view": "payments-prod-conformance",
"strategy": "git-argo",
"verdict": "BLOCK",
"rollup": {
"PASS": 18,
"WATCH": 1,
"ASK": 0,
"BLOCK": 3,
"outliers": 2
},
"blockers": [
"Deployment/payments-api in prod-use1 (source_truth=MISMATCH)",
"Deployment/payments-worker in prod-use1 (source_truth=MISMATCH)",
"Deployment/payments-db in prod-euw1 (source_truth=MISMATCH)"
],
"evidence_path": "/path/to/audit/receipts/2026-05-22/",
"next_step": "investigate the 3 BLOCK resources via pilot-patch-and-drift"
}
Downstream consumer (compliance dashboard) reads the verdict, halts promotion, escalates to the team with the per-resource breakdown.
Standalone vs connected
Most of this skill requires connected mode (cub auth login):
compare three-way(DRY layer needs ConfigHub) — connectedcompare source-truth— connected (the contract is meaningless without all 3 surfaces)views resolve/views project— connectedfleet outliers— connected (cross-cluster snapshots live in ConfigHub)receipt verify --strategy <s>— connected (source-truth-pass predicate requires it)
Standalone-mode fleet conformance is narrower:
- Per-resource
compare driftagainst files (no DRY layer) receipt verify --predicate applied-matches-spec(cluster-only)- No View scope; falls back to namespace / cluster scope
Pilot should run cub-scout status in the pipeline preamble; if standalone and the fleet verdict requires --strategy, escalate to ASK with a "connected mode required" message.
CI / dashboard integration
For periodic fleet audits, the verbs are CI-shaped:
# Daily cron — render the fleet verdict, exit non-zero if BLOCK
$ cub-scout compare three-way --view payments-prod-conformance --fail-on warning
# exit 2 if any resource in the View has a hard mismatch
For receipts-attached audits (preferred for compliance):
# Per-resource receipt save + collect into audit branch
$ ./fleet-audit.sh > audit-results.txt
$ cub-scout receipt list --format json > audit-receipts.json
$ git add audit-receipts.json && git commit -m "fleet audit $(date -u +%F)"
Pilot's typical batch shape: run per-resource receipt verify --strategy <s> --save overnight; in the morning, walk cub-scout receipt list --format json for the verdict roll-up.
Tool boundary
- Allowed (cub-scout): Compare verbs;
fleet outliers;views resolve/project;receipt verify/show/validate/list;scan;map;summary list. All read-only. - Allowed (cluster):
kubectl get. NOTkubectl apply/edit/patch/delete. - Allowed (ConfigHub):
cub <entity> get / listfor the entities named in allowed-tools. NOTcub * create / update / delete / sync. - Pilot itself may mutate via
cubor controller verbs, but the fleet-conformance verdict is Pilot's evidence-driven judgment; cub-scout never decides on Pilot's behalf.
References
audit-fleet-conformance— operator-side counterpart (same verbs, different framing)scout-compare— the four Compare verbs (cub-scout side)scout-govern— fleet outliers, views, summaryscout-verify— receipt persistenceconfighub-source-truth— strategy-typed verdictpilot-cd-gate— single-resource pre-deploy gate companionpilot-patch-and-drift— drill-down for the BLOCK resources Pilot flagspilot-watch-alert-response— event-driven companion (this skill is periodic-driven)- Views integration:
#391(parent),#414(compare three-way --view),#403(views resolve),#420(views project --with-reality) - Source-truth contract:
#393,#418(Phase 2 strategies)
Constraints
- Connected mode is required for the View + ConfigHub + fleet surfaces.
- The strategy is caller-declared per resource (or uniform across the View when the team declares fleet-wide policy). cub-scout never infers it.
- Synthesis policy (max-severity, majority, weighted, etc.) is Pilot's choice. cub-scout provides per-resource verdicts; the roll-up shape is Pilot-side.
fleet outliersrequires the View to be declared with cluster scope (cub view create --scope cluster). Namespace-scoped Views can't be cross-clustered.- Per-resource receipts in a fleet audit can be high-volume. The local receipt store handles large-N writes (each filename is canonical so collisions are predictable), but downstream consumers should expect
receipt listto return many entries.
04 同仓库更多 Skills
triage-unhealthy-workload
Use when the user is responding to a broken Kubernetes workload UNDER TIME PRESSURE — pager-going-off, CI-red, "prod is down" framing. Natural phrasing: "deploy/api is CrashLoopBackOff, what now?", "the rollout is stuck, help", "this pod won't start", "pager fired on payments", "everything is red in argocd", "what should I check first?", "give me a triage plan for this workload". Composes doctor → explain → trace into a tight ~30-second loop the operator can run in a pager-acknowledged context. Do NOT load for: a planned investigation without urgency (use scout-diagnose directly), a drift question (use investigate-drift), or anything mutating (cub-scout never mutates — route to kubectl with the user driving).
scout-verify
Use when the user wants a TYPED, FINGERPRINTED, IMMUTABLE evidence artifact about a Kubernetes resource — the Verify verb group of cub-scout (the receipt capability shipped in #446). Natural phrasing: "produce a receipt that this is in compliance", "give me an attestation that the cluster matches Git", "I need a verifiable record for the audit trail", "build a receipt verifying no manual edits since deploy", "verify deploy/api against source-truth and save the artifact", "validate this receipt has not been tampered with", "show me what receipts we have", "is this receipt tampered with?", "attach evidence to my CI gate". Load whenever intent is receipt / attestation / evidence-artifact / tamper-evident-record / verified-record / audit-trail / postmortem-evidence / acceptance-judge-input. Do NOT load for: a live comparison without a persisted artifact (use scout-compare), interpreting a single field's provenance (use scout-attribute), or actually applying a fix (cub-scout never mutates — route to cub / argocd / kubectl with the user driving).
scout-observe
Use when the user wants to SEE what is running in a Kubernetes cluster, who owns it, and how it is structured — the read-only Observe verb group of cub-scout. Natural phrasing: "what is running in my cluster?", "give me a map of resources", "who owns this Deployment?", "trace this back to its source", "show me the ownership tree", "scan this cluster for risk", "dump the cluster as JSON", "stream cluster events", "run cub-scout as a bot", "what is the connection status?", "is this cluster healthy?". Load when intent is observe / inventory / map / show / list / trace / scan / dump / stream / bot / health-check over a Kubernetes cluster. Do NOT load for: explaining WHY something is broken (use scout-diagnose), comparing cluster state to intended state (use scout-compare), provenance of individual field values (use scout-attribute), or any action that mutates the cluster (cub-scout never mutates — route to cub or kubectl with the user driving).
scout-mcp
Use when the user wants to expose cub-scout to an AI agent over MCP, wants a deterministic AI-ready snapshot of cluster context, or wants cub-scout running as a read-only event bot — the Integrate verb group. Natural phrasing: "start the MCP server", "expose cub-scout to Claude / Codex / my agent", "give me an AI-ready context pack of this cluster", "set up the MCP gateway", "what MCP tools does cub-scout expose?", "run cub-scout as a bot", "produce JSON context for an LLM to reason about this cluster". Load whenever intent is mcp / mcp-gateway / mcp-serve / context-pack / bot / agent-context / ai-snapshot / llm-context / model-context-protocol. Do NOT load for: actually running a non-integrate verb (those are scout-observe / scout-diagnose / scout-compare / scout-attribute / scout-ingest / scout-govern / scout-verify), or `cub` MCP integration (that's a separate tool surface).
scout-ingest
Use when the user wants to ADOPT existing Kubernetes / GitOps workload structure into ConfigHub after observing the live cluster — the adoption/import verb group of cub-scout. Natural phrasing: "discover workloads in this cluster and propose ConfigHub units", "show me the import proposal before I apply", "import this Argo Application set", "bring my Flux Kustomizations into ConfigHub", "preview what would land in ConfigHub if I imported this repo", "parse my git repo as a ConfigHub import bundle", "import a cluster aggregator", "what would --git-path produce for this repo?". Load whenever intent is adopt / import / ingest / preview / propose / parse-repo / discovery / aggregator / bring-into-confighub / what-would-confighub-see. Do NOT load for: questions about who changed a resource, whether it was edited by hand or drifted (use scout-attribute or investigate-drift); reading an exported `kubectl get -o yaml` dump to answer a question about the cluster (that is not an import); basic live-cluster inventory (use scout-observe), troubleshooting (use scout-diagnose), comparing live state to ConfigHub (use scout-compare), or the actual write to ConfigHub via `cub variant upload` (that is `cub`, not cub-scout — route to cub skills). Important: `cub-scout import apply` IS the mutating write into ConfigHub — this skill teaches the read-only preview path and explicitly refuses to invoke `import apply` itself.
scout-govern
Use when the user wants to consume CONNECTED ConfigHub governance signals from cub-scout — the Govern verb group. Natural phrasing: "show me the ChangeSet history for this unit", "what is the blast radius if I change this unit?", "which clusters in my fleet are outliers?", "show me yesterday's connected summary", "render this view across the fleet", "audit who changed this", "where did the last apply come from?", "list ConfigHub bundles I have", "show me the catalog of past snapshots". Load whenever intent is history / impact / blast-radius / fleet-outliers / summary / view / audit / bundle / catalog / connected-context. Do NOT load for: live cluster comparison (use scout-compare), receipts (use scout-verify), inventory of running pods (use scout-observe), or any mutation via cub. Most of this skill requires `cub auth login` — say so upfront.