/cub-scout:confighub-source-truthfrom cub-scout
Produces a strategy-typed verdict comparing ConfigHub, controller, and runtime agreement under a declared delivery strategy. Requires explicit --strategy flag and connected mode.
Ships in cub-scout. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The strategy-typed source-truth loop. The operator (or an acceptance kernel like Pilot) wants a deterministic verdict about whether ConfigHub / controller / runtime agree under a declared delivery strategy. cub-scout never infers the strategy — the user passes it; the verdict is then strategy-relative.
Composes compare source-truth --strategy <s> + the source-truth evidence contract + optionally receipt verify --strategy <s> (to persist the verdict as a fingerprinted artifact).
Requires connected mode (cub auth login).
Explicit phrasings:
git-argo strategy that ConfigHub matches the cluster"confighub-oci-flux strategy across the namespace"Implicit intents:
Git→Argo, ConfigHub→OCI→Flux, etc.) and wants to check itomissions[]-style contract is the whole point)investigate-drifttriage-unhealthy-workloadaudit-fleet-conformance (which itself can compose compare source-truth per resource, but the broader-scope skill is the right entry point)operator-incident-evidencecub-scout/#393-class issue.cub-scout's source-truth contract enumerates nine strategies (Phase 1 + Phase 2 from #393 and #418). The user MUST pick one:
| Strategy | Delivery chain | Controller |
|---|---|---|
confighub-oci-argo | ConfigHub authors a Unit → renders to OCI → Argo CD reads OCI → cluster | Argo |
confighub-oci-flux | Same authoring → Flux Kustomization reads OCI → cluster | Flux |
git-argo | Git → Argo CD → cluster (vanilla GitOps) | Argo |
git-flux | Git → Flux → cluster | Flux |
helm-argo | Helm chart → Argo as Helm renderer → cluster | Argo |
helm-flux | Helm chart → Flux helm-controller → cluster | Flux |
kustomize-flux | Kustomize base → Flux kustomize-controller → cluster | Flux |
oci-argo | OCI artifact (non-ConfigHub) → Argo → cluster | Argo |
oci-flux | OCI artifact (non-ConfigHub) → Flux → cluster | Flux |
Each strategy declares expected surfaces (which of ConfigHub / controller / runtime is required), expected controller kind (Argo vs Flux — never silently fall back), and strategy-implied authority (which surface is canonical for the comparison).
Pick by what's deployed, not by what's convenient. If the user can't name the strategy, the right answer is ASK (the contract's fourth status), not a guess.
cub-scout's source-truth contract emits two separate axes:
Status (cub-scout's evidence-quality verdict):
| Status | Meaning |
|---|---|
PASS | All required surfaces present, all required equalities hold, no proof gaps. Pilot may accept. |
WATCH | Mostly present and consistent, but at least one soft signal warrants confirmation. |
BLOCK | A hard rule fails (strategy mismatch, controller-source resolution failure). Must not accept. |
ASK | cub-scout cannot classify deterministically. Used when strategy is unknown or surfaces fundamentally cannot be compared. |
Verdict (cross-surface agreement, separate from status):
| Verdict | Meaning |
|---|---|
AGREED | The three surfaces line up under the declared strategy |
MISMATCH | At least one surface diverges from the strategy-implied authority |
INCOMPLETE | One or more surfaces missing required proof |
BLOCKED | cub-scout could not fetch one of the surfaces in read-only mode |
UNKNOWN | cub-scout has no opinion (used in ASK) |
Status and verdict ARE separate — a verdict can be MISMATCH while status is BLOCK (strategy violation) OR WATCH (soft mismatch with proof gaps). See pkg/agent/source_truth.go for the closed enums.
cub-scout status must report connected; source-truth is meaningless without all three surfaces.--strategy <name>. If they don't know, the answer is ASK + UNKNOWN.cub-scout compare source-truth <kind>/<name> -n <ns> --strategy <s> --format json.scout-compare.cub-scout receipt verify <kind>/<name> -n <ns> --strategy <s> --save produces a fingerprinted, immutable version Pilot or the audit log can attach to a decision. See scout-verify.$ cub-scout status --json
{
"mode": "connected",
"cluster_name": "default",
"context": "prod-use2",
"confighub_reads": true
}
confighub_reads is the answer: it is the verdict of the same gate compare source-truth itself uses. If it is false, refuse to claim a source-truth verdict and give the user confighub_reads_reason verbatim — it names the cause (an expired session, cub not installed, or ConfigHub reads turned off), and only one of those is fixed by cub auth login. Do not read the ConfigHub: mode line as the pre-flight: it describes hub.confighub.com and can say ● Connected while every connected command refuses, or ○ Offline against a self-hosted ConfigHub whose reads work. (Against v2.12.0 or earlier, which has no confighub_reads field, the mode line is all there is.)
Match the actual delivery chain. Look at:
argocd.argoproj.io/instance → Argo; kustomize.toolkit.fluxcd.io/name → Flux Kustomization; helm.toolkit.fluxcd.io/name → Flux HelmRelease)spec.source.repoURL — git URL vs OCI URL vs Helm chart URL)spec.sourceRef.kind — GitRepository vs OCIRepository vs HelmRepository vs Bucket)confighub.com/UnitSlug label, plus the unit's render target)cub-scout explain <kind>/<name> surfaces all these in one read. From there, picking the strategy is mechanical:
| You see... | Strategy is... |
|---|---|
| Argo + git source | git-argo |
| Argo + OCI source (ConfigHub-rendered) | confighub-oci-argo |
| Argo + OCI source (non-ConfigHub) | oci-argo |
| Argo + Helm source | helm-argo |
| Flux Kustomization + GitRepository | git-flux |
| Flux Kustomization + OCIRepository | confighub-oci-flux (if ConfigHub-managed) or oci-flux |
| Flux Kustomization (any source) | kustomize-flux (if specifically the kustomize rendering) |
| Flux HelmRelease | helm-flux |
$ cub-scout compare source-truth deploy/api -n prod --strategy git-argo --format json
{
"declared_strategy": "Git -> Argo -> Kubernetes",
"status": "PASS",
"source_truth": "AGREED",
"outlier": "unknown",
"surfaces": {
"confighub": {
"space": "payments",
"unit": "payments-api",
"revision": "42",
"url": "https://hub.confighub.com/p/payments/u/payments-api"
},
"controller": {
"kind": "Argo",
"source": "https://github.com/org/platform-config",
"revision_or_digest": "abc123def456",
"health": "Synced",
"multi_source": false
},
"runtime": {
"resource": "Deployment/api in prod",
"field": "spec.template.spec.containers[0].image",
"value": "ghcr.io/org/api:v2.3.0",
"health": "Ready"
}
},
"proof_gaps": [],
"safe_next_action": ""
}
The empty proof_gaps[] is the headline. status: PASS, source_truth: AGREED, all three surfaces present. Pilot accepts.
$ cub-scout compare source-truth deploy/api -n prod --strategy git-argo --format json
{
"declared_strategy": "Git -> Argo -> Kubernetes",
"status": "BLOCK",
"source_truth": "MISMATCH",
"outlier": "controller",
...
"proof_gaps": [],
"safe_next_action": "Argo is tracking a different revision than the controller-resolved git anchor; investigate the divergence before any apply."
}
status: BLOCK + outlier: controller = the controller is the surface diverging from the strategy-implied authority. The safe_next_action field names the next read-only step (never a mutation).
For Pilot acceptance kernels or audit trails:
$ cub-scout receipt verify deploy/api -n prod --strategy git-argo --save
saved: /home/user/.local/share/cub-scout/receipts/2026-05-22T10-30-00Z__source-truth-pass__Deployment-api__abc123.receipt.json
The receipt wraps the source-truth evidence (verbatim) in an in-toto Statement v1 envelope with a SHA-256 fingerprint. Strategy mismatch between the caller and the evidence body is itself a BLOCK + OmissionStrategyMismatch — see scout-verify.
Receipts are immutable. Same scope + same fingerprint at the same instant → same canonical filename → "already saved" warning (file unchanged).
This is the contract's central rule: identical observations get opposite verdicts under different declared strategies.
Example: an Argo CD Application reading from a git URL.
--strategy git-argo: PASS / AGREED. Argo reads Git; Git is the declared source; cluster matches Git. All good.--strategy confighub-oci-argo: BLOCK / MISMATCH (outlier: controller). The strategy declares Argo should be reading from a ConfigHub-rendered OCI artifact — not Git. Argo is the outlier.Same Argo, same git, same cluster, opposite verdict. Strategy declaration changes the question.
Lock that in your head: cub-scout doesn't grade the deployment — cub-scout grades it against the declared strategy. This is why --strategy is mandatory.
Even on PASS / WATCH outcomes, proof_gaps[] lists the things cub-scout couldn't fully verify:
controller.revision_or_digest — controller didn't expose its revision/digestconfighub.unit_revision — unit didn't have a revision number (rare; ConfigHub usually populates)runtime.helm_chart_anchor — Helm chart version not extractable from runtime (Phase 2 strategies; the chart-version extractor isn't fully wired — see #409)controller.multi_source — Argo spec.sources[] has len > 1; cub-scout uses index 0, can't verify equality across sourcesProof gaps are not failures. They're explicit non-claims (the same pattern as receipt omissions). Pilot reads them and decides whether to accept the verdict given the named gaps.
compare source-truth, compare three-way (for the broader DRY/WET/LIVE context); receipt verify --strategy --save, receipt show / list / validate; explain, trace, status; cub <entity> get / list for the entities named in allowed-tools; cub auth status; argocd app get, flux get.cub * create/update/delete, argocd app sync, flux reconcile, kubectl apply/edit/patch/delete, cub-scout demo / import apply. The verdict is evidence; remediation is the user's call (or Pilot's downstream).cub-scout's source-truth contract is the canonical input for Pilot, the architectural-triad acceptance judge tracked alongside cub-scout in #444. Pilot reads source-truth evidence + receipts and produces verdicts that gate CD / promotion / rollback / compliance.
For agent workflows wiring Pilot to cub-scout, see scout-mcp (Pilot can call compare_source_truth as an MCP tool) and the pilot-* skill set (planned in #444).
scout-compare — verb-group skill for the four Compare verbsscout-verify — receipts as fingerprinted evidencescout-govern — connected-mode trust surfaceaudit-fleet-conformance — fleet-wide composition over per-resource source-truth#393 (parent), #418 (Phase 2 enum expansion), #395 (producer fixtures)#410, #428pkg/agent/source_truth.go, pkg/agent/source_truth_logic.go (Derive)examples/connect-and-compare/#393-class issue and a code change. Don't claim cub-scout supports an unlisted strategy.helm-flux / helm-argo produce runtime.helm_chart_anchor proof gaps because the runtime extractor isn't fully wired. Surface the gap explicitly; don't pretend the verdict is comprehensive.confighub-oci-* strategies also have an unshipped equality (ConfigHub doesn't yet expose a rendered digest per unit revision). The status field is correct; the per-field digest equality lands once the ConfigHub-side field exists.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (confighub/cub-scout) — no native marketplace selected
npx claudepluginhub p/confighub-cub-scout35 skills in this plugin
/ai-agent-readonly-contextUse when the user is WIRING CUB-SCOUT INTO AN AI AGENT (Claude / Codex / a custom LLM workflow) and needs the patterns for read-only context, MCP gateway tools, deterministic context snapshots, and the prompt-shape that makes cub-scout's output reliable for LLMs. Natural phrasing: "set up cub-scout as a Claude tool", "expose cub-scout to my agent over MCP", "give the LLM a deterministic snapshot of this cluster", "what cub-scout patterns work well for AI agents?", "MCP config for cub-scout in Claude Code", "best practices for wiring cub-scout into Codex / Cursor / Continue", "AI-ready cluster context", "prompt template for cub-scout output". Composes `mcp serve` + `context-pack` + `--presentation ai` + the structured JSON contracts. Do NOT load for: a specific verb invocation (load the corresponding scout-* skill), authoring an MCP server in general (this is about wiring CUB-SCOUT specifically), or any mutating workflow (cub-scout never mutates; the read-only triad is the whole point of this skill)./audit-fleet-conformanceUse when the user wants to verify CONFORMANCE ACROSS A FLEET — multiple namespaces, multiple clusters, or a defined View scope. Natural phrasing: "which clusters are conformant?", "audit fleet conformance against this View", "show me all outliers in prod fleet", "compare every service against its source-truth strategy", "scope-wide three-way check for drift", "fleet-level compliance audit", "which deployments drift across the cluster?". Composes `compare three-way --view` + `compare source-truth` + `fleet outliers` for multi-resource / multi-cluster checks. Requires connected mode for the View + ConfigHub surfaces. Do NOT load for: a single resource (use investigate-drift), a triage (use triage-unhealthy-workload), incident evidence for one event (use operator-incident-evidence), or anything mutating./cub-scoutUse when working in the cub-scout repo or when answering capability-assistant questions ("can cub-scout do X?", "should I use cub-scout or kubectl here?", "how does cub-scout differ from cub?"). This is the umbrella router — it points you at the verb-grouped scenario skills under `skills/scout-*/` and the workflow / observer / reference skills planned for batches 2–5. For a specific verb-group task (observe / diagnose / compare / attribute / adopt existing config / govern / integrate / verify) load the corresponding `scout-*` skill directly./investigate-driftUse when the user wants to compare live and desired state and inspect available manager and source evidence. Natural phrasing: "why is this Deployment different from the git manifest?", "which recognized manager is recorded for this path?", "controller-drift or interactive-manager evidence?", "compare three-way + attribution for deploy/api". Composes `compare three-way` + `compare drift` + the attribution layer (`cause` / `managerHint` / `gitSource` / `bindingSource`). Do NOT promise who changed the value or which manager wrote last: path-level manager evidence is not time-ordered, and resource-level `explain` evidence is not field-specific. Do NOT load for: a triage where the workload won't start (use triage-unhealthy-workload), pure inventory (use scout-observe), generating a fingerprinted evidence artifact (use scout-verify and the no-manual-edits-since predicate), or any mutating fix (cub-scout never mutates)./migrate-from-kubectlUse when the user is MIGRATING from ad-hoc `kubectl apply` toward GitOps (Argo / Flux / ConfigHub) — and needs to find the manual edits, decide what to do with each (revert / port to git / accept as canonical), and plan the transition. Natural phrasing: "find all the manual edits in this cluster", "we have years of kubectl-apply, help us move to GitOps", "which resources have been hand-edited?", "audit drift caused by humans not controllers", "port my cluster state to git", "show me everything kubectl-* has touched". Composes attribution layer (`cause: manual-edit`) + `map orphans` (resources without a controller owner) + `scan` (risk classification) + `snapshot` / `import --git-path` preview once a repo skeleton exists. Read-only throughout — the migration itself is user-driven. Do NOT load for: real-time triage (use triage-unhealthy-workload), single-resource drift question (use investigate-drift), a fleet conformance audit (use audit-fleet-conformance), or any mutating action./observe-argocdUse when the user wants to observe ARGO CD-managed resources specifically — the controller-specific observer skill for Argo. Natural phrasing: "is this resource managed by Argo CD?", "show me Argo applications in this cluster", "trace this Argo-owned deployment back to source", "which ApplicationSet generated this app?", "did Argo apply the latest commit?", "explain the Argo CSA migration default", "what tracking-id annotation does Argo write?". Load whenever intent involves Argo CD specifically — Applications, ApplicationSets, sync status, tracking-id annotation, the kubectl-client-side-apply migration default, or Argo-as-deliverer-for-ConfigHub. Do NOT load for: generic ownership detection (use scout-observe), comparing live state to git (use scout-compare), the ConfigHub authoring side (use cub skills), or general Argo CRD authoring (Argo is a separate tool — this skill is about *observing* Argo-managed resources, not configuring Argo itself).Other plugins' skills for the same job