arco-workbench 0.1.7 → 0.1.8

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 (210) hide show
  1. package/CONTRIBUTING.md +52 -12
  2. package/README.md +14 -12
  3. package/client/dist/assets/{PhosphorBackdrop-DVQdBrTw.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-BfSs2tB4.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
  5. package/client/dist/assets/{XtermView-DaMjC8Ny.js → XtermView-BGFujb1e.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-BCQnXj7R.js → galleryEditor-D951A2sE.js} +1 -1
  7. package/client/dist/assets/{index-COfbHCYv.js → index-CsVy3eZm.js} +246 -246
  8. package/client/dist/index.html +1 -1
  9. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
  10. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
  11. package/client/src/components/ClusterRightPanel/index.tsx +4 -0
  12. package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
  13. package/client/src/components/NeedsYouBadge.tsx +3 -3
  14. package/client/src/components/ProviderReleasesModal.tsx +8 -4
  15. package/client/src/components/ProvidersPopover.tsx +28 -23
  16. package/client/src/components/SettingsPanel.tsx +2 -2
  17. package/client/src/components/SkillsSettings.tsx +5 -0
  18. package/client/src/components/TabBar.tsx +91 -9
  19. package/client/src/components/TerminalInput.tsx +12 -10
  20. package/client/src/components/TranscriptSendDialog.tsx +12 -8
  21. package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
  22. package/client/src/components/clusterNeedsYou.ts +11 -18
  23. package/client/src/help/content/cluster.tsx +38 -17
  24. package/client/src/help/content/composer.tsx +22 -0
  25. package/client/src/help/content/header.tsx +16 -0
  26. package/client/src/help/content/misc.tsx +8 -0
  27. package/client/src/help/content/settings.tsx +18 -4
  28. package/client/src/help/content/tabbar.tsx +5 -0
  29. package/client/src/help/manualSections/actions.tsx +31 -0
  30. package/client/src/help/manualSections/clusters.tsx +41 -20
  31. package/client/src/help/manualSections/configuration.tsx +18 -0
  32. package/client/src/help/manualSections/maintenance.tsx +18 -0
  33. package/client/src/help/manualSections/providers.tsx +32 -8
  34. package/client/src/help/manualSections/troubleshooting.tsx +2 -1
  35. package/client/src/help/manualSections/workflows.tsx +12 -0
  36. package/client/src/help/manualSections/workspace.tsx +6 -0
  37. package/client/src/utils/transcriptWorkerRequest.ts +24 -0
  38. package/client/src/ws/handleServerMessage.ts +8 -2
  39. package/docs/ARCHITECTURE.md +1 -1
  40. package/docs/CLIENT.md +9 -8
  41. package/docs/FEATURES.md +8 -5
  42. package/docs/GETTING_STARTED.md +4 -3
  43. package/docs/GOTCHAS.md +2 -1
  44. package/docs/OPERATIONS.md +14 -4
  45. package/docs/PERSISTENCE.md +7 -2
  46. package/docs/PRIMITIVES.md +42 -0
  47. package/docs/PROTOCOL_CLUSTER.md +42 -3
  48. package/docs/PROTOCOL_PRIMITIVES.md +39 -0
  49. package/docs/PROVIDERS.md +50 -13
  50. package/docs/SETTINGS.md +27 -3
  51. package/docs/TASK_LEDGER.md +7 -15
  52. package/native/darwin-arm64/manifest.json +1 -1
  53. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
  54. package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
  55. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
  56. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
  57. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  58. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  59. package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
  60. package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
  61. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  62. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
  63. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  64. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
  65. package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
  66. package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
  67. package/node_modules/@arco/shared/package.json +1 -1
  68. package/package.json +2 -2
  69. package/scripts/packaging/arco.mjs +1 -1
  70. package/scripts/packaging/native-repair.mjs +32 -4
  71. package/server/dist/atomicFile.js +1 -2
  72. package/server/dist/capabilities.d.ts +5 -2
  73. package/server/dist/capabilities.js +59 -9
  74. package/server/dist/cliUpdateDecision.d.ts +1 -1
  75. package/server/dist/cliUpdateDecision.js +5 -3
  76. package/server/dist/clusterDirector.js +1 -1
  77. package/server/dist/clusterPeerOps.js +10 -7
  78. package/server/dist/clusterProgress.js +1 -1
  79. package/server/dist/clusterSkills.d.ts +13 -0
  80. package/server/dist/clusterSkills.js +81 -0
  81. package/server/dist/clusterSnapshots.js +2 -0
  82. package/server/dist/clusterStore.d.ts +7 -2
  83. package/server/dist/clusterStore.js +42 -1
  84. package/server/dist/diagnostics/codeSkew.js +1 -0
  85. package/server/dist/eventLog.d.ts +7 -0
  86. package/server/dist/eventLog.js +70 -13
  87. package/server/dist/historyLimits.d.ts +1 -0
  88. package/server/dist/historyLimits.js +3 -0
  89. package/server/dist/http/router.js +1 -1
  90. package/server/dist/index.js +24 -1
  91. package/server/dist/jsonlLines.d.ts +4 -0
  92. package/server/dist/jsonlLines.js +53 -0
  93. package/server/dist/management/identity.js +1 -0
  94. package/server/dist/mcp/clusterMcpTools.js +4 -4
  95. package/server/dist/project/taskLedger.d.ts +4 -0
  96. package/server/dist/project/taskLedger.js +7 -4
  97. package/server/dist/providerConversation.d.ts +1 -0
  98. package/server/dist/providerConversation.js +17 -0
  99. package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
  100. package/server/dist/providers/claude-native/resumeSummary.js +102 -49
  101. package/server/dist/providers/claude-native/worker.js +8 -4
  102. package/server/dist/providers/claude.js +2 -1
  103. package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
  104. package/server/dist/providers/codex-appserver/catalog.js +16 -1
  105. package/server/dist/providers/codex.js +2 -1
  106. package/server/dist/providers/codexCodeMode.d.ts +1 -1
  107. package/server/dist/providers/codexCodeMode.js +4 -3
  108. package/server/dist/providers/cursor/print.js +2 -1
  109. package/server/dist/providers/cursor/worker.js +2 -1
  110. package/server/dist/providers/llamacpp.js +17 -8
  111. package/server/dist/providers/ollamaRecovery.js +6 -6
  112. package/server/dist/providers/ollamaResilience.js +3 -3
  113. package/server/dist/providers/ollamaTokens.js +1 -1
  114. package/server/dist/quota.d.ts +0 -18
  115. package/server/dist/quota.js +0 -44
  116. package/server/dist/replacementHistory.d.ts +19 -0
  117. package/server/dist/replacementHistory.js +49 -0
  118. package/server/dist/server/broadcast.d.ts +2 -1
  119. package/server/dist/server/broadcast.js +1 -0
  120. package/server/dist/server/prompts.d.ts +1 -0
  121. package/server/dist/server/prompts.js +6 -1
  122. package/server/dist/sessionJsonl.d.ts +1 -1
  123. package/server/dist/sessionJsonl.js +115 -40
  124. package/server/dist/smartPickupAdapters.js +15 -2
  125. package/server/dist/transcriptWorker.d.ts +34 -0
  126. package/server/dist/transcriptWorker.js +201 -0
  127. package/server/dist/workflowStore.d.ts +1 -0
  128. package/server/dist/workflowStore.js +31 -0
  129. package/server/dist/ws/clusterHandlers.d.ts +1 -0
  130. package/server/dist/ws/clusterHandlers.js +62 -26
  131. package/server/dist/ws/handoffHandlers.js +5 -2
  132. package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
  133. package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
  134. package/server/dist/ws/turnEngine.js +23 -9
  135. package/server/dist/ws/updatePrimaryConfig.js +27 -8
  136. package/server/dist/ws/workflowHandlers.d.ts +4 -1
  137. package/server/dist/ws/workflowHandlers.js +3 -1
  138. package/server/package.json +1 -1
  139. package/server/src/atomicFile.ts +1 -2
  140. package/server/src/capabilities.ts +58 -17
  141. package/server/src/cliUpdateDecision.ts +5 -4
  142. package/server/src/clusterDirector.ts +1 -1
  143. package/server/src/clusterPeerOps.ts +11 -8
  144. package/server/src/clusterProgress.ts +1 -1
  145. package/server/src/clusterSkills.ts +79 -0
  146. package/server/src/clusterSnapshots.ts +1 -0
  147. package/server/src/clusterStore.ts +38 -0
  148. package/server/src/diagnostics/codeSkew.ts +1 -0
  149. package/server/src/eventLog.ts +73 -13
  150. package/server/src/historyLimits.ts +2 -0
  151. package/server/src/http/router.ts +1 -1
  152. package/server/src/index.ts +23 -0
  153. package/server/src/jsonlLines.ts +52 -0
  154. package/server/src/management/identity.ts +1 -0
  155. package/server/src/mcp/clusterMcpTools.ts +4 -4
  156. package/server/src/project/taskLedger.ts +7 -5
  157. package/server/src/providerConversation.ts +15 -0
  158. package/server/src/providers/claude-native/resumeSummary.ts +98 -50
  159. package/server/src/providers/claude-native/worker.ts +8 -4
  160. package/server/src/providers/claude.ts +2 -1
  161. package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
  162. package/server/src/providers/codex-appserver/catalog.ts +14 -1
  163. package/server/src/providers/codex.ts +2 -1
  164. package/server/src/providers/codexCodeMode.ts +4 -4
  165. package/server/src/providers/cursor/print.ts +2 -1
  166. package/server/src/providers/cursor/worker.ts +2 -1
  167. package/server/src/providers/llamacpp.ts +18 -7
  168. package/server/src/providers/llamacppRecovery.ts +2 -0
  169. package/server/src/providers/ollamaRecovery.ts +6 -6
  170. package/server/src/providers/ollamaResilience.ts +3 -3
  171. package/server/src/providers/ollamaTokens.ts +1 -1
  172. package/server/src/providers/ollamaToolSubset.ts +3 -3
  173. package/server/src/quota.ts +0 -50
  174. package/server/src/replacementHistory.ts +44 -0
  175. package/server/src/server/broadcast.ts +2 -0
  176. package/server/src/server/prompts.ts +8 -1
  177. package/server/src/sessionJsonl.ts +92 -32
  178. package/server/src/smartPickupAdapters.ts +17 -3
  179. package/server/src/transcriptWorker.ts +182 -0
  180. package/server/src/workflowStore.ts +21 -0
  181. package/server/src/ws/clusterHandlers.ts +43 -25
  182. package/server/src/ws/handoffHandlers.ts +5 -1
  183. package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
  184. package/server/src/ws/turnEngine.ts +20 -8
  185. package/server/src/ws/updatePrimaryConfig.ts +25 -6
  186. package/server/src/ws/workflowHandlers.ts +3 -1
  187. package/shared/dist/clusterCoordination.d.ts +2 -0
  188. package/shared/dist/clusterCoordination.js +5 -1
  189. package/shared/dist/protocol/clientMessages.d.ts +3 -2
  190. package/shared/dist/protocol/clusters.d.ts +13 -1
  191. package/shared/dist/protocol/index.d.ts +1 -0
  192. package/shared/dist/protocol/index.js +1 -0
  193. package/shared/dist/protocol/models.d.ts +4 -3
  194. package/shared/dist/protocol/models.js +26 -2
  195. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  196. package/shared/dist/protocol/tasks.d.ts +4 -0
  197. package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  198. package/shared/dist/protocol/transcriptWorker.js +2 -0
  199. package/shared/dist/runtimeVersions.d.ts +1 -0
  200. package/shared/dist/runtimeVersions.js +14 -0
  201. package/shared/src/clusterCoordination.ts +7 -1
  202. package/shared/src/protocol/clientMessages.ts +5 -0
  203. package/shared/src/protocol/clusters.ts +16 -1
  204. package/shared/src/protocol/index.ts +1 -0
  205. package/shared/src/protocol/models.ts +31 -5
  206. package/shared/src/protocol/serverMessages.ts +2 -0
  207. package/shared/src/protocol/settings.ts +2 -3
  208. package/shared/src/protocol/tasks.ts +4 -7
  209. package/shared/src/protocol/transcriptWorker.ts +49 -0
  210. package/shared/src/runtimeVersions.ts +14 -0
package/docs/CLIENT.md CHANGED
@@ -495,7 +495,7 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
495
495
  - **`ProvidersPopover`** - folds the former inline per-provider version-chip strip behind one `VERSIONS` trigger (also in Settings > CLI VERSIONS) (click-outside to close). The trigger carries a health dot (warning-color when any provider is outdated); the popover lists the chips. Chips are gated on `settings.enabledProviders` (disabled providers don't show) and un-installed CLIs, include an Ollama/llama.cpp row when reachable, and paint warning-color when the installed version is older than `capabilities.latestVersions.<p>`. Click on Claude/Codex runs the upstream installer via `POST /api/check-updates`; Ollama, Strata and Xolotl open `ProviderReleasesModal`, which receives keyboard focus on entry so Escape dismisses it. Closing returns focus to the opening chip when it remains mounted; closing VERSIONS returns focus to its button. llama.cpp opens GitHub releases. Strata remains visible while stopped using the prepared engine's `BUILD.json`; update comparison uses engine package metadata, separately from the 0.2 app/Terminal release tag. Xolotl displays checkout HEAD as a single-line `XOLOTL` row. Its modal uses recent commits when upstream has no tagged releases, displays matching HEADs as UP TO DATE without a self-comparison request, and compares distinct revisions for source changes. External GitHub links are explicit; these three rows never open a browser or install an update themselves. LOCAL STATUS labels follow the selected theme foreground while runtime state colors retain their meaning. The viewport-clamped panel is portaled below the entire wrapped header; it suppresses dot hover cards, closes on Escape/outside click, and returns focus. llama.cpp displays both semantic version and build/commit identities, using build numbers whenever latest build metadata is available; semantic versions are never substituted for missing builds. Self-contained - owns the update-check + modal state that used to live in `SystemHeader`.
496
496
  - **`WorkflowStatusChip`** - a provider-throttling warning shown only when quota state reports a throttle. Click for affected providers, known reset times, a per-provider Clear control and Codex/Claude Recheck usage. A row stays while its recheck is pending; a recheck that shows headroom clears the notice, keeping its row and result for four seconds; exhausted or unavailable usage leaves it. Focus moves back to the chip or layout control only when it was inside the panel and its control disappeared, never while the user is typing elsewhere. Clear restores future eligibility without re-arming a stopped goal run. Known resets expire without a page refresh; a one-second client tick hides expired rows after two seconds of clock grace. Context usage remains in the worker header.
497
497
  - **`NotificationCenter`** - the header bell (`◔ BELL`) with an unread badge. Dropdown shows the workbench-notice history + a per-category MUTE grid (checkbox -> `set_notification_mutes` via `onSetNotificationMutes`, threaded App -> SystemHeader -> `useWebSocket`). Backed by the standalone `notificationStore` (notices history + server-authoritative `muted` set + `lastSeenTs` unread marker). Always visible - even in I3 focus mode - since notices are the "agent finished / something broke" signal. Incoming `workbench_notice` also raises a transient toast via the existing top-right strip (`NotificationToasts` / `appStore.pushNotification`), not a second stack. See [`NOTIFICATIONS.md`](NOTIFICATIONS.md).
498
- - **`TabBar`** - horizontal job list; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question or idle member with mail wins, then a running turn, then New reply. A Needs you dot pulses and its label says it is still working when a turn also runs. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
498
+ - **`TabBar`** - horizontal job list; `TabScrollRow` maps vertical wheel motion to local horizontal scrolling, preserves native horizontal gestures and zoom, reveals active tabs and keyboard-focused controls without moving mouse targets during a click, and uses ResizeObserver plus scroll events to show accessible edge buttons while overflow remains; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question or idle member with mail wins, then a running turn, then New reply. A Needs you dot pulses and its label says it is still working when a turn also runs. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
499
499
  - **`WorkflowView`** - owns the splitter and renders `ChatPanel` + `RightPanel`. Splitter width persists per-workflow. Forwards send/cancel/review/handoff/spawn callbacks to the children. **Focus mode:** when `appStore.focusMode` is true the left (chat) column goes `flex: 1 1 100%` and the splitter + `RightPanel` are unmounted, giving the chat the full width; toggling off restores the persisted split fraction. The chat column `Panel` carries `className="no-frost"` so `html[data-frosted="1"].arco-panel.no-frost { backdrop-filter: none }` (more specific than the generic frosted-blur rule) keeps the transcript crisp over the shader - matching the cluster transcript, which is never a `Panel`.
500
500
  - **`NorthStarBar`** - inline-editable north-star chip in the composer status line (empty -> "set a north-star..."; soft-warn 1536 / cap 2048 bytes). Mirrors `job.config.goal`; edits go through `onUpdatePrimary({ goal })`.
501
501
  - **`ChatPanel`** - virtualized chat log. The render-side `displayMessages` memo merges sources and dedupes (see "Chat rendering pipeline" below).
@@ -578,13 +578,12 @@ Ordinary application JSON stays visible when it uses keys such as workers, state
578
578
 
579
579
  ```ts
580
580
  if (sessionChat.length === 0) {
581
- return job.messages
582
- .filter((m) => !(m.role === 'user' && m.queued))
583
- .sort((a, b) => (a.timestamp ?? 0) - (b.timestamp ?? 0));
581
+ return orderConversation(job.messages
582
+ .filter((m) => !(m.role === 'user' && m.queued)));
584
583
  }
585
584
  ```
586
585
 
587
- The sort handles out-of-order frame arrivals on the wire (long pauses between text chunks, reconnect replay).
586
+ `orderConversation` keeps rows with `eventSeq` in server order and places unsequenced legacy rows by timestamp. System notices and context dividers retain the server's sequence and `eventTs` on live delivery and replay, with receive time as the fallback when an event has none. A fresh page therefore places compaction notices and later context updates between the same conversation rows, at their saved times.
588
587
 
589
588
  **Merged path** - when `sessionChat` is populated (Claude with JSONL):
590
589
 
@@ -1123,7 +1122,7 @@ ClusterTab (App.tsx routes here when activeClusterId set)
1123
1122
 
1124
1123
  **One typing surface.** The cluster tab has no bottom broadcast composer. It opens with the director focused (the first member whose role starts with director or coordinator, else the first member) and lists the director first until the operator drags a card (a per-cluster flag in `localStorage`, `arco.clusterReordered.<id>`). The focused member's own message box is where the operator types. The empty composer's placeholder names the target: "Message the director, your main contact..." for the director, "Message <member name>..." for another member. Focus never changes on its own: the director card shows a quiet `NEW REPLY` mark when a finished reply has not been looked at, and a question toast from another member offers `GO TO DIRECTOR`. Helpers live in `components/clusterSurface.helpers.ts`.
1125
1124
 
1126
- **Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the attention badge and the plan line. `NeedsYouBadge` groups WAITING, BLOCKED, ASKED and TO ACCEPT with stopped groups first; only the first two use the theme warning colour. TO ACCEPT explicitly says acceptance is optional. With the narrow member list closed, one compact badge appears below its opener: `! <count>` counts only WAITING and BLOCKED, while optional-only ASKED/TO ACCEPT items show a plain muted number; opening the list moves the same summary into its header. Choosing a task reveals BOARD and closes the member list; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
1125
+ **Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the attention badge and the plan line. `NeedsYouBadge` groups WAITING, BLOCKED and ASKED with stopped groups first; only the first two use the theme warning colour. With the narrow member list closed, one compact badge appears below its opener: `! <count>` counts only WAITING and BLOCKED, while optional-only ASKED items show a plain muted number; opening the list moves the same summary into its header. Choosing a task reveals BOARD and closes the member list; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
1127
1126
 
1128
1127
  **NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. **NUDGE ALL WITH MAIL (n)** beside SEND NUDGE runs the same per-member send for every member whose `mailboxDepth` is above zero (`membersWithMail` in `client/src/utils/clusterNudge.ts`), idle or busy, without touching the checkboxes; busy members get the active reminder through steering. Disabled with the reason when n is 0. The command palette entry `Cluster: nudge all with mail` (shown while a cluster tab is active) asks the owning `ClusterTab` through `requestNudgeAll`. After SEND NUDGE or NUDGE ALL WITH MAIL, a toast reads `Nudged N members` and, when any recipients were busy, appends `(M busy: reminded to read mail when convenient)`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
1129
1128
 
@@ -1147,9 +1146,9 @@ ClusterTab (App.tsx routes here when activeClusterId set)
1147
1146
 
1148
1147
  **Per-member primitive bar.** `MemberPane.tsx` now renders `TerminalInput` with `onReview / onHandoff / onSpawn / onUpdatePrimary / onArmPlanMode` threaded App -> ClusterTab -> MemberPane. The header ContextMeter receives `onRecalibrate`; each handler closes over the member's `workflowId` at the App level (mirrors how `WorkflowView` keys primitives on `activeJob.id`). Behavior is unchanged from the standalone primitive bar - the cluster-aware shape (HANDOFF preserves cluster membership, SPAWN-into-this-cluster as a default option, REVIEW understands peer rows) is described in the cluster primitive reference and now shipped.
1149
1148
 
1150
- **`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
1149
+ **`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
1151
1150
 
1152
- **MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the six preset rows + `CLEAR` + `Custom...`. The Custom... branch falls back to the inline editor (same textarea + commit semantics as before). Click-outside + Esc close the popover; both listeners attach only while open (no global leak). On commit the row shows `ROLE <preset.label>` for a preset or truncated text for custom; the button flips to `EDIT`. `EDIT` reopens the popover with the matching preset highlighted via `presetForText` (returns undefined for free-form text -> Custom... is highlighted instead).
1151
+ **MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the eight preset rows (DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR, DESIGNER) + `CLEAR` + `Custom...`. ADVISOR gives a second opinion without changing files, assigning work or landing; DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. The Custom... branch falls back to the inline editor (same textarea + commit semantics as before). Click-outside + Esc close the popover; both listeners attach only while open (no global leak). On commit the row shows `ROLE <preset.label>` for a preset or truncated text for custom; the button flips to `EDIT`. `EDIT` reopens the popover with the matching preset highlighted via `presetForText` (returns undefined for free-form text -> Custom... is highlighted instead).
1153
1152
 
1154
1153
  **MEMBERS sub-tab - rename pencil.** Pencil affordance next to each member's name opens an inline editor. Commit fires `rename_workflow` via the new `renameWorkflow` helper on `useWebSocket`; empty commit clears the name (member reverts to its wfid 8-char prefix on the next `cluster_state` push). The 64-char cap is enforced server-side - see [`PROTOCOL.md_workflow`](PROTOCOL.md).
1155
1154
 
@@ -1242,6 +1241,8 @@ Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard
1242
1241
  - **Compact:** one-row member cards and fixed starting side widths of 250 px for the member grid and 320 px for the cluster right panel (360 px for a single tab). Cluster settings fold into a summary, the plan hint is one line, and optional composer tools move into MORE as needed.
1243
1242
  - **Narrow:** the member grid becomes a rail of initials and the right panel a strip of buttons. Each opens its panel over the chat. Esc, CLOSE or the backdrop closes a panel.
1244
1243
 
1244
+ The cluster panel root has `minHeight: 0` so it can shrink inside the Narrow slide-out's flex column. Its existing body owns vertical scrolling, including the full REPLACE form; the slide-out header stays outside that scroll area. The side panel and member list keep their own bounded scroll areas.
1245
+
1245
1246
  Dragged splitter positions are saved separately for each layout. Positions from the retired width band that no longer exists are ignored.
1246
1247
 
1247
1248
  ## Menus and popovers inside the window
package/docs/FEATURES.md CHANGED
@@ -14,10 +14,10 @@ controls. For installation and first session, see
14
14
  | Home | Start page for project locations, bookmarks, and open work | Greeting and status, start tiles, and Continue and Projects each limited to two rows of cards with Show all opening the rest (search and the location filter list every match); a Getting started card that counts any chat, session or cluster as started and can be hidden; stable project identity across relocation; cards can be pinned, archived, opened, or continued. See [Getting started](GETTING_STARTED.md) |
15
15
  | Waiting questions | Marks structured Codex and Claude Native questions until settled | The toast opens the asking worker; cluster cards and tabs show a question indicator. |
16
16
  | Workspace Outputs | Collects artifacts, generated-file events, and scoped exports | FILES tab **OUTPUTS** sub-tab for the active workflow or cluster. By default it shows what was made for you (generated media, top-level artifact documents, reports and exports); code edits and files in artifact subfolders sit under **All files**. **Save a copy** and **Move** can use an ordinary home folder or an approved project or media folder; on systems with POSIX permissions **Save a copy** writes an owner-only file; the result stays in the dialog; **Download** is a button. MOVE TO PROJECT reviews a copy or keeps the artifact private; large binaries are scanned for readable text only and listed as not fully scanned, as are files past the findings limit. Folder browsers and content dialogs open at sizes suited to their content, scale with the window, can be resized, and remember the chosen size (**Reset size** restores the default). Large artifact warnings offer KEEP or DISMISS; a kept artifact shows **Kept** with **UNKEEP**. See [Outputs](OUTPUTS.md) |
17
- | Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic. Smart modes need an evaluator on Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See [Getting started](GETTING_STARTED.md) and [Task ledger](TASK_LEDGER.md) |
18
- | One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a dot when not idle (hover for the status); Home Continue cards show a word: Working, Needs you (a question waits, or an idle cluster member has mail), New reply (a turn finished while you were elsewhere; cleared when you open the tab; not saved across reloads) or Idle |
17
+ | Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; eight role presets including **ADVISOR** (second opinion; no files, assignments or landing) and **DESIGNER** (UI files only); work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic, with **PAUSE** beside TURN OFF, **RESUME**, and **RESET BUDGET** as a separate Rule-based action. Smart modes need an evaluator on Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See [Getting started](GETTING_STARTED.md) and [Task ledger](TASK_LEDGER.md) |
18
+ | One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a colored status dot when not idle (hover for the status). **Needs you** (warning colour) means a question waits or an idle cluster member has mail; the dot pulses while a turn is still running and is solid only when nothing is running. Home Continue cards show a word: Working, Needs you, New reply (a turn finished while you were elsewhere; cleared when you open the tab; not saved across reloads) or Idle |
19
19
  | Waiting mail on member cards | Shows undelivered messages per member | The member card's mail mark shows the count, delivered at the member's next turn; muted while the member is busy; highlighted when it is idle with mail, and clicking it nudges that member, after which the card reads Nudged (and the composer NUDGE button reads NUDGED n) until the member starts its turn or two minutes pass. No sounds or pop-ups |
20
- | Cluster attention and board accept | Separates stopped work from optional questions and acceptance | The badge names **WAITING**, **BLOCKED**, **ASKED** and **TO ACCEPT**; only the stopped kinds use warning colour and count in the compact warning mark. Signed-off acceptance is optional. REVIEW drawers open on the verdict and existing ACCEPT/RECHECK actions; Edit is below and closed by default for REVIEW only. On the Board, **ACCEPT** replaces DONE on review cards; **ACCEPT ALL MET** accepts met sign-offs; done tasks show by default (**SHOW DONE** hides them, and the choice is remembered) and the header count matches the tasks drawn; an optional release label on a task (RELEASE in the card drawer) adds a release filter and a ready-to-release summary (in, accepted, left); review tasks older than seven days fold into an older row. Optional Settings > Agents and clusters **Board auto-done** marks met tasks done automatically. See [Task ledger](TASK_LEDGER.md) and [Settings](SETTINGS.md) |
20
+ | Cluster attention and board accept | Shows waiting questions and blocked work | The badge names **WAITING**, **BLOCKED** and **ASKED**. A new director met sign-off closes its task by default; turn off **Board auto-done** in Settings > Agents and clusters to accept it yourself. Existing review tasks remain for **ACCEPT** or **ACCEPT ALL MET**. See [Task ledger](TASK_LEDGER.md) and [Settings](SETTINGS.md) |
21
21
  | Utility agent | One operator-chosen provider and model for short side jobs | Settings > Agents and clusters (also offered on the last Welcome screen). Accepts only Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. LM Studio, llama.cpp, Strata, and DeepSeek require the chosen model to be loaded; these requests never load or switch models. Replies that are cut off or exceed the limit are reported instead of used. Never chosen silently; **TEST** checks it; **USE UTILITY AGENT** can fill it into Smart AUTO-PICKUP, Research, document edit, and handoff summarizer pickers without changing saved choices. See [Settings](SETTINGS.md#utility-agent) |
22
22
  | BRIEF | Short synopsis from visible activity facts | On each member card and in the composer toolbar; in a cluster tab the composer's BRIEF offers THIS WORKER or WHOLE CLUSTER. Uses the utility agent; lists the facts; sends nothing to any worker. |
23
23
  | CATCH ME UP | Summary since the last visit or operator message | On a workflow or cluster; the utility agent writes the synopsis for the covered time range. Empty ranges offer SINCE LAST TURN, LAST HOUR and TODAY without a model call. A failed summary stays in the dialog, not in chat. Unloaded or Incognito cluster members are skipped with a note. |
@@ -31,6 +31,7 @@ controls. For installation and first session, see
31
31
  | Storage report | Shows where disk space goes; clean-up only on request | In a single-worker, chat or cluster tab, **MEMORY > USAGE** in the right panel: **MEASURE STORAGE** for the project and **MEASURE ARCO FOLDER** for Arco's own folder put every byte under one heading (conversation logs, artifacts, worktrees, caches, voice models and more); **MEASURE AGAIN** refreshes. A cluster tab covers every member's conversations in the shared project folder. From anywhere, the ARTIFACTS window's **STORAGE** lens also offers **MEASURE AGAIN**. Long conversation logs are sealed into compressed pieces automatically, with nothing deleted; `arco storage unseal` writes plain logs back before installing a release older than 0.1.4 (not needed when going back to 0.1.4; see [Going back to 0.1.4](OPERATIONS.md#going-back-to-014)). **STORAGE** lists every project and Arco's folder largest first, with **KEEP** and **UNKEEP** for a whole conversation, **COMPRESS OLD LOGS**, **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** (each confirmed; kept items and plans stay), auto-archive (off by default) and a disk budget notice (100 GiB). See [Client](CLIENT.md#storage-report) and [Storage plan](STORAGE_PLAN.md) |
32
32
  | Local runtime capacity | Limits concurrent local cluster members | Connections `localClusterCapacity` for Ollama or llama.cpp (default 1 each). See [Settings](SETTINGS.md) |
33
33
  | Version box and update notices | Always-visible version and optional GitHub release checks | Top bar, left of the power button: running version, accent state when an update is available, opens the update dialog; toast (**OPEN RELEASE** / **DISMISS**); Settings > Advanced Arco row with **CHECK NOW**. Packaged services offer **UPDATE AND RESTART**. See [Updating Arco](OPERATIONS.md#updating-arco). To leave 0.1.5 for 0.1.4, see [Going back to 0.1.4](OPERATIONS.md#going-back-to-014). |
34
+ | Provider CLI updates | Update installed provider tools from PROVIDERS | Open **PROVIDERS** for version chips. Claude uses `claude update`. Codex follows its installation (`codex update` or a matching npm global package). Click **CURSOR** to run `cursor-agent update` and recheck; **CURSOR CHANGELOG** opens the CLI notes separately; the update flag reads the dated installer version when comparable. llama.cpp flags an older published build number without installing or loading a model. See [Providers](PROVIDERS.md) |
34
35
  | Application shortcuts and `arco open` | Per-user desktop shortcut and dedicated app window | `arco setup` can install the shortcut; `arco open` / `arco open --tab` / `arco open --browser <name-or-path>`; Settings > Advanced > App window browser; `arco shortcuts add|remove`. See [Service mode](SERVICE_MODE.md) |
35
36
  | Default appearance | New-home theme and typography defaults | Phosphor Electric Blue and Victor Mono font pack at 100% interface scale; a saved theme or font pack is left alone. See [Settings](SETTINGS.md) |
36
37
 
@@ -57,6 +58,8 @@ controls. For installation and first session, see
57
58
  | Goal run | Arms a per-tab continuation loop toward the north star | `/goal run <n>` or CONFIG; one deterministic continuation turn after each settled turn, up to `n` iterations (default 10, max 500). Stops on budget spent, turn error, provider throttle, context >=92%, or cleared north star; **RUN n/N** chip is one-click stop. Continues because budget remains, never because a model judged work unfinished. Not persisted across a server restart. See [Gotchas: goal run](GOTCHAS.md#goal-run-north-star-auto-continue) |
58
59
  | Ultracode mode (Claude) | Sticky per-tab Claude CLI orchestration mode | **ULTRACODE** composer pill pins the tab to Claude CLI at `xhigh` effort with multi-agent **Workflow** orchestration armed so one turn can fan out and coordinate subagents; live **FLEET** panel shows running/done subagent count; per-tab web-lookup budget bounds research spend. Operator-armed and sticky until toggled off |
59
60
  | One-click handoff | Fresh session in the same tab seeded from a structured handoff | Choose **HANDOFF** for an unrelated task, a worker on a wrong track, a provider or model switch, or a provider without compaction. Compaction is lossy but has no fixed limit; plans, board, goal, artifacts and Git remain outside the conversation. **QUICK** builds a deterministic seed; **ORIGINAL WORKER** writes a reflection; **FRESH SUMMARIZER** uses a separate worker. Seed messages collapse to a one-line `HANDOFF SEED / click to expand` pill |
61
+ | Copy turns to a new worker | Start a fresh Agent tab from exact recent text | TRANSCRIPT > NEW WORKER, 1-50 turns with a typed preface, any chosen folder/provider/model, server-owned preview, 32 KiB seed cap, tool/attachment receipts, no inherited pins or provider conversation |
62
+ | REPLACE member history | Seed a replacement from none, recent, or full history | MEMBERS > REPLACE: **NO HISTORY** (default), **RECENT HISTORY** (last 10 whole turns by default, 1 to 50, within 128 KiB), or **FULL HISTORY** (fits 512 KiB or copies the newest whole turns that fit); preview states the count before REPLACE; a partial copy adds one plain line on the new tab. See the in-app cluster manual |
60
63
  | Spawn from here | Fork the conversation to a new tab | The agent self-reflects with session context and Arco saves its reply as a handoff; the new tab opens with that document and an optional `new direction:`; the original tab continues in parallel |
61
64
 
62
65
  ## Operator actions: review, compare, research, and plan
@@ -75,7 +78,7 @@ controls. For installation and first session, see
75
78
  | RUN AS picker | Override provider/model/effort for GIT / DOCS one-offs | Unchanged: dispatches in-tab; changed: new tab opens with the picked config and runs there |
76
79
  | Architecture review | Built-in operator-only skill that finds code that is hard to change | SKILLS > BUILT-IN > **RUN**: Arco measures largest, most-changed, untested and export-heavy files plus recorded decisions; the agent writes a report of candidates to the artifacts and changes no code. OUTPUTS > **CANDIDATES** offers **ADD TO PLAN** and **RECORD DECISION**; **EDITABLE COPY** saves your own version. Reviews and the director check the shape of a change (advisory). See [Architecture review](ARCHITECTURE_REVIEW.md) |
77
80
  | Proportionate testing | Arco-owned model-invoked skill for choosing how much to test | Settings > SKILLS > BUILT-IN lists `proportionate-testing` with MODEL. It asks for one test per real fault, one happy-path browser check per journey, about ten minutes for the whole check and five for browsers, and operator approval before new suites, gates, tooling or CI checks. `tdd` describes how to write one test; the operator's instructions take priority |
78
- | Skills | Reusable instructions for agents, project or global | Settings > SKILLS: NEW, EDIT, **IMPORT** (public GitHub link, folder or zip, every file and the security check shown first), **UPDATE** with a per-file diff, **TURN OFF**, **MOVE TO GLOBAL/PROJECT**, **DUPLICATE**, **SHARE WITH REPOSITORY** (an exception in `.arco/.gitignore`); rows show extra files, source and missing referenced skills. Composer SKILLS: APPLY ONCE, PIN TO TAB, IMPORT, built-in skills. See [Settings](SETTINGS.md) |
81
+ | Skills | Reusable instructions for agents, project or global | Settings > SKILLS: NEW, EDIT, **IMPORT** (public GitHub link, folder or zip, every file and the security check shown first), **UPDATE** with a per-file diff, **TURN OFF**, **MOVE TO GLOBAL/PROJECT**, **DUPLICATE**, **SHARE WITH REPOSITORY** (an exception in `.arco/.gitignore`); rows show extra files, source and missing referenced skills. Composer SKILLS: APPLY ONCE, PIN TO TAB, IMPORT, built-in skills. **PIN TO CLUSTER** pins a skill to every member or one exact saved role; the cluster **SKILLS** button beside EFFICIENCY lists and unpins them; new and replaced members inherit cluster pins; tab, cluster and role pins share one limit of 12 unique skills and 64 KiB of text. See [Settings](SETTINGS.md) |
79
82
 
80
83
  ## Memory, knowledge, and scaffolding
81
84
 
@@ -134,7 +137,7 @@ controls. For installation and first session, see
134
137
  | --- | --- | --- |
135
138
  | API resilience | Catch and retry Claude CLI overload envelopes | `overloaded_error` and `{"type":"error"}` surfaced as a system notice; retried with 15s/30s/60s backoff up to 3 attempts (same session id, idempotent) |
136
139
  | Concurrent-writer guard | Detect external native CLI writes to an open session | Non-`sdk-cli` writes fire a chat warning; Arco refuses new turns for 60s rather than corrupt conversation state. Recover via Handoff |
137
- | Long-session friendly | Tail-first chat hydration | Last 200 entries first; **LOAD EARLIER MESSAGES** pill; scroll position preserved across paging. Links open in a new tab so a clicked URL never navigates Arco away |
140
+ | Long-session friendly | Tail-first chat hydration and large-history bounds | Last 200 entries first; **LOAD EARLIER MESSAGES** pill; scroll position preserved across paging. Links open in a new tab so a clicked URL never navigates Arco away. Claude CLI session loading handles histories around 2 GB. Claude Native rebuilds at most 1 GiB of uncached history in one parse; a refused or failed rebuild adds one notice and keeps earlier messages visible in the tab |
138
141
  | Safety rails on worker processes | Bound runaway worker output and memory | 50 MB output cap per turn (`ARCO_MAX_WORKER_OUTPUT_BYTES`); 32 GB tree-RSS auto-kill (`ARCO_RSS_KILL_BYTES`); process-tree cleanup on cancel |
139
142
  | Review safe-mode gate (Claude Native) | Pause sensitive tool calls for operator review | Operator-armed per-tab gate (CONFIG -> REVIEW SAFE-MODE, default off) on `Bash`, `KillShell`, writes outside the project, `git push` / `reset --hard` / `clean -fd`; editable proposal card for review, edit-then-approve, or rejection. Durable across server restart; standing "approve all like this" with live re-evaluation against a non-lossy signature |
140
143
  | Project-trust gate | Suppress untrusted project instruction files until trusted | Freshly opened or cloned repo `CLAUDE.md`, project skills (`.arco/skills/`), and `.arco/settings.json` suppressed until trusted. Composer shows UNTRUSTED PROJECT with **TRUST** / **NEVER**; decision in `~/.arco/trust.json`, reversible |
@@ -42,7 +42,7 @@ offers Genesis. A new user sees a **Getting started** card until a provider,
42
42
  project folder, and first conversation (any chat, session or cluster) are available; **HIDE** keeps the card hidden on this browser. Without browser storage, Home still works and HIDE applies until the Home view reloads.
43
43
 
44
44
  **Continue** lists open work, with questions waiting for an answer first and the
45
- current step for running work. Each Continue card shows a status word: Working, Needs you, New reply (a turn finished while you were elsewhere) or Idle. Tabs show a status dot; hover over a tab for its status. Idle has no dot. **Resume** returns to a tab. Two rows show at
45
+ current step for running work. Each Continue card shows a status word: Working, Needs you, New reply (a turn finished while you were elsewhere) or Idle. Tabs show a status dot; hover over a tab for its status. Needs you stays the attention colour and pulses while a turn is still running; the dot is solid only when nothing is running. Idle has no dot. **Resume** returns to a tab. Two rows show at
46
46
  first; **Show all** opens the rest in a bounded scrolling area.
47
47
 
48
48
  The project grid lists available folders alphabetically in two rows; **Show all** opens the rest in a bounded scrolling area, and a search shows every match. Filter it by
@@ -143,8 +143,9 @@ See [Updating Arco](OPERATIONS.md#updating-arco). To clear every older copy
143
143
  before a fresh install, see
144
144
  [Before a fresh install: remove older copies](OPERATIONS.md#before-a-fresh-install-remove-older-copies).
145
145
 
146
- `arco setup` asks before installing the per-user service, starts it, and opens
147
- the local URL. Use `arco start` for a foreground run. Use
146
+ `arco setup` prints the package version it runs, then asks before installing the
147
+ per-user service, starts it, and opens the local URL. Use `arco start` for a
148
+ foreground run. Use
148
149
  `arco service install|uninstall|start|stop|restart|status|logs|refresh` to manage the
149
150
  service directly.
150
151
 
package/docs/GOTCHAS.md CHANGED
@@ -446,7 +446,7 @@ The N3 ops (`framegrab` / `gif` / `geometry` / `speed` / `gain` / `spectrogram`
446
446
 
447
447
  - **NEVER cool the only/last healthy backend (the load-bearing guard).** `reportFailure` in `ollamaResilience.ts` skips the cooldown when `healthyServingCount <= 1` and emits a `cooldown_skip_last` event instead. Cooling your sole remaining host is self-sabotage: the operator then sees "no backend available" when the host was about to recover (litellm's SINGLE_DEPLOYMENT rule). We keep using it and let the per-request error surface. The caller MUST count healthy serving backends *including* the just-failed host (the guard asks "would cooling this strand the operator?") - `ollama.ts` counts with `isBackendCooled` over the serving set. Don't "simplify" the guard away or move the count to *after* recording the failure.
448
448
  - **400 (context overflow) must NOT cool the backend.** `classifyOllamaError` returns `{retryable:false, cooldown:false}` for any 4xx except 429. A 400 is the transcript's fault, not the host's - context-window fallback owns that path. Cooling a host on a 400 would penalize a perfectly healthy daemon for an oversized prompt.
449
- - **Cooldown TTLs are SHORT (12s remote / 6s local), not minutes.** odysseus's hard-won lesson: a single transient blip used to trip a 60s lockout and the operator thought the model died. Lazy recovery - `isBackendCooled` is a pure query; expired entries are dropped on the next `selectBackend` pass. There is **no background health-prober** (rejected as overkill for 1-3 hosts); don't add one.
449
+ - **Cooldown TTLs are SHORT (12s remote / 6s local), not minutes.** A single transient blip must not impose a 60s lockout after the backend has recovered. Lazy recovery - `isBackendCooled` is a pure query; expired entries are dropped on the next `selectBackend` pass. There is **no background health-prober** (rejected as overkill for 1-3 hosts); don't add one.
450
450
  - **Zero backoff is the failover speed.** `backoffMs(hasHealthyPeer=true, …) === 0`. Jittered exponential applies ONLY when down to the last/only host. If you see slow failover, check that a healthy peer is actually being detected (serves-model + not-cooled + not-attempted), not that backoff is misconfigured.
451
451
  - **Connect timeout is a SECOND AbortController, cleared once headers arrive.** `streamOneTurn` wires a connect-timeout controller (default 3s) and clears the timer the moment `fetch` resolves - decode stays unbounded (a real model turn can take minutes). The operator-abort bridge stays wired through streaming so a cancel still aborts the body read. The timeout abort carries `CONNECT_TIMEOUT_MARKER`; classification keys off it to tell a dead-host timeout (retryable) from an operator cancel (bail).
452
452
  - **Mid-stream drop after bytes were emitted does NOT fail over.** Failing over to a peer after partial output already streamed would double-emit a fresh response. `streamOneTurn` stamps `_emittedBytes` on the error; `streamWithFailover` treats a mid-stream-with-output error as terminal. Pre-byte connection drops do fail over.
@@ -598,6 +598,7 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
598
598
 
599
599
  ## Cross-platform
600
600
 
601
+ - **Compare existing file and folder paths through `realpath` in tests.** macOS can expose temporary paths through `/var` while Arco stores their resolved `/private/var` paths. Resolve both sides for identity checks. When the test checks that Arco stores a resolved path, compare the stored value directly with the resolved expected path.
601
602
  - **Arco runs on Linux (primary dev machine) and macOS (secondary).** Any server-side shell-out or spawn needs to work on both. GNU-only flags, Linux-only binaries, and `/proc/` reads without a fallback are the usual traps. Concrete rules:
602
603
  - **No `setsid` binary.** Not installed by default on macOS. Node's `spawn(..., { detached: true })` already calls `setsid(2)` on POSIX and gives you the same new-session / no-controlling-terminal behavior for free. `nohup` is also redundant once `stdio: 'ignore'` + detach is in place. A restart path that `spawn('setsid', ...)`'d would silently `ENOENT` on Darwin.
603
604
  - **Shell scripts target bash 3.2+.** macOS ships bash 3.2 by default. `set -uo pipefail`, POSIX traps, `||` short-circuits are all fine. Bash-4 features like associative arrays (`declare -A`), `[[ =~ ]]` with `BASH_REMATCH` quirks, `readarray`, or `${var,,}` lowercase-expansion do not round-trip.
@@ -63,8 +63,9 @@ See [Updating Arco](#updating-arco). To clear every older copy before a fresh
63
63
  install, see
64
64
  [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
65
65
 
66
- `arco setup` asks before installing the service, starts it, and opens the local
67
- URL. Use `arco service install|uninstall|start|stop|restart|status|logs|refresh` for
66
+ `arco setup` prints the package version it runs, then asks before installing the
67
+ service, starts it, and opens the local URL. Use
68
+ `arco service install|uninstall|start|stop|restart|status|logs|refresh` for
68
69
  direct service control, or `arco start` for a foreground run. Service settings
69
70
  come from `ARCO_HOME`, `ARCO_PORT`, `ARCO_HOST`, and the other supported
70
71
  environment values saved at first install. Existing unowned or modified service
@@ -147,8 +148,15 @@ Studio Build Tools on Windows). Provider CLIs (`claude`, `codex`,
147
148
 
148
149
  If a global install reports `EACCES` on Linux or macOS, use nvm or a user-owned
149
150
  npm prefix. On Windows, use `arco.cmd` if PowerShell execution policy blocks the
150
- shim. If `arco doctor` reports missing or incompatible native modules, install
151
- the platform build tools and run `arco setup --repair-native`.
151
+ shim. Only run `arco setup --repair-native` when Arco reports that a native
152
+ part will not load, including a missing or incompatible module in `arco doctor`.
153
+ The repair requires a working platform build toolchain.
154
+
155
+ A failed repair names the compile or link step when its output identifies it
156
+ and repeats the last decisive error line. Build output stays visible above it.
157
+ Build tools may be missing, out of date or broken; installing them again is
158
+ not always the answer. The installed native parts stay unchanged and keep
159
+ working. Resolve the reported toolchain error before retrying a needed repair.
152
160
 
153
161
  **`NODE_ENV=production` drops dev dependencies.** With `NODE_ENV=production` exported in the shell, `npm ci` and `npm install` skip `devDependencies` (TypeScript, Vite, tsx), so `npm run build` fails with missing type definitions. Install with `env -u NODE_ENV npm ci --include=dev` (POSIX) or `npm ci --include=dev` after clearing the variable (PowerShell: `Remove-Item Env:NODE_ENV`).
154
162
 
@@ -898,6 +906,8 @@ The shape regression is pinned by
898
906
 
899
907
  ### Reproducing the live unit on a clean install
900
908
 
909
+ Installed packages may have no Git checkout. Startup revision probes then keep the revision unknown and the code-skew diagnostic skipped, without printing a fatal Git line. This does not prevent the server from starting.
910
+
901
911
  Deployment caveat: `core.code-skew` compares startup Git HEAD with current HEAD,
902
912
  not asset contents. Committing an already-deployed build or documentation alone
903
913
  can warn without a pending runtime fix. For a verified **client-only** update,
@@ -162,6 +162,9 @@ Since 0.1.4 a live `events.jsonl` that passes 16 MiB (`ARCO_EVENT_SEGMENT_BYTES`
162
162
  - Effective sequence numbers: releases before 0.1.5 wrote a checkpoint record with its checkpoint's number, so a log can repeat a number (each checkpoint) or go back to an older one (REVERT TO HERE), and a restart right after such a record continued from it, reusing numbers. Nothing on disk is rewritten. The `workflowStore` readers (`replayEvents`, `replayEventsWithTs`, `replayTailEvents`, `scanEventsOfTypes`, `readEventsPageBefore`) give each record, in file order, the number max(own, previous + 1), and set `parentEventSeq` to the previous one where the number changed; a log in order keeps its numbers. When numbers drift past records the log already held, the tail and from-seq readers read the whole history so every reader agrees. On first use (`initWorkflowStore`) the whole history is scanned once, and new records continue after the last effective number.
163
163
  - An unreadable segment is reported and skipped by readers; the history shows a gap unless the live file still holds those records, and nothing is deleted. This includes a segment removed or replaced between listing and opening it (ARCHIVE or DELETE running while a reader reads the history): the open error goes to the reader, not to the process. `arco storage unseal` stops for that conversation and keeps its segments.
164
164
  - A log whose `log-format.json` names a newer format is not written to; events still reach open tabs.
165
+ - Asynchronous record readers use 64 KiB input chunks for the live file and stream Brotli decompression for sealed files. Only the current record is assembled before decoding, preserving UTF-8 split across chunks, CRLF and an unfinished last line. Records above 16 MiB are still read in full, with one warning per source file per process; this is not a refusal or a fixed memory cap on unusually large records. Reading does not rewrite, move or convert any log. Full-history callers still determine how many decoded records they retain.
166
+ - Native resume reads a byte-addressed source through `openLogByteSource`: raw bytes for plain logs, or newline-normalized, overlap-filtered bytes for sealed history. Size counting and range reads stream; no whole-history string or sealed-history buffer is created. The existing summary boundary, delivery projection, branch walk, max-sequence cutoff and cache format are unchanged. Replay still retains the event arrays required by those algorithms, so this is not a fixed memory bound for reconstruction.
167
+ - Native reconstruction refuses an uncached range above 1 GiB (1,073,741,824 bytes) before parsing it into an event array. This covers whole-log exact/rewind reconstruction and the older prefix when no valid summary cache exists. `NativeReconstructionLimitError` reaches the existing one-line conversation notice; the agent continues without rebuilt context and the earlier transcript remains. A valid summary cache and small tail can still resume a larger history without parsing its old prefix. This is a fixed product guard, not a setting, heap flag or projection change. In cold synthetic runs with the ordinary 4,288 MiB Node heap, a near-768 MiB history used 2,844,948 KiB peak RSS and about 2,430 MiB sampled heap; a near-1 GiB history used 3,691,200 KiB peak RSS and about 3,035 MiB heap, leaving about 1,253 MiB (29 percent) of measured heap margin. The bound follows the larger completed run; retained event shapes and other server activity still affect memory. Claude CLI loading completed the separate 2 GB fixture and does not use this Native reconstruction guard.
165
168
  - Every reader goes through `eventLog.ts`: `readLogLines`, `readLogText`, `readLogTail`, `readLogHeadSync`, `readLogTailSync`. Do not open `events.jsonl` directly in new code.
166
169
  - Closed conversations are not written to, so they are sealed only on request: COMPRESS OLD LOGS (`POST /api/storage/compress-logs`) seals a project's closed conversations whose live log is at least 1 MiB (`workflowStore.sealWorkflowLogNow`).
167
170
  - `arco storage unseal` (`npm run storage:unseal` in a checkout) writes each sealed history back to one plain `events.jsonl`, checks it, then removes the segments and the marker. It leaves out only the live copies of sealed records (the same rule as the readers) and keeps every other live record in its place, older numbers included; the server's `unsealLog` and `scripts/packaging/storage.mjs` follow the same rule and are tested on the same fixtures. It refuses while Arco is running and skips a linked `.arco`, `.arco/workflows` or conversation folder.
@@ -283,6 +286,8 @@ Missing metadata is recreated from the authoritative workflow configuration at c
283
286
 
284
287
  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
288
 
289
+ A missing live log can mean that a workflow has no saved turns. A live log path that opens but is not a regular file counts as a reconstruction failure even if its reported size is zero. A Native reconstruction failure adds one persisted `system_notice` through the existing conversation-notice path: "Earlier context could not be rebuilt for this conversation, so the agent continues without it. Earlier messages remain in this tab." For a refused oversized parse, the same line names the 1024 MiB reconstruction limit. It does not delete or rewrite history. A CLI initial-history read failure similarly says that the saved conversation is intact and future messages will appear when readable. These notices describe different failures from a lost external conversation id; they do not claim that the provider lost its saved conversation.
290
+
286
291
  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.
287
292
 
288
293
  ```ts
@@ -415,7 +420,7 @@ Why each part:
415
420
  - **`disableRssGuard`** - opt-out for the 32 GB tree-RSS kill. Set only for workflows running legitimate high-memory workloads (kernel compiles, big LTO links). Honored only for primary turns; reviewers and handoff reflections always run under the global cap.
416
421
  - **`preview`** - `{ port, framework?, manual }`. Currently bound dev-server port for the Preview tab. `manual: true` means the operator typed the port and hit BIND; `manual: false` means `previewAutoDetect` resolved it. The auto-detector never overwrites a `manual: true` entry. On rehydrate the server broadcasts `preview_set` with `freshlyBound: false` so the UI restores the iframe without auto-flipping the active tab.
417
422
  - **`previewHistory`** - most-recent-first list of bound dev-server ports for this workflow (capped at 5). Append on every successful `set_preview_port`; consecutive same-port events dedupe to a timestamp refresh. Replayed via `preview_history` on rehydrate alongside `preview_set` so reconnect doesn't lose the chain.
418
- - **`claudeTransport`** - `'cli' | 'native' | undefined`. Per-tab override of the global `claude.transport` setting. Persisted so tab reload picks up the choice without consulting cascade. **Meta-reconcile is gated on `claudeTransport !== 'native'`** - Native sessions write no CLI rollout, so the dispatcher must not pin a phantom CLI session UUID on `wf.primarySessionId` (it would auto-degrade an original-worker Spawn into a `claude --resume <phantom>` against a missing rollout, killing the handoff silently). **Session storage note:** the Claude Native transport writes to the same `~/.claude/projects/<cwd-hash>/<sessionId>.jsonl` path that the CLI transport uses - it's Claude Code's own session file, written by the SDK's built-in JSONL logger. Arco reads this file via the session watcher (`chokidar`) to drive `session_entry` events regardless of transport.
423
+ - **`claudeTransport`** - `'cli' | 'native' | undefined`. Per-tab override of the global `claude.transport` setting. Persisted so tab reload picks up the choice without consulting cascade. **Meta-reconcile is gated on `claudeTransport !== 'native'`** - Native sessions write no CLI rollout, so the dispatcher must not pin a phantom CLI session UUID on `wf.primarySessionId` (it would auto-degrade an original-worker Spawn into a `claude --resume <phantom>` against a missing rollout, killing the handoff silently). **Session storage note:** the CLI writes `~/.claude/projects/<cwd-hash>/<sessionId>.jsonl` (or the configured Claude home). Arco's `sessionJsonl.ts` watcher reads only bytes after its last complete newline, using 64 KiB chunks and leaving a partial record for the next notification. It watches the parent directory so replacing the file does not strand the watcher on the old inode; a changed file identity or a size below the saved offset resets reading to byte zero. The watcher never writes the session file. Native history is rebuilt from Arco's event log and does not start this CLI watcher. Initial CLI loading uses the same 64 KiB chunks, decodes one complete LF-terminated record at a time, and returns the complete byte boundary for the watcher. It still retains the entries required by the existing history API; paging is unchanged. A missing file is empty history; other read failures produce one session-history notice. The watcher is still installed and anchors at the first readable complete boundary, preventing historical terminal rows from becoming false concurrent-session warnings.
419
424
  - **`codexTransport`** - `'exec' | 'appserver' | undefined`. Per-tab override of the global `codex.transport` setting; same persistence semantics.
420
425
  - **`claudeNativeCompact`** / **`autoHandoff`** - per-tab toggles for Native server-side compaction and Arco-managed handoff. See PROVIDERS.md Native management.
421
426
  - **Legacy `efficiencyAutoCompact`** - read only for migration: conservative becomes On at 80%, aggressive becomes On at 70%, and off leaves Provider. A saved explicit policy wins.
@@ -797,7 +802,7 @@ Global shape (representative subset):
797
802
  ollama?: { baseUrl?, backends?, modelHostMap?,... }, lmstudio?: { baseUrl? },
798
803
  fallbackChains?, autoHandoffDefaults?, handoffSummarizer?, defaultProjectTrust?, mediaUnconfined?, mediaAllowedRoots?, pinnedServices?, tabOrder?,
799
804
  onboardingComplete?, providerConfirmed?, // first-run setup finished or skipped; a provider check succeeded
800
- autoMarkDoneOnMetSignoff?, // Settings > Agents and clusters > Board auto-done
805
+ autoMarkDoneOnMetSignoff?, // Board auto-done; absent means on
801
806
  //...
802
807
  }
803
808
  ```
@@ -16,6 +16,7 @@ This doc covers each one end-to-end: trigger, server flow, events emitted, clien
16
16
  | [1. Primary turn (the seed worker)](#1-primary-turn-the-seed-worker) |
17
17
  | [2. Review](#2-review) |
18
18
  | [3. Handoff](#3-handoff) |
19
+ | [Copy turns to a new worker](#copy-turns-to-a-new-worker) |
19
20
  | [4. Spawn from here](#4-spawn-from-here) |
20
21
  | [5. DOCS and GIT one-off prompts](#5-docs-and-git-one-off-prompts) |
21
22
  | [6. HISTORY-tab actions](#6-history-tab-actions) |
@@ -562,6 +563,47 @@ sequenceDiagram
562
563
 
563
564
  ---
564
565
 
566
+ ## Copy turns to a new worker
567
+
568
+ TRANSCRIPT in any Agent composer can open a fresh worker with exact copied
569
+ turns. A standalone source opens the new-worker form; a cluster source keeps
570
+ its existing peer-delivery form and offers NEW WORKER. Existing peer sends and
571
+ Spawn are unchanged: Spawn still uses an agent-written handoff in the same cwd.
572
+
573
+ Choose the last 1-50 operator turns (default 3), an optional preface, working
574
+ directory, provider/model/effort/account and permission setting. Permission
575
+ prompts start on. The source's raw operator and visible primary text retain
576
+ whitespace and ordering. Contiguous output deltas are joined before framing;
577
+ literal USER/AGENT lines remain quoted JSON data. Thinking, injected project
578
+ instructions, mail and transport metadata are excluded. Tools become one-line
579
+ name/status receipts with output omitted; attachment receipts name their source
580
+ location/type without copying files. Relative paths refer to the source project.
581
+
582
+ PREVIEW reads the server's stored history, including records missing from the
583
+ browser tail. The running partial turn is omitted unless selected. The preface
584
+ is at most 4096 UTF-8 bytes and the complete seed at most 32768 bytes; an
585
+ oversized selection is refused, never clipped. Rewound sources follow the
586
+ current branch; missing ancestry cannot produce an exact preview. Each preview
587
+ binds a fixed source cutoff, selected content and structural history marker.
588
+ Ordinary later appends are outside that snapshot. Rewind or changed content
589
+ requires a refreshed preview. Source and destination validation finishes before
590
+ creating the tab; errors retain the form and preface.
591
+
592
+ SEND TO NEW WORKER creates a normal standalone Agent workflow and dispatches
593
+ that accepted seed once as its first user message. The preface comes before the
594
+ source label and quoted records. Sign-in files, source pins, cluster membership,
595
+ goals and provider session ids are not copied. Destination settings apply as
596
+ for a normal new tab. Repeated delivery of the same accepted preview returns
597
+ the existing new workflow rather than creating or seeding another one. The
598
+ source continues independently. The copied seed is saved in the new project's
599
+ normal conversation state.
600
+
601
+ The implementation uses `transcriptWorker.ts`, browser-only handlers in
602
+ `ws/transcriptWorkerHandlers.ts`, the normal workflow creator/turn engine and a
603
+ streaming view of workflow events. It retains a limited candidate ring; rewind
604
+ ancestry and tool linkage use metadata rather than old payload arrays. It does
605
+ not change Native reconstruction, old replay protocols or history paging.
606
+
565
607
  ## 4. Spawn from here
566
608
 
567
609
  The child keeps its own admission through preparation and pre-warm. Cancelling the child stops its pending preparation; cancelling an original-worker reflection also revokes that reflection. Once the parent is released, later parent turns are independent of the child's pre-warm. Stale callbacks cannot seed or complete into a newer child turn.
@@ -271,8 +271,9 @@ session. The server clones the source WorkflowConfig plus name/role/tier/focus,
271
271
  then applies every field the request carries: provider/model/effort/account,
272
272
  access, `name` (non-empty renames), `role` (empty clears; a second director is
273
273
  refused with `multiple_directors`) and the member tuning above.
274
- `includeHistory` and `transferActiveTasks` are independent opt-ins. ISOLATED
275
- members reject both options.
274
+ `historyMode` and `transferActiveTasks` are independent choices. History defaults to `none`; legacy `includeHistory: true` selects `full`. ISOLATED members reject history and task transfer. `recent` accepts 1 to 50 turns (default 10) within a 128 KiB seed; `full` preserves the old transcript and action digest within 512 KiB, otherwise fitting the newest contiguous whole turns within that budget through the shared transcript reader. Tools and attachments become receipts in reduced copies. No text is clipped; an oversized newest turn can produce an explicit zero-turn copy.
275
+
276
+ New clients request `transcript_worker_preview` with `replacement: { clusterId, mode }` and send its token. The existing socket-owned cache fixes the cutoff and checks the history again before replacement. Preview fields include selected/requested/available turns, bytes, `truncated` and `historyFallback`; REPLACE stays disabled until the preview completes. Changed or rewound history requires a fresh preview. Legacy requests without a history mode still work without a token. A partial copy adds one persisted `system_notice` in the new workflow; old conversation files remain. The existing fitting full-history renderer retains its event array; this change does not promise bounded memory for that legacy renderer.
276
277
 
277
278
  ```ts
278
279
  {
@@ -292,7 +293,10 @@ members reject both options.
292
293
  efficiencyToolFilter?: 'off' | 'conservative' | 'aggressive',
293
294
  fastMode?: boolean,
294
295
  autoCompaction?: { enabled: boolean, thresholdPercent: number } | null,
295
- includeHistory?: boolean,
296
+ includeHistory?: boolean, // legacy true selects full
297
+ historyMode?: 'none' | 'recent' | 'full',
298
+ historyTurns?: number, // 1..50, default 10
299
+ historyToken?: string, // required by new history-mode clients
296
300
  transferActiveTasks?: boolean
297
301
  }
298
302
 
@@ -451,6 +455,8 @@ Operator edited a member's work-size hint from the Members sub-tab. `tier` is on
451
455
 
452
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.
453
457
 
458
+ 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
+
454
460
  Message guard is a separate control beside Efficiency and in cluster creation. `messageGuard` has `{ mode: 'warn' | 'hard' | 'none', threshold: number }`; thresholds are integers from 1 through 1000. Warn only accepts legitimate sends above the threshold and adds one warning to a successful send result per sender per primary turn. Hard limit refuses mail at the cap; refused mail is not delivered. No limit removes the peer-send quota only, retaining automatic-execution, provider, permission, size and deduplication limits. Its retained threshold is used if a bounded mode is selected later.
455
461
 
456
462
  Successful model send results include `guard` with `mode`, `count`, `cap`, `threshold`, `remaining` and an optional `warning`. Cap/remaining are null outside Hard limit; threshold is null for No limit. Counts span all recipients and reserve capacity before enqueue to fence concurrent sends. Failed/refused sends refund their reservation. The existing `primary_turn_started` boundary resets counts and warning state for that sender; these counters are process-local and are not restored after server restart. Consolidate related information for the same recipient; do not start turns to evade a cap. Operator-driven transcript sends keep their existing explicit bypass.
@@ -465,6 +471,37 @@ Omitted `addendum` keeps NOTE; empty clears it; non-empty replaces it, trimmed t
465
471
 
466
472
  All new creation paths use explicit Balanced, Warn only at 15, a cluster-local board and progress tracking set to Both. Explicit creation settings override those defaults. Stored omitted style fields still mean Thorough; old omitted board fields keep the existing interpretation. Snapshot restore uses saved settings and old-format fallbacks rather than creation defaults. No existing board is moved, merged or copied by the new default. Guard state rides in cluster state and snapshot metadata; automatic-execution arming remains off on restore.
467
473
 
474
+ ### `cluster_skills_set` ->
475
+
476
+ The operator's SKILLS control beside EFFICIENCY lists configured cluster pins.
477
+ Settings > SKILLS offers PIN TO TAB and PIN TO CLUSTER; a cluster target is all
478
+ members or an exact saved role string, including a custom role. Agents have no
479
+ pin or unpin tool. Built-ins use an editable project/global copy, as tab pins do.
480
+
481
+ ```ts
482
+ { type: 'cluster_skills_set', clusterId: string,
483
+ pins: Array<{ scope: 'project' | 'global', slug: string, role?: string }> }
484
+ ```
485
+
486
+ This replaces the cluster's `skillPins` array under its metadata lock and
487
+ echoes it in `cluster_state`. Empty clears it; omitted metadata means no pins.
488
+ No bodies are stored in cluster or tab metadata. Each turn resolves all-member
489
+ pins, matching-role pins and direct tab pins, deduplicated by source and slug.
490
+ Inherited project skills resolve from the cluster project, including for an
491
+ isolated member. Added, replaced, restarted and snapshot-restored members inherit
492
+ the current pins without copying them into their own `pinnedSkills`.
493
+
494
+ The combined per-member set has the existing 12-skill and 64 KiB body limits.
495
+ An addition over either limit is refused before saving. Role changes and member
496
+ replacement validate the proposed set too. Direct tab-pin edits share the
497
+ cluster lock so concurrent edits cannot each validate against stale state.
498
+ Configured role targets are checked even when they currently have no member.
499
+ Removing pins remains possible after a skill grows. On later turns missing,
500
+ off or overgrown skills use the existing skipped-skill notice and bounded
501
+ resolver. The popup keeps missing/off references visible instead of silently
502
+ 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.
504
+
468
505
  ### `cluster_progress_set` ->
469
506
 
470
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.
@@ -871,6 +908,8 @@ Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/
871
908
  | 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 |
872
909
  | 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 |
873
910
 
911
+ Cursor and Codex stop the evaluator child before removing its temporary folder. Shared cleanup allows up to 250 ms for child exit and three removal retries with 100, 200 and 300 ms delays, so a Windows child can release its working directory. Cleanup errors never replace the evaluator answer or refusal.
912
+
874
913
  `scripts/smart-pickup-eval.ts` runs the synthetic corpus (`scripts/smoke/fixtures/smart-auto-pickup-corpus-v2.json` by default; `--corpus <path>` selects another corpus, including v1) against one provider and model, or several with `--pairs provider:model,...`, mapping each case through `server/src/smartPickupCorpus.ts` onto the same snapshot input the app builds (open tasks, thread context); it prints each answer, a summary table with the acceptance check for Smart: Automatic (held-out actionable recall at least 0.9, unnecessary wakes at most 10 percent of non-actionable cases, no injection-driven wake, no-decision rate under 5 percent) and a confusion matrix per pair; `--max-calls N` caps the requests of the run; `--provider fake-oracle` makes no request. `--only <case id>` runs one case and `--verbose` prints timestamped phase timings (`initialize`, `session_new`, `set_mode`, `first_token`, `prompt`) and clipped protocol frames; like the app, the script retries a start-up failure once.
875
914
 
876
915
  ### `cluster_auto_turn_fired` <-
@@ -632,6 +632,45 @@ Fires after handoff. Announces the new CLI session ID and prepares the client to
632
632
 
633
633
  ---
634
634
 
635
+ ## Exact turns to a new worker
636
+
637
+ These operator/browser messages are separate from `spawn_from_here_request`.
638
+ No agent tool exposes them.
639
+
640
+ ```ts
641
+ { type: 'transcript_worker_preview', requestId: string, workflowId: string,
642
+ turns: number, includePartial: boolean, preface: string }
643
+ { type: 'transcript_worker_result', requestId: string,
644
+ preview?: { token: string, seed: string, bytes: number, availableTurns: number,
645
+ selectedTurns: number, partialIncluded: boolean, cutoffSeq: number },
646
+ newWorkflowId?: string, error?: string }
647
+ { type: 'transcript_worker_create', requestId: string, token: string,
648
+ destination: { workingDirectory: string, name: string, provider: ProviderName,
649
+ model: string, effort: EffortLevel, providerAccountRef?: string,
650
+ skipPermissions?: boolean } }
651
+ ```
652
+
653
+ Preview accepts integer turn counts 1-50 and a preface of at most 4096 UTF-8
654
+ bytes. The entire encoded seed has a 32768-byte limit. A running partial turn
655
+ is included only on explicit selection. The server frames exact operator and
656
+ visible primary text, plus bounded tool/attachment receipts, without reading
657
+ attachment files. Hidden reasoning and injected instructions are not copied.
658
+
659
+ The preview token is scoped to its WebSocket and expires after ten minutes;
660
+ the server retains at most 32 preview records. Create revalidates the source
661
+ cutoff/content/branch marker and the destination before allocating a tab.
662
+ Ordinary appends preserve the accepted snapshot; rewind, replacement or an
663
+ unavailable source requires another preview. A repeated create for the same
664
+ token returns the existing new workflow id without a second seed. The normal
665
+ `workflow_created` is initially background-created; the successful response
666
+ lets the requesting form focus that tab. The exact seed is its first normal
667
+ `user_message_echo`, followed by the standard primary-turn events.
668
+
669
+ Destination is a fresh allowlisted WorkflowConfig, not a clone of the source.
670
+ No source resume id, pins, cluster membership or armed run is accepted. The
671
+ chosen provider/account resolves normally without copying sign-in files.
672
+ Existing transcript peer-send and Spawn wire contracts remain unchanged.
673
+
635
674
  ## Related links
636
675
 
637
676
  - [WebSocket protocol](PROTOCOL.md)