From 0ab845dcbbb8df27fd318cb60a6ee77aa1bc5cfc Mon Sep 17 00:00:00 2001 From: mnovak Date: Sat, 21 Nov 2026 10:46:16 +0100 Subject: [PATCH] [repo] AndroidReleaseApk: The phone test passed on the Wave 10 through Fabrica's queue (1 of 1), a planted fault failed as it must; Fabrica's run records ignored --- .agents/FEATURES.md | 2 +- .agents/GAP_ANALYSIS.md | 2 +- .agents/features/android-release-apk.md | 3 ++- .../reviews/feature-android-release-apk.md | 26 +++++++++++++++++++ .gitignore | 2 ++ HANDOVER.md | 5 ++-- 6 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.agents/FEATURES.md b/.agents/FEATURES.md index b262326..6e6ae31 100644 --- a/.agents/FEATURES.md +++ b/.agents/FEATURES.md @@ -6,7 +6,7 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in | Feature | Phase | Status | Analysis | Review | |:--|:--|:--|:--|:--| | Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) | -| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | On `feature/android-release-apk`. Blocked: the phone is not paired in Fabrica (G-F5); `rosea-android` does not exist (G-F7) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) | +| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) | | Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) | | Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) | | Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) | diff --git a/.agents/GAP_ANALYSIS.md b/.agents/GAP_ANALYSIS.md index 1d34bbd..a3be269 100644 --- a/.agents/GAP_ANALYSIS.md +++ b/.agents/GAP_ANALYSIS.md @@ -93,7 +93,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis: | G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. | | G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. | | G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). | -| G-F5 | The `phone` target has not run | Narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. | +| ~~G-F5~~ | ~~The `phone` target has not run~~ | **Closed 2026-11-21:** `fabrica tests run --target phone` through the hub's queue, run `20261121-101158-uckm` 1 passed 0 failed on the Wave 10 (debug APK `bd59ff908125…`, commit f5d8d2c); the planted-fault drill `20261121-102500-crkf` failed as it must. The e2e pipeline's `phone` step still waits for the hub's e2e runner (Mark). Earlier: narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. | | G-F7 | No key signs the APK | Open (`android-release-apk.md` A6): `rosea-android` is not in Custos's `ANDROID_APPS`, so the release's `apk` step stops at `no_key`. Custos's change (or Mark's *Create Android key*), then the release. The unsigned release APK builds and verifies. | | G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. | diff --git a/.agents/features/android-release-apk.md b/.agents/features/android-release-apk.md index 773b5dc..137d0a9 100644 --- a/.agents/features/android-release-apk.md +++ b/.agents/features/android-release-apk.md @@ -97,7 +97,8 @@ flowchart LR | The release APK asks for no permission and allows no backup | build check | `android.ts verify ` (aapt2) | done: verified; `aapt2 dump badging` shows no `debuggable` and only androidx's own `DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` (the app's own signature permission, not a capability) | | `reset` and `maxMinutes` are read, and a wrong `reset` is refused | config | `fabrica artifex check` with a planted value | done: refused with `targets[1].reset: clear, uninstall or keep` | | The pipelines are valid | config | `fabrica artifex check` | done: 0 problems | -| Install, open, first screen, water, close, reopen, still watered | e2e, real phone | the e2e pipeline's `phone` step | **not run**: the phone is not paired in Fabrica | +| Install, open, first screen, water, close, reopen, still watered | e2e, real phone | `fabrica tests run --target phone` through the hub's queue (the e2e runner is not yet added, so not the pipeline step) | done 2026-11-21: run `20261121-101158-uckm` **1 passed, 0 failed** (7.9 s; waited 12 s in the queue) on the Wave 10, Android 16, debug APK sha256 `bd59ff908125…`, commit f5d8d2c | +| The phone test fails when persistence is wrong | e2e drill | planted `Days of care 2`, run through the queue, restored by copy | done: run `20261121-102500-crkf` **0 passed, 1 failed**, received `Days of care1` after the reopen | | The spec never reaches for a phone outside the queue | e2e | `test.skip` without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` | by construction | | The signed APK verifies with `rosea-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key | | What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists | diff --git a/.agents/reviews/feature-android-release-apk.md b/.agents/reviews/feature-android-release-apk.md index 685dd6e..afbbf56 100644 --- a/.agents/reviews/feature-android-release-apk.md +++ b/.agents/reviews/feature-android-release-apk.md @@ -82,3 +82,29 @@ Also run: - `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: + +10. **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 `:`. +11. **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 clear`s the test app), and the + test needs a first open. *`uninstall` kept* (A3). +12. **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. diff --git a/.gitignore b/.gitignore index 0b2c007..bc87ca1 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,5 @@ apps/rosea-tauri/src-tauri/icons/ # The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed e2e/aula/ +# Fabrica's records of `fabrica tests run` (run.json, traces): local evidence, quoted in the reviews, never committed +.fabrica/runs/ diff --git a/HANDOVER.md b/HANDOVER.md index b5e68d8..e486f5f 100644 --- a/HANDOVER.md +++ b/HANDOVER.md @@ -8,8 +8,9 @@ Rewritten at the end of each session (CLAUDE.md §5.1). pipeline gains `apk` and `phone` (`device: Wave 10`, so the hub queues it); both pipelines name the NDK and put Gradle's cache on D:. Analysis: [`.agents/features/android-release-apk.md`](.agents/features/android-release-apk.md). Review: [`.agents/reviews/feature-android-release-apk.md`](.agents/reviews/feature-android-release-apk.md). -- **Blocked on the phone:** the Wave 10 is not paired in Fabrica (`fabrica devices list`), so the `phone` step - cannot get it. Pairing is the Fabrica session's; nothing here drove the phone. +- **The phone test passed** through the hub's queue (`fabrica tests run --target phone`): run + `20261121-101158-uckm`, 1 passed, 0 failed, on the Wave 10. A planted fault failed as it must. The e2e pipeline's + `phone` step still waits for the hub's e2e runner (Mark). - **Blocked on the key:** `rosea-android` does not exist, and Custos will not make it, because it is not in Custos's `ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or Mark's *Create Android key* (G-F7).