Direct answer
An error budget policy converts a reliability target into a rule about change. Define the budget from the SLO, define a small number of states the budget can be in, and attach a permission level to each state: automation may continue, automation needs extra review, or automation pauses and reliability work takes priority. The concrete win is a release decision that is made in calm conditions and applied consistently, rather than renegotiated during every deploy. The concrete loss is that an error budget is a governance tool, not a safety mechanism. It changes who may ship and how much review a change gets. It does not make a change safe, and it does not guarantee reliability. The Google SRE workbook gives an example policy that halts releases when the budget is exceeded; the numbers are illustrative and the connection to Claude Code automation is a team design choice, not a product feature.
Why release decisions need a policy
Without a policy, every deploy negotiation starts from scratch. A team with a reliability concern and a team with a delivery deadline argue about the specific change in front of them, and the outcome depends on who is in the room and how the morning went. That is not a decision process. It is a mood.
Three costs follow. Reliability work loses to feature work consistently, because feature work has a visible deadline and reliability work does not. Automation gets blamed for failures it did not cause, because there is no agreed way to distinguish a risky period from a risky change. Review quality drops during busy periods, because the review bar moves with the schedule.
An error budget policy replaces that negotiation with a rule. The rule is decided once, in calm conditions, by people with authority to decide it. When the budget is healthy, changes flow. When the budget is spent, reliability work takes priority. The argument moves from “should this specific change ship” to “what state is the budget in”, which is a question with an answer.
Agent automation makes the policy more valuable, not less. An agent can prepare and apply infrastructure changes quickly, which means the rate of change can rise sharply. A policy that caps that rate when the budget is spent is the control that keeps fast automation from consuming the reliability margin.
Error budget definition
An error budget is the amount of failure an SLO permits. A 99.9 percent availability SLO over a 30-day window permits roughly 0.1 percent of requests to fail, which is the budget. The workbook’s alerting on SLOs material covers the arithmetic; the burn-rate math is described in the SLO alerts post.
Three inputs define the budget for a service. The SLO target, which sets the allowed failure fraction. The window, which sets how often the budget resets. The measurement, which sets what counts as failure. A team that defines the first two and skips the third will discover during an incident that error and success were never precisely defined.
| Policy rule | Affected change class | Decision owner |
|---|---|---|
| Budget above 50 percent remaining | Routine changes, full automation permitted | Change owner |
| Budget between 25 and 50 percent | Routine changes need a second reviewer | Change owner plus service owner |
| Budget below 25 percent | Non-essential changes pause; reliability work takes priority | Reliability owner |
| Budget exhausted | All non-emergency changes halt | Reliability owner, with platform governance informed |
| Emergency fix for an active incident | Exempt, with retrospective review | Incident commander |
Read the table as a template, not as recommended thresholds. The percentages are placeholders. A team should pick thresholds that match its traffic, its SLO window and its appetite for change. Copying a threshold from an example is the mistake the workbook’s illustrative framing warns against.
Policy states
Keep the number of states small. Three or four states are enough, and more than that produces arguments about which state a service is in rather than decisions.
A healthy state means the budget is comfortably above the floor and automation may continue at normal review levels. A caution state means the budget is being consumed faster than planned and changes need extra review. A spent state means the budget is exhausted and non-essential changes pause. An emergency state covers active incidents, where the exception path applies.
The Google SRE workbook gives an example error budget policy that halts releases when the budget is exceeded, which is F082. That is an example policy, not a universal rule and not a Claude Code feature. The workbook also gives an example requiring a postmortem when one incident consumes more than 20 percent of a four-week error budget, which is F083. Both the percentage and the window are illustrative and should not be presented as mandatory.
State transitions should be automatic where possible. A dashboard that shows the current state is useful. A policy that requires a human to declare the state will drift, because declaring it is a judgment call that competes with delivery pressure.
Automation permissions
The policy attaches to automation permissions, not just to human review. That is the difference between a policy that changes behavior and one that is advisory.
| Error budget state | Permitted automation | Required approval |
|---|---|---|
| Healthy | Plan, apply, and rollback within defined limits | Standard change review |
| Caution | Plan and apply, with a second reviewer on applies | Two-person review on production applies |
| Spent | Plan only; applies require a named exception | Reliability owner approves each apply |
| Emergency | Emergency fix path, time-boxed | Incident commander authorizes |
Read the table as a permission ladder. As the budget drops, the automation permission narrows and the human approval requirement rises. The narrowest state still permits planning, because planning is read-only and produces evidence without changing the system.
Two design rules keep this honest. The agent must not override the policy, which means the permission check sits in the deployment path and not in the agent’s judgment. And the permission level must be verifiable, which means the state is computed from the budget measurement rather than declared by whoever wants to ship.
The cloud budget and quota guardrails post covers a parallel discipline for spend. An error budget policy and a spend guardrail are separate controls with different inputs, and neither substitutes for the other.
Release decisions
A release decision under the policy answers three questions. What state is the budget in. What permission level does that state permit. Who approves at that level.
Record the answers as a short decision record. A decision record that names the state, the permission level, the approver and the change is the artifact that makes the policy auditable. The SOC 2 change evidence packets post covers turning change decisions into evidence.
# Example decision record shape; adapt fields to your change tooling
change: "security group rule update"
budget_state: caution
permitted_automation: plan_and_apply
required_approval: two_person_review
approvers: [change_owner, service_owner]
decision: approved
evidence: [saved_plan_ref, review_thread, budget_snapshot]The shape above is an example, not a required schema. What matters is that the record names the state and the approval, so a reviewer can check that the policy was followed.
Exception path
A policy without an exception path is a policy that gets bypassed. Define the exception before it is needed.
An exception names the change, the reason the normal path is insufficient, the approver with authority to grant it, the compensating controls in place and the expiry. A standing exception is not an exception; it is a second policy. Every exception should have an end date, and the same expiry discipline used for security exceptions applies here.
Emergencies are the most common exception. A change freeze with an emergency route is the same pattern: define what qualifies as an emergency, who can authorize the exception, and what retrospective review follows. The change freeze emergency rules post covers that route in detail.
The exception path must not be grantable by the agent. An agent that can approve its own exception has no policy, and the permission check belongs in the deployment path where the agent cannot reach it.
Incident trigger
An incident that consumes a visible share of the budget should trigger two things: a state change and a postmortem.
The workbook’s example ties a postmortem to an incident that consumes more than 20 percent of a four-week budget, which is F083. Treat that as an example trigger and pick a threshold that fits the team’s window. The point is that a large budget consumption gets a review, because a large consumption usually means something structural rather than a one-off.
| Incident impact | Postmortem trigger | Action tracking |
|---|---|---|
| Small share of budget consumed | Log in the change review | Owner follows up in the normal backlog |
| Large share, above the team threshold | Full postmortem | Corrective actions with named owners and dates |
| Budget exhausted by one incident | Postmortem plus policy review | Actions tracked to completion; state remains spent |
The blameless postmortem evidence post covers turning incident evidence into corrective actions assigned to system owners. The policy’s job here is to make sure a large consumption produces that review rather than disappearing into the next sprint.
Policy review
Policies decay. Thresholds that made sense at one traffic level stop making sense at another, and a policy that is never revisited becomes either ignored or obstructive.
Review the policy on a cadence and after significant events. A quarterly review is a reasonable default. Review early if the SLO target changes, if the traffic pattern changes substantially, or if a policy decision was clearly wrong in one direction or the other.
The review asks three questions. Are the thresholds producing the intended behavior, with caution and spent states firing at the right moments. Is the exception path being used at the expected rate, or has it become a second normal path. Is the ownership still correct, with named people who can actually decide.
The platform governance council charter post covers who should own this review. Reliability standards and exceptions are exactly the kind of decision right a governance council holds, with delivery teams implementing the controls.
Example decision record
A worked example makes the policy concrete. Consider a service with a 99.9 percent availability SLO over 30 days, a budget currently at 18 percent remaining, and a proposed change to add a new load balancer rule.
The budget state is spent under the team’s thresholds, so the permission level is plan only. The agent prepares a plan, and the plan review happens, but the apply requires a named exception from the reliability owner. The reliability owner grants an exception because the load balancer rule fixes a known reliability problem, names the compensating control as enhanced monitoring during the change window, and sets the expiry at the end of the change window. The decision record captures the state, the permission, the approver, the compensating control and the expiry.
That example is illustrative arithmetic on the kind of policy described in F082 and F084. It is not a real change, and no claim is made about any specific team’s outcome.
Concrete win, concrete loss, practical implication
The concrete win is a consistent release decision. When the budget state determines the permission level, the same reliability concern produces the same change decision regardless of who is asking and what the schedule looks like.
The concrete loss is throughput during a spent state. A team that pauses non-essential changes to do reliability work will ship less for a period, and that cost is real and visible. The policy’s promise is that the margin is rebuilt, not that shipping never slows.
The practical implication is to attach the policy to automation permissions, not only to human review. A policy that only changes human review is advisory, and advisory controls lose to delivery pressure. The permission check has to sit in the deployment path where the agent cannot override it.
Tradeoffs worth naming
| Approach | What it buys | What it costs |
|---|---|---|
| No budget policy | No throughput constraint | Reliability work loses to feature work |
| Advisory budget reporting | Visibility without blocking | Decisions still negotiated per change |
| Hard policy with automatic states | Consistent decisions, auditable | Slower shipping during a spent state |
| Hard policy plus exception path | Consistency with a realistic escape valve | Exceptions need owners and expiry tracking |
| Agent-decided policy | Fast, no human bottleneck | No governance; agent overrides the standard |
Read the table as a governance design choice. A hard policy with an exception path is the option that survives contact with delivery pressure, because it is consistent and still has a realistic escape valve.
Checklist before you adopt a policy
| Item | Expected evidence | Failure interpretation |
|---|---|---|
| SLO and window defined | Documented target and reset period | Budget cannot be computed |
| Error measurement defined | What counts as failure is written down | Budget number is ambiguous |
| Policy states defined | Three or four named states with thresholds | Too many states, or none |
| Permissions attached to states | Automation permission per state recorded | Policy is advisory only |
| Approval owner per state | Named person or role | Unowned state, unenforced |
| Exception path defined | Exception fields include owner and expiry | Policy will be bypassed |
| Agent cannot override | Permission check in deployment path | Governance has no teeth |
| Review cadence set | Quarterly review scheduled | Policy decays |
Data gap and future update
No official Claude Code documentation was found that enforces an error budget policy or ties product behavior to a budget state. The policy in F082 and F083 comes from the Google SRE workbook, an independent source. The connection to Claude Code automation permissions in F084 is a derived governance design, not documented product behavior.
The Google SRE error budget policy page was fetched during research. The alerting page and workbook index were observed through search. Exact wording for a specific threshold should be checked against the current error budget policy page before being relied on.
No measured change throughput, budget consumption or reliability outcome is reported here, because none was measured. A future update quantifying how a budget policy affects delivery rate for a specific team would need a measurement pass over real release history.
One AI API Key option for OpenAI-format agents
Claude Code uses an Anthropic-format route, so the One AI free model IDs are not a Claude Code model source. The packet records Claude IDs as unavailable on 2026-11-27.
OpenAI-format agents have a separate route: One AI API Key offers https://api.oneaiapikey.com/v1, one key and 46 live free IDs. It is a different client and request format, not a workaround for Claude Code authentication. Check the free model list and eligibility notes before choosing an agent route, or read the quickstart for the request shape. The cost calculator compares it with a paid route.
FAQ
What percentage should trigger a halt?
Pick a threshold that fits your SLO window and change rate. The workbook’s examples, including halting releases when the budget is exceeded and requiring a postmortem above 20 percent of a four-week budget, are illustrative. Copying a number without adapting it is the mistake those examples warn against.
Does an error budget policy guarantee reliability?
No. It governs change permission based on observed reliability. A team can follow the policy and still have outages, and a team can violate it and stay up. The policy is a decision rule, not a safety mechanism.
Can Claude Code decide whether the budget is spent?
Treat that as a governance question. The budget state should be computed from the reliability measurement and attached to the deployment path. Leaving the judgment to the agent means the agent overrides the policy, which is the failure mode to avoid.
What stops the exception path from becoming a second normal path?
Owners and expiries. Every exception has a named approver, a compensating control and an end date. A standing exception is a policy change and should be handled as one, not as an exception.
Who owns the policy?
A named reliability or platform owner, with review rights held by the governance council. The workbook material is independent guidance; the ownership model is a team decision.
Related reading in this batch
Continue with SLO burn rate alerts during changes for the signal that feeds the budget, blameless postmortem evidence for the review after a large consumption, OpenTelemetry semantic conventions for agents for the attribute names behind reliability telemetry, incident timeline reconstruction for correlating a budget consumption with changes, and log pipeline health checks before triage for proving the measurement path.
Measuring the budget honestly
A policy is only as good as its measurement. Three measurement decisions determine whether the budget number means anything.
Define failure precisely. For an availability SLO, failure is usually a request that returned an error or timed out. For a latency SLO, failure is a request slower than the threshold. Write the definition down and keep it stable, because a definition that shifts makes the budget number incomparable across weeks.
Define the numerator and denominator. A budget expressed as a percentage needs both, and ambiguous denominators are the most common measurement error. Requests that never reached the service, requests blocked by an upstream, and synthetic health checks all change the number depending on whether they are counted.
Define the reset. A 30-day rolling window and a calendar-month window produce different budget states for the same incidents. Pick one and keep it, and record which one the dashboards use.
The connection to Claude Code automation is a governance design choice, not documented product behavior, as F084 notes. The measurement is a reliability engineering input. The policy is the team’s decision about what to do with it.
Agent-assisted changes affect the budget in a specific way worth planning for. A faster change rate means more opportunities to consume budget, and also faster recovery when a change is bad. A policy that assumes a manual change rate will be wrong in both directions once automation speeds things up. Tune the thresholds after automation is in place, not before.
Working with Claude Code under the policy
The agent works within the policy, not above it. Three practices make that true in practice.
Tell the agent the current budget state at the start of a task. An agent that does not know the state cannot respect the permission level it implies. A short line in the task context naming the state and the permitted automation is enough.
Ask the agent to produce the evidence the policy requires. A plan reference, a review thread, a budget snapshot. The agent can prepare these faster than a person, and preparing them is a good use of automation even when the apply itself is gated.
Ask the agent to stop at the permission boundary. If the state permits plan only, the agent prepares the plan and stops. An agent that continues to apply has not respected the policy, and the fix is in the deployment path rather than in the prompt.
The Claude Code verification guide covers the review questions that apply here. The Terraform plan review gates post covers tying human approval to a saved plan, which is the mechanism that makes a plan-only permission level enforceable.
More from this batch
- OpenTelemetry Semantic Conventions for Claude Code Agents
- Incident Timeline Request ID Correlation With Claude Code
- SLO Burn Rate Alerts During Claude Code Changes
- Blameless Postmortem Evidence From Claude Code Sessions
- Log Pipeline Health Checks Before Claude Code Triage
More Claude Code change governance reading
- Terraform state access controls for separating plan and apply identities
- Cloud IAM permission boundaries for ceiling-level agent access
- Kubernetes RBAC least privilege reviews for reading additive permissions
- Risk-tiered infrastructure approvals for matching evidence strength to blast radius
- Change freeze emergency rules for the exception path when a freeze is active
- Runbook ownership and review cadence for maintaining the release procedure
- Access reviews: recertify agent identities for removing access that no longer has a purpose
More Claude Code troubleshooting
- Claude Code Terraform Drift: Triage Before Reconciliation
- Kubernetes Server-Side Apply: Ownership Checks for Claude Code
- Claude Code NetworkPolicy: Blast Radius Reviews
- Claude Code Pod Security: Admission Gate Reviews
- Claude Code Policy as Code: Audit Before Deny
- Claude Code Incident Tabletops: NIST-Aligned Exercises
- Claude Code AISVS: Control Mapping for Platform Teams
- Claude Code Audit Evidence: Completeness and Integrity
- Claude Code Vendor Review: Security Evidence Checklist
- Claude Code Threat Models: Infrastructure Agent Boundaries
- Claude Code RACI: Ownership for Infrastructure Changes
- Claude Code Break Glass: Incident Access Controls
Sources
- Independent: Google SRE workbook: Error budget policy, source for the example policy and postmortem trigger (F082, F083, F084).
- Independent: Google SRE workbook: Alerting on SLOs, source for the budget and burn-rate arithmetic.
- Independent: Google SRE workbook index, index for the broader reliability material.
- Independent: OWASP Secure Coding with AI Cheat Sheet, human review of AI-assisted CI/CD changes.
- Official: Terraform plan command reference, reference for the read-only planning step in the permission ladder.