Skip to content

Remove public whole-state save API - #4

Merged
halqme merged 4 commits into
mainfrom
refactor/remove-public-state-save
Jul 10, 2026
Merged

Remove public whole-state save API#4
halqme merged 4 commits into
mainfrom
refactor/remove-public-state-save

Conversation

@halqme

@halqme halqme commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Remove the exported Store.Save(State) API so stale whole-state persistence cannot be reintroduced by future callers.

  • initialize a new database through a private initializeState helper
  • keep initialization on the existing transactional syncStateTx path
  • replace Save-oriented persistence tests with Update + Load round-trip coverage

Why

Normal writes now use Store.Update(expectedRevision, mutate), but leaving Store.Save(State) exported still makes it easy for future code to bypass CAS and overwrite newer state. This PR removes that escape hatch entirely.

@halqme
halqme merged commit 4491cef into main Jul 10, 2026
1 check passed
@halqme
halqme deleted the refactor/remove-public-state-save branch July 12, 2026 00:22
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