arco-workbench 0.1.5 → 0.1.7

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 (188) hide show
  1. package/CONTRIBUTING.md +9 -0
  2. package/README.md +17 -5
  3. package/client/dist/assets/{PhosphorBackdrop-D6cbmLNY.js → PhosphorBackdrop-DVQdBrTw.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-2dyerOi4.js → ThemedBackgroundShaderImpl-BfSs2tB4.js} +1 -1
  5. package/client/dist/assets/{XtermView-AIwo7O3D.js → XtermView-DaMjC8Ny.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-DXAuxS8D.js → galleryEditor-BCQnXj7R.js} +1 -1
  7. package/client/dist/assets/{index-8j6p-pmQ.js → index-COfbHCYv.js} +245 -243
  8. package/client/dist/index.html +1 -1
  9. package/client/src/alerts/desktopAlerts.ts +13 -0
  10. package/client/src/buildCheck.ts +3 -1
  11. package/client/src/components/AppUpdateNotice.tsx +2 -1
  12. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +46 -11
  13. package/client/src/components/ClusterRightPanel/MemberRow.tsx +1 -1
  14. package/client/src/components/ClusterRightPanel/index.tsx +2 -1
  15. package/client/src/components/ClusterTaskBoardTab.tsx +54 -3
  16. package/client/src/components/ContextMeter.tsx +7 -0
  17. package/client/src/components/HeaderVersionBox.tsx +7 -4
  18. package/client/src/components/Home/HomeView.tsx +1 -1
  19. package/client/src/components/NeedsYouBadge.tsx +31 -16
  20. package/client/src/components/OperatorQuestionNotice.tsx +10 -1
  21. package/client/src/components/ProvidersPopover.tsx +23 -12
  22. package/client/src/components/TabBar.tsx +11 -8
  23. package/client/src/components/TabStatusChip.tsx +8 -7
  24. package/client/src/components/UpdateAction.tsx +18 -4
  25. package/client/src/components/UpdateResultNotice.tsx +3 -1
  26. package/client/src/components/clusterNeedsYou.ts +27 -8
  27. package/client/src/help/content/cluster.tsx +50 -27
  28. package/client/src/help/content/composer.tsx +8 -1
  29. package/client/src/help/content/header.tsx +25 -14
  30. package/client/src/help/content/misc.tsx +8 -0
  31. package/client/src/help/content/rightPanel.tsx +1 -1
  32. package/client/src/help/content/settings.tsx +1 -1
  33. package/client/src/help/content/tabbar.tsx +2 -1
  34. package/client/src/help/manualSections/clusters.tsx +78 -19
  35. package/client/src/help/manualSections/configuration.tsx +20 -4
  36. package/client/src/help/manualSections/gettingStarted.tsx +10 -0
  37. package/client/src/help/manualSections/maintenance.tsx +50 -8
  38. package/client/src/help/manualSections/plans.tsx +5 -1
  39. package/client/src/help/manualSections/providers.tsx +10 -3
  40. package/client/src/help/manualSections/reference.tsx +1 -1
  41. package/client/src/help/manualSections/workflows.tsx +20 -0
  42. package/client/src/help/manualSections/workspace.tsx +7 -1
  43. package/client/src/questions/waitingQuestion.ts +3 -2
  44. package/client/src/stores/appStore.ts +1 -1
  45. package/client/src/stores/appStore.types.ts +1 -0
  46. package/client/src/stores/appUpdateStore.ts +29 -8
  47. package/client/src/stores/notificationStore.ts +2 -0
  48. package/client/src/utils/activityPresentation.ts +1 -1
  49. package/client/src/utils/tabStatus.ts +8 -0
  50. package/client/src/utils/wsSession.ts +2 -1
  51. package/client/src/voice/commands.ts +4 -3
  52. package/client/src/voice/executor.ts +3 -3
  53. package/client/src/ws/handleServerMessage.ts +22 -2
  54. package/client/src/ws/operatorQuestions.ts +2 -0
  55. package/docs/CLIENT.md +3 -3
  56. package/docs/FEATURES.md +1 -1
  57. package/docs/GETTING_STARTED.md +16 -6
  58. package/docs/GLOSSARY.md +6 -2
  59. package/docs/GOTCHAS.md +17 -5
  60. package/docs/OPERATIONS.md +207 -5
  61. package/docs/PERSISTENCE.md +22 -1
  62. package/docs/PRIMITIVES.md +1 -1
  63. package/docs/PROTOCOL.md +1 -1
  64. package/docs/PROTOCOL_CLUSTER.md +18 -7
  65. package/docs/PROVIDERS.md +10 -5
  66. package/docs/SETTINGS.md +4 -2
  67. package/docs/TASK_LEDGER.md +6 -0
  68. package/docs/VOICE.md +2 -0
  69. package/native/darwin-arm64/manifest.json +1 -1
  70. package/native/win32-arm64/manifest.json +1 -1
  71. package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
  72. package/node_modules/@arco/shared/dist/clusterRolePresets.js +10 -0
  73. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
  74. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
  75. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +2 -2
  76. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -0
  77. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +4 -0
  78. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  79. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +9 -3
  80. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  81. package/node_modules/@arco/shared/package.json +1 -1
  82. package/package.json +2 -2
  83. package/scripts/packaging/arco.mjs +1 -0
  84. package/scripts/packaging/native-repair.mjs +46 -8
  85. package/scripts/packaging/update.mjs +5 -1
  86. package/server/dist/attention.d.ts +1 -1
  87. package/server/dist/attention.js +6 -4
  88. package/server/dist/capabilities.d.ts +9 -8
  89. package/server/dist/capabilities.js +71 -102
  90. package/server/dist/cliUpdateDecision.d.ts +34 -0
  91. package/server/dist/cliUpdateDecision.js +152 -0
  92. package/server/dist/clusterAutoTurn.d.ts +4 -0
  93. package/server/dist/clusterAutoTurn.js +29 -25
  94. package/server/dist/clusterBusyReminder.js +1 -1
  95. package/server/dist/clusterDirector.js +1 -0
  96. package/server/dist/clusterPeerOps.js +2 -2
  97. package/server/dist/clusterStore.d.ts +3 -0
  98. package/server/dist/clusterStore.js +22 -0
  99. package/server/dist/defaults/models.md +1 -1
  100. package/server/dist/fileAccessPolicy.js +7 -5
  101. package/server/dist/http/workflowDataRoutes.js +1 -1
  102. package/server/dist/index.js +5 -1
  103. package/server/dist/primitives/seedWorker.d.ts +1 -0
  104. package/server/dist/primitives/seedWorker.js +2 -1
  105. package/server/dist/providerConversation.d.ts +9 -0
  106. package/server/dist/providerConversation.js +80 -0
  107. package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
  108. package/server/dist/providers/claude-native/retainedContext.js +20 -0
  109. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  110. package/server/dist/providers/claude-native/worker.js +34 -6
  111. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
  112. package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
  113. package/server/dist/providers/codex-appserver/worker.js +9 -4
  114. package/server/dist/providers/ollama.js +2 -3
  115. package/server/dist/server/broadcast.d.ts +1 -1
  116. package/server/dist/smartPickup.d.ts +2 -1
  117. package/server/dist/smartPickup.js +28 -1
  118. package/server/dist/smartPickupAdapters.d.ts +1 -0
  119. package/server/dist/smartPickupAdapters.js +18 -5
  120. package/server/dist/smartPickupLedger.js +6 -4
  121. package/server/dist/smartPickupObserver.d.ts +1 -0
  122. package/server/dist/smartPickupObserver.js +69 -23
  123. package/server/dist/workers/WorkerManager.d.ts +1 -0
  124. package/server/dist/workers/WorkerManager.js +1 -0
  125. package/server/dist/workers/limits.js +6 -2
  126. package/server/dist/workflowMeta.d.ts +11 -1
  127. package/server/dist/workflowMeta.js +132 -6
  128. package/server/dist/workflows/types.d.ts +1 -0
  129. package/server/dist/ws/clusterHandlers.d.ts +1 -0
  130. package/server/dist/ws/clusterHandlers.js +2 -1
  131. package/server/dist/ws/compactHandlers.d.ts +1 -1
  132. package/server/dist/ws/compactHandlers.js +11 -4
  133. package/server/dist/ws/handoffHandlers.js +16 -6
  134. package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
  135. package/server/dist/ws/operatorQuestionHandlers.js +9 -1
  136. package/server/dist/ws/turnEngine.d.ts +2 -4
  137. package/server/dist/ws/turnEngine.js +88 -129
  138. package/server/package.json +1 -1
  139. package/server/src/attention.ts +5 -4
  140. package/server/src/capabilities.ts +70 -111
  141. package/server/src/cliUpdateDecision.ts +159 -0
  142. package/server/src/clusterAutoTurn.ts +26 -21
  143. package/server/src/clusterBusyReminder.ts +1 -1
  144. package/server/src/clusterDirector.ts +1 -0
  145. package/server/src/clusterPeerOps.ts +2 -2
  146. package/server/src/clusterStore.ts +26 -1
  147. package/server/src/defaults/models.md +1 -1
  148. package/server/src/fileAccessPolicy.ts +7 -5
  149. package/server/src/http/workflowDataRoutes.ts +1 -1
  150. package/server/src/index.ts +5 -1
  151. package/server/src/primitives/seedWorker.ts +3 -1
  152. package/server/src/providerConversation.ts +71 -0
  153. package/server/src/providers/claude-native/retainedContext.ts +22 -0
  154. package/server/src/providers/claude-native/worker.ts +33 -5
  155. package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
  156. package/server/src/providers/codex-appserver/worker.ts +8 -4
  157. package/server/src/providers/ollama.ts +2 -3
  158. package/server/src/smartPickup.ts +27 -3
  159. package/server/src/smartPickupAdapters.ts +19 -5
  160. package/server/src/smartPickupLedger.ts +6 -4
  161. package/server/src/smartPickupObserver.ts +51 -17
  162. package/server/src/workers/WorkerManager.ts +2 -0
  163. package/server/src/workers/limits.ts +7 -2
  164. package/server/src/workflowMeta.ts +139 -5
  165. package/server/src/workflows/types.ts +1 -0
  166. package/server/src/ws/clusterHandlers.ts +3 -2
  167. package/server/src/ws/compactHandlers.ts +9 -3
  168. package/server/src/ws/handoffHandlers.ts +13 -6
  169. package/server/src/ws/operatorQuestionHandlers.ts +10 -2
  170. package/server/src/ws/turnEngine.ts +80 -135
  171. package/shared/dist/clusterRolePresets.d.ts +1 -1
  172. package/shared/dist/clusterRolePresets.js +10 -0
  173. package/shared/dist/protocol/autoPickup.d.ts +3 -0
  174. package/shared/dist/protocol/autoPickup.js +9 -1
  175. package/shared/dist/protocol/clientMessages.d.ts +2 -2
  176. package/shared/dist/protocol/models.d.ts +6 -0
  177. package/shared/dist/protocol/notifications.d.ts +4 -0
  178. package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  179. package/shared/dist/protocol/serverMessages.d.ts +9 -3
  180. package/shared/dist/protocol/workflows.d.ts +1 -0
  181. package/shared/src/clusterRolePresets.ts +11 -1
  182. package/shared/src/protocol/autoPickup.ts +14 -1
  183. package/shared/src/protocol/clientMessages.ts +2 -1
  184. package/shared/src/protocol/models.ts +5 -2
  185. package/shared/src/protocol/notifications.ts +5 -0
  186. package/shared/src/protocol/operatorQuestions.ts +13 -0
  187. package/shared/src/protocol/serverMessages.ts +12 -2
  188. package/shared/src/protocol/workflows.ts +4 -0
@@ -16,6 +16,7 @@ For the normal native install and run modes, see [`../README.md`](../README.md)
16
16
  | [Updating Arco](#updating-arco) |
17
17
  | [Going back to 0.1.4](#going-back-to-014) |
18
18
  | [Uninstall](#uninstall) |
19
+ | [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies) |
19
20
  | [Recovering a submitted turn](#recovering-a-submitted-turn) |
20
21
  | [Ports](#ports) |
21
22
  | [Exposure posture](#exposure-posture) |
@@ -56,6 +57,12 @@ npm install -g arco-workbench
56
57
  arco setup
57
58
  ```
58
59
 
60
+ When Arco is already installed, update with `arco update` or **UPDATE AND
61
+ RESTART**; do not run `npm install -g arco-workbench` over the existing package.
62
+ See [Updating Arco](#updating-arco). To clear every older copy before a fresh
63
+ install, see
64
+ [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
65
+
59
66
  `arco setup` asks before installing the service, starts it, and opens the local
60
67
  URL. Use `arco service install|uninstall|start|stop|restart|status|logs|refresh` for
61
68
  direct service control, or `arco start` for a foreground run. Service settings
@@ -63,11 +70,47 @@ come from `ARCO_HOME`, `ARCO_PORT`, `ARCO_HOST`, and the other supported
63
70
  environment values saved at first install. Existing unowned or modified service
64
71
  definitions are refused.
65
72
 
73
+ On Windows, `npm install -g arco-workbench` over a running packaged service
74
+ fails. npm prints `npm warn cleanup` lines with `EPERM` under
75
+ `%APPDATA%\npm\node_modules\arco-workbench`, then `EEXIST` on
76
+ `%APPDATA%\npm\arco.cmd`. The `EEXIST` and leftover `arco`, `arco.cmd`, and
77
+ `arco.ps1` files come from an earlier install under the previous package name
78
+ `@ghreprimand/arco`, which provides the same `arco` command. Arco does not
79
+ write those three launcher files itself; npm creates them from the package's
80
+ `bin` entry.
81
+
82
+ To keep a working `arco-workbench` install and its running service, uninstall
83
+ the earlier package and recreate the launchers:
84
+
85
+ ```sh
86
+ npm uninstall -g @ghreprimand/arco
87
+ npm rebuild -g arco-workbench
88
+ arco version
89
+ ```
90
+
91
+ `npm rebuild -g arco-workbench` recreates the launcher files without replacing
92
+ package files, so it is safe while the service runs. While the launchers are
93
+ missing, the package is still intact when this runs (PowerShell: use
94
+ `$env:APPDATA` in place of `%APPDATA%`):
95
+
96
+ ```bat
97
+ node "%APPDATA%\npm\node_modules\arco-workbench\scripts\packaging\arco.mjs" version
98
+ ```
99
+
100
+ For a fresh install, uninstall `@ghreprimand/arco` first when
101
+ `npm ls -g --depth=0` lists it, then install `arco-workbench` (see
102
+ [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies)).
103
+ If a direct overwrite left the service holding package files open, stop or
104
+ uninstall the service before replacing the package. Do not delete
105
+ `%USERPROFILE%\.arco` as a routine step; it holds settings and saved work (see
106
+ [Uninstall](#uninstall) if that data must go).
107
+
66
108
  If `npm install -g arco-workbench` fails with `EEXIST` because an `arco` link
67
- already exists in the global bin folder (for example from an earlier source
68
- checkout's `npm link`), remove that link or run `npm uninstall -g` for the old
69
- package, then install again. For `EACCES` on Linux or macOS, use nvm or a
70
- user-owned npm prefix (for example under Homebrew's Node).
109
+ already exists in the global bin folder (for example from `@ghreprimand/arco`
110
+ or an earlier source checkout's `npm link`), remove that link or uninstall the
111
+ listed package (`npm uninstall -g @ghreprimand/arco` when it appears in
112
+ `npm ls -g --depth=0`), then install again. For `EACCES` on Linux or macOS, use
113
+ nvm or a user-owned npm prefix (for example under Homebrew's Node).
71
114
 
72
115
  The package starts on port 3001 when available and chooses the next free port
73
116
  through 3099, then an operating-system-assigned port. It saves and reuses the
@@ -177,9 +220,16 @@ The version box in the top bar, left of the power button, always shows the
177
220
  running version. When a newer release is known it turns into an accent box with
178
221
  an up arrow and the new version, stays that way after the toast is dismissed,
179
222
  opens the update dialog on click, and shows UPDATING while an update runs.
223
+ A release found by CHECK NOW appears in the version box; select UPDATE AND
224
+ RESTART to open its confirmation.
180
225
 
181
226
  ### Packaged install
182
227
 
228
+ When Arco is already installed as the npm package, update it with this command
229
+ or with **UPDATE AND RESTART**. Do not replace a running install by running
230
+ `npm install -g arco-workbench` again; on Windows that path fails while the
231
+ service holds package files open (see [Running locally](#running-locally)).
232
+
183
233
  Run:
184
234
 
185
235
  ```sh
@@ -194,6 +244,27 @@ modules cannot be replaced safely. A packaged service can instead use
194
244
  Linux, macOS, and Windows. The action interrupts running turns and reports
195
245
  completion or rollback after reconnect.
196
246
 
247
+ The result appears beside the open update control. When that control is closed,
248
+ a separate result notice remains available with **DISMISS**. The same result is
249
+ not shown in both places at once.
250
+
251
+ Package updates and `arco setup --repair-native` find npm beside Node.js,
252
+ through the global package directory, or through the npm command on `PATH`.
253
+ Homebrew's versioned Node executable is supported even when the service has a
254
+ short `PATH`. If npm still cannot be found, the update stops before stopping the
255
+ service and describes the locations checked. In a terminal where `npm --version`
256
+ works, update a packaged service manually:
257
+
258
+ ```sh
259
+ arco service stop
260
+ npm install -g arco-workbench
261
+ arco service start
262
+ ```
263
+
264
+ For a foreground run, stop that process before installing and run `arco start`
265
+ afterward. If `npm --version` fails too, repair the Node.js/npm installation
266
+ first. A native repair can then be retried with `arco setup --repair-native`.
267
+
197
268
  After a restart, a page reloads automatically if its build changed or its
198
269
  session cannot recover and no unsaved work is detected. Otherwise it shows a
199
270
  RELOAD banner. Save drafts and edits before selecting RELOAD.
@@ -359,6 +430,9 @@ release announcement is recorded in the server log, never in a workflow's
359
430
  Remove a packaged native install (Linux, macOS, or Windows). Stop in-flight work
360
431
  and close the browser before starting. Source checkouts and Docker are separate;
361
432
  see [Service mode](SERVICE_MODE.md) and [Docker](DOCKER.md) for those paths.
433
+ When the goal is a clean machine before installing again, and the old copy may
434
+ be a package, a source checkout, or both, start with
435
+ [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
362
436
 
363
437
  ### 1. Remove the per-user service
364
438
 
@@ -389,7 +463,12 @@ npm uninstall -g arco-workbench
389
463
  uninstall` or `arco shortcuts remove`. A shortcut changed outside Arco is left
390
464
  for manual review.
391
465
 
392
- On Windows, `arco.cmd` is acceptable if the PowerShell shim is blocked.
466
+ On Windows, `arco.cmd` is acceptable if the PowerShell shim is blocked. After
467
+ uninstalling `arco-workbench`, check `npm ls -g --depth=0` for the earlier
468
+ package `@ghreprimand/arco` and run `npm uninstall -g @ghreprimand/arco` when
469
+ it is listed; that package owns the `arco`, `arco.cmd`, and `arco.ps1`
470
+ launcher files. Then check `%APPDATA%\npm` for any leftover launchers and
471
+ remove them before installing again.
393
472
 
394
473
  ### 3. Optional: delete Arco data (permanent)
395
474
 
@@ -461,6 +540,119 @@ provider command-line tools (`claude`, `codex`, `cursor-agent`, `ollama`, and
461
540
  similar). Their account sign-ins and data outside the Arco home remain. Remove
462
541
  those products with their own uninstallers if you no longer need them.
463
542
 
543
+ ## Before a fresh install: remove older copies
544
+
545
+ Use this when an older Arco must be cleared before installing again, and it is
546
+ not clear whether the copy was a packaged install, a source checkout, or both.
547
+ The steps cover Linux, macOS, and Windows. They do not delete the Arco home;
548
+ keeping or deleting that data is a separate choice below.
549
+
550
+ ### 1. Find what is present
551
+
552
+ ```sh
553
+ arco version
554
+ ```
555
+
556
+ On Linux and macOS:
557
+
558
+ ```sh
559
+ which -a arco
560
+ npm ls -g --depth=0
561
+ ```
562
+
563
+ On Windows (Command Prompt or PowerShell):
564
+
565
+ ```bat
566
+ where.exe arco
567
+ npm ls -g --depth=0
568
+ ```
569
+
570
+ Note every `arco` path on `PATH`. In the npm listing, look for `arco-workbench`,
571
+ the earlier `@ghreprimand/arco`, or a linked checkout (`npm link` shows the
572
+ checkout path).
573
+
574
+ ### 2. Stop a packaged service
575
+
576
+ If a packaged install is present, uninstall the service and both package names
577
+ when listed:
578
+
579
+ ```sh
580
+ arco service uninstall
581
+ npm uninstall -g arco-workbench
582
+ npm uninstall -g @ghreprimand/arco
583
+ ```
584
+
585
+ Then confirm `arco version` no longer runs an old copy. On Windows, check
586
+ `%APPDATA%\npm` for leftover `arco`, `arco.cmd`, and `arco.ps1`, and remove any
587
+ that remain.
588
+
589
+ ### 3. Stop a source checkout
590
+
591
+ Stop a foreground `npm start` or `npm run dev` with Ctrl+C in that terminal.
592
+
593
+ On Linux, if the source user service was installed:
594
+
595
+ ```sh
596
+ npm run arco:service -- uninstall
597
+ ```
598
+
599
+ On macOS, if a hand-maintained LaunchAgent was loaded (label `com.arco.app`),
600
+ unload it and remove its plist as in
601
+ [Service mode](SERVICE_MODE.md#hand-maintained-launchd-service-for-source-checkouts).
602
+ `bootout` alone leaves the file in `~/Library/LaunchAgents/`; with `RunAtLoad`
603
+ set, launchd loads it again at the next login.
604
+
605
+ ```sh
606
+ launchctl bootout gui/$(id -u)/com.arco.app
607
+ rm ~/Library/LaunchAgents/com.arco.app.plist
608
+ ```
609
+
610
+ If the label or file name differs, list candidates with
611
+ `ls ~/Library/LaunchAgents | grep -i arco`, then boot out that label and remove
612
+ the matching plist.
613
+
614
+ If `npm ls -g --depth=0` showed a linked checkout, remove the global link from
615
+ that checkout:
616
+
617
+ ```sh
618
+ npm unlink -g
619
+ ```
620
+
621
+ Or remove the leftover `arco` entries from the global npm bin folder by hand.
622
+
623
+ ### 4. Confirm nothing is left
624
+
625
+ - Packaged service definitions are gone: Linux
626
+ `~/.config/systemd/user/arco.service` (or under `XDG_CONFIG_HOME`); macOS
627
+ `~/Library/LaunchAgents/arco-workbench.plist`; Windows Task Scheduler task
628
+ `arco-workbench`.
629
+ - On macOS, also confirm
630
+ `~/Library/LaunchAgents/com.arco.app.plist` is absent when a source agent was
631
+ used.
632
+ - `which -a arco` or `where.exe arco` finds nothing.
633
+ - No Arco process remains. On Linux and macOS, `pgrep -fl arco` prints nothing.
634
+ On Windows, Task Manager shows no matching `node.exe`, or in PowerShell
635
+ `Get-CimInstance Win32_Process -Filter "Name = 'node.exe'"` finds no
636
+ `CommandLine` that names `arco.mjs` (the packaged service identifies
637
+ `arco.mjs service-run`; see [Service mode](SERVICE_MODE.md#packaged-service)).
638
+ - Nothing answers on the saved port. While the package is still installed,
639
+ `arco doctor` reports whether this Arco home is running. After removal, use
640
+ the port in `port-state.json` under the Arco home when that file exists,
641
+ otherwise port `3001`.
642
+
643
+ ### 5. Keep or delete the Arco home
644
+
645
+ The Arco home (default `~/.arco` on Linux and macOS, `%USERPROFILE%\.arco` on
646
+ Windows; or the path in `ARCO_HOME`) holds settings, chats, and provider data
647
+ Arco stores there. Leaving it in place is normal. A fresh package install that
648
+ keeps an existing home reuses that data: it does not open **Welcome to Arco**
649
+ when setup was already completed or when saved work is present. Deleting the
650
+ home is permanent; back up first (see [Backup](BACKUP.md)) and follow
651
+ [Optional: delete Arco data](#3-optional-delete-arco-data-permanent) only when
652
+ that data must go.
653
+
654
+ Then install again with `npm install -g arco-workbench` and `arco setup`.
655
+
464
656
  ## Recovering a submitted turn
465
657
 
466
658
  A composer draft that was not sent over an open WebSocket stays in the browser.
@@ -1039,6 +1231,16 @@ Differences become `capabilities_changed` WS events. The CONFIG tab shows a red
1039
1231
 
1040
1232
  If a CLI was upgraded between boots, the active tab gets a `[CLI] Updated X -> Y` system message. New flags appear in `cliChanges[]`; the operator can decide whether to accept the new behavior.
1041
1233
 
1234
+ ### Provider update results
1235
+
1236
+ Open VERSIONS and select the Claude or Codex row. A successful update briefly shows `-> v<new>`; a confirmed current result shows `v<version> (latest)`. Both clear after 6 seconds and the row returns to its version. An unchanged version with a newer release available, a deferred update or manual instructions shows `v<version> (!)` in warning colour until the next check. A failure shows `FAILED` in danger colour until the next check. Hover over the row for the full message, error or command. An unchanged version is never called latest without confirmation from the server. A nonzero updater exit remains a failure even when the old executable still works.
1237
+
1238
+ Codex updates follow the installation selected by Arco's PATH. A recognised standalone installation uses its own `codex update` command. Arco first checks that the standalone installer's destination still matches the active command directory, including a custom `CODEX_INSTALL_DIR`. An installation without that command, or one whose ownership cannot be identified, is left unchanged with terminal instructions. Arco never installs npm Codex over a standalone installation.
1239
+
1240
+ An npm installation must resolve to the Codex package under the current `npm root -g`. Arco checks its platform build before running `codex update`; older npm installations without that command use a pinned npm version. When the self-updater cannot safely select the advertised version, the update is deferred. Arco does not downgrade a working installation. A different npm target is refused rather than creating another copy.
1241
+
1242
+ The Codex update flag uses the target from that same installation decision and appears only when the installed semantic version is older. The npm registry supplies the published version for standalone installations; there is no separate standalone release feed or Homebrew cask check. See [Provider update limits](GOTCHAS.md#provider-update-limits). Claude continues to use `claude update`; Cursor's version remains display-only here.
1243
+
1042
1244
  ---
1043
1245
 
1044
1246
  ## Director / workers dispatcher and run recovery
@@ -279,6 +279,10 @@ Task lifecycle events are persisted on the parent workflow but the **client-side
279
279
 
280
280
  ## meta.json
281
281
 
282
+ Missing metadata is recreated from the authoritative workflow configuration at creation, reconnect, before a turn, and when a provider session id is discovered. A known live id and its account binding are saved; existing metadata and concurrent updates are preserved under the metadata lock. Incognito writes no metadata. A write failure produces a notice that a restart may lose the resume id.
283
+
284
+ Recreating a file cannot recover an id already lost before restart. Arco does not guess from the session index or provider rollouts. Codex, Cursor and Claude CLI tabs with earlier replies but no saved external conversation show `CTX: -`; old usage remains historical. A new provider conversation produces one durable notice, then waits for its own context reading. Claude Native and local providers can replay their retained history without an external id. Missing authored state still needs its originals or a backup.
285
+
282
286
  Per-workflow identity file. Atomic writes via `atomicFile.ts`. The type is `WorkflowMeta` in `server/src/workflowMeta.ts` (exhaustive list there); `workflowConfigFromMeta` is the single meta -> `WorkflowConfig` projection used on rehydrate and Past Chats reopen - a new persisted per-tab field must be added to **both** or it silently resets on restart.
283
287
 
284
288
  ```ts
@@ -478,6 +482,16 @@ CREATE VIRTUAL TABLE chunks_fts USING fts5(content, content='chunks', content_ro
478
482
 
479
483
  ## Artifacts
480
484
 
485
+ The per-workflow `artifacts/` folder holds conversation deliverables Arco
486
+ surfaces in chat and in ARTIFACTS or Outputs: reviews, handoff-related
487
+ outputs, report files and other finished work for that tab. Put files the
488
+ operator wants kept in the project (documentation, a README, notes to commit)
489
+ in the project tree, for example `docs/`, not only under
490
+ `.arco/workflows/<wfid>/artifacts/`. Large intermediate files belong in the
491
+ sibling `scratch/` folder. `.arco/` itself is local state and is not committed,
492
+ except a skill shared through SHARE WITH REPOSITORY (see
493
+ [Project `.arco/.gitignore`](#project-arcogitignore)).
494
+
481
495
  `<cwd>/.arco/workflows/<wfid>/artifacts/review-<ts>.md` - Review primitive outputs. YAML frontmatter + body:
482
496
 
483
497
  ```markdown
@@ -895,7 +909,14 @@ Updated on each worker spawn / settle; on macOS and Windows the start time is fi
895
909
 
896
910
  Arco creates `<cwd>/.arco/.gitignore` before writing project state. Its default
897
911
  is `*`, so Git ignores all contents of `.arco/`, including the ignore file
898
- itself. To share an individual file, add a negation such as `!settings.json`
912
+ itself. Treat `.arco/` as local state that stays out of Git by default. Agents
913
+ do not commit, force-add or add ignore exceptions for it. The one route Arco
914
+ itself offers is **SHARE WITH REPOSITORY** in Settings > SKILLS for a project
915
+ skill: that adds ignore exceptions for that skill only and does not stage or
916
+ commit for you. An operator who decides to share an individual file by hand can
917
+ still add a negation, as described next.
918
+
919
+ To share an individual file by hand, add a negation such as `!settings.json`
899
920
  to that file. Sharing a nested file also requires unignoring its parent
900
921
  directories. A repository-level ignore rule can still exclude `.arco/`.
901
922
  Already tracked files stay tracked; remove them from the Git index explicitly
@@ -840,7 +840,7 @@ Two operator-armed surfaces overlay onto every member's per-turn system context
840
840
 
841
841
  For members with Standard access, the body (plus a trailing line naming its reference docs) is injected as a forced system block immediately after the worker's `FORCED_FIRST_BLOCK` and before the operator's `appendSystemPrompt` / `systemPrompt` - every member's next turn reads it. `CLEAR PLAN` detaches the plan from the cluster (`clusterStore.clearPlanId`); the plan file stays in the project's plans, and subsequent turns no longer see the block. Hard cap `PLAN_MAX_BYTES = 32768` enforced server-side; oversize requests are rejected with a `NotificationToasts` error.
842
842
 
843
- **Role hint per member.** Free-form text (≤120 chars, `MEMBER_ROLE_MAX`). Stored sparsely on `ClusterMeta.memberRoles`. When set, the Native worker injects a second forced system block (`Your role in this cluster: <role>`) immediately after the plan block. Empty / whitespace clears. The operator surface is a popover on each `MemberRow` in the Members sub-tab anchored to the `SET` button: six canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER - plus `CLEAR` and `Custom...` (falls back to a free-form inline editor). The wire shape is unchanged: a preset is just a known string the UI drops into the editor; `presetForText` round-trips a stored body back to its preset id so EDIT reopens with the matching preset highlighted and `MemberCard` chips can label known presets vs free-form `CUSTOM`. Director-vs-worker is **emergent through operator conversation** - the role string is a framing nudge, not a permission flag. Cross-member coordination still happens through the existing peer_* substrate.
843
+ **Role hint per member.** Free-form text (≤120 chars, `MEMBER_ROLE_MAX`). Stored sparsely on `ClusterMeta.memberRoles`. When set, the Native worker injects a second forced system block (`Your role in this cluster: <role>`) immediately after the plan block. Empty / whitespace clears. The operator surface is a popover on each `MemberRow` in the Members sub-tab anchored to the `SET` button: eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus `CLEAR` and `Custom...` (falls back to a free-form inline editor). 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. The wire shape is unchanged: a preset is just a known string the UI drops into the editor; `presetForText` round-trips a stored body back to its preset id so EDIT reopens with the matching preset highlighted and `MemberCard` chips can label known presets vs free-form `CUSTOM`. Director-vs-worker is **emergent through operator conversation** - the role string is a framing nudge, not a permission flag. Cross-member coordination still happens through the existing peer_* substrate.
844
844
 
845
845
  **Plan-changed propagation.** Editing the plan mid-turn for member A does NOT tear down A's running turn - the new body lands on the NEXT turn only (the worker reads `this.config.clusterPlan` once at `buildSystemBlocks` per `messages.create`). Member B (idle at edit time) picks up the new body on its next turn naturally.
846
846
 
package/docs/PROTOCOL.md CHANGED
@@ -2702,7 +2702,7 @@ string[]> }`. Requires one explicit answer per question, honors closed option
2702
2702
  sets, and rejects wrong-workflow, stale or duplicate replies. Server sends a
2703
2703
  transient `operator_question_reply_result { workflowId, requestId, ok, error? }`
2704
2704
  to the submitting socket; authoritative answered/cancelled state is broadcast to
2705
- all observers. Approval messages are separate and retain existing behavior.
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.
2706
2706
 
2707
2707
  `workflow_state_snapshot.operatorQuestions` contains the live pending requests
2708
2708
  (including an empty array). The client upserts by request ID and closes any
@@ -407,7 +407,7 @@ operator hit `CLEAR PLAN` in `ClusterPlanTab`. `clusterPlanBridge.clearClusterPl
407
407
 
408
408
  ### `cluster_member_role_set` ->
409
409
 
410
- The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (six canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. 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.
410
+ 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.
411
411
 
412
412
  ```ts
413
413
  { type: 'cluster_member_role_set', clusterId: string, workflowId: string, role: string }
@@ -795,7 +795,7 @@ Existing cooldown and rate guards and the chain-depth default support environmen
795
795
  | Per-cluster rate cap (rolling 60s) | 10 | `ARCO_CLUSTER_AUTO_TURN_RATE_CAP_PER_MINUTE` |
796
796
  | Chain-depth cap | 8 | `ARCO_CLUSTER_AUTO_TURN_MAX_CHAIN_DEPTH` |
797
797
 
798
- Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total pauses pickup and RESUME starts a fresh total; the hourly member cap remains. Limits are adjustable in the AUTO-PICKUP dialog. Rule guard counters and pair pauses are stored in the cluster ledger and survive a server restart.
798
+ Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total stops pickup and RESET BUDGET starts a fresh total; the hourly member cap remains. Limits are adjustable in the AUTO-PICKUP dialog. Rule guard counters and pair pauses are stored in the cluster ledger and survive a server restart.
799
799
 
800
800
  Chain depth is carried on `peer_message_sent.chainDepth` (see below); operator-initiated peer-sends ride at depth 0, so the first auto-turn lands at depth 1.
801
801
 
@@ -816,11 +816,18 @@ Operator chose an AUTO-PICKUP mode in the cluster dialog. Modes: `off` (default)
816
816
  limits?: Partial<SmartPickupLimits>, // only changed limits; each bounded
817
817
  ruleLimits?: Partial<RulePickupLimits>,
818
818
  resumeRule?: boolean,
819
+ paused?: boolean, // change only the operator pause; keep the current mode and omit arming/settings fields
819
820
  remindBusy?: boolean, // Also remind busy members; default false, saved per cluster
820
821
  }
821
822
  ```
822
823
 
823
- Smart modes require an evaluator whose provider is enabled and whose adapter reports itself available (`GET /api/smart-pickup/evaluators`; Codex only while it is enabled and signed in), and a readable budget ledger, and every arming starts a new session (`id`, `armedAt`, `expiresAt` from `sessionMinutes`). Off and Rule-based end the session; the evaluator choice is kept as `lastEvaluator` and adjusted limits persist. Refusals return `error` with `cluster_auto_pickup_set rejected: <problem>` (`invalid_mode`, `unknown_cluster`, `evaluator_required`, `evaluator_provider_disabled`, `evaluator_unavailable`, `ledger_unreadable`).
824
+ Smart modes require an evaluator whose provider is enabled and whose adapter reports itself available (`GET /api/smart-pickup/evaluators`; Codex only while it is enabled and signed in), and a readable budget ledger, and every arming starts a new session (`id`, `armedAt`, `expiresAt` from `sessionMinutes`). Off and Rule-based end the session; the evaluator choice is kept as `lastEvaluator` and adjusted limits persist. Refusals return `error` with `cluster_auto_pickup_set rejected: <problem>` (`invalid_mode`, `invalid_pause`, `unknown_cluster`, `evaluator_required`, `evaluator_provider_disabled`, `evaluator_unavailable`, `ledger_unreadable`).
825
+
826
+ PAUSE and RESUME are operator-only controls beside TURN OFF and in the dialog. A request with `paused` must name the current non-Off mode and omit evaluator, limits, Rule-based budget reset and reminder settings. It stores `autoPickupPausedAt` in cluster metadata, echoed as `autoPickup.paused` and `autoPickup.pausedAt`; an absent timestamp means running. Pausing preserves the mode, Smart session id and timestamps, all counters and the Rule-based wake ledger. It stops automatic wakes, evaluator requests and busy reminders; already running turns continue and manual NUDGE remains available. Pending mail stays visible as waiting.
827
+
828
+ RESUME does not require confirmation or evaluator revalidation. Each idle member with pending mail re-enters the ordinary pickup path once, including Smart evaluation and every existing limit; Observe-only still never wakes a member. Repeated resume requests while already running do not scan again. The Rule-based budget reset remains a separate `resumeRule: true` action, labelled RESET BUDGET and refused during an operator pause. Resume never silently resets a spent budget. The pause persists across restart. Changing settings in the same mode keeps the pause; changing mode clears it.
829
+
830
+ The Smart session clock freezes at PAUSE. While paused, remaining time is `expiresAt - autoPickupPausedAt`; the supervisor does not expire the session and the dialog shows remaining time with PAUSED, without an end time. RESUME moves `expiresAt` forward by the pause duration, preserving the session id, `armedAt` and remaining running time. Repeated PAUSE does not move the pause timestamp, and repeated RESUME does not extend the session again. Hourly evaluator and wake limits continue to use real time; session counters are not reset. The ledger retains the current armed session's entries across long pauses, even past its normal nine-hour retention window. TURN OFF while paused clears the timestamp and ends the session.
824
831
 
825
832
  **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.
826
833
 
@@ -834,7 +841,7 @@ While a Smart mode is armed, `server/src/smartPickupObserver.ts` evaluates one i
834
841
 
835
842
  The snapshot (`server/src/smartPickupEvaluator.ts`) holds the recipient's role label and status, up to five of its open tasks (id, status, title), the pending mail bodies with sender role labels, oldest first, and `lastSentToSender`: for each sender of the pending mail (grouped by workflow id, at most four, the oldest sender dropped first), the recipient's most recent peer message to that sender written before that sender's oldest pending message, clipped to 600 characters, labeled with the sender's role. All of it is JSON inside a DATA block that the instructions call untrusted. Message ids, workflow ids, paths and transcripts are not sent. Thread context comes from `server/src/smartPickupThread.ts`, which `clusterMailbox.enqueue` feeds with the last three messages per sender and recipient pair (clipped, memory only, at most 2000 pairs; empty after a restart until members send again). It is dropped before the mail itself can make the snapshot truncated, and it does not change the mail fingerprint. The instructions add decision rules (a result, partial result or reply to the recipient's own request is `wake`), what each role acts on, and seven worked examples from the v2 corpus train split, including thread context. It is decided without the evaluator when the mailbox is empty (`defer`, `empty`), when all pending mail does not fit in `maxInputBytes` (`ask`, `truncated`), or when the mailbox cannot be read strictly (`ask`, `unverifiable`).
836
843
 
837
- Otherwise an evaluator slot is reserved, then one request is made and the slot settled. The answer must be exactly `{"action":"wake"|"defer"|"ask","reason":<enum>}` (`SMART_PICKUP_REASONS`), optionally in one json code fence; extra keys, other values, prose, errors, timeouts, tool attempts and over-long answers are recorded as `invalid_answer:<problem>` or `evaluator_error:<reason>` with no action. A result is discarded (`session_changed`) when Smart was turned off or re-armed during the request. A failure before the evaluator's provider session was ready (reason prefix `startup_`, e.g. `evaluator_error:startup_timeout` after a cold Cursor start) is evaluated once more for the same mail with a new reservation; a second start-up failure, and every other failure, stands until the mail changes. Observe-only records each decision with outcome `logged`; it never starts a turn and never reads mail destructively.
844
+ Otherwise an evaluator slot is reserved, then one request is made and the slot settled. The answer must be exactly `{"action":"wake"|"defer"|"ask","reason":<enum>}` (`SMART_PICKUP_REASONS`), optionally in one json code fence; extra keys, other values, prose, errors, timeouts, tool attempts and over-long answers are recorded as `invalid_answer:<problem>` or `evaluator_error:<reason>` with no action. A result is discarded (`session_changed`) when Smart was turned off or re-armed during the request. A failure before the evaluator session is ready retries once for the same mail with a new reservation. A second startup failure, or any other failure, takes the failure path without an additional retry. Observe-only records valid decisions with outcome `logged` and final failures with `fallback_observed`; it never starts a turn or reads mail destructively. In Automatic, an error, refusal or invalid answer attempts ordinary pickup through the same gate as a wake proposal, with the acknowledgement-only filter and attachment exception. A valid `defer` or `ask`, cancellation, changed or expired session, unreadable snapshot or ledger, and evaluator quota refusal never authorise fallback.
838
845
 
839
846
  Automatic nudges and pickup reminders carry a message marker in the server echo and saved event. Chat, pending PREVIEW and HISTORY show a folded mailbox line with + and - controls. The worker receives the full prompt. A typed message is not marked based on its text. The peer mailbox notice is added to the worker system context, not the chat echo.
840
847
 
@@ -846,16 +853,20 @@ In `smart-auto` a `wake` proposal goes through `gateWake` in `server/src/smartPi
846
853
  2. A wake slot is reserved in the ledger (`wakesPerMemberHour`, `wakesPerSession`); it counts whatever happens next.
847
854
  3. Under the cluster mailbox lock the claim succeeds only if the same session is still armed in `smart-auto`, the recipient is still a member, the strict pending-id listing has the evaluated fingerprint, no STOP hold applies, the shared guards still pass, and the turn path can claim the idle member. On success the shared guards are stamped. The slot is settled `woke` or with the refusal (`session_changed`, `member_changed`, `unverifiable`, `mail_changed`, `stop_hold`, `rate_capped`, `busy`).
848
855
 
849
- The decision is recorded as `<reason>:<refusal>` with outcome `skipped`, or outcome `woke`. A wake blocked by a passing condition (`busy`, `cooldown`, `rate_capped`, `limit_wakes_member_hour`) stays owed and is retried for the same mail without asking the evaluator again. Evaluator requests refused by the in-flight or hourly limits are retried later and logged once per mail fingerprint.
856
+ A model decision is recorded as `<reason>:<refusal>` with outcome `skipped`, or outcome `woke`. Fallback keeps action null and its original `evaluator_error:<reason>` or `invalid_answer:<problem>`; outcome is `fallback_woke` or `fallback_skipped:<guard>`. It never claims the evaluator answered wake. The same fingerprint admits at most one wake; a delayed fallback preserves its failure reason without another evaluation. A wake blocked by a passing condition (`busy`, `cooldown`, `rate_capped`, `limit_wakes_member_hour`) stays owed and is retried for the same mail without asking the evaluator again. Evaluator requests refused by the in-flight or hourly limits are retried later and logged once per mail fingerprint.
850
857
 
851
858
  STOP on a member of an armed Smart cluster records a hold with its pending ids (in the ledger, so it survives restart). The hold applies while the pending mail is a subset of those ids; new mail or an empty mailbox ends it. A `defer` stands for `ARCO_SMART_PICKUP_DEFER_MS` (default 600000) or until the mail changes. An `ask` raises one `cluster-nudge` workbench notice per mail fingerprint and starts nothing. The sweep visits clusters and members in sorted order one at a time.
852
859
 
860
+ 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.
861
+
862
+ 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.
863
+
853
864
  Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/smart-pickup/evaluators` as `{ evaluators: [{ provider, available, reason? }] }`:
854
865
 
855
866
  | Provider | Request | Status |
856
867
  |---|---|---|
857
- | Ollama | `POST /api/chat`, `stream: false`, JSON-schema `format`, `num_predict` = `maxOutputTokens`, no tools | available |
858
- | Claude | one Messages API request with Native credentials, `max_tokens` = `maxOutputTokens`, no tools; any non-text block is refused | available with Native sign-in |
868
+ | Ollama | `POST /api/chat`, `stream: false`, JSON-schema `format`, `num_predict` = `maxOutputTokens + 8192`, `think: false`, no tools | available |
869
+ | Claude | one Messages API request with Native credentials, `max_tokens` = `maxOutputTokens + 8192`, no tools; thinking blocks are ignored, unsupported blocks and capped/no-answer replies are refused | available with Native sign-in |
859
870
  | Cursor | a fresh `cursor-agent acp` (no `--force`) in an empty temporary folder, `clientCapabilities: {}`, `mcpServers: []`, the exact model selected with `session/set_config_option` and confirmed (otherwise `startup_model_unavailable` or `startup_model_unconfirmed`), switched to Ask mode with `session/set_mode` before the prompt (no Ask mode refuses with `startup_no_ask_mode`); start-up (spawn, `initialize`, `session/new`, `session/set_mode`) has its own 30 s allowance and `timeoutSeconds` bounds only `session/prompt`; any permission request, file request or tool call ends the request with no decision; the agent is stopped once and the session is never loaded again | available |
860
871
  | Codex | a fresh `codex -c mcp_servers={} app-server` in an empty temporary folder; `thread/start` with `sandbox: read-only`, `approvalPolicy: never`, `config.web_search: disabled`, `ephemeral: true` and no resume; `turn/start` with a read-only `sandboxPolicy`; only the last final-answer agent message is kept; any item other than the prompt echo, reasoning and agent messages, and any server request (approval, question, dynamic tool), ends the request with no decision and kills the process | available when enabled and signed in |
861
872
  | LM Studio, llama.cpp, Strata, DeepSeek | one shared OpenAI-compatible chat request to the already loaded model, no tools declared, returned tool calls rejected; never loads, unloads or switches a model | available while the chosen model is loaded |
package/docs/PROVIDERS.md CHANGED
@@ -20,6 +20,8 @@ If a provider CLI, sign-in process, language server or MCP server closes its inp
20
20
 
21
21
  Diagnostics uses platform PATH lookup, including Windows PATHEXT suffixes, to find optional tools and language servers. Model Health uses the runtime's `ARCO_LLAMACPP_BIN` override when configured; otherwise it searches PATH. An invalid configured override is reported missing. These checks do not launch a model.
22
22
 
23
+ A missing workflow `meta.json` is repaired from the current configuration and any known live provider session id. If that id was already lost, Codex, Cursor and Claude CLI start a new provider conversation on the next message and say so once. Earlier messages stay visible, but are not a promise that the provider received the full earlier transcript. `CTX: -` explains the unavailable conversation or the replacement's pending reading. COMPACT on a lost Codex or Cursor conversation explains that the next message starts a new conversation. Claude Native and local replay-based history do not depend on an external id. See [Persistence](PERSISTENCE.md#metajson).
24
+
23
25
  ## Topics
24
26
 
25
27
  | Topic |
@@ -454,6 +456,8 @@ Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also
454
456
 
455
457
  ### Native transport
456
458
 
459
+ **Steering during server tools.** A response can mix a local `tool_use` with server calls such as web search or web fetch. With `stop_reason: tool_use`, server calls may have no result until a later assistant response. The continuation must contain only the local `tool_result` blocks while those calls remain pending. Arco pairs server calls and results by ID across the active turn, keeps steering queued and defers in-turn compaction until every call is answered. Each held message adds one conversation notice, such as `Message held until web search finishes.` The existing queue still shows it as queued. It is delivered at the next safe local-tool boundary, or as the next turn if the current turn finishes first. No evidence or thinking is stripped to make that delivery possible; actual-abort recovery is unchanged.
460
+
457
461
  `server/src/providers/claude-native/` - long-lived per-workflow worker that talks directly to Anthropic's Messages API via `@anthropic-ai/sdk@^0.91.1` (Pi-pinned). The agent loop runs in Arco's process so the mid-turn steer hook fires between tool-result append and the next API round-trip.
458
462
 
459
463
  **File layout (post-P0 carve-out).** `worker.ts` holds the `ClaudeNativeWorker` class and the turn/stream/error loop. To keep it under the 2000-line cap, the *stateless* leaf helpers live in siblings and are re-exported from `worker.ts` so existing `from './worker.js'` import paths still resolve:
@@ -754,6 +758,8 @@ Anthropic returns structured `{type:'error', error:{type, message}}` envelopes.
754
758
 
755
759
  - 401 / `authentication_error` → `[AUTH:claude]` system_notice + fail (refresh already attempted in `ensureLiveTokens`).
756
760
  - 429 / `rate_limit_error`, 529 / `overloaded_error`, 500 / `api_error` → retry × 3. **Header-aware backoff:** `resolveRateLimitWait` (`rateLimit.ts`) reads the response's `retry-after` (delta-seconds or HTTP-date) first, then falls back to the soonest `anthropic-ratelimit-*-reset` RFC-3339 timestamp; the fixed 15s/30s/60s ladder is the fallback only when no usable header is present. The SDK's own retries are disabled (`maxRetries: 0`) so this header-aware ladder is the only backoff. The CLI transport's `parseClaudeReset` text-regex sniffer is gone - Native sees the parsed JSON plus the rate-limit headers.
761
+ - HTTP 502, 503, 504 and 520 through 524, SDK connection failures/timeouts, and recognized dropped-socket errors use that same ladder and three-attempt limit. Operator cancellation is not retried. Exhaustion produces one plain notice that the conversation is intact and a short error, without the gateway's raw response body. Send another message to continue. HTTP 501, 505 and other existing non-retryable statuses keep their behavior.
762
+ - A retry preserves the request prefix and retracts partial streamed text before regenerating it. Native Task children use the same worker loop. End-of-turn `count_tokens` is best effort with no retry; COMPACT summary generation and Server Fold use their own failure/fallback paths.
757
763
  - 413 / `request_too_large` → fail with a Handoff-recommendation system_notice. Don't retry.
758
764
  - 400 / `invalid_request_error`, 403 / `permission_error`, 400 / `billing_error`, 404 / `not_found_error` → fail; don't retry.
759
765
 
@@ -1117,18 +1123,17 @@ Questions appear inline and under the composer's **? N QUESTIONS** button in
1117
1123
  Agent and saved Chat. Multiple questions retain IDs, option descriptions,
1118
1124
  freeform/secret flags and explicit submission (no default is automatically sent).
1119
1125
  RPC answers return on the original request ID; async message answers enter the
1120
- normal user-message/steer queue, including after the original turn settles.
1126
+ normal user-message/steer queue while the original turn remains active. DISMISS closes a question without an answer. A phone push already sent cannot be recalled.
1121
1127
  Permission/command approvals still use the existing deterministic declines.
1122
1128
  Exec is headless and has no question/reply bridge; choose APPSERVER in CONFIG.
1123
1129
 
1124
1130
  `codex-appserver/operatorQuestions.ts` owns bounded live handles (16 per worker)
1125
1131
  and publishes structured `operator_question` states through a server-injected
1126
- publisher, so async questions remain answerable after the per-turn wrapper
1127
- unwires. Events persist through the normal workflow broadcaster; secret answers
1132
+ publisher while the corresponding turn is active. Events persist through the normal workflow broadcaster; secret answers
1128
1133
  are redacted before publishing. Incognito transport/privacy rules are unchanged.
1129
1134
  RPC questions close on turn settlement or upstream `serverRequest/resolved`;
1130
- async message cards survive successful settlement. Explicit cancel, worker
1131
- retirement and connection death close pending handles. Late/duplicate replies
1135
+ async message cards close when their own thread and turn settle. Explicit cancel, worker
1136
+ retirement and connection death close pending handles. Dismissal returns empty answers on the original RPC before closing its card; a failed delivery leaves it pending. Late/duplicate replies
1132
1137
  are rejected, and ordinary async replies cannot cross a changed provider/session.
1133
1138
  Reconnect snapshots reconcile live questions and close orphaned replay cards
1134
1139
  after a server restart. Pending cards stay hot within the existing 500-row cap.
package/docs/SETTINGS.md CHANGED
@@ -149,7 +149,7 @@ folders, files, saved sessions or trust decisions. Missing locations stay listed
149
149
 
150
150
  ## Auto-compaction policy
151
151
 
152
- The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
152
+ The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
153
153
 
154
154
  For Ollama, the new policy summarizes only verified completed executions outside the retained tail. The summary boundary is saved atomically in the workflow's `ollama-compact-boundary.json`, bound to project, workflow, session epoch and source events. Later turns and server restarts reuse a matching summary without rewriting raw events. Queued input is replayed in execution order, with the current prompt supplied once. Unverifiable legacy logs, partial or cancelled executions, changed source and unresolved input defer summarization with a notice. Ineffective or failed attempts wait for a lower context reading before retrying. The enabled policy defers automatic Handoff so it cannot rotate the session before the next pre-dispatch check; manual Handoff remains available. Explicit Off stops automatic compaction, including the legacy global automatic setting. Returning to Provider uses the 90% default unless an earlier global Ollama enabled or threshold setting is saved, in which case that setting remains in force. Manual COMPACT remains a next-turn action and uses the same durable boundary when a worker or Provider policy is active.
155
155
 
@@ -184,7 +184,9 @@ AUTO-PICKUP is a per-cluster control on the cluster right-panel header (default
184
184
  Off), not a Settings page. Modes: Off, Rule-based (recommended deterministic wake on idle
185
185
  mail with acknowledgement, loop and adjustable wake-budget guards), Smart: Observe-only (evaluator proposes wake / wait / ask; log only), and
186
186
  Smart: Automatic (wake proposals may start a turn after server gates and
187
- limits). Smart modes need an evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata or DeepSeek through Xolotl). The same provider limits apply to the utility agent.
187
+ limits; evaluator errors instead attempt ordinary pickup once through those same gates, never over a valid wait/ask or expired session). Smart modes need an evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata or DeepSeek through Xolotl). The same provider limits apply to the utility agent.
188
+ Change **Armed session length** under **AUTO-PICKUP > LIMITS** before arming (5 to 240 minutes, default 30). The dialog shows minutes remaining; expiry turns Smart Off and leaves mail waiting. The chip hover and accessible description explain failures, fallback and expiry. Capped evaluator requests have 8192 tokens of reasoning headroom above the visible-answer limit.
189
+
188
190
  Limits, session expiry, TURN OFF, STOP holds and counters
189
191
  are described in the in-app manual section AUTO-PICKUP and Smart pickup and in
190
192
  [cluster protocol](PROTOCOL_CLUSTER.md). Evaluator request contents and adapter
@@ -480,3 +480,9 @@ Dispatch rechecks the current task assignment, dependencies, cluster membership,
480
480
  board selection and worker availability under the ledger claim lock. Daemon claims
481
481
  also check its enabled state and current run and sweep limits. The worker is
482
482
  reserved during claim persistence, then receives the validated task in its turn.
483
+
484
+ ## Cluster attention and REVIEW drawers
485
+
486
+ The cluster member-header badge names the kinds present: WAITING for a question that pauses an agent, BLOCKED for a task blocked on the operator, ASKED for a question the agent can continue past, and TO ACCEPT for a signed-off review task. Stopped kinds come first. Only WAITING and BLOCKED use warning colour and count in the compact `! n`; optional-only items show a plain muted number. The TO ACCEPT hover says that acceptance is optional and nothing waits on it. Existing task/member jump targets and the list remain.
487
+
488
+ A REVIEW drawer starts with the sign-off author, verdict and summary, or No sign-off yet. ACCEPT uses the same operator status update as its board card; RECHECK uses the existing request to the sign-off author and is unavailable without a suitable author/sender. Accepting is optional. Edit is below this summary and closed initially for REVIEW; every other status retains its existing layout. Overview, references, comments, recovery and run history remain available.
package/docs/VOICE.md CHANGED
@@ -350,6 +350,8 @@ Samples report failures rather than silently playing the fallback voice.
350
350
 
351
351
  `shared/src/protocol/voiceOperator.ts` defines the tool names;
352
352
  `server/src/voice/toolDefinitions.ts` owns their schemas and descriptions.
353
+ Cluster routing recognizes Director and Coordinator role prefixes. An Advisor mentioning the Director remains an Advisor. Member names are a fallback only when no role is set.
354
+
353
355
  Tools include `arco_condition`, `arco_compact`, `arco_activity`, `arco_mail_rule`, `arco_watch`, `arco_usage`, `arco_computer`, `arco_targets`,
354
356
  `arco_select`, `arco_open_panel`, `arco_open` (settings / manual /
355
357
  knowledge...), `arco_open_dialog` (nudge, broadcast, review, handoff, spawn,
@@ -2,7 +2,7 @@
2
2
  "platform": "darwin",
3
3
  "arch": "arm64",
4
4
  "binding": "napi",
5
- "node": "24.22.2",
5
+ "node": "24.22.3",
6
6
  "dependencies": {
7
7
  "better-sqlite3": "13.0.3",
8
8
  "node-pty": "1.1.0"
@@ -2,7 +2,7 @@
2
2
  "platform": "win32",
3
3
  "arch": "arm64",
4
4
  "binding": "napi",
5
- "node": "24.22.2",
5
+ "node": "24.22.3",
6
6
  "dependencies": {
7
7
  "better-sqlite3": "13.0.3",
8
8
  "node-pty": "1.1.0"
@@ -1,5 +1,5 @@
1
1
  export interface RolePreset {
2
- key: 'director' | 'builder' | 'reviewer' | 'researcher' | 'tester' | 'documenter';
2
+ key: 'director' | 'builder' | 'reviewer' | 'researcher' | 'tester' | 'documenter' | 'advisor' | 'designer';
3
3
  label: string;
4
4
  text: string;
5
5
  }
@@ -46,6 +46,16 @@ export const ROLE_PRESETS = [
46
46
  label: 'DOCUMENTER',
47
47
  text: 'Documenter role. Read peer work via peer_read; write + update docs (README, guides, comments). Modify docs only.',
48
48
  },
49
+ {
50
+ key: 'advisor',
51
+ label: 'ADVISOR',
52
+ text: 'Advisor role. Give the Director a second opinion on request; state doubts. No files, assignments or landing; peer_send.',
53
+ },
54
+ {
55
+ key: 'designer',
56
+ label: 'DESIGNER',
57
+ text: 'Designer role. Own screen layout, states, wording and accessibility. Change UI files only; report via peer_send.',
58
+ },
49
59
  ];
50
60
  export function normalizeClusterRoleText(text) {
51
61
  const trimmed = text.trim();
@@ -67,6 +67,8 @@ export interface SmartPickupCounters {
67
67
  }
68
68
  export interface ClusterAutoPickupState {
69
69
  remindBusy?: boolean;
70
+ paused?: boolean;
71
+ pausedAt?: number;
70
72
  mode: AutoPickupMode;
71
73
  limits: SmartPickupLimits;
72
74
  evaluator?: SmartPickupEvaluator;
@@ -90,6 +92,7 @@ export interface ClusterAutoPickupSetMessage {
90
92
  limits?: Partial<SmartPickupLimits>;
91
93
  ruleLimits?: Partial<RulePickupLimits>;
92
94
  resumeRule?: boolean;
95
+ paused?: boolean;
93
96
  remindBusy?: boolean;
94
97
  }
95
98
  export interface RulePickupLimits {