Skip to content

Make offline upgrades lossless - #77

Merged
rdlabo merged 1 commit into
mainfrom
agent/offline-lossless-upgrade
Aug 16, 2026
Merged

Make offline upgrades lossless#77
rdlabo merged 1 commit into
mainfrom
agent/offline-lossless-upgrade

Conversation

@rdlabo

@rdlabo rdlabo commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

What changed

  • migrate released offline core schema v1 stores to v2 without discarding commands, retry state, optimistic images, companions, or integrity metadata
  • add a prefetched authoritative change API that shares pull reconciliation and accepts repository-derived changes inside the same mutation transaction
  • keep prefetched writes enabled for readCacheOnly while leaving background pull disabled and never advancing the pull cursor
  • bulk-preload replica rows by source/partition for reconciliation and SQLite upserts, removing change- and command-count query N+1 behavior

Why

Applications upgrading from the released 21.5 command format must retain durable offline intent. Foreground HTTP responses also need the same authoritative ACK/conflict/rematerialization boundary as background pull without cursor races or product-level reconciliation copies.

Impact

Consumers can normalize legacy intent from the retained compatibility fields, and apply already-fetched server batches atomically through OfflineReplicaPullService.applyChanges(). Existing unknown core versions still fail closed.

Validation

  • npx ng test kit --watch=false — 47 files / 870 tests passed
  • npm run lint
  • npm run prebuild:kit
  • Prettier check and git diff --check

@netlify

netlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Deploy Preview for rdlabo-ionic-angular-library ready!

Name Link
🔨 Latest commit cb549b4
🔍 Latest deploy log https://app.netlify.com/projects/rdlabo-ionic-angular-library/deploys/6a7f1f8a59fca80008fcfd76
😎 Deploy Preview https://deploy-preview-77--rdlabo-ionic-angular-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@rdlabo
rdlabo merged commit 22c5d0d into main Aug 16, 2026
12 checks passed
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