Inspiration

Many teams set SLOs and write an error budget policy: if we spend the budget, we stop shipping features and fix reliability until it recovers. The policy then sits on a wiki page while Jira keeps scheduling features as if nothing happened. When the budget runs out, nobody can say what is frozen, what may still ship, who allowed the exception, or when shipping can resume. Exceptions quietly become the rule. Google's SRE Workbook publishes a sample policy, and Atlassian presented its own error budget practice at SREcon. Nothing in Jira applies such a policy to the work itself. Headroom does.

What it does

  • Computes the budget from incidents.
    • A service has an SLO, for example 99.9% over a rolling 28 days, which is a budget of 40.3 minutes.
    • Incidents are Jira work items labelled incident with a recorded impact window.
    • Headroom counts the overlap with the window: a major outage counts fully, a partial outage 30% (the weighting Statuspage uses for uptime), and degraded performance and maintenance not at all.
    • Overlapping incidents count once.
    • Incidents caused by the platform or an upstream provider are shown as downstream consumption and not charged to the team.
  • Applies the policy to every work item.
    • When the budget is spent, the service is Exhausted: feature work and bug fixes are frozen, while P0, security and reliability work are allowed.
    • When old incidents roll out of the window and the budget is above zero again, the service is Recovering: the freeze holds until 20% of the budget is back, so a freeze does not flip on and off.
    • Headroom predicts the day the freeze lifts if there are no new incidents.
    • Each verdict is written to the work item as an indexed property, so headroomState = blocked in JQL lists the frozen work, and the work item's glance reads Frozen, Allowed or Exception.
  • Finds what shipped anyway, through Teamwork Graph.
    • Headroom reads the deployments linked to each work item from Teamwork Graph.
    • It flags frozen work that reached production during the freeze. In the demo: "One-click reorder" deployed the day after the budget ran out, with no exception.
    • For each incident it lists the production deployments in the 24 hours before it started, for example the payment SDK upgrade 2 hours before the 502 errors.
  • Makes exceptions rare and visible.
    • A silver bullet ships one frozen item as an exception. It is limited to 2 per service per quarter and needs a reason.
    • Each one opens a linked review task and comments on the item, because every exception counts as a policy failure.
    • When the quota is used up, Headroom refuses and points to the policy owner.
  • Keeps the postmortem promises.
    • An incident that used more than 20% of the budget needs a linked P0 improvement action, and Headroom shows which incidents still lack one.
    • It also flags a cause category that used more than 20% of the quarter's budget.
  • An agent for the language work. The Headroom agent in Rovo:
    • answers "Can we ship this work item this week?" with the verdict, the reason and the options;
    • reads a new incident's description and comments, quotes the sentence with the impact window, and proposes start, end, level and cause, then records it only after the person confirms;
    • uses a silver bullet or creates the P0 action after the person agrees, and Rovo's review card confirms each change.

How we built it

  • Forge for Jira, with these modules:
    • rovo:agent with seven actions: get-budget, get-incident, record-impact (UPDATE), check-work-item, freeze-impact, use-silver-bullet (CREATE), create-pm-action (CREATE);
    • jira:globalPage with four tabs: Services, Freeze impact, Silver bullets, Settings;
    • jira:issueGlance with dynamic properties and jira:issuePanel (UI Kit);
    • jira:entityProperty for the JQL fields;
    • a trigger on work item create and update;
    • an hourly scheduledTrigger, because a freeze can start or lift without any edit as old incidents roll out of the window;
    • devops:deploymentInfoProvider, used only for the three sample deployments.
  • Teamwork Graph API (curated queries, as the current user):
    • jiraWorkItemLinkedExternalDeployments, batched with aliases (ten work items per request), for breaches and for changes before an incident;
    • jiraWorkItemComments, so the agent sees the incident timeline;
    • jiraWorkItemGoals and atlassianTeamsBySpace → atlassianTeamMembers, so the work item panel can show the goals and teams around a frozen item when they exist (our demo site has none linked).
    • Every view says where its data came from. When Teamwork Graph returns an error, Headroom retries, then says so and falls back to its own records of the sample deployments.
  • Code decides; the agent explains. These are pure functions with 29 offline tests:
    • merging overlapping incidents with the highest weight;
    • clipping to the rolling window;
    • the state machine with hysteresis;
    • the exact thaw time (the remaining budget is piecewise linear, so the code solves for the crossing);
    • the verdicts, quarterly silver bullet quotas, postmortem checks and breach detection.

