arco-workbench 0.1.3 → 0.1.4

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 (296) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +5 -1
  3. package/client/dist/assets/{PhosphorBackdrop-CkVIGkeX.js → PhosphorBackdrop-CNumba2X.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DHF7CnpE.js → ThemedBackgroundShaderImpl-DX5KyCt3.js} +1 -1
  5. package/client/dist/assets/{XtermView-SY0UcZUS.js → XtermView-DhS5g8Rt.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-Ca4F8HiM.js → galleryEditor-fPb76Cjv.js} +1 -1
  7. package/client/dist/assets/index-CjkHb-_n.js +592 -0
  8. package/client/dist/assets/index-DIbh3ae5.css +1 -0
  9. package/client/dist/index.html +2 -2
  10. package/client/src/App.tsx +2 -0
  11. package/client/src/alerts/desktopAlerts.ts +13 -1
  12. package/client/src/brief/briefFacts.ts +22 -0
  13. package/client/src/brief/briefFromStore.ts +7 -2
  14. package/client/src/components/ArtifactMoveDialog.tsx +64 -0
  15. package/client/src/components/BriefControl.tsx +38 -47
  16. package/client/src/components/CatchMeUp.tsx +25 -25
  17. package/client/src/components/CheckpointActions.tsx +7 -4
  18. package/client/src/components/ClusterComposerButtons.tsx +6 -3
  19. package/client/src/components/ClusterPlanTab.tsx +15 -1
  20. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +6 -2
  21. package/client/src/components/ClusterTab.tsx +33 -3
  22. package/client/src/components/ClusterTaskBoardTab.tsx +62 -8
  23. package/client/src/components/DialogShell.tsx +115 -0
  24. package/client/src/components/DocsUpdateDialog.tsx +16 -42
  25. package/client/src/components/ForwardMessages.tsx +28 -32
  26. package/client/src/components/GitDialog.tsx +52 -52
  27. package/client/src/components/GitOtherWork.tsx +4 -2
  28. package/client/src/components/HandoffDialog.tsx +19 -45
  29. package/client/src/components/Home/HomeView.tsx +36 -8
  30. package/client/src/components/Home/home.css +7 -0
  31. package/client/src/components/KeepButton.tsx +23 -0
  32. package/client/src/components/MdTuneupDialog.tsx +52 -51
  33. package/client/src/components/MemberCard.tsx +4 -1
  34. package/client/src/components/MemberPane.tsx +1 -1
  35. package/client/src/components/NotificationCenter.tsx +4 -3
  36. package/client/src/components/NotificationChannelsSettings.tsx +25 -7
  37. package/client/src/components/PlanCandidateBanner.tsx +111 -57
  38. package/client/src/components/PlanComposerDialog.tsx +55 -87
  39. package/client/src/components/ProjectStateNotice.tsx +60 -0
  40. package/client/src/components/PublicProjectBox.tsx +25 -0
  41. package/client/src/components/ResearchDialog.tsx +15 -24
  42. package/client/src/components/ReviewDialog.tsx +32 -57
  43. package/client/src/components/RightPanel/OutputsPanel.tsx +4 -0
  44. package/client/src/components/RightPanel/PlanTab.tsx +24 -2
  45. package/client/src/components/RightPanel/UsageTab.tsx +77 -1
  46. package/client/src/components/SkillEditorDialog.tsx +38 -73
  47. package/client/src/components/SpawnDialog.tsx +19 -41
  48. package/client/src/components/StorageWarnings.tsx +21 -0
  49. package/client/src/components/SystemHeader.tsx +2 -2
  50. package/client/src/components/TerminalInput.tsx +6 -2
  51. package/client/src/components/TidyComposer.tsx +24 -41
  52. package/client/src/components/TranscriptSendDialog.tsx +151 -202
  53. package/client/src/components/UtilityAgentPicker.tsx +4 -2
  54. package/client/src/components/WorkflowCreator/index.tsx +2 -0
  55. package/client/src/components/WorkflowView.tsx +4 -1
  56. package/client/src/components/clusterNeedsYou.ts +35 -3
  57. package/client/src/components/compare/CompareDialog.tsx +26 -2
  58. package/client/src/components/terminalInput/planDraft.ts +33 -4
  59. package/client/src/components/utilityResult.ts +5 -1
  60. package/client/src/explorer/ExplorerApp.tsx +5 -2
  61. package/client/src/explorer/PlansLens.tsx +60 -19
  62. package/client/src/explorer/StorageLens.tsx +275 -0
  63. package/client/src/explorer/launch.ts +3 -3
  64. package/client/src/explorer/plansGrouping.ts +15 -0
  65. package/client/src/help/content/cluster.tsx +42 -7
  66. package/client/src/help/content/composer.tsx +26 -6
  67. package/client/src/help/content/header.tsx +16 -14
  68. package/client/src/help/content/misc.tsx +141 -6
  69. package/client/src/help/content/rightPanel.tsx +16 -0
  70. package/client/src/help/content/settings.tsx +4 -4
  71. package/client/src/help/manualSections/actions.tsx +19 -4
  72. package/client/src/help/manualSections/clusters.tsx +29 -16
  73. package/client/src/help/manualSections/configuration.tsx +6 -4
  74. package/client/src/help/manualSections/maintenance.tsx +27 -5
  75. package/client/src/help/manualSections/plans.tsx +96 -2
  76. package/client/src/help/manualSections/powerFeatures.tsx +2 -2
  77. package/client/src/help/manualSections/reference.tsx +6 -0
  78. package/client/src/help/manualSections/workspace.tsx +9 -5
  79. package/client/src/stores/appStore.ts +10 -1
  80. package/client/src/stores/appStore.types.ts +2 -0
  81. package/client/src/stores/mdTuneupStore.ts +5 -4
  82. package/client/src/stores/memoryTrim.ts +18 -2
  83. package/client/src/stores/storageWarningStore.ts +18 -0
  84. package/client/src/utils/gitDialogMemory.ts +26 -0
  85. package/client/src/utils/historyEvents.ts +1 -0
  86. package/client/src/utils/homeModel.ts +19 -0
  87. package/client/src/utils/publicProject.ts +56 -0
  88. package/client/src/ws/handleServerMessage.ts +7 -2
  89. package/docs/ARCHITECTURE.md +1 -1
  90. package/docs/CHECKPOINTS.md +2 -0
  91. package/docs/CLIENT.md +29 -11
  92. package/docs/FEATURES.md +14 -11
  93. package/docs/GETTING_STARTED.md +7 -7
  94. package/docs/GLOSSARY.md +3 -3
  95. package/docs/GOTCHAS.md +3 -2
  96. package/docs/HTTP_API.md +31 -1
  97. package/docs/NOTIFICATIONS.md +13 -14
  98. package/docs/OPERATIONS.md +27 -1
  99. package/docs/OPERATOR_ACTIONS.md +1 -1
  100. package/docs/OUTPUTS.md +9 -0
  101. package/docs/PERSISTENCE.md +34 -4
  102. package/docs/PLAN_OR_BOARD.md +7 -0
  103. package/docs/PRIMITIVES.md +3 -3
  104. package/docs/PROTOCOL.md +14 -4
  105. package/docs/PROTOCOL_CLUSTER.md +3 -2
  106. package/docs/SERVICE_MODE.md +5 -1
  107. package/docs/SETTINGS.md +8 -6
  108. package/docs/STORAGE_PLAN.md +324 -0
  109. package/docs/TASK_LEDGER.md +5 -4
  110. package/native/linux-arm64/manifest.json +1 -1
  111. package/node_modules/@arco/shared/dist/index.d.ts +2 -0
  112. package/node_modules/@arco/shared/dist/index.js +2 -0
  113. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +1 -1
  114. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +1 -1
  115. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
  116. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -1
  117. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  118. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  119. package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +6 -0
  120. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
  121. package/node_modules/@arco/shared/dist/protocol/notifications.js +3 -2
  122. package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -0
  123. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  124. package/node_modules/@arco/shared/dist/protocol/storage.d.ts +21 -0
  125. package/node_modules/@arco/shared/dist/protocol/storage.js +3 -0
  126. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +3 -0
  127. package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +2 -2
  128. package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +2 -2
  129. package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +7 -0
  130. package/node_modules/@arco/shared/dist/publicGuardrails.js +47 -0
  131. package/node_modules/@arco/shared/dist/publicSafetyRules.d.ts +1 -0
  132. package/node_modules/@arco/shared/dist/publicSafetyRules.js +6 -0
  133. package/node_modules/@arco/shared/package.json +1 -1
  134. package/package.json +3 -2
  135. package/scripts/packaging/arco.mjs +17 -1
  136. package/scripts/packaging/services.mjs +35 -5
  137. package/scripts/packaging/storage.mjs +125 -0
  138. package/scripts/packaging/update.mjs +3 -3
  139. package/server/dist/artifactCopy.d.ts +26 -0
  140. package/server/dist/artifactCopy.js +398 -0
  141. package/server/dist/atomicFile.d.ts +1 -0
  142. package/server/dist/atomicFile.js +1 -1
  143. package/server/dist/attention.d.ts +1 -1
  144. package/server/dist/attention.js +10 -13
  145. package/server/dist/catchUp.d.ts +2 -0
  146. package/server/dist/catchUp.js +46 -23
  147. package/server/dist/clusterPeerOps.d.ts +2 -0
  148. package/server/dist/clusterPeerOps.js +2 -0
  149. package/server/dist/clusterSnapshots.js +22 -12
  150. package/server/dist/eventLog.d.ts +55 -0
  151. package/server/dist/eventLog.js +792 -0
  152. package/server/dist/explorerLaunch.d.ts +4 -1
  153. package/server/dist/explorerLaunch.js +3 -2
  154. package/server/dist/explorerPlans.d.ts +4 -0
  155. package/server/dist/explorerPlans.js +27 -2
  156. package/server/dist/http/clusterRoutes.js +2 -0
  157. package/server/dist/http/explorerRoutes.js +2 -1
  158. package/server/dist/http/publicProjectRoutes.d.ts +2 -0
  159. package/server/dist/http/publicProjectRoutes.js +68 -0
  160. package/server/dist/http/router.js +6 -0
  161. package/server/dist/http/storageRoutes.d.ts +2 -0
  162. package/server/dist/http/storageRoutes.js +254 -0
  163. package/server/dist/http/usageStatsRoutes.js +3 -12
  164. package/server/dist/index.js +4 -0
  165. package/server/dist/keepStore.d.ts +16 -0
  166. package/server/dist/keepStore.js +119 -0
  167. package/server/dist/management/clusterActivity.js +6 -20
  168. package/server/dist/management/initHubLink.js +10 -43
  169. package/server/dist/mcp/clusterMcpTools.js +8 -1
  170. package/server/dist/notifications.d.ts +3 -1
  171. package/server/dist/notifications.js +5 -4
  172. package/server/dist/outputStore.d.ts +1 -0
  173. package/server/dist/outputStore.js +1 -1
  174. package/server/dist/outputs.js +39 -8
  175. package/server/dist/planHistory.d.ts +3 -0
  176. package/server/dist/planHistory.js +60 -0
  177. package/server/dist/primitives/runMdTuneup.d.ts +5 -1
  178. package/server/dist/primitives/runMdTuneup.js +43 -2
  179. package/server/dist/project/taskLedger.d.ts +4 -0
  180. package/server/dist/project/taskLedger.js +19 -0
  181. package/server/dist/providers/claude-native/peerTools.js +4 -0
  182. package/server/dist/providers/claude-native/resumeSummary.js +30 -19
  183. package/server/dist/providers/index.js +8 -13
  184. package/server/dist/providers/localProviderQueue.d.ts +2 -0
  185. package/server/dist/providers/localProviderQueue.js +11 -0
  186. package/server/dist/publicProject.d.ts +54 -0
  187. package/server/dist/publicProject.js +135 -0
  188. package/server/dist/recall/index.js +22 -23
  189. package/server/dist/server/broadcast.d.ts +2 -1
  190. package/server/dist/server/broadcast.js +56 -1
  191. package/server/dist/smartPickupAdapters.d.ts +7 -0
  192. package/server/dist/smartPickupAdapters.js +172 -8
  193. package/server/dist/storageActions.d.ts +50 -0
  194. package/server/dist/storageActions.js +326 -0
  195. package/server/dist/storageArchive.d.ts +24 -0
  196. package/server/dist/storageArchive.js +358 -0
  197. package/server/dist/storageOverview.d.ts +47 -0
  198. package/server/dist/storageOverview.js +197 -0
  199. package/server/dist/storageReport.d.ts +48 -0
  200. package/server/dist/storageReport.js +185 -0
  201. package/server/dist/storageWarnings.d.ts +4 -0
  202. package/server/dist/storageWarnings.js +96 -0
  203. package/server/dist/workers/limits.js +4 -1
  204. package/server/dist/workflowStore.d.ts +2 -0
  205. package/server/dist/workflowStore.js +88 -72
  206. package/server/dist/workflows/purgeWorkflow.d.ts +1 -0
  207. package/server/dist/workflows/purgeWorkflow.js +15 -2
  208. package/server/dist/workflows/sessionDiscovery.js +5 -17
  209. package/server/dist/workflows/sessionIndex.js +22 -17
  210. package/server/dist/ws/taskLedgerHandlers.js +8 -3
  211. package/server/dist/ws/workflowHandlers.js +5 -4
  212. package/server/package.json +1 -1
  213. package/server/src/artifactCopy.ts +254 -0
  214. package/server/src/atomicFile.ts +1 -1
  215. package/server/src/attention.ts +9 -10
  216. package/server/src/catchUp.ts +37 -15
  217. package/server/src/clusterPeerOps.ts +5 -0
  218. package/server/src/clusterSnapshots.ts +20 -13
  219. package/server/src/eventLog.ts +571 -0
  220. package/server/src/explorerLaunch.ts +3 -2
  221. package/server/src/explorerPlans.ts +22 -2
  222. package/server/src/http/clusterRoutes.ts +4 -1
  223. package/server/src/http/explorerRoutes.ts +2 -1
  224. package/server/src/http/publicProjectRoutes.ts +54 -0
  225. package/server/src/http/router.ts +4 -0
  226. package/server/src/http/storageRoutes.ts +187 -0
  227. package/server/src/http/usageStatsRoutes.ts +3 -11
  228. package/server/src/index.ts +4 -0
  229. package/server/src/keepStore.ts +102 -0
  230. package/server/src/management/clusterActivity.ts +6 -16
  231. package/server/src/management/initHubLink.ts +10 -39
  232. package/server/src/mcp/clusterMcpTools.ts +8 -2
  233. package/server/src/notifications.ts +4 -3
  234. package/server/src/outputStore.ts +5 -2
  235. package/server/src/outputs.ts +30 -6
  236. package/server/src/planHistory.ts +48 -0
  237. package/server/src/primitives/runMdTuneup.ts +32 -2
  238. package/server/src/project/taskLedger.ts +20 -0
  239. package/server/src/providers/claude-native/peerTools.ts +4 -0
  240. package/server/src/providers/claude-native/resumeSummary.ts +32 -18
  241. package/server/src/providers/index.ts +2 -16
  242. package/server/src/providers/localProviderQueue.ts +13 -0
  243. package/server/src/publicProject.ts +142 -0
  244. package/server/src/recall/index.ts +4 -9
  245. package/server/src/server/broadcast.ts +53 -1
  246. package/server/src/smartPickupAdapters.ts +128 -5
  247. package/server/src/storageActions.ts +216 -0
  248. package/server/src/storageArchive.ts +277 -0
  249. package/server/src/storageOverview.ts +184 -0
  250. package/server/src/storageReport.ts +210 -0
  251. package/server/src/storageWarnings.ts +84 -0
  252. package/server/src/workers/limits.ts +4 -1
  253. package/server/src/workflowStore.ts +78 -61
  254. package/server/src/workflows/purgeWorkflow.ts +12 -3
  255. package/server/src/workflows/sessionDiscovery.ts +5 -13
  256. package/server/src/workflows/sessionIndex.ts +5 -9
  257. package/server/src/ws/taskLedgerHandlers.ts +8 -3
  258. package/server/src/ws/workflowHandlers.ts +5 -4
  259. package/shared/dist/index.d.ts +2 -0
  260. package/shared/dist/index.js +2 -0
  261. package/shared/dist/protocol/autoPickup.d.ts +1 -1
  262. package/shared/dist/protocol/autoPickup.js +1 -1
  263. package/shared/dist/protocol/checkpoints.d.ts +1 -0
  264. package/shared/dist/protocol/clusters.d.ts +2 -1
  265. package/shared/dist/protocol/index.d.ts +1 -0
  266. package/shared/dist/protocol/index.js +1 -0
  267. package/shared/dist/protocol/mdTuneup.d.ts +6 -0
  268. package/shared/dist/protocol/notifications.d.ts +2 -1
  269. package/shared/dist/protocol/notifications.js +3 -2
  270. package/shared/dist/protocol/plans.d.ts +2 -0
  271. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  272. package/shared/dist/protocol/storage.d.ts +21 -0
  273. package/shared/dist/protocol/storage.js +3 -0
  274. package/shared/dist/protocol/tasks.d.ts +3 -0
  275. package/shared/dist/protocol/utilityAgent.d.ts +2 -2
  276. package/shared/dist/protocol/utilityAgent.js +2 -2
  277. package/shared/dist/publicGuardrails.d.ts +7 -0
  278. package/shared/dist/publicGuardrails.js +47 -0
  279. package/shared/dist/publicSafetyRules.d.ts +1 -0
  280. package/shared/dist/publicSafetyRules.js +6 -0
  281. package/shared/src/index.ts +3 -0
  282. package/shared/src/protocol/autoPickup.ts +1 -1
  283. package/shared/src/protocol/checkpoints.ts +4 -0
  284. package/shared/src/protocol/clusters.ts +6 -1
  285. package/shared/src/protocol/index.ts +1 -0
  286. package/shared/src/protocol/mdTuneup.ts +5 -0
  287. package/shared/src/protocol/notifications.ts +6 -2
  288. package/shared/src/protocol/plans.ts +2 -0
  289. package/shared/src/protocol/serverMessages.ts +2 -0
  290. package/shared/src/protocol/storage.ts +35 -0
  291. package/shared/src/protocol/tasks.ts +6 -0
  292. package/shared/src/protocol/utilityAgent.ts +2 -2
  293. package/shared/src/publicGuardrails.ts +50 -0
  294. package/shared/src/publicSafetyRules.ts +5 -0
  295. package/client/dist/assets/index-CcNtMA2y.js +0 -546
  296. package/client/dist/assets/index-Dl8tYsSp.css +0 -1
