feat(watchdogs): add experimental self-mode watchdogs

- Add enableWatchdogEverything experimental instance setting and UI toggle.
- Add issue_watchdogs.mode and accept mode in the watchdog endpoint.
- Wake task assignees directly for stopped self-mode watchdogs.
- Add first-instruction guidance for assignment-shaped wakes.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-29 19:07:29 +00:00
1 parent 9574cad3e8
commit 7b4722e26c
21 files changed
+554 -4

No files matched your search

+4
View File
@@ -497,6 +497,10 @@ export type CreateIssue = z.infer<typeof createIssueSchema>;
export const upsertIssueWatchdogSchema = z.object({
agentId: z.string().uuid(),
instructions: multilineTextSchema.optional().nullable(),
// "subtask" (default) reviews stopped subtrees through a separate watchdog
// issue; "self" wakes the watchdog agent directly on the watched issue
// (experimental "watchdog everything"). Omitted on update keeps the current mode.
mode: z.enum(["subtask", "self"]).optional(),
}).strict();
export type UpsertIssueWatchdog = z.infer<typeof upsertIssueWatchdogSchema>;