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-14
- 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
当用户需要在时间压力下应对出现故障的 Kubernetes 工作负载时使用——例如寻呼告警响起、CI 飘红、“生产环境挂了”的场景。自然表述包括:“deploy/api 出现 CrashLoopBackOff,该怎么办?”“发布卡住了,帮帮我”“这个 pod 起不来”“支付服务触发了寻呼告警”“argocd 里全红了”“我应该先检查什么?”“给我一份针对这个工作负载的分诊方案”。它将 doctor → explain → trace 组合成一个紧凑的约 30 秒循环,运维人员可在已确认寻呼告警的上下文中执行。不要用于:没有紧迫性的计划性排查(直接使用 scout-diagnose)、漂移相关问题(使用 investigate-drift),或任何变更操作(cub-scout 从不做变更——应由用户主导,转由 kubectl 处理)。
资源证据收据生成与校验
scout-verify
当用户需要针对某个 Kubernetes 资源生成带类型、带指纹、不可篡改(TYPED、FINGERPRINTED、IMMUTABLE)的证据工件时使用——即 cub-scout 的 Verify 动词组(在 #446 中发布的收据能力)。自然表述包括:“出具一份证明此资源合规的收据”“给我一份证明集群与 Git 一致的证明”“我需要一份可用于审计跟踪的可验证记录”“生成一份收据,证明自部署以来没有人工改动”“对照事实源(source-truth)校验 deploy/api 并保存工件”“验证此收据未被篡改”“展示我们有哪些收据”“此收据是否被篡改过?”“把证据附加到我的 CI 关卡”。当意图涉及 receipt / attestation / evidence-artifact / tamper-evident-record / verified-record / audit-trail / postmortem-evidence / acceptance-judge-input 时均应加载。不要用于:不落盘工件的实时比对(使用 scout-compare)、解读单个字段的来源出处(使用 scout-attribute),或真正实施修复(cub-scout 从不做变更——应由用户主导,转由 cub / argocd / kubectl 处理)。
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.
ConfigHub 治理信号查询
scout-govern
当用户希望从 cub-scout 获取已连接的(CONNECTED)ConfigHub 治理信号时使用该技能 —— Govern(治理)动词组。自然表述:"给我看这个单元的 ChangeSet 历史"、"如果我修改这个单元,影响范围(blast radius)有多大?"、"我的机群中哪些集群是异常值?"、"给我看昨天的连接摘要"、"在整个机群中呈现这个视图"、"审计谁修改了这个"、"上一次应用来自哪里?"、"列出我拥有的 ConfigHub bundle"、"给我看过往快照的目录"。当意图为历史 / 影响 / 影响范围 / 机群异常 / 摘要 / 视图 / 审计 / bundle / 目录 / 连接上下文时加载。不要用于:实时集群比较(使用 scout-compare)、回执(使用 scout-verify)、正在运行的 Pod 清单(使用 scout-observe),或通过 cub 进行的任何修改。该技能的大部分功能需要 `cub auth login` —— 请提前说明。