@@ -100,7 +100,7 @@ REVIEWS (aggregated reviewer queue) / HANDOFFS / PLAN (shared markdown) /
100
100
  HISTORY / PREVIEW / CONFIG / GITHUB mirrors so routine work does not leave the
101
101
  cluster tab.
102
102
 
103
- Member cards show a mail mark with the count when messages are waiting (delivered at the member's next turn). It is muted while the member is busy; when the member is idle with mail it is highlighted and clicking it nudges that member, and the tab shows Needs you. The cluster NUDGE button
103
+ Member cards show a mail mark with the count when messages are waiting (delivered at the member's next turn). It is muted while the member is busy; when the member is idle with mail it is highlighted and clicking it nudges that member (the mark then reads Nudged, and the composer NUDGE button reads NUDGED with a count, until the member starts its turn), and the tab shows Needs you. The cluster NUDGE button
104
104
  shows the total and opens an empty recipient picker; only an explicit selection
105
105
  and send starts a reminder.
106
106
 
package/docs/OUTPUTS.md CHANGED
@@ -85,6 +85,15 @@ failure leaves the source intact. Existing indexed and artifact-path links resol
85
85
  to the moved location. Removing an external file produces a missing-file state;
86
86
  Outputs does not offer destructive cleanup.
87
87
 
88
+ **MOVE TO PROJECT** on an artifact offers **KEEP IT PRIVATE** or **ADD TO
89
+ PROJECT FILES**. Before a copy, review the destination, Git ignore and public
90
+ repository status, size and content findings. Files not fully scanned are listed
91
+ by name. Copying them into a public repository outside Git ignore requires a
92
+ second confirmation. Projects opened through a linked parent folder are supported;
93
+ links within the artifact remain refused. The original stays in the artifact
94
+ store; Arco does not stage or commit the copy. A large-artifact warning offers
95
+ **KEEP** to protect the artifact from cleanup or **DISMISS**.
96
+
88
97
  ## Related links
89
98
 
90
99
  - [Feature reference](FEATURES.md)
@@ -63,13 +63,20 @@ Conversation records are append-only as a rule - Arco never auto-deletes `events
63
63
  <cwd>/.arco/
64
64
  ├──.gitignore # ignores all project state by default
65
65
  ├── settings.json # per-project settings overrides
66
+ ├── storage-actions.jsonl # one line per storage action (EMPTY SCRATCH, archive, restore, delete, auto-archive)
67
+ ├── archive/<wfid>.arcoarchive # an archived conversation: Brotli-compressed files with their hashes (storageArchive.ts)
66
68
  ├── session-index.json # resume-picker projection (workflows/sessionIndex.ts; rebuildable, skipped for chats)
67
69
  ├── title-events.jsonl # session-index title history (same module; rebuildable)
68
70
  ├── <workflowId>/ # per-workflow CLI/Codex MCP config (mcp/mcpConfigWriter.ts) - cluster peer tools / codebase-memory / registry servers
69
71
  │ └── mcp-config.json # unlinked on tab close
70
72
  ├── workflows/
71
73
  │ └── <wfid>/ # one directory per workflow
72
- │ ├── events.jsonl # append-only NDJSON event log
74
+ │ ├── events.jsonl # append-only NDJSON event log (the live part)
75
+ │ ├── events.<first>-<last>.jsonl.br # sealed, compressed older records (see Sealed segments)
76
+ │ ├── log-format.json # { "format": 2 } once a segment exists
77
+ │ ├── scratch/ # large intermediate files; emptied only by EMPTY SCRATCH (storageActions.ts)
78
+ │ ├── keep.json # KEEP marks: items skipped by EMPTY SCRATCH, archive, delete and size warnings (keepStore.ts); never archived or removed by them
79
+ │ ├── storage-warnings.json # artifact sizes already warned about (storageWarnings.ts)
73
80
  │ ├── meta.json # workflow identity + session ledger
74
81
  │ ├── resume-summary.json # Native resume-summary cache (claude-native/resumeSummary.ts)
75
82
  │ ├── gate-approvals.json # DEBAG gate sidecar (gateStore.ts) - only when reviewSafeMode='on'
@@ -88,7 +95,8 @@ Conversation records are append-only as a rule - Arco never auto-deletes `events
88
95
  │ └── run-XXXX/ # script + stdout buffer; cleaned on finalize
89
96
  ├── plans/ # per-cwd plan briefs (see Plan store)
90
97
  │ ├── index.json
91
- │ └── <planId>.md
98
+ │ ├── <planId>.md
99
+ │ └── .history/<sha256>.md # each distinct cluster plan body, written once (planHistory.ts); permanent like the plans
92
100
  ├── knowledge/ # per-cwd operator knowledge base (knowledge/store.ts)
93
101
  │ ├── index.json # { articles: [{ id, title, tags, alwaysInclude,... }] }
94
102
  │ └── <id>.md # article body
@@ -110,7 +118,7 @@ The `.gitignore` excludes all project state by default; an unedited legacy defau
110
118
 
111
119
  ### Purge (irreversible)
112
120
 
113
- Closing a tab (`remove_workflow`) does **not** delete this tree - it tears down in-memory state, unlinks `sandbox.db` + `mcp-config.json`, and closes open plan spans; the workflow stays resumable. The HISTORY-tab **PURGE CONVERSATION** action (-> `DELETE /api/workflows/:wfid`, `server/src/workflows/purgeWorkflow.ts`) deletes this whole tree plus the out-of-tree artifacts keyed by `<wfid>`: git checkpoints (`refs/arco/<wfid>/*` - in the cwd repo and the shadow store), skipped-path sidecars and legacy tar checkpoints (`~/.arco/checkpoints/<cwd-hash>/<wfid>.*`), the recall row (`recall.db` entries + FTS), and the cluster mailbox (`~/.arco/clusters/<cid>/mailbox/<wfid>/`). The `nuclear` tier additionally removes the bound provider session files (`~/.claude/projects/...`, Codex rollout). There is no undo - the recall row is dropped immediately rather than waiting for the projection GC.
121
+ Closing a tab (`remove_workflow`) does **not** delete this tree - it tears down in-memory state, unlinks `sandbox.db` + `mcp-config.json`, and closes open plan spans; the workflow stays resumable. The HISTORY-tab **PURGE CONVERSATION** action (-> `DELETE /api/workflows/:wfid`, `server/src/workflows/purgeWorkflow.ts`) deletes this whole tree plus the out-of-tree artifacts keyed by `<wfid>`: git checkpoints (`refs/arco/<wfid>/*` - in the cwd repo and the shadow store), skipped-path sidecars and legacy tar checkpoints (`~/.arco/checkpoints/<cwd-hash>/<wfid>.*`), the recall row (`recall.db` entries + FTS), and the cluster mailbox (`~/.arco/clusters/<cid>/mailbox/<wfid>/`). The `nuclear` tier additionally removes the bound provider session files (`~/.claude/projects/...`, Codex rollout). There is no undo - the recall row is dropped immediately rather than waiting for the projection GC. The storage DELETE action (`POST /api/storage/delete`) runs the same purge but leaves KEEP items in the folder and also removes the conversation's archive; ARCHIVE (`POST /api/storage/archive`) is the restorable alternative.
114
122
 
115
123
  ---
116
124
 
@@ -131,6 +139,27 @@ Each line is a JSON object: `{seq, ts, parentEventSeq?,...message}` where `messa
131
139
 
132
140
  `seq` is a per-workflow monotonic counter. `ts` is `Date.now` at the moment of stamping (slightly after the underlying message was created). The wire-message itself may also carry a `timestamp` field - that's the message's logical timestamp; `ts` is the persistence timestamp.
133
141
 
142
+ ### Sealed segments
143
+
144
+ Since 0.1.4 a live `events.jsonl` that passes 16 MiB (`ARCO_EVENT_SEGMENT_BYTES` overrides it) is sealed into compressed segments next to it. Nothing is deleted. `server/src/eventLog.ts` holds the format and every reader.
145
+
146
+ | File | Meaning |
147
+ | --- | --- |
148
+ | `events.jsonl` | The live log, appended as before |
149
+ | `events.<firstSeq>-<lastSeq>.jsonl.br` | Brotli-compressed records (quality 5, 16 MiB window), at most 16 MiB of text each; sequence numbers zero-padded to 12 digits so name order is sequence order |
150
+ | `log-format.json` | `{ "format": 2 }`, written with the first segment |
151
+
152
+ - Sealing runs in the conversation's flush chain (`workflowStore.flushBuffer`), so nothing appends meanwhile. Each segment is written to a temporary file, flushed and read back before it is renamed into place. Then the live file is replaced, through a rename, by one holding only the newest sealed record.
153
+ - On Windows a rename over a live file that a reader holds open fails, even after the retries. The seal then keeps its new segments and the complete live file, removes the temporary file, reports it, and returns `liveReplaced: false`. Readers skip what is sealed. Seal-on-write tries again after a quarter of the threshold more growth; the append itself is never affected. Renaming a damaged segment aside works while a reader holds it, because Node opens files with delete sharing; replacing an open file does not.
154
+ - A segment's name is never trusted on its own. Before a seal drops a live record because a segment's name covers it, that segment is decompressed and checked: every line parses, sequence numbers rise, and the first and last match the name. A segment that fails is renamed `<name>.damaged-<time>` (kept, never deleted, no longer read) and its records are sealed again from the live file. Checked segments are remembered per process by path, size and modification time.
155
+ - Readers see segments in order, then the live file. They skip a live record only when its sequence number is at or below the newest one actually read from a segment (`readLogLines`, `readLogTextSync`, `readLogHeadSync`), or held by a segment that passed the check (`readLogTail`, `readLogTailSync`; they skip a damaged segment, report it and continue with older sound ones). That covers the copied record and a seal interrupted before the live file was replaced, and a damaged segment never hides live records. The next seal continues where it stopped and removes leftover `.tmp` files.
156
+ - Sequence recovery (`readLatestSeq`) uses the live tail and the highest sequence number any segment name has claimed, `*.damaged-*` names included (`highestNamedSeq`), so a number is never reused, even after a damaged segment is moved aside or across a restart. A release that reads only `events.jsonl` still finds the copied record, so its sequence continues without duplicates; it just shows the unsealed part of the history.
157
+ - 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.
158
+ - A log whose `log-format.json` names a newer format is not written to; events still reach open tabs.
159
+ - Every reader goes through `eventLog.ts`: `readLogLines`, `readLogText`, `readLogTail`, `readLogHeadSync`, `readLogTailSync`. Do not open `events.jsonl` directly in new code.
160
+ - 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`).
161
+ - `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 refuses while Arco is running and skips a linked `.arco`, `.arco/workflows` or conversation folder.
162
+
134
163
  `parentEventSeq` links each event back to its predecessor in the workflow's events.jsonl. For linear workflows this equals `seq - 1`, so it's redundant; the field exists so forks can express a non-linear parent (the new branch's first event points back to the fork point, not the immediately previous seq) without a second schema bump. Absent on the very first event in a workflow and on every event in older (`schemaVersion: 1`) workflows. Readers treat absent as "previous event in seq order" - both wire (`WorkflowEvent`) and disk readers should handle the absent case.
135
164
 
136
165
  Persisted event kinds introduced with the schema bump (no emitters at the time they were added):
@@ -222,7 +251,7 @@ Called when deciding between replay and snapshot-only. If `clientLastSeq + 1 < f
222
251
  See [`PROTOCOL.md`](PROTOCOL.md) for the full breakdown. Briefly:
223
252
 
224
253
  - **Persisted** (workflowId-scoped): `user_message_echo`, `primary_*`, `worker_*` (except `worker_activity`), `review_*`, `handoff_*`, `spawn_from_here_*` (most), `system_notice`, `queued_message_cancelled`, `plan_attached/detached`, `conversation_changed`, and `workflow_created`. Other persisted events support specific durable features: `operator_label` and `queue_update` support HISTORY and queue replay; `branch_summary` remains reserved; `task_started`, `task_status`, `plan_set`, and `plan_exited` are written to the parent workflow; `hook_rewrote_input`, `tool_gate_triggered`, and `ctx_action` record Native tool changes; `tool_filtered` records filtered output and stores recoverable raw output when filtering changes the bytes; `context_folded` and `tool_evicted` reset Native replay state and retain raw tool output; `gate_required`, `gate_resolved`, and `gate_standing` form the approval audit; `leaf_move` records conversation rewinds; `tool_posture_set` records the session-local tool posture; `peer_message_sent`, `peer_message_received`, `peer_send_rejected`, and `cluster_auto_turn_fired` record cluster messaging; `native_compacted` is a replay marker for Native compaction; `task_ledger_event` rebuilds task state and comments; and `goal_set` records the North Star value after it is durable. Raw filtered and evicted outputs are compressed under `artifacts/raw-tools/` and referenced by their events.
225
- - **Transient** (broadcast but not persisted): `connected`, `quota_status`, `context_usage`, `session_entry` (the JSONL is the source of truth elsewhere), `session_history_status`, `worker_activity`, `primary_activity`, `workflow_state_snapshot`, `shutdown`, `error`, `capabilities_*`, `spawn_from_here_complete`, `queued_messages_drained` (drain confirmation), `codex_token_snapshot` (derived from the on-disk rollout), `todos_updated` (Native worker holds canonical state), `context_budget` (token-budget meter - derived each turn from the persisted `lastPromptTokens`, never persisted itself), `ultracode_fleet_progress` (- live per-turn snapshot of the background subagent fleet; like `context_usage` a snapshot replaces the prior in place, never landed in events.jsonl).
254
+ - **Transient** (broadcast but not persisted): `connected`, `quota_status`, `context_usage`, `session_entry` (the JSONL is the source of truth elsewhere), `session_history_status`, `worker_activity`, `primary_activity`, `workflow_state_snapshot`, `shutdown`, `error`, `capabilities_*`, `spawn_from_here_complete`, `queued_messages_drained` (drain confirmation), `codex_token_snapshot` (derived from the on-disk rollout), `todos_updated` (Native worker holds canonical state), `context_budget` (token-budget meter - derived each turn from the persisted `lastPromptTokens`, never persisted itself), `ultracode_fleet_progress` (- live per-turn snapshot of the background subagent fleet; like `context_usage` a snapshot replaces the prior in place, never landed in events.jsonl), `task_ledger_snapshot` (since 0.1.4; the full board copy is sent through `sendWorkflowLive`; `task_ledger_event` stays persisted and the board lives in `project/tasks.json`).
226
255
 
227
256
  The transient set is derived state; if the client disconnects and reconnects, the snapshot reconstructs them.
228
257
 
@@ -613,6 +642,7 @@ Proposals are stored only while they are pending operator action (accept / apply
613
642
  ├── models.md # vestigial model catalog (Settings-editable, unconsumed - see below)
614
643
  ├── llamacpp.json # GGUF catalog (alias -> ggufPath + options)
615
644
  ├── known-cwds.json # crash-recovery registry
645
+ ├── storage-policy.json # { autoArchiveClosedDays, budgetGiB, budgetNotice } (storageOverview.ts); auto-archive off by default
616
646
  ├── workspace.json # server-authoritative open tabs: { version, workflows: {wfid -> {config, parentWorkflowId?, openedAt}}, clusters: [id] } (workspace.ts; workspace-<port>.json off 3001)
617
647
  ├── worker-pids.json # live worker PIDs + start times for orphan reaping
618
648
  ├── terminal-pids.json # same shape, terminal PTYs (terminal/ptyPidRegistry.ts)
@@ -17,5 +17,12 @@ steps in one place.
17
17
  A cluster without a plan offers DRAFT A PLAN, ATTACH EXISTING, and NOT NOW;
18
18
  NOT NOW is remembered for that cluster in the browser.
19
19
 
20
+ For a project that is public, or will be, tick **This project is public (or
21
+ will be)** beside the draft choices. The draft then also asks for a "Privacy
22
+ and public safety" section. For a plan that already exists, **INSERT GUARDRAILS**
23
+ adds the same section as an unsaved edit. A quiet notice offers **RESTORE IGNORE
24
+ FILE**, **STOP TRACKING** and **DISMISS** when Git tracks or does not ignore the
25
+ project's `.arco` folder. See the manual section "Working on a public project".
26
+
20
27
  For setup, see [Create a first cluster](GETTING_STARTED.md#create-a-first-cluster).
21
28
  For board controls, see [Task ledger](TASK_LEDGER.md).
@@ -63,7 +63,7 @@ Two additional surfaces, DOCS and GIT, reuse the primary-turn machinery to dispa
63
63
 
64
64
  ### SECOND OPINION: reply drafts (`purpose: 'reply-draft'`)
65
65
 
66
- The same machinery drafts replies for a worker. The request adds `purpose: 'reply-draft'`, `context` (the selected messages and, by switch, the tab's last three turns; the server keeps the last 24 KB) and `fileAccess` (default false). The server builds each leg's task with `buildReplyDraftTask` in `server/src/primitives/runCompare.ts`: instructions to draft only the reply text, the context, then the question. `fileAccess` off keeps the empty tool list; on, `readOnlyFileTools` gives Read, Grep and Glob (Claude and the local runtimes; Codex stays in its read-only sandbox), never Write, Bash, web tools or MCP. `compare_started` echoes `purpose` so the overlay says DRAFTS, shows PICK THIS DRAFT and, on the picked and synthesized panes, USE THIS REPLY. That button writes the text into the source tab's composer draft through `useDraftStore.applyTidy`, so the previous composer text stays available through UNDO, and sends nothing. The operator's pick is also counted per `provider/model` in browser local storage (`client/src/utils/secondOpinionTally.ts`) and listed in the dialog. The synthesize leg reuses the stored task.
66
+ The same machinery drafts replies for a worker. The request adds `purpose: 'reply-draft'`, `context` (the selected messages and, by switch, the tab's last three turns, on by default when no messages are selected; the server keeps the last 24 KB) and `fileAccess` (default false). The dialog summarizes the included context, its approximate size and file access before sending. The server builds each leg's task with `buildReplyDraftTask` in `server/src/primitives/runCompare.ts`: instructions to draft only the reply text, the context, then the question. `fileAccess` off keeps the empty tool list; on, `readOnlyFileTools` gives Read, Grep and Glob (Claude and the local runtimes; Codex stays in its read-only sandbox), never Write, Bash, web tools or MCP. `compare_started` echoes `purpose` so the overlay says DRAFTS, shows PICK THIS DRAFT and, on the picked and synthesized panes, USE THIS REPLY. That button writes the text into the source tab's composer draft through `useDraftStore.applyTidy`, so the previous composer text stays available through UNDO, and sends nothing. The operator's pick is also counted per `provider/model` in browser local storage (`client/src/utils/secondOpinionTally.ts`) and listed in the dialog. The synthesize leg reuses the stored task.
67
67
 
68
68
  ### Server-side flow
69
69
 
@@ -828,7 +828,7 @@ Two operator-armed surfaces overlay onto every member's per-turn system context
828
828
 
829
829
  - The `PLAN` sub-tab in `ClusterRightPanel` (textarea + char-count; soft warn at 28672 chars, hard reject at 32768).
830
830
  - The `PROMOTE TO CLUSTER` button on a per-workflow PLAN tab (gated on cluster membership, confirms via `window.confirm`).
831
- - The `ATTACH TO CLUSTER` button on a worker's `PlanCandidateBanner` (mounts only on cluster-member tabs). Saves the plan record per-cwd like the existing `ATTACH TO WORKER` button does, but routes the body to the cluster's shared PLAN via `cluster_plan_set` instead of attaching to the worker's per-tab slot. The banner shows three buttons in a member tab - `ATTACH TO WORKER` / `ATTACH TO CLUSTER` / `DISCARD`; standalone tabs see only the first and third.
831
+ - The `ATTACH TO CLUSTER` button on a worker's `PlanCandidateBanner` (mounts only on cluster-member tabs). Saves the plan record per-cwd and routes the body to the cluster's shared PLAN via `cluster_plan_set`. It is the only save button in a member tab (`ATTACH TO CLUSTER` / `REFINE` / `DISCARD`); standalone tabs see `SAVE & ATTACH` / `REFINE` / `DISCARD`.
832
832
 
833
833
  The body is injected as a forced system block immediately after the worker's `FORCED_FIRST_BLOCK` and before the operator's `appendSystemPrompt` / `systemPrompt` - every member's next turn reads it. `CLEAR PLAN` deletes `plan.md` from disk; subsequent turns no longer see the block. Hard cap `PLAN_MAX_BYTES = 32768` enforced server-side; oversize requests are rejected with a `NotificationToasts` error.
834
834
 
@@ -1168,7 +1168,7 @@ A propose-only primitive that compacts a long-lived agent-instruction file (`CLA
1168
1168
 
1169
1169
  ### Trigger
1170
1170
 
1171
- The operator opens the **TUNE MD** dialog (`client/src/components/MdTuneupDialog.tsx`), which fires `md_tuneup_candidates_request`. The server answers with `md_tuneup_candidates { candidates[], defaultPath? }` - `discoverInstructionFiles` (`server/src/primitives/runMdTuneup.ts`) walks the cwd (bounded depth 6, skipping `node_modules` / `.git` / `.arco` / build dirs) and collects every `INSTRUCTION_FILE_NAMES` match, shallowest-first; `defaultPath` pre-selects the file matching the tab's primary provider (Claude->`CLAUDE.md`, Codex->`AGENTS.md`). The operator picks the target + an agent via the **RUN AS picker** and dispatches `md_tuneup_request { editor, target }` (`target` is `'auto'` or a repo-relative path).
1171
+ The operator opens the **TUNE MD** dialog (`client/src/components/MdTuneupDialog.tsx`), which fires `md_tuneup_candidates_request`. The server answers with `md_tuneup_candidates { candidates[], defaultPath? }` - `discoverInstructionFilesWithLinks` (`server/src/primitives/runMdTuneup.ts`) walks the cwd (bounded depth 6, skipping `node_modules` / `.git` / `.arco` / build dirs) and collects every `INSTRUCTION_FILE_NAMES` match, shallowest-first; `defaultPath` pre-selects the file matching the tab's primary provider (Claude->`CLAUDE.md`, Codex->`AGENTS.md`). Recognized links to a listed in-project candidate appear as other names on its card and in VIEW; links outside the project or to unlisted or unresolved targets are shown as skipped. Links are never write targets. The operator picks the target + an agent via the **RUN AS picker** and dispatches `md_tuneup_request { editor, target }` (`target` is `'auto'` or a repo-relative path).
1172
1172
 
1173
1173
  Before dispatch, each candidate shows its line count, approximate tokens (UTF-8 bytes divided by four), and deterministic hints for dated or session-log headings, repeated nontrivial lines, and length over 200 lines or approximately 2,000 tokens. VIEW fetches the current text through the existing guarded file-content route. Files over 2 MiB show a limit notice instead of a text preview or complete analysis.
1174
1174
 
package/docs/PROTOCOL.md CHANGED
@@ -1190,7 +1190,7 @@ Fired on operator-driven `plan_detach`, `detachAllForPlan` (mark-complete or har
1190
1190
 
1191
1191
  ### `plan_candidate_ready` <-
1192
1192
 
1193
- Cluster-member plan-creation choice point. When a worker that is a member of a cluster produces a plan via an auto-attach path (Native `EnterPlanMode`, or the `PlanComposerDialog` AUTOSAVE button), the server skips the silent worker-attach and emits this event instead. The client lands it in `JobState.planCandidate` so `PlanCandidateBanner` renders the three-button choice (SAVE & ATTACH TO WORKER / ATTACH TO CLUSTER / DISCARD). Non-cluster workflows never see this message - the existing `plan_set` auto-attach pipeline is unchanged for them. `plan_set` STILL fires alongside this message (for events.jsonl audit); only the `handlePlanAttach` side-effect is gated when the workflow is in a cluster.
1193
+ Cluster-member plan-creation choice point. When a worker that is a member of a cluster produces a plan via an auto-attach path (Native `EnterPlanMode`, or the `PlanComposerDialog` AUTOSAVE button), the server skips the silent worker-attach and emits this event instead. The client lands it in `JobState.planCandidate` so `PlanCandidateBanner` renders its choice (ATTACH TO CLUSTER / REFINE / DISCARD). Non-cluster workflows never see this message - the existing `plan_set` auto-attach pipeline is unchanged for them. `plan_set` STILL fires alongside this message (for events.jsonl audit); only the `handlePlanAttach` side-effect is gated when the workflow is in a cluster.
1194
1194
 
1195
1195
  ```ts
1196
1196
  {
@@ -2362,8 +2362,8 @@ Every message in this family carries an optional `boardKey?: TaskBoardKey`. Abse
2362
2362
  ### `task_ledger_create` -> / `task_ledger_update` -> / `task_ledger_delete` ->
2363
2363
 
2364
2364
  ```ts
2365
- { type: 'task_ledger_create', workflowId: string, title: string, notes?, links?: TaskLink[], priority?, parentIds?, reviewRequired?, goalMode?, goalMaxTurns?, worktreeRequired? } // always lands as 'todo'
2366
- { type: 'task_ledger_update', workflowId: string, id: string, title?, status?, notes?, links?, priority?, parentIds?, blockedReason?, reviewRequired?, goalMode?, goalMaxTurns?, assignee?, worktreeRequired? } // only path that may set status: 'done' / 'archived'
2365
+ { type: 'task_ledger_create', workflowId: string, title: string, notes?, links?: TaskLink[], priority?, parentIds?, reviewRequired?, goalMode?, goalMaxTurns?, worktreeRequired?, release? } // always lands as 'todo'
2366
+ { type: 'task_ledger_update', workflowId: string, id: string, title?, status?, notes?, links?, priority?, parentIds?, blockedReason?, reviewRequired?, goalMode?, goalMaxTurns?, assignee?, worktreeRequired?, release? } // release '' clears the label; only path that may set status: 'done' / 'archived'
2367
2367
  { type: 'task_ledger_delete', workflowId: string, id: string }
2368
2368
  ```
2369
2369
 
@@ -2449,12 +2449,22 @@ optional dispatch not producing terminal statuses.
2449
2449
 
2450
2450
  ### `task_ledger_snapshot` <-
2451
2451
 
2452
- The live client snapshot is still the full cwd-scoped task list. Broadcast after every mutation and on connect/rehydrate. `cwd` is the authoritative key the client stores under. Durable comments/runs are available through the task-kernel projection and `cluster_task_show`, not this WS snapshot.
2452
+ The live client snapshot is still the full cwd-scoped task list. Sent live after every mutation and on connect/rehydrate; it is not written to `events.jsonl` (since 0.1.4; older logs still hold copies, which replay as before). `cwd` is the authoritative key the client stores under. Durable comments/runs are available through the task-kernel projection and `cluster_task_show`, not this WS snapshot.
2453
2453
 
2454
2454
  ```ts
2455
2455
  { type: 'task_ledger_snapshot', workflowId: string, cwd: string, tasks: LedgerTask[] }
2456
2456
  ```
2457
2457
 
2458
+ ### `storage_warning` <-
2459
+
2460
+ Sent and logged after a turn ends when an artifact file reaches 1 GiB or a conversation's artifacts reach 5 GiB (`ARCO_ARTIFACT_WARN_FILE_BYTES` and `ARCO_ARTIFACT_WARN_CONVERSATION_BYTES` override them). Each item warns once; the conversation total warns again only after it grows by another threshold. Kept items (`keep.json`) never warn; approving a warning sets KEEP with reason `size-warning`. `server/src/storageWarnings.ts`.
2461
+
2462
+ ```ts
2463
+ { type: 'storage_warning', workflowId: string,
2464
+ items: Array<{ path: string; bytes: number; kind: 'file' | 'conversation' }>, // path relative to the conversation folder
2465
+ fileThresholdBytes: number, conversationThresholdBytes: number }
2466
+ ```
2467
+
2458
2468
  ### `task_ledger_event` <-
2459
2469
 
2460
2470
  The durable per-mutation event - what lands in `events.jsonl` and what `rebuildFromEvents` folds. Persisted (the snapshot above is a convenience for live clients; this is the projection's source).
@@ -482,13 +482,14 @@ Cluster-level remote-management and gate switches. `cluster_remote_set` (◉ REM
482
482
 
483
483
  ### `cluster_plan_changed` <-
484
484
 
485
- server-side audit row for plan body edits (set or cleared). `body` carries the new full text (empty string = cleared). `bodyLength` duplicates `body.length` for events.jsonl scans that don't want to parse the body. `updatedAt` is wall-clock ms. Fires alongside a `cluster_state` push that carries the same body inline on `state.plan`.
485
+ server-side audit row for plan body edits (set or cleared). The live push carries `body`, the new full text (empty string = cleared). The copy written to each member's `events.jsonl` carries `bodySha256` instead: the body is stored once in `<cwd>/.arco/plans/.history/<sha256>.md` (since 0.1.4; older logs carry `body`, and a cleared plan or a body that could not be stored keeps `body`). `bodyLength` duplicates the body length for scans that don't want to parse the body. `updatedAt` is wall-clock ms. Fires alongside a `cluster_state` push that carries the same body inline on `state.plan`.
486
486
 
487
487
  ```ts
488
488
  {
489
489
  type: 'cluster_plan_changed',
490
490
  clusterId: string,
491
- body: string, // '' when cleared
491
+ body?: string, // '' when cleared; absent in the logged copy
492
+ bodySha256?: string, // logged copy: name of the plan history file
492
493
  updatedAt: number,
493
494
  bodyLength: number,
494
495
  }
@@ -35,7 +35,7 @@ Direct service commands are:
35
35
  | `arco service restart` | Stop and start the service |
36
36
  | `arco service status` | Show supervisor status |
37
37
  | `arco service logs` | Print recent logs (on Windows also the raw output files) |
38
- | `arco service refresh` | Windows: move an older Arco-owned task definition to the current one |
38
+ | `arco service refresh` | Linux and Windows: update an unmodified Arco-owned service definition |
39
39
 
40
40
  | Platform | Installed definition |
41
41
  | --- | --- |
@@ -48,6 +48,10 @@ environment values are saved at first install. Reinstalling an owned definition
48
48
  keeps that configuration. Arco refuses an existing definition it does not own
49
49
  and refuses to operate on an owned definition that was modified afterward.
50
50
 
51
+ On Linux, the Arco home used as the service working directory must be an absolute path without whitespace, control characters, or quotes. `arco service refresh` updates an unmodified Arco-owned unit and reloads systemd. Future package updates refresh the unit before restarting it. An edited unit is left untouched.
52
+
53
+ For an affected 0.1.3 Linux installation, its updater cannot refresh the older unit and may roll back when restarting fails. Install the newer package with `npm install -g arco-workbench`, then run `arco service refresh` and `arco service start`.
54
+
51
55
  The package uses port 3001 when available, then the next available port through
52
56
  3099, and finally an operating-system-assigned port. A selected port is saved
53
57
  and reused. If it becomes unavailable, the next start selects a free port,
package/docs/SETTINGS.md CHANGED
@@ -64,8 +64,8 @@ Sections: 25.
64
64
  | `llamacpp-catalog` | Providers and models | llama.cpp model registry | Global | llama.cpp registry editor and preload (shown when llama.cpp is enabled and installed) |
65
65
  | `catalog` | Providers and models | Model catalog | Global | Model catalog editor |
66
66
  | `auto-handoff-defaults` | Agents and clusters | Auto-handoff defaults | Global, for new workflows | Off by default; auto-handoff thresholds and summarizer, with Quick or written modes |
67
- | `utility-agent` | Agents and clusters | Utility agent | Global | Provider and model for side jobs (Claude Native, Cursor, Codex, or Ollama); TEST, CLEAR; not chosen until saved. See [Utility agent](#utility-agent) |
68
- | `notification-channels` | Notifications | Desktop and phone notifications | Global (switches kept by the server; the desktop permission is per browser) | Events (finished, failed, waiting) by place (this computer, phone); ntfy server, topic with GENERATE, optional token, TEST; message text switch; cluster finished source. See [Notifications](NOTIFICATIONS.md) |
67
+ | `utility-agent` | Agents and clusters | Utility agent | Global | Provider and model for side jobs (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl); TEST, CLEAR; not chosen until saved. See [Utility agent](#utility-agent) |
68
+ | `notification-channels` | Notifications | Desktop and phone notifications | Global (switches kept by the server; the desktop permission is per browser) | Events (finished, failed, waiting) by place (this computer, phone); browser permission and desktop TEST; SHOW IN BELL controls quiet notices for other tabs; ntfy server, topic with GENERATE, optional token, TEST; message text switch; cluster finished source. See [Notifications](NOTIFICATIONS.md) |
69
69
  | `board-auto-done` | Agents and clusters | Board auto-done | Global | Checkbox that marks review tasks done when the director signs off as met |
70
70
  | `skills` | Agents and clusters | Skills | Global or project (the active tab's folder) | Global and project skill lists, new, edit and delete |
71
71
  | `handoff-prompts` | Agents and clusters | Handoff prompts | Global or project (the active tab's folder) | Handoff prompt overrides per mode |
@@ -152,15 +152,17 @@ outside a workflow turn: **BRIEF**, **CATCH ME UP**, **TIDY**, and the shared
152
152
  no-tools runner those buttons use. It lives in Settings > Agents and clusters
153
153
  and is also offered (never selected silently) on the last Welcome screen.
154
154
 
155
- Accepted providers: Claude with Native sign-in, Cursor, Codex, and Ollama. Claude
156
- CLI alone cannot serve. Codex runs as a one-shot app-server in an empty temporary
155
+ Accepted providers: Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, and DeepSeek through Xolotl. Claude
156
+ CLI alone cannot serve. Local choices other than Ollama require the selected model
157
+ to already be loaded; Arco does not load or switch a model for these jobs.
158
+ Codex runs as a one-shot app-server in an empty temporary
157
159
  folder with a read-only sandbox, no MCP servers and web search off; any tool
158
160
  item or approval request ends the request. The choice is unset until saved. **TEST** runs one bounded request;
159
161
  **CLEAR** removes the saved choice. **USE UTILITY AGENT** on Smart AUTO-PICKUP,
160
162
  Research, document edit, and handoff summarizer pickers
161
163
  fills the choice into that picker without changing other saved selections.
162
164
  BRIEF, CATCH ME UP, and TIDY need a utility agent before they run. TIDY
163
- **ACCEPT** only replaces the composer draft and never sends. Failed requests show the cause when available and identify the model that was tried.
165
+ **ACCEPT** only replaces the composer draft and never sends. Failed requests show the cause when available and identify the model that was tried. Unsupported non-text content and replies that are too long or cut off are reported instead of used.
164
166
 
165
167
  ### AUTO-PICKUP
166
168
 
@@ -168,7 +170,7 @@ AUTO-PICKUP is a per-cluster control on the cluster right-panel header (default
168
170
  Off), not a Settings page. Modes: Off, Rule-based (recommended deterministic wake on idle
169
171
  mail with acknowledgement, loop and adjustable wake-budget guards), Smart: Observe-only (evaluator proposes wake / wait / ask; log only), and
170
172
  Smart: Automatic (wake proposals may start a turn after server gates and
171
- limits). Smart modes need an evaluator (Claude Native, Cursor, Codex or Ollama). The same provider limits apply to the utility agent.
173
+ limits). Smart modes need an evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata or DeepSeek through Xolotl). The same provider limits apply to the utility agent.
172
174
  Limits, session expiry, TURN OFF, STOP holds and counters
173
175
  are described in the in-app manual section AUTO-PICKUP and Smart pickup and in
174
176
  [cluster protocol](PROTOCOL_CLUSTER.md). Evaluator request contents and adapter