/cub-scout:pilot-compliance-auditfrom cub-scout
Synthesizes a periodic compliance audit report by consuming cub-scout's source-truth comparisons, scan findings, and receipts into a violations table with fingerprinted evidence inventory. For quarterly/monthly reporting cycles, not real-time gates.
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 periodic compliance-audit scenario from Pilot's side. A quarterly/monthly audit window opens; Pilot is asked to render a structured compliance report with per-resource violations + their fingerprinted evidence. The downstream consumer is the auditor (internal security/compliance team, external auditor, SOC 2 reviewer, regulator) — not the SRE team running the cluster.
Same cub-scout verbs as pilot-fleet-conformance, different framing: that skill is the operational verdict (today's snapshot, today's decision); this skill is the compliance shape (last quarter's evidence, an auditor's report). The output cadence is longer; the evidence-attachment requirement is stricter.
Explicit phrasings:
Implicit intents:
pilot-cd-gatepilot-fleet-conformance. Same verbs; different framing.pilot-watch-alert-responsepilot-incident-evidencepilot-rollback-decisionpilot-promotion-gate quarterly compliance window opens (cron / manual trigger)
│
▼
Pilot (acceptance judge in compliance-report mode)
│ "render Q2 2026 compliance report for view:prod-baseline"
│
├──► cub-scout views resolve <baseline-view> # scope confirmation
│
├──► For each resource in scope:
│ cub-scout compare source-truth <r> -n <ns> --strategy <s> --format json
│ cub-scout scan -n <ns> --format json # risk-pattern matches per resource
│ cub-scout receipt verify <r> -n <ns> --strategy <s> \
│ --save # fingerprinted, persisted to local store
│
├──► Cross-cluster (if View has cluster scope):
│ cub-scout fleet outliers --view <baseline-view> --format json
│
├──► Audit-trail layer:
│ cub-scout audit list --since 90d --format json # ConfigHub audit entries
│ cub-scout receipt list --format json # full receipt inventory
│
└──► (optional) chain ALL per-resource receipts under one aggregate:
# When #448 aggregate-with-discovery half ships, this collapses to one call.
# Until then: produce one receipt per resource; the report inventory links each.
│
▼
Pilot's compliance report:
│ Compliant resources: <list with PASS receipts>
│ Compliant-with-caveats resources: <list with WATCH receipts + proof_gaps>
│ Non-compliant resources: <list with BLOCK receipts + violation reason>
│ Insufficient-evidence resources: <list with INCONCLUSIVE receipts + omissions>
│ Audit-trail (last 90d): <ConfigHub change events that touched the scope>
│ Receipt inventory: <fingerprint-stable file paths per resource>
│
▼
auditor reads the report
│ Auditor can `cub-scout receipt validate <path>` any individual entry to confirm tamper-free
└────────────────────────────────────────────────────
Auditors typically don't speak PASS / WATCH / ASK / BLOCK. Map cub-scout's receipt verdicts to compliance vocabulary at the report-rendering layer:
| Receipt verdict | Compliance category | Auditor-facing meaning |
|---|---|---|
PASS | Compliant | Evidence supports the claim against the declared strategy / baseline |
WATCH | Compliant with caveats | Evidence is ambiguous; proof_gaps listed; the auditor can decide whether the gaps invalidate compliance |
BLOCK | Non-compliant | Evidence contradicts the claim — a real violation |
INCONCLUSIVE | Insufficient evidence | The receipt couldn't be built (missing strategy, missing input); the auditor needs the cube-scout-side fix or a manual review |
ASK is a source-truth status value, not a receipt verdict. When it surfaces during the audit, the wrapping receipt has verdict WATCH (per pkg/agent/receipt_predicates.go:396-407); Pilot's compliance report should list the auditor-facing meaning consistently.
A View is the canonical compliance scope (declared in ConfigHub via cub view create):
$ cub-scout views resolve https://hub.confighub.com/views/prod-baseline-q2-2026
View: prod-baseline-q2-2026
scope: cluster
columns: [team, service, source_truth_strategy, last_audited]
resolved at: 2026-05-22T22:00:00Z
Scope sources for compliance: ConfigHub Views (preferred — declared scope is auditable), namespace, cluster. Avoid ad-hoc resource lists for periodic compliance — they're harder to defend later.
# Per-resource source-truth verdict against the baseline's declared strategy
$ for r in $(cub-scout views project --view prod-baseline-q2-2026 --format json \
| jq -r '.[] | "\(.kind)/\(.name) -n \(.namespace)"'); do
cub-scout compare source-truth $r --strategy git-argo --format json \
> evidence/$r-source-truth.json
done
# Risk-pattern scan (CVE, expiring certs, dangling resources, etc.)
$ cub-scout scan --format json > evidence/scan-findings.json
# Fingerprinted per-resource receipts (immutable; survive the audit window)
$ for r in $(cub-scout views project --view prod-baseline-q2-2026 --format json \
| jq -r '.[] | "\(.kind)/\(.name) -n \(.namespace)"'); do
cub-scout receipt verify $r --strategy git-argo --save
done
Each receipt lands in the immutable local store ($CUB_SCOUT_RECEIPTS_DIR → $XDG_DATA_HOME → $HOME/.local/share/cub-scout/receipts) with a canonical filename. Auditors can validate any receipt months later with cub-scout receipt validate.
$ cub-scout audit list --since 90d --format json > evidence/confighub-audit.json
$ cub-scout fleet outliers --view prod-baseline-q2-2026 --format json > evidence/fleet-outliers.json
audit list (connected) captures break-glass accept/reject entries from ConfigHub — the human-decision audit trail that paired with the per-resource verdicts during the quarter. fleet outliers flags cross-cluster divergences against the baseline.
Pilot's compliance report shape:
{
"report_type": "quarterly_compliance",
"audit_window": "Q2 2026 (2026-04-01 → 2026-06-30)",
"scope": "view:prod-baseline-q2-2026",
"declared_strategy": "git-argo",
"rollup": {
"compliant": 184,
"compliant_with_caveats": 12,
"non_compliant": 3,
"insufficient_evidence": 1
},
"non_compliant": [
{
"resource": "Deployment/payments-cron in prod-use1",
"verdict": "BLOCK",
"reason": "source_truth=MISMATCH; manual-edit detected on container image",
"receipt": "/path/to/receipts/2026-Q2/payments-cron.receipt.json"
},
{"resource": "Deployment/legacy-api in prod-euw1", "verdict": "BLOCK", "reason": "fleet outlier: missing per-cluster baseline", "receipt": "/path/to/..." }
],
"compliant_with_caveats": [
{"resource": "Deployment/api in prod-use1", "verdict": "WATCH", "proof_gaps": ["git-source-anchor unresolved: argocd CLI not installed"], "receipt": "/path/to/..."}
],
"insufficient_evidence": [
{"resource": "Deployment/legacy-tool in prod-use1", "verdict": "INCONCLUSIVE", "omissions": ["managedFields"], "receipt": "/path/to/..."}
],
"audit_trail_entries": "evidence/confighub-audit.json (90 entries)",
"scan_findings": "evidence/scan-findings.json (4 critical, 12 warning, 31 info)",
"fleet_outliers": "evidence/fleet-outliers.json (2 outliers)",
"evidence_inventory": "evidence/receipt-list.json (200 receipts; all fingerprint-verifiable)"
}
The auditor receives the report + the evidence/ directory. To validate any individual receipt:
$ cub-scout receipt validate evidence/non-compliant/payments-cron.receipt.json
# exit 0 = fingerprint intact; 1 = mismatch; 2 = I/O
$ cub-scout receipt show evidence/non-compliant/payments-cron.receipt.json --format ascii
# Renders the same evidence Pilot's report cited — tamper-evident
Pilot's report is only as durable as the receipt store — auditors typically want the evidence/ directory archived externally (S3, GitHub Release artifact, ConfigHub bundle catalog) for the retention period.
Q2 2026 compliance run; scope = view:prod-baseline-q2-2026; strategy = git-argo.
$ mkdir -p evidence/{non-compliant,with-caveats,inconclusive}
# Per-resource receipts (saved to immutable store + linked into evidence/)
$ for r in $(cub-scout views project --view prod-baseline-q2-2026 --format json \
| jq -r '.[] | "\(.kind)/\(.name) -n \(.namespace)"'); do
cub-scout receipt verify $r --strategy git-argo --save 2>/dev/null
done
# Categorize by verdict
$ cub-scout receipt list --format json \
| jq '[.[] | select(.verdict == "BLOCK")]' > evidence/non-compliant.json
$ cub-scout receipt list --format json \
| jq '[.[] | select(.verdict == "WATCH")]' > evidence/with-caveats.json
$ cub-scout receipt list --format json \
| jq '[.[] | select(.verdict == "INCONCLUSIVE")]' > evidence/inconclusive.json
# Audit-trail + scan + fleet outliers
$ cub-scout audit list --since 90d --format json > evidence/audit.json
$ cub-scout scan --format json > evidence/scan.json
$ cub-scout fleet outliers --view prod-baseline-q2-2026 --format json > evidence/outliers.json
# Rollup
$ jq 'length' evidence/{non-compliant,with-caveats,inconclusive}.json
3
12
1
Pilot's report cites the 3 non-compliant resources by name + their receipts + their violation reasons; the WATCH/INCONCLUSIVE lists fill in the caveats; the audit-trail / scan / outliers layers give the auditor the cross-axis evidence. Total artifact count: 200 receipts (one per resource in scope) + 3 supporting JSON files. All fingerprint-verifiable.
Connected mode is effectively required for compliance audits:
compare source-truth --strategy — connectedviews resolve / views project — connectedfleet outliers — connectedaudit list — connectedreceipt verify --strategy source-truth-pass — connectedStandalone-mode compliance is narrower (no View scope; no ConfigHub audit trail; no fleet-outlier dimension) and rarely useful for an external auditor. If standalone is the only option, Pilot's report should call out the limitation explicitly so the auditor knows what's missing.
scan, patterns, fleet outliers, views resolve / project, receipt verify / show / validate / list, map, audit list. All read-only.kubectl get/describe. NOT kubectl apply / edit / patch / delete.cub <entity> get / list for the entities named in allowed-tools. NOT cub * create / update / delete.pilot-patch-and-drift or pilot-rollback-decision — those skills handle Pilot's mutation path. This skill stops at the report.pilot-fleet-conformance — same verbs, operational (same-day) framing instead of compliance (periodic) framingscout-compare — Compare verbsscout-verify — receipt persistence + validationscout-govern — fleet, views, audit, summaryaudit-fleet-conformance — operator-side counterpartscout-attribute — per-field attribution for violation explainability#393, #418 (Phase 2 strategies)#446 (v1), #463 (v2 surface)references/read-only-triad.mdpilot-watch-alert-response for the event-driven side.#463); cryptographic signing is a future hardening direction. Auditors who require non-repudiation need the future signing layer — flag this in the report.$XDG_DATA_HOME/cub-scout/receipts is per-host. For multi-host compliance pipelines, Pilot should archive each run's evidence/ directory externally (S3, ConfigHub bundle catalog, GitHub Release artifact) for the retention period.scan covers ~46 built-in risk patterns; bespoke policies (custom CIS benchmarks, SOC 2 controls) need either custom patterns (out of cub-scout scope) or a policy engine (Kyverno, OPA Gatekeeper) that this skill doesn't replace.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.Other plugins' skills for the same job