Repository navigation
docs(observability): expand runbook guidance in alerting section - #422
Conversation
addyosmani
left a comment
There was a problem hiding this comment.
This is the right home and much tighter than the original: +17 under the alerting rules that already require a runbook link, versus +79 in the ADR skill. The worked three-line example, the "expand only when the first check isn't enough" judgment, and updating the runbook as part of closing the incident are all genuinely new, the last one especially since a stale runbook builds false confidence.
One nit, not blocking: the opening sentence restates the same three elements the alerting rule fifteen lines above already lists, so it could point at that rule instead of re-listing them. Approving, and I'll close #414 as superseded by this.
|
@nucliweb @federicobartoli when either of you has a minute, this one just needs a second pair of eyes to clear our bar. It's 17 lines adding a |
b1d6a15 to
f1fc0c2
Compare
nucliweb
left a comment
There was a problem hiding this comment.
Second review as Addy requested. This crosses the bar for me, happy to see it merge.
This is the right home: the alerting rules already make a runbook a hard requirement on every alert (rule 2), so teaching the artifact right where it's mandated is the natural fit, and step 7 already verifies "the runbook link works", so the new guidance is consistent with what's here rather than bolted on. The worked three-line example, the "expand only when the first check isn't enough" judgment, and tying runbook upkeep to incident closure are all genuinely new and opinionated in the right way.
One structural nit, non-blocking. The Process section is a numbered sequence (### 1. … ### 7.), and ### Writing Runbooks lands unnumbered between ### 6. Alerting and ### 7. Verify…, so it reads as a peer step that breaks the 6→7 flow. Since it's really a sub-topic of Alerting, #### Writing Runbooks nested under step 6 would keep the numbering intact. That also lines up with the nit Addy already left: the opening sentence restates the three elements from alerting rule 2 a few lines above, so nesting it under that rule and pointing back at it (instead of re-listing them) would fix both at once.
Neither is a blocker; approving.
|
Thanks, this already crossed the bar with @addyosmani and @nucliweb , so treat everything here as one optional round before merge, and we can land it as-is if you prefer. Could we nest the section as #### Writing Runbooks under step 6 and open it by pointing at alerting rule 2 instead of re-listing its three elements? That would pick up both non-blocking notes from the earlier reviews in one commit. Two small touches on the example while you are in the file, if you agree. pg_stat_activity also counts background processes and other apps' connections, so the comparison with the app's pool limit reads tighter as SELECT count(*) FROM pg_stat_activity WHERE backend_type = 'client backend';. And since the catalog labels worked examples as illustrations (the TDD skill does this explicitly), maybe one short clause like "the example assumes Postgres; swap in the equivalent first check for your store"? None of this blocks: if you would rather land it as-is, these can ride along in a future edit. |
The skill already requires every alert to link to a runbook but only names the three-line minimum without teaching it. Adds a 'Writing Runbooks' subsection under the alerting rules: the three-question format (what/check/ escalate), a minimum viable runbook template, when to expand beyond three lines, and the keep-current discipline. +17 lines, one file.
… ####, point to rule 2, tighten SQL, add platform hedge
f1fc0c2 to
8714f2b
Compare
|
All three points addressed, @federicobartoli — took the optional round:
Validator 0/0. |
federicobartoli
left a comment
There was a problem hiding this comment.
Landing this, thanks for taking the optional round.
What this adds
A
### Writing Runbookssubsection directly under the existing alerting rules inskills/observability-and-instrumentation/SKILL.md.Why here (not in documentation-and-adrs)
PR #414 tried to add runbook guidance to
documentation-and-adrs. The review redirect was right: the skill already names runbooks as a hard requirement on every alert ("It links to a runbook — even three lines: what it means, first query to run, escalation path") and is the natural home for teaching the artifact it requires. This PR expands that one-liner into a usable guide without moving it.What it teaches
docs/runbooks/, named after the alert)Scope
+17 lines. One file. Fully additive — no edits to existing prose.
validate-skills.js→ 0 errors, 0 warnings.