Repository navigation
Store: operator-configurable commit durability (#859) - #904
Merged
Merged
Conversation
store({durability: 'full' | 'normal'}) in host.mjs, else STORE_DURABILITY,
else full, sets the connection's SQLite synchronous level (WAL unchanged).
Anything else, off and extra included, is refused by host() before serving.
An activation with normal writes one extension_warning that the last commits
can be lost on power loss or an OS crash. The urlcode-store operator commands
always commit with FULL. Documented in docs/STORE.md "Durability" with the
docs/CAPACITY.md measurements.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 12:45
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.
Implements the owner decision on #859: the store's SQLite
synchronouslevel is an operator setting per site. The default stays the safest.store({durability: 'full' | 'normal'})inhost.mjs, falling back toSTORE_DURABILITY, then'full'.fullmeans SQLitesynchronous=FULL,normalmeans NORMAL. WAL is unchanged. Never in project YAML.off,extra, wrong case, empty) is refused athost()before serving.normal, each activation writes oneextension_warning: the last committed writes can be lost on power loss or an OS crash; a process crash loses nothing.urlcode-storecommands always commit with FULL.backupis read-only.Evidence
durability.test.ts(4 tests): the default reads backPRAGMA synchronous= FULL andnormalreads back NORMAL; invalid values are refused; there is exactly one warning; option-over-env precedence holds; the CLI stays FULL underSTORE_DURABILITY=normal.npm run verifyandtest:packagepassed. After rebasing onto main, the only failure was main's own core-size overage, which Re-measure the core package budget after #900 and #901 (fixes main's CI) #903 fixes. No core files change here.🤖 Generated with Claude Code