From 609339eb8663329d038067e8684f28add3323e98 Mon Sep 17 00:00:00 2001 From: nullStack65 <112618179+nullStack65@users.noreply.github.com> Date: Fri, 20 Nov 2026 08:56:06 +0000 Subject: [PATCH] fix(server): alerts default to the new CoS thread, not the retired one The fork's default model-alert watcher still named the CoS thread that was retired on 2026-11-20, so every machine without its own modelAlertWatcher setting kept waking it with model, usage-limit and (on older builds) thread events. The default now names the replacement CoS thread on the same laptop environment. Model: claude-opus-5-5 Task: fix Agent: claude-code Lane: CLO-916 Co-Authored-By: Claude Opus 5.5 --- docs/operations/watcher-thread.md | 4 ++-- packages/contracts/src/settings.ts | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/operations/watcher-thread.md b/docs/operations/watcher-thread.md index 416ff2e016f86..9608770fa2e8c 100644 --- a/docs/operations/watcher-thread.md +++ b/docs/operations/watcher-thread.md @@ -1,6 +1,6 @@ # Watcher thread -One thread, by default Lead's on the laptop, hears model, usage-limit and link alerts from every linked environment. The thread events below go instead to the thread that launched the lane, read from the lane's `inbox.origin`, else `inbox.requestedBy`. When that thread is archived, deleted or unknown, a thread event reaches no thread, only `modelAlertWebhookUrl` when set, so a founder-facing watcher never hears about a lane it did not launch. The server decides each event from thread state with no agent judgment, queues it durably, and retries until the receiving machine answers. +One thread, by default Kameron's CoS on the laptop, hears model, usage-limit and link alerts from every linked environment. The thread events below go instead to the thread that launched the lane, read from the lane's `inbox.origin`, else `inbox.requestedBy`. When that thread is archived, deleted or unknown, a thread event reaches no thread, only `modelAlertWebhookUrl` when set, so a founder-facing watcher never hears about a lane it did not launch. The server decides each event from thread state with no agent judgment, queues it durably, and retries until the receiving machine answers. | Event | Fires when | | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | @@ -14,4 +14,4 @@ Each event reports once per thread and kind until its state changes: a new run, ## Moving the watcher -The watcher is the `modelAlertWatcher` server setting (`{ environmentId, threadId }`, or `null` for none). Its Closura default is in `packages/contracts/src/settings.ts` (`DEFAULT_MODEL_ALERT_WATCHER`). To move Lead to an always-on machine such as the R720, change that one default and ship a build, or set `modelAlertWatcher` in each machine's settings to override it. `modelAlertWebhookUrl` additionally POSTs every alert as JSON. +The watcher is the `modelAlertWatcher` server setting (`{ environmentId, threadId }`, or `null` for none). Its Closura default is in `packages/contracts/src/settings.ts` (`DEFAULT_MODEL_ALERT_WATCHER`). To move the watcher, for example to an always-on machine such as the R720, change that one default and ship a build, or set `modelAlertWatcher` in each machine's settings to override it. `modelAlertWebhookUrl` additionally POSTs every alert as JSON. diff --git a/packages/contracts/src/settings.ts b/packages/contracts/src/settings.ts index 8e08976ff6b7a..b457268bf5fc8 100644 --- a/packages/contracts/src/settings.ts +++ b/packages/contracts/src/settings.ts @@ -1191,11 +1191,14 @@ export const ModelAlertWatcher = Schema.Struct({ }); export type ModelAlertWatcher = typeof ModelAlertWatcher.Type; -// Closura: Lead's thread on the laptop hears every machine's alerts and thread events. Moving Lead -// to an always-on machine means changing this one value (or `modelAlertWatcher` on each machine). +// Closura: Kameron's CoS thread on the laptop hears every machine's alerts (the old CoS thread +// retired on 2026-11-20). Moving the watcher means changing this one value (or `modelAlertWatcher` +// on each machine). const DEFAULT_MODEL_ALERT_WATCHER: ModelAlertWatcher = { environmentId: EnvironmentId.make("2f360b2e-0386-498a-b9cd-62999f3525ba"), - threadId: ThreadId.make("0ff5603d-8291-4f56-adaf-5132c62016cf"), + threadId: ThreadId.make( + "mcp:launch:4c07a2ef8bc6157f99fbae20642807c05a8a57c53eaec25dd4abfa16bc5b242e", + ), }; export const ResponseStreamingMode = Schema.Literals(["turn", "paragraph"]);