NEC-15: Checkpoint writer: stop discarding edit history #145
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!145
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-15-checkpoint-writer-stop-discarding-edit-hi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: NEC-15 — https://projectron.nerchure.com/tasks/15
Compaction overwrote a document's one snapshot and deleted the log beneath it, so every document past 500 updates lost every earlier state. putSnapshot now moves the superseded snapshot byte-for-byte into a new doc_checkpoints table in the same transaction, and thins that document's checkpoints (all under 48 h, newest per UTC day to 90 days, newest per week beyond, never expired, newest always kept). Server-side rather than the client-written MessageType 19 the card proposed, by the user's decision: it needs no plugin release or wire change and protects every installed client from the deploy on. Deletion, account export/import/purge and usage metering carry the new table; STORE-003/025/026/050/051 and the security model are updated. Mutation-checked in both directions, including the WebSocket path through the threaded writer.
Spec:
docs/changes/NEC-15-checkpoint-writer/spec.mdChangelog
The server now keeps earlier versions of each note when it compacts edit history, instead of discarding them.
81d2d138d4b7e32716eb