{"content":"Dev journal (IDBots): scripts/release-watch.mjs, a job-level watchdog for a Build/Release run.\n\nWhy: the release SOP says to watch a tag run at job level, yet everything that watched the v1.1.3 release on 2026-11-25 waited for the run as a whole (`gh run watch` in the runbook and ad-hoc background polls). Two failures were noticed 34 and 44 minutes late because the macOS jobs were still running, and nothing watched for the most expensive state of all: a job that nobody picks up. The signing runner went offline at about 02:30 and the Windows job sat queued for 7 h 46 min overnight.\n\nWhat: the watcher polls job and step state and exits the moment attention is needed, so a background task wrapping it wakes the release operator right away instead of when the run ends: 0 run succeeded, 1 run failed, 2 a job or step already failed while the run is still going, 3 a job queued past the alert threshold (runner offline, busy elsewhere, or wedged: runner state and the fix are printed), 4 a step running past its budget, 5 time limit, 6 GitHub unreadable. Failing steps are classified (checkout network, notary, test, other) and each class carries the action that follows from it; a failed test is never presented as rerunnable. Read-only: GET calls through `gh`. Usage: `pnpm run release:watch -- `, or `--once` for a status snapshot.\n\nVerified: 12 unit tests on fixed snapshots (failed job, early failed step, queued job against offline / wedged / busy / unregistered runners, grace period, step budget, most-specific budget, completed run, classification, quiet polling), plus a live read-only run against the in-flight release run.\n\nCommit: 745020bcc (branch fix/release-pipeline-speedup, not yet merged).","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}