@bastani/atomic 0.10.11-alpha.2 → 0.10.11
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.
- package/CHANGELOG.md +307 -0
- package/README.md +5 -8
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js +6 -6
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +5 -5
- package/dist/_shared/mode-shared-2QJSCUM6.js +6 -6
- package/dist/_shared/p0-cli-BB45ZQY6.js +46 -67
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +7 -8
- package/dist/_shared/p1a-prewarm-XIU57JHF.js.map +1 -1
- package/dist/_shared/{p1b-elig-ENCUPKKJ.js → p1b-elig-TVB5CBLL.js} +36 -8
- package/dist/_shared/p1b-elig-TVB5CBLL.js.map +1 -0
- package/dist/_shared/p2-shell-main-B2WIALFD.js +6 -3
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-IQMULKFU.js → sdk-B5LEWGGI.js} +1218 -657
- package/dist/_shared/sdk-B5LEWGGI.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-3IXNMFM2.js → startup-0-0-XJJDOIEC.js} +50 -48
- package/dist/_shared/startup-0-0-XJJDOIEC.js.map +1 -0
- package/dist/_shared/{startup-0-1-7T2IAE7J.js → startup-0-1-M6OWAYHH.js} +540 -136
- package/dist/_shared/startup-0-1-M6OWAYHH.js.map +1 -0
- package/dist/_shared/startup-0-2-5QHPCEON.js +47 -48
- package/dist/_shared/startup-0-2-5QHPCEON.js.map +1 -1
- package/dist/_shared/startup-0-3-4ZYBYQNM.js +5 -5
- package/dist/_shared/startup-0-4-ZMJV547D.js +12 -7
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -1
- package/dist/_shared/startup-0-5-YDW47QX6.js +7 -7
- package/dist/_shared/startup-0-5-YDW47QX6.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +6 -6
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -5
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +19 -27
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +2144 -249
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-X32CYSXB.js → startup-8-1-LZFXSD3Z.js} +98 -1184
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +188 -37
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/storage-status-K7PX2RXA.js +557 -0
- package/dist/_shared/storage-status-K7PX2RXA.js.map +1 -0
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +376 -0
- package/dist/_shared/team-DOQKICG2.js.map +1 -0
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +88 -0
- package/dist/builtin/intercom/README.md +2 -2
- package/dist/builtin/intercom/broker/broker.bundle.mjs +1917 -381
- package/dist/builtin/intercom/broker/client.ts +8 -0
- package/dist/builtin/intercom/broker/database-wake-up-bus.ts +324 -68
- package/dist/builtin/intercom/broker/multinode-router.ts +256 -39
- package/dist/builtin/intercom/broker/multinode-state-store.ts +71 -5
- package/dist/builtin/intercom/broker/open-broker-state.ts +14 -0
- package/dist/builtin/intercom/broker/send-order-gate.ts +5 -2
- package/dist/builtin/intercom/broker/sql-add-column.ts +50 -5
- package/dist/builtin/intercom/broker/sql-ended-child-queue-store.ts +3 -2
- package/dist/builtin/intercom/broker/sql-held-send-store.ts +2 -2
- package/dist/builtin/intercom/broker/sql-known-session-store.ts +43 -19
- package/dist/builtin/intercom/broker/sql-lease-store.ts +473 -121
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +821 -79
- package/dist/builtin/intercom/broker/sql-pending-ask-store.ts +8 -5
- package/dist/builtin/intercom/broker/sql-released-ask-store.ts +12 -5
- package/dist/builtin/intercom/broker/sql-restoring-reservation-store.ts +256 -8
- package/dist/builtin/intercom/broker/sql-retention.ts +150 -0
- package/dist/builtin/intercom/broker/sql-schema.ts +175 -24
- package/dist/builtin/intercom/broker/sql-sent-message-authority.ts +74 -19
- package/dist/builtin/intercom/broker/wake-up-bus.ts +6 -0
- package/dist/builtin/intercom/index.bundle.mjs +14 -4
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +20 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/skill-creator/eval-viewer/generate_review.py +8 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +1 -1
- package/dist/builtin/web-access/index.bundle.mjs +2 -10
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/bun/bundled-sqlite.js +41 -0
- package/dist/bun/bundled-sqlite.js.map +1 -0
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +3 -3
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.code.js.map +1 -1
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +19 -113
- package/dist/cli/team-command.code.js.map +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +5 -18
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-rehydrate-errors.d.ts +4 -9
- package/dist/core/compaction/compactor.d.ts +3 -3
- package/dist/core/debug.code.js +1 -1
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +4 -4
- package/dist/core/export-html/index.code.js.map +1 -1
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +2 -2
- package/dist/core/intercom-broker-control-host.code.js +2 -2
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/process-start-token.d.ts +12 -3
- package/dist/core/process-tree-containment.d.ts +16 -0
- package/dist/core/sdk-types.d.ts +1 -2
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-schema.d.ts +0 -3
- package/dist/core/storage/added-exports-0-10-11.js +19 -0
- package/dist/core/storage/added-exports-0-10-11.js.map +1 -0
- package/dist/core/storage/creation-time.js +105 -0
- package/dist/core/storage/creation-time.js.map +1 -0
- package/dist/core/storage/database.d.ts +25 -5
- package/dist/core/storage/database.js.map +1 -1
- package/dist/core/storage/dialect.d.ts +1 -1
- package/dist/core/storage/dialect.js +1 -1
- package/dist/core/storage/dialect.js.map +1 -1
- package/dist/core/storage/errors.d.ts +13 -13
- package/dist/core/storage/errors.js +10 -16
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/fenced-paths.d.ts +18 -6
- package/dist/core/storage/fenced-paths.js +18 -6
- package/dist/core/storage/fenced-paths.js.map +1 -1
- package/dist/core/storage/file-identity.d.ts +2 -0
- package/dist/core/storage/file-identity.js +24 -8
- package/dist/core/storage/file-identity.js.map +1 -1
- package/dist/core/storage/index.d.ts +3 -2
- package/dist/core/storage/index.js +5 -3
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/libsql-removed.d.ts +71 -0
- package/dist/core/storage/libsql-removed.js +123 -0
- package/dist/core/storage/libsql-removed.js.map +1 -0
- package/dist/core/storage/migrations.d.ts +78 -14
- package/dist/core/storage/migrations.js +375 -49
- package/dist/core/storage/migrations.js.map +1 -1
- package/dist/core/storage/node-sqlite-file-gate.js +0 -15
- package/dist/core/storage/node-sqlite-file-gate.js.map +1 -1
- package/dist/core/storage/node-sqlite-thread.js +215 -30
- package/dist/core/storage/node-sqlite-thread.js.map +1 -1
- package/dist/core/storage/node-sqlite.js +484 -72
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.d.ts +1 -1
- package/dist/core/storage/prefix.js +9 -2
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/process-selection.d.ts +5 -5
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +76 -15
- package/dist/core/storage/schema-catalog.js +359 -68
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.d.ts +7 -82
- package/dist/core/storage/selection.js +20 -235
- package/dist/core/storage/selection.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-detach.d.ts +11 -1
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +4 -7
- package/dist/core/storage/session/fork-staging.code.js.map +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-sweep.js +31 -7
- package/dist/core/storage/session/fork-sweep.js.map +1 -1
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-lock.d.ts +100 -0
- package/dist/core/storage/session/jsonl-session-store.d.ts +46 -24
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +9 -9
- package/dist/core/storage/session/released-history-files.code.js.map +1 -1
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/session-search-index.d.ts +52 -5
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +99 -18
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/sqlite-facade.d.ts +12 -1
- package/dist/core/storage/sqlite-facade.js +310 -33
- package/dist/core/storage/sqlite-facade.js.map +1 -1
- package/dist/core/storage/sqlite-open-batch.js +10 -0
- package/dist/core/storage/sqlite-open-batch.js.map +1 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.code.js +1 -1
- package/dist/core/storage/team.d.ts +26 -115
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/history-tasks.d.ts +3 -2
- package/dist/core/tools/read-url.code.js +4 -4
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.d.ts +44 -5
- package/dist/core/worktree-snapshot/blob-store.js +553 -30
- package/dist/core/worktree-snapshot/blob-store.js.map +1 -1
- package/dist/core/worktree-snapshot/errors.code.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/fork-blob-guard.js +81 -0
- package/dist/core/worktree-snapshot/fork-blob-guard.js.map +1 -0
- package/dist/core/worktree-snapshot/fork-snapshot-index.js +208 -50
- package/dist/core/worktree-snapshot/fork-snapshot-index.js.map +1 -1
- package/dist/core/worktree-snapshot/session-index-reset.code.js +4 -0
- package/dist/core/worktree-snapshot/session-index-reset.code.js.map +1 -1
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5 -5
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/startup-shell-eligibility.js +1 -1
- package/dist/modes/interactive-engine/engine-prewarm.d.ts +1 -1
- package/dist/modes/print-mode.js +1 -1
- package/dist/package-manager-cli.code.js +6 -6
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/11.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/2.js +2 -4
- package/dist/startup-stages/3.js +1 -3
- package/dist/startup-stages/4.js +1 -2
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/6.js +5 -7
- package/dist/startup-stages/7.js +3 -10
- package/dist/startup-stages/8.js +7 -2
- package/dist/startup-stages/9.js +1 -7
- package/dist/startup-stages/stages.json +1 -1
- package/dist/utils/compile-cache-deferral.js +8 -13
- package/dist/utils/compile-cache-deferral.js.map +1 -1
- package/dist/utils/compile-cache-warmup-host.js +3 -4
- package/dist/utils/compile-cache-warmup-host.js.map +1 -1
- package/dist/utils/compile-cache.js +12 -100
- package/dist/utils/compile-cache.js.map +1 -1
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/dist/utils/worker-threads.js +2 -15
- package/dist/utils/worker-threads.js.map +1 -1
- package/docs/build.md +3 -3
- package/docs/changelog.mdx +1498 -69
- package/docs/compaction/reference.md +5 -5
- package/docs/compaction.md +7 -9
- package/docs/containerization.md +2 -2
- package/docs/custom-provider/api-reference.md +1 -1
- package/docs/docs.json +37 -10
- package/docs/environment-variables.md +0 -2
- package/docs/extensions/api-reference.md +4 -4
- package/docs/getting-started/installation.md +3 -0
- package/docs/guides/configuration.md +1 -1
- package/docs/guides/non-interactive.md +1 -1
- package/docs/guides/resume-on-any-machine.md +14 -22
- package/docs/guides/team-setup.md +56 -83
- package/docs/guides.md +2 -4
- package/docs/herdr.md +1 -1
- package/docs/index.md +1 -1
- package/docs/intercom/operations.md +26 -21
- package/docs/intercom/reference.md +2 -2
- package/docs/intercom.md +1 -1
- package/docs/libraries/storage-postgres.md +9 -9
- package/docs/libraries.md +2 -3
- package/docs/models-configuration.md +2 -2
- package/docs/models.md +2 -3
- package/docs/packages/authoring.md +7 -7
- package/docs/packages.md +1 -1
- package/docs/programmatic.md +2 -2
- package/docs/quickstart.md +1 -1
- package/docs/reference/cli.md +6 -11
- package/docs/reference.md +2 -2
- package/docs/rpc/extension-ui.md +2 -2
- package/docs/sdk/reference.md +5 -4
- package/docs/sdk/storage.md +8 -92
- package/docs/sdk/structured-decisions.md +1 -1
- package/docs/sdk/web-server.md +3 -3
- package/docs/sdk.md +14 -4
- package/docs/security.md +1 -1
- package/docs/session-format.md +5 -5
- package/docs/sessions.md +29 -49
- package/docs/settings.md +7 -8
- package/docs/storage/custom-adapters.md +255 -0
- package/docs/storage/jsonl.md +117 -0
- package/docs/{guides/postgres-pgbouncer.md → storage/postgres/pgbouncer.md} +66 -68
- package/docs/storage/postgres/tuning.md +337 -0
- package/docs/storage/postgres.md +556 -0
- package/docs/storage/sqlite.md +99 -0
- package/docs/storage.md +326 -990
- package/docs/subagents/authoring.md +1 -1
- package/docs/subagents.md +2 -2
- package/docs/tools.md +1 -1
- package/docs/worktree-snapshots.md +2 -2
- package/package.json +9 -9
- package/schemas/models.schema.json +2 -2
- package/schemas/settings.schema.json +0 -14
- package/dist/_shared/p1b-elig-ENCUPKKJ.js.map +0 -1
- package/dist/_shared/sdk-IQMULKFU.js.map +0 -1
- package/dist/_shared/startup-0-0-3IXNMFM2.js.map +0 -1
- package/dist/_shared/startup-0-1-7T2IAE7J.js.map +0 -1
- package/dist/_shared/startup-8-1-X32CYSXB.js.map +0 -1
- package/dist/core/intercom-broker-control.d.ts +0 -129
- package/dist/startup-stages/13.js +0 -1
- package/docs/guides/postgres-tuning.md +0 -311
- package/docs/libraries/storage-libsql.md +0 -97
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,313 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.10.11] - 2026-11-27
|
|
6
|
+
|
|
7
|
+
Atomic upgrades session forks to share their parent's history, scales PostgreSQL, SQLite, JSONL, and Intercom for many concurrent agents with durable JSONL saves, drops libSQL storage and raises the Node.js minimum to 24.20.0, removes default deadlines on shell commands and history searches, and speeds up macOS process handling.
|
|
8
|
+
|
|
9
|
+
**Breaking change:** Atomic and its npm packages now require Node.js 24.20.0 or newer (`engines.node` is `>=24.20.0`, in the Node.js 24 LTS line), and `atomic` refuses to start at once on older Node.js instead of failing later. Run `node --version`, upgrade from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24`, or `mise use -g node@24`, then reinstall with `npm install -g @bastani/atomic`. Release archives (`install.sh` and `install.ps1`) bring their own runtime and are unaffected. Node.js before 24.15.0 bundles a SQLite WAL bug that can corrupt a database opened by a writer and reader together, and 24.17.0 through 24.19.0 reject valid IPv6 TLS certificates. See [Node.js version](https://docs.bastani.ai/getting-started/installation#nodejs-version) ([#6579](https://github.com/bastani-inc/atomic/pull/6579), [#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
10
|
+
|
|
11
|
+
**Breaking change:** Atomic no longer supports libSQL storage (Turso, self-hosted `sqld`, and libSQL `file:` databases), and `@bastani/atomic-storage-libsql` is no longer published. Any setting, environment variable, flag, URL, or SDK selection naming libSQL stops Atomic with a `libsql-removed` error. To keep your sessions, export them with `0.10.11-alpha.2` first—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` already upgraded). Then import them with this release into PostgreSQL or local SQLite (`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)).
|
|
12
|
+
|
|
13
|
+
**Breaking change:** `atomic team join`, `atomic team leave`, `ATOMIC_PROFILE=ci`, and the `ATOMIC_TEAM_*` variables (`ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE`, `ATOMIC_TEAM_PREFIX`) are removed with libSQL and now fail with `libsql-removed` (`atomic team status` and `getTeamProfile()` still work). Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`, and in CI set `ATOMIC_STORAGE` to a PostgreSQL selection. In the SDK, `joinTeam()`, `leaveTeam()`, and `teamProfileSelection()` now always throw `TeamProfileConfigError` (`libsql-removed`) and their option/result types are removed; pass `createAgentSession({ storage })` a PostgreSQL selection instead ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
14
|
+
|
|
15
|
+
**Breaking change:** Once no older Atomic has a session open on a SQLite or PostgreSQL session database (a crashed host's sessions stop counting after about a minute), Atomic upgrades it one-way so forks share their parent's history. Older Atomic versions then stop opening that database with `"this store needs a newer Atomic"`. Upgrade every machine and CI job that shares a database. On PostgreSQL, a runtime role that cannot create tables keeps copying forks without error until the owner runs `atomic storage migrate`. To move sessions back to an older version, export them with `atomic storage export` (which writes each fork's full history) and import them with that version into a new store. See [Older Atomic versions](https://docs.bastani.ai/storage#older-atomic-versions) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6614](https://github.com/bastani-inc/atomic/pull/6614), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
16
|
+
|
|
17
|
+
**Shared-history forks**
|
|
18
|
+
|
|
19
|
+
- **Forks cost about the same as a new session.** `/fork`, `/clone`, `atomic --fork`, and forked subagents (`context: "fork"`) now read their parent's history in SQLite and PostgreSQL instead of copying it. Forking a 500-entry session drops from 1,012 to 8 round trips on PostgreSQL and 1,018 to 12 on SQLite, and 50 concurrent PostgreSQL forks finish in 119 ms instead of 2.6 s ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6614](https://github.com/bastani-inc/atomic/pull/6614)).
|
|
20
|
+
- **Deleting or rewriting a parent keeps forks intact, and exports stay standalone.** A deleted parent leaves lists and search at once while shared entries stay until its last fork is deleted, rewriting a parent detaches forks cleanly with linear-scaling link checks, and `/export`, `/share`, `atomic storage export`, and cross-store forks write full copies (with set-based SQL and batched reads when copying) ([#6591](https://github.com/bastani-inc/atomic/pull/6591), [#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6598](https://github.com/bastani-inc/atomic/pull/6598), [#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705)).
|
|
21
|
+
|
|
22
|
+
**PostgreSQL storage**
|
|
23
|
+
|
|
24
|
+
- **Per-session locking and single-round-trip saves.** Session saves lock only their own session and drop from 7+ round trips to 2—or 1 after `atomic storage migrate` installs the save function (108 ms vs 193 ms at 80 ms latency; 100 concurrent agents dropped from 52–57 s to 164 ms). Session deletes and tombstone sweeps also lock only the target session and cut indexed deletes and replaces from 13 / 12 round trips to 3 ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710), [#6733](https://github.com/bastani-inc/atomic/pull/6733)).
|
|
25
|
+
- **Shared connection pools and PgBouncer prepared statements.** Every store a process opens on the same PostgreSQL database shares one write pool, a separate reader pool (`openReader()`), and one listening connection, with new pool tuning options (`readerMaxConnections`, `maxPreparedStatements`, `connectTimeoutMs`, `idleTimeoutMs`, `keepAliveIdleMs`). Prepared statements turn on automatically behind PgBouncer 1.21+ when `max_prepared_statements > 0`, and list lookups use one statement text in `pg_stat_statements` ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6644](https://github.com/bastani-inc/atomic/pull/6644)).
|
|
26
|
+
- **Faster opens, reads, searches, and snapshot puts.** Concurrent agents opening a new database coordinate table setup without lock queueing (25 agents behind PgBouncer: 258 s to 15 s; 100 agents: 97 timeouts to all open in 24 s), up-to-date opens drop from 43 to 2 round trips, session reads pipeline (`load` 2 to 1 round trip, `list` and `readForkWindow` 3 to 2, `findEntrySeq` 3 to 1), indexed `history://` searches fetch matches in one request (2.8 s to 0.5 s at 80 ms latency) and batch state with the first candidate window, and small snapshot blob puts take 1 round trip without a database-wide lock ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6635](https://github.com/bastani-inc/atomic/pull/6635), [#6679](https://github.com/bastani-inc/atomic/pull/6679), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708), [#6710](https://github.com/bastani-inc/atomic/issues/6710), [#6728](https://github.com/bastani-inc/atomic/pull/6728)).
|
|
27
|
+
- **Automatic table tuning, in-place snapshot updates, and non-blocking search indexing.** `atomic storage migrate` creates chat-record and ended-subagent queue tables for non-DDL runtime roles, tunes autovacuum and `fillfactor` on busy tables, switches large values to `lz4` compression (~60% faster compression), updates snapshot index rows in place (~40% smaller secondary indexes), and moves search-index merges and writes off session write locks (median save during concurrent indexing: 109 ms to 55 ms). `atomic storage join` and `atomic storage migrate --db` accept `postgres://` and `postgresql://` URLs only ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6624](https://github.com/bastani-inc/atomic/pull/6624), [#6638](https://github.com/bastani-inc/atomic/pull/6638), [#6642](https://github.com/bastani-inc/atomic/pull/6642), [#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6654](https://github.com/bastani-inc/atomic/pull/6654), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
|
|
28
|
+
- **Bounded PostgreSQL closes.** `@bastani/atomic-storage-postgres`'s `close()` now waits for the server to release all pooled connections (readers included) and drops unresponsive pool and listening connections after 5 seconds instead of waiting until TCP times out ([#6677](https://github.com/bastani-inc/atomic/pull/6677), [#6681](https://github.com/bastani-inc/atomic/pull/6681)).
|
|
29
|
+
|
|
30
|
+
**SQLite, JSONL, and Storage SDK**
|
|
31
|
+
|
|
32
|
+
- **Pipelined local SQLite, off-commit WAL checkpoints, and bundled macOS SQLite.** Local SQLite caches up to 256 prepared statements per connection, skips write locks when reopening current Intercom brokers, batches new-database schema setup into one write transaction (100 concurrent agents: 32 s to 6 s; new session store: 4 locks to 1), pipelines write transactions and small snapshot blob puts (8 blobs: 10 thread waits to 1), and checkpoints WAL files off the commit path while shrinking them back to 4 MiB. The standalone macOS binary now bundles SQLite 3.53.4 (`library:` line in `atomic storage status`) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6612](https://github.com/bastani-inc/atomic/pull/6612), [#6641](https://github.com/bastani-inc/atomic/pull/6641), [#6679](https://github.com/bastani-inc/atomic/pull/6679), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6706](https://github.com/bastani-inc/atomic/issues/6706), [#6707](https://github.com/bastani-inc/atomic/issues/6707), [#6709](https://github.com/bastani-inc/atomic/issues/6709), [#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6731](https://github.com/bastani-inc/atomic/pull/6731)).
|
|
33
|
+
- **Durable JSONL saves with group commit.** JSONL saves now sync to disk before acknowledging, batching concurrent writes and syncing session files in parallel (plain `fsync(2)` on macOS via `@bastani/atomic-natives`'s `fsyncDescriptor`, `fdatasync(2)` on Linux, `FlushFileBuffers` on Windows) while recovering cleanly from zero-filled crash pages ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
34
|
+
- **Unlocked JSONL reads and striped advisory write locks.** JSONL session reads run without taking the directory lock (8 concurrent reader processes: 478 ms to 61 ms on Node, 787 ms to 62 ms on Bun), writers coordinate via OS advisory locks (`flock` / `LockFileEx`) and 32 striped per-session locks (recovery after a killed writer: ~10.2 s to ~5 ms; 8 concurrent writers: 3.3× faster), and kept handles plus stat-only opens cut reopening 201 sessions from 640 ms to 9 ms ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6718](https://github.com/bastani-inc/atomic/issues/6718), [#6719](https://github.com/bastani-inc/atomic/issues/6719), [#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6732](https://github.com/bastani-inc/atomic/pull/6732)).
|
|
35
|
+
- **Storage SDK additions.** `@bastani/atomic/storage` adds `SqliteDatabase.openReader()`, `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent`, `ensureTableFillfactor`, `transactionFinisher`, `relaxedDurability` transactions, `StorageNotifications.notify`'s `unless` check, `StorageNotifications.send(notices)`, `SessionStore.readEntryRange`'s `seqs` filter, and `SessionManager.captureFork(leafId, { internal: true })` ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6594](https://github.com/bastani-inc/atomic/pull/6594), [#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6655](https://github.com/bastani-inc/atomic/pull/6655), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6734](https://github.com/bastani-inc/atomic/pull/6734)).
|
|
36
|
+
|
|
37
|
+
**Intercom**
|
|
38
|
+
|
|
39
|
+
- **Single-round-trip sends with lock-timeout retries.** With multi-node routing on PostgreSQL, sends lock only the recipient's queue, take 1 round trip instead of 8, and retry lock timeouts and deadlocks up to 5 times (200 agents behind PgBouncer: 112 lock timeouts to 0; 50 senders to an offline session at 80 ms: ~23 s to under 1 s) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6626](https://github.com/bastani-inc/atomic/pull/6626), [#6636](https://github.com/bastani-inc/atomic/pull/6636)).
|
|
40
|
+
- **Batched scans, renewals, releases, and settlements.** Brokers open in 1 round trip on PostgreSQL and 1 write lock on SQLite, check idle hosted recipients in one read (21 statements to 1 for 20 subagents), pick up waiting messages in 1 round trip on PostgreSQL and 2 calls on SQLite, renew all in-flight claims, leases, and restoring reservations in single statements per tick (200 brokers: median tick 1,254 ms to 102 ms), release departing sessions' claims in one statement, and batch delivery confirmations on both PostgreSQL and SQLite ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6610](https://github.com/bastani-inc/atomic/pull/6610), [#6615](https://github.com/bastani-inc/atomic/pull/6615), [#6644](https://github.com/bastani-inc/atomic/pull/6644), [#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6709](https://github.com/bastani-inc/atomic/issues/6709), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6716](https://github.com/bastani-inc/atomic/issues/6716), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726)).
|
|
41
|
+
- **Targeted wake-ups, less disk flushing, and single-broker cleanup.** PostgreSQL lease renewals skip disk flushes (`relaxedDurability`, ~90% fewer log flushes), wake-up notices use an unlogged table (~70% less WAL) on per-broker channels naming the recipient, concurrent wake-ups batch and embed non-reply outcome hints inside settlement (4 round trips to 1) while sending post-commit notices off the serial call queue via `StorageNotifications.send`, and one elected broker runs indexed cleanup every 5 minutes (200 brokers: 3,377 to 24 statements/min, waiting-message index 22.6 MB to 0.2 MB) ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6639](https://github.com/bastani-inc/atomic/pull/6639), [#6655](https://github.com/bastani-inc/atomic/pull/6655), [#6675](https://github.com/bastani-inc/atomic/pull/6675), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6734](https://github.com/bastani-inc/atomic/pull/6734)).
|
|
42
|
+
|
|
43
|
+
**Long-running work, skills, subagents, and docs**
|
|
44
|
+
|
|
45
|
+
- **No default deadline on shell commands or `history://` searches.** `bash` and `powershell` commands run until they finish or you stop them (`timeout` still sets a deadline with no upper limit and refuses `0`; max 64 concurrent shells per session). Slow `history://` reads and searches continue in the background after 10 seconds as waitable tasks instead of stopping after 3 seconds (max 4 per session) ([#6563](https://github.com/bastani-inc/atomic/pull/6563), [#6574](https://github.com/bastani-inc/atomic/pull/6574), [#6581](https://github.com/bastani-inc/atomic/pull/6581)).
|
|
46
|
+
- **Portable `skill://` addresses.** Model instructions list skills as `skill://<name>` instead of absolute filesystem paths, keeping home folders out of prompts and working across machines. `read`, `search`, `find`, and `bash` resolve them, and subagents receive them too ([#6589](https://github.com/bastani-inc/atomic/pull/6589)).
|
|
47
|
+
- **Subagents keep their parent's store, plus panel and card improvements.** Subagents always save sessions in their parent's store (`sessionDir` and `defaultSessionDir` are ignored with a warning), forked subagents are internal like fresh ones, the agent panel remembers `main` and `/tasks` choices and wraps `↓` from the last row, expanded cards of tool-waiting subagents show their task and waited-on calls (`◌`), and model errors distinguish missing models from `enabledModels` exclusions with exact Fast/Ultrafast IDs ([#6562](https://github.com/bastani-inc/atomic/pull/6562), [#6564](https://github.com/bastani-inc/atomic/pull/6564), [#6569](https://github.com/bastani-inc/atomic/pull/6569), [#6594](https://github.com/bastani-inc/atomic/pull/6594)).
|
|
48
|
+
- **One storage docs page per backend and generated docs changelog.** Storage docs split into dedicated pages for SQLite, JSONL, PostgreSQL setup, PgBouncer, server tuning, and custom adapters with redirects, and the docs site [changelog](https://docs.bastani.ai/changelog) is now generated from each release's summary ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6621](https://github.com/bastani-inc/atomic/pull/6621), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
|
|
49
|
+
|
|
50
|
+
**macOS and other fixes**
|
|
51
|
+
|
|
52
|
+
- **Faster, cleaner macOS commands and host-death cleanup.** `@bastani/atomic-natives` spawns commands with `posix_spawn` instead of `fork()` (0.5 ms vs 4.4 ms on a 3 GB host, removing JS stalls and `MallocStackLogging` TUI lines), `bash` with `pty: true` reads output immediately instead of throttling to ~150 KB/s (1 MB in under 0.5 s vs ~6.5 s), and Atomic stops its commands, background servers, and in-process `pi.exec` commands (plus child processes on Linux, via `watchProcessUntilHostDies`) when it dies ([#5057](https://github.com/bastani-inc/atomic/issues/5057), [#6580](https://github.com/bastani-inc/atomic/pull/6580), [#6634](https://github.com/bastani-inc/atomic/pull/6634), [#6643](https://github.com/bastani-inc/atomic/pull/6643), [#6648](https://github.com/bastani-inc/atomic/pull/6648), [#6668](https://github.com/bastani-inc/atomic/pull/6668)).
|
|
53
|
+
- **Immediate resume recovery after a killed build.** Resuming after Atomic was killed mid-build no longer waits 5 minutes on Linux, Windows, or macOS. Build locks record step starts atomically, and Atomic now reads process creation times on macOS so session claims and locks tell dead processes from reused PIDs ([#6684](https://github.com/bastani-inc/atomic/pull/6684), [#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6704](https://github.com/bastani-inc/atomic/issues/6704)).
|
|
54
|
+
- **`atomic storage status`, backdated files, stall stacks, and review viewer on macOS.** The standalone macOS binary's `atomic storage status` no longer reports cleanly closed local SQLite stores as failed with SQLite code 14 ([#6622](https://github.com/bastani-inc/atomic/pull/6622)); JSONL sessions and agent-directory locks survive backdated file timestamps ([#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)); event-loop stall reports keep stacks after sleep ([#6583](https://github.com/bastani-inc/atomic/pull/6583)); and the `skill-creator` review viewer opens at once without stalling on reverse DNS for `127.0.0.1` ([#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
|
|
55
|
+
- **Compaction limits, network causes, and retired default models.** Compaction models such as `morph/morph-compactor` no longer discard output over 32,000 estimated tokens or re-compact before every tool call in the same turn ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)), compaction network errors name the cause including DNS filters (`0.0.0.0` / `::`) ([#6561](https://github.com/bastani-inc/atomic/pull/6561)), and login picks another catalog model if a provider retires Atomic's default ([#6582](https://github.com/bastani-inc/atomic/pull/6582)).
|
|
56
|
+
- **Intercom ordering, redelivery, sockets, and backup isolation.** Messages keep per-sender order when a session moves to its sender's machine ([#6651](https://github.com/bastani-inc/atomic/pull/6651), [#6637](https://github.com/bastani-inc/atomic/issues/6637)), transient inbox-save failures no longer strand same-connection reply redeliveries and contended stores no longer let plain local sends overtake an active local reply ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)), Intercom uses its fallback Unix socket for long relative agent directories on macOS and Linux ([#6585](https://github.com/bastani-inc/atomic/pull/6585)), and relocated backups of a custom `ATOMIC_CODING_AGENT_DIR` stay separate from the original store even when inodes are recycled ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6570](https://github.com/bastani-inc/atomic/pull/6570)).
|
|
57
|
+
|
|
58
|
+
### Breaking Changes
|
|
59
|
+
|
|
60
|
+
- Atomic now needs Node.js 24.20.0 or newer, in the Node.js 24 LTS line, when you install it with npm, pnpm, Yarn, or Bun, and `atomic` now stops as soon as it starts on an older Node.js instead of failing later. Check with `node --version`. If it is older, install the current Node.js 24 LTS release from [nodejs.org](https://nodejs.org/en/download) or with `nvm install 24`, `fnm install 24`, or `mise use -g node@24`, then reinstall Atomic with `npm install -g @bastani/atomic`. The release archive (`install.sh` or `install.ps1`) ships its own runtime and needs no Node.js. Node.js releases before 24.15.0 bundle a SQLite version with a [bug that can corrupt](https://www.sqlite.org/wal.html#walresetbug) Atomic's session database, because Atomic opens it with a writer and a reader at once. Node.js 24.17.0 through 24.19.0 reject valid certificates for IPv6 addresses, such as an `https://[::1]` proxy ([nodejs/node#64145](https://github.com/nodejs/node/pull/64145)). See [Node.js version](docs/getting-started/installation.md#nodejs-version) ([#6579](https://github.com/bastani-inc/atomic/pull/6579), [#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
61
|
+
- Atomic no longer supports libSQL, which covers Turso, self-hosted `sqld` and libSQL `file:` databases. A `storage` or `sessions.storage` setting, an `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE`, `--storage` or SDK selection, or a URL that still names libSQL now stops Atomic at once with a `libsql-removed` error that says how to move. Nothing falls back to another store. To keep your sessions, export them with 0.10.11-alpha.2, which reads every libSQL database (0.10.10 cannot read a database that 0.10.11-alpha.2 has already upgraded): `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, with `old-storage.json` holding your old `storage` setting. Then import them with this release, into PostgreSQL (`atomic storage join postgres://…` and `atomic storage import ~/moved --storage-file new-storage.json`) or into local SQLite (`atomic storage import ~/moved`). Forks keep their whole history and worktree snapshots keep their content. Finally 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)).
|
|
62
|
+
- Removed the libSQL team setup, with these replacements ([#6624](https://github.com/bastani-inc/atomic/pull/6624)):
|
|
63
|
+
- `atomic team join` and `atomic team leave` now fail with `libsql-removed`. Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`. To keep sessions on the machine while Intercom uses the shared database, add `"sessions": { "storage": {} }` to global settings. To leave, remove `storage` and `sessions.storage` and run `atomic intercom restart`. `atomic team status` still works.
|
|
64
|
+
- `ATOMIC_PROFILE=ci` and `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE` and `ATOMIC_TEAM_PREFIX` now fail startup when set. Set `ATOMIC_STORAGE` to a PostgreSQL selection instead, with the password in an `{ "env": "<VAR>" }` secret.
|
|
65
|
+
- The SDK's `joinTeam()`, `leaveTeam()` and `teamProfileSelection()` now always throw `TeamProfileConfigError` with code `libsql-removed`. They stay exported, deprecated, only so a running process that an in-place update catches does not crash. The SDK no longer exports the `JoinTeamOptions`, `LeaveTeamOptions`, `TeamJoinResult`, `TeamLeaveResult`, `TeamBrokerRestart`, `TeamKeptSetting`, `TeamSettingKey`, `TeamProfileSelectionOptions` and `TeamStorageSelection` types. Pass `createAgentSession({ storage })` a PostgreSQL selection, with the password as `inMemorySecret(password)`. `getTeamProfile()` still works.
|
|
66
|
+
- `LIBSQL_ADAPTER_PACKAGE`, `TEAM_PROFILE_ENV`, `TEAM_URL_ENV`, `TEAM_TOKEN_ENV`, `TEAM_TOKEN_FILE_ENV`, `TEAM_PREFIX_ENV`, `SHARED_STORAGE_JOIN_HINT` and `TEAM_JOIN_COMMAND` are deprecated and will be removed. Nothing uses them any more: Atomic refuses the adapter and the variables they name. Use `POSTGRES_ADAPTER_PACKAGE` and `POSTGRES_STORAGE_JOIN_HINT`.
|
|
67
|
+
- The `teamJoin` setting that `atomic team join` wrote is no longer read. You can delete it.
|
|
68
|
+
- After this release upgrades a session database so that forks share history, older Atomic versions can't open that database any more. They stop with "this store needs a newer Atomic". The upgrade happens by itself, but only once no older Atomic version has a session open on that database, so a machine you haven't upgraded yet keeps working until its sessions end. Upgrade every machine that shares a database. On PostgreSQL, a role that cannot create tables keeps copying forks until the owner runs `atomic storage migrate`. To take sessions back to an older version, export them with `atomic storage export` and import them with that version into a new store. See [Older Atomic versions](docs/storage.md#older-atomic-versions) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6614](https://github.com/bastani-inc/atomic/pull/6614), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
69
|
+
|
|
70
|
+
### Added
|
|
71
|
+
|
|
72
|
+
- `StorageNotifications` in `@bastani/atomic/storage` adds an optional `send(notices)` method for sending already-committed notifications together outside the database facade's serial call queue ([#6734](https://github.com/bastani-inc/atomic/pull/6734), [#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
73
|
+
- Storage adapters receive a new transaction option, `relaxedDurability`, for writes whose loss in a server crash is harmless, such as lease renewals. A driver may answer the commit before the write reaches disk, or ignore the option. The PostgreSQL adapter turns `synchronous_commit` off for that transaction only. See [custom storage adapters](docs/storage/custom-adapters.md) ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
74
|
+
- `StorageNotifications.notify` in `@bastani/atomic/storage` takes an optional third argument, `unless`, a read. When it is given, the notification goes out only if that read returns no row when the notification is sent. Adapters that do not support it send the notification anyway ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
|
|
75
|
+
- Forks now share their parent's history instead of copying it, so forking a long session costs about as much as forking a short one. This covers `/fork`, `/clone`, `atomic --fork` and subagents started with `context: "fork"`, in local SQLite files and in shared PostgreSQL databases. There is nothing to turn on. A fork reads, searches, resumes and exports as a copy did, and changing or deleting its parent never changes it. Exporting a session or moving it to another store still writes a full copy that doesn't depend on any other session. On PostgreSQL, if Atomic connects with a role that can't create tables, forks keep copying until the database owner runs `atomic storage migrate`. See [Shared-history forks](docs/storage.md#shared-history-forks) ([#6600](https://github.com/bastani-inc/atomic/pull/6600), [#6602](https://github.com/bastani-inc/atomic/pull/6602), [#6608](https://github.com/bastani-inc/atomic/pull/6608), [#6601](https://github.com/bastani-inc/atomic/pull/6601), [#6598](https://github.com/bastani-inc/atomic/pull/6598), [#6614](https://github.com/bastani-inc/atomic/pull/6614), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
76
|
+
- In the SDK, `SessionManager.captureFork(leafId, { internal: true })` creates the fork as an internal session, left out of `/resume`, `-r`, `-c` and the `history://sessions` list. Subagent forks use it ([#6594](https://github.com/bastani-inc/atomic/pull/6594)).
|
|
77
|
+
- Slow reads and searches of past sessions (`history://`) now keep running in the background instead of stopping after 3 seconds. If one is still running after 10 seconds, the default wait, the agent gets a task ID such as `history-3` and keeps working. The result arrives later as a completion notice. A read or search has no time limit. It runs until it finishes, the agent stops it, or the session closes. A result too large to return at once still ends with a link to read the rest. The agent can wait for the task or stop it by its ID. A session runs at most 4 at once, and a fifth is refused with a message saying how to free a place ([#6563](https://github.com/bastani-inc/atomic/pull/6563), [#6574](https://github.com/bastani-inc/atomic/pull/6574)).
|
|
78
|
+
- New guides: [Tune PostgreSQL for many agents](docs/storage/postgres/tuning.md) and [Run many agents on PostgreSQL with PgBouncer](docs/storage/postgres/pgbouncer.md) ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
79
|
+
- In the SDK, `@bastani/atomic/storage` now exports `withStorageSchemaCatalog`, `schemaCatalogOf`, `storageSchemaCurrent` and `ensureTableFillfactor`, so a custom store can check its schema without a lock and set a table's fillfactor the same way Atomic does. It also exports `transactionFinisher`, which returns the function that sends a transaction's last writes with its `COMMIT` on a pipelined connection, or `undefined` for any other connection ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
80
|
+
|
|
81
|
+
### Changed
|
|
82
|
+
|
|
83
|
+
- On PostgreSQL, deleting a session now locks only that session and its search index instead of the whole database, so unrelated session writers keep running beside deletes; post-delete tombstone sweeps also scope their lock to each tombstoned session, and the `detachForks`, `resumeForkDetaches`, and `sweepForkTombstones` schema gates and discovery queries now run read-only without taking a write lock (cutting idle gate and sweep checks from 10 to 1–2 round trips, and fork detaches from 51 to 39–41 round trips). Rebuilding a stale resume index now reuses the row read with the transaction start, folds the revision check into one conditional `UPDATE … RETURNING`, and pipelines the follow-up read, cutting stale `readTail` and fork `readResume` from 9–10 to 7 round trips. With 8 writers appending alongside deletes at 20 ms latency, append p95 fell from 218 ms to 123 ms directly and from 211 ms to 122 ms through PgBouncer ([#6733](https://github.com/bastani-inc/atomic/pull/6733), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
84
|
+
- On PostgreSQL, session reads take fewer round trips, both directly and through PgBouncer in transaction mode: loading a session drops from 2 awaited round trips to 1, listing sessions or finding the most recent session for a directory drops from 3 to 2 (and listing all sessions from 2 to 1), looking up an entry sequence drops from 3 to 1 (or 2 after a concurrent schema or fork change), and reading entry sizes or a fork window drops from 3 awaited round trips to 2. Looking up an entry sequence also folds the snapshot-index completeness check into a single statement on both SQLite and PostgreSQL. At 80 ms latency, loading a session took 84 ms instead of 162 ms, listing a directory took 163 ms instead of 244 ms, finding an entry sequence took 81 ms instead of 244 ms, and reading entry sizes or a fork window took 162 ms instead of 240 ms ([#6728](https://github.com/bastani-inc/atomic/pull/6728), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
85
|
+
- On PostgreSQL, deleting or replacing an indexed session now takes 3 round trips instead of 13 for a delete and 12 for a replace, both directly and through PgBouncer in transaction mode. The session's per-table deletes and rewrite now go out with the commit in one request, and forgetting its search index sends its savepoint, deletes and release together. At 80 ms latency, deleting a session took about 0.25 seconds instead of 1.03 seconds and replacing one took about 0.25 seconds instead of 0.96 seconds ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
86
|
+
- Checking a detached fork's worktree snapshot links now reads the fork's links in one pass and looks up each entry's parent once, so the check takes about half the time it first did: 1.9 ms instead of 3.7 ms on SQLite, and 6.4 ms instead of 10.7 ms on PostgreSQL, for a fork of 1,000 entries ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
87
|
+
- On file-backed SQLite stores, write transactions now run their leading statements in the same connection-thread request as `BEGIN IMMEDIATE`, bundle their final writes (`transactionFinisher`) in the same request as `COMMIT` (or a group-commit member's `RELEASE`), send single-step `leadingOnly` transactions (such as Intercom lease acquisitions) with `COMMIT` in one request, send each group-commit member's `SAVEPOINT` with its leading statements, and handle write-lock holder record updates and writers'-queue directory checks on the connection thread to remove two thread-pool waits per uncontended commit. Creating a session and appending to it now wait for the connection thread 2 times instead of 4, `leadingOnly` lease writes wait once instead of 4 times (~1.5x faster median latency), and 100 concurrent appenders wait 201 times per batch instead of 402, with durability unchanged (WAL, `synchronous=FULL`) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6706](https://github.com/bastani-inc/atomic/issues/6706)).
|
|
88
|
+
- Batched the search-state lookup and first candidate window of a `history://` index search into one read-only transaction, cutting warm search candidate queries from 2 thread waits to 1 on SQLite and from 2 round trips across separate snapshots to 1 round trip in one snapshot on PostgreSQL ([#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
89
|
+
- Detaching long shared-history forks a page at a time now scales linearly with the number of pages instead of redoing work over earlier pages. Each page's link statement counts children only past the page's start for the IDs the page copies, the per-page link check tests earlier rows against the page's ID set once, rows whose parent comes from a remaining segment look the segment up once instead of twice, and segment lookups and segment duplicate checks are skipped when no segments remain (or before the earliest remaining segment). Detaching a 20,000-entry parent's two forks with the default 2,000-row pages dropped from 328 ms to 279 ms on Node SQLite (peak write-lock hold 39.5 ms to 31.4 ms), 344 ms to 298 ms on Bun SQLite, and 5.69 s to 2.63 s on PostgreSQL (163 ms to 97 ms for 1,000 entries) ([#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
90
|
+
- Storing small batches of worktree snapshot blobs (fewer than 256 statements and at most 1 MiB total) now sends the inserts and `COMMIT` with the transaction's start. On file-backed SQLite stores, putting 8 small blobs now waits for the connection thread once instead of 10 times (2 times with transaction finishers alone) while taking the write lock once. On PostgreSQL (direct and behind PgBouncer), a small snapshot blob put now takes 1 round trip instead of 2; in an interleaved benchmark of 8-blob puts behind PgBouncer at 40 ms RTT, median latency dropped from 120 ms to 81 ms, and on localhost from 0.54 ms to 0.40 ms. Larger or chunked puts keep the existing fallback path ([#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
91
|
+
- Reading a JSONL session (`load`, `readTail`, `readRange` and `readResume`) no longer takes the directory lock when no writer is active, so readers across processes no longer queue behind one another or stall concurrent writers. Each read opens or reuses one handle, stats it first, reads the header and entries through that same handle, and verifies afterward that `.session.lock` is absent and the path stat still matches on device, inode, size and timestamps; if either check fails, or the file has a legacy header, it retries under the lock. On a 200-entry session with a kept handle, a warm tail, range or resume read takes 6 file-system requests instead of 7 and a whole-session load 5 instead of 10; 8 concurrent reader processes finished 100 tail reads each in about 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun, and a writer sharing the directory with 4 active readers finished 50 saves in 44 ms instead of 190 ms on Node ([#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
92
|
+
- Writing to a JSONL session store now coordinates through operating-system advisory locks (`flock` on Unix, `LockFileEx` on Windows) and per-session-file striped locks instead of serializing the whole directory behind a single `proper-lockfile` lock. New writers hold `<dir>/.session.lock` together as a group so older builds remain excluded and unlocked readers still detect active writers, while writes and syncs to different session files proceed concurrently across 32 striped lock files (with an exclusive create lock for claim-and-link). When a writer process is killed, the kernel releases its advisory locks immediately and the next writer cleans up `.session.lock` at once instead of waiting for the 10-second stale window. On durable ext4 disk, recovering after a `SIGKILL`ed holder dropped from ~10.2 s to ~5 ms, and multi-process concurrent saves to distinct sessions improved from 846 ms to 443 ms (4 processes × 20 saves, 1.9×) and from 1,264 ms to 388 ms (8 processes × 15 saves, 3.3×) ([#6732](https://github.com/bastani-inc/atomic/pull/6732), [#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
93
|
+
- Opening a SQLite session store or Intercom broker on a new or upgraded database now batches all needed schema setup—tables, missing columns, indexes, snapshot triggers, search tables and schema stamps—into a single write transaction through `tryMaintenance`, keeping the poll-until-done fallback when another process holds the write lock. Opening a new session store now takes 1 write lock and 7 thread waits instead of 4 locks and 31 waits (median 29.9 ms vs 37.3 ms on Node 24; 23.1 ms vs 28.8 ms on Bun 1.4.5), opening a new Intercom broker takes 1 write lock and 10 waits instead of 24 locks and 103 waits (51.3 ms vs 64.6 ms on Node 24; 41.2 ms vs 56.8 ms on Bun 1.4.5), and the broker's second open now takes 0 locks and 8 waits instead of 1 lock and 12 waits. With 8 concurrent hosts opening a fresh session store and broker together, total write locks dropped from 60 to 2 (80.1 ms vs 128.5 ms on Node 24; 77.8 ms vs 108.2 ms on Bun 1.4.5) ([#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6709](https://github.com/bastani-inc/atomic/issues/6709)).
|
|
94
|
+
- On local SQLite stores, write-ahead log checkpointing now runs off the commit path and shrinks overgrown `-wal` files back to 4 MiB once long readers end. Writable connections raise `wal_autocheckpoint` to 10,000 pages as a safety net, set `journal_size_limit` to 4 MiB, and run `PRAGMA wal_checkpoint(PASSIVE)` on the connection thread after answering the caller whenever no transaction is open and the `-wal` file grew past 4 MiB since the last check. In interleaved benchmarks after a held reader grew the WAL to 17.8 MiB, the first commit after the reader ended dropped from 10.1 ms to 1.2 ms on Node and 8.4 ms to 1.0 ms on Bun, and the `-wal` file shrank back to 4.0 MiB instead of staying 17.8 MiB ([#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6707](https://github.com/bastani-inc/atomic/issues/6707)).
|
|
95
|
+
- On PostgreSQL, `atomic storage migrate` now tunes two kinds of tables for you. It tells autovacuum to clean the small busy tables `session_sessions`, `intercom_leases` and `snapshot_session_links` after a fixed number of dead rows, which the tuning guide used to ask you to set by hand. In a test with 20,000 sessions, `session_sessions` held about a third as many dead rows on average. It also switches large session entries, stored files and Intercom messages to `lz4` compression when the server supports it. In a test with large values built from real session history and source files, compressing them took about 60% less time and reading them back 17% to 50% less, while the space they took changed by less than 20%. A value you set on one of these tables yourself is kept. See the [tuning guide](docs/storage/postgres/tuning.md) ([#6642](https://github.com/bastani-inc/atomic/pull/6642), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
96
|
+
- On PostgreSQL, writing history-search text no longer stalls now and then. PostgreSQL keeps new search text in a holding list and later moves the whole list into the index. The write that filled the list, about 4 MB, used to do that move itself while it held the session's lock, so that write and the session's saves waited for it. In a benchmark that indexed 4 to 8 sessions while agents wrote to them, 10 to 15 writes per run did this. Atomic now raises the list's limit to 64 MB and empties it in the background, on a connection that holds no session's lock, after every 128,000 characters of search text. Autovacuum also empties it after every 1,000 new rows. In the same benchmark the list never grew past 7 MB, so no write emptied it. Searches find new text as before, whether it has been moved or not. Run `atomic storage migrate` as the owner role to apply the settings to an existing database. Agents that connect as a runtime role leave the emptying to autovacuum, so keep autovacuum on ([#6638](https://github.com/bastani-inc/atomic/pull/6638)).
|
|
97
|
+
- On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and says which 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. This applies to installs with npm, pnpm, Yarn or Bun. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
98
|
+
- On PostgreSQL, until `atomic storage migrate` sets `fillfactor` on the sessions table and the Intercom lease table, a process now checks each table's setting once instead of every time it opens a store. A role that may not change those tables, such as a runtime role, then opens the session store in 4 round trips instead of 5 from its second open on. Once migrate has set it, no open checks it, as before ([#6635](https://github.com/bastani-inc/atomic/pull/6635), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
99
|
+
- On macOS, the standalone `atomic` binary now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the SQLite that comes with macOS, whose version depends on your macOS release. You don't need to do anything. The copy ships in the release archive as `lib/libsqlite3.dylib`. `atomic storage status` now shows the SQLite version in use on a `library:` line. If the copy can't be loaded, Atomic prints one warning and uses the system's SQLite instead ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
|
|
100
|
+
- On PostgreSQL, saving to a session no longer waits while a history search indexes that session. The search's writes to the index used to hold the session's lock, so the agent writing the session stopped until they finished. They now take a lock of the session's index instead, which only a rewrite of the whole session also takes, so a rewrite and an index write still take turns and search never shows text from before the rewrite. In a benchmark on a busy machine, with history searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms and the 95th percentile 154 ms instead of 353 ms, about the same as with no indexing at all (51 ms and 180 ms) ([#6654](https://github.com/bastani-inc/atomic/pull/6654)).
|
|
101
|
+
- On PostgreSQL, statements that look up a list of values, such as reading chat records, refreshing the session list, reading a fork's entries or locking its sources, now send the list as one value. Each statement then has the same text however long the list is, so PostgreSQL parses and plans it once per connection instead of once per list length, and `pg_stat_statements` shows one line for it instead of dozens. Reading chat records for 1 to 20 lines used to show up as 20 different statements, and now shows up as 1 ([#6644](https://github.com/bastani-inc/atomic/pull/6644), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
102
|
+
- On PostgreSQL, saving a new entry to a session writes less to the database. Each save updated a row of the worktree snapshot index in a way that also rewrote that row's entries in the table's other indexes. Now PostgreSQL updates the row in place, and those indexes stay about 40% smaller. In a test of 4,000 saves, none were updated in place before and over 98% were after. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a database with more than about 150,000 snapshot index rows, only `atomic storage migrate` changes it, and it does so without stopping saves. On 3 million rows, saves waited up to 0.9 s while an open changed the index, and at most 42 ms while `atomic storage migrate` did. Older Atomic versions keep working on the changed database. In exchange, snapshot cleanup now reads all of a session's entries since its first snapshot to find where its branches end, which took 1 to 3 ms for a session of 20,000 entries ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
|
|
103
|
+
- Many agents can now open a new PostgreSQL database at once without queueing for its lock. One of them creates each table while the others wait for it without holding a lock or a database connection; before, every agent's setup held the whole database's lock in turn. At 80 ms latency behind PgBouncer, 25 agents that each opened a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and none waited for a lock for more than 0.1 seconds, where before 982 lock waits lasted over a second and the longest 21 seconds. 100 agents all opened in 24 seconds, where before 97 of them failed 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, with about 600 write transactions instead of 3,300. Opening a database that is already set up costs the same as before, and running `atomic storage migrate` before you start the agents still skips the setup entirely ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
|
|
104
|
+
- The storage docs now have one page per backend, for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, and the old guide links redirect to them ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
|
|
105
|
+
- The docs site's changelog page is now built from each release's summary and lists every release ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
|
|
106
|
+
- On PostgreSQL, opening a session store whose tables are up to date now waits for 2 round trips instead of 43, and takes no lock, and opening an Intercom broker waits for 1 round trip instead of 3. The first query that opens the database reads the list of Atomic's tables and their recorded versions so the store does not read them again, and the snapshot index's two checks go out together. Many processes starting together against one database no longer wait for each other's schema checks, a missing table or column is still created, a newer schema is still refused, and a process's first chat record uses the same check so it no longer waits for other writers. At 80 ms latency, reopening a session store takes about a quarter of a second less than after initial schema catalog caching ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6606](https://github.com/bastani-inc/atomic/pull/6606), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
107
|
+
- On local SQLite, opening a session store or an Intercom broker whose tables are current reads the schema in one statement instead of checking each table and column on its own, and once tables are set up and stamped, reopening an Intercom broker or a process's first chat record no longer takes the database's write lock at all (down from 30 write locks), so brokers that start together no longer wait for each other. Atomic records which version of each store's tables it set up along with SQLite's own count of schema changes; if anything changes the tables later, including an older Atomic, the next open checks them again instead of trusting the record ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6612](https://github.com/bastani-inc/atomic/pull/6612), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
108
|
+
- Reading a session from a local SQLite file now waits for the database's background thread 2 or 3 times instead of 4 or 5. A read starts with its first queries in one message and doesn't wait for its final commit ([#6609](https://github.com/bastani-inc/atomic/pull/6609), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
109
|
+
- Sessions saved as JSONL files make fewer file operations. On macOS and Linux, Atomic keeps a session's file open while the session is being written, and closes it after 30 seconds without a write, when the session is released, or when Atomic exits. Entries saved at the same moment go into the file in one write, so ten saves at once cost about as much as one. Saving an entry takes 7 file operations instead of 18, ten saves at once 7 instead of 180, and reading a session's latest entries 7 instead of 22 (reduced further to 6 by unlocked reads above). Reopening a folder of sessions only checks each file's size and time instead of reading it again. A folder of 201 sessions reopens in about 9 ms instead of about 640 ms. `history://` reads of a session's last entries read from the end of the file instead of from the start ([#6605](https://github.com/bastani-inc/atomic/pull/6605), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
110
|
+
- On PostgreSQL, saving new entries to a session takes 1 round trip instead of 2 (down from 7 or more) after you run `atomic storage migrate` as the owner role. The migration adds a database function that does the whole save inside the database, and lets the runtime role run it. Saves through it store exactly what they stored before. Until the migration runs, and for long entries stored in chunks, saves take 2 round trips. If another process changed the session since this process last saved it, the function notices, writes nothing, and the save goes the old way. Older Atomic versions keep working against a database that has the function ([#6604](https://github.com/bastani-inc/atomic/pull/6604), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
111
|
+
- Searching a past session (`history://`) a second time, once Atomic has indexed it, now reads the entries that match, and the lines shown around them, in one request instead of one request per entry. Results, their order, where a result is cut short and the link to continue are the same as before. At 80 ms latency a search with 8 matches took 5 round trips instead of 28, and 0.5 s instead of 2.8 s on PostgreSQL. In the SDK, `SessionStore.readEntryRange` now gets a list of sequence numbers in `seqs`. A custom store should return only the entries at those numbers. One that returns the whole range still gives the same results, but reads more. See [Custom `SessionStore` contracts](docs/storage/custom-adapters.md#custom-sessionstore-contracts) ([#6607](https://github.com/bastani-inc/atomic/pull/6607), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
112
|
+
- On PostgreSQL, calls from one process that cannot conflict now run at the same time on separate connections, instead of one at a time. A transaction sends its statements without waiting for each answer, so saving entries to a session takes 2 round trips instead of 7 or more (and 1 round trip after `atomic storage migrate`). A read-only transaction returns as soon as its reads are answered ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
113
|
+
- In the SDK, `SqliteDatabase.openReader()` now works for SQLite file databases and for drivers that provide the new `SqliteDriver.openReader` hook. It returns a read handle with its own connection and call queue, which closes with the database ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
114
|
+
- Local SQLite databases reuse prepared statements, up to 256 per connection, instead of preparing each statement again ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
115
|
+
- On PostgreSQL, agents that write different sessions of one shared database no longer wait for each other. A session write now locks only its own session, and session loads and history reads use a read-only snapshot that does not wait for writers' locks ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
116
|
+
- On PostgreSQL, creating or replacing a session with entries sends them without waiting for each answer. Subagents that fork a session from another store no longer wait for each other, and no longer wait for or hold up writes to other sessions. Before, every such fork waited for all the others while it copied its rows into the shared staging table, so many forks at once could take minutes and some failed with a lock timeout. Now each fork locks only its own staged rows and the new child session. Each batch of rows takes 2 round trips instead of one per row, and publishing the child takes 3. In a test with 20 forks at once and 80 ms latency, the median fork took 13 seconds instead of 100, and none of 60 failed, where 9 had before ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6591](https://github.com/bastani-inc/atomic/pull/6591), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
117
|
+
- On PostgreSQL, storing or refreshing worktree snapshot blobs, which happens on every turn while snapshots are on, no longer takes the database-wide lock, so it no longer waits for or holds up session writes. Each now takes 2 round trips (1 round trip for small batches). At 80 ms latency, storing five blobs dropped from 585 ms to 172 ms ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
118
|
+
- On PostgreSQL, `atomic storage migrate` now sets `fillfactor = 80` on the sessions table, which leaves 20% free space on each page, so the update each save makes to a session's row is cheaper. It applies to pages written afterwards. A runtime role without DDL privileges keeps working and leaves the change to the table's owner ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
119
|
+
- In the agent panel, `↓` on the last row now moves back to the first row and scrolls to the top. `↑` on the first row still returns to the prompt ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
|
|
120
|
+
- `bash` and `powershell` commands no longer stop after 5 minutes when no `timeout` is given. A command runs until it finishes, someone stops it with `kill` or `/tasks`, or its session closes, so long builds, test runs, dev servers, file watchers and tunnels keep going. `timeout` still sets a deadline in seconds, now with no upper limit instead of 1 hour (refusing `0` instead of stopping immediately), and the advice to split longer runs into shorter commands is gone. To guard against runaway launches, a session runs at most 64 commands at once, its subagents' shells included. At that limit a new command is refused with a message saying how to free a place, and nothing running is stopped. See [Background shells](docs/background-tasks.md#background-shells) ([#6574](https://github.com/bastani-inc/atomic/pull/6574), [#6581](https://github.com/bastani-inc/atomic/pull/6581)).
|
|
121
|
+
- The skill list in the model's instructions now gives each skill's location as a short `skill://<name>` address instead of the full path to its `SKILL.md`, so your home folder no longer appears in every prompt and the list keeps working when a skill moves or a session resumes on another computer. `read`, `search`, `find` and `bash` resolve these addresses for every skill Atomic loads: bundled, package, user, project and extension skills. `skill://<name>/<path>` opens a file in the skill's folder, `skill://<name>:10-40` reads a few lines, and bash replaces an unquoted address with the real path, so a skill's script runs as `bash skill://<name>/scripts/<file>`. When two skills share a name, the plain address opens the skill that wins, and `skill://<name>@user` or `@builtin` picks one. `/skill:` commands record the same address, and reading a whole skill starts with `Base directory for this skill: skill://<name>/`. Full paths recorded by earlier sessions keep working. See [Skill addresses](docs/skills.md#skill-addresses) ([#6589](https://github.com/bastani-inc/atomic/pull/6589)).
|
|
122
|
+
- On PostgreSQL, reading a session's tail, resuming it or finding its latest compaction no longer reads the session's row on its own first: the row goes out with the read's start, and the entries it names go out together. At 80 ms on PostgreSQL a tail took 175 ms instead of 375 ms and a resume 176 ms instead of 451 ms. Each page a `history://` search reads costs one round trip instead of two ([#6599](https://github.com/bastani-inc/atomic/pull/6599), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
123
|
+
- When forking or cloning a session copies entries (for example before `atomic storage migrate` enables shared-history forks on PostgreSQL, or across stores), it no longer copies one entry and one blob at a time. Within one session database, the database copies the stored entries, their chunks, search text and tool output blobs in a few statements, so a copy takes about the same number of round trips however long the session is. On PostgreSQL at 80 ms latency, cloning a 500-entry session took 29 round trips and 2.6 s instead of 378 round trips and 33 s, and a subagent fork of a 500-entry session took 15 round trips and 1.2 s instead of 210 and 17.8 s. Session stores opened separately on the same database with the same table prefix, such as two handles in one process, now count as the same store, so a fork between them avoids staging every entry: 2.2 s instead of 112 s for 500 entries. A fork into a store with another table prefix or database, which is still staged, reads its source in fewer, larger requests: 6.5 s instead of 112 s for 500 entries ([#6596](https://github.com/bastani-inc/atomic/pull/6596), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
|
|
127
|
+
- On macOS, resuming a session whose blueprint build was cut off because Atomic was killed no longer waits 5 minutes for a build step that is still running. Atomic now reads when a process started on macOS too, so the next resume can tell the leftover step is that build's and stop it at once. Session claims, worktree leases and other locks on macOS also tell a process that died from a later one given its process ID. Locks written by earlier versions, which name no start, are judged by process ID as before ([#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6704](https://github.com/bastani-inc/atomic/issues/6704)).
|
|
128
|
+
- Fixed pipelined storage transactions (such as PostgreSQL) blaming a failure already recovered by `ROLLBACK TO SAVEPOINT` when `COMMIT` later fails or loses its connection, which could misclassify an ambiguous commit failure as `"not-applied"` and retry an already-committed transaction. The facade now keeps the commit's own recognized failure, skips calls recovered by a fulfilled `ROLLBACK TO SAVEPOINT`, and lets drivers notify it immediately before writing `COMMIT` in `leadingOnly` transactions ([#6723](https://github.com/bastani-inc/atomic/pull/6723), [#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
129
|
+
- A session saved in a JSONL directory is no longer lost or left empty by a power cut or system crash just after Atomic saved it. Each save now waits until its entries are synced to disk before acknowledging, and concurrent saves share one lock, one write per session file, and parallel syncs across sessions in the group. A new, forked, or rewritten session file is synced before it is linked or renamed into place, and its directory is synced after. On macOS this uses plain `fsync(2)` through `@bastani/atomic-natives` (`fsyncDescriptor`), matching the default SQLite store and the standalone binary instead of Node.js's `fcntl(F_FULLFSYNC)`; Linux uses `fdatasync(2)` and Windows uses `FlushFileBuffers`. A save whose sync fails is truncated back and rejected without failing other sessions in the same group that already synced. Crash recovery also ignores zero-filled unwritten pages before EOF and strips them on the next append, ensures `.idx` sidecars are written only after syncing the session file and validates them against lost earlier pages on load, reuses kept handles when catching up foreign appends, and batches chat-record index and slot opens. On Linux, 200 sequential saves took 103 ms vs 54 ms on Node.js (112 ms vs 67 ms on Bun), while 20 sessions making 25 concurrent saves finished in 83 ms vs 109 ms on Node.js (82 ms vs 104 ms on Bun) and batched chat-record saves took 13 ms vs 40 ms ([#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
130
|
+
- Resuming a session whose blueprint 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 the build lock now records the step's start in the same write that names the step, so the next resume can tell the leftover step is that build's and stop it at once ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
|
|
131
|
+
- Rebuilding the worktree snapshot index now gives forks that share their parent's history the same links their saves wrote, so snapshot cleanup keeps the same snapshots before and after a rebuild. Before, a fork's entry could come out differently when its session had two entries with the same ID, or an entry whose parent was stored after it. That happens with imported sessions, or after a fork copied its parent's entries in below its own. A save and a rebuild now find an entry's parent with the same lookup, among the entries before it, and the first of two entries with one ID wins in both. Copying a parent's entries into a fork still links them with one statement per block of copied entries, and then checks the fork's links in the same request that rewrites what the fork reads, so it takes the same number of statements whatever the fork's length: detaching a 1,000-entry parent's two forks takes 43 statements on SQLite (41 before) and 51 round trips on PostgreSQL (54 before). Only a fork whose entries share an ID, or name a parent stored after them, is linked again entry by entry ([#6669](https://github.com/bastani-inc/atomic/pull/6669), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
132
|
+
- A session read now sees a write to that session that the same store started earlier, even if the caller did not wait for the write to finish. Reads in a SQLite file or PostgreSQL session store go through a separate reader connection, so calling `store.append(...)` without awaiting it and then `store.load(...)` could return the session without the appended entries. A read now waits for the same store's unfinished writes to that session first. With none pending, it waits for nothing ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
|
|
133
|
+
- An extension's `pi.exec` command that was still running when Atomic was killed (for example with `kill -9`, or by the system when memory runs out) no longer keeps running on macOS when the session runs in Atomic's own process, as it does for a project left untrusted. It now ends with the processes it started, as it already did with the default isolated engine. On Linux those processes now end too; before, only the command itself did. A program the command started detached, and anything a command that already finished left running, still keep running ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
|
|
134
|
+
- 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)" in `atomic storage status` after every Atomic process had closed it, for example right after `atomic storage import`. macOS's SQLite, which that binary uses, would not open a store read-only once its last connection had removed the `-wal` file ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
|
|
135
|
+
- A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update (`npm install -g`, `bun add -g`) no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history in that database. It opens the store, and its forks share their parent's history as in a new process ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
|
|
136
|
+
- On macOS, a session kept in JSONL session files no longer stops accepting new messages with a "Session conflict" error after the file's modified date is set to an earlier date, for example by `touch` or by a backup or sync tool that restores dates. macOS moves a file's creation date back with it, and Atomic used that date to recognize the session file. Sessions, their indexes and saved diagnostics from earlier versions keep working after the update ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
137
|
+
- A background search of past sessions (`history://`) with a pattern that takes minutes to check no longer holds up other history reads and searches. They used to wait behind it, and could stop with "the time budget ran out" or never finish. Now a slow pattern check moves aside after a fifth of a second, and the other searches carry on ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
|
|
138
|
+
- On macOS, the interactive TUI no longer shows a line such as "node(31280) MallocStackLogging: can't turn off malloc stack logging because it was not enabled." for each command a session or subagent runs. After the Mac comes under memory pressure, macOS prints it for every process Atomic starts. It's harmless, and Atomic now drops it from the engine's output ([#6643](https://github.com/bastani-inc/atomic/pull/6643)).
|
|
139
|
+
- A session forked under the ID of a deleted session now starts empty, as a session created under that ID already did. Before, if forks still read the deleted session's history, the new session showed that old history mixed into its own. Deleting the last of those forks then also removed the new session's own entries. On PostgreSQL, creating a session under such an ID also no longer deadlocks with a fork of one of those forks made at the same time, including a fork of a fork made while the session was being created. Previously one side was rolled back and ran again ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
140
|
+
- A compaction model such as `morph/morph-compactor` no longer has its output thrown away for being long. Before, output over 32,000 estimated tokens (or half of the automatic trigger), or output that left the context above the automatic trigger, failed with "output too long" and the context was cleared instead, so a 275,000-token result on a 1M-token model was lost. A compaction model's output now has no built-in size limit. Only limits you configure apply: `maxTokens` on the compactor model, which has no default, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. If the output still leaves the context past the automatic trigger, Atomic doesn't compact it again before every tool call in the same turn. If the provider then reports the context is too long, Atomic compacts and retries once, as for any context, and then shows the provider's error. The request timeout still defaults to 120 seconds. Compacted text from an extension's `session_before_compact` hook keeps its limits ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
|
|
141
|
+
- On macOS, an agent directory can no longer open another agent directory's session database through a hard link once the database's modified date has been set to an earlier date ([#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
142
|
+
- Forking one of a deleted session's forks back into the deleted session's ID now works. It used to fail with "Invalid fork segment" ([#6676](https://github.com/bastani-inc/atomic/pull/6676), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
143
|
+
- A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update no longer deletes worktree snapshots that a fork shares with its parent when it cleans up old snapshots, for example after the parent session is deleted. The database now refuses to delete a snapshot that a fork still uses, so the fork can still restore it. Once no fork uses it, it is cleaned up as before ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
|
|
144
|
+
- On PostgreSQL, replacing a session's history in a session store no longer deadlocks with a fork of one of that session's forks made at the same time. Previously one of the two was rolled back and ran again ([#6682](https://github.com/bastani-inc/atomic/pull/6682), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
145
|
+
- Forking a session that holds leftover pieces of long entries, which an older Atomic version can leave behind, no longer copies them into the fork or fails with `Missing chunk of session entry`. A fork copies only the pieces each entry uses ([#6611](https://github.com/bastani-inc/atomic/pull/6611), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
146
|
+
- `atomic storage migrate` now creates the session chat records' table, so a PostgreSQL runtime role without DDL privileges saves turn diagnostics instead of silently dropping them. A table that an earlier release created is used as it is ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
147
|
+
- `atomic storage migrate` now also creates Intercom's ended-subagent queue tables, so a runtime role without DDL privileges keeps messages for ended subagents in the shared database instead of failing with `permission denied for schema atomic` and keeping them in memory only ([#6588](https://github.com/bastani-inc/atomic/pull/6588), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
148
|
+
- On macOS, commands started by Atomic, including background servers, are now stopped when the Atomic process dies ([#5057](https://github.com/bastani-inc/atomic/issues/5057), [#6580](https://github.com/bastani-inc/atomic/pull/6580)).
|
|
149
|
+
- If a provider retires Atomic's preferred chat model, Atomic selects another model from that provider's catalog instead of leaving you without a default after login ([#6582](https://github.com/bastani-inc/atomic/pull/6582)).
|
|
150
|
+
- The agent panel now remembers when you choose `main`. The next `↓` from an empty prompt selects `main` again instead of the subagent you had selected before it ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
|
|
151
|
+
- Opening a subagent from `/tasks` with `Enter` or a click now makes it the agent panel's remembered row, so the next `↓` from an empty prompt selects it ([#6564](https://github.com/bastani-inc/atomic/pull/6564)).
|
|
152
|
+
- Expanding the card of a subagent that is waiting on a tool call now shows its task and its tool calls, with the waited-on call marked `◌`, instead of only the card's first line. A card with no prompt to show leaves out the Prompt section instead of showing `(none)`, and a card with nothing more to show no longer offers to expand ([#6562](https://github.com/bastani-inc/atomic/pull/6562)).
|
|
153
|
+
- When the compaction model cannot reach its server, the notice now gives the reason instead of only `fetch failed`. If the server's host name resolves only to `0.0.0.0` or `::`, which is how DNS filters such as NextDNS, Pi-hole, and AdGuard block a domain, the notice says so and names the domain to allow ([#6561](https://github.com/bastani-inc/atomic/pull/6561)).
|
|
154
|
+
- If you use a custom agent directory (`ATOMIC_CODING_AGENT_DIR`), move its parent folder, and then copy the agent directory as a backup, the backup no longer takes over the session store in the parent folder. This could happen when the file system gave the backup's files the ID of a deleted file ([#5242](https://github.com/bastani-inc/atomic/issues/5242), [#6570](https://github.com/bastani-inc/atomic/pull/6570)).
|
|
155
|
+
- On macOS, the event-loop stall reports that `ATOMIC_EVENT_LOOP_BLOCK_MS` turns on include stacks again after the Mac has slept. The profiler's clock and Node.js's clock drift apart while a Mac sleeps, and Atomic now lines them up ([#6583](https://github.com/bastani-inc/atomic/pull/6583)).
|
|
156
|
+
|
|
157
|
+
### Removed
|
|
158
|
+
|
|
159
|
+
- Removed the `@bastani/atomic-storage-libsql` adapter. It is no longer published with Atomic releases ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
160
|
+
- `atomic storage join` and `atomic storage migrate --db` now take only `postgres://` and `postgresql://` URLs ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
161
|
+
|
|
162
|
+
## [0.10.11-alpha.4] - 2026-11-27
|
|
163
|
+
|
|
164
|
+
JSONL sessions now sync to disk before acknowledging saves while reading unlocked and writing concurrently across sessions, SQLite and PostgreSQL cut round trips and lock contention across opens, reads, deletes, and fork detaches, Intercom batches renewals, releases, wake-ups, and settlements, and macOS gains process-start tracking for instant resume recovery.
|
|
165
|
+
|
|
166
|
+
**JSONL storage**
|
|
167
|
+
|
|
168
|
+
- **Saves sync to disk before acknowledging, with group commit.** Concurrent saves share one write per session file and sync files in parallel before acknowledging; new, forked, and rewritten files sync before linking or renaming and sync their directory afterward. On macOS this uses plain `fsync(2)` via `@bastani/atomic-natives` (`fsyncDescriptor`), matching SQLite's default. Crash recovery handles zero-filled mid-file pages cleanly and validates `.idx` sidecars against lost earlier pages ([#6700](https://github.com/bastani-inc/atomic/pull/6700), [#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
169
|
+
- **Session reads run without the directory lock.** `load`, `readTail`, `readRange`, and `readResume` read through a single handle and check afterward that `.session.lock` is absent and the path stat is unchanged, retrying under the lock if a writer raced. Eight concurrent reader processes ran 100 tail reads each in 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun ([#6721](https://github.com/bastani-inc/atomic/pull/6721), [#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
170
|
+
- **Kernel advisory locks and per-session-file stripes.** Writers now coordinate through OS advisory locks (`flock` on Unix, `LockFileEx` on Windows) and 32 striped per-file locks while keeping `<dir>/.session.lock` compatible with older builds. Recovering after a killed writer dropped from ~10.2 s to ~5 ms, and 8 processes saving to distinct sessions ran 3.3× faster ([#6732](https://github.com/bastani-inc/atomic/pull/6732), [#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
171
|
+
|
|
172
|
+
**SQLite and PostgreSQL storage**
|
|
173
|
+
|
|
174
|
+
- **Pipelined SQLite writes, off-commit WAL checkpoints, and batched opens.** File-backed SQLite write transactions bundle leading statements with `BEGIN IMMEDIATE` and final writes with `COMMIT`, handle lock-holder writes and queue checks on the connection thread, move `PRAGMA wal_checkpoint(PASSIVE)` off the commit path while bounding `-wal` files to 4 MiB, and batch schema setup on open into one write transaction (new session store: 4 locks / 31 waits → 1 lock / 7 waits; new Intercom broker: 24 locks / 103 waits → 1 lock / 10 waits) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6727](https://github.com/bastani-inc/atomic/pull/6727), [#6730](https://github.com/bastani-inc/atomic/pull/6730), [#6706](https://github.com/bastani-inc/atomic/issues/6706), [#6707](https://github.com/bastani-inc/atomic/issues/6707), [#6709](https://github.com/bastani-inc/atomic/issues/6709)).
|
|
175
|
+
- **Fewer round trips and narrower locks on PostgreSQL sessions.** Deleting or replacing an indexed session drops from 13 / 12 round trips to 3; session `load`, `list`, `findMostRecent`, `findEntrySeq`, `readEntrySizes`, `readForkWindow`, stale `readTail`, and fork `readResume` pipeline their schema and row reads (1.5×–3.0× faster at 80 ms latency); and session deletes and tombstone sweeps lock only the target session instead of the whole database (-42% to -44% p95 append latency under concurrent deletes) ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6728](https://github.com/bastani-inc/atomic/pull/6728), [#6733](https://github.com/bastani-inc/atomic/pull/6733), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
176
|
+
- **Faster fork detaches, snapshot blob puts, and warm history searches.** Paged fork-detach link checks now scale linearly with pages (detaching two 20,000-entry forks dropped from 5.69 s to 2.63 s on PostgreSQL and 328 ms to 279 ms on Node SQLite), small snapshot blob puts take 1 SQLite thread wait / 1 PostgreSQL round trip instead of 10 / 2, and warm `history://` candidate reads batch state + first window into one read-only transaction ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
177
|
+
|
|
178
|
+
**Intercom**
|
|
179
|
+
|
|
180
|
+
- **Batched heartbeats, scans, releases, wake-ups, and SQLite settlements.** Brokers now check idle hosted recipients in one read (21×–37× faster at 50–200 brokers), renew all in-flight message claims, membership/presence leases, and restoring reservations in one statement per tick (up to 12.3× faster p50 at 200 brokers), release departing sessions' claims in one statement, batch wake-up publishes and embed non-reply outcome hints inside delivery settlement (1 round trip instead of 4), group-commit delivery settlements on SQLite, and send post-commit notices off the serial call queue via `StorageNotifications.send` ([#6690](https://github.com/bastani-inc/atomic/pull/6690), [#6693](https://github.com/bastani-inc/atomic/pull/6693), [#6722](https://github.com/bastani-inc/atomic/pull/6722), [#6724](https://github.com/bastani-inc/atomic/pull/6724), [#6725](https://github.com/bastani-inc/atomic/pull/6725), [#6726](https://github.com/bastani-inc/atomic/pull/6726), [#6734](https://github.com/bastani-inc/atomic/pull/6734), [#6712](https://github.com/bastani-inc/atomic/issues/6712), [#6713](https://github.com/bastani-inc/atomic/issues/6713), [#6714](https://github.com/bastani-inc/atomic/issues/6714), [#6715](https://github.com/bastani-inc/atomic/issues/6715), [#6716](https://github.com/bastani-inc/atomic/issues/6716)).
|
|
181
|
+
|
|
182
|
+
**Fixes**
|
|
183
|
+
|
|
184
|
+
- **Dropped PostgreSQL connections after `COMMIT` are never retried.** Fixed two bugs where a connection drop after `COMMIT` was written (either after a savepoint-recovered statement error or in a `leadingOnly` transaction) could be misclassified as `"not-applied"` and re-executed ([#6723](https://github.com/bastani-inc/atomic/pull/6723), [#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
185
|
+
- **Immediate resume recovery and faster review viewer on macOS.** Atomic now reads process creation times on macOS so resuming after a killed host stops leftover build steps at once instead of waiting 5 minutes and distinguishes dead lock holders from reused PIDs, and the skill-creator review viewer no longer stalls on a reverse DNS lookup of `127.0.0.1` ([#6694](https://github.com/bastani-inc/atomic/pull/6694), [#6687](https://github.com/bastani-inc/atomic/pull/6687), [#6704](https://github.com/bastani-inc/atomic/issues/6704), [#6691](https://github.com/bastani-inc/atomic/issues/6691)).
|
|
186
|
+
- **Intercom reply redelivery and local reply ordering.** Transient durable-inbox save failures no longer strand same-connection redeliveries of reply or ask-failure outcomes, and plain local sends behind an active local reply on a contended store no longer overtake that reply when a healthy database write exceeds 300 ms ([#6729](https://github.com/bastani-inc/atomic/pull/6729), [#6736](https://github.com/bastani-inc/atomic/pull/6736), [#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
187
|
+
|
|
188
|
+
### Added
|
|
189
|
+
|
|
190
|
+
- `StorageNotifications` in `@bastani/atomic/storage` adds an optional `send(notices)` method for sending already-committed notifications together outside the database facade's serial call queue ([#6712](https://github.com/bastani-inc/atomic/issues/6712)).
|
|
191
|
+
|
|
192
|
+
### Changed
|
|
193
|
+
|
|
194
|
+
- On PostgreSQL, deleting a session now locks only that session and its search index instead of the whole database, so unrelated session writers keep running beside deletes; post-delete tombstone sweeps also scope their lock to each tombstoned session, and the `detachForks`, `resumeForkDetaches`, and `sweepForkTombstones` schema gates and discovery queries now run read-only without taking a write lock (cutting idle gate and sweep checks from 10 to 1–2 round trips, and fork detaches from 51 to 39–41 round trips). Rebuilding a stale resume index now reuses the row read with the transaction start, folds the revision check into one conditional `UPDATE … RETURNING`, and pipelines the follow-up read, cutting stale `readTail` and fork `readResume` from 9–10 to 7 round trips. With 8 writers appending alongside deletes at 20 ms latency, append p95 fell from 218 ms to 123 ms directly and from 211 ms to 122 ms through PgBouncer ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
195
|
+
- On PostgreSQL, session reads take fewer round trips, both directly and through PgBouncer in transaction mode: loading a session drops from 2 awaited round trips to 1, listing sessions or finding the most recent session for a directory drops from 3 to 2 (and listing all sessions from 2 to 1), looking up an entry sequence drops from 3 to 1 (or 2 after a concurrent schema or fork change), and reading entry sizes or a fork window drops from 3 awaited round trips to 2. Looking up an entry sequence also folds the snapshot-index completeness check into a single statement on both SQLite and PostgreSQL. At 80 ms latency, loading a session took 84 ms instead of 162 ms, listing a directory took 163 ms instead of 244 ms, finding an entry sequence took 81 ms instead of 244 ms, and reading entry sizes or a fork window took 162 ms instead of 240 ms ([#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
196
|
+
- On PostgreSQL, deleting or replacing an indexed session now takes 3 round trips instead of 13 for a delete and 12 for a replace, both directly and through PgBouncer in transaction mode. The session's per-table deletes and rewrite now go out with the commit in one request, and forgetting its search index sends its savepoint, deletes and release together. At 80 ms latency, deleting a session took about 0.25 seconds instead of 1.03 seconds and replacing one took about 0.25 seconds instead of 0.96 seconds ([#6697](https://github.com/bastani-inc/atomic/pull/6697), [#6710](https://github.com/bastani-inc/atomic/issues/6710)).
|
|
197
|
+
- Checking a detached fork's worktree snapshot links now reads the fork's links in one pass and looks up each entry's parent once, so the check takes about half the time it first did: 1.9 ms instead of 3.7 ms on SQLite, and 6.4 ms instead of 10.7 ms on PostgreSQL, for a fork of 1,000 entries ([#6692](https://github.com/bastani-inc/atomic/pull/6692), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
198
|
+
- On file-backed SQLite stores, write transactions now run their leading statements in the same connection-thread request as `BEGIN IMMEDIATE`, bundle their final writes (`transactionFinisher`) in the same request as `COMMIT` (or a group-commit member's `RELEASE`), send single-step `leadingOnly` transactions (such as Intercom lease acquisitions) with `COMMIT` in one request, send each group-commit member's `SAVEPOINT` with its leading statements, and handle write-lock holder record updates and writers'-queue directory checks on the connection thread to remove two thread-pool waits per uncontended commit. Creating a session and appending to it now wait for the connection thread 2 times instead of 4, `leadingOnly` lease writes wait once instead of 4 times (~1.5x faster median latency), and 100 concurrent appenders wait 201 times per batch instead of 402, with durability unchanged (WAL, `synchronous=FULL`) ([#6698](https://github.com/bastani-inc/atomic/pull/6698), [#6731](https://github.com/bastani-inc/atomic/pull/6731), [#6706](https://github.com/bastani-inc/atomic/issues/6706)).
|
|
199
|
+
- Batched the search-state lookup and first candidate window of a `history://` index search into one read-only transaction, cutting warm search candidate queries from 2 thread waits to 1 on SQLite and from 2 round trips across separate snapshots to 1 round trip in one snapshot on PostgreSQL ([#6695](https://github.com/bastani-inc/atomic/pull/6695), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
200
|
+
- Detaching long shared-history forks a page at a time now scales linearly with the number of pages instead of redoing work over earlier pages. Each page's link statement counts children only past the page's start for the IDs the page copies, the per-page link check tests earlier rows against the page's ID set once, rows whose parent comes from a remaining segment look the segment up once instead of twice, and segment lookups and segment duplicate checks are skipped when no segments remain (or before the earliest remaining segment). Detaching a 20,000-entry parent's two forks with the default 2,000-row pages dropped from 328 ms to 279 ms on Node SQLite (peak write-lock hold 39.5 ms to 31.4 ms), 344 ms to 298 ms on Bun SQLite, and 5.69 s to 2.63 s on PostgreSQL (163 ms to 97 ms for 1,000 entries) ([#6699](https://github.com/bastani-inc/atomic/pull/6699), [#6705](https://github.com/bastani-inc/atomic/issues/6705), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
201
|
+
- Storing small batches of worktree snapshot blobs (fewer than 256 statements and at most 1 MiB total) now sends the inserts and `COMMIT` with the transaction's start. On file-backed SQLite stores, putting 8 small blobs now waits for the connection thread once instead of 10 times (2 times with transaction finishers alone) while taking the write lock once. On PostgreSQL (direct and behind PgBouncer), a small snapshot blob put now takes 1 round trip instead of 2; in an interleaved benchmark of 8-blob puts behind PgBouncer at 40 ms RTT, median latency dropped from 120 ms to 81 ms, and on localhost from 0.54 ms to 0.40 ms. Larger or chunked puts keep the existing fallback path ([#6696](https://github.com/bastani-inc/atomic/pull/6696), [#6708](https://github.com/bastani-inc/atomic/issues/6708)).
|
|
202
|
+
- Reading a JSONL session (`load`, `readTail`, `readRange` and `readResume`) no longer takes the directory lock when no writer is active, so readers across processes no longer queue behind one another or stall concurrent writers. Each read opens or reuses one handle, stats it first, reads the header and entries through that same handle, and verifies afterward that `.session.lock` is absent and the path stat still matches on device, inode, size and timestamps; if either check fails, or the file has a legacy header, it retries under the lock. On a 200-entry session with a kept handle, a warm tail, range or resume read takes 6 file-system requests instead of 7 and a whole-session load 5 instead of 10; 8 concurrent reader processes finished 100 tail reads each in about 61 ms instead of 478 ms on Node and 62 ms instead of 787 ms on Bun, and a writer sharing the directory with 4 active readers finished 50 saves in 44 ms instead of 190 ms on Node ([#6719](https://github.com/bastani-inc/atomic/issues/6719)).
|
|
203
|
+
- Writing to a JSONL session store now coordinates through operating-system advisory locks (`flock` on Unix, `LockFileEx` on Windows) and per-session-file striped locks instead of serializing the whole directory behind a single `proper-lockfile` lock. New writers hold `<dir>/.session.lock` together as a group so older builds remain excluded and unlocked readers still detect active writers, while writes and syncs to different session files proceed concurrently across 32 striped lock files (with an exclusive create lock for claim-and-link). When a writer process is killed, the kernel releases its advisory locks immediately and the next writer cleans up `.session.lock` at once instead of waiting for the 10-second stale window. On durable ext4 disk, recovering after a `SIGKILL`ed holder dropped from ~10.2 s to ~5 ms, and multi-process concurrent saves to distinct sessions improved from 846 ms to 443 ms (4 processes × 20 saves, 1.9×) and from 1,264 ms to 388 ms (8 processes × 15 saves, 3.3×) ([#6718](https://github.com/bastani-inc/atomic/issues/6718)).
|
|
204
|
+
- Opening a SQLite session store or Intercom broker on a new or upgraded database now batches all needed schema setup—tables, missing columns, indexes, snapshot triggers, search tables and schema stamps—into a single write transaction through `tryMaintenance`, keeping the poll-until-done fallback when another process holds the write lock. Opening a new session store now takes 1 write lock and 7 thread waits instead of 4 locks and 31 waits (median 29.9 ms vs 37.3 ms on Node 24; 23.1 ms vs 28.8 ms on Bun 1.4.5), opening a new Intercom broker takes 1 write lock and 10 waits instead of 24 locks and 103 waits (51.3 ms vs 64.6 ms on Node 24; 41.2 ms vs 56.8 ms on Bun 1.4.5), and the broker's second open now takes 0 locks and 8 waits instead of 1 lock and 12 waits. With 8 concurrent hosts opening a fresh session store and broker together, total write locks dropped from 60 to 2 (80.1 ms vs 128.5 ms on Node 24; 77.8 ms vs 108.2 ms on Bun 1.4.5) ([#6709](https://github.com/bastani-inc/atomic/issues/6709)).
|
|
205
|
+
- On local SQLite stores, write-ahead log checkpointing now runs off the commit path and shrinks overgrown `-wal` files back to 4 MiB once long readers end. Writable connections raise `wal_autocheckpoint` to 10,000 pages as a safety net, set `journal_size_limit` to 4 MiB, and run `PRAGMA wal_checkpoint(PASSIVE)` on the connection thread after answering the caller whenever no transaction is open and the `-wal` file grew past 4 MiB since the last check. In interleaved benchmarks after a held reader grew the WAL to 17.8 MiB, the first commit after the reader ended dropped from 10.1 ms to 1.2 ms on Node and 8.4 ms to 1.0 ms on Bun, and the `-wal` file shrank back to 4.0 MiB instead of staying 17.8 MiB ([#6707](https://github.com/bastani-inc/atomic/issues/6707)).
|
|
206
|
+
|
|
207
|
+
### Fixed
|
|
208
|
+
|
|
209
|
+
- On macOS, resuming a session whose blueprint build was cut off because Atomic was killed no longer waits 5 minutes for a build step that is still running. Atomic now reads when a process started on macOS too, so the next resume can tell the leftover step is that build's and stop it at once. Session claims, worktree leases and other locks on macOS also tell a process that died from a later one given its process ID. Locks written by earlier versions, which name no start, are judged by process ID as before ([#6704](https://github.com/bastani-inc/atomic/issues/6704)).
|
|
210
|
+
- Fixed pipelined storage transactions (such as PostgreSQL) blaming a failure already recovered by `ROLLBACK TO SAVEPOINT` when `COMMIT` later fails or loses its connection, which could misclassify an ambiguous commit failure as `"not-applied"` and retry an already-committed transaction. The facade now keeps the commit's own recognized failure, skips calls recovered by a fulfilled `ROLLBACK TO SAVEPOINT`, and lets drivers notify it immediately before writing `COMMIT` in `leadingOnly` transactions ([#6711](https://github.com/bastani-inc/atomic/issues/6711)).
|
|
211
|
+
- A session saved in a JSONL directory is no longer lost or left empty by a power cut or system crash just after Atomic saved it. Each save now waits until its entries are synced to disk before acknowledging, and concurrent saves share one lock, one write per session file, and parallel syncs across sessions in the group. A new, forked, or rewritten session file is synced before it is linked or renamed into place, and its directory is synced after. On macOS this uses plain `fsync(2)` through `@bastani/atomic-natives` (`fsyncDescriptor`), matching the default SQLite store and the standalone binary instead of Node.js's `fcntl(F_FULLFSYNC)`; Linux uses `fdatasync(2)` and Windows uses `FlushFileBuffers`. A save whose sync fails is truncated back and rejected without failing other sessions in the same group that already synced. Crash recovery also ignores zero-filled unwritten pages before EOF and strips them on the next append, ensures `.idx` sidecars are written only after syncing the session file and validates them against lost earlier pages on load, reuses kept handles when catching up foreign appends, and batches chat-record index and slot opens. On Linux, 200 sequential saves took 103 ms vs 54 ms on Node.js (112 ms vs 67 ms on Bun), while 20 sessions making 25 concurrent saves finished in 83 ms vs 109 ms on Node.js (82 ms vs 104 ms on Bun) and batched chat-record saves took 13 ms vs 40 ms ([#6686](https://github.com/bastani-inc/atomic/issues/6686), [#6717](https://github.com/bastani-inc/atomic/issues/6717)).
|
|
212
|
+
|
|
213
|
+
## [0.10.11-alpha.3] - 2026-11-26
|
|
214
|
+
|
|
215
|
+
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.
|
|
216
|
+
|
|
217
|
+
**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)).
|
|
218
|
+
|
|
219
|
+
**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)).
|
|
220
|
+
|
|
221
|
+
**Storage and Intercom**
|
|
222
|
+
|
|
223
|
+
- **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)).
|
|
224
|
+
- **`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)).
|
|
225
|
+
- **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)).
|
|
226
|
+
- **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)).
|
|
227
|
+
- **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)).
|
|
228
|
+
- **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)).
|
|
229
|
+
- **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)).
|
|
230
|
+
- **`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)).
|
|
231
|
+
- **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)).
|
|
232
|
+
- **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)).
|
|
233
|
+
- **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)).
|
|
234
|
+
- **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)).
|
|
235
|
+
- **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)).
|
|
236
|
+
|
|
237
|
+
**Docs**
|
|
238
|
+
|
|
239
|
+
- **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)).
|
|
240
|
+
- **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)).
|
|
241
|
+
|
|
242
|
+
**Fixes**
|
|
243
|
+
|
|
244
|
+
- **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)).
|
|
245
|
+
- **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)).
|
|
246
|
+
- **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)).
|
|
247
|
+
- **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)).
|
|
248
|
+
- **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)).
|
|
249
|
+
- **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)).
|
|
250
|
+
- **`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)).
|
|
251
|
+
- **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)).
|
|
252
|
+
- **`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)).
|
|
253
|
+
- **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)).
|
|
254
|
+
- **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)).
|
|
255
|
+
- **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)).
|
|
256
|
+
- **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)).
|
|
257
|
+
- **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)).
|
|
258
|
+
- **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)).
|
|
259
|
+
|
|
260
|
+
### Breaking Changes
|
|
261
|
+
|
|
262
|
+
- Atomic no longer supports libSQL, which covers Turso, self-hosted `sqld` and libSQL `file:` databases. A `storage` or `sessions.storage` setting, an `ATOMIC_STORAGE`, `ATOMIC_SESSIONS_STORAGE`, `--storage` or SDK selection, or a URL that still names libSQL now stops Atomic at once with a `libsql-removed` error that says how to move. Nothing falls back to another store. To keep your sessions, export them with 0.10.11-alpha.2, which reads every libSQL database: `npx -y @bastani/atomic@0.10.11-alpha.2 storage export ~/moved --storage-file old-storage.json`, with `old-storage.json` holding your old `storage` setting. Then import them with this release, into PostgreSQL (`atomic storage join postgres://…` and `atomic storage import ~/moved --storage-file new-storage.json`) or into local SQLite (`atomic storage import ~/moved`). Forks keep their whole history and worktree snapshots keep their content. Finally 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)).
|
|
263
|
+
- Removed the libSQL team setup, with these replacements ([#6624](https://github.com/bastani-inc/atomic/pull/6624)):
|
|
264
|
+
- `atomic team join` and `atomic team leave` now fail with `libsql-removed`. Join a PostgreSQL database with `atomic storage join postgres://… --password-file <path>`. To keep sessions on the machine while Intercom uses the shared database, add `"sessions": { "storage": {} }` to global settings. To leave, remove `storage` and `sessions.storage` and run `atomic intercom restart`. `atomic team status` still works.
|
|
265
|
+
- `ATOMIC_PROFILE=ci` and `ATOMIC_TEAM_URL`, `ATOMIC_TEAM_TOKEN`, `ATOMIC_TEAM_TOKEN_FILE` and `ATOMIC_TEAM_PREFIX` now fail startup when set. Set `ATOMIC_STORAGE` to a PostgreSQL selection instead, with the password in an `{ "env": "<VAR>" }` secret.
|
|
266
|
+
- The SDK's `joinTeam()`, `leaveTeam()` and `teamProfileSelection()` now always throw `TeamProfileConfigError` with code `libsql-removed`. They stay exported, deprecated, only so a running process that an in-place update catches does not crash. The SDK no longer exports the `JoinTeamOptions`, `LeaveTeamOptions`, `TeamJoinResult`, `TeamLeaveResult`, `TeamBrokerRestart`, `TeamKeptSetting`, `TeamSettingKey`, `TeamProfileSelectionOptions` and `TeamStorageSelection` types. Pass `createAgentSession({ storage })` a PostgreSQL selection, with the password as `inMemorySecret(password)`. `getTeamProfile()` still works.
|
|
267
|
+
- `LIBSQL_ADAPTER_PACKAGE`, `TEAM_PROFILE_ENV`, `TEAM_URL_ENV`, `TEAM_TOKEN_ENV`, `TEAM_TOKEN_FILE_ENV`, `TEAM_PREFIX_ENV`, `SHARED_STORAGE_JOIN_HINT` and `TEAM_JOIN_COMMAND` are deprecated and will be removed. Nothing uses them any more: Atomic refuses the adapter and the variables they name. Use `POSTGRES_ADAPTER_PACKAGE` and `POSTGRES_STORAGE_JOIN_HINT`.
|
|
268
|
+
- The `teamJoin` setting that `atomic team join` wrote is no longer read. You can delete it.
|
|
269
|
+
|
|
270
|
+
### Added
|
|
271
|
+
|
|
272
|
+
- Storage adapters receive a new transaction option, `relaxedDurability`, for writes whose loss in a server crash is harmless, such as lease renewals. A driver may answer the commit before the write reaches disk, or ignore the option. The PostgreSQL adapter turns `synchronous_commit` off for that transaction only. See [custom storage adapters](docs/storage/custom-adapters.md) ([#6633](https://github.com/bastani-inc/atomic/pull/6633), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
273
|
+
- `StorageNotifications.notify` in `@bastani/atomic/storage` takes an optional third argument, `unless`, a read. When it is given, the notification goes out only if that read returns no row when the notification is sent. Adapters that do not support it send the notification anyway ([#6655](https://github.com/bastani-inc/atomic/pull/6655)).
|
|
274
|
+
|
|
275
|
+
### Changed
|
|
276
|
+
|
|
277
|
+
- On PostgreSQL, `atomic storage migrate` now tunes two kinds of tables for you. It tells autovacuum to clean the small busy tables `session_sessions`, `intercom_leases` and `snapshot_session_links` after a fixed number of dead rows, which the tuning guide used to ask you to set by hand. In a test with 20,000 sessions, `session_sessions` held about a third as many dead rows on average. It also switches large session entries, stored files and Intercom messages to `lz4` compression when the server supports it. In a test with large values built from real session history and source files, compressing them took about 60% less time and reading them back 17% to 50% less, while the space they took changed by less than 20%. A value you set on one of these tables yourself is kept. See the [tuning guide](docs/storage/postgres/tuning.md) ([#6642](https://github.com/bastani-inc/atomic/pull/6642), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
278
|
+
- On PostgreSQL, writing history-search text no longer stalls now and then. PostgreSQL keeps new search text in a holding list and later moves the whole list into the index. The write that filled the list, about 4 MB, used to do that move itself while it held the session's lock, so that write and the session's saves waited for it. In a benchmark that indexed 4 to 8 sessions while agents wrote to them, 10 to 15 writes per run did this. Atomic now raises the list's limit to 64 MB and empties it in the background, on a connection that holds no session's lock, after every 128,000 characters of search text. Autovacuum also empties it after every 1,000 new rows. In the same benchmark the list never grew past 7 MB, so no write emptied it. Searches find new text as before, whether it has been moved or not. Run `atomic storage migrate` as the owner role to apply the settings to an existing database. Agents that connect as a runtime role leave the emptying to autovacuum, so keep autovacuum on ([#6638](https://github.com/bastani-inc/atomic/pull/6638)).
|
|
279
|
+
- On a Node.js older than 24.20.0, `atomic` now stops as soon as it starts and says which 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. This applies to installs with npm, pnpm, Yarn or Bun. The release archive brings its own runtime and is unaffected ([#6629](https://github.com/bastani-inc/atomic/pull/6629)).
|
|
280
|
+
- On PostgreSQL, until `atomic storage migrate` sets `fillfactor` on the sessions table and the Intercom lease table, a process now checks each table's setting once instead of every time it opens a store. A role that may not change those tables, such as a runtime role, then opens the session store in 4 round trips instead of 5 from its second open on. Once migrate has set it, no open checks it, as before ([#6635](https://github.com/bastani-inc/atomic/pull/6635), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
281
|
+
- On macOS, the standalone `atomic` binary now uses its own copy of SQLite 3.53.4, the version Node.js 24.20 includes, instead of the SQLite that comes with macOS, whose version depends on your macOS release. You don't need to do anything. The copy ships in the release archive as `lib/libsqlite3.dylib`. `atomic storage status` now shows the SQLite version in use on a `library:` line. If the copy can't be loaded, Atomic prints one warning and uses the system's SQLite instead ([#6641](https://github.com/bastani-inc/atomic/pull/6641)).
|
|
282
|
+
- On PostgreSQL, saving to a session no longer waits while a history search indexes that session. The search's writes to the index used to hold the session's lock, so the agent writing the session stopped until they finished. They now take a lock of the session's index instead, which only a rewrite of the whole session also takes, so a rewrite and an index write still take turns and search never shows text from before the rewrite. In a benchmark on a busy machine, with history searches indexing 8 sessions while agents wrote to them, the median save took 55 ms instead of 109 ms and the 95th percentile 154 ms instead of 353 ms, about the same as with no indexing at all (51 ms and 180 ms) ([#6654](https://github.com/bastani-inc/atomic/pull/6654)).
|
|
283
|
+
- On PostgreSQL, statements that look up a list of values, such as reading chat records, refreshing the session list, reading a fork's entries or locking its sources, now send the list as one value. Each statement then has the same text however long the list is, so PostgreSQL parses and plans it once per connection instead of once per list length, and `pg_stat_statements` shows one line for it instead of dozens. Reading chat records for 1 to 20 lines used to show up as 20 different statements, and now shows up as 1 ([#6644](https://github.com/bastani-inc/atomic/pull/6644), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
284
|
+
- On PostgreSQL, saving a new entry to a session writes less to the database. Each save updated a row of the worktree snapshot index in a way that also rewrote that row's entries in the table's other indexes. Now PostgreSQL updates the row in place, and those indexes stay about 40% smaller. In a test of 4,000 saves, none were updated in place before and over 98% were after. Atomic changes the index the first time it opens the database as the owner role, or when you run `atomic storage migrate`. On a database with more than about 150,000 snapshot index rows, only `atomic storage migrate` changes it, and it does so without stopping saves. On 3 million rows, saves waited up to 0.9 s while an open changed the index, and at most 42 ms while `atomic storage migrate` did. Older Atomic versions keep working on the changed database. In exchange, snapshot cleanup now reads all of a session's entries since its first snapshot to find where its branches end, which took 1 to 3 ms for a session of 20,000 entries ([#6653](https://github.com/bastani-inc/atomic/pull/6653), [#6680](https://github.com/bastani-inc/atomic/pull/6680)).
|
|
285
|
+
- Many agents can now open a new PostgreSQL database at once without queueing for its lock. One of them creates each table while the others wait for it without holding a lock or a database connection; before, every agent's setup held the whole database's lock in turn. At 80 ms latency behind PgBouncer, 25 agents that each opened a session store and an Intercom broker on an empty database took 15 seconds instead of 258, and none waited for a lock for more than 0.1 seconds, where before 982 lock waits lasted over a second and the longest 21 seconds. 100 agents all opened in 24 seconds, where before 97 of them failed 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, with about 600 write transactions instead of 3,300. Opening a database that is already set up costs the same as before, and running `atomic storage migrate` before you start the agents still skips the setup entirely ([#6679](https://github.com/bastani-inc/atomic/pull/6679)).
|
|
286
|
+
- The storage docs now have one page per backend, for SQLite, JSONL, PostgreSQL setup, PgBouncer, PostgreSQL server tuning and custom adapters, and the old guide links redirect to them ([#6619](https://github.com/bastani-inc/atomic/pull/6619), [#6656](https://github.com/bastani-inc/atomic/pull/6656)).
|
|
287
|
+
- The docs site's changelog page is now built from each release's summary and lists every release ([#6621](https://github.com/bastani-inc/atomic/pull/6621)).
|
|
288
|
+
|
|
289
|
+
### Fixed
|
|
290
|
+
|
|
291
|
+
- Resuming a session whose blueprint 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 the build lock now records the step's start in the same write that names the step, so the next resume can tell the leftover step is that build's and stop it at once ([#6684](https://github.com/bastani-inc/atomic/pull/6684)).
|
|
292
|
+
- Rebuilding the worktree snapshot index now gives forks that share their parent's history the same links their saves wrote, so snapshot cleanup keeps the same snapshots before and after a rebuild. Before, a fork's entry could come out differently when its session had two entries with the same ID, or an entry whose parent was stored after it. That happens with imported sessions, or after a fork copied its parent's entries in below its own. A save and a rebuild now find an entry's parent with the same lookup, among the entries before it, and the first of two entries with one ID wins in both. Copying a parent's entries into a fork still links them with one statement per block of copied entries, and then checks the fork's links in the same request that rewrites what the fork reads, so it takes the same number of statements whatever the fork's length: detaching a 1,000-entry parent's two forks takes 43 statements on SQLite (41 before) and 51 round trips on PostgreSQL (54 before). Only a fork whose entries share an ID, or name a parent stored after them, is linked again entry by entry ([#6669](https://github.com/bastani-inc/atomic/pull/6669), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
293
|
+
- A session read now sees a write to that session that the same store started earlier, even if the caller did not wait for the write to finish. Since 0.10.11-alpha.1, reads in a SQLite file or PostgreSQL session store go through a separate reader connection. Because of that, calling `store.append(...)` without awaiting it and then `store.load(...)` could return the session without the appended entries. A read now waits for the same store's unfinished writes to that session first. With none pending, it waits for nothing ([#6632](https://github.com/bastani-inc/atomic/pull/6632)).
|
|
294
|
+
- An extension's `pi.exec` command that was still running when Atomic was killed (for example with `kill -9`, or by the system when memory runs out) no longer keeps running on macOS when the session runs in Atomic's own process, as it does for a project left untrusted. It now ends with the processes it started, as it already did with the default isolated engine. On Linux those processes now end too; before, only the command itself did. A program the command started detached, and anything a command that already finished left running, still keep running ([#6648](https://github.com/bastani-inc/atomic/pull/6648)).
|
|
295
|
+
- 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)" in `atomic storage status` after every Atomic process had closed it, for example right after `atomic storage import`. macOS's SQLite, which that binary uses, would not open a store read-only once its last connection had removed the `-wal` file ([#6622](https://github.com/bastani-inc/atomic/pull/6622)).
|
|
296
|
+
- A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update (`npm install -g`, `bun add -g`) no longer fails to open a PostgreSQL session store with "this store needs a newer Atomic" once forks share history in that database. It opens the store, and its forks share their parent's history as in a new process ([#6631](https://github.com/bastani-inc/atomic/pull/6631)).
|
|
297
|
+
- On macOS, a session kept in JSONL session files no longer stops accepting new messages with a "Session conflict" error after the file's modified date is set to an earlier date, for example by `touch` or by a backup or sync tool that restores dates. macOS moves a file's creation date back with it, and Atomic used that date to recognize the session file. Sessions, their indexes and saved diagnostics from earlier versions keep working after the update ([#6647](https://github.com/bastani-inc/atomic/pull/6647), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
298
|
+
- A background search of past sessions (`history://`) with a pattern that takes minutes to check no longer holds up other history reads and searches. They used to wait behind it, and could stop with "the time budget ran out" or never finish. Now a slow pattern check moves aside after a fifth of a second, and the other searches carry on ([#6627](https://github.com/bastani-inc/atomic/pull/6627)).
|
|
299
|
+
- On macOS, the interactive TUI no longer shows a line such as "node(31280) MallocStackLogging: can't turn off malloc stack logging because it was not enabled." for each command a session or subagent runs. After the Mac comes under memory pressure, macOS prints it for every process Atomic starts. It's harmless, and Atomic now drops it from the engine's output ([#6643](https://github.com/bastani-inc/atomic/pull/6643)).
|
|
300
|
+
- A session forked under the ID of a deleted session now starts empty, as a session created under that ID already did. Before, if forks still read the deleted session's history, the new session showed that old history mixed into its own. Deleting the last of those forks then also removed the new session's own entries. On PostgreSQL, creating a session under such an ID also no longer deadlocks with a fork of one of those forks made at the same time, including a fork of a fork made while the session was being created. Previously one side was rolled back and ran again ([#6660](https://github.com/bastani-inc/atomic/pull/6660), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
301
|
+
- A compaction model such as `morph/morph-compactor` no longer has its output thrown away for being long. Before, output over 32,000 estimated tokens (or half of the automatic trigger), or output that left the context above the automatic trigger, failed with "output too long" and the context was cleared instead, so a 275,000-token result on a 1M-token model was lost. A compaction model's output now has no built-in size limit. Only limits you configure apply: `maxTokens` on the compactor model, which has no default, or the endpoint's own options in `compactionParams`, such as Morph's `compression_ratio`. If the output still leaves the context past the automatic trigger, Atomic doesn't compact it again before every tool call in the same turn. If the provider then reports the context is too long, Atomic compacts and retries once, as for any context, and then shows the provider's error. The request timeout still defaults to 120 seconds. Compacted text from an extension's `session_before_compact` hook keeps its limits ([#6649](https://github.com/bastani-inc/atomic/pull/6649), [#6671](https://github.com/bastani-inc/atomic/pull/6671)).
|
|
302
|
+
- On macOS, an agent directory can no longer open another agent directory's session database through a hard link once the database's modified date has been set to an earlier date ([#6661](https://github.com/bastani-inc/atomic/pull/6661), [#4319](https://github.com/bastani-inc/atomic/issues/4319)).
|
|
303
|
+
- Forking one of a deleted session's forks back into the deleted session's ID now works. It used to fail with "Invalid fork segment" ([#6676](https://github.com/bastani-inc/atomic/pull/6676), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
304
|
+
- A process still running Atomic 0.10.10 or 0.10.11-alpha.1 after an in-place update no longer deletes worktree snapshots that a fork shares with its parent when it cleans up old snapshots, for example after the parent session is deleted. The database now refuses to delete a snapshot that a fork still uses, so the fork can still restore it. Once no fork uses it, it is cleaned up as before ([#6657](https://github.com/bastani-inc/atomic/pull/6657)).
|
|
305
|
+
- On PostgreSQL, replacing a session's history in a session store no longer deadlocks with a fork of one of that session's forks made at the same time. Previously one of the two was rolled back and ran again ([#6682](https://github.com/bastani-inc/atomic/pull/6682), [#6560](https://github.com/bastani-inc/atomic/issues/6560)).
|
|
306
|
+
|
|
307
|
+
### Removed
|
|
308
|
+
|
|
309
|
+
- Removed the `@bastani/atomic-storage-libsql` adapter. It is no longer published with Atomic releases ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
310
|
+
- `atomic storage join` and `atomic storage migrate --db` now take only `postgres://` and `postgresql://` URLs ([#6624](https://github.com/bastani-inc/atomic/pull/6624)).
|
|
311
|
+
|
|
5
312
|
## [0.10.11-alpha.2] - 2026-11-26
|
|
6
313
|
|
|
7
314
|
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.
|