ADR-0015 — Kubernetes-style YAML resources
Status: Accepted
Context
Section titled “Context”Configuration must be readable by humans, editable by tools (write-back), validated by machines, and versioned over time.
Decision
Section titled “Decision”- Every file is a resource with
apiVersion,kind,metadata,spec. Current version:cicord.dev/v1alpha1. Kinds:Project,Server,Bot,Plugin. - Each kind has a JSON Schema in
spec/schemas/(draft 2020-12), usable by editors (yaml-language-server) for autocompletion. - Conventional layout:
cicord.yaml,servers/<key>.yaml,bots/<key>/bot.yaml; the resource key ismetadata.nameand must match the file/directory name. - Collections of named resources (roles, categories, channels) are maps keyed by stable key, not lists (ADR-0003).
- Breaking changes bump
apiVersion; acicord migratecommand (planned, not implemented yet) will convert files.
Consequences
Section titled “Consequences”- Familiar to the DevOps audience; for the general public the admin UI hides YAML.
- Status (sync/health) is not stored in files, unlike Kubernetes; it lives in the runtime.