diff --git a/docs/superpowers/plans/2026-11-23-runner-fleet-rollout-part1.md b/docs/superpowers/plans/2026-11-23-runner-fleet-rollout-part1.md new file mode 100644 index 0000000..fbc6359 --- /dev/null +++ b/docs/superpowers/plans/2026-11-23-runner-fleet-rollout-part1.md @@ -0,0 +1,150 @@ +# Runner fleet rollout, part 1: harden the existing pools + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Before the fleet adds load, fix the gaps in the live pools that an outage on 2026-11-20 exposed. Fixes: a NOS slot that waits forever for a job (dev-env#297), no fast path back after a manual fix (dev-env#298), and the still-valid minor findings from macOS plan part 1 (dev-env#294). + +**Architecture:** The NOS supervisor (`scripts/nos-runner/supervisor.sh`, bash 3.2, launchd) gets one new pass step, `restart_stale_slots`. It deletes and replaces a runner that GitHub reports idle after it has waited longer than `NOS_IDLE_MAX_S`. The runbook gets a manual-recovery section, and the watchdog's existing `external` reset is the mechanism. The macOS supervisor gets small, separate fixes. + +**Tech Stack:** bash 3.2 (macOS `/bin/bash`), stubbed test harnesses in `scripts/*/tests/`, shellcheck. + +**Spec:** `docs/superpowers/specs/2026-11-23-runner-fleet-rollout-design.md` (phase 1). Issues: dev-env#297, dev-env#298, dev-env#294. + +## Global Constraints + +- Every shell change: `shellcheck -S info