Skip to content

Keep paired loan snapshots ordered across overlapping refreshes - #361

Merged
bliatun-code merged 1 commit into
mainfrom
codex/order-loan-snapshots
Dec 2, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/order-loan-snapshots

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Paired loan snapshots

A delayed response could overwrite the active list or history after a more recent refresh had already recorded a return. Allocate the Client request number before the Host read and commit each list with its own publication marker. A superseded read returns that list’s committed rows and capture time. Failed cache writes roll back the marker and payload together.

The active list (2,500 rows) and standard history (2,000 rows) keep their existing endpoints and offline formats. A custom history limit returns a live page scoped to the reviewed pairing and leaves the shared offline history intact.

Verification

  • npm run verify
  • Native tests cover a delayed active response after a confirmed empty list, delayed history after a return, independent active/history publication, an interrupted SQLite write, a custom one-row history read, and A–B–A.

@bliatun-code
bliatun-code merged commit e406f66 into main Dec 2, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/order-loan-snapshots branch December 2, 2026 14:31
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