Architecture
See how ClusterPilot separates intent, control, execution, persistence, and evidence.
Exact release scope. This page documents the reviewed v0.0.1 source at fcc5871. Check release status before enabling a gated capability.
System boundary
PostgreSQL stores durable control-plane state. The configured artifact provider stores logs, command evidence, reports, and downloadable bundles. Secret values cross only the approved materialization boundary and should never appear in DTOs, events, logs, URLs, or support output.
Component responsibilities
| Component | Owns | Does not own |
|---|---|---|
| API | Authentication, authorization, validation, idempotency, read models, admission, audit. | Long-running provider or host commands. |
| Workers | Scheduling, state projection, recovery, retention, background verification. | Unbounded command execution on target nodes. |
| Lifecycle agent | Compatible assigned work, isolated command execution, event/evidence upload, cleanup. | Policy approval or broad autonomous discovery. |
| Provider adapter | Provider-specific validation, discovery, plans, and API calls. | Kubernetes bootstrap semantics. |
| Cluster lifecycle | Node preparation, kubeadm, CNI, scale, upgrade, replace, delete. | Provider credential storage outside the secret boundary. |
| Artifact store | Durable evidence blobs and integrity metadata. | Primary relational state. |
Request-to-evidence flow
- 01
Admit
Authenticate, authorize, validate schema, resolve tenant/workspace scope, and require idempotency where applicable.
- 02
Plan
Create stable resource intent, step order, inputs, compatibility decisions, and a reviewable diff.
- 03
Gate
Apply feature flags, maturity policy, quota, provider, agent, destructive-action, and approval checks.
- 04
Assign
Match the run contract to an active compatible agent and deliver bounded work.
- 05
Project
Ingest ordered events, logs, command and step results; update the durable run read model idempotently.
- 06
Retain
Store redacted evidence, checksums, audit records, and cleanup/recovery state under explicit retention.
Failure and recovery boundaries
Read paths do not trigger hidden mutation. A failed operation remains inspectable and is never rewritten as successful. Retry creates or resumes work only where the run contract permits it; cancellation is a request that remains non-terminal until owned cleanup completes.
Trust model
- ✓Every customer deployment defines its own operator, control, execution, target, registry, and persistence trust zones.
- ✓TLS validates endpoints and identities; private CA and mTLS modes require explicit trust material.
- ✓RBAC and feature gates are independent. A permitted role cannot call a disabled or unapproved capability.
- ✓Release signatures, digests, SBOM, provenance, and compatibility metadata identify what is allowed to run.
- ✓Audit and evidence support review; they do not automatically certify regulatory compliance.