LifeMate — Personal, Family & Learning Companion
fix/local-task-persistence
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | name: Verify local device persistence |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [fix/local-task-persistence] |
| 6 | paths: |
| 7 | - 'apps/lifemate/**' |
| 8 | - '.github/workflows/local-persistence.yml' |
| 9 | |
| 10 | permissions: |
| 11 | contents: read |
| 12 | |
| 13 | concurrency: |
| 14 | group: local-device-persistence-${{ github.ref }} |
| 15 | cancel-in-progress: true |
| 16 | |
| 17 | jobs: |
| 18 | flutter-checks: |
| 19 | runs-on: ubuntu-latest |
| 20 | timeout-minutes: 25 |
| 21 | defaults: |
| 22 | run: |
| 23 | working-directory: apps/lifemate |
| 24 | steps: |
| 25 | - uses: actions/checkout@v4 |
| 26 | with: |
| 27 | persist-credentials: false |
| 28 | - uses: subosito/flutter-action@v2 |
| 29 | with: |
| 30 | channel: stable |
| 31 | flutter-version: '3.47.6' |
| 32 | cache: true |
| 33 | - run: flutter pub get |
| 34 | - name: Check formatting in persistence change files |
| 35 | run: | |
| 36 | dart format --output=none --set-exit-if-changed \ |
| 37 | lib/main.dart lib/phase3_ui.dart lib/role_entry_main.dart \ |
| 38 | lib/local_data_store.dart lib/local_only_api.dart lib/local_write_guard.dart \ |
| 39 | test/app_test.dart test/local_persistence_test.dart \ |
| 40 | test/local_persistence_ui_test.dart test/local_test_preferences.dart \ |
| 41 | integration_test test_driver |
| 42 | - run: flutter analyze --no-pub |
| 43 | - run: flutter test --no-pub --reporter expanded |
| 44 | |
| 45 | android-persistence: |
| 46 | needs: flutter-checks |
| 47 | runs-on: ubuntu-latest |
| 48 | timeout-minutes: 60 |
| 49 | env: |
| 50 | ORG_GRADLE_PROJECT_lifemateLocalTest: 'true' |
| 51 | defaults: |
| 52 | run: |
| 53 | working-directory: apps/lifemate |
| 54 | steps: |
| 55 | - uses: actions/checkout@v4 |
| 56 | with: |
| 57 | persist-credentials: false |
| 58 | - name: Free unused runtimes on the disposable Android runner |
| 59 | run: | |
| 60 | sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/.ghcup |
| 61 | df -h "$RUNNER_TEMP" |
| 62 | - uses: actions/setup-java@v4 |
| 63 | with: |
| 64 | distribution: temurin |
| 65 | java-version: '17' |
| 66 | - uses: gradle/actions/setup-gradle@v4 |
| 67 | with: |
| 68 | cache-read-only: false |
| 69 | - uses: subosito/flutter-action@v2 |
| 70 | with: |
| 71 | channel: stable |
| 72 | flutter-version: '3.47.6' |
| 73 | cache: true |
| 74 | - run: flutter pub get |
| 75 | - name: Enable KVM |
| 76 | run: | |
| 77 | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules |
| 78 | sudo udevadm control --reload-rules |
| 79 | sudo udevadm trigger --name-match=kvm |
| 80 | - name: Verify Android storage and guard lifetime |
| 81 | uses: reactivecircus/android-emulator-runner@v2 |
| 82 | with: |
| 83 | api-level: 35 |
| 84 | target: google_apis |
| 85 | arch: x86_64 |
| 86 | emulator-port: 5554 |
| 87 | force-avd-creation: true |
| 88 | disk-size: 2048M |
| 89 | emulator-boot-timeout: 300 |
| 90 | disable-animations: true |
| 91 | emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim |
| 92 | working-directory: apps/lifemate |
| 93 | # Each command runs in its own shell. Keep pipefail with each test. |
| 94 | # The official integration driver avoids Flutter 3.47.6 test's custom |
| 95 | # golden VM stream, which requires DDS. --no-dds avoids the observed |
| 96 | # DDS startup failure. Drive normally uninstalls at teardown, so retain |
| 97 | # the app with --keep-app-running and stop each process explicitly. |
| 98 | script: | |
| 99 | bash -eo pipefail -c 'flutter drive --driver=test_driver/integration_test.dart --target=integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --keep-app-running --no-dds --dart-define=INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define=PERSISTENCE_PHASE=create 2>&1 | tee "$RUNNER_TEMP/local-persistence-create.log"' |
| 100 | adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest |
| 101 | bash -eo pipefail -c 'flutter drive --driver=test_driver/integration_test.dart --target=integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --keep-app-running --no-dds --dart-define=INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define=PERSISTENCE_PHASE=update 2>&1 | tee "$RUNNER_TEMP/local-persistence-update.log"' |
| 102 | adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest |
| 103 | bash -eo pipefail -c 'flutter drive --driver=test_driver/integration_test.dart --target=integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --keep-app-running --no-dds --dart-define=INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define=PERSISTENCE_PHASE=archive 2>&1 | tee "$RUNNER_TEMP/local-persistence-archive.log"' |
| 104 | adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest |
| 105 | bash -eo pipefail -c 'flutter drive --driver=test_driver/integration_test.dart --target=integration_test/local_persistence_device_test.dart -d emulator-5554 --no-pub --keep-app-running --no-dds --dart-define=INTEGRATION_TEST_SHOULD_REPORT_RESULTS_TO_NATIVE=false --dart-define=PERSISTENCE_PHASE=verify 2>&1 | tee "$RUNNER_TEMP/local-persistence-verify.log"' |
| 106 | bash -eo pipefail -c 'adb -s emulator-5554 shell pm path com.example.lifemate.localtest | grep -q "^package:"' |
| 107 | adb -s emulator-5554 shell am force-stop com.example.lifemate.localtest |
| 108 | bash -e -c 'if grep -E "Uninstalling old version|Package install error" "$RUNNER_TEMP"/local-persistence-*.log; then echo "An installation reset invalidated the persistence test."; exit 1; fi' |
| 109 | flutter build apk --debug --no-pub --target=lib/role_entry_main.dart |
| 110 | bash -eo pipefail -c 'cd android && ./gradlew app:connectedDebugAndroidTest -Ptarget="$PWD/../lib/role_entry_main.dart" 2>&1 | tee "$RUNNER_TEMP/local-persistence-native-guard.log"' |
| 111 | - name: Build local role-entry APK after persistence gates |
| 112 | run: flutter build apk --release --no-pub --target=lib/role_entry_main.dart |
| 113 | - name: Upload local test APK |
| 114 | uses: actions/upload-artifact@v4 |
| 115 | with: |
| 116 | name: LifeGuide-local-persistence-test-apk |
| 117 | path: apps/lifemate/build/app/outputs/flutter-apk/app-release.apk |
| 118 | if-no-files-found: error |
| 119 | retention-days: 14 |
| 120 | - name: Upload persistence phase logs |
| 121 | if: always() |
| 122 | uses: actions/upload-artifact@v4 |
| 123 | with: |
| 124 | name: local-persistence-device-logs |
| 125 | path: | |
| 126 | ${{ runner.temp }}/local-persistence-*.log |
| 127 | apps/lifemate/build/app/outputs/androidTest-results/connected/** |
| 128 | apps/lifemate/build/app/reports/androidTests/connected/** |
| 129 | if-no-files-found: warn |
| 130 | retention-days: 14 |