GeezerVison is showing github.com — design(pm-stack): SLOs + self-healing for the PM stack itself — freshness SLOs with error budgets, watchdog remediates before alerting · Issue #1260 · developing-today/code
design(pm-stack): SLOs + self-healing for the PM stack itself — freshness SLOs with error budgets, watchdog remediates before alerting #1260DescriptionPart of epic #1184 (PM stack coherence — ideal-system design series, 2026-10-26).
Why
The stack's own reliability is currently vibes: pages degrade silently, the watchdog concept (#1148) alerts after the fact, and common failures (collector stopped, feed not pushed, a facet down) wait for a human or an hourly job. The ideal stack declares per-facet freshness SLOs with error budgets on the health page, and the watchdog remediates the known failure classes itself — restart the collector, re-push the feed, re-render config — escalating to Drew only when remediation fails or budget burns.
Design questions to answer
- SLO definitions per facet (feed age, quota read age, orchestration freshness, per-service up): targets, windows, and how budget remaining is computed and displayed.
- Remediation catalogue: which failures are auto-fixable (collector restart, feed re-push, aggregator restart, tunnel restart), with what guardrails, attempt caps, and cooldowns?
- Verification after remediation: how does the watchdog prove the fix worked before standing down, and where is the attempt logged?
- Escalation: what pages Drew (via the PWA/push design) vs lands in NEEDS ORCHESTRATOR, and how does a burning error budget change that threshold?
- Safety: what the watchdog must never do (data writes, deploys, credential changes) and how its own failure is detected.
Acceptance
Acceptance criteria
- A design note answering every question listed under "Design questions to answer" is landed in the repo
doc/ tree and linked from this issue.
- Implementation issues are filed and linked as sub-issues of epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 (developing-today/code), each with its own acceptance criteria — this design issue does not itself carry implementation work.
- Every open question that needs Drew is named explicitly in the design note (not buried in prose).
- The remediation catalogue carries per-action guardrails, attempt caps, and cooldowns, and the design names what the watchdog must never do (data writes, deploys, credential changes).
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 28, 2026 Intake review
Fleet-monitor intake pass (2026-10-28T02:40:00Z): this issue was missing a priority/* label and/or the standard ## Acceptance criteria section and was not yet meta/enriched. The criteria section has been appended to the body (original text preserved verbatim above it) and labels normalized.
Related: Epic: #1184 (PM stack coherence design series). Siblings in the same series were intake-enriched in prior monitor runs (#1264–#1277).
Notes: Design-series issue (SLOs + self-healing), filed 2026-10-27 by Drew as part of the #1184 batch; body is well-formed (Why + design questions + its own Acceptance section). Still live: merged-PR search this run returns only unrelated PRs whose text coincidentally contains the number — none resolves or implements this design.
Risks: Design-only stall risk (see tail).
Suggested approach: This is one of the #1184 PM-stack coherence design series; its own "Acceptance" section already states the bar (design note in doc/ + implementation sub-issues), and the appended criteria restate that in the fleet's standard heading so the monitor and queue can gate on it. Risks: design-only items can sit silently — per house rules a design with no implementation link is flagged by the next sweep, so the follow-through that matters is the sub-issue filing, not the note alone. Suggested approach: answer the design questions against the current aggregator/orchestrator code (cite file:line), land the note, file the implementation sub-issues in the same pass.
🤖 Agent note · state: handed off
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-27 21:19 CDT
- Found via: monitor reconciliation (intake enrichment duty)
- Task: Intake enrichment — acceptance criteria appended, labels normalized, this review posted; the item itself is not being worked by the monitor.
- Expectation: unenriched → enriched; routing/work happens through the normal queue/sweep paths.
- Links: n/a
dezren39 commented on Nov 1, 2026 🤖 Agent note · state: picked up
dezren39 commented on Nov 5, 2026 Specialization filed: #6031 (browser-dependent quota watchdog) is this issue's remediation-catalogue pattern applied to quota sources whose only read path is a logged-in console (Mistral first). Its catalogue entries — CDP session re-validation, browser re-login via standing SSO, escalate-to-browser-agent — with attempt caps (2/rung/incident), disk-persisted cooldowns, and the never-list (no quota-data writes, no credential changes beyond re-storing a session under its registered name, allowlist origins only) are written to fold into this issue's catalogue rather than live as a parallel framework. Escalation split follows this issue's rule: remediation first, Drew only on human-blocked or failed remediation. dezren39 commented on Nov 14, 2026 Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 15157 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet. dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane code-b
- Session / ID: task 15157 (triage of design(pm-stack): SLOs + self-healing for the PM stack itself — freshness SLOs with error budgets, watchdog remediates before alerting #1260)
- Verdict: still live. design(pm-stack): SLOs + self-healing for the PM stack itself — freshness SLOs with error budgets, watchdog remediates before alerting #1260 is OPEN, unheld, and the design work remains — the existing watchdog detector does not resolve it (confirming the 2026-11-03 triage note). This is a design deliverable, not a code fix: a design note in
doc/ answering the five design questions, plus implementation issues filed as sub-issues of epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184.
- Triage labels: work kind = design note (bounded doc PR); priority/normal, effort/m, kind/feature already on the issue and confirmed. Acceptance for the follow-on: the note answers every design question (per-facet freshness SLOs + error budgets, remediation catalogue with guardrails / attempt caps / cooldowns, post-remediation verification + logging, escalation thresholds, the watchdog never-do list), names every Drew question explicitly, and the implementation sub-issues exist under epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184.
- Routing: the packet schema (repo-task/v1) has no design kind, so the follow-on is enqueued as a
small_fix packet scoped to exactly that doc-PR deliverable: task 16644. First concrete step for that task: inventory the current health page facets and the impl(fleet): staleness watchdog - surface dead/stale stack inputs as NEEDS ORCHESTRATOR instead of silent decay #1148 watchdog design, then draft the SLO table from live facet ages.
- Links: queue task 15157; follow-on task 16644; epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184; specialization design(pm-stack): browser-dependent quota watchdog — CDP scrape producers that self-repair, escalate to a browser-enabled agent #6031
dezren39 commented on Nov 14, 2026
agent-note:v1
state: done
Done: design note doc/2026-11-14T12-54-00Z_design_pm_stack_slo_watchdog/ merged via PR #9987 (b71b7a5). All acceptance criteria met:
- All five design questions answered: per-facet SLOs with 30-day error budgets and health-page display (§1); remediation catalogue with per-action caps/cooldowns, global caps, circuit breakers, stateful services escalate-only (§2); verification against each facet's own SLO signal with an append-only journal mirrored to the actions feed (§3); budget-aware escalation — page vs NEEDS ORCHESTRATOR (§4); the never-do list plus watchdog self-failure detection (§5).
- Implementation issues filed, each with its own acceptance criteria: impl(pm-stack): SLO sampler + journal + health-page error-budget display (#1260 follow-on 1) #9988 (SLO sampler/display), impl(pm-stack): watchdog remediation executor — catalogue, caps, cooldowns, circuit breakers (#1260 follow-on 2) #9989 (remediation executor), impl(pm-stack): post-remediation verification + journal/feed mirroring (#1260 follow-on 3) #9990 (verification + journal), impl(pm-stack): watchdog escalation router — page vs NEEDS ORCHESTRATOR, budget-aware (#1260 follow-on 4) #9991 (escalation router), impl(pm-stack): watchdog heartbeat + self-failure checker (#1260 follow-on 5) #9992 (heartbeat + self-failure checker). Native sub-issue linking to epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 hit GitHub's 100 sub-issue cap on the epic (HTTP 422); they are linked from the epic by comment 6877585254 and from their own bodies instead.
- The five questions needing Drew are named explicitly in §6 of the note (page channel, SLO ratification, tunnel restarts, stateful exceptions, journal retention) — they gate implementation choices, not this design.
Closing this design issue; the follow-ons carry the work from here.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|