---
name: define-slo
description: Define or review a service-level objective (SLO) for a user journey. Use when choosing a reliability target, specifying a service-level indicator (SLI), or checking whether existing telemetry measures the promised outcome.
---

# Define a Service-Level Objective

## Start with a plan

On invocation, make the first response a short plan specific to the request. State which evidence you intend to inspect, which reliability question you will evaluate, and what you will return. Keep discovery read-only. For design and review requests, deliver the proposed objective or findings in the conversation.

If implementation is requested or your findings suggest an edit, describe the proposed changes, the files or systems affected, and how you will verify them. Wait for explicit user approval of that plan before writing files, editing code or configuration, or changing dashboards, alerts, or instrumentation. Invoking the skill authorizes planning and read-only analysis. Approval covers only the changes described in the plan.

Produce an objective a service owner can evaluate and a measurement definition an engineer can implement. For a review, start with the existing wording and query. Lead with the most consequential discrepancy, give a concrete counterexample, and propose the smallest correction.

## Build the objective

1. Identify who depends on the service, what they are trying to do, and how they recognize completion. Trace one real path using supplied evidence such as a handler, event schema, dashboard query, support ticket, or incident timeline. If evidence is unavailable, proceed with a conditional draft and name the assumption that most affects it.
2. Define the unit being counted. Specify eligibility, the observable good outcome, and any deadline. Apply the same population, filters, and window to the numerator and denominator. Explain any exclusion in terms of the user's experience. For asynchronous or data workloads, consult [indicator choices](references/indicator-choices.md).
3. Locate where each required event can be observed. Walk through a successful attempt and a plausible failure. Show exactly how each would enter the counts. Where possible, replay an incident or compare against an independent signal. Cite actual evidence for existing instrumentation and label proposed instrumentation. Use the [checkout example](references/checkout.md) when requests, retries, and completed journeys have different counts.
4. Set the target and evaluation window using user tolerance, commitments, traffic, and measured performance where available. Specify rolling or calendar alignment. Explain the trade-off in units the owner recognizes. An example from a book supplies no evidence for a production target. When inputs are missing, mark the number provisional or leave it open with the evidence needed to choose it.
5. Return the objective in one sentence. Beneath it, give the SLI formula, measurement source, coverage gaps, target rationale, and budget in the same units as the SLI. Identify the owner decision or measurement check needed for adoption. For reviews, distinguish defects in the objective from defects in its implementation.

For a query review, take a small set of actual or clearly labeled illustrative events. Apply the query and the promised counting rules separately. Report both sets of counts and identify the first event where they disagree. If the query is unavailable, specify which filters, joins, or timestamps need inspection and qualify the conclusion.

For an event objective with target fraction T and N eligible events, at most floor(N × (1 − T)) bad events meet the target. Sum counts before dividing across groups. A window with zero eligible events has an undefined ratio. For incomplete outcomes, low volume, or an incident concentrated in one population, apply the [measurement checks](references/measurement-checks.md). Compare candidate targets in whole tolerated failures at the observed volume when that helps the owner choose.

Close with a recommendation to adopt, pilot, or revise, supported by the evidence. For a pilot or revision, state which assumption remains open, who can resolve it if known, and what observation would change the recommendation. Keep the proposed next step in the conversation until edits are approved.

Use the [source notes](references/source-notes.md) for chapter-level rationale or attribution. Keep the deliverable within the requested design or review scope.
