@bastani/atomic 0.10.11-alpha.3 → 0.10.11-alpha.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 (288) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/_shared/dist-KOELCESV.js +2 -2
  3. package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
  4. package/dist/_shared/lib-4PES5P4V.js +2 -2
  5. package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +4 -4
  6. package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +4 -4
  7. package/dist/_shared/mode-shared-2QJSCUM6.js +4 -4
  8. package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
  9. package/dist/_shared/p1b-elig-TVB5CBLL.js +22 -6
  10. package/dist/_shared/p1b-elig-TVB5CBLL.js.map +1 -1
  11. package/dist/_shared/p2-shell-main-B2WIALFD.js +6 -3
  12. package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
  13. package/dist/_shared/runtime-O4KCSG4C.js +2 -2
  14. package/dist/_shared/sdk-B5LEWGGI.js +899 -515
  15. package/dist/_shared/sdk-B5LEWGGI.js.map +1 -1
  16. package/dist/_shared/session-data-AHTU7IS6.js +2 -2
  17. package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
  18. package/dist/_shared/{startup-0-0-EZUKEP4Q.js → startup-0-0-XJJDOIEC.js} +6 -12
  19. package/dist/_shared/{startup-0-0-EZUKEP4Q.js.map → startup-0-0-XJJDOIEC.js.map} +1 -1
  20. package/dist/_shared/{startup-0-1-RTOHJFDJ.js → startup-0-1-M6OWAYHH.js} +354 -103
  21. package/dist/_shared/startup-0-1-M6OWAYHH.js.map +1 -0
  22. package/dist/_shared/startup-0-2-5QHPCEON.js +18 -9
  23. package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
  24. package/dist/_shared/startup-0-3-4ZYBYQNM.js +4 -4
  25. package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
  26. package/dist/_shared/startup-0-5-YDW47QX6.js +4 -4
  27. package/dist/_shared/startup-10-0-TDQNBDDL.js +4 -4
  28. package/dist/_shared/startup-12-0-55AAXBJZ.js +1 -1
  29. package/dist/_shared/startup-14-0-MLX36RBG.js +2 -2
  30. package/dist/_shared/startup-15-0-YUKGAC63.js +2 -2
  31. package/dist/_shared/startup-15-1-4S7FLMNG.js +4 -4
  32. package/dist/_shared/startup-8-0-34CBHPZH.js +2114 -235
  33. package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
  34. package/dist/_shared/startup-8-1-LZFXSD3Z.js +12 -12
  35. package/dist/_shared/storage-command-7MGXLJGZ.js +6 -6
  36. package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
  37. package/dist/_shared/storage-status-K7PX2RXA.js +2 -2
  38. package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
  39. package/dist/_shared/team-DOQKICG2.js +1 -1
  40. package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
  41. package/dist/builtin/intercom/CHANGELOG.md +19 -0
  42. package/dist/builtin/intercom/broker/broker.bundle.mjs +1020 -108
  43. package/dist/builtin/intercom/broker/client.ts +8 -0
  44. package/dist/builtin/intercom/broker/database-wake-up-bus.ts +91 -14
  45. package/dist/builtin/intercom/broker/multinode-router.ts +102 -17
  46. package/dist/builtin/intercom/broker/multinode-state-store.ts +41 -2
  47. package/dist/builtin/intercom/broker/send-order-gate.ts +5 -2
  48. package/dist/builtin/intercom/broker/sql-add-column.ts +22 -1
  49. package/dist/builtin/intercom/broker/sql-lease-store.ts +304 -48
  50. package/dist/builtin/intercom/broker/sql-outbox-store.ts +541 -50
  51. package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +239 -8
  52. package/dist/builtin/intercom/broker/sql-retention.ts +11 -2
  53. package/dist/builtin/intercom/broker/sql-schema.ts +42 -8
  54. package/dist/builtin/intercom/index.bundle.mjs +13 -2
  55. package/dist/builtin/intercom/package.json +1 -1
  56. package/dist/builtin/mcp/index.bundle.mjs +1 -1
  57. package/dist/builtin/mcp/package.json +1 -1
  58. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  59. package/dist/builtin/subagents/package.json +1 -1
  60. package/dist/builtin/subagents/skills/skill-creator/eval-viewer/generate_review.py +8 -1
  61. package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
  62. package/dist/builtin/web-access/index.bundle.mjs +1 -1
  63. package/dist/builtin/web-access/package.json +1 -1
  64. package/dist/cli/args.js +2 -2
  65. package/dist/cli/auth-cli.code.js +2 -2
  66. package/dist/cli/auth-cli.impl.js +3 -3
  67. package/dist/cli/auth-cli.js +3 -3
  68. package/dist/cli/blueprint-command.code.js +1 -1
  69. package/dist/cli/blueprint-command.impl.js +3 -3
  70. package/dist/cli/blueprint-command.js +3 -3
  71. package/dist/cli/intercom-command.code.js +2 -2
  72. package/dist/cli/intercom-command.impl.js +3 -3
  73. package/dist/cli/intercom-command.js +3 -3
  74. package/dist/cli/list-models.code.js +2 -2
  75. package/dist/cli/list-models.impl.js +3 -3
  76. package/dist/cli/list-models.js +3 -3
  77. package/dist/cli/session-picker.code.js +1 -1
  78. package/dist/cli/session-picker.impl.js +3 -3
  79. package/dist/cli/session-picker.js +3 -3
  80. package/dist/cli/startup-ui.code.js +1 -1
  81. package/dist/cli/startup-ui.impl.js +3 -3
  82. package/dist/cli/startup-ui.js +3 -3
  83. package/dist/cli/storage-command.impl.js +3 -3
  84. package/dist/cli/storage-command.js +3 -3
  85. package/dist/cli/storage-search-session.code.js +1 -1
  86. package/dist/cli/storage-search-session.impl.js +3 -3
  87. package/dist/cli/storage-search-session.js +3 -3
  88. package/dist/cli/team-command.code.js +1 -1
  89. package/dist/cli/team-command.impl.js +3 -3
  90. package/dist/cli/team-command.js +3 -3
  91. package/dist/cli.js +2 -2
  92. package/dist/core/debug.impl.js +3 -3
  93. package/dist/core/debug.js +3 -3
  94. package/dist/core/export-html/card-projection.impl.js +3 -3
  95. package/dist/core/export-html/card-projection.js +3 -3
  96. package/dist/core/export-html/index.code.js +4 -4
  97. package/dist/core/export-html/index.code.js.map +1 -1
  98. package/dist/core/export-html/index.impl.js +3 -3
  99. package/dist/core/export-html/index.js +3 -3
  100. package/dist/core/export-html/json-spans.impl.js +3 -3
  101. package/dist/core/export-html/json-spans.js +3 -3
  102. package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
  103. package/dist/core/export-html/oversized-render-inputs.js +3 -3
  104. package/dist/core/export-html/tool-renderer.impl.js +3 -3
  105. package/dist/core/export-html/tool-renderer.js +3 -3
  106. package/dist/core/extensions/jiti-loader.impl.js +3 -3
  107. package/dist/core/extensions/jiti-loader.js +3 -3
  108. package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
  109. package/dist/core/extensions/jiti-static-loader.js +3 -3
  110. package/dist/core/extensions/loader-host-modules.code.js +1 -1
  111. package/dist/core/extensions/loader-host-modules.impl.js +3 -3
  112. package/dist/core/extensions/loader-host-modules.js +3 -3
  113. package/dist/core/extensions/loader-virtual-modules.js +1 -1
  114. package/dist/core/extensions/runner-context.js +1 -1
  115. package/dist/core/intercom-broker-control-host.impl.js +3 -3
  116. package/dist/core/intercom-broker-control-host.js +3 -3
  117. package/dist/core/intercom-broker-control.code.js +3 -3
  118. package/dist/core/intercom-broker-control.impl.js +3 -3
  119. package/dist/core/intercom-broker-control.js +3 -3
  120. package/dist/core/package-manager-storage-adapters.impl.js +3 -3
  121. package/dist/core/package-manager-storage-adapters.js +3 -3
  122. package/dist/core/process-start-token.d.ts +5 -4
  123. package/dist/core/sdk.code.js +2 -2
  124. package/dist/core/sdk.impl.js +3 -3
  125. package/dist/core/sdk.js +3 -3
  126. package/dist/core/session-manager-core.js +4 -4
  127. package/dist/core/session-manager-list.impl.js +3 -3
  128. package/dist/core/session-manager-list.js +3 -3
  129. package/dist/core/session-manager.code.js +1 -1
  130. package/dist/core/session-manager.impl.js +3 -3
  131. package/dist/core/session-manager.js +3 -3
  132. package/dist/core/session-storage.impl.js +3 -3
  133. package/dist/core/session-storage.js +3 -3
  134. package/dist/core/storage/database.d.ts +6 -0
  135. package/dist/core/storage/database.js.map +1 -1
  136. package/dist/core/storage/fenced-paths.d.ts +7 -6
  137. package/dist/core/storage/fenced-paths.js +7 -6
  138. package/dist/core/storage/fenced-paths.js.map +1 -1
  139. package/dist/core/storage/index.js +2 -2
  140. package/dist/core/storage/node-sqlite-thread.js +209 -19
  141. package/dist/core/storage/node-sqlite-thread.js.map +1 -1
  142. package/dist/core/storage/node-sqlite.js +435 -71
  143. package/dist/core/storage/node-sqlite.js.map +1 -1
  144. package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
  145. package/dist/core/storage/offline-snapshot-file.js +3 -3
  146. package/dist/core/storage/provider.js +2 -2
  147. package/dist/core/storage/schema-catalog.d.ts +69 -7
  148. package/dist/core/storage/schema-catalog.js +352 -61
  149. package/dist/core/storage/schema-catalog.js.map +1 -1
  150. package/dist/core/storage/selection.js +2 -2
  151. package/dist/core/storage/session/branch-fork-source.code.js +2 -2
  152. package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
  153. package/dist/core/storage/session/branch-fork-source.js +3 -3
  154. package/dist/core/storage/session/card-view.impl.js +3 -3
  155. package/dist/core/storage/session/card-view.js +3 -3
  156. package/dist/core/storage/session/child-reader.code.js +3 -3
  157. package/dist/core/storage/session/child-reader.impl.js +3 -3
  158. package/dist/core/storage/session/child-reader.js +3 -3
  159. package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
  160. package/dist/core/storage/session/chunked-resume-projection.js +3 -3
  161. package/dist/core/storage/session/expanded-child-details.code.js +2 -2
  162. package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
  163. package/dist/core/storage/session/expanded-child-details.js +3 -3
  164. package/dist/core/storage/session/fork-detach.d.ts +11 -1
  165. package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
  166. package/dist/core/storage/session/fork-row-bytes.js +3 -3
  167. package/dist/core/storage/session/fork-row-index.impl.js +3 -3
  168. package/dist/core/storage/session/fork-row-index.js +3 -3
  169. package/dist/core/storage/session/fork-staging.code.js +1 -1
  170. package/dist/core/storage/session/fork-staging.impl.js +3 -3
  171. package/dist/core/storage/session/fork-staging.js +3 -3
  172. package/dist/core/storage/session/fork-sweep.js +31 -7
  173. package/dist/core/storage/session/fork-sweep.js.map +1 -1
  174. package/dist/core/storage/session/fork-window.code.js +3 -3
  175. package/dist/core/storage/session/fork-window.impl.js +3 -3
  176. package/dist/core/storage/session/fork-window.js +3 -3
  177. package/dist/core/storage/session/history-pages.impl.js +3 -3
  178. package/dist/core/storage/session/history-pages.js +3 -3
  179. package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
  180. package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
  181. package/dist/core/storage/session/jsonl-session-lock.d.ts +100 -0
  182. package/dist/core/storage/session/jsonl-session-store.d.ts +41 -23
  183. package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
  184. package/dist/core/storage/session/jsonl-session-store.js +3 -3
  185. package/dist/core/storage/session/memory-session-store.impl.js +3 -3
  186. package/dist/core/storage/session/memory-session-store.js +3 -3
  187. package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
  188. package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
  189. package/dist/core/storage/session/pinned-branch-resume.js +3 -3
  190. package/dist/core/storage/session/released-history-files.code.js +8 -8
  191. package/dist/core/storage/session/released-history-files.code.js.map +1 -1
  192. package/dist/core/storage/session/released-history-files.impl.js +3 -3
  193. package/dist/core/storage/session/released-history-files.js +3 -3
  194. package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
  195. package/dist/core/storage/session/resident-fork-rows.js +3 -3
  196. package/dist/core/storage/session/session-resume.impl.js +3 -3
  197. package/dist/core/storage/session/session-resume.js +3 -3
  198. package/dist/core/storage/session/session-search-index.d.ts +9 -1
  199. package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
  200. package/dist/core/storage/session/snapshot-cut.js +3 -3
  201. package/dist/core/storage/session/snapshot-history.code.js +3 -3
  202. package/dist/core/storage/session/snapshot-history.impl.js +3 -3
  203. package/dist/core/storage/session/snapshot-history.js +3 -3
  204. package/dist/core/storage/session/sql-session-store.d.ts +51 -7
  205. package/dist/core/storage/session/sql-session-store.impl.js +3 -3
  206. package/dist/core/storage/session/sql-session-store.js +3 -3
  207. package/dist/core/storage/session/tree-outline.impl.js +3 -3
  208. package/dist/core/storage/session/tree-outline.js +3 -3
  209. package/dist/core/storage/session/tree-presentation.impl.js +3 -3
  210. package/dist/core/storage/session/tree-presentation.js +3 -3
  211. package/dist/core/storage/sqlite-facade.d.ts +6 -0
  212. package/dist/core/storage/sqlite-facade.js +309 -33
  213. package/dist/core/storage/sqlite-facade.js.map +1 -1
  214. package/dist/core/storage/sqlite-open-batch.js +10 -0
  215. package/dist/core/storage/sqlite-open-batch.js.map +1 -0
  216. package/dist/core/storage/storage-status.impl.js +3 -3
  217. package/dist/core/storage/storage-status.js +3 -3
  218. package/dist/core/storage/team.impl.js +3 -3
  219. package/dist/core/storage/team.js +3 -3
  220. package/dist/core/structured-output/index.impl.js +3 -3
  221. package/dist/core/structured-output/index.js +3 -3
  222. package/dist/core/tasks/task-completion-entry.impl.js +3 -3
  223. package/dist/core/tasks/task-completion-entry.js +3 -3
  224. package/dist/core/tasks/task-file-history.code.js +3 -3
  225. package/dist/core/tasks/task-file-history.impl.js +3 -3
  226. package/dist/core/tasks/task-file-history.js +3 -3
  227. package/dist/core/tasks/task-reference-archive.code.js +3 -3
  228. package/dist/core/tasks/task-reference-archive.js +3 -3
  229. package/dist/core/tasks/task-reference-identity.js +3 -3
  230. package/dist/core/tasks/task-reference-stream.impl.js +3 -3
  231. package/dist/core/tasks/task-reference-stream.js +3 -3
  232. package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
  233. package/dist/core/tasks/task-unsaved-answer.js +3 -3
  234. package/dist/core/tasks/task-view-source.impl.js +3 -3
  235. package/dist/core/tasks/task-view-source.js +3 -3
  236. package/dist/core/tools/read-url.code.js +2 -2
  237. package/dist/core/tools/read-url.impl.js +3 -3
  238. package/dist/core/tools/read-url.js +3 -3
  239. package/dist/core/worktree-snapshot/blob-store.d.ts +5 -3
  240. package/dist/core/worktree-snapshot/blob-store.js +151 -21
  241. package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
  242. package/dist/core/worktree-snapshot/errors.code.js +2 -2
  243. package/dist/core/worktree-snapshot/errors.impl.js +3 -3
  244. package/dist/core/worktree-snapshot/errors.js +3 -3
  245. package/dist/core/worktree-snapshot/fork-snapshot-index.js +158 -41
  246. package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -1
  247. package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
  248. package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
  249. package/dist/extensions/codemode/execute.code.js +1 -1
  250. package/dist/extensions/codemode/execute.impl.js +3 -3
  251. package/dist/extensions/codemode/execute.js +3 -3
  252. package/dist/extensions/codemode/renderer.code.js +1 -1
  253. package/dist/extensions/codemode/renderer.impl.js +3 -3
  254. package/dist/extensions/codemode/renderer.js +3 -3
  255. package/dist/extensions/mcp/cli.code.js +1 -1
  256. package/dist/extensions/mcp/cli.impl.js +3 -3
  257. package/dist/extensions/mcp/cli.js +3 -3
  258. package/dist/extensions/mcp/cli.lazy.code.js +2 -2
  259. package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
  260. package/dist/extensions/mcp/cli.lazy.js +3 -3
  261. package/dist/extensions/mcp/runtime.impl.js +3 -3
  262. package/dist/extensions/mcp/runtime.js +3 -3
  263. package/dist/index.js +2 -2
  264. package/dist/main-first-time-setup.code.js +1 -1
  265. package/dist/main-first-time-setup.impl.js +3 -3
  266. package/dist/main-first-time-setup.js +3 -3
  267. package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
  268. package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
  269. package/dist/modes/interactive/components/stored-tree-view.js +3 -3
  270. package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
  271. package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
  272. package/dist/package-manager-cli.code.js +4 -4
  273. package/dist/package-manager-cli.impl.js +3 -3
  274. package/dist/package-manager-cli.js +3 -3
  275. package/dist/rpc-entry.js +1 -1
  276. package/dist/startup-files.json +1 -1
  277. package/dist/startup-stages/3.js +1 -1
  278. package/dist/startup-stages/5.js +1 -1
  279. package/dist/utils/startup-database-spare.code.js +2 -2
  280. package/dist/utils/startup-database-spare.impl.js +3 -3
  281. package/dist/utils/startup-database-spare.js +3 -3
  282. package/dist/utils/tools-manager.code.js +1 -1
  283. package/dist/utils/tools-manager.impl.js +3 -3
  284. package/dist/utils/tools-manager.js +3 -3
  285. package/docs/changelog.mdx +49 -0
  286. package/docs/storage/jsonl.md +3 -3
  287. package/package.json +8 -8
  288. package/dist/_shared/startup-0-1-RTOHJFDJ.js.map +0 -1
