Skip to content

docs(monitoring): split the SRE spec into a guideline and decisions - #5567

Merged
dan-petty merged 2 commits into
mainfrom
docs/5538-split-the-sre-spec
Nov 13, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/5538-split-the-sre-spec

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Move docs/SRE.md to docs/guidelines/sre.md, a guideline that applies with no change to each managed project. Principle 9 and the incident steps make the response event-driven: an event starts each job, and no service waits for it.

Add docs/guidelines/production-readiness.md from the draft. Each row names the check that measures it and holds no state.

k8s/catalog.toml holds the tier, data class and dependencies of each service. "Service levels" in k8s/README.md holds the decisions of this cluster and links tracker #5541. No document holds a measured value or a gap row.

The guideline index, the Guidelines tab and the guideline test are the same files as in #5492.

Closes #5538

Change: openspec/changes/archive/2026-11-13-5538-split-the-sre-spec/

Move docs/SRE.md to the SRE guideline and the production readiness
draft to the production readiness guideline. Each row names the check
that measures it, and no document holds a measured value or a row state.
Add k8s/catalog.toml and the Service levels section of k8s/README.md
with the decisions of this cluster and a link to tracker #5541.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards labels Nov 13, 2026
@dan-petty dan-petty changed the title docs(monitoring): split the SRE spec into a guideline docs(monitoring): split the SRE spec into a guideline and decisions Nov 13, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 23:08
@dan-petty

Copy link
Copy Markdown
Owner Author

What this PR changes, by the design of the spec split and the owner decisions of 2026-11-13

Bottom line. docs/SRE.md is now two guidelines and the decisions of this cluster. No document holds a measured value, a read date, a row state or a gap row.

Table 1. The steps of the PR plan for #5538.

Step What this PR does
1. SRE guideline docs/SRE.md moves to docs/guidelines/sre.md. It keeps the scope, the principles, the catalog method, the SLO defaults, the burn-rate table, the notifications, the default incident triggers, the incident steps, the postmortems, toil, change safety, the error budget policy, deprecation, backups, capacity planning, the runbook rule, the cadence, rules SRE1 to SRE9 and the sources. Issue numbers, dates and environment paths become roles. Current state, the queries, Table 6, Table 7 and the gap table are gone.
2. Production readiness guideline docs/guidelines/production-readiness.md comes from the draft checklist. The Evidence column is now "Measured by": a Scorecard check, a kube-linter check, a devops command, a query or a file. The evidence column of readiness-state.tsv seeded it; no state is copied. A row that no program reads says manual. PRR step 2 and EVD-1 take the readiness report of the launch branch, posted on the launch PR, as the record.
3. Catalog data and "Service levels" k8s/catalog.toml has 22 entries with name, applications, an optional workloads list, tier, data_class and depends_on where known. No SLO id and no dashboard uid. "Service levels" in k8s/README.md links the file (no service table), holds the 5 SLO rows until #4709, the owner value 14.4x of trigger 1 until #5477, the page budget of one owner, the accepted exceptions, one line of runbook links, and a link to tracker #5541.
4. Live value rules The 4 rules of the draft are in "Homelab Values at Deploy Time". I left out the sentence that names #5221, because it is a gap reference.
5. SDLC sentence "A Service repository extends the shared preset ... when it is onboarded", with no count and no issue number.
6. Links .nav.yml, docs/CLUSTER.md, docs/DESIGN.md, docs/index.md and k8s/README.md link the guideline. No file links docs/SRE.md.
7. Admission policy comment Not in this PR.

Table 2. The owner decisions of 2026-11-13.

