[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CBNVKFWCQV6PT18GV448VA":3,"skill-same:01M6CBNVKFWCQV6PT18GV448VA":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":63,"linkOnly":64,"markdownContent":65,"markdownBody":66,"frontMatter":67,"refName":69,"commitSha":70,"skillDirectory":71,"forksCount":72,"repositoryHtmlUrl":73,"repositoryHomepageUrl":74,"ownerHtmlUrl":75,"ownerBlogUrl":76,"ownerDescription":77,"updatedAt":78,"install":79,"resources":92},"01M6CBNVKFWCQV6PT18GV448VA","scout-compare","Kubernetes 状态对比与漂移检测","Use when the user wants to compare INTENDED vs ACTUAL Kubernetes state — the Compare verb group of cub-scout. Natural phrasing: \"did this release land?\", \"does the cluster match Git?\", \"is there drift?\", \"compare DRY \u002F WET \u002F LIVE for this unit\", \"what does ConfigHub say should be running here?\", \"give me a source-truth verdict for this resource\", \"did Argo apply what was in the commit?\", \"compare this manifest to live state\". Load whenever intent is compare \u002F drift \u002F sync-status \u002F verify-matching \u002F DRY-WET-LIVE \u002F source-truth \u002F has-this-landed. Do NOT load for: a list of what is running (use scout-observe), interpreting why something is wrong (use scout-diagnose), per-field provenance (use scout-attribute), or actually applying \u002F syncing (cub-scout never mutates — route to cub, argocd, flux, or kubectl with the user driving).","当用户想要比较 Kubernetes 的预期（INTENDED）状态与实际（ACTUAL）状态时使用该技能 —— cub-scout 的 Compare（比较）动词组。自然表述：\"这次发布上线了吗？\"、\"集群与 Git 一致吗？\"、\"是否存在漂移？\"、\"对比该单元的 DRY \u002F WET \u002F LIVE 状态\"、\"ConfigHub 认为这里应该运行什么？\"、\"给我这个资源的真实来源（source-truth）判定\"、\"Argo 是否应用了提交中的内容？\"、\"将此清单与实时状态对比\"。当意图为比较 \u002F 漂移 \u002F 同步状态 \u002F 验证匹配 \u002F DRY-WET-LIVE \u002F 真实来源 \u002F 是否已上线时加载。不要用于：正在运行内容的列表（使用 scout-observe）、解读出错原因（使用 scout-diagnose）、逐字段溯源（使用 scout-attribute），或实际应用 \u002F 同步（cub-scout 从不修改状态 —— 应转由用户驱动 cub、argocd、flux 或 kubectl 执行）。","confighub\u002Fcub-scout","confighub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206140369?v=4","01M6CBJBWD33AFNG4VXMJHSRXD","ConfigHub Inc","01M6CBJC0K0F8CJVFWGRSR0KYC",14,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-compare\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],"compare","scout","scout compare","say","when","unit","dry","app","argo","get","me","drift","route","intent","cub scout","observe","kubernetes","never","use","view","argocd","changeset","Bash","why","verify","provenance","manifest","state","release","diagnose","sync","commit","2026-11-10 10:12:30",false,"---\nname: scout-compare\ndescription: 'Use when the user wants to compare INTENDED vs ACTUAL Kubernetes state — the Compare verb group of cub-scout. Natural phrasing: \"did this release land?\", \"does the cluster match Git?\", \"is there drift?\", \"compare DRY \u002F WET \u002F LIVE for this unit\", \"what does ConfigHub say should be running here?\", \"give me a source-truth verdict for this resource\", \"did Argo apply what was in the commit?\", \"compare this manifest to live state\". Load whenever intent is compare \u002F drift \u002F sync-status \u002F verify-matching \u002F DRY-WET-LIVE \u002F source-truth \u002F has-this-landed. Do NOT load for: a list of what is running (use scout-observe), interpreting why something is wrong (use scout-diagnose), per-field provenance (use scout-attribute), or actually applying \u002F syncing (cub-scout never mutates — route to cub, argocd, flux, or kubectl with the user driving).'\nphase: verify\nallowed-tools: Bash(.\u002Fcub-scout compare three-way *) Bash(cub-scout compare three-way *) Bash(cub scout compare three-way *) Bash(.\u002Fcub-scout compare drift *) Bash(cub-scout compare drift *) Bash(cub scout compare drift *) Bash(.\u002Fcub-scout compare source-truth *) Bash(cub-scout compare source-truth *) Bash(cub scout compare source-truth *) Bash(kubectl get *) Bash(kubectl describe *) 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(argocd app get *) Bash(flux get *)\n---\n\n# scout-compare\n\nThe Compare verb group of cub-scout. Four ways to ask \"does what's running match what was intended?\", with deterministic verdicts and structured evidence.\n\n## When to use\n\nExplicit phrasings:\n\n- \"Did this release land in prod?\"\n- \"Does the cluster match what Git says?\" \u002F \"is the manifest in the file actually deployed?\"\n- \"Is there drift between ConfigHub and the cluster?\"\n- \"Compare DRY \u002F WET \u002F LIVE for unit X\" \u002F \"show me the three-way state\"\n- \"Give me a source-truth verdict for deploy\u002Fapi\"\n- \"Did Argo apply what was in commit abc123?\"\n- \"Compare this YAML file to what's running in prod\"\n- \"Is namespace prod conformant to ConfigHub?\"\n\nImplicit intents:\n\n- The user has *desired state* somewhere (Git, ConfigHub, a local manifest, a debug bundle) and wants to verify it's reflected in the cluster\n- The user wants a *verdict* (PASS \u002F WATCH \u002F BLOCK \u002F INCONCLUSIVE), not just a diff\n- The user is gating a CI step on conformance\n\n## Do not load for\n\n- Pure inventory (\"show me what's running\") — [`scout-observe`](..\u002Fscout-observe\u002FSKILL.md)\n- Interpreting *why* something is wrong (CrashLoop \u002F events \u002F patterns) — [`scout-diagnose`](..\u002Fscout-diagnose\u002FSKILL.md)\n- Per-field provenance (which controller \u002F which git file produced this value) — [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md)\n- Forcing a sync \u002F apply \u002F reconcile — cub-scout cannot. Route to `cub`, `argocd app sync` (with the user driving), `flux reconcile`, or `kubectl apply`\n\n## Standalone vs connected\n\n- **Standalone (cluster + file\u002Fbundle):** `compare drift --file \u003Cyaml>` and `compare --git-path \u003Crepo>` work without ConfigHub. Compares the file or repo against the live cluster.\n- **Connected (cluster + `cub auth login`):** `compare three-way` adds the DRY (ConfigHub intent) layer; `compare source-truth` runs a strategy-relative verdict over DRY \u002F WET \u002F LIVE.\n- **Offline (file or bundle vs file):** `compare` between a manifest file and a debug-bundle snapshot, no cluster needed.\n\n## Tool boundary\n\n- **Allowed (read-only):** all four Compare verbs; `kubectl get\u002Fdescribe`; `cub \u003Centity> get \u002F list` for the entities named in allowed-tools (connected); `argocd app get`, `flux get` (controller-side reads).\n- **Not allowed:** `argocd app sync` *as a mutation*, `flux reconcile`, `kubectl apply\u002Fedit\u002Fpatch\u002Fdelete`, `cub * create\u002Fupdate\u002Fdelete`. The compare commands never apply a fix.\n- **`--fail-on`:** the existing `compare three-way --fail-on info|warning` flag makes the command a CI gate (exit code 2 on violations). It still doesn't mutate — the gate just fails the pipeline.\n\n## The verb menu\n\n| Question | Verb | Notes |\n|---|---|---|\n| \"Compare a manifest file to the cluster\" | `cub-scout compare drift --file \u003Cyaml>` | File-vs-live drift. Works standalone, no ConfigHub. |\n| \"Compare this resource end-to-end\" | `cub-scout compare \u003Ckind>\u002F\u003Cname> -n \u003Cns>` | Single-resource compare. Connected: full DRY\u002FWET\u002FLIVE. Standalone: LIVE only with notes. |\n| \"Compare a scope\" | `cub-scout compare three-way --scope namespace\u002F\u003Cns>` | Multi-resource DRY\u002FWET\u002FLIVE with agreement summary. Requires connected mode for DRY\u002FWET. Supports `--scope`, `--view \u003Cuuid-or-url>`, `--source-path \u003Clocal-checkout>` (stage B back-resolution), `--fail-on`. |\n| \"Strategy-relative verdict\" | `cub-scout compare source-truth \u003Ckind>\u002F\u003Cname> -n \u003Cns> --strategy \u003Cs>` | One of 9 strategies (`confighub-oci-argo`, `confighub-oci-flux`, `git-argo`, `git-flux`, `helm-flux`, `helm-argo`, `kustomize-flux`, `oci-flux`, `oci-argo`). Returns a structured pair `status` ∈ {PASS, WATCH, BLOCK, ASK} + `source_truth` ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. Pilot's acceptance kernel consumes both axes. |\n\nAll four verbs emit `--format json` for agents and the MCP gateway.\n\n## The loop\n\n1. **Identify the desired state.** Where is \"intent\" living? A YAML file? A ConfigHub unit? A git repo? A local checkout? This determines the verb:\n   - File → `compare drift --file`\n   - ConfigHub unit (connected) → `compare three-way`\n   - Strategy-typed (connected) → `compare source-truth --strategy \u003Cs>`\n   - Local git checkout → `compare three-way --source-path \u003Cdir>` (stage B back-resolution, #440)\n2. **Pick the scope.** Single resource (`\u003Ckind>\u002F\u003Cname> -n \u003Cns>`), namespace (`--scope namespace\u002F\u003Cns>`), view (`--view \u003Cuuid-or-url>`), or cluster (`--scope cluster`).\n3. **Invoke.** Use `--format json` if the output is going to an agent or CI; ASCII otherwise.\n4. **Read the verdict + evidence.** For `compare source-truth`: the structured pair `status` ∈ {PASS, WATCH, BLOCK, ASK} + `source_truth` ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. For `compare three-way` \u002F `compare drift`: per-field diffs with attribution evidence (`cause`, `managerHint`, `gitSource`, `bindingSource`) — see [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) for how to read those. `INCONCLUSIVE` is the receipt-level verdict — it shows up only when these results are wrapped into a `cub-scout receipt verify` artifact, not in raw `compare source-truth` output.\n5. **Hand off.** If the verdict is `WATCH` or `BLOCK` and the user wants to *fix* it, refuse to mutate and route them: drift produced by `kubectl edit` (per `cause: manual-edit`) typically goes to the original-author path (commit the change back); drift produced by a controller (`cause: controller-drift`) typically resolves on its own — wait or re-run.\n\n## Worked examples\n\n### A: file vs live drift, standalone\n\nThe primary v1 path. No ConfigHub auth required.\n\n```bash\n$ cub-scout compare drift --file desired.yaml -n prod\nDrift Report\n════════════\n  Cluster: prod-cluster\n  Source:  desired.yaml\n\n  [Config] Configuration Drift\n  └─ [WARNING] Deployment:prod\u002Fapi\n        path: spec.template.spec.containers[name=app].env[name=LOG_LEVEL]\n        desired: info\n        observed: debug\n\nSummary: 1 finding\n```\n\nPair with [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) when you want to know *who* changed `LOG_LEVEL` (controller? human? agent?). cub-scout reads `metadata.managedFields` on the live object to produce that classification — works without ConfigHub.\n\n### B: did Argo land commit abc123? *(connected enrichment)*\n\n```bash\n$ cub-scout compare three-way --scope namespace\u002Fprod --fail-on warning\nThree-Way Compare:\n  Scope: namespace\u002Fprod\n  Resources: 12  Connected: 12  DRY\u002FWET\u002FLIVE: 12  Mismatched: 0\n  Agreement: ✓ AGREED — All 12 resources agree\n  Conformance: PASS (threshold: warning, max: info, 0 issues)\n\nexit 0\n```\n\nCI pipeline can gate on `exit 0`. Mismatch produces exit 2 + a structured `compareFieldMismatch[]` array with per-field `cause` and `managerHint` from the attribution layer (#435). Requires `cub auth login` — adds the DRY (ConfigHub-intended) layer that the standalone case doesn't have.\n\n### C: strategy-relative verdict for Pilot *(connected, strategy-declared)*\n\n```bash\n$ cub-scout compare source-truth Deployment\u002Fapi -n prod --strategy git-argo --format json\n{\n  \"subject\": {\"kind\": \"Deployment\", \"name\": \"api\", \"namespace\": \"prod\"},\n  \"strategy\": \"git-argo\",\n  \"status\": \"PASS\",\n  \"verdict\": \"AGREED\",\n  \"evidence\": {\n    \"git\": {\"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\", \"revision\": \"abc123\"},\n    \"controller\": {\"argocd\": {\"lastSync\": \"abc123\", \"sync\": \"Synced\"}},\n    \"cluster\": {\"resourceVersion\": \"1234567\"}\n  }\n}\n```\n\nPilot's acceptance kernel consumes this JSON directly. The strategy must be declared explicitly — `compare source-truth` does not auto-detect the strategy (Pilot needs the operator's stated assumption, not cub-scout's guess).\n\n## Output evidence\n\n- **`compare three-way` agreement:** `summary.agreement.state` ∈ {`agreed`, `converging`, `diverged`, `partial`}; the canonical \"did the cluster end up matching ConfigHub intent?\" rollup.\n- **`compare source-truth` (two separate enums):**\n  - `status` ∈ {`PASS`, `WATCH`, `BLOCK`, `ASK`} — cub-scout's evidence-quality verdict\n  - `source_truth` ∈ {`AGREED`, `MISMATCH`, `INCOMPLETE`, `BLOCKED`, `UNKNOWN`} — cross-surface agreement under the declared strategy\n  - Status and verdict are **separate axes** — a verdict can be `MISMATCH` while status is `BLOCK` (strategy violation) OR `WATCH` (soft mismatch with proof gaps). See [`references\u002Fsource-truth-strategies.md`](..\u002Freferences\u002Fsource-truth-strategies.md) for the full status×verdict matrix.\n- **Receipt-level verdict** (only when wrapped via `cub-scout receipt verify --strategy \u003Cs>`): `PASS` \u002F `WATCH` \u002F `BLOCK` \u002F `INCONCLUSIVE`. `INCONCLUSIVE` is the receipt-only fourth state; it does NOT appear in raw `compare source-truth` output.\n- **Per-field mismatches** (`compareFieldMismatch[]`) with attribution: `cause`, `managerHint`, `gitSource`, `bindingSource`.\n- **Agreement summary** (three-way): `summary.agreement.state` ∈ {`agreed`, `converging`, `diverged`, `partial`}.\n- **CI exit code:** `--fail-on info|warning` produces exit 2 on violations.\n- **`nextSteps[]`** structured hints — every `actionType` ∈ {`read-only`, `waiting`, `human-decision`}; mutating is rejected at emit.\n\n## References\n\n- Capability map: [`README.md`](..\u002F..\u002FREADME.md#capability-map) § Compare\n- Source-truth contract: #393 (v0.1, 4 strategies); #418 (Phase 2 expansion to 9 strategies)\n- Three-way agreement summary: #371\n- `--view` scope (connected): #391 \u002F #414\n- Stage B back-resolution (`--source-path`): #440\n- Attribution layer (the evidence inside each mismatch): #435 — and [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md)\n\n## Constraints\n\n- `compare source-truth` does not auto-detect the strategy. The strategy is the operator's declared assumption (which authority produced this artifact?) and Pilot needs it stated, not guessed.\n- Standalone mode cannot produce a DRY verdict (no ConfigHub). For pure standalone, prefer `compare drift --file` or `compare --git-path`. Missing connected-mode evidence is recorded explicitly, not silenced.\n- For a *durable, fingerprinted* receipt of the comparison result, use the planned `cub-scout receipt verify` once #446 batch 1 lands. Until then, `--format json` output is the contract — it's stable, but ephemeral.\n- Never advise the user to bypass a `BLOCK` verdict by mutating directly. If the user wants to accept the live state as the new intent, route them to a `cub` skill for governed write-back.\n","# scout-compare\n\nThe Compare verb group of cub-scout. Four ways to ask \"does what's running match what was intended?\", with deterministic verdicts and structured evidence.\n\n## When to use\n\nExplicit phrasings:\n\n- \"Did this release land in prod?\"\n- \"Does the cluster match what Git says?\" \u002F \"is the manifest in the file actually deployed?\"\n- \"Is there drift between ConfigHub and the cluster?\"\n- \"Compare DRY \u002F WET \u002F LIVE for unit X\" \u002F \"show me the three-way state\"\n- \"Give me a source-truth verdict for deploy\u002Fapi\"\n- \"Did Argo apply what was in commit abc123?\"\n- \"Compare this YAML file to what's running in prod\"\n- \"Is namespace prod conformant to ConfigHub?\"\n\nImplicit intents:\n\n- The user has *desired state* somewhere (Git, ConfigHub, a local manifest, a debug bundle) and wants to verify it's reflected in the cluster\n- The user wants a *verdict* (PASS \u002F WATCH \u002F BLOCK \u002F INCONCLUSIVE), not just a diff\n- The user is gating a CI step on conformance\n\n## Do not load for\n\n- Pure inventory (\"show me what's running\") — [`scout-observe`](..\u002Fscout-observe\u002FSKILL.md)\n- Interpreting *why* something is wrong (CrashLoop \u002F events \u002F patterns) — [`scout-diagnose`](..\u002Fscout-diagnose\u002FSKILL.md)\n- Per-field provenance (which controller \u002F which git file produced this value) — [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md)\n- Forcing a sync \u002F apply \u002F reconcile — cub-scout cannot. Route to `cub`, `argocd app sync` (with the user driving), `flux reconcile`, or `kubectl apply`\n\n## Standalone vs connected\n\n- **Standalone (cluster + file\u002Fbundle):** `compare drift --file \u003Cyaml>` and `compare --git-path \u003Crepo>` work without ConfigHub. Compares the file or repo against the live cluster.\n- **Connected (cluster + `cub auth login`):** `compare three-way` adds the DRY (ConfigHub intent) layer; `compare source-truth` runs a strategy-relative verdict over DRY \u002F WET \u002F LIVE.\n- **Offline (file or bundle vs file):** `compare` between a manifest file and a debug-bundle snapshot, no cluster needed.\n\n## Tool boundary\n\n- **Allowed (read-only):** all four Compare verbs; `kubectl get\u002Fdescribe`; `cub \u003Centity> get \u002F list` for the entities named in allowed-tools (connected); `argocd app get`, `flux get` (controller-side reads).\n- **Not allowed:** `argocd app sync` *as a mutation*, `flux reconcile`, `kubectl apply\u002Fedit\u002Fpatch\u002Fdelete`, `cub * create\u002Fupdate\u002Fdelete`. The compare commands never apply a fix.\n- **`--fail-on`:** the existing `compare three-way --fail-on info|warning` flag makes the command a CI gate (exit code 2 on violations). It still doesn't mutate — the gate just fails the pipeline.\n\n## The verb menu\n\n| Question | Verb | Notes |\n|---|---|---|\n| \"Compare a manifest file to the cluster\" | `cub-scout compare drift --file \u003Cyaml>` | File-vs-live drift. Works standalone, no ConfigHub. |\n| \"Compare this resource end-to-end\" | `cub-scout compare \u003Ckind>\u002F\u003Cname> -n \u003Cns>` | Single-resource compare. Connected: full DRY\u002FWET\u002FLIVE. Standalone: LIVE only with notes. |\n| \"Compare a scope\" | `cub-scout compare three-way --scope namespace\u002F\u003Cns>` | Multi-resource DRY\u002FWET\u002FLIVE with agreement summary. Requires connected mode for DRY\u002FWET. Supports `--scope`, `--view \u003Cuuid-or-url>`, `--source-path \u003Clocal-checkout>` (stage B back-resolution), `--fail-on`. |\n| \"Strategy-relative verdict\" | `cub-scout compare source-truth \u003Ckind>\u002F\u003Cname> -n \u003Cns> --strategy \u003Cs>` | One of 9 strategies (`confighub-oci-argo`, `confighub-oci-flux`, `git-argo`, `git-flux`, `helm-flux`, `helm-argo`, `kustomize-flux`, `oci-flux`, `oci-argo`). Returns a structured pair `status` ∈ {PASS, WATCH, BLOCK, ASK} + `source_truth` ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. Pilot's acceptance kernel consumes both axes. |\n\nAll four verbs emit `--format json` for agents and the MCP gateway.\n\n## The loop\n\n1. **Identify the desired state.** Where is \"intent\" living? A YAML file? A ConfigHub unit? A git repo? A local checkout? This determines the verb:\n   - File → `compare drift --file`\n   - ConfigHub unit (connected) → `compare three-way`\n   - Strategy-typed (connected) → `compare source-truth --strategy \u003Cs>`\n   - Local git checkout → `compare three-way --source-path \u003Cdir>` (stage B back-resolution, #440)\n2. **Pick the scope.** Single resource (`\u003Ckind>\u002F\u003Cname> -n \u003Cns>`), namespace (`--scope namespace\u002F\u003Cns>`), view (`--view \u003Cuuid-or-url>`), or cluster (`--scope cluster`).\n3. **Invoke.** Use `--format json` if the output is going to an agent or CI; ASCII otherwise.\n4. **Read the verdict + evidence.** For `compare source-truth`: the structured pair `status` ∈ {PASS, WATCH, BLOCK, ASK} + `source_truth` ∈ {AGREED, MISMATCH, INCOMPLETE, BLOCKED, UNKNOWN}. For `compare three-way` \u002F `compare drift`: per-field diffs with attribution evidence (`cause`, `managerHint`, `gitSource`, `bindingSource`) — see [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) for how to read those. `INCONCLUSIVE` is the receipt-level verdict — it shows up only when these results are wrapped into a `cub-scout receipt verify` artifact, not in raw `compare source-truth` output.\n5. **Hand off.** If the verdict is `WATCH` or `BLOCK` and the user wants to *fix* it, refuse to mutate and route them: drift produced by `kubectl edit` (per `cause: manual-edit`) typically goes to the original-author path (commit the change back); drift produced by a controller (`cause: controller-drift`) typically resolves on its own — wait or re-run.\n\n## Worked examples\n\n### A: file vs live drift, standalone\n\nThe primary v1 path. No ConfigHub auth required.\n\n```bash\n$ cub-scout compare drift --file desired.yaml -n prod\nDrift Report\n════════════\n  Cluster: prod-cluster\n  Source:  desired.yaml\n\n  [Config] Configuration Drift\n  └─ [WARNING] Deployment:prod\u002Fapi\n        path: spec.template.spec.containers[name=app].env[name=LOG_LEVEL]\n        desired: info\n        observed: debug\n\nSummary: 1 finding\n```\n\nPair with [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) when you want to know *who* changed `LOG_LEVEL` (controller? human? agent?). cub-scout reads `metadata.managedFields` on the live object to produce that classification — works without ConfigHub.\n\n### B: did Argo land commit abc123? *(connected enrichment)*\n\n```bash\n$ cub-scout compare three-way --scope namespace\u002Fprod --fail-on warning\nThree-Way Compare:\n  Scope: namespace\u002Fprod\n  Resources: 12  Connected: 12  DRY\u002FWET\u002FLIVE: 12  Mismatched: 0\n  Agreement: ✓ AGREED — All 12 resources agree\n  Conformance: PASS (threshold: warning, max: info, 0 issues)\n\nexit 0\n```\n\nCI pipeline can gate on `exit 0`. Mismatch produces exit 2 + a structured `compareFieldMismatch[]` array with per-field `cause` and `managerHint` from the attribution layer (#435). Requires `cub auth login` — adds the DRY (ConfigHub-intended) layer that the standalone case doesn't have.\n\n### C: strategy-relative verdict for Pilot *(connected, strategy-declared)*\n\n```bash\n$ cub-scout compare source-truth Deployment\u002Fapi -n prod --strategy git-argo --format json\n{\n  \"subject\": {\"kind\": \"Deployment\", \"name\": \"api\", \"namespace\": \"prod\"},\n  \"strategy\": \"git-argo\",\n  \"status\": \"PASS\",\n  \"verdict\": \"AGREED\",\n  \"evidence\": {\n    \"git\": {\"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Frepo\", \"revision\": \"abc123\"},\n    \"controller\": {\"argocd\": {\"lastSync\": \"abc123\", \"sync\": \"Synced\"}},\n    \"cluster\": {\"resourceVersion\": \"1234567\"}\n  }\n}\n```\n\nPilot's acceptance kernel consumes this JSON directly. The strategy must be declared explicitly — `compare source-truth` does not auto-detect the strategy (Pilot needs the operator's stated assumption, not cub-scout's guess).\n\n## Output evidence\n\n- **`compare three-way` agreement:** `summary.agreement.state` ∈ {`agreed`, `converging`, `diverged`, `partial`}; the canonical \"did the cluster end up matching ConfigHub intent?\" rollup.\n- **`compare source-truth` (two separate enums):**\n  - `status` ∈ {`PASS`, `WATCH`, `BLOCK`, `ASK`} — cub-scout's evidence-quality verdict\n  - `source_truth` ∈ {`AGREED`, `MISMATCH`, `INCOMPLETE`, `BLOCKED`, `UNKNOWN`} — cross-surface agreement under the declared strategy\n  - Status and verdict are **separate axes** — a verdict can be `MISMATCH` while status is `BLOCK` (strategy violation) OR `WATCH` (soft mismatch with proof gaps). See [`references\u002Fsource-truth-strategies.md`](..\u002Freferences\u002Fsource-truth-strategies.md) for the full status×verdict matrix.\n- **Receipt-level verdict** (only when wrapped via `cub-scout receipt verify --strategy \u003Cs>`): `PASS` \u002F `WATCH` \u002F `BLOCK` \u002F `INCONCLUSIVE`. `INCONCLUSIVE` is the receipt-only fourth state; it does NOT appear in raw `compare source-truth` output.\n- **Per-field mismatches** (`compareFieldMismatch[]`) with attribution: `cause`, `managerHint`, `gitSource`, `bindingSource`.\n- **Agreement summary** (three-way): `summary.agreement.state` ∈ {`agreed`, `converging`, `diverged`, `partial`}.\n- **CI exit code:** `--fail-on info|warning` produces exit 2 on violations.\n- **`nextSteps[]`** structured hints — every `actionType` ∈ {`read-only`, `waiting`, `human-decision`}; mutating is rejected at emit.\n\n## References\n\n- Capability map: [`README.md`](..\u002F..\u002FREADME.md#capability-map) § Compare\n- Source-truth contract: #393 (v0.1, 4 strategies); #418 (Phase 2 expansion to 9 strategies)\n- Three-way agreement summary: #371\n- `--view` scope (connected): #391 \u002F #414\n- Stage B back-resolution (`--source-path`): #440\n- Attribution layer (the evidence inside each mismatch): #435 — and [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md)\n\n## Constraints\n\n- `compare source-truth` does not auto-detect the strategy. The strategy is the operator's declared assumption (which authority produced this artifact?) and Pilot needs it stated, not guessed.\n- Standalone mode cannot produce a DRY verdict (no ConfigHub). For pure standalone, prefer `compare drift --file` or `compare --git-path`. Missing connected-mode evidence is recorded explicitly, not silenced.\n- For a *durable, fingerprinted* receipt of the comparison result, use the planned `cub-scout receipt verify` once #446 batch 1 lands. Until then, `--format json` output is the contract — it's stable, but ephemeral.\n- Never advise the user to bypass a `BLOCK` verdict by mutating directly. If the user wants to accept the live state as the new intent, route them to a `cub` skill for governed write-back.\n",{"name":5,"phase":55,"description":7,"allowed-tools":68},"Bash(.\u002Fcub-scout compare three-way *) Bash(cub-scout compare three-way *) Bash(cub scout compare three-way *) Bash(.\u002Fcub-scout compare drift *) Bash(cub-scout compare drift *) Bash(cub scout compare drift *) Bash(.\u002Fcub-scout compare source-truth *) Bash(cub-scout compare source-truth *) Bash(cub scout compare source-truth *) Bash(kubectl get *) Bash(kubectl describe *) 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(argocd app get *) Bash(flux get *)","main","261862e7ec5e5c93ce377ccfd6b583f5ac03c95c","skills\u002Fscout-compare",1,"https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout","https:\u002F\u002Fconfighub.com","https:\u002F\u002Fgithub.com\u002Fconfighub","http:\u002F\u002Fwww.confighub.com","Public repo for ConfigHub","2026-11-14 07:07:17",{"source":9,"skillName":5,"commands":80,"prompt":90,"zipAvailable":91},[81,84,87],{"tool":82,"command":83},"npx","npx skills add confighub\u002Fcub-scout --skill scout-compare",{"tool":85,"command":86},"bunx","bunx skills add confighub\u002Fcub-scout --skill scout-compare",{"tool":88,"command":89},"pnpm","pnpm dlx skills add confighub\u002Fcub-scout --skill scout-compare","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-compare\u002FSKILL.md",true,[93,99],{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"SOURCE.md","REFERENCE","参考文档",175,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Faave-heyanon\u002FSOURCE.md",{"path":100,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":101,"sourceHtmlUrl":102},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdefi\u002Faave-heyanon\u002FTRUST.auto.yaml",[104,134,157,176,198,218],{"skillNo":105,"name":106,"nameZh":107,"description":108,"descriptionZh":109,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":110,"categories":111,"keywords":116,"publishedAt":63},"01M6CBPQHTK7YGVZD3MMH1328H","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\u002Fapi 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).","当用户需要在时间压力下应对出现故障的 Kubernetes 工作负载时使用——例如寻呼告警响起、CI 飘红、“生产环境挂了”的场景。自然表述包括：“deploy\u002Fapi 出现 CrashLoopBackOff，该怎么办？”“发布卡住了，帮帮我”“这个 pod 起不来”“支付服务触发了寻呼告警”“argocd 里全红了”“我应该先检查什么？”“给我一份针对这个工作负载的分诊方案”。它将 doctor → explain → trace 组合成一个紧凑的约 30 秒循环，运维人员可在已确认寻呼告警的上下文中执行。不要用于：没有紧迫性的计划性排查（直接使用 scout-diagnose）、漂移相关问题（使用 investigate-drift），或任何变更操作（cub-scout 从不做变更——应由用户主导，转由 kubectl 处理）。","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Ftriage-unhealthy-workload\u002FSKILL.md",[112,113],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":114,"categoryName":115,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8CFG3G6Y69CV4EDQ6TP8ZRC","生产事故响应与应急处置",[117,118,119,47,60,120,121,122,123,124,53,125,126,127,128,129,49,130,48,45,43,42,131,132,40,133,35],"triage","workload","triage unhealthy workload","doctor","logs","ci","payments","api","loop","explain","check","broken","question","rollout","map","time","now",{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":146,"publishedAt":63},"01M6CBPKYVREY83CQYNFW6BVD0","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\u002Fapi 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 \u002F attestation \u002F evidence-artifact \u002F tamper-evident-record \u002F verified-record \u002F audit-trail \u002F postmortem-evidence \u002F 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 \u002F argocd \u002F kubectl with the user driving).","当用户需要针对某个 Kubernetes 资源生成带类型、带指纹、不可篡改（TYPED、FINGERPRINTED、IMMUTABLE）的证据工件时使用——即 cub-scout 的 Verify 动词组（在 #446 中发布的收据能力）。自然表述包括：“出具一份证明此资源合规的收据”“给我一份证明集群与 Git 一致的证明”“我需要一份可用于审计跟踪的可验证记录”“生成一份收据，证明自部署以来没有人工改动”“对照事实源（source-truth）校验 deploy\u002Fapi 并保存工件”“验证此收据未被篡改”“展示我们有哪些收据”“此收据是否被篡改过？”“把证据附加到我的 CI 关卡”。当意图涉及 receipt \u002F attestation \u002F evidence-artifact \u002F tamper-evident-record \u002F verified-record \u002F audit-trail \u002F postmortem-evidence \u002F acceptance-judge-input 时均应加载。不要用于：不落盘工件的实时比对（使用 scout-compare）、解读单个字段的来源出处（使用 scout-attribute），或真正实施修复（cub-scout 从不做变更——应由用户主导，转由 cub \u002F argocd \u002F kubectl 处理）。","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-verify\u002FSKILL.md",[142,143],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":144,"categoryName":145,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZ2WH4NBXTF9JSG6FX83RP","审计准备与证据管理",[55,147,32,47,148,149,122,150,56,124,151,53,152,52,51,50,153,49,48,154,45,155,43,41,40,38,36,156,35],"scout verify","acceptance","produce","attestation","show me","postmortem","fix","evidence","show","managed",{"skillNo":158,"name":159,"nameZh":17,"description":160,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":63},"01M6CBPF8WZBM7F9X096WT8PJD","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 \u002F inventory \u002F map \u002F show \u002F list \u002F trace \u002F scan \u002F dump \u002F stream \u002F bot \u002F 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).","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-observe\u002FSKILL.md",[],[46,164,32,165,47,60,166,120,121,167,56,168,151,53,128,49,169,48,170,171,45,155,172,173,131,40,174,175,35],"scout observe","bot","deployment","risk","inventory","version","only","hooks","back","health-check","resources","meaning",{"skillNo":177,"name":178,"nameZh":17,"description":179,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":63},"01M6CBPBM5J9PX4H8CE628AY5X","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 \u002F Codex \u002F 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 \u002F mcp-gateway \u002F mcp-serve \u002F context-pack \u002F bot \u002F agent-context \u002F ai-snapshot \u002F llm-context \u002F model-context-protocol. Do NOT load for: actually running a non-integrate verb (those are scout-observe \u002F scout-diagnose \u002F scout-compare \u002F scout-attribute \u002F scout-ingest \u002F scout-govern \u002F scout-verify), or `cub` MCP integration (that's a separate tool surface).","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-mcp\u002FSKILL.md",[],[183,184,32,165,185,186,187,188,189,59,190,191,53,192,52,193,194,170,195,196,46,40,36,197,35],"MCP","scout mcp","mcp server","ai agent","auth","config","run","server","SET","model","read","snapshot","ready","up","agent-context",{"skillNo":199,"name":200,"nameZh":17,"description":201,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":63},"01M6CBP7D72G704FWGRXNB6F9T","scout-ingest","Use when the user wants to ADOPT existing Kubernetes \u002F GitOps workload structure into ConfigHub after observing the live cluster — the adoption\u002Fimport 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 \u002F import \u002F ingest \u002F preview \u002F propose \u002F parse-repo \u002F discovery \u002F aggregator \u002F bring-into-confighub \u002F 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.","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-ingest\u002FSKILL.md",[],[205,206,32,47,60,59,58,149,207,191,168,208,151,53,52,209,129,193,210,50,49,170,46,45,155,211,212,213,39,38,36,214,215,216,217],"ingest","scout ingest","adoption","discovery","repo","write","structure","aggregator","adopt","reading","exported","invoke","parse",{"skillNo":219,"name":220,"nameZh":221,"description":222,"descriptionZh":223,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":224,"categories":225,"keywords":230,"publishedAt":63},"01M6CBP32CYJT8DJSGNCRWXQTM","scout-govern","ConfigHub 治理信号查询","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 \u002F impact \u002F blast-radius \u002F fleet-outliers \u002F summary \u002F view \u002F audit \u002F bundle \u002F catalog \u002F 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.","当用户希望从 cub-scout 获取已连接的（CONNECTED）ConfigHub 治理信号时使用该技能 —— Govern（治理）动词组。自然表述：\"给我看这个单元的 ChangeSet 历史\"、\"如果我修改这个单元，影响范围（blast radius）有多大？\"、\"我的机群中哪些集群是异常值？\"、\"给我看昨天的连接摘要\"、\"在整个机群中呈现这个视图\"、\"审计谁修改了这个\"、\"上一次应用来自哪里？\"、\"列出我拥有的 ConfigHub bundle\"、\"给我看过往快照的目录\"。当意图为历史 \u002F 影响 \u002F 影响范围 \u002F 机群异常 \u002F 摘要 \u002F 视图 \u002F 审计 \u002F bundle \u002F 目录 \u002F 连接上下文时加载。不要用于：实时集群比较（使用 scout-compare）、回执（使用 scout-verify）、正在运行的 Pod 清单（使用 scout-observe），或通过 cub 进行的任何修改。该技能的大部分功能需要 `cub auth login` —— 请提前说明。","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fscout-govern\u002FSKILL.md",[226,227],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":228,"categoryName":229,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZH5MB524G1VPY18RBFWDJ","工程变更管理",[231,32,232,187,233,234,235,168,55,151,53,236,52,50,237,49,238,34,239,46,45,155,240,40,241,242,36,243,244,245,246,35],"scout govern","change","governance","blast radius","audit","history","catalog","diff","snapshots","project","mutation","impact","render","blast-radius","which","inspect"]