[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CBMYRAB2T564TQGBMNV4SF":3,"skill-same:01M6CBMYRAB2T564TQGBMNV4SF":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":55,"linkOnly":56,"markdownContent":57,"markdownBody":58,"frontMatter":59,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":67,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6CBMYRAB2T564TQGBMNV4SF","pilot-patch-and-drift",null,"Use when Pilot is CLASSIFYING DRIFT and DECIDING WHAT TO DO ABOUT IT after a divergence between intended state and live state is detected. Natural phrasings: \"Pilot, classify this drift\", \"is this manual edit or controller drift?\", \"should Pilot revert this patch?\", \"quarantine or accept-as-canonical?\", \"what does cub-scout say about who touched this field?\", \"render a drift verdict for the audit\". Pilot consumes cub-scout's attribution evidence (`cause: manual-edit` \u002F `controller-drift` \u002F `unknown` + `managerHint` + `gitSource` + `bindingSource`) and decides revert \u002F quarantine \u002F accept-as-canonical \u002F ASK-human. The decision shape matches the attribution layer's evidence shape — cub-scout produces deterministic classification; Pilot picks the policy action. Do NOT load for: a single-resource pre-deploy gate (use pilot-cd-gate), a real-time event response (use pilot-watch-alert-response), a fleet roll-up (use pilot-fleet-conformance), or any mutating action. Pilot mutates via `cub` \u002F Argo \u002F kubectl — never via cub-scout.","confighub\u002Fcub-scout","confighub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206140369?v=4","01M6CBJBWD33AFNG4VXMJHSRXD","ConfigHub Inc","01M6CBJC0K0F8CJVFWGRSR0KYC",14,"MIT","https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fpilot-patch-and-drift\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54],"patch","pilot patch and drift","drift","time","alert","up","cub scout","scout compare","show","evidence","human","flux","live","argo","app","unit","unknown","describe","decision","release","attribution","kubectl","controller","real-time","classification","Bash","explain","policy","history","changeset","ask","edit","list","view","use","never","2026-11-10 10:12:30",false,"---\nname: pilot-patch-and-drift\ndescription: 'Use when Pilot is CLASSIFYING DRIFT and DECIDING WHAT TO DO ABOUT IT after a divergence between intended state and live state is detected. Natural phrasings: \"Pilot, classify this drift\", \"is this manual edit or controller drift?\", \"should Pilot revert this patch?\", \"quarantine or accept-as-canonical?\", \"what does cub-scout say about who touched this field?\", \"render a drift verdict for the audit\". Pilot consumes cub-scout''s attribution evidence (`cause: manual-edit` \u002F `controller-drift` \u002F `unknown` + `managerHint` + `gitSource` + `bindingSource`) and decides revert \u002F quarantine \u002F accept-as-canonical \u002F ASK-human. The decision shape matches the attribution layer''s evidence shape — cub-scout produces deterministic classification; Pilot picks the policy action. Do NOT load for: a single-resource pre-deploy gate (use pilot-cd-gate), a real-time event response (use pilot-watch-alert-response), a fleet roll-up (use pilot-fleet-conformance), or any mutating action. Pilot mutates via `cub` \u002F Argo \u002F kubectl — never via cub-scout.'\nphase: cross-cutting\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(.\u002Fcub-scout explain *) Bash(cub-scout explain *) Bash(cub scout explain *) Bash(.\u002Fcub-scout trace *) Bash(cub-scout trace *) Bash(cub scout trace *) Bash(.\u002Fcub-scout history *) Bash(cub-scout history *) Bash(cub scout history *) Bash(.\u002Fcub-scout receipt verify *) Bash(cub-scout receipt verify *) Bash(cub scout receipt verify *) Bash(.\u002Fcub-scout receipt show *) Bash(cub-scout receipt show *) Bash(cub scout receipt show *) Bash(.\u002Fcub-scout receipt validate *) Bash(cub-scout receipt validate *) Bash(cub scout receipt validate *) Bash(.\u002Fcub-scout receipt list *) Bash(cub-scout receipt list *) Bash(cub scout receipt list *) Bash(kubectl get *) Bash(kubectl describe *) Bash(kubectl get --show-managed-fields *) 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\n# pilot-patch-and-drift\n\nThe drift-classification scenario from **Pilot's** side. A field has diverged from its intended value; Pilot needs to decide what to do — revert, quarantine, accept-as-canonical, or ASK a human. The decision depends on **who** changed the field and **what kind** of change it was, which is exactly what cub-scout's attribution layer (#435) produces.\n\ncub-scout's attribution surface is deterministic: every `compareFieldMismatch` carries `cause` (`controller-drift` \u002F `manual-edit` \u002F `unknown`) + `managerHint` (the verified manager-string from `managedFields`) + `gitSource` (where the intended value came from) + `bindingSource` (which ConfigHub Link supplied it, when connected). Pilot reads that triple and picks an action.\n\n## When to use\n\nExplicit phrasings:\n\n- \"Pilot, classify this drift\"\n- \"Is this manual edit or controller drift?\"\n- \"Should Pilot revert this patch?\"\n- \"Quarantine or accept-as-canonical?\"\n- \"What does cub-scout say about who touched this field?\"\n- \"Render a drift verdict for the audit\"\n- \"Decision: is this an emergency manual fix we accept, or noise we revert?\"\n- \"Argo and kubectl both wrote this field — who actually owns it?\"\n\nImplicit intents:\n\n- A **divergence is already known** (an audit found it, a watch event surfaced it, a gate failed) — this isn't the discovery skill\n- The user wants a **classification + action**, not just a description\n- The action is the **operator's call** but informed by deterministic attribution evidence\n- The result may persist as a **fingerprinted receipt** if the action needs an audit trail\n\n## Do not load for\n\n- A **pre-deploy gate** (drift hasn't happened yet) — [`pilot-cd-gate`](..\u002Fpilot-cd-gate\u002FSKILL.md)\n- A **real-time event-driven** drift response — [`pilot-watch-alert-response`](..\u002Fpilot-watch-alert-response\u002FSKILL.md)\n- A **fleet roll-up verdict** — [`pilot-fleet-conformance`](..\u002Fpilot-fleet-conformance\u002FSKILL.md)\n- **Postmortem evidence assembly** — [`pilot-incident-evidence`](..\u002Fpilot-incident-evidence\u002FSKILL.md)\n- Pure **investigation** without a Pilot policy decision (operator wants to understand, not decide) — [`investigate-drift`](..\u002Finvestigate-drift\u002FSKILL.md)\n- The **first-pass discovery** of drift — [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) (the underlying capability) or [`scout-compare`](..\u002Fscout-compare\u002FSKILL.md)\n- Any **mutating action**. cub-scout doesn't revert, quarantine, or apply. Pilot's mutation path is `cub` \u002F Argo \u002F Flux \u002F kubectl.\n\n## The Pilot ↔ cub-scout drift loop\n\n```\n   alert: drift detected on deploy\u002Fpayments-api spec.replicas\n        │\n        ▼\n   Pilot (acceptance judge)\n        │  \"classify this drift, decide an action\"\n        │\n        ├──► cub-scout compare three-way deploy\u002Fpayments-api -n prod\n        │     --format json\n        │     │\n        │     │   per-field fieldMismatches[] with:\n        │     │     cause          (controller-drift \u002F manual-edit \u002F unknown)\n        │     │     managerHint    (verified manager string)\n        │     │     gitSource      (repoUrl \u002F revision \u002F path \u002F file \u002F line)\n        │     │     bindingSource  (upstream unit + binding path + link, connected)\n        │     │     compareThreeWay (DRY\u002FWET\u002FLIVE values per field)\n        │     ▼\n        │\n        ├──► (optional) cub-scout history deploy\u002Fpayments-api -n prod\n        │     # ConfigHub ChangeSet timeline for the past 24h\n        │\n        ├──► (optional) cub-scout explain deploy\u002Fpayments-api -n prod --presentation ai\n        │     # narrative ownership + lineage (AI-shaped output)\n        │\n        └──► (optional, for audit) cub-scout receipt verify deploy\u002Fpayments-api -n prod\n              --predicate no-manual-edits-since --since \u003Ctimestamp> --save\n        │\n        ▼\n   Pilot's drift verdict, by field:\n        │\n        │  cause: controller-drift   → ACCEPT (controller is reconciling; transient)\n        │  cause: manual-edit + Argo-owned → INVESTIGATE → likely REVERT or QUARANTINE\n        │  cause: manual-edit + Flux-owned → same\n        │  cause: manual-edit + unmanaged   → ACCEPT-AS-CANONICAL or QUARANTINE\n        │  cause: unknown                   → ASK (managedFields incomplete)\n        │\n        ▼\n   downstream consumer reads the action\n        │  ACCEPT             → no-op\n        │  REVERT             → route to Pilot's REVERT path (controller sync or\n        │                       intent re-apply; mutation lives outside cub-scout)\n        │  QUARANTINE         → tag the resource, alert the owner\n        │  ACCEPT-AS-CANONICAL → route to Pilot's intent-update path (Git PR \u002F ConfigHub\n        │                       unit update; mutation lives outside cub-scout)\n        │  ASK                → page a human\n        └────────────────────────────────────────────────────\n```\n\n## Five Pilot policy cases over three `cause` values + owner context\n\ncub-scout's attribution layer produces one of **three** `cause` values per field (per `pkg\u002Fagent\u002Ffield_ownership.go:10-30`): `controller-drift`, `manual-edit`, `unknown`. Pilot's policy decision is shaped by the (cause, owner, managerHint) triple — so the same `cause` can map to different actions depending on whether the resource has a controller owner and whether the writer's manager string is in the verified enumeration:\n\n| `cause` | Owner \u002F manager context | Typical Pilot action |\n|---------|-------------------------|----------------------|\n| `controller-drift` | Detected owner's controller wrote the field; managerHint is in the verified enumeration. The drift is the controller doing its job (HPA scaled replicas, etc.). | **ACCEPT** — no action; the controller is reconciling. |\n| `manual-edit` | Argo \u002F Flux \u002F ConfigHub \u002F Sveltos \u002F Modelplane \u002F kro \u002F Crossplane owner; `kubectl-*` writer touched the field. The controller will fight the manual edit on next sync. | **INVESTIGATE** — read the gitSource \u002F bindingSource; usually **REVERT** (let the controller win) or **QUARANTINE** if the manual edit was an emergency fix. |\n| `manual-edit` | No controller owner (unmanaged resource); `kubectl-*` writer. There's no controller to fight back. | **ACCEPT-AS-CANONICAL** (update intent to match) or **QUARANTINE** if the resource shouldn't be unmanaged. |\n| `controller-drift` | A controller wrote it, but the managerHint is **not** in the verified enumeration, OR it's from a different controller than the detected owner (e.g., Argo wrote on a Flux-owned resource). | **ASK** — possible controller-on-controller conflict; cub-scout doesn't guess which is canonical. |\n| `unknown` | `managedFields` is missing (older K8s, stripped) or the field-path resolution failed. | **ASK** — Pilot doesn't have enough evidence. |\n\nThe five rows above are Pilot policy cases, not five distinct `cause` values from cub-scout. cub-scout's `cause` is the three-valued enum; the owner \u002F manager \u002F verified-or-not context disambiguates within the `manual-edit` and `controller-drift` cases. See [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) for the canonical enumeration.\n\nThe verified manager-string enumeration ([`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md)) covers Argo CD, Flux (kustomize\u002Fhelm\u002Fsource controllers), Helm direct, Crossplane (composite\u002Fcomposed\u002Fclaim\u002FMRD\u002Frefs), kro (applyset\u002Fparent\u002Flabeller), Sveltos (`application\u002Fapply-patch`), Modelplane via Crossplane composition managers, and `kubectl-*`. Strings not in the enumeration return `unknown` rather than misclassifying — same `parse, don't guess` rule used by ownership detection.\n\n## Step-by-step\n\n### Step 1 — get the structured evidence\n\n```bash\n$ cub-scout compare three-way deploy\u002Fpayments-api -n prod --format json\n```\n\nThe output's `fieldMismatches[]` is per-field. Each entry has:\n\n```json\n{\n  \"path\": \"spec.template.spec.containers[0].image\",\n  \"compareThreeWay\": {\n    \"dry\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"wet\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"live\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.3-hotfix\"\n  },\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"gitSource\": {\n    \"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Fpayments\",\n    \"revision\": \"abc123\",\n    \"path\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"file\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"line\": 42\n  },\n  \"bindingSource\": null\n}\n```\n\nThis is the canonical evidence shape Pilot reads. The triple `(cause, managerHint, gitSource)` carries the deterministic classification; the four values (`dry`, `wet`, `live`, plus the resolved `gitSource`) carry the divergence shape.\n\n### Step 2 — (connected) check the binding source\n\nWhen connected, the same output includes a `bindingSource` per field that the field came from an upstream ConfigHub Link:\n\n```json\n{\n  \"bindingSource\": {\n    \"unit\": \"payments-base\",\n    \"path\": \".spec.image\",\n    \"link\": \"lnk-2024-prod-image-bump\"\n  }\n}\n```\n\nReading: the live `image` field was supposed to come from upstream unit `payments-base` via Link `lnk-2024-prod-image-bump`. Pilot can:\n\n- `cub unit get payments-base` to see the canonical value\n- `cub link list payments-api` to see all incoming bindings\n- Decide whether the divergence is in the downstream resource or the upstream unit\n\nWhen standalone or the resource isn't ConfigHub-linked, `bindingSource: null` and Pilot drops back to the `cause` + `managerHint` evidence.\n\n### Step 3 — (optional) get the change timeline\n\n```bash\n$ cub-scout history deploy\u002Fpayments-api -n prod --since 24h --format json\n```\n\nThe history surface produces the ConfigHub ChangeSet timeline (connected only). Useful when:\n- The drift might be a recent intentional change Pilot should reconcile to\n- The audit needs a \"who changed what when\" entry\n\n### Step 4 — render the verdict\n\nPilot's verdict per field is the action from the table above. For the worked-example field (manual-edit on an Argo-owned image field):\n\n```json\n{\n  \"resource\": \"Deployment\u002Fpayments-api in prod\",\n  \"field\": \"spec.template.spec.containers[0].image\",\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"owner\": \"argo\",\n  \"action\": \"INVESTIGATE\",\n  \"recommendation\": \"Likely emergency hotfix — verify with on-call before reverting. If intentional, update intent (Git PR to apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml line 42); if not, let Argo sync revert it.\",\n  \"evidence_path\": null\n}\n```\n\n### Step 5 — (optional) persist a receipt\n\nIf the verdict needs an audit trail (e.g., for compliance review later):\n\n```bash\n# Predicate \"no-manual-edits-since\": BLOCK if any kubectl-* writer touched the resource\n# after the cutoff. The cutoff is typically the last known intentional change.\n$ cub-scout receipt verify deploy\u002Fpayments-api -n prod \\\n    --predicate no-manual-edits-since \\\n    --since 2026-05-22T00:00:00Z \\\n    --save \\\n    --out drift.receipt.json\n```\n\nThe receipt records what cub-scout observed at this moment + the verdict (BLOCK if a kubectl-* writer touched it after the cutoff). Pilot attaches `drift.receipt.json` to the drift ticket.\n\n### Step 6 — invoke the action (Pilot's surface, not cub-scout's)\n\nPilot's mutation choices, by action (mutation implementation lives outside cub-scout — concrete CLI surfaces are intentionally abstracted here):\n\n| Action | Pilot's mutation path |\n|--------|----------------------|\n| ACCEPT | none (no-op) |\n| REVERT | Pilot's REVERT path — controller sync or intent re-apply, depending on which controller owns the resource. Implementation lives in Pilot \u002F `cub` \u002F Argo \u002F Flux; this skill does not name a specific CLI. |\n| QUARANTINE | Label\u002Fannotate the resource (out-of-scope for cub-scout); page the owner. |\n| ACCEPT-AS-CANONICAL | Pilot's intent-update path — typically a Git PR amending intent, or a ConfigHub unit update. Implementation lives outside cub-scout. |\n| ASK | Escalate to the on-call human. |\n\ncub-scout participates **only in evidence**. The mutation paths above are all out-of-scope for this skill, and their concrete CLI surfaces (controller sync verbs, ConfigHub unit update verbs) are deliberately not enumerated here to keep cub-scout's read-only boundary loud.\n\n## Worked example\n\nA drift alert fires on `deploy\u002Fpayments-api` in prod — `spec.template.spec.containers[0].image` has diverged.\n\n```bash\n$ cub-scout compare three-way deploy\u002Fpayments-api -n prod --format json \\\n    | jq '.fieldMismatches[] | select(.path | contains(\"image\"))'\n{\n  \"path\": \"spec.template.spec.containers[0].image\",\n  \"compareThreeWay\": {\n    \"dry\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"wet\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"live\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.3-hotfix\"\n  },\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"gitSource\": {\n    \"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Fpayments\",\n    \"revision\": \"abc123\",\n    \"path\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"file\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"line\": 42\n  },\n  \"bindingSource\": null\n}\n```\n\nPilot's reading:\n- DRY=WET (`v1.4.2`) but LIVE=`v1.4.3-hotfix` — manual-edit\n- `cause: manual-edit` + `managerHint: kubectl-edit` confirms a human ran `kubectl edit` or `kubectl set image`\n- Owner (from `cub-scout explain`): Argo CD application `payments-api`\n- `gitSource.file:line` points at the canonical declaration\n\nPilot's verdict:\n- **Action**: INVESTIGATE\n- **Recommendation**: Likely an emergency hotfix (suffix `-hotfix` is a strong hint). Verify with on-call:\n  - If intentional → open Git PR amending `apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml:42` to `v1.4.3-hotfix` and merge; Argo will sync.\n  - If accidental → route to Pilot's REVERT path (a controller-sync verb in Pilot's stack); cub-scout doesn't perform the sync itself.\n\nPilot's downstream system records the verdict + the cub-scout evidence ID + a link to the on-call ticket.\n\n## Edge cases the attribution layer handles\n\n- **Argo CD CSA migration default and `kubectl apply --client-side` write the same manager string** — the classifier reads `pkg\u002Fagent\u002Fownership.go` first; Argo-owned resources resolve as `controller-drift`, non-Argo as `manual-edit`. (See [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) for the full enumeration.)\n- **Crossplane composed children use prefix match** — `apiextensions.crossplane.io\u002Fcomposed-\u003Chash>` varies per XR. The classifier matches by prefix, not exact string.\n- **Per-field rollup degrades cleanly to resource-level** — when `FieldsV1` is missing (older K8s, stripped), classification is resource-level. When present, per-field. List-key fields (e.g., `spec.template.spec.containers[name=\"api\"].image`) currently fall back to resource-level pending list-key selector support — `pilot-patch-and-drift` should treat resource-level `cause` as authoritative for those fields.\n- **`gitSource.file:line` is opt-in via `--source-path \u003Clocal-checkout>`** — the resource-level `gitSource` (repoUrl\u002Frevision\u002Fpath) is automatic; raw-YAML back-resolution to `file:line` requires the CI pipeline (or Pilot's runtime) to have a local checkout available. Helm\u002FKustomize templating explicitly deferred.\n\n## Tool boundary\n\n- **Allowed (cub-scout):** Compare verbs (read-only attribution); `explain`, `trace`, `history`; `receipt verify` \u002F `show` \u002F `validate` \u002F `list`. All read-only.\n- **Allowed (cluster):** `kubectl get\u002Fdescribe`, `kubectl get --show-managed-fields` (Pilot may want to inspect the raw `managedFields` to verify cub-scout's classification). NOT `kubectl apply \u002F edit \u002F patch \u002F delete`.\n- **Allowed (ConfigHub):** `cub \u003Centity> get \u002F list` for the entities named in allowed-tools. NOT `cub * create \u002F update \u002F delete`.\n- **Allowed (controllers):** `argocd app get`, `flux get`. NOT `argocd app sync`, `flux reconcile` (those are Pilot's REVERT path, not cub-scout's).\n- **Pilot's mutation paths** (REVERT, QUARANTINE, ACCEPT-AS-CANONICAL) are out-of-scope for this skill. cub-scout produces the classification; Pilot decides; the mutation lives in `cub` \u002F Argo \u002F Flux.\n\n## References\n\n- [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) — the underlying attribution capability (cub-scout side)\n- [`scout-compare`](..\u002Fscout-compare\u002FSKILL.md) — the Compare verbs that surface attribution\n- [`scout-verify`](..\u002Fscout-verify\u002FSKILL.md) — receipt persistence\n- [`investigate-drift`](..\u002Finvestigate-drift\u002FSKILL.md) — operator-driven counterpart (same evidence, different framing)\n- [`pilot-cd-gate`](..\u002Fpilot-cd-gate\u002FSKILL.md) — pre-deploy companion\n- [`pilot-watch-alert-response`](..\u002Fpilot-watch-alert-response\u002FSKILL.md) — real-time companion\n- [`pilot-incident-evidence`](..\u002Fpilot-incident-evidence\u002FSKILL.md) — postmortem companion\n- [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) — the canonical manager-string list\n- [`kubernetes-managedfields`](..\u002Freferences\u002Fkubernetes-managedfields.md) — `managedFields` mechanics\n- Attribution layer: `#435` (parent), `#437` (A1+A1.5+A2 classifier + manager strings + git anchor), `#438` (C1 incoming binding), `#439` (C2 per-field binding source), `#440` (B raw-YAML file:line)\n\n## Constraints\n\n- Per-field `cause` classification requires `managedFields` present on the resource (K8s ≥ 1.18 default; some controllers strip it). When missing, classification degrades to resource-level.\n- The verified manager-string enumeration is a **whitelist**, not a heuristic. New controllers' manager strings need to be added to `pkg\u002Fagent\u002Fmanager_strings.go` (a `cub-scout` core change, not a Pilot-side patch).\n- `bindingSource` requires connected mode AND the resource being ConfigHub-linked via `cub link create`. Without that, `bindingSource: null` and Pilot drops to `cause` + `managerHint` alone.\n- `gitSource.file:line` requires `--source-path \u003Clocal-checkout>` to be passed AND the source to be raw YAML (not Helm\u002FKustomize templated). Templated sources only get the resource-level `repoUrl\u002Frevision\u002Fpath` anchor.\n- Pilot's action policy (revert vs quarantine vs accept-as-canonical) is **Pilot's call**. cub-scout produces the classification; the action mapping above is illustrative, not normative.\n","# pilot-patch-and-drift\n\nThe drift-classification scenario from **Pilot's** side. A field has diverged from its intended value; Pilot needs to decide what to do — revert, quarantine, accept-as-canonical, or ASK a human. The decision depends on **who** changed the field and **what kind** of change it was, which is exactly what cub-scout's attribution layer (#435) produces.\n\ncub-scout's attribution surface is deterministic: every `compareFieldMismatch` carries `cause` (`controller-drift` \u002F `manual-edit` \u002F `unknown`) + `managerHint` (the verified manager-string from `managedFields`) + `gitSource` (where the intended value came from) + `bindingSource` (which ConfigHub Link supplied it, when connected). Pilot reads that triple and picks an action.\n\n## When to use\n\nExplicit phrasings:\n\n- \"Pilot, classify this drift\"\n- \"Is this manual edit or controller drift?\"\n- \"Should Pilot revert this patch?\"\n- \"Quarantine or accept-as-canonical?\"\n- \"What does cub-scout say about who touched this field?\"\n- \"Render a drift verdict for the audit\"\n- \"Decision: is this an emergency manual fix we accept, or noise we revert?\"\n- \"Argo and kubectl both wrote this field — who actually owns it?\"\n\nImplicit intents:\n\n- A **divergence is already known** (an audit found it, a watch event surfaced it, a gate failed) — this isn't the discovery skill\n- The user wants a **classification + action**, not just a description\n- The action is the **operator's call** but informed by deterministic attribution evidence\n- The result may persist as a **fingerprinted receipt** if the action needs an audit trail\n\n## Do not load for\n\n- A **pre-deploy gate** (drift hasn't happened yet) — [`pilot-cd-gate`](..\u002Fpilot-cd-gate\u002FSKILL.md)\n- A **real-time event-driven** drift response — [`pilot-watch-alert-response`](..\u002Fpilot-watch-alert-response\u002FSKILL.md)\n- A **fleet roll-up verdict** — [`pilot-fleet-conformance`](..\u002Fpilot-fleet-conformance\u002FSKILL.md)\n- **Postmortem evidence assembly** — [`pilot-incident-evidence`](..\u002Fpilot-incident-evidence\u002FSKILL.md)\n- Pure **investigation** without a Pilot policy decision (operator wants to understand, not decide) — [`investigate-drift`](..\u002Finvestigate-drift\u002FSKILL.md)\n- The **first-pass discovery** of drift — [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) (the underlying capability) or [`scout-compare`](..\u002Fscout-compare\u002FSKILL.md)\n- Any **mutating action**. cub-scout doesn't revert, quarantine, or apply. Pilot's mutation path is `cub` \u002F Argo \u002F Flux \u002F kubectl.\n\n## The Pilot ↔ cub-scout drift loop\n\n```\n   alert: drift detected on deploy\u002Fpayments-api spec.replicas\n        │\n        ▼\n   Pilot (acceptance judge)\n        │  \"classify this drift, decide an action\"\n        │\n        ├──► cub-scout compare three-way deploy\u002Fpayments-api -n prod\n        │     --format json\n        │     │\n        │     │   per-field fieldMismatches[] with:\n        │     │     cause          (controller-drift \u002F manual-edit \u002F unknown)\n        │     │     managerHint    (verified manager string)\n        │     │     gitSource      (repoUrl \u002F revision \u002F path \u002F file \u002F line)\n        │     │     bindingSource  (upstream unit + binding path + link, connected)\n        │     │     compareThreeWay (DRY\u002FWET\u002FLIVE values per field)\n        │     ▼\n        │\n        ├──► (optional) cub-scout history deploy\u002Fpayments-api -n prod\n        │     # ConfigHub ChangeSet timeline for the past 24h\n        │\n        ├──► (optional) cub-scout explain deploy\u002Fpayments-api -n prod --presentation ai\n        │     # narrative ownership + lineage (AI-shaped output)\n        │\n        └──► (optional, for audit) cub-scout receipt verify deploy\u002Fpayments-api -n prod\n              --predicate no-manual-edits-since --since \u003Ctimestamp> --save\n        │\n        ▼\n   Pilot's drift verdict, by field:\n        │\n        │  cause: controller-drift   → ACCEPT (controller is reconciling; transient)\n        │  cause: manual-edit + Argo-owned → INVESTIGATE → likely REVERT or QUARANTINE\n        │  cause: manual-edit + Flux-owned → same\n        │  cause: manual-edit + unmanaged   → ACCEPT-AS-CANONICAL or QUARANTINE\n        │  cause: unknown                   → ASK (managedFields incomplete)\n        │\n        ▼\n   downstream consumer reads the action\n        │  ACCEPT             → no-op\n        │  REVERT             → route to Pilot's REVERT path (controller sync or\n        │                       intent re-apply; mutation lives outside cub-scout)\n        │  QUARANTINE         → tag the resource, alert the owner\n        │  ACCEPT-AS-CANONICAL → route to Pilot's intent-update path (Git PR \u002F ConfigHub\n        │                       unit update; mutation lives outside cub-scout)\n        │  ASK                → page a human\n        └────────────────────────────────────────────────────\n```\n\n## Five Pilot policy cases over three `cause` values + owner context\n\ncub-scout's attribution layer produces one of **three** `cause` values per field (per `pkg\u002Fagent\u002Ffield_ownership.go:10-30`): `controller-drift`, `manual-edit`, `unknown`. Pilot's policy decision is shaped by the (cause, owner, managerHint) triple — so the same `cause` can map to different actions depending on whether the resource has a controller owner and whether the writer's manager string is in the verified enumeration:\n\n| `cause` | Owner \u002F manager context | Typical Pilot action |\n|---------|-------------------------|----------------------|\n| `controller-drift` | Detected owner's controller wrote the field; managerHint is in the verified enumeration. The drift is the controller doing its job (HPA scaled replicas, etc.). | **ACCEPT** — no action; the controller is reconciling. |\n| `manual-edit` | Argo \u002F Flux \u002F ConfigHub \u002F Sveltos \u002F Modelplane \u002F kro \u002F Crossplane owner; `kubectl-*` writer touched the field. The controller will fight the manual edit on next sync. | **INVESTIGATE** — read the gitSource \u002F bindingSource; usually **REVERT** (let the controller win) or **QUARANTINE** if the manual edit was an emergency fix. |\n| `manual-edit` | No controller owner (unmanaged resource); `kubectl-*` writer. There's no controller to fight back. | **ACCEPT-AS-CANONICAL** (update intent to match) or **QUARANTINE** if the resource shouldn't be unmanaged. |\n| `controller-drift` | A controller wrote it, but the managerHint is **not** in the verified enumeration, OR it's from a different controller than the detected owner (e.g., Argo wrote on a Flux-owned resource). | **ASK** — possible controller-on-controller conflict; cub-scout doesn't guess which is canonical. |\n| `unknown` | `managedFields` is missing (older K8s, stripped) or the field-path resolution failed. | **ASK** — Pilot doesn't have enough evidence. |\n\nThe five rows above are Pilot policy cases, not five distinct `cause` values from cub-scout. cub-scout's `cause` is the three-valued enum; the owner \u002F manager \u002F verified-or-not context disambiguates within the `manual-edit` and `controller-drift` cases. See [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) for the canonical enumeration.\n\nThe verified manager-string enumeration ([`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md)) covers Argo CD, Flux (kustomize\u002Fhelm\u002Fsource controllers), Helm direct, Crossplane (composite\u002Fcomposed\u002Fclaim\u002FMRD\u002Frefs), kro (applyset\u002Fparent\u002Flabeller), Sveltos (`application\u002Fapply-patch`), Modelplane via Crossplane composition managers, and `kubectl-*`. Strings not in the enumeration return `unknown` rather than misclassifying — same `parse, don't guess` rule used by ownership detection.\n\n## Step-by-step\n\n### Step 1 — get the structured evidence\n\n```bash\n$ cub-scout compare three-way deploy\u002Fpayments-api -n prod --format json\n```\n\nThe output's `fieldMismatches[]` is per-field. Each entry has:\n\n```json\n{\n  \"path\": \"spec.template.spec.containers[0].image\",\n  \"compareThreeWay\": {\n    \"dry\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"wet\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"live\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.3-hotfix\"\n  },\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"gitSource\": {\n    \"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Fpayments\",\n    \"revision\": \"abc123\",\n    \"path\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"file\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"line\": 42\n  },\n  \"bindingSource\": null\n}\n```\n\nThis is the canonical evidence shape Pilot reads. The triple `(cause, managerHint, gitSource)` carries the deterministic classification; the four values (`dry`, `wet`, `live`, plus the resolved `gitSource`) carry the divergence shape.\n\n### Step 2 — (connected) check the binding source\n\nWhen connected, the same output includes a `bindingSource` per field that the field came from an upstream ConfigHub Link:\n\n```json\n{\n  \"bindingSource\": {\n    \"unit\": \"payments-base\",\n    \"path\": \".spec.image\",\n    \"link\": \"lnk-2024-prod-image-bump\"\n  }\n}\n```\n\nReading: the live `image` field was supposed to come from upstream unit `payments-base` via Link `lnk-2024-prod-image-bump`. Pilot can:\n\n- `cub unit get payments-base` to see the canonical value\n- `cub link list payments-api` to see all incoming bindings\n- Decide whether the divergence is in the downstream resource or the upstream unit\n\nWhen standalone or the resource isn't ConfigHub-linked, `bindingSource: null` and Pilot drops back to the `cause` + `managerHint` evidence.\n\n### Step 3 — (optional) get the change timeline\n\n```bash\n$ cub-scout history deploy\u002Fpayments-api -n prod --since 24h --format json\n```\n\nThe history surface produces the ConfigHub ChangeSet timeline (connected only). Useful when:\n- The drift might be a recent intentional change Pilot should reconcile to\n- The audit needs a \"who changed what when\" entry\n\n### Step 4 — render the verdict\n\nPilot's verdict per field is the action from the table above. For the worked-example field (manual-edit on an Argo-owned image field):\n\n```json\n{\n  \"resource\": \"Deployment\u002Fpayments-api in prod\",\n  \"field\": \"spec.template.spec.containers[0].image\",\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"owner\": \"argo\",\n  \"action\": \"INVESTIGATE\",\n  \"recommendation\": \"Likely emergency hotfix — verify with on-call before reverting. If intentional, update intent (Git PR to apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml line 42); if not, let Argo sync revert it.\",\n  \"evidence_path\": null\n}\n```\n\n### Step 5 — (optional) persist a receipt\n\nIf the verdict needs an audit trail (e.g., for compliance review later):\n\n```bash\n# Predicate \"no-manual-edits-since\": BLOCK if any kubectl-* writer touched the resource\n# after the cutoff. The cutoff is typically the last known intentional change.\n$ cub-scout receipt verify deploy\u002Fpayments-api -n prod \\\n    --predicate no-manual-edits-since \\\n    --since 2026-05-22T00:00:00Z \\\n    --save \\\n    --out drift.receipt.json\n```\n\nThe receipt records what cub-scout observed at this moment + the verdict (BLOCK if a kubectl-* writer touched it after the cutoff). Pilot attaches `drift.receipt.json` to the drift ticket.\n\n### Step 6 — invoke the action (Pilot's surface, not cub-scout's)\n\nPilot's mutation choices, by action (mutation implementation lives outside cub-scout — concrete CLI surfaces are intentionally abstracted here):\n\n| Action | Pilot's mutation path |\n|--------|----------------------|\n| ACCEPT | none (no-op) |\n| REVERT | Pilot's REVERT path — controller sync or intent re-apply, depending on which controller owns the resource. Implementation lives in Pilot \u002F `cub` \u002F Argo \u002F Flux; this skill does not name a specific CLI. |\n| QUARANTINE | Label\u002Fannotate the resource (out-of-scope for cub-scout); page the owner. |\n| ACCEPT-AS-CANONICAL | Pilot's intent-update path — typically a Git PR amending intent, or a ConfigHub unit update. Implementation lives outside cub-scout. |\n| ASK | Escalate to the on-call human. |\n\ncub-scout participates **only in evidence**. The mutation paths above are all out-of-scope for this skill, and their concrete CLI surfaces (controller sync verbs, ConfigHub unit update verbs) are deliberately not enumerated here to keep cub-scout's read-only boundary loud.\n\n## Worked example\n\nA drift alert fires on `deploy\u002Fpayments-api` in prod — `spec.template.spec.containers[0].image` has diverged.\n\n```bash\n$ cub-scout compare three-way deploy\u002Fpayments-api -n prod --format json \\\n    | jq '.fieldMismatches[] | select(.path | contains(\"image\"))'\n{\n  \"path\": \"spec.template.spec.containers[0].image\",\n  \"compareThreeWay\": {\n    \"dry\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"wet\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.2\",\n    \"live\": \"ghcr.io\u002Forg\u002Fpayments-api:v1.4.3-hotfix\"\n  },\n  \"cause\": \"manual-edit\",\n  \"managerHint\": \"kubectl-edit\",\n  \"gitSource\": {\n    \"repoUrl\": \"https:\u002F\u002Fgithub.com\u002Forg\u002Fpayments\",\n    \"revision\": \"abc123\",\n    \"path\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"file\": \"apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml\",\n    \"line\": 42\n  },\n  \"bindingSource\": null\n}\n```\n\nPilot's reading:\n- DRY=WET (`v1.4.2`) but LIVE=`v1.4.3-hotfix` — manual-edit\n- `cause: manual-edit` + `managerHint: kubectl-edit` confirms a human ran `kubectl edit` or `kubectl set image`\n- Owner (from `cub-scout explain`): Argo CD application `payments-api`\n- `gitSource.file:line` points at the canonical declaration\n\nPilot's verdict:\n- **Action**: INVESTIGATE\n- **Recommendation**: Likely an emergency hotfix (suffix `-hotfix` is a strong hint). Verify with on-call:\n  - If intentional → open Git PR amending `apps\u002Fprod\u002Fpayments-api\u002Fdeployment.yaml:42` to `v1.4.3-hotfix` and merge; Argo will sync.\n  - If accidental → route to Pilot's REVERT path (a controller-sync verb in Pilot's stack); cub-scout doesn't perform the sync itself.\n\nPilot's downstream system records the verdict + the cub-scout evidence ID + a link to the on-call ticket.\n\n## Edge cases the attribution layer handles\n\n- **Argo CD CSA migration default and `kubectl apply --client-side` write the same manager string** — the classifier reads `pkg\u002Fagent\u002Fownership.go` first; Argo-owned resources resolve as `controller-drift`, non-Argo as `manual-edit`. (See [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) for the full enumeration.)\n- **Crossplane composed children use prefix match** — `apiextensions.crossplane.io\u002Fcomposed-\u003Chash>` varies per XR. The classifier matches by prefix, not exact string.\n- **Per-field rollup degrades cleanly to resource-level** — when `FieldsV1` is missing (older K8s, stripped), classification is resource-level. When present, per-field. List-key fields (e.g., `spec.template.spec.containers[name=\"api\"].image`) currently fall back to resource-level pending list-key selector support — `pilot-patch-and-drift` should treat resource-level `cause` as authoritative for those fields.\n- **`gitSource.file:line` is opt-in via `--source-path \u003Clocal-checkout>`** — the resource-level `gitSource` (repoUrl\u002Frevision\u002Fpath) is automatic; raw-YAML back-resolution to `file:line` requires the CI pipeline (or Pilot's runtime) to have a local checkout available. Helm\u002FKustomize templating explicitly deferred.\n\n## Tool boundary\n\n- **Allowed (cub-scout):** Compare verbs (read-only attribution); `explain`, `trace`, `history`; `receipt verify` \u002F `show` \u002F `validate` \u002F `list`. All read-only.\n- **Allowed (cluster):** `kubectl get\u002Fdescribe`, `kubectl get --show-managed-fields` (Pilot may want to inspect the raw `managedFields` to verify cub-scout's classification). NOT `kubectl apply \u002F edit \u002F patch \u002F delete`.\n- **Allowed (ConfigHub):** `cub \u003Centity> get \u002F list` for the entities named in allowed-tools. NOT `cub * create \u002F update \u002F delete`.\n- **Allowed (controllers):** `argocd app get`, `flux get`. NOT `argocd app sync`, `flux reconcile` (those are Pilot's REVERT path, not cub-scout's).\n- **Pilot's mutation paths** (REVERT, QUARANTINE, ACCEPT-AS-CANONICAL) are out-of-scope for this skill. cub-scout produces the classification; Pilot decides; the mutation lives in `cub` \u002F Argo \u002F Flux.\n\n## References\n\n- [`scout-attribute`](..\u002Fscout-attribute\u002FSKILL.md) — the underlying attribution capability (cub-scout side)\n- [`scout-compare`](..\u002Fscout-compare\u002FSKILL.md) — the Compare verbs that surface attribution\n- [`scout-verify`](..\u002Fscout-verify\u002FSKILL.md) — receipt persistence\n- [`investigate-drift`](..\u002Finvestigate-drift\u002FSKILL.md) — operator-driven counterpart (same evidence, different framing)\n- [`pilot-cd-gate`](..\u002Fpilot-cd-gate\u002FSKILL.md) — pre-deploy companion\n- [`pilot-watch-alert-response`](..\u002Fpilot-watch-alert-response\u002FSKILL.md) — real-time companion\n- [`pilot-incident-evidence`](..\u002Fpilot-incident-evidence\u002FSKILL.md) — postmortem companion\n- [`verified-manager-strings`](..\u002Freferences\u002Fverified-manager-strings.md) — the canonical manager-string list\n- [`kubernetes-managedfields`](..\u002Freferences\u002Fkubernetes-managedfields.md) — `managedFields` mechanics\n- Attribution layer: `#435` (parent), `#437` (A1+A1.5+A2 classifier + manager strings + git anchor), `#438` (C1 incoming binding), `#439` (C2 per-field binding source), `#440` (B raw-YAML file:line)\n\n## Constraints\n\n- Per-field `cause` classification requires `managedFields` present on the resource (K8s ≥ 1.18 default; some controllers strip it). When missing, classification degrades to resource-level.\n- The verified manager-string enumeration is a **whitelist**, not a heuristic. New controllers' manager strings need to be added to `pkg\u002Fagent\u002Fmanager_strings.go` (a `cub-scout` core change, not a Pilot-side patch).\n- `bindingSource` requires connected mode AND the resource being ConfigHub-linked via `cub link create`. Without that, `bindingSource: null` and Pilot drops to `cause` + `managerHint` alone.\n- `gitSource.file:line` requires `--source-path \u003Clocal-checkout>` to be passed AND the source to be raw YAML (not Helm\u002FKustomize templated). Templated sources only get the resource-level `repoUrl\u002Frevision\u002Fpath` anchor.\n- Pilot's action policy (revert vs quarantine vs accept-as-canonical) is **Pilot's call**. cub-scout produces the classification; the action mapping above is illustrative, not normative.\n",{"name":5,"phase":60,"description":7,"allowed-tools":61},"cross-cutting","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(.\u002Fcub-scout explain *) Bash(cub-scout explain *) Bash(cub scout explain *) Bash(.\u002Fcub-scout trace *) Bash(cub-scout trace *) Bash(cub scout trace *) Bash(.\u002Fcub-scout history *) Bash(cub-scout history *) Bash(cub scout history *) Bash(.\u002Fcub-scout receipt verify *) Bash(cub-scout receipt verify *) Bash(cub scout receipt verify *) Bash(.\u002Fcub-scout receipt show *) Bash(cub-scout receipt show *) Bash(cub scout receipt show *) Bash(.\u002Fcub-scout receipt validate *) Bash(cub-scout receipt validate *) Bash(cub scout receipt validate *) Bash(.\u002Fcub-scout receipt list *) Bash(cub-scout receipt list *) Bash(cub scout receipt list *) Bash(kubectl get *) Bash(kubectl describe *) Bash(kubectl get --show-managed-fields *) 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\u002Fpilot-patch-and-drift",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":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add confighub\u002Fcub-scout --skill pilot-patch-and-drift",{"tool":78,"command":79},"bunx","bunx skills add confighub\u002Fcub-scout --skill pilot-patch-and-drift",{"tool":81,"command":82},"pnpm","pnpm dlx skills add confighub\u002Fcub-scout --skill pilot-patch-and-drift","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fconfighub\u002Fcub-scout\u002Fblob\u002Fmain\u002Fskills\u002Fpilot-patch-and-drift\u002FSKILL.md",true,[],[87,126,152,172,193,214],{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":105,"publishedAt":55},"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",[95,100],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":101,"categoryName":102,"taxonomyType":103,"taxonomyTypeDesc":104},"01M8CFG3G6Y69CV4EDQ6TP8ZRC","生产事故响应与应急处置","SCENARIO","使用场景",[106,107,108,109,110,111,112,113,114,115,44,116,45,117,118,119,53,120,54,25,121,21,122,22,123,124,125],"triage","workload","triage unhealthy workload","kubernetes","diagnose","doctor","logs","ci","payments","api","loop","check","broken","question","rollout","route","map","get","now","when",{"skillNo":127,"name":128,"nameZh":129,"description":130,"descriptionZh":131,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":138,"publishedAt":55},"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",[134,135],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},{"categoryNo":136,"categoryName":137,"taxonomyType":103,"taxonomyTypeDesc":104},"01M8BZ2WH4NBXTF9JSG6FX83RP","审计准备与证据管理",[139,140,141,109,142,143,113,144,145,115,146,44,147,48,148,52,149,53,54,28,25,27,121,150,123,33,34,151,125],"verify","scout verify","scout","acceptance","produce","attestation","provenance","show me","postmortem","argocd","fix","me","managed",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":55},"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",[],[159,160,141,161,109,110,162,111,112,163,145,164,146,44,118,53,165,54,166,167,25,27,168,169,122,123,170,171,125],"observe","scout observe","bot","deployment","risk","inventory","version","only","hooks","back","health-check","resources","meaning",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":55},"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",[],[179,180,141,161,181,182,183,184,185,38,186,187,44,188,48,189,190,166,191,24,159,123,34,192,125],"MCP","scout mcp","mcp server","ai agent","auth","config","run","server","SET","model","read","snapshot","ready","agent-context",{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":55},"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",[],[200,201,141,109,110,38,202,143,203,187,164,204,146,44,48,205,119,189,206,52,53,166,159,25,27,207,208,209,32,33,34,210,211,212,213],"ingest","scout ingest","state","adoption","discovery","repo","write","structure","aggregator","adopt","reading","exported","invoke","parse",{"skillNo":215,"name":216,"nameZh":217,"description":218,"descriptionZh":219,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":220,"categories":221,"keywords":226,"publishedAt":55},"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",[222,223],{"categoryNo":96,"categoryName":97,"taxonomyType":98,"taxonomyTypeDesc":99},{"categoryNo":224,"categoryName":225,"taxonomyType":103,"taxonomyTypeDesc":104},"01M8BZH5MB524G1VPY18RBFWDJ","工程变更管理",[227,141,228,183,229,230,231,164,139,146,44,47,48,52,232,53,233,234,235,159,25,27,236,123,237,238,34,239,240,241,242,125],"scout govern","change","governance","blast radius","audit","catalog","diff","say","snapshots","project","mutation","impact","render","blast-radius","which","inspect"]