Decision How this PR applies it
1. Catalog check optional Row OWN-1 names "the catalog check of the environment" and no required check.
2. Live values stay out of git The SLIs, budgets, alert counts, restarts, backups, node facts and the 16 queries are gone. "Service levels" points to the service dashboards, devops prometheus rules and devops roadmap review run.
3. Dependabot security updates Not in this PR (#5539).
4. Gaps in GitHub The gap rows of SRE.md Table 8 and draft Table 10 are gone. "Service levels" links tracker #5541. The guidelines name no tracker.
5. One description for each service 9 entries have a Homepage UI of dan-petty/homelab#338 and no description: llm-gateway, ingress (Traefik), argocd, qdrant, prometheus, grafana, alloy, gitea, mattermost. The other 13 entries have a description.

Other choices to know

  • Your "async and event-driven" request. Principle 9 of the SRE guideline: an alert, a deploy or a schedule starts each automated step, no service waits for it, and a scheduled pass finds the work of a lost event. The incident response section adds the job steps: an Alertmanager webhook receiver starts the job, the same job runs on a schedule, and the SLO or the alert is the key of the record, so a repeated notification opens no second incident. The job rules stay in the agentic jobs and Kubernetes guidelines (AW-J7, R8).
  • New row OWN-7 (recommended): AGENTS.md routes to the guideline index (design section 3.3). The guideline has 91 rows.
  • Catalog values of the data classes. The data class table of the SRE guideline has a column "Catalog value": external, derived, owned, telemetry and a new none for a service that keeps no data.
  • Entries split. The rows of Table 2 that named several products became one entry for each product. The planned rows (object store, browser service) are gone. model-tiers uses workloads = ["ollama-*"], so a new tier needs no edit.
  • Comment on feat(k8s): generate the service catalog from the rendered Applications #5535: feat(k8s): generate the service catalog from the rendered Applications #5535 (comment). It gives 4 facts for the generator: glob patterns, operator objects as workloads, UI objects in Application ingress, and two UIs in the alloy entry.
  • New table numbers in the SRE guideline. Table 2 is the burn-rate table (was 4), Table 3 the data classes (was 5), Table 4 the cadence (draft 9). Rules SRE1 to SRE9 keep their ids. Rule SRE1 now says "an entry in the catalog data".
  • Roadmap Service rollout. The Recreate sentence of SRE.md moved to "Roadmap service" in docs/CLUSTER.md (design section 2.1, rollouts bullet). The draft sentence "a job of the roadmap Service stays in this repository" is now general in the guideline, so docs/ROADMAP_WORKFLOW.md, which docs(ai): add the agentic jobs guideline and the job decisions #5489 changes, does not change here.

Shared files with #5492 and #5489. tests/invariants/test_guidelines.py and the Guidelines tab of .nav.yml are byte for byte the files of #5492. docs/TESTING.md adds the same entry, on top of the current main, which also lists test_cli_elapsed_line.py. git merge-tree shows these conflicts: with #5492 in docs/CLUSTER.md (line 3), docs/SRE.md (#5492 edits it, this PR moves it), docs/TESTING.md, docs/guidelines/index.md and docs/index.md; with #5489 only in docs/guidelines/index.md. The PR that merges later rebases and keeps each index line. When #5492 merges first, its two docs/SRE.md link edits go into docs/guidelines/sre.md as links to kubernetes.md.

Checks

Check Result
Guideline test on the old docs/SRE.md and the draft checklist Fails, as it should (issue numbers, dates, k8s/ paths, state row ids)
uv run devops ci --check --only lint,format,domain,docs,openspec Pass
uv run --group docs devops docs site build --strict Pass (114 pages)
uv run devops ci test tests/invariants tests/docs Pass after the docs/TESTING.md fix (995 tests)
k8s/catalog.toml: each Application exists in k8s/argocd/apps/, each depends_on names an entry Pass
Pre-commit and pre-push hooks (no --no-verify) Pass

@dan-petty
dan-petty merged commit 75db146 into main Nov 13, 2026
26 checks passed
@dan-petty
dan-petty deleted the docs/5538-split-the-sre-spec branch November 13, 2026 23:50
dan-petty added a commit that referenced this pull request Nov 14, 2026
The owner directions of 2026-11-13 replace the measured baseline of the
first draft: the guideline applies with no change to each managed
project, programs give the metrics, and no agent updates a measured
value by hand.

- Add docs/guidelines/kubernetes.md with the targets, each with the
  alert, report, check or metric that measures it, the tuning loop, the
  tune-down formula, the A/B method, the area rules, a probe rule and a
  batch Job rule (asynchronous, started by an event or a schedule, safe
  to run again on the same event).
- Add "Capacity targets" to k8s/README.md with the decisions of this
  cluster and a link to gap tracker #5542.
- Add the line of the guideline to docs/guidelines/index.md and
  docs/index.md, link it from docs/CLUSTER.md and
  docs/guidelines/sre.md, and add the terms "Managed project" and
  "Guideline". PR #5567 added the index, the Guidelines tab and
  tests/invariants/test_guidelines.py first.
dan-petty added a commit that referenced this pull request Nov 14, 2026
Move the agentic workflow spec to `docs/guidelines/agentic-jobs.md`, a
guideline that applies with no change to each managed project. It keeps
the default targets, the job model, the measure of a job, the tuning
loop, the model, context, tool and eval methods, and the AW rules. P10
and AW-J7 make each job asynchronous and event-driven.

The method parts of `docs/roadmap/job-success.md` move into the
guideline. That page keeps the result line contract and the grade table.

"Agentic jobs in devops-cli" in `docs/ROADMAP_WORKFLOW.md` holds the
decisions of devops-cli and links gap tracker #5543. No document holds a
measured value or a gap row.

The change adds the line of the guideline to the guideline index of
#5567. The guideline test of #5567 checks the guideline.

Closes #5443

Change:
`openspec/changes/archive/2026-11-13-5443-add-the-agentic-workflow-spec/`
dan-petty added a commit that referenced this pull request Nov 14, 2026
The owner directions of 2026-11-13 replace the measured baseline of the
first draft: the guideline applies with no change to each managed
project, programs give the metrics, and no agent updates a measured
value by hand.

- Add docs/guidelines/kubernetes.md with the targets, each with the
  alert, report, check or metric that measures it, the tuning loop, the
  tune-down formula, the A/B method, the area rules, a probe rule and a
  batch Job rule (asynchronous, started by an event or a schedule, safe
  to run again on the same event).
- Add "Capacity targets" to k8s/README.md with the decisions of this
  cluster and a link to gap tracker #5542.
- Add the line of the guideline to docs/guidelines/index.md and
  docs/index.md, link it from docs/CLUSTER.md and
  docs/guidelines/sre.md, and add the terms "Managed project" and
  "Guideline". PR #5567 added the index, the Guidelines tab and
  tests/invariants/test_guidelines.py first.
dan-petty added a commit that referenced this pull request Nov 14, 2026
…5492)

This adds `docs/guidelines/kubernetes.md`, the Kubernetes guideline,
which applies with no change to each managed project. The owner
directions of 2026-11-13 replace the measured baseline: programs give
the metrics, and no agent updates a measured value by hand.

- Each target names the alert, report, check or metric that measures it.
A probe rule and a batch Job rule (asynchronous, started by an event or
a schedule, safe to run again) are new.
- The measured state, the node tables, the queries and the gap table go.
- "Capacity targets" in `k8s/README.md` holds the decisions of this
cluster and links gap tracker #5542.
- The guideline index, `docs/index.md`, `docs/CLUSTER.md` and the SRE
guideline link the guideline. The terms "Managed project" and
"Guideline" are new.
- `tests/invariants/test_guidelines.py` of #5567 checks the guideline.

Closes #5444

Change:
`openspec/changes/archive/2026-11-13-5444-add-the-kubernetes-performance-tuning-spec/`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/monitoring Grafana, Prometheus, Loki, alerts and dashboards type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(monitoring): split the SRE spec into a guideline and decisions

1 participant