Skip to content

docs(sre): add the SRE service spec #5445

Closed

Description

@dan-petty

Problem or Motivation

The owner asked on 2026-11-13 for three project specs: SRE service implementation, Kubernetes performance tuning, and agentic workflow implementation and tuning. This item is the first spec.

The SRE rules of the project are in many places today: the dashboard rules in docs/DESIGN.md, the cluster rules in docs/CLUSTER.md and k8s/README.md, the telemetry rules in docs/TELEMETRY.md and SECURITY.md, the pipeline jobs in docs/roadmap/, and owner decisions that are only in issues: the SLOs of 2026-11-11 (99 % roadmap round success, 90 % of Jobs under 3,600 s, LLM gateway 99.5 % availability and 95 % of requests under 60 s), Sloth for the SLO rules, the incident triggers of the SRE workbook, the Recreate rollout with a 600 s drain, the ConfigMap order for a removed setting and the Secret order for a new Secret reference. No document gives the service catalog, the SLI and SLO of each service, the alert routing, the incident and postmortem process, the backups, the capacity plan and the gaps with their issues. So an agent that adds a service, an alert or a rollout does not know what "good" is or which gap already has an issue.

Proposed Solution

Add docs/SRE.md, a normative spec in the form of docs/DESIGN.md:

  1. Purpose and scope: the services that the project runs in the cluster.
  2. Principles: SLOs drive the work, alerts on symptoms, GitOps for each change, automation before toil, blameless postmortems.
  3. The target with numbers: the SLO, error budget and burn-rate alerts of each service.
  4. The current state, measured from Prometheus, Loki, the alert rules and the manifests, with the query and the date.
  5. The method: the service catalog, SLIs and SLOs with Sloth, golden-signal dashboards, alert routing and notification, incident response with the incident and supervise jobs, postmortems, toil, release and change safety, backups and restore tests, capacity planning and runbooks.
  6. The rules that agents and jobs follow, each as a link to the document that owns it where one exists.
  7. A gap table: each gap with an existing issue or "new issue needed".

Register the document in the docs site and docs/index.md, and link it from the documents that route to it.

Acceptance Criteria

  • docs/SRE.md exists with the seven parts above, in ASD-STE100, with no host name, node name, address, domain or local path.
  • Each measured number gives its query and its date.
  • Each rule that another document owns is a link, not a copy.
  • uv run devops docs check and uv run devops ci --check --only lint,format,docs,openspec,domain pass.

Target Subsystem

Kubernetes & Minikube Automation

Existing Tool Considered

The spec is a document, not code. It cites the primary sources: the Google SRE book and workbook (SLOs, error budgets, alerting on SLOs, incident response, postmortems, toil), the Sloth documentation, the Prometheus and Alertmanager documentation, and the Argo CD and Kubernetes documentation. Cost to write (estimate): 0.6 M tokens and 2 hours. Keep: one update for each changed SLO, alert or service. Fix: about 0.05 M tokens for each wrong rule.

Related

#4709 (Service SLOs in a Sloth spec), #4714 (SLOs and incidents in the project review), #3655 (pipeline dashboard and alerts), #4993 (OOM and crash-loop alerts), #5443 (agentic workflow spec), docs/DESIGN.md (the form of the spec).

Activity

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

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope sre, and .github/labels.yml declares no scope/sre label. Add the label to the file to give the scope to this item.
    • Related: docs(k8s): add the Kubernetes performance tuning spec #5444, which asks for a different change. Both are sibling specs from the same owner request of 2026-11-13; this item writes docs/SRE.md while #5444 writes the Kubernetes performance tuning spec.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 13, 2026
  4. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    The agentic workflow spec (#5443, PR #5489) names this spec by its issue number, because the file is not on main yet. When this spec merges, please change the references to #5443, #5444 and #5445 in the merged specs to links to the files. The three pull requests also edit the same lines of .nav.yml and docs/index.md, so the later ones need a rebase.

  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  6. removed
    status/in-review
    owner/agent
    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/lowpriority/p2-mediumsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions