arco-workbench 0.1.6 → 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 (236) hide show
  1. package/CONTRIBUTING.md +52 -12
  2. package/README.md +20 -13
  3. package/client/dist/assets/{PhosphorBackdrop-BR-TgB5x.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DgcFj6JN.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
  5. package/client/dist/assets/{XtermView-CflVBQgC.js → XtermView-BGFujb1e.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-BB-emfmi.js → galleryEditor-D951A2sE.js} +1 -1
  7. package/client/dist/assets/{index-B_EqHDz3.js → index-CsVy3eZm.js} +248 -248
  8. package/client/dist/index.html +1 -1
  9. package/client/src/buildCheck.ts +3 -1
  10. package/client/src/components/AppUpdateNotice.tsx +2 -1
  11. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +24 -12
  12. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
  13. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
  14. package/client/src/components/ClusterRightPanel/index.tsx +6 -1
  15. package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
  16. package/client/src/components/HeaderVersionBox.tsx +7 -4
  17. package/client/src/components/NeedsYouBadge.tsx +3 -3
  18. package/client/src/components/ProviderReleasesModal.tsx +8 -4
  19. package/client/src/components/ProvidersPopover.tsx +28 -23
  20. package/client/src/components/SettingsPanel.tsx +2 -2
  21. package/client/src/components/SkillsSettings.tsx +5 -0
  22. package/client/src/components/TabBar.tsx +91 -9
  23. package/client/src/components/TerminalInput.tsx +12 -10
  24. package/client/src/components/TranscriptSendDialog.tsx +12 -8
  25. package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
  26. package/client/src/components/UpdateAction.tsx +18 -4
  27. package/client/src/components/UpdateResultNotice.tsx +3 -1
  28. package/client/src/components/clusterNeedsYou.ts +11 -18
  29. package/client/src/help/content/cluster.tsx +54 -22
  30. package/client/src/help/content/composer.tsx +22 -0
  31. package/client/src/help/content/header.tsx +19 -1
  32. package/client/src/help/content/misc.tsx +8 -0
  33. package/client/src/help/content/rightPanel.tsx +1 -1
  34. package/client/src/help/content/settings.tsx +19 -5
  35. package/client/src/help/content/tabbar.tsx +5 -0
  36. package/client/src/help/manualSections/actions.tsx +31 -0
  37. package/client/src/help/manualSections/clusters.tsx +58 -21
  38. package/client/src/help/manualSections/configuration.tsx +38 -4
  39. package/client/src/help/manualSections/maintenance.tsx +30 -0
  40. package/client/src/help/manualSections/plans.tsx +5 -1
  41. package/client/src/help/manualSections/providers.tsx +32 -8
  42. package/client/src/help/manualSections/troubleshooting.tsx +2 -1
  43. package/client/src/help/manualSections/workflows.tsx +19 -0
  44. package/client/src/help/manualSections/workspace.tsx +6 -0
  45. package/client/src/stores/appUpdateStore.ts +29 -8
  46. package/client/src/utils/transcriptWorkerRequest.ts +24 -0
  47. package/client/src/utils/wsSession.ts +2 -1
  48. package/client/src/ws/handleServerMessage.ts +8 -2
  49. package/docs/ARCHITECTURE.md +1 -1
  50. package/docs/CLIENT.md +9 -8
  51. package/docs/FEATURES.md +8 -5
  52. package/docs/GETTING_STARTED.md +9 -4
  53. package/docs/GOTCHAS.md +2 -1
  54. package/docs/OPERATIONS.md +37 -4
  55. package/docs/PERSISTENCE.md +25 -3
  56. package/docs/PRIMITIVES.md +42 -0
  57. package/docs/PROTOCOL_CLUSTER.md +51 -5
  58. package/docs/PROTOCOL_PRIMITIVES.md +39 -0
  59. package/docs/PROVIDERS.md +50 -13
  60. package/docs/SETTINGS.md +27 -3
  61. package/docs/TASK_LEDGER.md +7 -15
  62. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
  63. package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
  64. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
  65. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
  66. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
  67. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  68. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  69. package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
  70. package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
  71. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  72. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
  73. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  74. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
  75. package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
  76. package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
  77. package/node_modules/@arco/shared/package.json +1 -1
  78. package/package.json +2 -2
  79. package/scripts/packaging/arco.mjs +1 -1
  80. package/scripts/packaging/native-repair.mjs +78 -12
  81. package/scripts/packaging/update.mjs +5 -1
  82. package/server/dist/atomicFile.js +1 -2
  83. package/server/dist/capabilities.d.ts +5 -2
  84. package/server/dist/capabilities.js +59 -9
  85. package/server/dist/cliUpdateDecision.d.ts +1 -1
  86. package/server/dist/cliUpdateDecision.js +5 -3
  87. package/server/dist/clusterAutoTurn.d.ts +4 -0
  88. package/server/dist/clusterAutoTurn.js +29 -25
  89. package/server/dist/clusterBusyReminder.js +1 -1
  90. package/server/dist/clusterDirector.js +1 -1
  91. package/server/dist/clusterPeerOps.js +10 -7
  92. package/server/dist/clusterProgress.js +1 -1
  93. package/server/dist/clusterSkills.d.ts +13 -0
  94. package/server/dist/clusterSkills.js +81 -0
  95. package/server/dist/clusterSnapshots.js +2 -0
  96. package/server/dist/clusterStore.d.ts +10 -2
  97. package/server/dist/clusterStore.js +64 -1
  98. package/server/dist/diagnostics/codeSkew.js +1 -0
  99. package/server/dist/eventLog.d.ts +7 -0
  100. package/server/dist/eventLog.js +70 -13
  101. package/server/dist/historyLimits.d.ts +1 -0
  102. package/server/dist/historyLimits.js +3 -0
  103. package/server/dist/http/router.js +1 -1
  104. package/server/dist/index.js +24 -1
  105. package/server/dist/jsonlLines.d.ts +4 -0
  106. package/server/dist/jsonlLines.js +53 -0
  107. package/server/dist/management/identity.js +1 -0
  108. package/server/dist/mcp/clusterMcpTools.js +4 -4
  109. package/server/dist/project/taskLedger.d.ts +4 -0
  110. package/server/dist/project/taskLedger.js +7 -4
  111. package/server/dist/providerConversation.d.ts +1 -0
  112. package/server/dist/providerConversation.js +17 -0
  113. package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
  114. package/server/dist/providers/claude-native/resumeSummary.js +102 -49
  115. package/server/dist/providers/claude-native/worker.js +8 -4
  116. package/server/dist/providers/claude.js +2 -1
  117. package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
  118. package/server/dist/providers/codex-appserver/catalog.js +16 -1
  119. package/server/dist/providers/codex.js +2 -1
  120. package/server/dist/providers/codexCodeMode.d.ts +1 -1
  121. package/server/dist/providers/codexCodeMode.js +4 -3
  122. package/server/dist/providers/cursor/print.js +2 -1
  123. package/server/dist/providers/cursor/worker.js +2 -1
  124. package/server/dist/providers/llamacpp.js +17 -8
  125. package/server/dist/providers/ollamaRecovery.js +6 -6
  126. package/server/dist/providers/ollamaResilience.js +3 -3
  127. package/server/dist/providers/ollamaTokens.js +1 -1
  128. package/server/dist/quota.d.ts +0 -18
  129. package/server/dist/quota.js +0 -44
  130. package/server/dist/replacementHistory.d.ts +19 -0
  131. package/server/dist/replacementHistory.js +49 -0
  132. package/server/dist/server/broadcast.d.ts +2 -1
  133. package/server/dist/server/broadcast.js +1 -0
  134. package/server/dist/server/prompts.d.ts +1 -0
  135. package/server/dist/server/prompts.js +6 -1
  136. package/server/dist/sessionJsonl.d.ts +1 -1
  137. package/server/dist/sessionJsonl.js +115 -40
  138. package/server/dist/smartPickup.d.ts +2 -1
  139. package/server/dist/smartPickup.js +28 -1
  140. package/server/dist/smartPickupAdapters.js +15 -2
  141. package/server/dist/smartPickupLedger.js +6 -4
  142. package/server/dist/smartPickupObserver.d.ts +1 -0
  143. package/server/dist/smartPickupObserver.js +24 -15
  144. package/server/dist/transcriptWorker.d.ts +34 -0
  145. package/server/dist/transcriptWorker.js +201 -0
  146. package/server/dist/workflowStore.d.ts +1 -0
  147. package/server/dist/workflowStore.js +31 -0
  148. package/server/dist/ws/clusterHandlers.d.ts +2 -0
  149. package/server/dist/ws/clusterHandlers.js +64 -27
  150. package/server/dist/ws/handoffHandlers.js +5 -2
  151. package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
  152. package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
  153. package/server/dist/ws/turnEngine.js +23 -9
  154. package/server/dist/ws/updatePrimaryConfig.js +27 -8
  155. package/server/dist/ws/workflowHandlers.d.ts +4 -1
  156. package/server/dist/ws/workflowHandlers.js +3 -1
  157. package/server/package.json +1 -1
  158. package/server/src/atomicFile.ts +1 -2
  159. package/server/src/capabilities.ts +58 -17
  160. package/server/src/cliUpdateDecision.ts +5 -4
  161. package/server/src/clusterAutoTurn.ts +26 -21
  162. package/server/src/clusterBusyReminder.ts +1 -1
  163. package/server/src/clusterDirector.ts +1 -1
  164. package/server/src/clusterPeerOps.ts +11 -8
  165. package/server/src/clusterProgress.ts +1 -1
  166. package/server/src/clusterSkills.ts +79 -0
  167. package/server/src/clusterSnapshots.ts +1 -0
  168. package/server/src/clusterStore.ts +64 -1
  169. package/server/src/diagnostics/codeSkew.ts +1 -0
  170. package/server/src/eventLog.ts +73 -13
  171. package/server/src/historyLimits.ts +2 -0
  172. package/server/src/http/router.ts +1 -1
  173. package/server/src/index.ts +23 -0
  174. package/server/src/jsonlLines.ts +52 -0
  175. package/server/src/management/identity.ts +1 -0
  176. package/server/src/mcp/clusterMcpTools.ts +4 -4
  177. package/server/src/project/taskLedger.ts +7 -5
  178. package/server/src/providerConversation.ts +15 -0
  179. package/server/src/providers/claude-native/resumeSummary.ts +98 -50
  180. package/server/src/providers/claude-native/worker.ts +8 -4
  181. package/server/src/providers/claude.ts +2 -1
  182. package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
  183. package/server/src/providers/codex-appserver/catalog.ts +14 -1
  184. package/server/src/providers/codex.ts +2 -1
  185. package/server/src/providers/codexCodeMode.ts +4 -4
  186. package/server/src/providers/cursor/print.ts +2 -1
  187. package/server/src/providers/cursor/worker.ts +2 -1
  188. package/server/src/providers/llamacpp.ts +18 -7
  189. package/server/src/providers/llamacppRecovery.ts +2 -0
  190. package/server/src/providers/ollamaRecovery.ts +6 -6
  191. package/server/src/providers/ollamaResilience.ts +3 -3
  192. package/server/src/providers/ollamaTokens.ts +1 -1
  193. package/server/src/providers/ollamaToolSubset.ts +3 -3
  194. package/server/src/quota.ts +0 -50
  195. package/server/src/replacementHistory.ts +44 -0
  196. package/server/src/server/broadcast.ts +2 -0
  197. package/server/src/server/prompts.ts +8 -1
  198. package/server/src/sessionJsonl.ts +92 -32
  199. package/server/src/smartPickup.ts +27 -3
  200. package/server/src/smartPickupAdapters.ts +17 -3
  201. package/server/src/smartPickupLedger.ts +6 -4
  202. package/server/src/smartPickupObserver.ts +20 -11
  203. package/server/src/transcriptWorker.ts +182 -0
  204. package/server/src/workflowStore.ts +21 -0
  205. package/server/src/ws/clusterHandlers.ts +46 -27
  206. package/server/src/ws/handoffHandlers.ts +5 -1
  207. package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
  208. package/server/src/ws/turnEngine.ts +20 -8
  209. package/server/src/ws/updatePrimaryConfig.ts +25 -6
  210. package/server/src/ws/workflowHandlers.ts +3 -1
  211. package/shared/dist/clusterCoordination.d.ts +2 -0
  212. package/shared/dist/clusterCoordination.js +5 -1
  213. package/shared/dist/protocol/autoPickup.d.ts +3 -0
  214. package/shared/dist/protocol/clientMessages.d.ts +3 -2
  215. package/shared/dist/protocol/clusters.d.ts +13 -1
  216. package/shared/dist/protocol/index.d.ts +1 -0
  217. package/shared/dist/protocol/index.js +1 -0
  218. package/shared/dist/protocol/models.d.ts +4 -3
  219. package/shared/dist/protocol/models.js +26 -2
  220. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  221. package/shared/dist/protocol/tasks.d.ts +4 -0
  222. package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  223. package/shared/dist/protocol/transcriptWorker.js +2 -0
  224. package/shared/dist/runtimeVersions.d.ts +1 -0
  225. package/shared/dist/runtimeVersions.js +14 -0
  226. package/shared/src/clusterCoordination.ts +7 -1
  227. package/shared/src/protocol/autoPickup.ts +5 -0
  228. package/shared/src/protocol/clientMessages.ts +5 -0
  229. package/shared/src/protocol/clusters.ts +16 -1
  230. package/shared/src/protocol/index.ts +1 -0
  231. package/shared/src/protocol/models.ts +31 -5
  232. package/shared/src/protocol/serverMessages.ts +2 -0
  233. package/shared/src/protocol/settings.ts +2 -3
  234. package/shared/src/protocol/tasks.ts +4 -7
  235. package/shared/src/protocol/transcriptWorker.ts +49 -0
  236. package/shared/src/runtimeVersions.ts +14 -0
@@ -1,4 +1,5 @@
1
1
  import { finishClusterCreation } from '../utils/clusterCreation';
2
+ import { finishTranscriptWorkerRequest } from '../utils/transcriptWorkerRequest';
2
3
  import { finishQueuedMessageEdit } from '../utils/queuedMessageEdit';
3
4
  import { PRIMARY_PROVIDERS, isClusterDirector } from '@arco/shared';
4
5
  import { beginPlanReview } from '../components/terminalInput/planDraft';
@@ -964,7 +965,8 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
964
965
  role: 'ctx-divider',
965
966
  content: `${action} (${trigger})${detail}`,
966
967
  isStreaming: false,
967
- timestamp: Date.now(),
968
+ eventSeq: (msg as { seq?: number }).seq,
969
+ timestamp: eventTime(msg) ?? Date.now(),
968
970
  });
969
971
  break;
970
972
  }
@@ -1495,6 +1497,9 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
1495
1497
  store.setCliChanges(msg.changes);
1496
1498
  break;
1497
1499
 
1500
+ case 'transcript_worker_result':
1501
+ finishTranscriptWorkerRequest(msg);
1502
+ break;
1498
1503
  case 'capabilities_updated':
1499
1504
  store.setCapabilities(msg.capabilities);
1500
1505
  if (msg.updated && msg.previousVersion) {
@@ -2065,7 +2070,8 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
2065
2070
  content: msg.content,
2066
2071
  authRecovery: msg.authRecovery,
2067
2072
  isStreaming: false,
2068
- timestamp: Date.now(),
2073
+ eventSeq: (msg as { seq?: number }).seq,
2074
+ timestamp: eventTime(msg) ?? Date.now(),
2069
2075
  });
2070
2076
  break;
2071
2077
  }
@@ -486,7 +486,7 @@ Opening a repo Arco hasn't seen before suppresses its project-local `CLAUDE.md`,
486
486
 
487
487
  `POST /api/provider-throttle` clears an explicitly chosen provider through the central state, immediately broadcasting to connected browsers. Codex and Claude usage rechecks use existing model-free meters; a fresh headroom result clears the remembered limit through `markAvailable(provider, 'manual-probe')` unless a newer limit arrived during the read. Exhausted or unavailable results change nothing. Because provider state lacks account/model identity, neither Clear nor a recheck emits the quota-recovered notice (`announcesRecovery`); a limit still in force returns on the next turn. The browser independently hides expired rows on a one-second clock tick with two seconds of grace and accepts a fresh snapshot on reconnect.
488
488
 
489
- The active execution consumer is goal-run continuation eligibility. Clearing restores future eligibility, never re-arms an already stopped run, and does not enqueue a model request. Manual turns, queues, cluster pickup and reviewer choice do not currently consult this state. `buildQuotaInjection` and `crossFamilyFallback` remain legacy helpers without live callers.
489
+ The active execution consumer is goal-run continuation eligibility. Clearing restores future eligibility, never re-arms an already stopped run, and does not enqueue a model request. Manual turns, queues, cluster pickup and reviewer choice do not currently consult this state. The unused prompt formatter and cross-family reviewer fallback were removed; no live routing behavior depends on them.
490
490
 
491
491
  ### System notices
492
492
 
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
 
@@ -372,7 +373,11 @@ notice and [VOICE.md](VOICE.md) before enabling hands-free mode.
372
373
  - Per-project workflows, chats, plans, and project settings: `<project>/.arco`.
373
374
  Opening a project creates that folder. It ships its own `.gitignore` so its
374
375
  contents stay out of Git by default; adding `.arco/` to the project's root
375
- `.gitignore` is a sensible extra safeguard.
376
+ `.gitignore` is a sensible extra safeguard. Treat `.arco/` as local state that
377
+ is not committed, except a skill shared through SHARE WITH REPOSITORY.
378
+ - Files you want kept in the project (documentation, a README, notes to commit)
379
+ belong in the project tree, for example `docs/`, not only under a conversation's
380
+ `artifacts/` folder inside `.arco`.
376
381
  - `ARCO_HOME` relocates the global Arco home. Project state remains in each
377
382
  project's `.arco` directory.
378
383
 
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
 
@@ -220,6 +228,8 @@ The version box in the top bar, left of the power button, always shows the
220
228
  running version. When a newer release is known it turns into an accent box with
221
229
  an up arrow and the new version, stays that way after the toast is dismissed,
222
230
  opens the update dialog on click, and shows UPDATING while an update runs.
231
+ A release found by CHECK NOW appears in the version box; select UPDATE AND
232
+ RESTART to open its confirmation.
223
233
 
224
234
  ### Packaged install
225
235
 
@@ -242,6 +252,27 @@ modules cannot be replaced safely. A packaged service can instead use
242
252
  Linux, macOS, and Windows. The action interrupts running turns and reports
243
253
  completion or rollback after reconnect.
244
254
 
255
+ The result appears beside the open update control. When that control is closed,
256
+ a separate result notice remains available with **DISMISS**. The same result is
257
+ not shown in both places at once.
258
+
259
+ Package updates and `arco setup --repair-native` find npm beside Node.js,
260
+ through the global package directory, or through the npm command on `PATH`.
261
+ Homebrew's versioned Node executable is supported even when the service has a
262
+ short `PATH`. If npm still cannot be found, the update stops before stopping the
263
+ service and describes the locations checked. In a terminal where `npm --version`
264
+ works, update a packaged service manually:
265
+
266
+ ```sh
267
+ arco service stop
268
+ npm install -g arco-workbench
269
+ arco service start
270
+ ```
271
+
272
+ For a foreground run, stop that process before installing and run `arco start`
273
+ afterward. If `npm --version` fails too, repair the Node.js/npm installation
274
+ first. A native repair can then be retried with `arco setup --repair-native`.
275
+
245
276
  After a restart, a page reloads automatically if its build changed or its
246
277
  session cannot recover and no unsaved work is detected. Otherwise it shows a
247
278
  RELOAD banner. Save drafts and edits before selecting RELOAD.
@@ -875,6 +906,8 @@ The shape regression is pinned by
875
906
 
876
907
  ### Reproducing the live unit on a clean install
877
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
+
878
911
  Deployment caveat: `core.code-skew` compares startup Git HEAD with current HEAD,
879
912
  not asset contents. Committing an already-deployed build or documentation alone
880
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.
@@ -482,6 +487,16 @@ CREATE VIRTUAL TABLE chunks_fts USING fts5(content, content='chunks', content_ro
482
487
 
483
488
  ## Artifacts
484
489
 
490
+ The per-workflow `artifacts/` folder holds conversation deliverables Arco
491
+ surfaces in chat and in ARTIFACTS or Outputs: reviews, handoff-related
492
+ outputs, report files and other finished work for that tab. Put files the
493
+ operator wants kept in the project (documentation, a README, notes to commit)
494
+ in the project tree, for example `docs/`, not only under
495
+ `.arco/workflows/<wfid>/artifacts/`. Large intermediate files belong in the
496
+ sibling `scratch/` folder. `.arco/` itself is local state and is not committed,
497
+ except a skill shared through SHARE WITH REPOSITORY (see
498
+ [Project `.arco/.gitignore`](#project-arcogitignore)).
499
+
485
500
  `<cwd>/.arco/workflows/<wfid>/artifacts/review-<ts>.md` - Review primitive outputs. YAML frontmatter + body:
486
501
 
487
502
  ```markdown
@@ -787,7 +802,7 @@ Global shape (representative subset):
787
802
  ollama?: { baseUrl?, backends?, modelHostMap?,... }, lmstudio?: { baseUrl? },
788
803
  fallbackChains?, autoHandoffDefaults?, handoffSummarizer?, defaultProjectTrust?, mediaUnconfined?, mediaAllowedRoots?, pinnedServices?, tabOrder?,
789
804
  onboardingComplete?, providerConfirmed?, // first-run setup finished or skipped; a provider check succeeded
790
- autoMarkDoneOnMetSignoff?, // Settings > Agents and clusters > Board auto-done
805
+ autoMarkDoneOnMetSignoff?, // Board auto-done; absent means on
791
806
  //...
792
807
  }
793
808
  ```
@@ -899,7 +914,14 @@ Updated on each worker spawn / settle; on macOS and Windows the start time is fi
899
914
 
900
915
  Arco creates `<cwd>/.arco/.gitignore` before writing project state. Its default
901
916
  is `*`, so Git ignores all contents of `.arco/`, including the ignore file
902
- itself. To share an individual file, add a negation such as `!settings.json`
917
+ itself. Treat `.arco/` as local state that stays out of Git by default. Agents
918
+ do not commit, force-add or add ignore exceptions for it. The one route Arco
919
+ itself offers is **SHARE WITH REPOSITORY** in Settings > SKILLS for a project
920
+ skill: that adds ignore exceptions for that skill only and does not stage or
921
+ commit for you. An operator who decides to share an individual file by hand can
922
+ still add a negation, as described next.
923
+
924
+ To share an individual file by hand, add a negation such as `!settings.json`
903
925
  to that file. Sharing a nested file also requires unignoring its parent
904
926
  directories. A repository-level ignore rule can still exclude `.arco/`.
905
927
  Already tracked files stay tracked; remove them from the Git index explicitly
@@ -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.