@@ -10,6 +10,55 @@ description: "What's new in Atomic"
10
10
  After each release, the publish-release skill regenerates this page in its own docs PR.
11
11
  */}
12
12
 
13
+ <Update label="November 26, 2026" description="0.10.11-alpha.3">
14
+
15
+ Atomic drops libSQL storage and keeps SQLite, PostgreSQL and JSONL, many agents open and share one PostgreSQL database with less waiting, and the storage docs get one page per backend.
16
+
17
+ **Breaking change:** Atomic no longer supports libSQL storage, which covers Turso, self-hosted `sqld` and libSQL `file:` databases. A setting, environment variable, flag or URL that still names libSQL stops Atomic with a `libsql-removed` error that says how to move. To keep your sessions, export them with 0.10.11-alpha.2, for example `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, where `old-storage.json` holds your old `storage` setting. 0.10.10 cannot read a database that 0.10.11-alpha.2 has already upgraded. Then import the sessions with this release into PostgreSQL or into local SQLite with `atomic storage import ~/moved`, and run `atomic remove npm:@bastani/atomic-storage-libsql`. See [Moving off libSQL](https://docs.bastani.ai/storage#moving-off-libsql) ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
18
+
19
+ **Breaking change:** `atomic team join`, `atomic team leave`, `ATOMIC_PROFILE=ci` and the `ATOMIC_TEAM_*` variables are removed with libSQL. Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`, and in CI set `ATOMIC_STORAGE` to a PostgreSQL selection. The SDK's `joinTeam()`, `leaveTeam()` and `teamProfileSelection()` now always throw `libsql-removed`. Pass `createAgentSession({ storage })` a PostgreSQL selection instead ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
20
+
21
+ **Storage and Intercom**
22
+
23
+ - **Many agents can open a new database at once.** On a new PostgreSQL database, one agent creates each table while the others wait for it without holding a lock or a connection. At 80 ms latency behind PgBouncer, 25 agents opening a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and 100 agents all opened in 24 seconds, where 97 used to fail after waiting 30 seconds for a lock. One agent alone opens an empty database in 161 round trips instead of 391. On a new SQLite file, 100 agents opened in about 6 seconds instead of 32 ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
24
+ - **`atomic storage join` takes PostgreSQL URLs only.** It and `atomic storage migrate --db` accept `postgres://` and `postgresql://`. The `@bastani/atomic-storage-libsql` package is no longer published ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
25
+ - **Intercom retries lock timeouts on a busy PostgreSQL database.** A send, a registration renewal, taking waiting messages or confirming a delivery now tries again, up to 5 times, when a lock timeout or deadlock ended it before it wrote anything. A send takes 1 round trip instead of 3 and holds the recipient's lock only while the database runs it. In a load test with 200 agents through PgBouncer, lock timeouts fell from 112 to none ([#6626](https://github.com/bastani-inc/atomic/pull/6626)).
26
+ - **Messages to an offline session stop queueing.** With multi-node routing on PostgreSQL, a message to a session its sender found offline takes 1 round trip instead of about 4 and no longer holds up other messages to that session. With 50 senders to one session at 80 ms latency, the median message took under 1 s instead of about 23 s. Registering a session or a broker takes 1 round trip instead of 3. A broker retrying the cleanup of an ended subagent's delivered messages no longer blocks other writers of the database ([#6636](https://github.com/bastani-inc/atomic/pull/6636)).
27
+ - **One statement text per call on PostgreSQL.** Statements that look up a list of values, and the statement that records several delivered messages, now send the list as one value. PostgreSQL then plans each statement once per connection, and `pg_stat_statements` shows one line for it instead of dozens ([#6644](https://github.com/bastani-inc/atomic/pull/6644)).
28
+ - **Smaller writes per save on PostgreSQL.** Saving a new entry now updates the worktree snapshot index row in place, so the table's other indexes stay about 40% smaller. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a store with more than about 150,000 index rows, only `atomic storage migrate` changes it, without stopping saves ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
29
+ - **Search indexing no longer stalls saves on PostgreSQL.** The write that filled PostgreSQL's 4 MB list of pending search text used to move the whole list into the index while it held the session's lock. Atomic now empties the list in the background on a connection that holds no session lock. A history search's index writes also no longer hold the session's lock, so with searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms. Run `atomic storage migrate` as the owner role to apply the list settings to an existing database ([#6638](https://github.com/bastani-inc/atomic/pull/6638), [#6654](https://github.com/bastani-inc/atomic/pull/6654)).
30
+ - **`atomic storage migrate` tunes PostgreSQL for you.** It sets autovacuum on the busiest small tables, which the tuning guide used to ask you to do by hand, and switches large values to `lz4` compression when the server supports it. In a test with large values from real session history, compressing them took about 60% less time and reading them back 17% to 50% less. A value you set yourself is kept ([#6642](https://github.com/bastani-inc/atomic/pull/6642)).
31
+ - **Fewer round trips before `atomic storage migrate`.** On PostgreSQL, until migrate sets the free-space setting on the sessions and Intercom lease tables, a process checks it once instead of at every store open. A runtime role then opens the session store in 4 round trips instead of 5 ([#6635](https://github.com/bastani-inc/atomic/pull/6635)).
32
+ - **Wake-ups go only to the broker they are for.** With multi-node routing on PostgreSQL, each broker listens on a channel of its own, and a wake-up names the recipient, so the broker reads only that recipient's queue. Sends to one broker that arrive together share one wake-up. Atomic sends a wake-up right after its commit instead of inside it, so commits that send one no longer run one at a time. With 50 or 200 senders, PostgreSQL committed 1.2 to 3.2 times as many wake-ups per second. Brokers of earlier releases still wake and are woken during an upgrade. In the SDK, `StorageNotifications.notify` takes an optional `unless` read ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
33
+ - **One broker cleans up the shared database.** With multi-node routing, one broker at a time cleans up delivered messages and old records every 5 minutes, through indexes, instead of every broker every 30 seconds. With 200 brokers on PostgreSQL, cleanup ran 24 statements a minute instead of 3,377 and read no rows by full table scans instead of 194 million a minute. The index of waiting messages covers only undelivered ones, 0.2 MB instead of 22.6 MB in the same test ([#6675](https://github.com/bastani-inc/atomic/pull/6675)).
34
+ - **Less disk work for Intercom on PostgreSQL.** The lease renewals each broker sends every 10 seconds no longer wait for the server to write them to disk, and a lost renewal is repeated by the next one. In a benchmark the server flushed its log about 90% less often for these writes. The short notices that wake a broker when a message arrives now live in an unlogged table, so each writes about 70% less to the server's log. A crash loses only notices, never messages. An existing database switches when `atomic storage migrate` runs as the owner role. Storage adapters get a `relaxedDurability` transaction option for writes like these ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6639](https://github.com/bastani-inc/atomic/pull/6639)).
35
+ - **The macOS binary brings its own SQLite.** The standalone `atomic` binary on macOS now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the one that comes with macOS. `atomic storage status` shows the SQLite version on a `library:` line ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
36
+
37
+ **Docs**
38
+
39
+ - **One docs page per storage backend.** The storage docs now have their own pages for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, under one Storage group. Old guide links redirect to the new pages. Each page says what it is for, and its settings, commands and error messages were checked against the code ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
40
+ - **The docs site changelog is current again.** The [changelog](https://docs.bastani.ai/changelog) page is now built from each release's summary and lists every release. It had stopped at July 31, 2026 ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
41
+
42
+ **Fixes**
43
+
44
+ - **Messages keep their order when a session changes machines.** When a session moved to the machine of a session sending it messages, a new message from that sender could arrive before older ones still waiting for it. A new message now waits until the sender's older messages have arrived ([#6651](https://github.com/bastani-inc/atomic/pull/6651), [#6637](https://github.com/bastani-inc/atomic/issues/6637)).
45
+ - **Resume after a kill no longer waits 5 minutes.** Resuming a session whose worktree build was cut off, because Atomic was killed just as a build step started, no longer waits 5 minutes before building a fresh worktree on Linux and Windows ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
46
+ - **Compaction keeps long output.** A compaction model such as `morph/morph-compactor` no longer has its output thrown away as "output too long". Before, output over 32,000 estimated tokens failed and the context was cleared, so a 275,000-token result on a 1M-token model was lost. Only limits you set apply: `maxTokens` on the compactor model, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. Atomic no longer compacts long output again before every tool call ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
47
+ - **JSONL sessions survive backdated files on macOS.** A session kept in JSONL files no longer stops accepting messages with "Session conflict" after the file's modified date is set earlier, for example by `touch`, a backup tool that restores dates, or a clock that moves back ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
48
+ - **Extension commands end when Atomic is killed.** An extension's `pi.exec` command still running when Atomic is killed now ends with the processes it started on macOS, and on Linux its child processes end too ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
49
+ - **A clear message on an older Node.js.** On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and names the version it needs, with a link to [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version), instead of failing later with an error that doesn't name the cause. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
50
+ - **`bash` with `pty: true` keeps up on macOS.** A command's terminal output no longer slows to about 150 KB/s. A command that printed 1 MB took about 6.5 seconds and now takes under half a second ([#6634](https://github.com/bastani-inc/atomic/pull/6634)).
51
+ - **Commands start faster on macOS, without `MallocStackLogging` lines.** The task supervisor starts commands with `posix_spawn` instead of `fork()`. With a 3 GB host, starting a command took 0.5 ms instead of 4.4 ms, and the host's JavaScript thread no longer stalls 9 to 18 ms each time. The interactive TUI no longer shows "MallocStackLogging: can't turn off malloc stack logging" for each command after the Mac has been under memory pressure. A command now gets only its standard input, output and error, not other open descriptors ([#6643](https://github.com/bastani-inc/atomic/pull/6643), [#6668](https://github.com/bastani-inc/atomic/pull/6668)).
52
+ - **`atomic storage status` reads closed SQLite stores on macOS.** The standalone `atomic` binary no longer reports a healthy local SQLite store as failed with "unable to open database file (SQLite code 14)" after every Atomic process has closed it, for example right after `atomic storage import` ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
53
+ - **In-place updates keep running processes working.** A process still running 0.10.10 or 0.10.11-alpha.1 code after `npm install -g` or `bun add -g` no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history there ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
54
+ - **Reads see the same store's earlier writes.** A session read, and an Intercom broker's reads of sessions and presences, now wait for writes the same store or broker started before them, so they no longer miss a just-appended entry or a just-taken presence ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
55
+ - **In-place updates keep fork snapshots.** A process still running 0.10.10 or 0.10.11-alpha.1 code after an in-place update no longer deletes worktree snapshots that a fork shares with its parent. The database refuses to delete a snapshot a fork still uses ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
56
+ - **A fork under a deleted session's ID starts empty.** It no longer shows the deleted session's history, and deleting the last fork that still reads the old history no longer removes the new session's entries. Forking one of its forks back into its ID works instead of failing with "Invalid fork segment" ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6676](https://github.com/bastani-inc/atomic/pull/6676)).
57
+ - **Sessions list in the order they registered.** With multi-node routing on PostgreSQL, a broker started before `atomic storage migrate` no longer gives a session registration the same number as another broker, so session lists keep registration order. If the sequence is dropped, registering a session keeps working ([#6630](https://github.com/bastani-inc/atomic/pull/6630)).
58
+ - **A slow `history://` pattern no longer holds up other searches.** A background search whose pattern takes minutes to check moves aside after a fifth of a second, so other history reads and searches carry on instead of running out of time ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
59
+
60
+ </Update>
61
+
13
62
  <Update label="November 26, 2026" description="0.10.11-alpha.2">
14
63
 
15
64
  Forks in a SQLite, libSQL or PostgreSQL session store now read their parent's history instead of copying it, and session and Intercom stores make fewer round trips.
@@ -63,7 +63,7 @@ A file's name is the time the session was created, with `:` and `.` replaced by
63
63
 
64
64
  Atomic can also put these next to the session files:
65
65
 
66
- - **`.session.lock`.** A folder that exists only while a process writes. See [Several Atomic processes](#several-atomic-processes).
66
+ - **`.session.lock` and `.session.lock.*`.** `.session.lock` is a folder present while any Atomic process is writing. Persistent `.session.lock.*` files next to it hold operating-system advisory locks for coordinating concurrent writers. See [Several Atomic processes](#several-atomic-processes).
67
67
  - **Backups before compaction.** Before Atomic [compacts](/compaction) a session, it saves a copy beside the file, named `<session file>.<timestamp>.<label>.bak`. Atomic never deletes these, so remove old ones yourself.
68
68
  - **`tool-results/`.** Long tool output saved in files. Atomic deletes a `tool-results/` folder once its newest file is more than 30 days old.
69
69
 
@@ -73,8 +73,8 @@ To delete a session, delete its `.jsonl` file, or select it in `/resume`, press
73
73
 
74
74
  Several Atomic processes on one machine can use the same directory at once:
75
75
 
76
- - **One writer at a time.** Before it writes, a process takes the `.session.lock` folder in the directory, and other processes wait for it. If a process exits while it holds the lock, another process takes the lock over after about 10 seconds.
77
- - **Grouped writes.** Saves that queue up while another save holds the lock are written together under one lock.
76
+ - **Operating-system advisory locks and per-session-file locking.** Writers coordinate through OS advisory locks (`flock` on Unix, `LockFileEx` on Windows) while holding the `.session.lock` folder together as a group so older Atomic versions remain excluded. Writes to different session files run concurrently across a fixed set of striped lock files, while writes to the same session file stay serialized. If a writer process is killed, the operating system releases its advisory locks immediately and the next writer cleans up `.session.lock` right away instead of waiting for the 10-second stale window.
77
+ - **Durable grouped writes.** Saves that queue up while another save holds the lock are written together under one lock, and every save waits until its bytes are synced to disk before it is acknowledged. A new, forked, or replaced session file is synced before it is linked or renamed into place, and its folder is synced after. On macOS this uses plain `fsync(2)`, matching the default local SQLite store (`fullfsync` off) and the standalone binary; Linux uses `fdatasync(2)` and Windows uses `FlushFileBuffers` (NTFS journals directory entries, so Windows skips the directory sync).
78
78
  - **Files kept open while writing.** While a session is being written, Atomic keeps its file open between saves and closes it soon after the last one. On Windows, Atomic closes each file after it writes, because Windows won't delete or replace an open file.
79
79
 
80
80
  Keep the directory on a local disk of one machine. Don't share it between machines through a network drive or a cloud-synced folder.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.10.11-alpha.3",
3
+ "version": "0.10.11-alpha.4",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -118,13 +118,13 @@
118
118
  "prepack": "node -e \"require('node:fs').existsSync('scripts/split-dist.mjs') && import('./scripts/split-dist.mjs').then(() => import('./scripts/write-startup-files.mjs')).then(() => import('./scripts/write-startup-stages.mjs'))\""
119
119
  },
120
120
  "dependencies": {
121
- "@bastani/atomic-natives": "0.10.11-alpha.3",
122
- "@bastani/atomic-ai": "0.10.11-alpha.3",
123
- "@bastani/atomic-agent-core": "0.10.11-alpha.3",
124
- "@bastani/atomic-codemode": "0.10.11-alpha.3",
125
- "@bastani/atomic-tui": "0.10.11-alpha.3",
126
- "@bastani/atomic-schema": "0.10.11-alpha.3",
127
- "@bastani/atomic-telemetry": "0.10.11-alpha.3",
121
+ "@bastani/atomic-natives": "0.10.11-alpha.4",
122
+ "@bastani/atomic-ai": "0.10.11-alpha.4",
123
+ "@bastani/atomic-agent-core": "0.10.11-alpha.4",
124
+ "@bastani/atomic-codemode": "0.10.11-alpha.4",
125
+ "@bastani/atomic-tui": "0.10.11-alpha.4",
126
+ "@bastani/atomic-schema": "0.10.11-alpha.4",
127
+ "@bastani/atomic-telemetry": "0.10.11-alpha.4",
128
128
  "@silvia-odwyer/photon-node": "0.3.4",
129
129
  "chalk": "6.0.0",
130
130
  "glob": "14.0.6",