# Operations domain — schema The operations domain holds the procedural and time-stamped documentation: runbooks (repeatable procedures), investigations (incident evidence), and plans (design docs for non-trivial work). It follows [writing-style](../../shared/writing-style.md); runbooks and plans use the imperative voice exception. ## Plans always live in `plans/` **Any plan or design doc for the Homelab is written into the repo `plans/` folder as `plans/YYYY-MM-DD-slug.md` — never a scratch path, an agent-private plan location, or a chat message.** An agent drafting a plan: 1. Writes the file under `plans/` using the plan template in [page-templates.md](../../shared/page-templates.md). 2. Lists it in `plans/index.md`. 3. On completion, moves it to `plans/done/` and updates the index status. This is the single source for homelab design intent; keeping it in-repo means the plan is versioned, reviewable, and reachable by MCP `get_page`/`search_docs` like any other doc. ## Runbooks Repeatable procedures live in `runbooks/.md` with YAML front-matter that the Oikos policy and lifecycle machinery reads: ```yaml --- name: risk_class: read_only | reversible_low | config_mutation | destructive inputs: [, ...] verification: "" docs_update_checklist: [] transition: " -> " # only for lifecycle runbooks --- ``` `risk_class` values and the lifecycle `transition` states must match [`oikos/policy.yaml`](../../../oikos/policy.yaml) and [`oikos/ontology.yaml`](../../../oikos/ontology.yaml). ## Investigations Incident records live in `investigations/YYYY-MM-DD-slug.md` and are **evidence sources** — written once at incident time, then linked from the changelogs of the nodes they implicate. Sections: `## Summary`, `## Timeline`, `## Root cause`, `## Mitigations applied`, `## Open questions`. Resolved incidents move to `investigations/archive/`. ## The operations log `plans/log.md` and `investigations/log.md` are append-only records of documentation operations on those areas (`## [YYYY-MM-DD] | `), distinct from the Oikos change ledger.