A golden test reproduces every number in the testing guide and the video.

  • Guardrails.
    • The agent quotes the evidence and asks before recording.
    • Headroom rejects impact windows that end before they start or lie in the future.
    • Silver bullets and P0 actions are created only after Rovo's review card.
  • No external calls. After the production deployment, the Forge CLI reported that the version is eligible for the Runs on Atlassian program.
  • Measured on a live site. We ran the whole flow on the production app with fictional data:
    • load the sample data;
    • check the numbers, the JQL, the glance and the panel;
    • ask the agent, use a silver bullet, record a new incident's impact from its summary (9 minutes, 22.3% of the budget) and create a P0 action;
    • all seven agent actions, the work item trigger (a label change re-evaluated the item in about two seconds) and the hourly job, each confirmed in the app's logs.
  • Demo video: screen captures of the production app. The narration is synthetic (Kokoro-82M text to speech, Apache-2.0).

Challenges we ran into

  • Deployment links can be lost. Jira drops deployment associations with work items it has not indexed yet. The sample loader now waits and resends the deployments until Jira reports no unknown keys.
  • Errors look like empty results. Teamwork Graph reports errors with HTTP 200 and empty fields, so an error first looked like "no deployments". Headroom now treats any reported error as a failure, shows the message and uses its fallback.
  • Intermittent refusals on our demo site. On the Forge demo site we built on, Teamwork Graph sometimes answered "User is not permitted to query this organization" for every app for hours, then worked again; another developer reported the same on a Forge demo site in the developer community. Headroom now retries those answers a few times, logs each query's outcome, and labels the source of every deployment it shows, so a refusal never passes as "nothing shipped".
  • Corrections should not end a freeze by accident. If a corrected incident made the freeze end at once, a team could reclassify its way out. We keep the declared freeze, its start date and its breach checks until the budget is genuinely back above 20%.

Accomplishments that we're proud of

  • A policy that used to be a paragraph on a wiki page now gives a clear answer on every work item, with the reason and the date it changes.
  • Exceptions are counted, reviewed and visible instead of negotiated in chat.
  • The agent turns "30% of payments failed 09:10–09:40 UTC" into a recorded, budget-checked impact window in one confirmed step.

What we learned

  • Error budgets work when the decision is mechanical and visible. Arguing about whether to freeze is the expensive part.
  • Deployment data already exists in Jira for most teams; connecting it to the freeze makes the policy enforceable instead of aspirational.

What's next

  • Reading SLIs from monitoring tools through Teamwork Graph connectors, instead of incident windows only.
  • Multi-window burn-rate alerts that open an incident automatically.
  • A Confluence page per service with the weekly reliability review.

How it meets the technology requirement

Headroom is built entirely on Atlassian Forge. It integrates:

  • Jira: a global page, an issue glance and panel, indexed entity properties for JQL, triggers, a scheduled trigger and the DevOps deployment provider;
  • Teamwork Graph: curated queries for deployments, comments, goals and teams;
  • Rovo: an agent with seven actions, three of which change data through Rovo's review card.

It makes no external calls.

Bonus prize: Best apps with Teamwork Graph integration

Teamwork Graph is what makes the policy enforceable. Headroom asks it which deployments are linked to each work item (jiraWorkItemLinkedExternalDeployments, batched with aliases), and uses the answer twice:

  • to catch frozen work that reached production during a freeze;
  • to show the changes that went out in the 24 hours before each incident.

It also reads incident comments for the agent (jiraWorkItemComments) and the goals and teams around a work item (jiraWorkItemGoals, atlassianTeamsBySpace, atlassianTeamMembers). Every call runs as the current user, so results respect permissions. Each view names the source of its deployment data, Teamwork Graph or Headroom's own sample records, and shows the gateway's error message when a query fails after retries.

Privacy and support

  • Headroom runs entirely on Atlassian Forge and makes no external calls.
  • It stores services and silver bullets (work item key, reason, review task key, date) in Forge storage on the customer's site, and two issue properties on work items: the verdict and the incident window.
  • It does not store account IDs, names or email addresses.
  • Questions or problems: leave a comment on this Devpost page.

Built With

Share this project:

Updates

Submission history