Skip to content

feat(nos-runner-watchdog): watch the macOS pool from the same Worker - #309

Merged
smartwatermelon-agent[bot] merged 2 commits into
mainfrom
claude/feat-watchdog-macos-pool-56536f08
Nov 24, 2026
Merged

smartwatermelon-agent[bot] merged 2 commits into
mainfrom
claude/feat-watchdog-macos-pool-56536f08

Conversation

@smartwatermelon-agent

Copy link
Copy Markdown
Contributor

Part 2 Task 2 of the fleet runner rollout. The watchdog Worker now watches the smartwatermelon macOS pool as well as the NOS pool, from one Worker, on its own cron.

  • The macOS pool is optional: when its App secrets are missing, it stays silent. A pool with only some SWM_* secrets set also stays silent, by design.
  • The NOS pool keeps its current missing-secret alert path, so a lost NOS secret still alerts.
  • NOS behavior is unchanged over six scenarios. Tests: 116/116.

Merging this deploys nothing. Andrew deploys the Worker by hand in the part 2 batch.

Advances #252

Claude Code Bot added 2 commits November 23, 2026 16:59
The Worker now runs one tick per pool. scheduled() picks the pool from
event.cron: "*/10 * * * *" is NOS (as before), and the new
"5,15,25,35,45,55 * * * *" trigger is the smartwatermelon macOS pool.
An unknown cron logs one line and does nothing.

The GitHub calls (getRunners, getVar, setVar, scanQueue, scanRepo,
mimoletteJobs) take the pool for its org, variable, label and variable
visibility; they default to NOS. runTick takes the pool too: KV keys get
the pool prefix (none for NOS), the token is minted from that pool's App
secrets, decide() gets the pool's labels, and alerts use pool.messages.
The copy of the NOS texts in index.js is gone; the old tests that assert
those texts pass unedited.

A pool whose App secrets are not all set logs one line and makes no
fetch and no KV call, not even the skips write. Each pool runs in its
own invocation, so each keeps its own 40-subrequest budget.

Merging deploys nothing. Andrew deploys, with the SWM_* secrets, in the
batch.

Advances #252
The previous commit made every pool return silently when any App secret
was missing. For NOS that would turn a lost secret into a silent
watchdog. NOS must keep the old path: the mint fails, the tick counts a
skip and sends the skip alert.

POOLS.swmMacos now has optional: true. Only an optional pool takes the
silent return. Other pools mint from their own App's raw secret values,
as before, so NOS with a missing secret behaves as on origin/main.
pool_nos_missing_secret_keeps_old_path pins that.

Advances #252
@smartwatermelon-agent
smartwatermelon-agent Bot merged commit f8f995d into main Nov 24, 2026
6 checks passed
@smartwatermelon-agent
smartwatermelon-agent Bot deleted the claude/feat-watchdog-macos-pool-56536f08 branch November 24, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants