arco-workbench 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (810) hide show
  1. package/CONTRIBUTING.md +25 -12
  2. package/README.md +12 -8
  3. package/client/dist/THIRD_PARTY_LICENSES.txt +3912 -0
  4. package/client/dist/assets/{PhosphorBackdrop-D7jdAV_G.js → PhosphorBackdrop-9jNRO1ZM.js} +1 -1
  5. package/client/dist/assets/{ThemedBackgroundShaderImpl-DrDm60h8.js → ThemedBackgroundShaderImpl-tUi3k54Y.js} +1 -1
  6. package/client/dist/assets/XtermView-B7BOSnVo.js +10 -0
  7. package/client/dist/assets/{galleryEditor-D951A2sE.js → galleryEditor-Ohc2h9cD.js} +1 -1
  8. package/client/dist/assets/index-CVJVD2Vn.css +1 -0
  9. package/client/dist/assets/index-ILGXWriO.js +638 -0
  10. package/client/dist/index.html +3 -3
  11. package/client/src/App.tsx +44 -9
  12. package/client/src/components/AskUserQuestionNotice.tsx +37 -10
  13. package/client/src/components/AttachmentPill.tsx +3 -2
  14. package/client/src/components/AuthReloginNotice.tsx +25 -6
  15. package/client/src/components/AutomaticMessage.tsx +3 -1
  16. package/client/src/components/CatchMeUp.tsx +4 -1
  17. package/client/src/components/ChatMessage.tsx +76 -13
  18. package/client/src/components/ChatModeView.tsx +21 -3
  19. package/client/src/components/ChatPanel.tsx +5 -0
  20. package/client/src/components/ClusterActivityTab.tsx +9 -3
  21. package/client/src/components/ClusterComposerButtons.tsx +5 -3
  22. package/client/src/components/ClusterPlanTab.tsx +55 -8
  23. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +38 -99
  24. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +36 -12
  25. package/client/src/components/ClusterRightPanel/MailboxModal.tsx +61 -8
  26. package/client/src/components/ClusterRightPanel/MemberRow.tsx +46 -14
  27. package/client/src/components/ClusterRightPanel/PhoneMemberList.tsx +56 -0
  28. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +38 -9
  29. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +30 -12
  30. package/client/src/components/ClusterRightPanel/index.tsx +188 -39
  31. package/client/src/components/ClusterRightPanel/memberSettings.ts +2 -2
  32. package/client/src/components/ClusterRightPanel/panels.ts +1 -0
  33. package/client/src/components/ClusterRightPanel/types.ts +5 -1
  34. package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +82 -0
  35. package/client/src/components/ClusterTab.tsx +76 -23
  36. package/client/src/components/ClusterTaskBoardTab.tsx +35 -6
  37. package/client/src/components/CodexLateCommand.tsx +34 -0
  38. package/client/src/components/Connections/Connections.tsx +5 -8
  39. package/client/src/components/Connections/model.ts +2 -2
  40. package/client/src/components/DialogShell.tsx +6 -0
  41. package/client/src/components/DirectorContinuePrompt.tsx +56 -0
  42. package/client/src/components/FileExplorer.tsx +54 -1
  43. package/client/src/components/FileViewerModal.tsx +39 -7
  44. package/client/src/components/FirstRun.tsx +3 -2
  45. package/client/src/components/ForwardMessages.tsx +6 -3
  46. package/client/src/components/GateApprovalNotice.tsx +7 -4
  47. package/client/src/components/GeminiSkillNotice.tsx +12 -0
  48. package/client/src/components/GeminiSubagentLine.tsx +5 -0
  49. package/client/src/components/GitDialog.tsx +15 -6
  50. package/client/src/components/GitOtherWork.tsx +2 -1
  51. package/client/src/components/HandoffDialog.tsx +3 -2
  52. package/client/src/components/HeaderVersionBox.tsx +6 -2
  53. package/client/src/components/HistoryTab.tsx +127 -108
  54. package/client/src/components/Home/HomeView.tsx +14 -3
  55. package/client/src/components/Home/ResearchLibrary.tsx +107 -0
  56. package/client/src/components/Home/home.css +6 -0
  57. package/client/src/components/LoginFlow.tsx +12 -5
  58. package/client/src/components/MemberCard.tsx +12 -3
  59. package/client/src/components/MemberPane.tsx +15 -5
  60. package/client/src/components/MobileNotices.tsx +26 -0
  61. package/client/src/components/MobileQuestionBar.tsx +35 -0
  62. package/client/src/components/MobileShell.tsx +811 -0
  63. package/client/src/components/MobileTextSize.tsx +27 -0
  64. package/client/src/components/NativeSubagentControls.tsx +12 -1
  65. package/client/src/components/NorthStarBar.tsx +2 -0
  66. package/client/src/components/NotificationToasts.tsx +6 -2
  67. package/client/src/components/OperatorQuestionNotice.tsx +2 -2
  68. package/client/src/components/PendingQuestionsButton.tsx +44 -5
  69. package/client/src/components/PhoneUpload.tsx +290 -0
  70. package/client/src/components/PlanComposerDialog.tsx +7 -7
  71. package/client/src/components/PrimaryStatus.tsx +14 -6
  72. package/client/src/components/ProjectsSettings.tsx +3 -0
  73. package/client/src/components/ProvidersPopover.tsx +9 -6
  74. package/client/src/components/PurgeConversationModal.tsx +1 -1
  75. package/client/src/components/QueuedMessagesIndicator.tsx +1 -1
  76. package/client/src/components/Recall/RecallView.tsx +31 -8
  77. package/client/src/components/ResearchFolderSetting.tsx +64 -0
  78. package/client/src/components/RightPanel/ActivityTab.tsx +9 -4
  79. package/client/src/components/RightPanel/BlastRadiusTab.tsx +6 -8
  80. package/client/src/components/RightPanel/ConfigTab.tsx +18 -10
  81. package/client/src/components/RightPanel/FilesTab.tsx +34 -19
  82. package/client/src/components/RightPanel/PlanTab.tsx +67 -24
  83. package/client/src/components/RightPanel/UsageTab.tsx +30 -3
  84. package/client/src/components/RightPanel/index.tsx +42 -3
  85. package/client/src/components/RuntimeStateBanner.tsx +13 -0
  86. package/client/src/components/ScratchCloseDialog.tsx +124 -0
  87. package/client/src/components/SettingsPanel.tsx +181 -69
  88. package/client/src/components/SkillActivityIndicator.tsx +93 -0
  89. package/client/src/components/SkillEditorDialog.tsx +2 -2
  90. package/client/src/components/SkillsSettings.tsx +17 -5
  91. package/client/src/components/SystemHeader.tsx +2 -7
  92. package/client/src/components/SystemModal.tsx +37 -45
  93. package/client/src/components/TabBar.tsx +52 -8
  94. package/client/src/components/TabContextMenu.tsx +12 -102
  95. package/client/src/components/TaskCard.tsx +13 -17
  96. package/client/src/components/TaskChildComposer.tsx +24 -0
  97. package/client/src/components/TasksPanel.tsx +7 -17
  98. package/client/src/components/Terminal/FloatingTerminalWindow.tsx +11 -3
  99. package/client/src/components/Terminal/FloatingWindow.tsx +36 -14
  100. package/client/src/components/Terminal/XtermView.tsx +19 -2
  101. package/client/src/components/Terminal/phoneKeys.ts +9 -0
  102. package/client/src/components/TerminalInput.tsx +151 -32
  103. package/client/src/components/TranscriptWorkerDialog.tsx +2 -2
  104. package/client/src/components/UpdateAction.tsx +9 -6
  105. package/client/src/components/UsageBar.tsx +118 -10
  106. package/client/src/components/UserManual/MobileManualContent.tsx +58 -0
  107. package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +8 -5
  108. package/client/src/components/WorkflowCreator/PastChatsList.tsx +3 -1
  109. package/client/src/components/WorkflowCreator/ProjectPicker.tsx +3 -3
  110. package/client/src/components/WorkflowCreator/ResearchStartForm.tsx +335 -0
  111. package/client/src/components/WorkflowCreator/index.tsx +124 -36
  112. package/client/src/components/WorkflowCreator/memberProviders.ts +20 -5
  113. package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +20 -0
  114. package/client/src/components/WorkflowCreator/types.ts +18 -0
  115. package/client/src/components/WorkflowStatusChip.tsx +1 -0
  116. package/client/src/components/WorkflowView.tsx +53 -13
  117. package/client/src/components/chatMessageLabel.ts +4 -0
  118. package/client/src/components/clusterActivity.helpers.ts +5 -1
  119. package/client/src/components/clusterNeedsYou.ts +3 -8
  120. package/client/src/components/clusterSurface.helpers.ts +6 -1
  121. package/client/src/components/composer/submitComposer.ts +7 -1
  122. package/client/src/components/help/HelpBanner.tsx +10 -5
  123. package/client/src/components/help/HelpPopover.tsx +5 -0
  124. package/client/src/components/media/MediaModalHost.tsx +13 -8
  125. package/client/src/components/plans/PhonePlanView.tsx +66 -0
  126. package/client/src/components/plans/phonePlanChecklist.ts +45 -0
  127. package/client/src/components/providerIndicator.ts +83 -0
  128. package/client/src/components/research/AddResearcherSection.tsx +50 -0
  129. package/client/src/components/research/ExportResearchDialog.tsx +52 -0
  130. package/client/src/components/research/QuickResearchOverview.tsx +92 -0
  131. package/client/src/components/research/RerunResearchDialog.tsx +61 -0
  132. package/client/src/components/research/ResearchCloseDialog.tsx +98 -0
  133. package/client/src/components/research/ResearchRemoveDialog.tsx +37 -0
  134. package/client/src/components/research/ResearchReopenDialog.tsx +160 -0
  135. package/client/src/components/research/ResearchResultsTab.css +289 -0
  136. package/client/src/components/research/ResearchResultsTab.tsx +207 -0
  137. package/client/src/components/research/ResearchRoundsStrip.tsx +127 -0
  138. package/client/src/components/research/SavedQuickKeep.tsx +58 -0
  139. package/client/src/components/research/SendResearchDialog.tsx +126 -0
  140. package/client/src/components/research/StartResearchProjectDialog.tsx +108 -0
  141. package/client/src/components/research/researchExports.ts +26 -0
  142. package/client/src/components/research/researchLinks.tsx +30 -0
  143. package/client/src/components/research/researchView.ts +64 -0
  144. package/client/src/components/research/researcherRow.tsx +104 -0
  145. package/client/src/components/settings/AppVersionSection.tsx +2 -0
  146. package/client/src/components/settings/SettingsLayout.tsx +23 -4
  147. package/client/src/components/settings/navigation.ts +4 -4
  148. package/client/src/components/settings/settings.css +18 -0
  149. package/client/src/components/usageVisibility.ts +4 -6
  150. package/client/src/components/workSurface/WorkSurfaceControls.tsx +7 -0
  151. package/client/src/explorer/ArtifactsLens.tsx +37 -28
  152. package/client/src/explorer/ExplorerApp.tsx +5 -4
  153. package/client/src/explorer/StorageLens.tsx +10 -3
  154. package/client/src/explorer/types.ts +8 -3
  155. package/client/src/help/content/chat.tsx +5 -8
  156. package/client/src/help/content/cluster.tsx +79 -29
  157. package/client/src/help/content/composer.tsx +29 -7
  158. package/client/src/help/content/header.tsx +19 -25
  159. package/client/src/help/content/media.tsx +2 -2
  160. package/client/src/help/content/misc.tsx +175 -39
  161. package/client/src/help/content/recall.tsx +2 -2
  162. package/client/src/help/content/rightPanel.tsx +8 -8
  163. package/client/src/help/content/settings.tsx +48 -14
  164. package/client/src/help/content/tabbar.tsx +6 -2
  165. package/client/src/help/manualSections/actions.tsx +7 -2
  166. package/client/src/help/manualSections/chat.tsx +16 -15
  167. package/client/src/help/manualSections/clusters.tsx +351 -69
  168. package/client/src/help/manualSections/configuration.tsx +28 -19
  169. package/client/src/help/manualSections/deepseek.tsx +4 -5
  170. package/client/src/help/manualSections/gettingStarted.tsx +34 -30
  171. package/client/src/help/manualSections/maintenance.tsx +16 -11
  172. package/client/src/help/manualSections/plans.tsx +4 -4
  173. package/client/src/help/manualSections/powerFeatures.tsx +54 -20
  174. package/client/src/help/manualSections/providers.tsx +56 -21
  175. package/client/src/help/manualSections/reference.tsx +6 -6
  176. package/client/src/help/manualSections/strata.tsx +8 -8
  177. package/client/src/help/manualSections/workflows.tsx +3 -3
  178. package/client/src/help/manualSections/workspace.tsx +143 -37
  179. package/client/src/hooks/useWebSocket.ts +21 -4
  180. package/client/src/layout/PhoneBottomSheet.tsx +71 -0
  181. package/client/src/layout/PhonePage.tsx +71 -0
  182. package/client/src/layout/SlideOut.tsx +36 -9
  183. package/client/src/layout/layoutRange.ts +41 -4
  184. package/client/src/layout/phoneChip.ts +14 -0
  185. package/client/src/layout/phoneOverlay.ts +81 -0
  186. package/client/src/layout/phonePageActions.ts +40 -0
  187. package/client/src/stores/appStore.ts +43 -10
  188. package/client/src/stores/appStore.types.ts +33 -3
  189. package/client/src/stores/directorContinueStore.ts +22 -0
  190. package/client/src/stores/draftStore.ts +56 -2
  191. package/client/src/stores/phoneStore.ts +196 -0
  192. package/client/src/stores/terminalStore.ts +8 -0
  193. package/client/src/styles/contextual-help.css +10 -0
  194. package/client/src/styles/global.css +402 -0
  195. package/client/src/themes/apply.ts +9 -1
  196. package/client/src/themes/bootstrap.ts +21 -1
  197. package/client/src/themes/providerThemes.ts +1 -0
  198. package/client/src/utils/codexAccountHome.ts +9 -0
  199. package/client/src/utils/format.ts +8 -2
  200. package/client/src/utils/gitBranchMark.ts +3 -0
  201. package/client/src/utils/homeModel.ts +7 -0
  202. package/client/src/utils/longPress.ts +64 -0
  203. package/client/src/utils/modelCatalog.ts +4 -0
  204. package/client/src/utils/phoneTheme.ts +38 -0
  205. package/client/src/utils/phoneUploadApi.ts +10 -0
  206. package/client/src/utils/providerStatusCheck.ts +30 -0
  207. package/client/src/utils/startupGate.ts +6 -0
  208. package/client/src/ws/handleServerMessage.ts +129 -13
  209. package/docs/ARCHITECTURE.md +63 -37
  210. package/docs/ARCHITECTURE_REVIEW.md +1 -1
  211. package/docs/BACKUP.md +60 -9
  212. package/docs/CHAT.md +15 -11
  213. package/docs/CHECKPOINTS.md +2 -0
  214. package/docs/CLIENT.md +77 -37
  215. package/docs/DEEPSEEK.md +9 -10
  216. package/docs/DIAGNOSTICS.md +8 -7
  217. package/docs/DOCKER.md +16 -2
  218. package/docs/EXTENDING.md +10 -26
  219. package/docs/FEATURES.md +28 -17
  220. package/docs/GENESIS.md +3 -1
  221. package/docs/GETTING_STARTED.md +90 -19
  222. package/docs/GIT_WORKBENCH.md +5 -5
  223. package/docs/GLOSSARY.md +36 -23
  224. package/docs/GOTCHAS.md +102 -67
  225. package/docs/HTTP_API.md +182 -86
  226. package/docs/INDEX.md +2 -1
  227. package/docs/KNOWLEDGE.md +2 -2
  228. package/docs/LOCAL_SERVICES.md +9 -8
  229. package/docs/MCP_REGISTRY.md +18 -13
  230. package/docs/MEDIA_STUDIO.md +7 -11
  231. package/docs/OPERATIONS.md +300 -72
  232. package/docs/OPERATOR_ACTIONS.md +24 -22
  233. package/docs/PERSISTENCE.md +65 -24
  234. package/docs/PHOSPHOR_DEMO.md +1 -4
  235. package/docs/PLAN_OR_BOARD.md +2 -2
  236. package/docs/PRIMITIVES.md +17 -17
  237. package/docs/PROTOCOL.md +60 -9
  238. package/docs/PROTOCOL_CLUSTER.md +100 -22
  239. package/docs/PROTOCOL_PRIMITIVES.md +10 -4
  240. package/docs/PROVIDERS.md +324 -144
  241. package/docs/RECALL.md +40 -31
  242. package/docs/REMOTE_MANAGEMENT.md +27 -51
  243. package/docs/REPO_LAYOUT.md +4 -3
  244. package/docs/RESEARCH.md +189 -0
  245. package/docs/RESUME_INDEX.md +10 -19
  246. package/docs/SERVICE_MODE.md +11 -5
  247. package/docs/SETTINGS.md +22 -15
  248. package/docs/STORAGE_PLAN.md +3 -3
  249. package/docs/STRATA.md +14 -11
  250. package/docs/TASK_LEDGER.md +19 -8
  251. package/docs/TERMINAL.md +14 -10
  252. package/docs/THIRD_PARTY.md +21 -4
  253. package/docs/VOICE.md +16 -28
  254. package/native/darwin-arm64/manifest.json +1 -1
  255. package/native/linux-arm64/manifest.json +1 -1
  256. package/native/linux-x64/manifest.json +1 -1
  257. package/native/win32-x64/manifest.json +1 -1
  258. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +1 -0
  259. package/node_modules/@arco/shared/dist/clusterCoordination.js +9 -1
  260. package/node_modules/@arco/shared/dist/clusterRolePresets.js +13 -4
  261. package/node_modules/@arco/shared/dist/index.d.ts +1 -0
  262. package/node_modules/@arco/shared/dist/index.js +1 -0
  263. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +7 -0
  264. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +22 -11
  265. package/node_modules/@arco/shared/dist/protocol/chat.d.ts +2 -1
  266. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
  267. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +18 -3
  268. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +179 -4
  269. package/node_modules/@arco/shared/dist/protocol/clusters.js +48 -2
  270. package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +1 -0
  271. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
  272. package/node_modules/@arco/shared/dist/protocol/models.js +4 -3
  273. package/node_modules/@arco/shared/dist/protocol/providers.d.ts +3 -2
  274. package/node_modules/@arco/shared/dist/protocol/providers.js +1 -1
  275. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +39 -3
  276. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +4 -0
  277. package/node_modules/@arco/shared/dist/protocol/settings.js +3 -1
  278. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +42 -0
  279. package/node_modules/@arco/shared/dist/protocol/tasks.js +17 -0
  280. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +5 -0
  281. package/node_modules/@arco/shared/dist/protocol/workflows.js +2 -0
  282. package/node_modules/@arco/shared/dist/researchActivity.d.ts +4 -0
  283. package/node_modules/@arco/shared/dist/researchActivity.js +29 -0
  284. package/node_modules/@arco/shared/package.json +1 -1
  285. package/package.json +3 -2
  286. package/scripts/packaging/services.mjs +19 -2
  287. package/scripts/packaging/update.mjs +9 -0
  288. package/server/dist/arcoHome.js +19 -3
  289. package/server/dist/auth.d.ts +4 -2
  290. package/server/dist/auth.js +42 -4
  291. package/server/dist/authLoginSession.d.ts +2 -1
  292. package/server/dist/authLoginSession.js +13 -3
  293. package/server/dist/capabilities.d.ts +2 -2
  294. package/server/dist/capabilities.js +11 -6
  295. package/server/dist/chatMode.d.ts +3 -0
  296. package/server/dist/chatMode.js +25 -2
  297. package/server/dist/checkedFile.d.ts +1 -1
  298. package/server/dist/checkedFile.js +48 -41
  299. package/server/dist/cliUpdateDecision.js +1 -1
  300. package/server/dist/clusterAutoTurn.d.ts +4 -1
  301. package/server/dist/clusterAutoTurn.js +25 -4
  302. package/server/dist/clusterBusyReminder.js +2 -1
  303. package/server/dist/clusterDirector.js +5 -1
  304. package/server/dist/clusterMailTally.d.ts +11 -0
  305. package/server/dist/clusterMailTally.js +29 -0
  306. package/server/dist/clusterMailbox.d.ts +8 -1
  307. package/server/dist/clusterMailbox.js +53 -4
  308. package/server/dist/clusterOpenWork.d.ts +22 -0
  309. package/server/dist/clusterOpenWork.js +85 -0
  310. package/server/dist/clusterPeerOps.d.ts +32 -5
  311. package/server/dist/clusterPeerOps.js +257 -50
  312. package/server/dist/clusterPlanBridge.d.ts +7 -1
  313. package/server/dist/clusterPlanBridge.js +58 -0
  314. package/server/dist/clusterPlanStore.d.ts +6 -0
  315. package/server/dist/clusterPlanStore.js +58 -0
  316. package/server/dist/clusterPresets.js +23 -3
  317. package/server/dist/clusterProgress.js +2 -2
  318. package/server/dist/clusterRehydrate.js +2 -0
  319. package/server/dist/clusterSkills.js +2 -2
  320. package/server/dist/clusterSnapshots.d.ts +1 -0
  321. package/server/dist/clusterSnapshots.js +7 -1
  322. package/server/dist/clusterStore.d.ts +34 -1
  323. package/server/dist/clusterStore.js +194 -21
  324. package/server/dist/clusterTurnOrigin.d.ts +2 -0
  325. package/server/dist/clusterTurnOrigin.js +19 -0
  326. package/server/dist/connectionCatalog.js +1 -0
  327. package/server/dist/cursorUsage.js +3 -3
  328. package/server/dist/defaults/models.md +11 -14
  329. package/server/dist/directorContinue.d.ts +47 -0
  330. package/server/dist/directorContinue.js +311 -0
  331. package/server/dist/directorContinueHook.d.ts +3 -0
  332. package/server/dist/directorContinueHook.js +16 -0
  333. package/server/dist/effortValidation.d.ts +3 -0
  334. package/server/dist/effortValidation.js +34 -0
  335. package/server/dist/explorerDocs.d.ts +10 -6
  336. package/server/dist/explorerDocs.js +75 -34
  337. package/server/dist/fileAccessPolicy.js +1 -0
  338. package/server/dist/fileFetch.d.ts +7 -1
  339. package/server/dist/fileFetch.js +50 -29
  340. package/server/dist/geminiMembers.d.ts +8 -0
  341. package/server/dist/geminiMembers.js +113 -0
  342. package/server/dist/git.d.ts +3 -0
  343. package/server/dist/git.js +17 -24
  344. package/server/dist/gitOtherWork.js +5 -4
  345. package/server/dist/gitSnapshots.js +66 -5
  346. package/server/dist/http/attachmentUpload.d.ts +13 -0
  347. package/server/dist/http/attachmentUpload.js +38 -0
  348. package/server/dist/http/authLoginRoutes.js +1 -1
  349. package/server/dist/http/browserWorktrees.d.ts +23 -0
  350. package/server/dist/http/browserWorktrees.js +120 -0
  351. package/server/dist/http/clusterRoutes.js +466 -4
  352. package/server/dist/http/diagnosticsRoutes.js +8 -0
  353. package/server/dist/http/fileWriteRoutes.js +11 -3
  354. package/server/dist/http/phoneUploadDrafts.d.ts +13 -0
  355. package/server/dist/http/phoneUploadDrafts.js +125 -0
  356. package/server/dist/http/phoneUploadListener.d.ts +17 -0
  357. package/server/dist/http/phoneUploadListener.js +81 -0
  358. package/server/dist/http/phoneUploadNetwork.d.ts +9 -0
  359. package/server/dist/http/phoneUploadNetwork.js +106 -0
  360. package/server/dist/http/phoneUploadPage.d.ts +2 -0
  361. package/server/dist/http/phoneUploadPage.js +136 -0
  362. package/server/dist/http/phoneUploadRouteHistory.d.ts +4 -0
  363. package/server/dist/http/phoneUploadRouteHistory.js +72 -0
  364. package/server/dist/http/phoneUploadRoutes.d.ts +4 -0
  365. package/server/dist/http/phoneUploadRoutes.js +420 -0
  366. package/server/dist/http/phoneUploadTheme.d.ts +17 -0
  367. package/server/dist/http/phoneUploadTheme.js +96 -0
  368. package/server/dist/http/projectBinding.d.ts +1 -0
  369. package/server/dist/http/projectBinding.js +3 -2
  370. package/server/dist/http/readConfinement.d.ts +11 -0
  371. package/server/dist/http/readConfinement.js +35 -1
  372. package/server/dist/http/recallRoutes.js +1 -1
  373. package/server/dist/http/router.js +61 -35
  374. package/server/dist/http/storageRoutes.js +114 -7
  375. package/server/dist/http/workflowDataRoutes.js +20 -0
  376. package/server/dist/http/writeConfinement.js +31 -3
  377. package/server/dist/index.d.ts +13 -0
  378. package/server/dist/index.js +353 -56
  379. package/server/dist/initialProviders.js +1 -1
  380. package/server/dist/manualCompactCapability.js +1 -1
  381. package/server/dist/mcp/clusterMcpLoopback.d.ts +1 -0
  382. package/server/dist/mcp/clusterMcpLoopback.js +1 -0
  383. package/server/dist/mcp/clusterMcpServer.js +3 -2
  384. package/server/dist/mcp/clusterMcpTools.d.ts +3 -0
  385. package/server/dist/mcp/clusterMcpTools.js +79 -25
  386. package/server/dist/mcp/mcpConfigWriter.d.ts +1 -0
  387. package/server/dist/mcp/mcpConfigWriter.js +2 -0
  388. package/server/dist/mcp/workerMailBridge.d.ts +17 -0
  389. package/server/dist/mcp/workerMailBridge.js +104 -0
  390. package/server/dist/planStore.js +1 -0
  391. package/server/dist/primitives/seedWorker.d.ts +11 -1
  392. package/server/dist/primitives/seedWorker.js +15 -15
  393. package/server/dist/project/taskLedger.d.ts +3 -0
  394. package/server/dist/project/taskLedger.js +16 -0
  395. package/server/dist/providers/{cursor → acp}/acpJsonRpc.js +1 -1
  396. package/server/dist/providers/acp/permissionGate.d.ts +3 -0
  397. package/server/dist/providers/acp/permissionGate.js +46 -0
  398. package/server/dist/providers/antigravity/index.d.ts +15 -0
  399. package/server/dist/providers/antigravity/index.js +251 -0
  400. package/server/dist/providers/antigravity/researchSignIn.d.ts +24 -0
  401. package/server/dist/providers/antigravity/researchSignIn.js +93 -0
  402. package/server/dist/providers/antigravity/status.d.ts +18 -0
  403. package/server/dist/providers/antigravity/status.js +28 -0
  404. package/server/dist/providers/antigravity/usage.d.ts +7 -0
  405. package/server/dist/providers/antigravity/usage.js +35 -0
  406. package/server/dist/providers/claude/researcherFence.d.ts +7 -0
  407. package/server/dist/providers/claude/researcherFence.js +27 -0
  408. package/server/dist/providers/claude-native/catalog.d.ts +2 -1
  409. package/server/dist/providers/claude-native/catalog.js +4 -0
  410. package/server/dist/providers/claude-native/index.d.ts +1 -0
  411. package/server/dist/providers/claude-native/index.js +9 -1
  412. package/server/dist/providers/claude-native/peerTools.d.ts +1 -0
  413. package/server/dist/providers/claude-native/peerTools.js +26 -4
  414. package/server/dist/providers/claude-native/taskAdmission.d.ts +7 -1
  415. package/server/dist/providers/claude-native/taskAdmission.js +30 -8
  416. package/server/dist/providers/claude-native/tools.d.ts +1 -0
  417. package/server/dist/providers/claude-native/tools.js +47 -18
  418. package/server/dist/providers/claude-native/worker.d.ts +22 -1
  419. package/server/dist/providers/claude-native/worker.js +281 -51
  420. package/server/dist/providers/claude-native/workerHelpers.d.ts +5 -0
  421. package/server/dist/providers/claude-native/workerHelpers.js +95 -5
  422. package/server/dist/providers/claude.d.ts +2 -0
  423. package/server/dist/providers/claude.js +194 -22
  424. package/server/dist/providers/clusterTaskToolDefinitions.js +2 -1
  425. package/server/dist/providers/codex-appserver/heldCommands.d.ts +14 -0
  426. package/server/dist/providers/codex-appserver/heldCommands.js +60 -0
  427. package/server/dist/providers/codex-appserver/index.d.ts +61 -2
  428. package/server/dist/providers/codex-appserver/index.js +340 -21
  429. package/server/dist/providers/codex-appserver/lateCommands.d.ts +62 -0
  430. package/server/dist/providers/codex-appserver/lateCommands.js +196 -0
  431. package/server/dist/providers/codex-appserver/modelAvailability.d.ts +20 -0
  432. package/server/dist/providers/codex-appserver/modelAvailability.js +34 -0
  433. package/server/dist/providers/codex-appserver/worker.d.ts +34 -1
  434. package/server/dist/providers/codex-appserver/worker.js +288 -45
  435. package/server/dist/providers/codex.js +3 -2
  436. package/server/dist/providers/codexCodeMode.d.ts +2 -1
  437. package/server/dist/providers/codexCodeMode.js +7 -3
  438. package/server/dist/providers/codexVersion.d.ts +2 -0
  439. package/server/dist/providers/codexVersion.js +8 -0
  440. package/server/dist/providers/codexWebSearch.js +1 -1
  441. package/server/dist/providers/cursor/agentEnv.d.ts +20 -0
  442. package/server/dist/providers/cursor/agentEnv.js +93 -0
  443. package/server/dist/providers/cursor/authState.js +2 -1
  444. package/server/dist/providers/cursor/authToken.d.ts +25 -2
  445. package/server/dist/providers/cursor/authToken.js +118 -27
  446. package/server/dist/providers/cursor/catalog.d.ts +6 -0
  447. package/server/dist/providers/cursor/catalog.js +91 -1
  448. package/server/dist/providers/cursor/chatSandbox.d.ts +3 -1
  449. package/server/dist/providers/cursor/chatSandbox.js +24 -8
  450. package/server/dist/providers/cursor/isolated.d.ts +6 -0
  451. package/server/dist/providers/cursor/isolated.js +313 -0
  452. package/server/dist/providers/cursor/isolatedVersion.d.ts +6 -0
  453. package/server/dist/providers/cursor/isolatedVersion.js +35 -0
  454. package/server/dist/providers/cursor/modelMap.js +9 -5
  455. package/server/dist/providers/cursor/print.js +10 -8
  456. package/server/dist/providers/cursor/worker.js +8 -3
  457. package/server/dist/providers/index.js +10 -2
  458. package/server/dist/providers/llamacpp.js +3 -2
  459. package/server/dist/providers/ollama.d.ts +3 -2
  460. package/server/dist/providers/ollama.js +29 -10
  461. package/server/dist/providers/ollamaTools.d.ts +3 -0
  462. package/server/dist/providers/ollamaTools.js +31 -29
  463. package/server/dist/research/exportResults.d.ts +15 -0
  464. package/server/dist/research/exportResults.js +60 -0
  465. package/server/dist/research/isolatedArtifact.d.ts +4 -0
  466. package/server/dist/research/isolatedArtifact.js +56 -0
  467. package/server/dist/research/quickPromotion.d.ts +27 -0
  468. package/server/dist/research/quickPromotion.js +402 -0
  469. package/server/dist/research/quickResearchChat.d.ts +4 -0
  470. package/server/dist/research/quickResearchChat.js +187 -0
  471. package/server/dist/research/researchClose.d.ts +31 -0
  472. package/server/dist/research/researchClose.js +373 -0
  473. package/server/dist/research/researchCopy.d.ts +16 -0
  474. package/server/dist/research/researchCopy.js +180 -0
  475. package/server/dist/research/researchCreate.d.ts +40 -0
  476. package/server/dist/research/researchCreate.js +334 -0
  477. package/server/dist/research/researchDoctrine.d.ts +2 -0
  478. package/server/dist/research/researchDoctrine.js +26 -0
  479. package/server/dist/research/researchFolder.d.ts +23 -0
  480. package/server/dist/research/researchFolder.js +191 -0
  481. package/server/dist/research/researchLibrary.d.ts +54 -0
  482. package/server/dist/research/researchLibrary.js +281 -0
  483. package/server/dist/research/researchRetry.d.ts +25 -0
  484. package/server/dist/research/researchRetry.js +96 -0
  485. package/server/dist/research/researchRounds.d.ts +108 -0
  486. package/server/dist/research/researchRounds.js +996 -0
  487. package/server/dist/research/researchState.d.ts +112 -0
  488. package/server/dist/research/researchState.js +191 -0
  489. package/server/dist/research/researchTools.d.ts +57 -0
  490. package/server/dist/research/researchTools.js +57 -0
  491. package/server/dist/research/researchTripwires.d.ts +18 -0
  492. package/server/dist/research/researchTripwires.js +196 -0
  493. package/server/dist/research/resultSelection.d.ts +27 -0
  494. package/server/dist/research/resultSelection.js +161 -0
  495. package/server/dist/research/savedQuickPromotion.d.ts +19 -0
  496. package/server/dist/research/savedQuickPromotion.js +259 -0
  497. package/server/dist/research/sendToProject.d.ts +36 -0
  498. package/server/dist/research/sendToProject.js +293 -0
  499. package/server/dist/server/broadcast.d.ts +5 -1
  500. package/server/dist/server/broadcast.js +45 -5
  501. package/server/dist/server/updateCheck.js +1 -0
  502. package/server/dist/settings.js +27 -3
  503. package/server/dist/skillActivity.d.ts +11 -0
  504. package/server/dist/skillActivity.js +33 -0
  505. package/server/dist/smartPickup.d.ts +1 -0
  506. package/server/dist/smartPickup.js +12 -4
  507. package/server/dist/smartPickupAdapters.js +3 -2
  508. package/server/dist/smartPickupEvaluator.d.ts +1 -0
  509. package/server/dist/smartPickupObserver.js +47 -14
  510. package/server/dist/storageActions.d.ts +9 -0
  511. package/server/dist/storageActions.js +5 -0
  512. package/server/dist/storageOverview.d.ts +1 -0
  513. package/server/dist/storageOverview.js +12 -5
  514. package/server/dist/taskDispatcher.js +3 -2
  515. package/server/dist/toolboxWorkflow.js +2 -1
  516. package/server/dist/updateCheck.d.ts +3 -2
  517. package/server/dist/updateCheck.js +39 -1
  518. package/server/dist/workers/StreamParser.d.ts +1 -0
  519. package/server/dist/workers/StreamParser.js +23 -1
  520. package/server/dist/workers/WorkerManager.d.ts +5 -0
  521. package/server/dist/workers/WorkerManager.js +6 -1
  522. package/server/dist/workers/antigravityIsolatedLaunch.d.ts +25 -0
  523. package/server/dist/workers/antigravityIsolatedLaunch.js +88 -0
  524. package/server/dist/workers/checkedLinuxWorker.d.ts +38 -0
  525. package/server/dist/workers/checkedLinuxWorker.js +192 -0
  526. package/server/dist/workers/claudeAccessLease.d.ts +24 -0
  527. package/server/dist/workers/claudeAccessLease.js +157 -0
  528. package/server/dist/workers/claudeAccessSource.d.ts +2 -0
  529. package/server/dist/workers/claudeAccessSource.js +27 -0
  530. package/server/dist/workers/claudeIsolatedLaunch.d.ts +19 -0
  531. package/server/dist/workers/claudeIsolatedLaunch.js +104 -0
  532. package/server/dist/workers/cliResearcherDoctrine.d.ts +4 -0
  533. package/server/dist/workers/cliResearcherDoctrine.js +20 -0
  534. package/server/dist/workers/codexAccessLease.d.ts +26 -0
  535. package/server/dist/workers/codexAccessLease.js +208 -0
  536. package/server/dist/workers/codexIsolatedLaunch.d.ts +21 -0
  537. package/server/dist/workers/codexIsolatedLaunch.js +95 -0
  538. package/server/dist/workers/codexIsolatedPolicy.d.ts +5 -0
  539. package/server/dist/workers/codexIsolatedPolicy.js +49 -0
  540. package/server/dist/workers/cursorIsolatedLaunch.d.ts +37 -0
  541. package/server/dist/workers/cursorIsolatedLaunch.js +178 -0
  542. package/server/dist/workers/isolatedCliHome.d.ts +4 -0
  543. package/server/dist/workers/isolatedCliHome.js +107 -0
  544. package/server/dist/workers/limits.js +1 -1
  545. package/server/dist/workers/linuxWorkerSandbox.d.ts +48 -0
  546. package/server/dist/workers/linuxWorkerSandbox.js +192 -0
  547. package/server/dist/workers/processKill.d.ts +11 -1
  548. package/server/dist/workers/processKill.js +54 -12
  549. package/server/dist/workers/providerRuntimeDiscovery.d.ts +13 -0
  550. package/server/dist/workers/providerRuntimeDiscovery.js +126 -0
  551. package/server/dist/workers/researchSandboxAvailability.d.ts +3 -0
  552. package/server/dist/workers/researchSandboxAvailability.js +78 -0
  553. package/server/dist/workers/workerAccessPass.d.ts +12 -0
  554. package/server/dist/workers/workerAccessPass.js +123 -0
  555. package/server/dist/workers/workerHiddenDirectories.d.ts +3 -0
  556. package/server/dist/workers/workerHiddenDirectories.js +16 -0
  557. package/server/dist/workers/workerSocketDirectory.d.ts +2 -0
  558. package/server/dist/workers/workerSocketDirectory.js +16 -0
  559. package/server/dist/workers/workerWebProxy.d.ts +28 -0
  560. package/server/dist/workers/workerWebProxy.js +206 -0
  561. package/server/dist/workflowMeta.d.ts +5 -0
  562. package/server/dist/workflowMeta.js +7 -3
  563. package/server/dist/workflowStore.js +43 -25
  564. package/server/dist/workflows/purgeWorkflow.js +15 -0
  565. package/server/dist/workflows/types.d.ts +6 -0
  566. package/server/dist/workspace.d.ts +1 -0
  567. package/server/dist/workspace.js +8 -0
  568. package/server/dist/ws/clusterHandlers.d.ts +5 -0
  569. package/server/dist/ws/clusterHandlers.js +373 -26
  570. package/server/dist/ws/clusterMembers.d.ts +5 -0
  571. package/server/dist/ws/clusterMembers.js +15 -5
  572. package/server/dist/ws/compactHandlers.js +43 -8
  573. package/server/dist/ws/compareHandlers.d.ts +12 -0
  574. package/server/dist/ws/compareHandlers.js +32 -14
  575. package/server/dist/ws/handoffHandlers.js +41 -3
  576. package/server/dist/ws/operatorQuestionHandlers.d.ts +5 -0
  577. package/server/dist/ws/operatorQuestionHandlers.js +17 -2
  578. package/server/dist/ws/taskLedgerHandlers.js +1 -0
  579. package/server/dist/ws/taskLifecycle.d.ts +25 -1
  580. package/server/dist/ws/taskLifecycle.js +53 -1
  581. package/server/dist/ws/turnEngine.d.ts +18 -1
  582. package/server/dist/ws/turnEngine.js +298 -52
  583. package/server/dist/ws/turnPrompt.js +3 -1
  584. package/server/dist/ws/updatePrimaryConfig.js +11 -3
  585. package/server/dist/ws/workflowHandlers.js +17 -4
  586. package/server/package.json +1 -1
  587. package/server/src/arcoHome.ts +16 -3
  588. package/server/src/auth.ts +50 -6
  589. package/server/src/authLoginSession.ts +10 -5
  590. package/server/src/capabilities.ts +13 -8
  591. package/server/src/chatMode.ts +24 -2
  592. package/server/src/checkedFile.ts +42 -31
  593. package/server/src/cliUpdateDecision.ts +1 -1
  594. package/server/src/clusterAutoTurn.ts +29 -5
  595. package/server/src/clusterBusyReminder.ts +2 -1
  596. package/server/src/clusterDirector.ts +5 -1
  597. package/server/src/clusterMailTally.ts +28 -0
  598. package/server/src/clusterMailbox.ts +49 -4
  599. package/server/src/clusterOpenWork.ts +94 -0
  600. package/server/src/clusterPeerOps.ts +242 -53
  601. package/server/src/clusterPlanBridge.ts +54 -1
  602. package/server/src/clusterPlanStore.ts +59 -0
  603. package/server/src/clusterPresets.ts +17 -3
  604. package/server/src/clusterProgress.ts +2 -2
  605. package/server/src/clusterRehydrate.ts +2 -0
  606. package/server/src/clusterSkills.ts +2 -2
  607. package/server/src/clusterSnapshots.ts +7 -1
  608. package/server/src/clusterStore.ts +192 -20
  609. package/server/src/clusterTurnOrigin.ts +19 -0
  610. package/server/src/connectionCatalog.ts +1 -0
  611. package/server/src/cursorUsage.ts +3 -3
  612. package/server/src/defaults/models.md +11 -14
  613. package/server/src/directorContinue.ts +309 -0
  614. package/server/src/directorContinueHook.ts +15 -0
  615. package/server/src/effortValidation.ts +31 -0
  616. package/server/src/explorerDocs.ts +75 -34
  617. package/server/src/fileAccessPolicy.ts +1 -0
  618. package/server/src/fileFetch.ts +47 -29
  619. package/server/src/geminiMembers.ts +116 -0
  620. package/server/src/git.ts +20 -22
  621. package/server/src/gitOtherWork.ts +5 -4
  622. package/server/src/gitSnapshots.ts +53 -5
  623. package/server/src/http/attachmentUpload.ts +49 -0
  624. package/server/src/http/authLoginRoutes.ts +2 -2
  625. package/server/src/http/browserWorktrees.ts +124 -0
  626. package/server/src/http/clusterRoutes.ts +314 -6
  627. package/server/src/http/diagnosticsRoutes.ts +9 -0
  628. package/server/src/http/fileWriteRoutes.ts +13 -5
  629. package/server/src/http/phoneUploadDrafts.ts +118 -0
  630. package/server/src/http/phoneUploadListener.ts +96 -0
  631. package/server/src/http/phoneUploadNetwork.ts +117 -0
  632. package/server/src/http/phoneUploadPage.ts +137 -0
  633. package/server/src/http/phoneUploadRouteHistory.ts +73 -0
  634. package/server/src/http/phoneUploadRoutes.ts +399 -0
  635. package/server/src/http/phoneUploadTheme.ts +97 -0
  636. package/server/src/http/projectBinding.ts +3 -2
  637. package/server/src/http/readConfinement.ts +35 -1
  638. package/server/src/http/recallRoutes.ts +1 -1
  639. package/server/src/http/router.ts +54 -35
  640. package/server/src/http/storageRoutes.ts +86 -7
  641. package/server/src/http/workflowDataRoutes.ts +20 -0
  642. package/server/src/http/writeConfinement.ts +23 -3
  643. package/server/src/index.ts +295 -18
  644. package/server/src/initialProviders.ts +1 -1
  645. package/server/src/manualCompactCapability.ts +1 -1
  646. package/server/src/mcp/clusterMcpLoopback.ts +2 -0
  647. package/server/src/mcp/clusterMcpServer.ts +3 -2
  648. package/server/src/mcp/clusterMcpTools.ts +83 -27
  649. package/server/src/mcp/mcpConfigWriter.ts +4 -0
  650. package/server/src/mcp/workerMailBridge.ts +99 -0
  651. package/server/src/planStore.ts +1 -0
  652. package/server/src/primitives/seedWorker.ts +21 -14
  653. package/server/src/project/taskLedger.ts +23 -0
  654. package/server/src/providers/{cursor → acp}/acpJsonRpc.ts +3 -3
  655. package/server/src/providers/acp/permissionGate.ts +47 -0
  656. package/server/src/providers/antigravity/index.ts +187 -0
  657. package/server/src/providers/antigravity/researchSignIn.ts +76 -0
  658. package/server/src/providers/antigravity/status.ts +24 -0
  659. package/server/src/providers/antigravity/usage.ts +29 -0
  660. package/server/src/providers/claude/researcherFence.ts +25 -0
  661. package/server/src/providers/claude-native/catalog.ts +5 -0
  662. package/server/src/providers/claude-native/index.ts +8 -1
  663. package/server/src/providers/claude-native/peerTools.ts +24 -4
  664. package/server/src/providers/claude-native/taskAdmission.ts +35 -9
  665. package/server/src/providers/claude-native/tools.ts +39 -19
  666. package/server/src/providers/claude-native/worker.ts +270 -52
  667. package/server/src/providers/claude-native/workerHelpers.ts +88 -5
  668. package/server/src/providers/claude.ts +160 -22
  669. package/server/src/providers/clusterTaskToolDefinitions.ts +2 -1
  670. package/server/src/providers/codex-appserver/heldCommands.ts +62 -0
  671. package/server/src/providers/codex-appserver/index.ts +306 -20
  672. package/server/src/providers/codex-appserver/lateCommands.ts +226 -0
  673. package/server/src/providers/codex-appserver/modelAvailability.ts +40 -0
  674. package/server/src/providers/codex-appserver/worker.ts +240 -46
  675. package/server/src/providers/codex.ts +3 -2
  676. package/server/src/providers/codexCodeMode.ts +8 -3
  677. package/server/src/providers/codexVersion.ts +9 -0
  678. package/server/src/providers/codexWebSearch.ts +1 -1
  679. package/server/src/providers/cursor/agentEnv.ts +103 -0
  680. package/server/src/providers/cursor/authState.ts +2 -1
  681. package/server/src/providers/cursor/authToken.ts +137 -31
  682. package/server/src/providers/cursor/catalog.ts +89 -1
  683. package/server/src/providers/cursor/chatSandbox.ts +20 -8
  684. package/server/src/providers/cursor/isolated.ts +282 -0
  685. package/server/src/providers/cursor/isolatedVersion.ts +33 -0
  686. package/server/src/providers/cursor/modelMap.ts +9 -5
  687. package/server/src/providers/cursor/print.ts +10 -8
  688. package/server/src/providers/cursor/worker.ts +8 -3
  689. package/server/src/providers/index.ts +10 -2
  690. package/server/src/providers/llamacpp.ts +3 -1
  691. package/server/src/providers/ollama.ts +30 -11
  692. package/server/src/providers/ollamaTools.ts +33 -27
  693. package/server/src/research/exportResults.ts +47 -0
  694. package/server/src/research/isolatedArtifact.ts +48 -0
  695. package/server/src/research/quickPromotion.ts +325 -0
  696. package/server/src/research/quickResearchChat.ts +147 -0
  697. package/server/src/research/researchClose.ts +340 -0
  698. package/server/src/research/researchCopy.ts +170 -0
  699. package/server/src/research/researchCreate.ts +306 -0
  700. package/server/src/research/researchDoctrine.ts +27 -0
  701. package/server/src/research/researchFolder.ts +202 -0
  702. package/server/src/research/researchLibrary.ts +306 -0
  703. package/server/src/research/researchRetry.ts +86 -0
  704. package/server/src/research/researchRounds.ts +891 -0
  705. package/server/src/research/researchState.ts +309 -0
  706. package/server/src/research/researchTools.ts +59 -0
  707. package/server/src/research/researchTripwires.ts +158 -0
  708. package/server/src/research/resultSelection.ts +127 -0
  709. package/server/src/research/savedQuickPromotion.ts +174 -0
  710. package/server/src/research/sendToProject.ts +220 -0
  711. package/server/src/server/broadcast.ts +39 -5
  712. package/server/src/server/updateCheck.ts +1 -0
  713. package/server/src/settings.ts +22 -5
  714. package/server/src/skillActivity.ts +35 -0
  715. package/server/src/smartPickup.ts +14 -4
  716. package/server/src/smartPickupAdapters.ts +3 -2
  717. package/server/src/smartPickupEvaluator.ts +3 -0
  718. package/server/src/smartPickupObserver.ts +38 -12
  719. package/server/src/storageActions.ts +6 -0
  720. package/server/src/storageOverview.ts +13 -6
  721. package/server/src/taskDispatcher.ts +3 -1
  722. package/server/src/toolboxWorkflow.ts +2 -1
  723. package/server/src/updateCheck.ts +31 -3
  724. package/server/src/workers/StreamParser.ts +20 -1
  725. package/server/src/workers/WorkerManager.ts +12 -1
  726. package/server/src/workers/antigravityIsolatedLaunch.ts +82 -0
  727. package/server/src/workers/checkedLinuxWorker.ts +212 -0
  728. package/server/src/workers/claudeAccessLease.ts +122 -0
  729. package/server/src/workers/claudeAccessSource.ts +20 -0
  730. package/server/src/workers/claudeIsolatedLaunch.ts +91 -0
  731. package/server/src/workers/cliResearcherDoctrine.ts +20 -0
  732. package/server/src/workers/codexAccessLease.ts +146 -0
  733. package/server/src/workers/codexIsolatedLaunch.ts +72 -0
  734. package/server/src/workers/codexIsolatedPolicy.ts +38 -0
  735. package/server/src/workers/cursorIsolatedLaunch.ts +159 -0
  736. package/server/src/workers/isolatedCliHome.ts +75 -0
  737. package/server/src/workers/limits.ts +1 -1
  738. package/server/src/workers/linuxWorkerSandbox.ts +193 -0
  739. package/server/src/workers/processKill.ts +69 -9
  740. package/server/src/workers/providerRuntimeDiscovery.ts +108 -0
  741. package/server/src/workers/researchSandboxAvailability.ts +68 -0
  742. package/server/src/workers/workerAccessPass.ts +96 -0
  743. package/server/src/workers/workerHiddenDirectories.ts +16 -0
  744. package/server/src/workers/workerSocketDirectory.ts +13 -0
  745. package/server/src/workers/workerWebProxy.ts +194 -0
  746. package/server/src/workflowMeta.ts +10 -3
  747. package/server/src/workflowStore.ts +39 -26
  748. package/server/src/workflows/purgeWorkflow.ts +18 -0
  749. package/server/src/workflows/types.ts +13 -0
  750. package/server/src/workspace.ts +8 -0
  751. package/server/src/ws/clusterHandlers.ts +302 -26
  752. package/server/src/ws/clusterMembers.ts +15 -5
  753. package/server/src/ws/compactHandlers.ts +37 -5
  754. package/server/src/ws/compareHandlers.ts +34 -11
  755. package/server/src/ws/handoffHandlers.ts +38 -3
  756. package/server/src/ws/operatorQuestionHandlers.ts +14 -2
  757. package/server/src/ws/taskLedgerHandlers.ts +1 -0
  758. package/server/src/ws/taskLifecycle.ts +58 -4
  759. package/server/src/ws/turnEngine.ts +280 -49
  760. package/server/src/ws/turnPrompt.ts +3 -1
  761. package/server/src/ws/updatePrimaryConfig.ts +10 -3
  762. package/server/src/ws/workflowHandlers.ts +15 -4
  763. package/shared/dist/clusterCoordination.d.ts +1 -0
  764. package/shared/dist/clusterCoordination.js +9 -1
  765. package/shared/dist/clusterRolePresets.js +13 -4
  766. package/shared/dist/index.d.ts +1 -0
  767. package/shared/dist/index.js +1 -0
  768. package/shared/dist/protocol/autoPickup.d.ts +7 -0
  769. package/shared/dist/protocol/autoPickup.js +22 -11
  770. package/shared/dist/protocol/chat.d.ts +2 -1
  771. package/shared/dist/protocol/checkpoints.d.ts +1 -0
  772. package/shared/dist/protocol/clientMessages.d.ts +18 -3
  773. package/shared/dist/protocol/clusters.d.ts +179 -4
  774. package/shared/dist/protocol/clusters.js +48 -2
  775. package/shared/dist/protocol/handoffs.d.ts +1 -0
  776. package/shared/dist/protocol/models.d.ts +6 -1
  777. package/shared/dist/protocol/models.js +4 -3
  778. package/shared/dist/protocol/providers.d.ts +3 -2
  779. package/shared/dist/protocol/providers.js +1 -1
  780. package/shared/dist/protocol/serverMessages.d.ts +39 -3
  781. package/shared/dist/protocol/settings.d.ts +4 -0
  782. package/shared/dist/protocol/settings.js +3 -1
  783. package/shared/dist/protocol/tasks.d.ts +42 -0
  784. package/shared/dist/protocol/tasks.js +17 -0
  785. package/shared/dist/protocol/workflows.d.ts +5 -0
  786. package/shared/dist/protocol/workflows.js +2 -0
  787. package/shared/dist/researchActivity.d.ts +4 -0
  788. package/shared/dist/researchActivity.js +29 -0
  789. package/shared/src/clusterCoordination.ts +12 -1
  790. package/shared/src/clusterRolePresets.ts +13 -4
  791. package/shared/src/index.ts +2 -0
  792. package/shared/src/protocol/autoPickup.ts +28 -11
  793. package/shared/src/protocol/chat.ts +2 -1
  794. package/shared/src/protocol/checkpoints.ts +1 -0
  795. package/shared/src/protocol/clientMessages.ts +14 -0
  796. package/shared/src/protocol/clusters.ts +235 -10
  797. package/shared/src/protocol/handoffs.ts +1 -0
  798. package/shared/src/protocol/models.ts +11 -4
  799. package/shared/src/protocol/providers.ts +6 -3
  800. package/shared/src/protocol/reviews.ts +2 -2
  801. package/shared/src/protocol/serverMessages.ts +38 -2
  802. package/shared/src/protocol/settings.ts +14 -1
  803. package/shared/src/protocol/tasks.ts +73 -0
  804. package/shared/src/protocol/workflows.ts +12 -0
  805. package/shared/src/researchActivity.ts +23 -0
  806. package/client/dist/assets/XtermView-BGFujb1e.js +0 -10
  807. package/client/dist/assets/index-CsVy3eZm.js +0 -612
  808. package/client/dist/assets/index-DD9kFGsF.css +0 -1
  809. package/client/src/components/HeaderAuthChip.tsx +0 -207
  810. /package/server/dist/providers/{cursor → acp}/acpJsonRpc.d.ts +0 -0
package/docs/PROTOCOL.md CHANGED
@@ -285,6 +285,7 @@ Live model/effort swap. Same-provider only - provider swaps require Handoff.
285
285
  claudeNativeCompact?: boolean, // followup - Anthropic server-managed compaction
286
286
  claudeNativeForceInterleavedThinkingBeta?: boolean, // Native A/B debug - force interleaved-thinking beta next turn
287
287
  claudeNativeThinkingDisplay?: 'omitted' | 'summarized' | 'updates', // Native adaptive-thinking display - 'summarized' streams thinking into Activity (default 'omitted', Claude Code parity); 'updates' (beta progress notes) only where supportsThinkingDisplayUpdates, else resolves to 'omitted'
288
+ nativeSubagents?: { maxRunning?, maxStarts?, model?, background? } | null, // Claude Native Task policy; null clears the tab override. background false makes every Task wait. Applies next turn
288
289
  nativeCompactAutoContinue?: boolean, // auto-continue after a Native compaction (default false)
289
290
  autoFold?: { enabled, foldAt, tailBudget? }, // per-tab auto-fold (Native) - off by default; foldAt is the budget-meter pct
290
291
  goalRun?: { enabled, total?, tokenBudget? }, // - arm/re-arm (resets counters) / disarm the north-star auto-continue; refused without a north star. Acked by goal_run_state
@@ -293,16 +294,16 @@ Live model/effort swap. Same-provider only - provider swaps require Handoff.
293
294
  efficiencyConfigProtection?: 'on' | 'off', // config-protection write-gate (Native, default 'on')
294
295
  efficiencySandbox?: 'off' | 'on', // opt-in ctx_* tools
295
296
  reviewSafeMode?: 'off' | 'on', // DEBAG durable review gate (Native, default 'off')
296
- outputStyle?: 'normal' | 'plain' | 'terse', // - every provider; unset = plain
297
+ outputStyle?: 'normal' | 'plain' | 'terse', // - supported providers; unset = plain
297
298
  goal?: string, // - persistent per-tab north-star; empty/whitespace CLEARS. Cap 2048 bytes. Injected as a system block every turn on transports that fold the cluster plan; inherited by primitives (unlike outputStyle's forced 'normal')
298
- pinnedSkills?: Array<{ scope: 'project' | 'global'; slug: string }>, // replace the durable tab pin set; empty CLEARS. Full bodies are re-resolved + injected every turn
299
+ pinnedSkills?: Array<{ scope: 'project' | 'global'; slug: string }>, // replace the durable tab pin set; empty CLEARS. Full bodies are re-resolved + injected every turn on supported providers (Antigravity CLI does not receive picked or pinned Arco skill bodies)
299
300
  remoteEnabled?: boolean, // REMOTE_MANAGEMENT - per-workflow hub opt-in
300
301
  remoteGatesEnabled?: boolean, // REMOTE_CLUSTER_CONTROL - second arming: resolve DEBAG gates from the hub console (default false)
301
302
  ollamaParams?: Record<string, unknown>, // per-tab Ollama generation-parameter blob (whole-blob replace)
302
303
  }
303
304
  ```
304
305
 
305
- Takes effect on the next primary turn. Persisted to `meta.json` (except `goalRun`, whose counters are memory-only - a restart ends any run). On an incognito chat only `model` / `effort` / `chatWebAccess` (`INCOGNITO_SAFE_CONFIG_FIELDS`) are accepted, held in memory; every other field is refused. Transport / efficiency fields are provider-specific knobs. `outputStyle` is honored by every provider; a tab with no saved value runs as `'plain'`, and `'plain'` is stored as unset. `'lite'` (before 0.1.5) and `'caveman'` (before 2026-05-10) are accepted on the wire from older clients and stored as `'plain'` and `'terse'`; an unknown value is ignored.
306
+ Takes effect on the next primary turn. Persisted to `meta.json` (except `goalRun`, whose counters are memory-only - a restart ends any run). On an incognito chat only `model` / `effort` / `chatWebAccess` (`INCOGNITO_SAFE_CONFIG_FIELDS`) are accepted, held in memory; every other field is refused. Transport / efficiency fields are provider-specific knobs. `outputStyle` is honored by supported providers and is not offered for Antigravity CLI; a tab with no saved value runs as `'plain'`, and `'plain'` is stored as unset. `'lite'` (before 0.1.5) and `'caveman'` (before 2026-05-10) are accepted on the wire from older clients and stored as `'plain'` and `'terse'`; an unknown value is ignored.
306
307
 
307
308
  ### `goal_set` <- - ack/visibility broadcast for a north-star set / edit / clear (the durable side of `update_primary_config { goal }`). **Persist-then-announce**: the server writes `meta.json` before emitting, so "`goal_set` observed ⇒ value already durable" holds. Persisted to `events.jsonl` (reviewable in the transcript per the four-question test). `goal` is `null` on clear; `byteLen` is the UTF-8 byte length of the stored text (0 on clear).
308
309
 
@@ -334,6 +335,41 @@ missing, or over-budget references that were not pinned.
334
335
  }
335
336
  ```
336
337
 
338
+ ### `skill_activity` <-
339
+
340
+ A skill took part in a turn. `kind: 'applied'` means the turn's prompt carried the skill (pinned or chosen); `'loaded'` means the agent completed a read of the skill's file during the turn. Each skill is reported once per turn. `scope` is `'project' | 'global' | 'builtin'` and `turn` is the 1-based turn number. The server keeps the events of the current conversation and broadcasts each as it happens.
341
+
342
+ ```ts
343
+ { type: 'skill_activity', workflowId: string, kind: 'applied' | 'loaded', name: string, scope: 'project' | 'global' | 'builtin', turn: number }
344
+ ```
345
+
346
+ ### `file_context` <-
347
+
348
+ Receipt for files an agent was given as context, so the transcript shows what it read. `origin` is `'attachment'` (files the operator attached) or `'tool'` (files a tool read). `receipt` is the plain-text summary, `files` the references, and `tool`, `toolInput` and `toolUseId` identify the tool call for a `'tool'` origin. `sourcePaths` and `inputClientMessageIds` tie the receipt to the attached paths and the messages that carried them. A worker sends the same shape as `worker_file_context`, without `workflowId`.
349
+
350
+ ```ts
351
+ { type: 'file_context', workflowId: string, origin: 'attachment' | 'tool', receipt: string, files: FileContextReference[],
352
+ sourcePaths?: string[], inputClientMessageIds?: string[], tool?: string, toolInput?: string, toolUseId?: string }
353
+ ```
354
+
355
+ ### `provider_conversation_state` <-
356
+
357
+ Whether the provider's own conversation continues the earlier one. A new Claude CLI, Codex or Cursor conversation starts when no saved thread id is available; the server then sends `'awaiting-reading'` with a system notice that earlier messages remain in the tab, and `'ready'` once the agent has read them (the first turn after that). `'unavailable'` marks a tab that has earlier messages but no saved thread id, so the next turn will start a new provider conversation. `workflow_state_snapshot` carries the same state as `providerConversation` on reconnect. `'ready'` is transient and not persisted.
358
+
359
+ ```ts
360
+ { type: 'provider_conversation_state', workflowId: string, state: 'unavailable' | 'awaiting-reading' | 'ready' }
361
+ ```
362
+
363
+ ### `director_continue_offer` <- and `director_continue_action` ->
364
+
365
+ Live only, sent to a Director. `offer` describes an approved task waiting for the Director's handoff, or `null` to clear the prompt; `notice` explains a click that started nothing. The operator answers with `director_continue_action`. See [`PROTOCOL_CLUSTER.md`](PROTOCOL_CLUSTER.md#continue-the-director).
366
+
367
+ ```ts
368
+ { type: 'director_continue_offer', workflowId: string, offer: { id: string, clusterId: string, taskId: string, taskTitle: string, approvalId: string,
369
+ kind: 'continue' | 'nudge', memberWorkflowId?: string, memberName?: string, createdAt: number } | null, notice?: string }
370
+ { type: 'director_continue_action', workflowId: string, offerId: string, action: 'continue' | 'dismiss' }
371
+ ```
372
+
337
373
  ### `rename_workflow` ->
338
374
 
339
375
  Operator-set friendly name for a workflow. Server trims + caps at 64 chars; empty / whitespace clears back to default (the wfid 8-char prefix). Persists `wf.config.name` to `meta.json` and emits `workflow_renamed` to every observer. If the workflow is a cluster member, re-emits `cluster_state` to every cluster subscriber so the bottom-row tab + member grid pick up the new label without a reload (`ClusterMember.displayName = wf.config.name?.trim || wfid.slice(0, 8)`). Rejected on validation failure via a generic `error` message (`rename_workflow rejected: name_too_long (<n> > 64)` or `rename_workflow requires a string name`). Shape defined in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts) (`RenameWorkflowMessage`).
@@ -370,7 +406,7 @@ A user message. It may arrive while another turn is in flight; the server queues
370
406
  }
371
407
  ```
372
408
 
373
- `kind` selects steering at a provider boundary, a follow-up after completion, or **interrupt and send**. For a busy Claude/Codex primary, `interrupt` cancels that worker, waits for teardown, and runs the instruction as the next turn in the same conversation. Older steers and follow-ups stay queued until the correction completes. Several interrupts awaiting cancellation are merged FIFO; attachments, context refs and picked skills follow their owning prompt. STOP still drops the queue and prevents the pending redirect. Interrupt disarms Goal Run. With no interruptible primary (another provider, Computer, compact/handoff busy holder), it visibly falls back to follow-up. Idle sends start normally. Omitted busy kinds default to follow-up for older clients.
409
+ `kind` selects steering at a provider boundary, a follow-up after completion, or **interrupt and send**. For a busy Claude/Codex primary, `interrupt` cancels that worker, waits for teardown, and runs the instruction as the next turn in the same conversation. Older steers and follow-ups stay queued until the correction completes. Several interrupts awaiting cancellation are merged FIFO; attachments, context refs and picked skills follow their owning prompt. STOP drops the queue and prevents the pending redirect. It also cancels a message received before STOP while its WebSocket admission checks are still running. Interrupt disarms Goal Run. With no interruptible primary (another provider, Computer, compact/handoff busy holder), it visibly falls back to follow-up. Idle sends start normally. Omitted busy kinds default to follow-up for older clients.
374
410
 
375
411
  The browser submits only while the WebSocket is open. A locally retained composer draft is not a server submission. A successful local send call means the browser passed the message to `WebSocket.send`; it does not mean the server accepted, persisted, dispatched, or completed the turn. A server echo means the server emitted an echo, not that the event log has been flushed or the provider has run. Echoes are also emitted for some refused idle sends, such as a temporary external-writer block. `clientMessageId` correlates UI entries; it is not a server-side idempotency key, so repeated submissions can create multiple queue entries.
376
412
 
@@ -1811,21 +1847,24 @@ session-local (not in `meta.json`) - only the audit event lands in events.jsonl.
1811
1847
 
1812
1848
  ### `task_started` <- (Claude Native - Task children)
1813
1849
 
1814
- Broadcast on the **parent** workflow when a `Task` child spawns. Renders an inline TaskCard on the parent's `Task` tool_use chat row and lights up the right-pane TASKS tab (gated on non-empty `taskChildren`).
1850
+ Broadcast on the **parent** workflow when a `Task` child is admitted or starts. Renders an inline TaskCard on the parent's `Task` tool_use chat row and lights up the right-pane TASKS tab (gated on non-empty `taskChildren`). A queued admission may omit `childWorkflowId` until a later start attaches it.
1815
1851
 
1816
1852
  ```ts
1817
1853
  {
1818
1854
  type: 'task_started',
1819
1855
  workflowId: string, // parent
1820
1856
  taskId: string,
1821
- childWorkflowId: string,
1857
+ childWorkflowId?: string, // absent while phase is queued
1858
+ phase?: 'queued' | 'running',
1859
+ model?: string, // effective child model when known
1822
1860
  toolUseId: string, // assistant's tool_use block id - chat-side lookup key
1823
1861
  description: string,
1824
1862
  startedAt: number,
1863
+ background?: boolean, // run_in_background: tied to the parent tab, not its turn
1825
1864
  }
1826
1865
  ```
1827
1866
 
1828
- Persisted on the parent. The child workflow itself is created via `workflow_created` carrying `parentWorkflowId`.
1867
+ Persisted on the parent. The child workflow itself is created via `workflow_created` carrying `parentWorkflowId`. `background: true` labels the SUB-AGENTS row BACKGROUND; a new parent turn leaves that child running.
1829
1868
 
1830
1869
  ### `task_status` <- (Claude Native - Task children)
1831
1870
 
@@ -1840,12 +1879,21 @@ Settle / error / cancelled signal for a Task child. v1 fires `started` + final-p
1840
1879
  phase: 'running' | 'done' | 'error' | 'cancelled',
1841
1880
  elapsedMs: number,
1842
1881
  summary?: string,
1882
+ model?: string,
1843
1883
  }
1844
1884
  ```
1845
1885
 
1846
1886
  Persisted on the parent. Re-broadcast on rehydrate **regardless of `clientLastSeq`** so a refresh-after-settle doesn't pin the TaskCard at `0s · RUNNING` forever; client `recordTaskStarted` / `recordTaskStatus` actions are idempotent.
1847
1887
 
1848
- On STOP of the parent turn, `ClaudeNativeWorker.cancel()` emits `phase: 'cancelled'` (summary `Cancelled.`) for every unsettled child synchronously, before the server revokes the turn; the child's later rejection emits nothing more. The turn broadcast gate (`dispatchCurrent()` in `turnEngine.ts`) still passes `task_status` after a revoke (`deliverAfterTurnRevoked`, `server/src/ws/taskLifecycle.ts`). A child stopped by its own card CANCEL settles as `cancelled`, not `error`. On rehydrate, a `task_started` with no final status whose child is not busy gets a per-browser `task_status` `cancelled` with summary `Ended without a recorded result.` (`unsettledTaskStatuses`); it is sent to that browser only and never persisted.
1888
+ On STOP of the parent, `ClaudeNativeWorker.cancel()` emits `phase: 'cancelled'` (summary `Cancelled.`) for every unsettled child, background ones included, before the server revokes the turn; the child's later rejection emits nothing more. A new message or INTERRUPT & SEND does not cancel background children. The turn broadcast gate (`dispatchCurrent()` in `turnEngine.ts`) still passes `task_status` after a revoke (`deliverAfterTurnRevoked`, `server/src/ws/taskLifecycle.ts`). A child stopped by its own card CANCEL settles as `cancelled`, not `error`. On rehydrate, a foreground `task_started` with no final status whose child is not busy gets a per-browser `task_status` `cancelled` with summary `Ended without a recorded result.`; a background child left open across a restart is summarised `Stopped by restart.` (`unsettledTaskStatuses`); those rehydrate rows are sent to that browser only and never persisted. The first Claude Native parent turn after the restart also records each such background status once (`restartStoppedBackgroundTasks` in `turnEngine`) and carries one shared automatic notice that the result was not received (`restartStoppedNotice`); several stopped children share that notice, and it does not start a turn by itself.
1889
+
1890
+ ### `open_task_view` ->
1891
+
1892
+ Opens a Claude Native sub-agent (Task child) conversation as its own tab. `{ type: 'open_task_view', workflowId: <parent>, taskId, childWorkflowId, lastSeq?: number }`. The server accepts it only from a client observing the parent, and only when the child's metadata names that parent and the parent's transcript holds a `task_started` event for the same task and child. On success it replies with `workflow_created` for the child (`parentWorkflowId`, plus `taskView: { parentWorkflowId, taskId }`) and then replays the child's transcript from `lastSeq` (default 0) through the normal rehydrate path. Otherwise it sends a `system_notice` on the parent: "Could not open this sub-agent: its parent task or transcript is unavailable."
1893
+
1894
+ ### `task_child_message` -> / `task_child_message_rejected` <-
1895
+
1896
+ Steers a running Native sub-agent from its tab. `{ type: 'task_child_message', workflowId: <parent>, taskId, childWorkflowId, content, clientMessageId }`. The server accepts it only while the child run is active and the parent, task and child match the live run and both workflows are observed by the sending client. An accepted message is queued for the child and echoed as `user_message_echo` with `kind: 'steer'` on the child. Otherwise the server replies `{ type: 'task_child_message_rejected', workflowId: <child>, clientMessageId }` and nothing is queued. A plain `user_message` sent to a sub-agent is never delivered: the server answers with `queued_message_cancelled` (when a `clientMessageId` was sent) and a `system_notice` telling the operator to open the sub-agent from its parent task.
1849
1897
 
1850
1898
  ### `queued_messages_drained` <-
1851
1899
 
@@ -2702,7 +2750,7 @@ string[]> }`. Requires one explicit answer per question, honors closed option
2702
2750
  sets, and rejects wrong-workflow, stale or duplicate replies. Server sends a
2703
2751
  transient `operator_question_reply_result { workflowId, requestId, ok, error? }`
2704
2752
  to the submitting socket; authoritative answered/cancelled state is broadcast to
2705
- all observers. `operator_question_dismiss { workflowId, requestId }` closes a question without an answer; `operator_question_dismiss_result` reports delivery to the submitting socket. RPC dismissal sends empty answers before closure; async message questions close when their own turn settles. Approval messages are separate and retain existing behavior.
2753
+ all observers. `operator_question_dismiss { workflowId, requestId }` closes a question without an answer; `operator_question_dismiss_result` reports delivery to the submitting socket. RPC dismissal sends empty answers before closure; async message questions close when their own turn settles. Approval messages are separate and retain existing behavior. Reply and dismiss are accepted from a socket that observes the workflow either as a tab of its session or as a member of a cluster the session has open (`canAnswerFor`), so a browser that opened the cluster without restoring the member tabs, such as a phone, can answer too.
2706
2754
 
2707
2755
  `workflow_state_snapshot.operatorQuestions` contains the live pending requests
2708
2756
  (including an empty array). The client upserts by request ID and closes any
@@ -3073,6 +3121,9 @@ Messages in the `ClientMessage` / `ServerMessage` unions that the sections above
3073
3121
  | `workflow_rename_result` | <- (to the requesting socket) | `workflowId`, `requestId`, `error?` | Reply to a `rename_workflow` that carried a `requestId`; `error` names a refused rename. |
3074
3122
  | `output_saved` | <- (persisted) | `workflowId`, `path`, `sourcePath?`, `ts` | An editor or image save wrote a file; OUTPUTS records it as an editor export of `sourcePath`. |
3075
3123
  | `app_update_available` | <- (all clients) | `current`, `latest`, `url`, `publishedAt` | Sent once per newer release found by the release check, unless that version was dismissed (`server/src/updateCheck.ts`); the client shows the release toast. |
3124
+ | `app_update_status_changed` | <- (all clients) | none | A packaged install that had an update on offer no longer has one (for example the package was withdrawn). The client reads `GET /api/update-check` again and drops the release toast (`server/src/updateCheck.ts`). |
3125
+ | `attention_question_closed` | <- (all clients) | `requestId` | A pending question that raised a `waiting` attention event was answered or dismissed. The client clears the matching question alert. Not sent for an incognito tab (`server/src/attention.ts`). |
3126
+ | `cluster_creation_finished` | <- (requesting socket) | `requestId` | A `cluster_create_from_scratch` that carried a `requestId` (1 to 128 characters) has finished, whether it created the cluster or was refused. The client stops its creating state (`server/src/ws/clusterHandlers.ts`). |
3076
3127
 
3077
3128
  ## Input delivery and restored snapshots
3078
3129
 
@@ -4,11 +4,11 @@ Plan references, knowledge articles, skills and handoff prompt overrides refuse
4
4
 
5
5
  WebSocket messages for cluster mode (parent cluster tab + member workflows + the peer-tool mailbox substrate). Split out of [`PROTOCOL.md`](PROTOCOL.md) (J2, doc-size). See [Gotchas: Cluster mode](GOTCHAS.md) for cluster invariants. Conventions are defined in [`PROTOCOL.md`](PROTOCOL.md#conventions). Source of truth: [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts) (one of the per-domain files under `shared/src/protocol/`; the legacy flat `protocol.ts` is now a barrel shim).
6
6
 
7
- **Member-provider fence (current).** Cluster membership is no longer Native-Claude-only. The supported set is `ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor'` (`isClusterMemberProvider`). Claude wires peer tools in-process on Native and via a per-spawn `--mcp-config` arco-cluster MCP child on CLI; Codex wires them through their app-server MCP override; Cursor wires them through an in-process loopback StreamableHTTP MCP server (`clusterMcpLoopback.ts`) whose URL rides `session/new`/`session/load`'s `mcpServers` - Cursor ACP honors MCP over http/sse only, not stdio (fresh-only membership); the two local providers (ollama / llamacpp) use Arco's in-process tool runtime and are serialized per provider to avoid local-model fights. How many members may use each local runtime is the `localClusterCapacity` setting (`{ ollama?, llamacpp? }`, integers 1-16, default 1; set in Connections). `cluster_create`, `cluster_create_from_scratch`, `cluster_create_with_fresh_workers`, `cluster_add_fresh_workers`, `cluster_member_add`, `cluster_member_replace` and `POST /api/clusters` refuse a change that adds a local member beyond it with `rejected: local_capacity: <plain reason>`; Ollama and llama.cpp members together are limited by the larger setting. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the check. The server validation helper is still named `assertAllMembersClaudeOrCodex` for legacy reasons but actually checks `isClusterMemberProvider`. Cursor is a remote API provider and is not counted against local capacity.
7
+ **Member-provider fence (current).** Cluster membership is no longer Native-Claude-only. The supported set is `ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor' | 'antigravity-cli'` (`isClusterMemberProvider`). Claude wires peer tools in-process on Native and via a per-spawn `--mcp-config` arco-cluster MCP child on CLI; Codex wires them through their app-server MCP override; Cursor wires them through an in-process loopback StreamableHTTP MCP server (`clusterMcpLoopback.ts`) whose URL rides `session/new`/`session/load`'s `mcpServers` - Cursor ACP honors MCP over http/sse only, not stdio (fresh-only membership); the two local providers (ollama / llamacpp) use Arco's in-process tool runtime and are serialized per provider to avoid local-model fights. How many members may use each local runtime is the `localClusterCapacity` setting (`{ ollama?, llamacpp? }`, integers 1-16, default 1; set in Connections). `cluster_create`, `cluster_create_from_scratch`, `cluster_create_with_fresh_workers`, `cluster_add_fresh_workers`, `cluster_member_add`, `cluster_member_replace` and `POST /api/clusters` refuse a change that adds a local member beyond it with `rejected: local_capacity: <plain reason>`; Ollama and llama.cpp members together are limited by the larger setting. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the check. The server validation helper is still named `assertAllMembersClaudeOrCodex` for legacy reasons but actually checks `isClusterMemberProvider`. Cursor is a remote API provider and is not counted against local capacity. Antigravity CLI members require an operator NUDGE or typed message to start a turn; see [Gemini members](#gemini-members).
8
8
 
9
9
  **Joining during a turn.** Creation and supported existing-tab joins remain available while a tab works. CLUSTER ACTIONS identifies affected working tabs. The server records the cluster wiring captured for each provider invocation; a join after capture emits one persisted conversation notice, repeated once per operator steer or follow-up into that invocation. Every observing browser receives it. Native, Codex app-server and local tool-loop steers also carry a pending-tools note forbidding internal-state or direct-route workarounds. Busy reminders do not demand cluster mail or director delegation before that invocation has the tools. Claude CLI and Codex exec cannot consume a same-turn steer: their queued input starts a new configured turn. Existing Cursor tabs remain refused, including CREATE WITH FRESH anchors; fresh Cursor members remain supported. LM Studio is not an accepted cluster provider. No notice promises unsupported tool capabilities, and peer-route authentication is unchanged.
10
10
 
11
- **Per-member access mode.** `ClusterMember.accessMode?: 'standard' | 'blind' | 'isolated'` (absent ≡ `standard`; persisted sparse in cluster meta `memberAccessModes`, not in `WorkflowConfig`). `blind` keeps the project cwd but withholds every cluster surface except `peer_send` / `peer_read` (other peer tools return `[error] access_denied`); `isolated` additionally runs the member in a private scratch cwd and is Claude-Native-only. Cursor applies this restriction only to cluster coordination tools; separately attached file, workflow-plan and registry tools retain their own access checks. Accepted on `cluster_create_from_scratch` members, `cluster_add_fresh_workers`, and `cluster_member_replace`.
11
+ **Per-member access mode.** `ClusterMember.accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher'` (absent ≡ `standard`; persisted sparse in cluster meta `memberAccessModes`, not in `WorkflowConfig`). `blind` keeps the project cwd but withholds every cluster surface except `peer_send` / `peer_read` (other peer tools return `[error] access_denied`); `isolated` additionally runs the member in a private scratch cwd. Claude Native uses fenced tools; Claude CLI, Codex and Cursor require a passing Linux sandbox check. `researcher` is ISOLATED for a research project: Claude Native, Claude CLI, Codex, Cursor, Gemini, Ollama or llama.cpp, mail only with the Research Director, and only through `cluster_create_from_scratch` with `research`, or `research_researcher_add` in a running project ([Research projects](RESEARCH.md)). `research_researcher_add { clusterId, researcher, catchUp }` adds one researcher row; `research_researcher_remove { clusterId, letter, moveUnsent? }` removes one. Both answer refusals as `error` messages prefixed with the message type. Cursor applies this restriction only to cluster coordination tools; separately attached file, workflow-plan and registry tools retain their own access checks. Accepted on `cluster_create_from_scratch` members, `cluster_add_fresh_workers`, and `cluster_member_replace`. Isolated and researcher members have a persisted web switch, on by default. `cluster_member_web_set` changes it for the next turn. Off removes the Native and local web tools and denies public web in the CLI sandbox proxy; provider hosts remain reachable. Changing Codex web access restarts its app-server before the next turn and can stop its background commands.
12
12
 
13
13
  ---
14
14
 
@@ -18,11 +18,15 @@ Cluster mode groups tabs sharing one cwd so members can hand notes between opera
18
18
 
19
19
  ### Peer messaging (workflow-scoped)
20
20
 
21
+ Select a sent or received PEER card in the conversation to read the available
22
+ message in a dialog. Older sent records may contain only a preview; the dialog
23
+ says when the full body was not saved. Close the dialog to return to the card.
24
+
21
25
  Three workflow-scoped event kinds - emitted on each member's own `broadcastWorkflow` channel so events.jsonl carries the per-member view.
22
26
 
23
27
  #### `peer_message_sent` <-
24
28
 
25
- Emitted on the sender's workflow when `peer_send` succeeds. Carries a content preview only; the full content lives on the recipient's matching `peer_message_received`.
29
+ Emitted on the sender's workflow when `peer_send` succeeds. New events carry the full content and a compact preview; older sender events may have only the preview. The recipient's matching `peer_message_received` carries the delivered content.
26
30
 
27
31
  ```ts
28
32
  {
@@ -32,6 +36,8 @@ Emitted on the sender's workflow when `peer_send` succeeds. Carries a content pr
32
36
  from: string, // sender workflowId (== workflowId above)
33
37
  to: string, // recipient workflowId
34
38
  contentPreview: string, // up to 200 chars
39
+ content?: string, // full content on new events
40
+ ts?: number, // original send time
35
41
  chainDepth?: number, // auto-turn chain depth; stamped server-side at broadcast (operator-initiated sends ride at depth 0). The auto-turn detector refuses to fire when chainDepth ≥ AUTO_TURN_MAX_CHAIN_DEPTH.
36
42
  }
37
43
  ```
@@ -118,7 +124,7 @@ WS analogue of `DELETE /api/clusters/:id`. Server tears down the cluster and bro
118
124
 
119
125
  ### `cluster_broadcast` ->
120
126
 
121
- The operator sent to several members from the composer's TO chooser. Server resolves members; idle members get the message via `handleUserMessage` (immediate fresh turn), busy members get it enqueued as `'follow-up'`. Each fan-out is a normal user message - `peer_message_received` drains still fire BEFORE `user_message_echo` per the ordering invariant. Reply: `cluster_broadcast_dispatched`.
127
+ The operator sent to several members from the composer's TO chooser. Server resolves members; eligible idle members get the message via `handleUserMessage` (immediate fresh turn), and busy members get it enqueued as `'follow-up'`. Gemini members are skipped and reported for operator review. Each fan-out is a normal user message - `peer_message_received` drains still fire BEFORE `user_message_echo` per the ordering invariant. Reply: `cluster_broadcast_dispatched`.
122
128
 
123
129
  ```ts
124
130
  {
@@ -140,7 +146,7 @@ The operator sent to several members from the composer's TO chooser. Server reso
140
146
 
141
147
  ### `cluster_state` <-
142
148
 
143
- Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event whose type is in `CLUSTER_STATE_TRIGGERS` (`primary_turn_started / primary_turn_ended / peer_message_sent / peer_message_received`) for any member. Other event types (streaming `primary_text` deltas, worker_*, etc.) do not churn cluster_state.
149
+ Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event whose type is in `CLUSTER_STATE_TRIGGERS` (`primary_turn_started / primary_turn_ended / peer_message_sent / peer_message_received / cluster_auto_turn_fired`) for any member. Other event types (streaming `primary_text` deltas, worker_*, etc.) do not churn cluster_state.
144
150
 
145
151
  ```ts
146
152
  {
@@ -156,7 +162,10 @@ Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event
156
162
  role?: string, // optional free-form role hint (≤120 chars). Absent / empty = no role block injected into the worker's system prompt.
157
163
  tier?: 'light' | 'standard' | 'heavy', // work-size hint for the director; does not change model/effort; no dispatcher auto-routing
158
164
  focus?: string, // 2026-05-11 - sub-specialty string (≤160 chars); surfaced in peer_list to disambiguate same-role peers
159
- accessMode?: 'standard' | 'blind' | 'isolated', // absent ≡ standard; see the access-mode note at the top
165
+ accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher', // absent ≡ standard; see the access-mode note at the top
166
+ webAccess?: boolean, // absent ≡ web access on; false applies from the member's next turn
167
+ isolation?: 'checking' | 'sandboxed' | 'tool-fenced' | 'unavailable', // how an isolated member is fenced right now
168
+ isolationReason?: string, // plain reason when isolation is 'unavailable' or 'tool-fenced'
160
169
  }>,
161
170
  mailboxDepth: Record<string, number>,
162
171
  createdAt: string,
@@ -187,6 +196,10 @@ Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event
187
196
  },
188
197
  remoteEnabled?: boolean, // R3 - cluster-level ◉ REMOTE opt-in (absent ≡ OFF). See cluster_remote_set.
189
198
  remoteGatesEnabled?: boolean, // cluster-level ⛨ GATES arming (absent ≡ OFF). See cluster_gates_set.
199
+ skillPins?: ClusterSkillPin[], // skills pinned for the whole cluster (optionally per role). See cluster_skills_set.
200
+ autoCompaction?: AutoCompactionPolicy, // cluster default auto-compaction policy. See cluster_auto_compaction_set.
201
+ autoPickup?: ClusterAutoPickupState, // AUTO-PICKUP mode, limits, Smart session, counters and last decision. See cluster_auto_pickup_set.
202
+ research?: ClusterResearchSummary, // present only on research projects: project id, folder, brief, blind flag, researchers and rounds
190
203
  },
191
204
  }
192
205
  ```
@@ -239,7 +252,7 @@ The operator picked "ADD TO EXISTING" in the `TabContextMenu`. Server validates:
239
252
 
240
253
  ### `cluster_create_with_fresh_workers` ->
241
254
 
242
- The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
255
+ The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. The picker shares provider availability, account-specific models, model defaults and effort rules with ADD FRESH, including the Gemini NUDGE notice. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
243
256
 
244
257
  ```ts
