Repository navigation
feat(store): SQLite Stores are synchronous=NORMAL only; remove the Disposable (OFF) profile - #757
Merged
Merged
Conversation
…sposable (OFF) profile Owner direction 2026-11-23: every SQLite Store opens WAL / synchronous=NORMAL. - layerfs-persistence: remove SqlitePersistenceProfile::Disposable; permitted() is Normal only; the read-only diagnostic open uses Normal; snapshot copies (VACUUM INTO and the copy's checkpoint) write with the Store's synchronous instead of OFF. - layerfs-bridge: StoreProfile::Disposable is renamed StoreProfile::Normal (wire byte 2 unchanged), with the daemon, install, init and discovery checks and their messages. - layerfs-store: new and restored Store records carry profile "normal"; a record written earlier with "disposable" reads as "normal" and is never rewritten (record::profile, test profile_label). - Tests, examples and benches select Normal; disposable_startup_sync (OFF never syncs) is removed; assertions expect synchronous=1 and sqlite-wal-normal-v2; call-surface examples answer profile "normal". - Docs and AGENTS.md describe Normal as the only SQLite Store profile; recorded receipts measured under the former Disposable/OFF profile say so. Unchanged on purpose (not Stores): each Workspace's overlay database, the compaction and diagnostic scratch files, and the compaction rebuild's bulk load (its file is sync_all'd and renamed into place). Durable stays NOT_RUN — disabled by owner until explicit reauthorization. Verified on macOS (release): clippy -D warnings on the affected crates, and all 130 changed test targets pass. Linux daemon mount tests were not run: the build container has no /dev/fuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Owner direction 2026-11-23: every SQLite Store opens WAL /
synchronous=NORMAL. The Disposable (WAL /synchronous=OFF) profile is removed.SqlitePersistenceProfile::Disposableremoved;permitted()is Normal only. The read-only diagnostic open uses Normal. Snapshot copies (VACUUM INTOand the copy's checkpoint) write with the Store's synchronous instead of OFF.StoreProfile::DisposablerenamedStoreProfile::Normal. Wire byte 2 is unchanged, so existing manifests still decode. The daemon, install, init and discovery checks and their messages follow.profile: "normal". A record written earlier with"disposable"reads as"normal"(record::profile) and is never rewritten. New testprofile_label.disposable_startup_sync(which asserted OFF never syncs) is removed. Assertions expectsynchronous=1andsqlite-wal-normal-v2, and the call-surface examples (calls.json,families/store.json) answerprofile: "normal".AGENTS.mddescribe Normal as the only SQLite Store profile. Recorded receipts measured under the former Disposable/OFF profile are labelled as such.Unchanged on purpose (these are not Stores)
visitedscratch and the diagnostic scratch.sync_all'd and renamed into place.Durable stays
NOT_RUN — disabled by owner until explicit reauthorization. Store files copied outside SQLite (install, transfer, restore) are still not synchronized (layerfs-project#155 §7.3).Verification
tools/worktree.py:cargo clippy --release --all-targets -D warningson persistence, bridge, store-service, project, daemon, store, api, cli, control, sandbox, bucket and nfs: clean.profile_label,sqlite_publication,background_checkpoint,snapshot,serverless_store,api contractandcli usage_lines.mounted_*,forced_producers,fp27_reader_health,r5_10_producer_profile) are NOT_RUN here: every failure iskernel attach Device: No such file or directoryor a deniedfusectlmount, because the container has no/dev/fuse. These need a FUSE-capable Linux host.🤖 Generated with Claude Code