| Status | Approved-with-changes · M · DRI Dana (BE) · 48h review · 1 blocking → resolved |
| Sign-offs | PM ✓ · BE TL ✓ · FE TL ✓ · UX ✓ · DevOps TL ✓ · Platform TL ✓ |
| Links | Brief · Figma · Prototype · Tasks (placeholders) |
| Trigger | Behavior |
|---|---|
| Threshold crossed | notify rule's channels (email · Slack · webhook) <90s p95 |
| Heartbeat missed | "agent offline" alert |
| Data missing | no fire — never a false "CPU 0%" |
| Repeat / storm | cooldown per device+rule · 500/h tenant cap → one summary |
| Delivery fails | 3× retry → in-app banner + digest |
| One line each — details live in the linked tasks | |
|---|---|
| API | CRUD /v1/alert-rules + /v1/alert-events history · additive-only until v2 |
| Data | alert_rules (Postgres) · alert_events (ClickHouse, 90d) · additive migration |
| FE | rule builder stepper + history views per Figma · empty/error states designed |
| Security | tenant-scoped · alerts:manage role · secrets in vault · no PII in payloads |
| Rollout | flag alert_rules_v1 · 5-tenant pilot, 2 cycles → GA · lag+failure dashboard day 1 |
| Rollback | flag off + scale to 0 — offsets retained, nothing lost |
| Verify | edge table = unit cases · load 50k msg/s, p95 < 90s · success metric wired day 1 |
| Question | From → To | Answer | Folded into |
|---|---|---|---|
| Threshold per device or per tenant? | BE → PM | per-rule, applies to all matched devices; per-device overrides = v2 | ✓ What it does |
| Who can create rules? | FE → PM | Admin + Technician roles only (alerts:manage) | ✓ Build plan |
| Does "agent offline" need agent-side changes? | Client → PM | no — server-side heartbeat detection is enough for v1 | ✓ How |
| Notification cost ceiling per tenant? | DevOps → PM | inside the $400/mo total; no per-tenant billing in v1 | ✓ Why (NFR) |
| Ship default starter rules enabled? | UX → PM | open — PM decides from pilot data, due end of pilot | ◌ backlog |
| Function | Feedback | Outcome |
|---|---|---|
| PM | scope creep risk — cap v1 to 4 metric types | ✓ taken — What it does trimmed |
| BE TL | [suggestion] conditions[] array now for future compound rules | declined — additive in v2, logged in backlog |
| FE TL | events list needs cursor pagination for 90d history | ✓ taken — Build plan (API row) |
| Client TL | no concerns — confirms agents untouched in v1 | ✓ signed off (N/A is a reviewed claim) |
| DevOps TL | [blocking] no consumer-lag alert; downtime behavior undefined | ✓ resolved — Rollout rows added, §-only re-review same day |
| UX | [question] what does the user see when all channels fail? | ✓ answered in doc — banner behavior + Figma updated |
| Record | |
|---|---|
| Rejected | polling (too slow) · agent-side eval (v2) · buy PagerDuty (core value; webhooks bridge instead) |
| v2 backlog | escalation policies · quiet hours · compound rules · per-site grouping · default starter rules (open Q&A) |
| Component | Type | Purpose | Rule |
|---|---|---|---|
| Header | metadata table | the decision record: status, tier, DRI, sign-offs — and links to where the depth lives (brief, Figma, prototype, tasks) | pointers only, never content · 3–4 rows |
| Why | stat tiles | the problem and the measurable targets everyone must remember | numbers only — if it needs a sentence, it's not a target yet |
| What it does | trigger → behavior table | the testable behavior contract; each row becomes a test an agent can verify | one behavior per row · no paragraphs |
| How | diagram + 1 line | both on purpose: the diagram carries structure (what talks to what, where the new piece sits) — text can't; the one line carries the decision (why this shape, what it trades) — boxes can't | text budget = 1 line; more than that belongs in Decisions, or the design is too big → split the doc |
| Build plan | per-function table | who builds what — the entry point for the decomposition workshop | one row per function · details live in the tasks, not here |
| Q&A | question log table | how engineers ask product (and each other) anything: comment on the doc during shaping/discussion; PM or the owning function answers; the answer is folded into the spec section it affects | every answered row names where it was folded in · open rows have an owner + due · the thread is the log, the spec is the truth |
| Function feedback | sign-off table | where BE / FE / Client / DevOps / UX / PM feedback lands, with its disposition — visible proof every function reviewed | one row per function, even "no concerns" · [blocking] resolved before approval · silence ≠ sign-off |
| Decisions | table | the doc's memory: rejected alternatives (with reasons) and the v2 backlog | one line per decision · abandoned ideas are kept, never deleted |