245
258
  {
@@ -285,6 +298,7 @@ New clients request `transcript_worker_preview` with `replacement: { clusterId,
285
298
  effort?: string,
286
299
  providerAccountRef?: string,
287
300
  accessMode?: 'standard' | 'blind' | 'isolated',
301
+ claudeTransport?: 'native' | 'cli',
288
302
  name?: string, // <= 64 chars; empty keeps the old name
289
303
  role?: string, // <= 120 chars; empty clears
290
304
  tier?: 'light' | 'standard' | 'heavy' | null,
@@ -317,14 +331,20 @@ mailbox, observer entry, and in-memory lifecycle are not inherited.
317
331
 
318
332
  ### `cluster_create_from_scratch` ->
319
333
 
320
- 2026-05-11 - operator picked CLUSTER mode in the `+NEW` WorkflowCreator. No source workflow - every member is minted fresh from the per-row config. Mirrors `cluster_create_with_fresh_workers` server-side but every member's provider / model / effort / role / tier is operator-picked up front. Provider is the full `ClusterMemberProvider` set (`claude / codex / ollama / llamacpp / cursor`). Create, add and replace paths that introduce a local member all run `localCapacityRefusal` and reject with `local_capacity: <reason>` when over `localClusterCapacity` (lift with `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1`). Per-member validation also covers `unknown_provider`, the shared model codes (`missing_model` / `provider_model_mismatch` / `unknown_model`), `unknown_account` and `invalid_tier`, each prefixed with `member[<i>]`. Server validates ≥1 member; client UI enforces ≥2. `name` is optional; empty = derived default. Per-member optional fields (`displayName` / `role` / `tier` / `focus`) are stamped into cluster meta in one shot.
334
+ 2026-05-11 - operator picked CLUSTER mode in the `+NEW` WorkflowCreator. No source workflow - every member is minted fresh from the per-row config. Mirrors `cluster_create_with_fresh_workers` server-side but every member's provider / model / effort / role / tier is operator-picked up front. Provider is the `ClusterMemberProvider` set (`claude / codex / ollama / llamacpp / cursor / antigravity-cli`). Create, add and replace paths that introduce a local member all run `localCapacityRefusal` and reject with `local_capacity: <reason>` when over `localClusterCapacity` (lift with `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1`). Per-member validation also covers `unknown_provider`, the shared model codes (`missing_model` / `provider_model_mismatch` / `unknown_model`), `unknown_account` and `invalid_tier`, each prefixed with `member[<i>]`. Server validates ≥1 member; client UI enforces ≥2. `name` is optional; empty = derived default. Per-member optional fields (`displayName` / `role` / `tier` / `focus`) are stamped into cluster meta in one shot.
321
335
 
322
336
  ```ts
323
337
  {
324
338
  type: 'cluster_create_from_scratch',
339
+ requestId?: string, // 1-128 characters; answered by cluster_creation_finished
325
340
  cwd: string,
326
341
  name?: string,
327
342
  initialPlanGoal?: string, // optional reviewed draft, at most 4,000 characters; requires a director
343
+ initialPlanId?: string, // an existing project plan chosen during creation
344
+ messageGuard?: { mode: 'warn' | 'hard' | 'none', threshold: number },
345
+ taskBoardMode?: 'none' | 'project' | 'cluster', // ClusterCreationSettings, as on cluster_create
346
+ progressTracking?: 'plan' | 'board' | 'both',
347
+ research?: ResearchCreateSpec, // creates a research project instead: the folder is made under the research folder, the director runs there and researcher members are isolated (docs/RESEARCH.md)
328
348
  efficiencyLevel?: 'thorough' | 'balanced' | 'lean', // 2026-06-15 - cluster-wide, operator-picked at create. Omitted at new creation selects 'balanced'; omitted stored metadata still reads as 'thorough'.
329
349
  efficiencyAddendum?: string, // optional free-text appended to the canned doctrine; clamped to CLUSTER_EFFICIENCY_ADDENDUM_MAX
330
350
  members: Array<{
@@ -340,7 +360,12 @@ mailbox, observer entry, and in-memory lifecycle are not inherited.
340
360
  fastMode?: boolean,
341
361
  efficiencyToolFilter?: 'off' | 'conservative' | 'aggressive',
342
362
  outputStyle?: 'normal' | 'plain' | 'terse',
343
- accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude
363
+ accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher', // isolated ⇒ provider must be claude, codex or cursor
364
+ webAccess?: boolean,
365
+ claudeTransport?: 'native' | 'cli',
366
+ webSearchMaxUses?: number, // research projects: Claude Native web lookups per turn
367
+ contextSize?: number, // research projects: an Ollama researcher's context size
368
+ researchClaudeTransport?: 'native' | 'cli', // research projects only; CLI needs a passing sandbox check
344
369
  }>,
345
370
  }
346
371
  ```
@@ -369,7 +394,9 @@ operator clicked `+ ADD FRESH` inside `ClusterRightPanel`'s Members sub-tab. Ser
369
394
  model?: string,
370
395
  effort?: 'low' | 'medium' | 'high' | string,
371
396
  providerAccountRef?: string,
372
- accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude
397
+ accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude, codex or cursor
398
+ webAccess?: boolean,
399
+ claudeTransport?: 'native' | 'cli',
373
400
  name?: string, // <= 64 chars (<= 60 when count > 1); generated names must also fit
374
401
  role?: string, // preset or custom text, <= 120 chars
375
402
  tier?: 'light' | 'standard' | 'heavy' | null,
@@ -411,7 +438,7 @@ operator hit `CLEAR PLAN` in `ClusterPlanTab`. `clusterPlanBridge.clearClusterPl
411
438
 
412
439
  ### `cluster_member_role_set` ->
413
440
 
414
- The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. Both report through `peer_send`. When an Advisor is present, the Director consults it before a design decision or when the evidence is thin and keeps the decision. These are instruction roles, not file-access enforcement. A preset is just a known string the UI drops into the editor; the wire shape is free-form text. Server clamps to 120 chars (`MEMBER_ROLE_MAX`) - values longer are silently truncated. Empty / whitespace clears the field entirely (the member's `role` becomes absent from `cluster_state.members`). Assigning a second director (role text beginning with Director or Coordinator) is refused; see [Director roles and work size](#director-roles-and-work-size). Persisted into `ClusterMeta.memberRoles` (sparse map). Pushes a fresh `cluster_state`; no dedicated event - role changes are state-shaped (the `role` field on each `ClusterMember` is the wire surface). Codex app-server members carry role + cluster identity + (for a Director role) the full Director operating contract in thread `developerInstructions`, so a role change recycles the app-server child on the next turn while resuming the same Codex thread.
441
+ The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER designs screens, states, wording and accessibility, prototypes and reviews UI; builders implement it. Both report through `peer_send`. When an Advisor is present, the Director consults it before a design decision or when the evidence is thin and keeps the decision. These are instruction roles, not file-access enforcement. A preset is just a known string the UI drops into the editor; the wire shape is free-form text. Server clamps to 120 chars (`MEMBER_ROLE_MAX`) - values longer are silently truncated. Empty / whitespace clears the field entirely (the member's `role` becomes absent from `cluster_state.members`). Assigning a second director (role text beginning with Director or Coordinator) is refused; see [Director roles and work size](#director-roles-and-work-size). Persisted into `ClusterMeta.memberRoles` (sparse map). Pushes a fresh `cluster_state`; no dedicated event - role changes are state-shaped (the `role` field on each `ClusterMember` is the wire surface). Codex app-server members carry role + cluster identity + (for a Director role) the full Director operating contract in thread `developerInstructions`, so a role change recycles the app-server child on the next turn while resuming the same Codex thread.
415
442
 
416
443
  ```ts
417
444
  { type: 'cluster_member_role_set', clusterId: string, workflowId: string, role: string }
@@ -453,7 +480,7 @@ Operator edited a member's work-size hint from the Members sub-tab. `tier` is on
453
480
 
454
481
  ### `cluster_efficiency_set` ->
455
482
 
456
- Efficiency guides coordination and testing. Balanced, the default for new clusters, asks for one lowest-level test per real fault, tests for the changed area per change, and the full check once before a release. Browser tests cover journeys that need a real screen, one per journey rather than layout, theme or size permutations. New suites, gates, test tooling and CI checks need operator approval, using the operator-question tool where available. The full check should take about ten minutes; longer runs prompt a proposal to cut work before adding tests. Flaky tests are fixed or deleted, not retried. Lean runs only changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, runs neighbouring tests and the full check before handover. Every level sorts product faults from test faults and states what a user would lose before a failure blocks work; product faults and faulty tests are fixed, while cosmetic or momentary faults are noted. Project rules and plans take precedence when they ask for more or less testing. Safety checks, message guards, requested review and landing review remain unchanged. Every member receives the testing directive each turn. Directors assign complete outcomes, read the accepted diff and check that project-required checks ran; they do not invent gates or make one-off incidents into permanent rules or tests without the operator. Directors classify each failed check as a product fault or a fault in a test, housekeeping rule or CI service. Product faults are fixed. Faulty tests or rules are fixed, skipped on that system with a stated reason, or deleted so checks go green and can be trusted; red checks are neither ignored nor released over. A job dropped by the CI service is rerun alone. CI stays small enough to pass in one run and contains checks whose failures tell the operator something about the product. Housekeeping findings warn instead of failing a run. Peers report what was done, what ran and what remains uncovered. The Tester runs project checks and tests peer work where a real fault is likely, modifying test files only. Long checks go to peers; Directors never run builds, tests or CI waits themselves or wait more than 60 seconds inside a turn. Nudges, mail notices and auto-pickup follow the testing directive without adding checks.
483
+ Efficiency guides coordination and testing. Balanced, the default for new clusters, asks for one lowest-level test per real fault, tests for the changed area per change, and the full check once before a release. Browser tests cover journeys that need a real screen, one per journey rather than layout, theme or size permutations. New suites, gates, test tooling and CI checks need operator approval, using the operator-question tool where available. The full check should take about ten minutes; longer runs prompt a proposal to cut work before adding tests. Flaky tests are fixed or deleted, not retried. Lean runs only changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, runs neighbouring tests and the full check before handover. Every level sorts product faults from test faults and states what a user would lose before a failure blocks work; product faults and faulty tests are fixed, while cosmetic or momentary faults are noted. Project rules and plans take precedence over these instructions for testing, commits, documentation and delivery alike. Safety checks, message guards, requested review and landing review remain unchanged. Supported members receive the testing directive each turn; Antigravity CLI receives the operator-visible instructions described under Gemini members. Directors assign complete outcomes, read the accepted diff and check that project-required checks ran; they do not invent gates or make one-off incidents into permanent rules or tests without the operator. Directors classify each failed check as a product fault or a fault in a test, housekeeping rule or CI service. Product faults are fixed. Faulty tests or rules are fixed, skipped on that system with a stated reason, or deleted so checks go green and can be trusted; red checks are neither ignored nor released over. A job dropped by the CI service is rerun alone. CI stays small enough to pass in one run and contains checks whose failures tell the operator something about the product. Housekeeping findings warn instead of failing a run. Peers report what was done, what ran and what remains uncovered. Before reporting work as done, a member checks it against the project's own rules (agent instructions and contributing rules: how commits land, changelog, documentation) and, where an assignment conflicts with them, follows the project's rules and says so. A Director never assigns what the project's rules forbid; it states the delivery they require and asks the operator before any exception. The Tester runs project checks and tests peer work where a real fault is likely, modifying test files only. Long checks go to peers; Directors never run builds, tests or CI waits themselves or wait more than 60 seconds inside a turn. Nudges, mail notices and auto-pickup follow the testing directive without adding checks.
457
484
 
458
485
  Non-Director members and standalone agents wait inside their turns for build, test or CI results needed by their reports. Each command or polling step lasts at most 120 seconds and may be repeated as long as the job needs. Between waits they check and act on new messages, using `peer_read` in a cluster. They report after the result arrives. After a progress report or an answer while assigned work remains, non-Director members and standalone agents continue that work in the same turn; they end the turn only when it is done or with one stated blocker. If blocked or if a job clearly cannot finish within a reasonable time, they name what they await and say that a nudge is needed before ending the turn. This instruction change adds no completion wake or waiting-status display. The provider prompt supplies the wait rule once. Cluster coordination and the Director contract do not repeat it. Local-provider baselines stay role-neutral until turn preparation or handoff prewarm resolves the member role.
459
486
 
@@ -500,11 +527,22 @@ Removing pins remains possible after a skill grows. On later turns missing,
500
527
  off or overgrown skills use the existing skipped-skill notice and bounded
501
528
  resolver. The popup keeps missing/off references visible instead of silently
502
529
  retargeting a moved or deleted skill. The count is configured entries, not a
503
- claim that every pin applies to every member. Running turns are unchanged.
530
+ claim that every pin applies to every member. Antigravity CLI (Gemini) members
531
+ do not receive picked or pinned Arco skill bodies; the first NUDGE may list
532
+ available skills as conversation text, and the CLI loads its own installed
533
+ skills. Running turns are unchanged.
534
+
535
+ ### `cluster_auto_compaction_set` ->
536
+
537
+ Sets the cluster's default auto-compaction policy. `{ type: 'cluster_auto_compaction_set', clusterId: string, policy: AutoCompactionPolicy | null }`; `null` clears the default so each member falls back to its own setting or the provider behavior. An invalid policy or an unknown cluster answers `error`. A change broadcasts `cluster_state` and adds one `[AUTO-COMPACT]` notice to every member's conversation; per-worker overrides stay in effect. A request that changes nothing sends nothing. The policy applies from each member's next turn. See [Auto-compaction policy](SETTINGS.md#auto-compaction-policy).
538
+
539
+ ### `cluster_creation_finished` <-
540
+
541
+ Sent to the requesting socket when a `cluster_create_from_scratch` that carried a `requestId` (1 to 128 characters) has ended, whether the cluster was created or the request was refused. The client stops its creating state. A refused research request also removes the empty dated folder it prepared.
504
542
 
505
543
  ### `cluster_progress_set` ->
506
544
 
507
- 2026-06-29 - operator picked which surface(s) the cluster keeps current, from the ClusterRightPanel progress chip or the `+ NEW` cluster creator. `mode` is one of `CLUSTER_PROGRESS_MODES` (`plan` / `board` / `both`; server rejects unknown strings with `cluster_progress_set rejected: unknown_mode`, unknown cluster with `unknown_cluster`). Each mode resolves server-side (`clusterProgress.ts` `buildProgressDoctrine(mode, hasPlan, hasBoard)`) to a deterministic system-prompt doctrine block injected into every member's next turn - a plan-upkeep clause (keep the shared plan's `[ ]`/`[x]` current via `cluster_plan_tick`), a board-upkeep clause (move tasks through their statuses as work progresses), plus a reconcile line when BOTH surfaces are live. Each clause is gated on the surface actually existing (`hasPlan` / `hasBoard`), so a mode with no matching surface injects nothing. The progress default `both` is non-empty: pre-feature clusters with a plan start getting the upkeep nudge. Takes effect on each member's **next** turn (in-flight untouched). Server persists to cluster `meta.json` and rebroadcasts `cluster_state`; `cluster_state.progressTracking` is echoed only when non-default (absent ≡ `both`). Passes the four-question test: operator-set, deterministic doctrine, logged via `cluster_state`, reversible by flipping the chip.
545
+ The ClusterRightPanel progress chip and the `+ NEW` cluster creator select which surfaces the cluster keeps current. `mode` is one of `CLUSTER_PROGRESS_MODES` (`plan` / `board` / `both`; server rejects unknown strings with `cluster_progress_set rejected: unknown_mode`, unknown cluster with `unknown_cluster`). Each mode resolves server-side (`clusterProgress.ts` `buildProgressDoctrine(mode, hasPlan, hasBoard)`) to a deterministic system-prompt doctrine block for supported members on their next turn - a plan-upkeep clause (keep the shared plan's `[ ]`/`[x]` current via `cluster_plan_tick`), a board-upkeep clause (move tasks through their statuses as work progresses), plus a reconcile line when BOTH surfaces are live. Each clause is gated on the surface actually existing (`hasPlan` / `hasBoard`), so a mode with no matching surface injects nothing. The progress default `both` is non-empty: pre-feature clusters with a plan start getting the upkeep nudge. Takes effect on each member's **next** turn (in-flight untouched). Server persists to cluster `meta.json` and rebroadcasts `cluster_state`; `cluster_state.progressTracking` is echoed only when non-default (absent ≡ `both`). Passes the four-question test: operator-set, deterministic doctrine, logged via `cluster_state`, reversible by flipping the chip.
508
546
 
509
547
  With PLAN or BOTH and an attached plan, approved new work that no existing item covers gets one plan item in the same turn, before the director assigns it. Related work is grouped as one feature or batch of fixes, never one item per bug. The director's reply names the item added or changed with its id and a one-line description. Board-only mode and clusters without an attached plan receive no such instruction. Checkbox ticking rules are unchanged.
510
548
 
@@ -714,6 +752,8 @@ Sets the board mode explicitly. `project` uses the cwd's normal task ledger; `cl
714
752
  { type: 'cluster_task_board_mode_set', clusterId: string, mode: 'none' | 'project' | 'cluster' }
715
753
  ```
716
754
 
755
+ A replacement member can claim or complete work assigned to a former member of its slot. The board resolves the stored assignee through the same former-member mapping as peer mail, then records the current member as assignee when the work is claimed or completed. Assignment by a current or former member ID resolves to the current member. Comments and heartbeats do not require task ownership.
756
+
717
757
  Board *content* mutations don't ride these messages: they flow over the cwd-scoped `task_ledger_*` WS messages (stamped with the cluster's `boardKey` when in `cluster` mode) (documented in [`PROTOCOL.md`](PROTOCOL.md)) and the `cluster_task_*` peer tools ([Peer tool inventory](#peer-tool-inventory-not-ws-messages) below). The plan-to-task (`PlanBodyRenderer.onPromoteTask`) and peer-to-task (`MailboxModal.onMakeTask`, transcript `PeerMessageBlock`) bridges are client-only and dispatch `task_ledger_create` with the board's key; they add no new WS message.
718
758
 
719
759
  ### `cluster_swarm_create` ->
@@ -868,7 +908,7 @@ The Smart session clock freezes at PAUSE. While paused, remaining time is `expir
868
908
 
869
909
  **Also remind busy members** is available under Rule-based and Smart: Automatic. It is off by default and saved per cluster as `remindBusy`; state echoes include `autoPickup.remindBusy`. When enabled, actionable unread mail sends the existing busy NUDGE through the member's steering path once per unread batch, with at least five minutes between reminders for that member. Acknowledgement-only batches stay pending without a reminder. New mail held by the gap is checked again by the resume sweep. Off, Observe-only and expired Smart sessions send none. A reminder whose busy turn ends or changes during preparation is dropped. Idle pickup keeps its usual rules.
870
910
 
871
- `SmartPickupLimits` (defaults and bounds in `shared/src/protocol/autoPickup.ts`): `maxInFlight` 1 (1-4), `callsPerClusterHour` 12 (1-120), `callsPerMemberHour` 3 (1-60), `wakesPerMemberHour` 3 (1-60), `wakesPerSession` 12 (1-200), `sessionMinutes` 30 (5-480), `timeoutSeconds` 30 (5-120), `maxInputBytes` 12288 (2048-65536), `maxOutputTokens` 64 (16-512). Out-of-range or non-integer values read as the default.
911
+ `SmartPickupLimits` defaults to Standard: concurrency 2, cluster calls per hour 48, member calls per hour 12, member wakes per hour 10, session wakes 40, armed minutes 60, timeout seconds 45, input bytes 16384, output tokens 96 and chain depth 24. Short and Long presets and bounded limits are defined in `shared/src/protocol/autoPickup.ts`. Smart: Automatic offers Short, Standard, Long and Custom before arming; the cluster keeps its Custom limits when a preset is selected. Existing saved limits remain Custom unless they match a preset. A missing legacy chain depth retains the former limit of 8. A legacy Smart record with an evaluator or session but no saved limits retains Short until explicitly rearmed. New Smart armings persist complete limits. Invalid Custom payloads cannot replace a saved Custom. The server chain-depth override takes precedence.
872
912
 
873
913
  In the cluster meta (`ClusterState` in `server/src/clusterStore.ts`) the mode is stored as `autoPickupMode` (with `autoTurnOnMailboxEnabled` kept equal to "mode is rule" for older readers), adjusted Rule-based limits as `rulePickupLimits` and the Smart choice, limits and armed session as `smartPickup`. `cluster_state` echoes `autoPickup: { mode, limits, evaluator?, lastEvaluator?, session?, counters?, lastDecision? }`. Counters come from `<cluster dir>/auto-pickup-ledger.json` (`server/src/smartPickupLedger.ts`): evaluator and wake reservations are taken before the work and always count; open reservations become "uncertain" on restart and still count. The supervisor in `server/src/smartPickup.ts` disarms a Smart cluster to Off when its session expires, is missing, or its ledger cannot be read (checked at boot and every `ARCO_SMART_PICKUP_SWEEP_MS`, default 15000), and records the reason as the last decision. Arming, turning off and expiry are logged decisions.
874
914
 
@@ -896,7 +936,7 @@ STOP on a member of an armed Smart cluster records a hold with its pending ids (
896
936
 
897
937
  Capped evaluator requests use 8192 extra total-output tokens for reasoning, matching the existing short Claude allowance. The visible answer still has the configured character bound (`maxOutputTokens * 8`, at least 64 characters); reasoning does not enlarge it. This applies to Claude, Ollama and the shared OpenAI-compatible local adapter. Cursor and Codex have no total-token cap in this adapter and keep their time and visible-character limits. Free-text utility requests retain their existing budgets. A remaining refusal still enters guarded fallback.
898
938
 
899
- The AUTO-PICKUP chip hover and accessible description repeat the last failure/fallback or expiry explanation. The dialog shows minutes remaining and the end time. Session expiry turns Smart Off and leaves mail waiting for rearming, Rule-based or NUDGE; change **Armed session length** in **AUTO-PICKUP > LIMITS** (5 to 240 minutes, default 30) before arming. Expiry never grants a final wake or extends the session. Older stored session-length limits above 240 minutes read as 240, rather than reverting to the 30-minute default.
939
+ The AUTO-PICKUP chip hover and accessible description repeat the last failure/fallback or expiry explanation. The dialog shows minutes remaining and the end time. Session expiry turns Smart Off and leaves mail waiting for rearming, Rule-based or NUDGE; change **Armed session length** in **AUTO-PICKUP > LIMITS** (5 to 240 minutes, default 60) before arming. Expiry never grants a final wake or extends the session. Older stored session-length limits above 240 minutes read as 240, rather than reverting to the 60-minute default.
900
940
 
901
941
  Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/smart-pickup/evaluators` as `{ evaluators: [{ provider, available, reason? }] }`:
902
942
 
@@ -923,7 +963,9 @@ Server-side detector emitted on every fire-path (`fired: true`) AND on every gua
923
963
  workflowId: string, // recipient (the workflow whose turn fires / would have fired)
924
964
  sender: string, // sender workflowId of the triggering peer_message_sent
925
965
  chainDepth: number, // depth this auto-turn lands at (sender's + 1 on fire; reported as-is on skip)
926
- reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled',
966
+ reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled'
967
+ | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail',
968
+ notice?: string, // operator-facing pause notice
927
969
  fired: boolean, // true -> a turn was dispatched; false -> guard refused
928
970
  }
929
971
  ```
@@ -988,7 +1030,7 @@ Sent rows additionally carry `targetWorkflowId: msg.to` (full recipient wfid). T
988
1030
 
989
1031
  ### `attach_codebase_memory` ->
990
1032
 
991
- Operator toggled "Attach codebase memory" in the CONFIG tab. Server flips `WorkflowConfig.codebaseMemory.attached` + persists to meta.json + broadcasts `codebase_memory_state`. The actual `--mcp-config` write-in at CLI spawn time is deferred to a follow-up after Cluster Arco ships `mcpConfigWriter`. `indexPath` defaults to the workflow's `workingDirectory` when absent.
1033
+ Operator toggled "Attach codebase memory" in the CONFIG tab. Server flips `WorkflowConfig.codebaseMemory.attached` + persists to meta.json + broadcasts `codebase_memory_state`. Claude CLI and Codex Agent turns receive the attached server through `mcpConfigWriter`; isolated members and Chat tabs do not. `indexPath` defaults to the workflow's `workingDirectory` when absent.
992
1034
 
993
1035
  ```ts
994
1036
  { type: 'attach_codebase_memory', workflowId: string, indexPath?: string }
@@ -1019,7 +1061,7 @@ Sent rows additionally carry `targetWorkflowId: msg.to` (full recipient wfid). T
1019
1061
 
1020
1062
  ### Peer tool inventory (not WS messages)
1021
1063
 
1022
- Model-facing tools registered on every cluster member (Native: in-process `server/src/providers/claude-native/peerTools.ts`; CLI Claude / Codex / Cursor: the arco-cluster MCP server, which calls the REST mirror `/api/clusters/:id/peer/<op>` in `server/src/http/clusterRoutes.ts` - `GET list`, `POST` for the rest, body carries the caller's `workflowId`). Tool results are strings; errors are `[error] <code>: <message>`. `blind` / `isolated` members get only `peer_send` / `peer_read`.
1064
+ Model-facing tools registered for standard cluster members (Native: in-process `server/src/providers/claude-native/peerTools.ts`; CLI Claude / Codex / Cursor: the arco-cluster MCP server, which calls the REST mirror `/api/clusters/:id/peer/<op>` in `server/src/http/clusterRoutes.ts` - `GET list`, `POST` for the rest, body carries the caller's `workflowId`). Tool results are strings; errors are `[error] <code>: <message>`. `blind` / `isolated` members get only `peer_send` / `peer_read`.
1023
1065
 
1024
1066
  | Tool | REST op | Notes |
1025
1067
  |---|---|---|
@@ -1029,15 +1071,19 @@ Model-facing tools registered on every cluster member (Native: in-process `serve
1029
1071
 
1030
1072
  ### `cluster_plan_read` (peer tool, not a WS message)
1031
1073
 
1032
- Read-only peer tool returning the full canonical plan (`{ title, body, updatedAt, byteLength }`, or `[error] no_plan:...`). Registered on every cluster member alongside the other plan tools. Added 2026-07-09: the per-turn injected plan copy is no longer guaranteed to be the whole plan on string-form transports - an over-budget plan is delivered as a deterministic OUTLINE (headings, checkbox lines, and labelled standing-directive sections; other prose omitted; header marks it as an outline) so the role hint / mailbox notice / code-mode addendum are never evicted (see `server/src/clusterStringFold.ts` + `clusterPlanOutline.ts`). CLI transports retain a 16 KB fold; Codex app-server uses a bounded 48 KB fold. This tool is the pull channel to the full body. No broadcast, no mailbox side effects. REST mirror: `POST /api/clusters/:id/peer/plan-read` with body `{ workflowId }`.
1074
+ Read-only peer tool returning the full canonical plan (`{ planId, revision, title, body, updatedAt, byteLength }`, or `[error] no_plan:...`). Registered for standard cluster members alongside the other plan tools. Added 2026-07-09: the per-turn injected plan copy is no longer guaranteed to be the whole plan on string-form transports - an over-budget plan is delivered as a deterministic OUTLINE (headings, checkbox lines, and labelled standing-directive sections; other prose omitted; header marks it as an outline) so the role hint / mailbox notice / code-mode addendum are never evicted (see `server/src/clusterStringFold.ts` + `clusterPlanOutline.ts`). CLI transports retain a 16 KB fold; Codex app-server uses a bounded 48 KB fold. This tool is the pull channel to the full body. No broadcast, no mailbox side effects. REST mirror: `POST /api/clusters/:id/peer/plan-read` with body `{ workflowId }`.
1033
1075
 
1034
1076
  ### `cluster_plan_write` (peer tool, not a WS message)
1035
1077
 
1036
- Worker-emitted peer tool (added 2026-05-11) that authors or rewrites the shared cluster plan body (markdown). By convention only the director calls it; other members propose plan changes via `peer_send`. Model-driven writes are **additive**: when a plan already exists the server rejects writes that remove existing checkbox tasks or change their `[ ]`/`[x]` status (`clusterPeerOps.ts`), routing status changes to `cluster_plan_tick` and destructive edits to the operator's PLAN tab. Body cannot be empty and is capped at 32768 chars. On success it broadcasts `cluster_plan_changed` cluster-wide. Registered on every cluster member (Native in-process + the arco-cluster MCP registry). If the injected plan copy is an outline (prose omitted on string-form transports), call `cluster_plan_read` first so a rewrite doesn't silently drop the prose.
1078
+ Worker-emitted peer tool (added 2026-05-11) that authors or rewrites the shared cluster plan body (markdown). By convention only the director calls it; other members propose plan changes via `peer_send`. Model-driven writes are **additive**: when a plan already exists the server rejects writes that remove existing checkbox tasks or change their `[ ]`/`[x]` status (`clusterPeerOps.ts`), routing status changes to `cluster_plan_tick` and destructive edits to the operator's PLAN tab. Body cannot be empty and is capped at 32768 chars. On success it broadcasts `cluster_plan_changed` cluster-wide. Registered for standard cluster members (Native in-process + the arco-cluster MCP registry). If the injected plan copy is an outline (prose omitted on string-form transports), call `cluster_plan_read` first so a rewrite doesn't silently drop the prose.
1079
+
1080
+ New and lengthened model-authored checkbox summaries are limited to 240 characters, excluding their leading item ID and reference links. Existing long items remain valid. A uniquely numbered item can be shortened without changing its status, and reference links can be added. Assignment scope and evidence belong on board tasks; durable specifications belong in linked reference docs. The operator's PLAN editor remains available.
1081
+
1082
+ A Director can include `completePlan: { planId, itemId, revision }` with a met `cluster_task_update` sign-off when the entire linked plan item meets its completion rules. The attached plan and a numbered plan-link label, or an existing numbered task title, must identify one checkbox. Ordinary sign-offs leave the plan unchanged. The revision comes from the plan read used to review the item; a changed plan is rejected before the board changes. If an interruption leaves a partial sign-off saying completion is pending, use `cluster_task_show` to read the saved plan ID, item ID and revision, then retry with those values. If the plan has changed, replace the pending partial sign-off with a fresh partial verdict and review the item again. The plan step sets the checkbox checked, so retry does not undo it. Board auto-done still controls task closure.
1037
1083
 
1038
1084
  ### `cluster_plan_tick` (peer tool, not a WS message)
1039
1085
 
1040
- Worker-emitted peer tool that toggles a single `- [ ]` / `- [x]` checkbox in the shared cluster plan. Registered on every cluster member alongside `peer_list / peer_send / peer_read` (Native: in-process; CLI Claude / Codex MCP: via the arco-cluster MCP child + `POST /api/clusters/:id/peer/plan-tick`). Tool schema:
1086
+ Worker-emitted peer tool that toggles a single `- [ ]` / `- [x]` checkbox in the shared cluster plan. Registered for standard cluster members alongside `peer_list / peer_send / peer_read` (Native: in-process; CLI Claude / Codex MCP: via the arco-cluster MCP child + `POST /api/clusters/:id/peer/plan-tick`). Tool schema:
1041
1087
 
1042
1088
  ```ts
1043
1089
  {
@@ -1129,8 +1175,40 @@ task-board contents are not part of a cluster snapshot.
1129
1175
 
1130
1176
  ## Director roles and work size
1131
1177
 
1178
+ A Director is instructed to answer the operator first and then continue already approved work in the same turn; a question pauses only new work, which waits for operator approval. For an unresolved issue, the answer recommends the next step, names its owner, and states any operator decision or action and when it is needed. The instructions ask it, before it ends any turn, including one that only answers a question, to check the approved work that is open now: approved work that can run and has no one working on it goes to its owner with `peer_send` in that turn; work an owner is doing, or that waits on a peer review or another dependency, needs no new handoff; for each task waiting on the operator, the reply names the exact action, where to do it, and that it is the operator's. Before it sends the operator to a local link or server, it checks that it answers, and when it does not, it hands the restoration to the owner first. It is told not to say that no action is needed while a task waits on the operator and not to promise later follow-up instead of sending the handoff. Backlog and new work wait for approval. This is guidance in the Director's instructions; Arco does not check how a turn ends.
1179
+
1180
+ Each Director turn also carries an `Open work on the board` block built from that cluster's own task board and mailboxes when a board is attached. It lists task ids by state (waiting on the operator, blocked on others, in progress, in review) with the owner's workflow id, a count of tasks not started, the members with unread peer mail (workflow id, count, idle or working), and one line saying whether AUTO-PICKUP is on, in which case it may wake idle members but its limits or evaluator can hold a wake back. When members sent each other `peer_send` mail since the Director's previous turn, one more line counts it by sender and recipient (workflow ids, the Director shown as `you`), largest pairs first, at most six pairs and then the number of further pairs; the Director's own sends are not counted. The counts are process-local like the message guard counters: reading them at the Director's turn starts a new count, and a server restart drops them. The line is feedback only and never limits, warns or blocks. The Director instructions also say to ask for one report per assignment or agreed milestone plus blockers, step notes as board comments, and a lock, file or the board rather than mail between members for routine coordination. Before promising that a member will move or asking the operator for a nudge, the Director is told to use the actual delivery and wake status (the `peer_send` result and the member's unread mail and state); a handoff already queued needs no second copy, and when it cannot wake the member the operator is asked to nudge it. Because it rides with the Director's instructions, it carries only values Arco generates: no titles, display names or blocked reasons, which members can write. The Director reads those with `cluster_task_show`, where they arrive as tool output. A blocked task counts as waiting on the operator by the same rule as the board's BLOCKED badge. The block is capped at 2 KB; when it is longer, entries are dropped from the end, the operator section last, and one line gives the number left out. It is read-only, is omitted when there is no open task, no unread mail and no tally, or when the board cannot be read, and wakes no member; AUTO-PICKUP, pause, STOP and approval of new work are unchanged.
1181
+
1182
+ ### Continue the Director
1183
+
1184
+ The operator can approve a board task for handoff from its drawer (HANDOFF APPROVAL > APPROVE FOR HANDOFF). This goes through the operator's `task_ledger_update` with `approved: true` and stores `operatorApproval` on the task: a new id for each approval, the time and a fingerprint of its title and notes. Workers and the Director cannot set it. An edit to the title or notes makes it stale until the operator approves again; WITHDRAW APPROVAL removes it. Board status alone, conversation text and tasks approved before this existed confer nothing.
1185
+
1186
+ `peer_send` takes an optional `task_id`. When it names a task on the sender's cluster board, the send writes a task comment with metadata `{ kind: 'handoff', toWorkflowId, msgId, approvalId }`, where `approvalId` names the approval current at sending. A handoff counts only for that approval, so after an edit and a new approval the task needs a handoff again; an id not on the board is refused with `unknown_task` and nothing is sent. A `task_id` does not exempt a status-only Director message from its confirmation step. The Director's instructions ask it to pass `task_id` when it hands over a board task.
1187
+
1188
+ When a Director turn ends, the server checks the cluster board once, from that state only, and picks at most one approved task (highest priority, then oldest approval) whose approval is current, whose status is TODO or READY, and whose parent tasks all exist and are done (the task dispatcher's dependency rule):
1189
+
1190
+ - No handoff recorded, and no unread mail from the Director waiting with the task's assignee (an assignee whose mailbox cannot be read counts as uncertain and stays quiet): the Director chat shows, above the message box, that the task is approved and still needs an assignment, with CONTINUE DIRECTOR and DISMISS.
1191
+ - A handoff recorded and still unread by an idle member while AUTO-PICKUP is off or paused: the prompt names that member and points to NUDGE, with DISMISS.
1192
+ - Anything else stays quiet: in progress, blocked, review or later; a handoff already read; a busy recipient; AUTO-PICKUP that may wake the member; or an uncertain delivery.
1193
+
1194
+ The offer is live and held in memory by the server; a reconnecting client receives it again, and a server restart drops it until the next Director turn ends. It clears when the Director starts another turn or when a board change, mail being read or a member's turn makes it no longer apply.
1195
+
1196
+ Each offer is bound to the approval it was made for. CONTINUE DIRECTOR (`director_continue_action`) consumes the offer at once for every client, checks the task, that the same approval is still current, the handoff state and that this tab is still the Director again at the moment the turn would start, and then runs one ordinary operator turn on the Director with a fixed `(continue)` message naming the task id. If the check fails or the Director is busy, nothing starts and the prompt shows one line saying why. After CONTINUE DIRECTOR the task is not offered again for the same approval, though the NUDGE pointer can still appear; DISMISS closes both for that approval. An offer whose approval was withdrawn, approved again or made stale by an edit starts nothing and leaves the newer approval untouched. Nothing here retries or starts a turn without the click, and STOP, operator questions and AUTO-PICKUP are unchanged.
1197
+
1132
1198
  A new cluster or preset may have at most one director. Role text beginning with Director or Coordinator identifies a director. Existing clusters and saved presets remain readable without rewriting their roles. Assigning a director to another member is rejected. Legacy clusters that already have two directors remain intact, surface a warning on MEMBERS rows, and still allow REPLACE that preserves both directors' roles. The optional `tier` field is a work-size hint for the director: light for quick edits, standard for normal feature work, and heavy for large or architectural changes. It does not change model or effort and is most useful when several members can take the same work. Template review offers work size only for repeated roles.
1133
1199
 
1200
+ ## Gemini members
1201
+
1202
+ Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). A Gemini replacement starts with no history.
1203
+
1204
+ A Gemini member takes a turn only from the operator's NUDGE on it or a message the operator types in its composer. Both arrive as a WebSocket `user_message`; the server issues a single-use ticket bound to that member and the exact text, and `handleUserMessage` starts a Gemini member turn only with a valid ticket, checked again and consumed when a queued message is taken. AUTO-PICKUP, Smart pickup, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and other automatic turns carry no ticket and start nothing. Rule-based AUTO-PICKUP records the skip with reason `operator_send_only`, Smart pickup records it without asking its evaluator, and a broadcast reports the member as `gemini_review`. Prompt templates, `@` references and picked skills are not applied to a Gemini message.
1205
+
1206
+ The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every nudge asks the member to read the current plan and mail before acting. COMPACT on a Gemini member is the operator's own action: it sends `/compact` to the member's session in its working folder without a ticket, and Arco's automatic compaction stays off for Gemini. The cluster and research screens show a notice above the conversation that names every Gemini member and says that a turn starts only from NUDGE or the member's own composer, and that incoming mail waits until then. The cluster bar's Auto-compaction control names the Gemini members it skips and tells the operator to send `/compact` in the member's session; the server returns before the automatic compaction policy for `antigravity-cli`. This is display only. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
1207
+
1208
+ Mail a Gemini member sends is stored with `fromGemini: true` and also waits for the operator. AUTO-PICKUP, Smart pickup and busy reminders never wake a recipient for it; Rule-based AUTO-PICKUP records reason `gemini_mail` and Smart pickup records `gemini_mail` once per session when only such mail is waiting. The mailbox drain delivers it only in a turn started by the operator's NUDGE or typed message: a `peer_read` in an automatic turn returns the other mail and leaves it waiting.
1209
+
1210
+ Pending mail for any member can be edited in the mailbox modal: `PUT /api/clusters/:id/mailbox/:wfid/:msgId` with `{ content }` rewrites the message under the mailbox lock and keeps its id, sender, time and attachments. A message already delivered or cancelled is refused with `409 already_delivered`.
1211
+
1134
1212
  ## Composer and task editor recovery
1135
1213
 
1136
1214
  A TO selection containing one member uses the per-member sender, preserving picked skills, steering intent and composer actions. Multiple recipients use broadcast. A successful single-recipient send returns TO to the member in view. The voice recipient chooser reads the latest selection and roster. Task editor RESET restores RELEASE together with title, notes and priority.
@@ -392,6 +392,8 @@ Proposes a compacted version of an instruction file (`CLAUDE.md` / `CLAUDE.local
392
392
  type: 'md_tuneup_candidates',
393
393
  workflowId: string,
394
394
  candidates: { path: string, baseName: string, bytes: number, lines?: number, approximateTokens?: number, hints?: string[] }[], // path is repo-relative to the cwd
395
+ skippedLinks?: { path: string, reason: string }[], // links that were not followed (for example a link that leaves the project)
396
+ partial?: boolean, // true when the search stopped early or failed, so the list may be incomplete
395
397
  defaultPath?: string, // candidate matching the tab's primary provider, pre-selected in the dialog
396
398
  }
397
399
  ```
@@ -444,7 +446,7 @@ Proposes a compacted version of an instruction file (`CLAUDE.md` / `CLAUDE.local
444
446
  ### `md_tuneup_accept` -> / `md_tuneup_applied` <-
445
447
 
446
448
  ```ts
447
- { type: 'md_tuneup_accept', workflowId: string, tuneupId: string, filePath: string, proposed: string } // server re-reads, backs up, then writes `proposed` (authoritative - no cached copy trusted)
449
+ { type: 'md_tuneup_accept', workflowId: string, tuneupId: string, filePath: string, proposed: string, original: string } // server re-reads the file and refuses (`error`, nothing written) when it no longer equals `original`, the text the diff was reviewed against; otherwise it backs up and writes `proposed`
448
450
  {
449
451
  type: 'md_tuneup_applied',
450
452
  workflowId: string,
@@ -490,7 +492,7 @@ There is no cancel message - the single bounded turn settles on its own (same as
490
492
  }
491
493
  ```
492
494
 
493
- `'quick'` builds a deterministic seed with no model call (the QUICK choice). `'fresh-agent'` currently rejects with "not implemented yet".
495
+ `'quick'` builds a deterministic seed with no model call (the QUICK choice). `'fresh-agent'` answers with a `handoff_artifact_ready` whose `error` says the mode is not implemented yet and names `original-worker` and `fresh-summarizer` as the working modes.
494
496
 
495
497
  ### `handoff_cancel` ->
496
498
 
@@ -562,6 +564,7 @@ Fires after the new session is pre-warmed and the old session is archived in `me
562
564
  sessionId: string,
563
565
  turnCount: number,
564
566
  },
567
+ draft?: string, // Antigravity CLI only: composer text that points the agent at the saved handoff document
565
568
  newSessionId?: string, // optional for providers without native session ids
566
569
  completedAt: number,
567
570
  }
@@ -639,10 +642,13 @@ No agent tool exposes them.
639
642
 
640
643
  ```ts
641
644
  { type: 'transcript_worker_preview', requestId: string, workflowId: string,
642
- turns: number, includePartial: boolean, preface: string }
645
+ turns: number, includePartial: boolean, preface: string,
646
+ replacement?: { clusterId: string, mode: 'recent' | 'full' } } // set by REPLACE in a cluster; see PROTOCOL_CLUSTER.md
643
647
  { type: 'transcript_worker_result', requestId: string,
644
648
  preview?: { token: string, seed: string, bytes: number, availableTurns: number,
645
- selectedTurns: number, partialIncluded: boolean, cutoffSeq: number },
649
+ selectedTurns: number, partialIncluded: boolean, cutoffSeq: number,
650
+ historyMode?: 'recent' | 'full', requestedTurns?: number, truncated?: boolean,
651
+ historyFallback?: boolean }, // the last four are set for a REPLACE preview
646
652
  newWorkflowId?: string, error?: string }
647
653
  { type: 'transcript_worker_create', requestId: string, token: string,
648
654
  destination: { workingDirectory: string, name: string, provider: ProviderName,