Skip to content

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

Closed

Description

@dan-petty

Problem or Motivation

docs/SRE.md (merged in #5488) mixes three kinds of text:

  • general SRE rules and methods that apply to each managed project;
  • decisions of the homelab environment: tiers, SLO objectives, accepted exceptions, the runbook index;
  • about 40 measured values with a read date: SLIs, budgets, alert counts, restarts, backups, nodes, dashboards, and 16 queries.

The production readiness extension draft has the same mix: 90 guideline rows and a hand-read state of each row. The owner directions of 2026-11-13:

  • split the details of the current environment from the general guidelines for this project and all managed projects;
  • some metrics come from programmatic analysis;
  • no agent updates each detail of the metric results and of the service layout by hand.

The owner decisions of 2026-11-13 also apply: live metric values and snapshots stay out of git (the published project review report, #4733, holds them); the gaps live in GitHub, not in tables in git; and the description of a service lives in one place.

Proposed Solution & Architectural Design

  1. Move docs/SRE.md to docs/guidelines/sre.md. Keep only the guideline text. Replace issue numbers, dates and environment paths with roles, such as "the catalog of the environment".
  2. Add docs/guidelines/production-readiness.md from the extension draft, and its line in docs/guidelines/index.md. Its Evidence column becomes "Measured by": a Scorecard check, a kube-linter check, a command or a query. It holds no state. The review steps take the readiness report of the launch branch (feat(roadmap): report production readiness in the project review #5537) as the record of a launch, not a hand copy of each row.
  3. Add k8s/catalog.toml: one entry for each service of the SRE spec, with its name, its Argo CD Applications, its tier, its data class and its dependencies. It holds no SLO id and no dashboard uid: the Sloth specs and k8s/monitoring/dashboards/services.toml hold them. It holds a description only for a service whose UI object carries no gethomepage.dev/description annotation: the 11 service UIs of feat(k8s): list each service UI on the start page #4600 get their description from that annotation, and until feat(k8s): list each service UI on the start page #4600 merges the catalog shows no description for them. The catalog generator (feat(k8s): generate the service catalog from the rendered Applications #5535) reads this file and the annotations.
  4. Add the section "Service levels" to k8s/README.md: a link to k8s/catalog.toml and no service table in prose, the SLO rows (SLI and objective) until feat(monitoring): define the Service SLOs in a Sloth spec #4709 moves them to the Sloth specs, the owner value of incident trigger 1 until feat(roadmap): add incident and supervise jobs that read the SLOs #5477 makes it a setting, the accepted exceptions, one line of runbook links, and one link to the gap tracker issue of SRE and production readiness.
  5. Hold no gap row in a document (owner decision of 2026-11-13). Each gap of the SRE spec (Table 8) and of the extension draft (Table 10) is a sub-issue of the gap tracker issue, or a task-list reference in it when the gap issue already has another parent. The issue type gives the change: docs for a spec change, feat or fix for a code change. When a gap issue closes, no document changes.
  6. Add the 4 rules for a live value change to the section "Homelab Values at Deploy Time" of k8s/README.md.
  7. Remove Current state, the queries, the Gaps section and every measured value. Link the service dashboards, devops prometheus rules, devops roadmap review run and the readiness report.
  8. Update the links in .nav.yml, docs/CLUSTER.md, docs/DESIGN.md, docs/index.md and k8s/README.md.

This item follows the amendments of PR #5492 (it adds docs/guidelines/index.md, the guideline test and the .nav.yml glob) and PR #5489. The gap tracker issue is filed before this pull request opens.

Target Subsystem

SDLC, Git & PR Governance

Existing Tool Considered

A docs change needs no tool. Sloth (#4709), kubernetes-mixin (#4993), KRR (#4992), OpenSSF Scorecard and the project review (#4714, #4692) give the values that this change removes from the text. GitHub sub-issues hold the state of each gap, so no document copies it.

Cost: about 400k tokens, about 1 agent-day.

Acceptance Criteria

  • tests/invariants/test_guidelines.py passes on both new guideline files: no issue number, no ISO date, no path of the environment tree.
  • uv run devops docs site build --strict passes, so no link is broken.
  • uv run devops docs check passes.
  • k8s/README.md "Service levels" links the gap tracker issue, and holds no gap row, no measured number and no service table.
  • Each gap of SRE.md Table 8 and of draft Table 10 that is open is a sub-issue of the gap tracker, or a task-list reference in it.
  • k8s/catalog.toml has one entry for each service of the old Table 2, no SLO id, no dashboard uid, and a description only for a service with no UI annotation of feat(k8s): list each service UI on the start page #4600.
  • No file links docs/SRE.md.

Activity

  1. added
    source/agent
    type/docs
    scope/monitoring
    status/new
    value/medium
    effort/medium
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 13, 2026
  4. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    The gap tracker of SRE and production readiness is #5541 (owner decision 4 of 2026-11-13).

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  6. removed
    status/in-review
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/monitoringsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions