You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(agent): DB-backed global kill-switch (instant freeze, no redeploy) (#1243)
Re-ports reviewbot's instant global freeze that the convergence dropped
(audit §5.2). The only global brake was the env var AGENT_ACTIONS_PAUSED,
which needs a Worker redeploy/secret push to flip, and the /status isFrozen
field was a hardcoded `false` stub.
Adds a singleton global_agent_controls row an operator can flip with one SQL
statement (no redeploy). The action-mode resolver now folds the DB freeze
into globalPaused at all three call sites (executor, the queue re-gate sweep,
and the MCP activation preview), so a freeze halts every agent write action
within one evaluation cycle. /status now reports the real freeze state. The
read fails OPEN (the env var remains the hard backstop) so a transient D1
hiccup can't by itself halt the fleet.
The per-PR SubmissionLock / consumer-concurrency piece of §5.3 is a larger
Durable-Object port and the audit rated its race refuted-to-low (the planner
is deterministic and all side-effect writes are idempotent upserts keyed by
repo#pr, with the merge SHA-pin from #1227 as the hard backstop); deferred.
0 commit comments