Skip to content

Store: operator-configurable commit durability (#859) - #904

Merged
jimhoyd merged 2 commits into
mainfrom
claude/store-durability-setting
Sep 29, 2026
Merged

jimhoyd merged 2 commits into
mainfrom
claude/store-durability-setting

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Implements the owner decision on #859: the store's SQLite synchronous level is an operator setting per site. The default stays the safest.

  • Setting: store({durability: 'full' | 'normal'}) in host.mjs, falling back to STORE_DURABILITY, then 'full'. full means SQLite synchronous=FULL, normal means NORMAL. WAL is unchanged. Never in project YAML.
  • Refusals: any other value (off, extra, wrong case, empty) is refused at host() before serving.
  • Warning: with normal, each activation writes one extension_warning: the last committed writes can be lost on power loss or an OS crash; a process crash loses nothing.
  • Operator CLI: the urlcode-store commands always commit with FULL. backup is read-only.
  • Docs: STORE.md "Durability" with a trade-off table, the store README host options, CAPACITY.md linked from the Measure the SQLite store: throughput, commit cost and list ordering (#859) #882 measurements, CHANGELOG.

Evidence

🤖 Generated with Claude Code

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
jimhoyd enabled auto-merge (squash) September 29, 2026 12:45
@jimhoyd
jimhoyd merged commit 3168f2f into main Sep 29, 2026
22 checks passed
@jimhoyd
jimhoyd deleted the claude/store-durability-setting branch September 29, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant