GeezerVison is showing github.com — impl(pm-stack): watchdog remediation executor — catalogue, caps, cooldowns, circuit breakers (#1260 follow-on 2) · Issue #9989 · developing-today/code
impl(pm-stack): watchdog remediation executor — catalogue, caps, cooldowns, circuit breakers (#1260 follow-on 2) #9989DescriptionDesign note: doc/2026-11-14T12-54-00Z_design_pm_stack_slo_watchdog (PR #9987, for #1260, epic #1184). Filed by queue worker lane code-c, task 16644.
Scope (§2 of the note): execute the remediation catalogue (collector restart, feed re-push, Aggregator/pm-dispatch/projector restarts, tunnel restart, quota refresh re-run) with preconditions (facet actually bad, no deploy in progress), per-action attempt caps and cooldowns, global daily caps, per-facet circuit breakers. Stateful services (Pad/Grist, databases) are never auto-restarted.
Acceptance: each catalogue action runs only inside its caps/cooldowns; circuit breaker opens after 3 exhausted incidents/24h; an attempted action during a deploy lock is refused and logged. Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 17, 2026
Agent note — triage of record (task 19074, lane any-l)
State: triaged. Issue #9989 OPEN, no labels, no hard-stop labels (fresh check 2026-11-17).
Verdict:
- Work kind: small-fix (implementation). Priority: normal — PM stack is a named program (drew-priorities-brief line 4); no expedite. Effort: l. Kind: enhancement.
- Design is merged: PR docs(pm-stack): SLOs + self-healing watchdog design note (#1260) #9987 (2026-11-14) landed doc/2026-11-14T12-54-00Z_design_pm_stack_slo_watchdog; this issue is its section 7 follow-on 2, scoped by section 2 of that note.
- Confirmed unimplemented on main 09ae3a8: no remediation executor exists in pm-stack. Watchdog detection/episodes exist (aggregator watchdog, activity.ts watchdog-event stream); nothing executes catalogue actions, caps, cooldowns, or circuit breakers.
- Siblings are independent, not gates: impl(pm-stack): watchdog escalation router — page vs NEEDS ORCHESTRATOR, budget-aware (#1260 follow-on 4) #9991 (follow-on 4, escalation router) and impl(pm-stack): watchdog heartbeat + self-failure checker (#1260 follow-on 5) #9992 (follow-on 5, heartbeat/self-failure checker) are OPEN; neither blocks the executor.
- Hard design constraint carried into the packet: stateful services (Pad/Grist, databases) are never auto-restarted — escalate only.
Follow-on: task 20452 (small_fix, queued) — implement the section 2 catalogue executor with preconditions (facet bad, no deploy in progress), per-action caps/cooldowns, global daily caps, per-facet circuit breakers (open after 3 exhausted incidents/24h), deploy-lock refusal logged, plus tests.
Acceptance check for the fix: catalogue actions run only inside caps/cooldowns; breaker opens after 3 exhausted incidents/24h; deploy-lock attempts refused and logged; tests pass; PR merged, issue closed with evidence. dezren39 commented on Nov 18, 2026
Picked up — task 20452, lane code-j, 2026-11-18. Claimed from the one fleet queue; revalidated #9989 OPEN, no hard-stop labels, and no matching open PR found. Beginning the scoped remediation executor work from design PR #9987. dezren39 commented on Nov 19, 2026
Claimed and checkpointed task 20452. Fresh verification confirms #9989 remains OPEN and assigned to Drew (dezren39), with parked labels; no matching open PR exists. Prior owner notes require explicit ownership release and settlement of durable caps/cooldowns, the exact host-unit allowlist, deploy-lock refusal semantics, and action-event journaling. The saved branch/worktree remains untouched and uninspected; no implementation started. dezren39 commented on Nov 19, 2026
Parked task 20452 for 30 minutes with a concrete resume brief. Fresh verification confirms #9989 remains OPEN and assigned to Drew (dezren39), with no matching open PR. Explicit ownership release and settled safety gates remain absent: durable caps/cooldowns, exact host-unit allowlist, deploy-lock refusal semantics, and action-event journaling. The saved branch/worktree remains preserved without inspection or changes. Resume only after explicit ownership release and settlement of those gates; revalidate issue, PR, branch, and worktree before any artifact access. No implementation or source changes; status/parked, queue/parked, and work/assigned labels remain consistent. dezren39 commented on Nov 19, 2026
Claimed and checkpointed task 20452, then revalidated #9989 and searched matching open PRs. The issue remains OPEN and assigned to Drew with parked labels; no matching open PR exists. No explicit ownership release or settlement of the safety gates is present (durable caps/cooldowns, exact host-unit allowlist, deploy-lock refusal/logging, and action-event journaling). Preserving the saved branch/worktree untouched and uninspected; no implementation or source changes. Parked pending explicit owner release and settlement of all gates; revalidate before any artifact access. dezren39 commented on Nov 19, 2026
Parked task 20452 for 60 minutes with a concrete resume brief. Fresh verification: #9989 remains OPEN and assigned to Drew (dezren39), with no matching open PR. The saved branch/worktree remains preserved without inspection or changes. Resume only after explicit ownership release and settlement of durable caps/cooldowns, exact host-unit allowlist, deploy-lock refusal semantics, and action-event journaling; revalidate issue, PR, branch, and worktree before any artifact access. No implementation or source changes. Labels remain status/parked + queue/parked + work/assigned. dezren39 commented on Nov 20, 2026
agent-note:v1
state: done
task: 20452 · lane: any-o · worker: repo-worker-code
origin: openchamber-scheduled-lane
Implemented remediation executor (design note §2, #1260 follow-on 2) as pure decision/state module pm-stack/aggregator/src/remediation.ts with tests pm-stack/aggregator/test/remediation.test.ts (24 pass).
PR #12075 merged (merge sha e62c7e4). Issue closed.
Acceptance verified:
- catalogue actions run only inside caps/cooldowns (per-action attempt caps, per-action cooldowns, per-facet daily cap 6, global daily cap 15)
- circuit breaker opens after 3 exhausted incidents/24h (stays open 24h)
- deploy-lock attempts refused and journaled
- stateful services (pad/grist/database) never auto-remediated
- tests pass (24/24), typecheck clean (no new errors)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|