feat(gitops): add flux-diagnose for read-only Flux reconcile checks

flux-diagnose reports source, Kustomization and HelmRelease state,
answers "has this commit been applied yet?" with bounded polling (a cap
counted in 60-second kubectl wait pauses, never flux reconcile), and
walks a failure down the source -> Kustomization -> HelmRelease chain,
handing workload problems to k8s-diagnose. Read tier only; it uses the
caller's kubeconfig and never looks for credentials.

gitops 0.2.0; the package description now covers live reconcile state.

Refs: #194

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-24 20:34:42 +00:00
1 parent 67e2523252
commit 2a6eea3db1
6 files changed
+362 -2

No files matched your search

@@ -0,0 +1,19 @@
# Sources
## adr-0032-action-tiers
- **URL:** (repo decision record — not a plugin research corpus entry)
- **Description:** The five action tiers (Read, Propose, Apply-by-merge, Odd job, Never), the `view`-ClusterRole kubeconfig that excludes Secrets, and the rule that every infrastructure change applies by approved merge. Grounds the tier table, the access gate, and "never apply a fix".
- **Research doc:** none — repo decision record, not a plugin research corpus entry
- **Basis:** docs/adr/0032-credentials-not-hooks-are-the-agent-safety-boundary.md
- **Contributing files:** SKILL.md, references/applied-check.md, references/diagnose.md, references/status.md
- **Status:** `extracted`
## delivery-guard-flux-allowlist
- **URL:** (repo code — not a plugin research corpus entry)
- **Description:** The delivery guard hook's `flux` read-verb allowlist and its denials (`flux debug --show-values/--show-vars`, `flux export --with-credentials`, live `flux diff`, every mutating verb), its `ask` on `flux reconcile`, and the `kubectl` read verbs including `wait`. Every command the skill names stays inside it.
- **Research doc:** none — repo code, not a plugin research corpus entry
- **Basis:** plugins/delivery/.apm/hooks/guard.py
- **Contributing files:** SKILL.md, references/applied-check.md, references/diagnose.md
- **Status:** `extracted`