feat: native foundation (shell, auth, SQLite, sync engine) #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/foundation"
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?
Native foundation
Turns the scaffold into an app that signs in, restores its session offline, owns a local SQLite mirror of the synced entities, and runs a sync engine that converges with
rollnote-api's/sync/*endpoints (API branchfeat/sync-support).Spec:
docs/superpowers/specs/2026-10-13-native-foundation-design.md. Plan:docs/superpowers/plans/2026-10-13-native-foundation.md.What is in
sync_outbox,sync_meta,sync_error,changelog_cache; migration 0000 bundled through Metro and applied synchronously before the first render; the same bundle runs in tests on better-sqlite3.updatedAtfrom the server-aligned clock and write the outbox in one transaction; outbox coalescing,sentAttracking, stamp-guarded resolve, orphan pruning./syncclient with URL-encoded ISO cursors and a 60 s timeout.dockerrunner,run-cilabel gate), README, version 0.2.0.Verification
format:checkclean.GET /folder; sign out asks before dropping a pending change, wipes every table and the secure store, and re-sign-in repopulates.Notes
e4de58fmust clear app data once. From this merge on, migrations are append-only.usesCleartextTrafficper build profile, Android build in CI and the Maestro flow.adb reverse(release builds embed the bundle).https://claude.ai/code/session_013Ew5mX388EkuWC6ytSKkdc