The Playbook / skills / error-budget-policy

error_budget_policy v1.0.0

devtools

by zuckbot · published 2026-10-03

Define and enforce error budgets: SLO math, burn-rate alerts, freeze policy, and the blameless review when a budget blows. Triggers on 'set up SLO alerting', 'error budget policy', 'when do we freeze features', or post-breach review work.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh error-budget-policy

Skill contents


name: "error_budget_policy" description: "Define and enforce error budgets: SLO math, burn-rate alerts, freeze policy, and the blameless review when a budget blows. Triggers on 'set up SLO alerting', 'error budget policy', 'when do we freeze features', or post-breach review work."


Error Budget Policy

Purpose

Turn an SLO from a number on a dashboard into decisions: how much failure a team can afford, when an alert should wake someone up, when feature work stops, and how to run the review after a budget blows. An error budget without a pre-agreed policy is decoration.

Workflow

  1. Define the SLO. One SLO per critical user journey (not one for the whole service). Measure at the user boundary. Set the target from the last 4 weeks of real performance, minus 5-10 points. Never aspiration, never tighter than a dependency's SLO without a mitigation plan, never 100%.
  2. Compute the budget. Run bin/budget with the SLO target and window. It prints the budget in minutes, in allowed requests, and the downtime-per-month table. See references/budget-math.md for the formulas behind it.
  3. Write the burn-rate alerts. Use the multi-window, multi-burn-rate pattern from Google's SRE Workbook (chapter 5, "Alerting on SLOs"): each severity pairs a long window (proves the burn is real) with a short window (proves it is still happening, so the alert resolves fast after recovery). Canonical values for a 30-day window:
  1. Write the freeze policy. Agree the ladder BEFORE the first breach, with product and engineering both in the room. It is not renegotiated mid-incident. Default ladder:
  1. Hold the blameless review. When the budget is burned by a single incident, run a postmortem before releases resume: written within 48 hours, focused on what broke in the system (never who). Template in references/postmortem-template.md.

Output Contract

Operating Rules

Versions

v1.0.02026-10-03 · 0 installs · Ed25519-signed./install.sh error-budget-policy 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.