aayudha docs Built from de79988 (2026-10-26)

runbook: write down how to fix a known failure

Under pressure, whoever is on call should follow written steps, not memory. runbook writes one entry per known production failure: how to confirm it with a bounded query, which catalog action mitigates it, how to verify recovery, and how to roll back.

Field Value
In plain words Writes down how to spot and fix each known production problem with the approved actions, so whoever is on call can follow it.
Journey stage Keep it running
Accountable seat Production Engineer (Shesha)
Does the work Shesha, the Accountable seat's twin, in the spec model lane, with the seat's paired human when it has one
Consulted AI Native Engineer (Nakul), DevOps & DevEx Tinkerer (Nala)
Informed Engineering Manager (Drona)
Layers it can touch every layer
Who reasons your agent's own model, inside the skill
Writes as the bot identity (a GitHub App); without one, your identity, tagged as human fallback
Where it runs the aayu command, a skill in your agent, an MCP tool (read-only unless [mcp] expose_writes is on)
The skill your agent reads skills/runbook/SKILL.md

When to use it

An incident in progress needs investigate. Defining the SLO itself is slo.

Run it

Your agent writes the entry from the alert and the last incident's investigation note, checks it, and writes it once you agree:

Use the runbook skill to write a runbook entry for the failure in incident issue 42's investigation note, check it against the catalog and the SLOs, and write it to ops/runbooks/ once it passes.

Needs setup: an entry mitigates only through an action in ops/actions.toml and names an SLO from ops/slos.toml. With no fitting action, it says "no catalog action" and names the one a person should add.

aayu runbook
Input Required What it does
--draft no Runbook entry (Markdown) to check: every part, the stage's artefact, cited evidence, an SLO named, a bounded confirm query, a catalog action, its rollback, and no executed change.
--create no Write the checked draft to ops/runbooks/<name>.md in the checkout, for a pull request a person reviews; needs --draft.

The most common run: aayu runbook --draft entry.md --create.

What you get back

An entry at ops/runbooks/<name>.md in your checkout, with six parts: Symptom, Confirm, Mitigate, Verify, Rollback, and Tried. Point the SLO's runbook key at it. Without flags, aayu runbook checks every runbook against the catalog and the SLOs.

You should see aayu runbook exit 0 with no findings once every alerting SLO has an entry. Exit 4 lists the findings; see exit codes.

Honest status: aayudha has no production service, so its own repository has no runbooks to show.

Gates

It checks these before it acts, and stops when one fails:

The --draft check also refuses an unbounded query, an action the catalog would refuse, a missing catalog rollback, and a claimed execution. Release needs every rollback action in the catalog to have run once.

What only a person does

The registry reserves no step of this verb for a person.

A person opens and reviews the pull request that adds the entry, because ops/ is a protected path. Every action it names runs only when a person approves it, through respond.

What's next