1. Goals¶
Shadewright is a safe-remediation controller for Kubernetes clusters run with GitOps.
The diagnosis, from rules or a model, is an input. The product is the control of what happens with it.
Shadewright does these steps:
- Watches events, object status and basic metrics in selected namespaces.
- Groups repeated symptoms into incidents.
- Prepares a diagnosis backed by evidence, and a proposed fix.
- Records the proposed fix as a typed
RemediationRequest. - Checks it against deterministic policy.
- For declarative changes, opens a pull request in the GitOps repository.
- Waits for human approval, or enables auto-merge where policy allows it.
- Watches the GitOps controller roll the change out and checks the real effect.
The model helps analyse. The Go controllers own permissions, process state, validation and execution.
A model response is never, on its own, authorization to change anything.
Non-goals for the MVP¶
- Direct writes to the cluster (
apply,patch,exec,delete). This includes writes as a fallback when a PR fails. - Changes to cloud infrastructure outside the GitOps repository.
- Multiple clusters.
- Multiple Git providers at the same time.
- Self-hosted models.
- Fine-tuning or a vector database.
First scope¶
- One cluster.
- A few namespaces.
- One GitOps repository on GitHub, synced by Flux.
- A small catalog of fixes.
Azure DevOps and Argo CD come later, behind the same interfaces (ADR-0004).