Files
Rosea/.agents/reviews/feature-android-release-apk.md

7.4 KiB

Review: feature/android-release-apk (2026-11-21)

Analysis: ../features/android-release-apk.md. The brief was Mark's, relayed by the Aula session: release each app's APK after the most basic e2e on the Wave 10, through Fabrica's phone queue.

What changed

  • .fabrica/tests.yaml: the phone target says reset: uninstall and maxMinutes: 20.
  • .fabrica/artifex/e2e.yaml: new steps apk (pnpm tauri:android) and phone (device: Wave 10, fabrica tests run --target phone); GRADLE_USER_HOME on D:, NDK_HOME named.
  • .fabrica/artifex/release.yaml: the same two variables, and the header no longer claims Custos makes rosea-android.
  • e2e/android/garden.android.ts: force-stops the app in finally.
  • Docs: the analysis, G-T3 and G-F5 narrowed, G-F7 new, fabrica-release.md F4 corrected, the handover.

Gates

See Counts at the end (filled in from the run of this branch).

Also run:

  • fabrica artifex check: 2 pipelines, app.yaml, aula.yaml, tests.yaml and brief.md, 0 problems.
  • Drill: reset: wipe-everything planted in tests.yaml was refused with targets[1].reset: clear (the app's data), uninstall or keep, then restored by copy, not git checkout (lessons/process.md).
  • fabrica tests list --target phone: 1 test in 1 file.
  • The release APK:
    • pnpm tauri:android-release with Gradle, Cargo's target, TEMP and ANDROID_USER_HOME under D:\build\rosea: exit 0 in 27 min.
    • android.ts verify: no permission asked, no backup, metrics and Safe Browsing off.
    • aapt2 dump badging: cz.mareknovak.domi.rosea, versionCode 1000, versionName 0.1.0, arm64-v8a, not debuggable, 5.60 MiB, sha256 4d52e9eca4cd2e56…, unsigned.

Findings

  1. The release pipeline does not require the phone test. A tag can be released whose debug APK never passed on the Wave 10. Deferred, with the reason. A device: step in release would queue the whole release for the phone from the start, and the release runs on windows, not windows-e2e (docs/35 part 2). The gate is process for now: no tag on a commit until the e2e pipeline's phone step has passed on it (analysis §3). A pipeline needs: across pipelines would close it; Artifex has none today.
  2. The phone tests a debug APK, and the release is a different build. Accepted, and stated (A1). Only a debug WebView can be driven. The game bytes, the manifest patch and MainActivity are the same; the Rust profile and the key differ. A manual check of the signed release APK on the phone is in the matrix, for after the key exists.
  3. reset: uninstall instead of the asked-for clear. Kept, with the reason (A3): a release build on the phone would otherwise block every debug run. It loses nothing more than clear would.
  4. fabrica-release.md F4 was wrong. It said Custos makes rosea-android on the first release. Custos's ANDROID_APPS table never named Rosea (0.22.0: Postea; 0.24.0: Postea, Culina, Liber). Fixed in F4, G-T3 and the release.yaml header, and a lesson added (process.md). The release would have stopped at no_key after Mark's card, as Culina's and Liber's did.
  5. The debug build in the e2e pipeline uses the default ANDROID_USER_HOME (%USERPROFILE%\.android on C:). Gradle writes debug.keystore there if it is missing. Accepted: adb's pairing keys live in that folder too (docs/35 part 2), and moving it for the step could cut the runner off from the phone. It is one small file, and it is already there.
  6. The pipelines keep Cargo's target in the checkout (on F:, which is nearly full). Accepted: the installer's artifact glob is relative to it. Only the local build here used D:.
  7. The new finally line was never run. No run of the spec is possible outside the queue. Not verified: typecheck and lint only.
  8. fabrica devices list did one reconnect pass (adb devices, mDNS, adb connect), and fabrica devices queue asked again for the pending Custos card 836209. Neither installs, starts or taps anything on the phone. Both are stated here, so nobody reads "nothing touched the phone" as stronger than it is.
  9. The proposed certificate CN Rosea Domi outlives the working name (A7). For Mark and Custos to decide.

Soul, privacy, reachability, offline

  • Soul: no player-facing change. Nothing can make a person feel worse.
  • Privacy: the release APK asks for no INTERNET permission, has no backup, and has the WebView's metrics off (verified on the built file). The phone spec chooses Not now, so no town is set on the phone.
  • Reachability: none; there is no network.
  • Offline: unchanged; the APK cannot reach a network at all.

Not verified

  • The phone step and the phone target never ran. The Wave 10 is connected (not paired in Fabrica), and pairing belongs to the Fabrica session.
  • No signature was made. rosea-android does not exist (G-F7).
  • No release, by G6.1 (G-F1).
  • The e2e pipeline was never started on the hub.

Counts (this branch, 2026-11-21)

  • pnpm test: 608 passed (cpu-guard 13, identity 5, schema 19, content 88, storage 70, art-prep 80, release 8, engine 179, tauri 58, ui 88).
  • pnpm lint, pnpm typecheck: clean. pnpm lint:copy: 30 files, 0 problems. pnpm validate:library: 13 of 13 fixtures rejected.
  • pnpm test:e2e and test:offline were not rerun. Nothing the browser runs changed: the only code change is one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from feature/fabrica-release, on the same game.

Addendum, 2026-11-21 (fix/phone-target-run): the phone target ran through the queue

The Fabrica session got the queue working on the Wave 10. The hub's e2e runner is not added yet, so the target ran from this session with fabrica tests run --target phone --as claude, which takes the phone through the hub's queue.

Run What Result
20261121-101158-uckm the spec as merged (f5d8d2c), debug APK sha256 bd59ff908125… 1 passed, 0 failed (7.9 s). Waited 12 s behind Culina's run. Fabrica uninstalled, installed, started; the WebView was drivable.
20261121-101303-zvve drill: Days of care 2 planted error, 0 run. Waited 424 s behind Postea and Culina, then adb install failed with an empty reason. Not the planted fault.
20261121-102500-crkf the same drill, once more 0 passed, 1 failed. Received Days of care1 after the close and reopen, so the test checks persistence for real.

The spec was restored by copy after each drill, and git status was checked after.

Findings:

  1. One adb install failed with no reason, on a phone that two other apps' runs had just used. The next run's pm uninstall answered DELETE_FAILED_INTERNAL_ERROR (not installed), so nothing was left behind. Not reproduced; not Rosea's code. For the Fabrica session: the CLI could print adb's stderr when stdout ends with :.
  2. The Aula session's interim rule 2 says reset: keep unless the app's data may be wiped. Rosea's data on the test phone may be wiped (CLAUDE.md §3: check-garden.ts android already pm clears the test app), and the test needs a first open. uninstall kept (A3).
  3. The drill ran on the Wi-Fi line (192.168.100.127:5555, rule 1 of the same message) and the passing run on USB. Both are the same phone. Nothing to fix.