Skip to content

Preserve learning data through validated backups and system file export - #5

Merged
RaycarlLei merged 2 commits into
mainfrom
codex/learning-backup-recovery
Sep 8, 2026
Merged

RaycarlLei merged 2 commits into
mainfrom
codex/learning-backup-recovery

Conversation

@RaycarlLei

Copy link
Copy Markdown
Owner

WordAI could preserve progress inside one installation but had no way to export it or review a restore before replacement. This adds a bounded learning snapshot, a confirmation flow, and native system-file saving for Android and iOS. Restoring keeps earned progress and answer history, closes unfinished rounds, and prepares fresh questions next round.

The format uses explicit field allowlists, strict identity/reference checks and a 32 MiB actual-byte limit. Capture reads one SQLite transaction; replacement writes one transaction, with disk-backed trigger tests for rollback after partial work. Startup sample seeding is now atomic and only runs for an empty profile, so refreshes and later launches preserve a restored vocabulary.

Android acceptance uses an API 35 emulator, the real document picker and synthetic providers, including blocked writes and late callbacks. iOS has a signing-free simulator build check. Widget coverage includes confirmation, safe errors, disposal during async work and large text; manual Flutter render review checks the light and dark layouts.

Native CI results are required before merge. These tests do not establish physical-device coverage, power-loss durability or cloud-provider synchronization. Backups are readable JSON, omit credentials/settings/audio, and cannot extract data from an older installation signed with another key. Development APK distribution still uses debug signing.

@RaycarlLei
RaycarlLei merged commit 4ed4952 into main Sep 8, 2026
4 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