[tauri] ApkKey: Merge signing the APK with Mark's Custos key rosea-domi-android (PR #11)

This commit is contained in:
2026-12-02 14:57:43 +01:00
9 changed files with 60 additions and 28 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
| 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) | | 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) |
| @domi/ui: the shared buttons and the town search field, vendored v1.5.0 (CPAL-1.0); the licence credit at the foot of every screen | Platform track | Built on `feature/domi-ui`; the look is Mark's to judge from the pictures | [domi-ui.md](features/domi-ui.md) | [feature-domi-ui.md](reviews/feature-domi-ui.md) | | @domi/ui: the shared buttons and the town search field, vendored v1.5.0 (CPAL-1.0); the licence credit at the foot of every screen | Platform track | Built on `feature/domi-ui`; the look is Mark's to judge from the pictures | [domi-ui.md](features/domi-ui.md) | [feature-domi-ui.md](reviews/feature-domi-ui.md) |
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.md) | | Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.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) | | 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-domi-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) | | 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) | | 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) | | 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) |
+2 -2
View File
@@ -77,7 +77,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
| ~~G-T0~~ | ~~No shell, no app on any platform~~ | Closed 2026-11-17 on `feature/tauri-platforms`: `apps/rosea-tauri`; Windows `.exe` + NSIS installer built and checked (watered, closed, reopened, still watered); Android debug APK verified with `aapt2` (no permission, no backup) and checked on the WAVE 10C, Android 16, offline by construction. 40 shell tests; 14 of 14 drills caught. | | ~~G-T0~~ | ~~No shell, no app on any platform~~ | Closed 2026-11-17 on `feature/tauri-platforms`: `apps/rosea-tauri`; Windows `.exe` + NSIS installer built and checked (watered, closed, reopened, still watered); Android debug APK verified with `aapt2` (no permission, no backup) and checked on the WAVE 10C, Android 16, offline by construction. 40 shell tests; 14 of 14 drills caught. |
| G-T1 | iOS | Open. Needs macOS + Xcode, the iOS Rust targets, an Apple developer account. `pnpm tauri:ios` refuses elsewhere. | | G-T1 | iOS | Open. Needs macOS + Xcode, the iOS Rust targets, an Apple developer account. `pnpm tauri:ios` refuses elsewhere. |
| G-T2 | macOS and Linux desktop builds | Open. Each on its own system; macOS signing/notarisation. | | G-T2 | macOS and Linux desktop builds | Open. Each on its own system; macOS signing/notarisation. |
| G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Narrowed 2026-11-19 on `feature/fabrica-release`: the release pipeline signs the installer with Custos's `domi-code-signing` and the APK with `rosea-android` through `custos-sign`; no key in the repository (`fabrica-release.md` F4). **Still open:** `rosea-android` does not exist and Custos (0.22.0 here, 0.24.0 too) will not make it: it is not in Custos's `ANDROID_APPS` (`android-release-apk.md` A6, G-F7); no signature made yet (the first release waits, G-F1); AAB and stores (Phase 6). | | G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Narrowed 2026-11-19 on `feature/fabrica-release`: the release pipeline signs the installer with Custos's `domi-code-signing` and the APK with `rosea-domi-android` through `custos-sign`; no key in the repository (`fabrica-release.md` F4). **Still open:** `rosea-domi-android` does not exist and Custos (0.22.0 here, 0.24.0 too) will not make it: it is not in Custos's `ANDROID_APPS` (`android-release-apk.md` A6, G-F7); no signature made yet (the first release waits, G-F1); AAB and stores (Phase 6). |
| ~~G-T4~~ | ~~Keep her safe inside the apps — release blocker~~ | Closed 2026-11-17 on `feature/keep-her-safe-apps`: the apps say *She lives in this app, on this device, until the app is removed…* and ask no browser; Android saves through its own save screen by a narrow Kotlin bridge (no plugin, no IPC, no permission) and says *She is in that file now.*; Windows downloads. Seen on the tablet (2 of 2) and on Windows (3 of 3); 572 unit tests; every drill caught after one test was tightened. | | ~~G-T4~~ | ~~Keep her safe inside the apps — release blocker~~ | Closed 2026-11-17 on `feature/keep-her-safe-apps`: the apps say *She lives in this app, on this device, until the app is removed…* and ask no browser; Android saves through its own save screen by a narrow Kotlin bridge (no plugin, no IPC, no permission) and says *She is in that file now.*; Windows downloads. Seen on the tablet (2 of 2) and on Windows (3 of 3); 572 unit tests; every drill caught after one test was tightened. |
| ~~G-T5~~ | ~~Bringing her back from a file inside the apps~~ | Closed on Android 2026-11-17: the round trip on the tablet, *Everything in that file is already here.* Windows not driven. | | ~~G-T5~~ | ~~Bringing her back from a file inside the apps~~ | Closed on Android 2026-11-17: the round trip on the tablet, *Everything in that file is already here.* Windows not driven. |
| G-T6 | WebView2's own traffic not measured for Rosea | Open. Flags from Amicitia's measurement are set; measure before a desktop release. | | G-T6 | WebView2's own traffic not measured for Rosea | Open. Flags from Amicitia's measurement are set; measure before a desktop release. |
@@ -94,7 +94,7 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. | | 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-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~~ | **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-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. **Narrowed 2026-11-22:** Custos 0.25.0's table still has no Rosea row. Its *Android grant* makes the key on a release's first signature, from the repo's own `release` pipeline (signing.rs test `the_android_grant_makes_an_apps_key…`). Per the Aula session, Custos 0.25.2 is installed and Mark gave the grant for `mnovak/*`. This is unverified until the first signature. | | G-F7 | No key signs the APK | Open (`android-release-apk.md` A6): `rosea-domi-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. **Narrowed 2026-11-22:** Custos 0.25.0's table still has no Rosea row. Its *Android grant* makes the key on a release's first signature, from the repo's own `release` pipeline (signing.rs test `the_android_grant_makes_an_apps_key…`). Per the Aula session, Custos 0.25.2 is installed and Mark gave the grant for `mnovak/*`. This is unverified until the first signature. **Answered 2026-12-02:** the key exists. Mark made it himself as `rosea-domi-android` and keeps that name; `sign-apk.ts`, its test and the `apk` step's `keys:` name it. Closed when a release APK is signed with it. |
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. | | G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
## Atrium Domi — adoption (`atrium-adoption.md`) ## Atrium Domi — adoption (`atrium-adoption.md`)
+10 -8
View File
@@ -32,7 +32,7 @@ flowchart LR
spec --> run spec --> run
run --> phone(("Wave 10")) run --> phone(("Wave 10"))
unsigned --> rel unsigned --> rel
rel --> custos["Custos: custos-sign apk, key rosea-android"] rel --> custos["Custos: custos-sign apk, key rosea-domi-android"]
custos --> mini["minisign (domi-release), SHA256SUMS"] custos --> mini["minisign (domi-release), SHA256SUMS"]
``` ```
@@ -55,17 +55,19 @@ flowchart LR
(`NDK_HOME`, which the Tauri CLI needs and this PC does not set). A local build also puts Cargo's target folder, (`NDK_HOME`, which the Tauri CLI needs and this PC does not set). A local build also puts Cargo's target folder,
`TEMP` and `ANDROID_USER_HOME` under `D:\build\rosea`. The pipelines keep Cargo's target in the checkout, because `TEMP` and `ANDROID_USER_HOME` under `D:\build\rosea`. The pipelines keep Cargo's target in the checkout, because
the installer's artifact glob is there. the installer's artifact glob is there.
- **A6. Signing: `rosea-android` does not exist, and Custos will not make it.** Custos creates an Android key on an - **A6. Signing: `rosea-domi-android` does not exist, and Custos will not make it.** Custos creates an Android key on an
app's first release only for the apps in its `ANDROID_APPS` table (`apps/desktop/src-tauri/src/signing.rs`). In app's first release only for the apps in its `ANDROID_APPS` table (`apps/desktop/src-tauri/src/signing.rs`). In
0.24.0 that table holds Postea, Culina and Liber, and Mark's PC runs 0.22.0, which holds Postea only. Rosea's `apk` 0.24.0 that table holds Postea, Culina and Liber, and Mark's PC runs 0.22.0, which holds Postea only. Rosea's `apk`
step would stop at `no_key`, as Culina's and Liber's did on 2026-11-20. Two fixes exist, and both belong to step would stop at `no_key`, as Culina's and Liber's did on 2026-11-20. Two fixes exist, and both belong to
Custos and Mark, not to this repository: a Custos change that adds `rosea-android` (`CN=Rosea Domi`, only Custos and Mark, not to this repository: a Custos change that adds `rosea-domi-android` (`CN=Rosea Domi`, only
`mnovak/Rosea`, pipeline `release`) and its install on this PC, or Mark's *Create Android key* by hand. `mnovak/Rosea`, pipeline `release`) and its install on this PC, or Mark's *Create Android key* by hand.
`fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here. `fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here.
**Answered 2026-11-25:** Custos 0.25's Android grant (`mnovak/*`, given by Mark) makes `rosea-android` at its **Answered 2026-11-25:** Custos 0.25's Android grant (`mnovak/*`, given by Mark) makes `rosea-domi-android` at its
first signature. So the `apk` step lists no `keys:`: preflight refuses a listed key that does not exist yet, first signature. So the `apk` step lists no `keys:`: preflight refuses a listed key that does not exist yet,
which stopped the first v0.1.0 run (r9j7b2sqmzdjg) before it built anything. which stopped the first v0.1.0 run (r9j7b2sqmzdjg) before it built anything.
- **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-android`, every update must **Answered again 2026-12-02:** Mark made the key himself, named `rosea-domi-android`, and keeps that name. Every
mention below and the code now say `rosea-domi-android`, and the `apk` step lists it in `keys:` again.
- **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-domi-android`, every update must
carry the same certificate (CLAUDE.md §8). The CN names the product, *Rosea Domi*, and the name is still provisional. carry the same certificate (CLAUDE.md §8). The CN names the product, *Rosea Domi*, and the name is still provisional.
The key outlives a rename: a renamed app keeps the old CN, and no player sees it. The key outlives a rename: a renamed app keeps the old CN, and no player sees it.
@@ -77,7 +79,7 @@ flowchart LR
| The release APK phones home | the APK | `android.ts verify` reads the built APK with `aapt2` and refuses any permission or backup flag. It runs in the release pipeline's `android` step and in every local build. | | The release APK phones home | the APK | `android.ts verify` reads the built APK with `aapt2` and refuses any permission or backup flag. It runs in the release pipeline's `android` step and in every local build. |
| Someone made reachable | none | No network feature. The APK asks for no `INTERNET` permission, so the kernel refuses every socket. | | Someone made reachable | none | No network feature. The APK asks for no `INTERNET` permission, so the kernel refuses every socket. |
| A tester's place on the phone | the spec | The spec chooses *Not now*, so no town is ever chosen on the phone. | | A tester's place on the phone | the spec | The spec chooses *Not now*, so no town is ever chosen on the phone. |
| A release signed with a stand-in key | signing | The `apk` step names `rosea-android` only, through Custos, and refuses `CUSTOS_PIPE` (sign-apk.ts). There is no fallback to a debug or local keystore. A missing key stops the release. | | A release signed with a stand-in key | signing | The `apk` step names `rosea-domi-android` only, through Custos, and refuses `CUSTOS_PIPE` (sign-apk.ts). There is no fallback to a debug or local keystore. A missing key stops the release. |
| An untested APK published | the release | The phone test is a pipeline of its own: phones are leased per run, and the release must not hold the phone for two hours. Until the e2e pipeline's `phone` step has passed on a commit, that commit is not tagged (process, §5). | | An untested APK published | the release | The phone test is a pipeline of its own: phones are leased per run, and the release must not hold the phone for two hours. Until the e2e pipeline's `phone` step has passed on a commit, that commit is not tagged (process, §5). |
## 4. Gap analysis and the designed solution ## 4. Gap analysis and the designed solution
@@ -88,7 +90,7 @@ flowchart LR
| No pipeline put the phone run in the queue | `e2e.yaml` gains `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`). | It has not run: the Wave 10 is not paired in Fabrica (below). | | No pipeline put the phone run in the queue | `e2e.yaml` gains `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`). | It has not run: the Wave 10 is not paired in Fabrica (below). |
| The release pipeline's Android step lacked the NDK and put Gradle on C: | `NDK_HOME` and `GRADLE_USER_HOME` in `release.yaml`'s env. | none | | The release pipeline's Android step lacked the NDK and put Gradle on C: | `NDK_HOME` and `GRADLE_USER_HOME` in `release.yaml`'s env. | none |
| The release APK was never built | Built here with caches on D:, then checked by `android.ts verify` (§5). | Not signed (A6). | | The release APK was never built | Built here with caches on D:, then checked by `android.ts verify` (§5). | Not signed (A6). |
| `rosea-android` | Named as Custos's change (A6). | **Custos's and Mark's.** | | `rosea-domi-android` | Named as Custos's change (A6). | **Custos's and Mark's.** |
| The Wave 10 is not paired in Fabrica | `fabrica devices list` shows `WAVE 10C connected (not paired in Fabrica)`. `pass::resolve` then finds no phone named *Wave 10*, and the step fails before it runs. | **The Fabrica session's** (Pipelines → Workshop → Devices → Pair a phone). | | The Wave 10 is not paired in Fabrica | `fabrica devices list` shows `WAVE 10C connected (not paired in Fabrica)`. `pass::resolve` then finds no phone named *Wave 10*, and the step fails before it runs. | **The Fabrica session's** (Pipelines → Workshop → Devices → Pair a phone). |
| Publication | The repository is public, so a release is public. Mark removed G6.1 (the legal check) and said to release on 2026-11-25. | **Mark's**, answered (`fabrica-release.md` F1). | | Publication | The repository is public, so a release is public. Mark removed G6.1 (the legal check) and said to release on 2026-11-25. | **Mark's**, answered (`fabrica-release.md` F1). |
@@ -103,5 +105,5 @@ flowchart LR
| 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 | | 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 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 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 | | The signed APK verifies with `rosea-domi-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 | | 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 |
+3 -3
View File
@@ -48,7 +48,7 @@ flowchart LR
desktop --> approve{"Custos card<br/>(Mark)"} desktop --> approve{"Custos card<br/>(Mark)"}
android --> approve android --> approve
kit --> approve kit --> approve
approve --> sign["Authenticode (domi-code-signing)<br/>APK (rosea-android, custos-sign)<br/>minisign (domi-release)"] approve --> sign["Authenticode (domi-code-signing)<br/>APK (rosea-domi-android, custos-sign)<br/>minisign (domi-release)"]
sign --> publish["Gitea release + signed SHA256SUMS"] sign --> publish["Gitea release + signed SHA256SUMS"]
publish -. "only once Mark decides (F1)" .-> aula["Aula page /rosea/"] publish -. "only once Mark decides (F1)" .-> aula["Aula page /rosea/"]
publish --> update["Fabrica Update all<br/>(Mark's PC)"] publish --> update["Fabrica Update all<br/>(Mark's PC)"]
@@ -89,12 +89,12 @@ nothing of Fabrica's.
| Version | How an installed copy reaches the next release | Why not the other way | | Version | How an installed copy reaches the next release | Why not the other way |
| :-- | :-- | :-- | | :-- | :-- | :-- |
| Windows | Fabrica *Update all* on Mark's PC (Fabrica docs/16): the signed `SHA256SUMS` checked against `domi-release`, the installer run with `/S /UPDATE` in place. A player runs the next installer over the old one (`installMode: currentUser`, same identifier): the WebView2 data folder, and so her rose, stays. | `tauri-plugin-updater` is a network feature and a plugin in the shell; §2 allows neither until one is reviewed for what it sends. An update check would tell a server, daily, that this person plays. No `latest.json` is published, so nothing waits for an updater that does not exist. | | Windows | Fabrica *Update all* on Mark's PC (Fabrica docs/16): the signed `SHA256SUMS` checked against `domi-release`, the installer run with `/S /UPDATE` in place. A player runs the next installer over the old one (`installMode: currentUser`, same identifier): the WebView2 data folder, and so her rose, stays. | `tauri-plugin-updater` is a network feature and a plugin in the shell; §2 allows neither until one is reviewed for what it sends. An update check would tell a server, daily, that this person plays. No `latest.json` is published, so nothing waits for an updater that does not exist. |
| Android | The next APK, signed with the same `rosea-android` key and a higher `versionCode` (Tauri derives it from the version), installs over the old one and keeps her. A player gets it from the Aula page; the test phone gets each debug build from its `android` target. | An in-app check needs the `INTERNET` permission, which the APK must not ask for while Rosea has no network feature (§2; `android.ts verify` refuses any permission). | | Android | The next APK, signed with the same `rosea-domi-android` key and a higher `versionCode` (Tauri derives it from the version), installs over the old one and keeps her. A player gets it from the Aula page; the test phone gets each debug build from its `android` target. | An in-app check needs the `INTERNET` permission, which the APK must not ask for while Rosea has no network feature (§2; `android.ts verify` refuses any permission). |
| PWA | The service worker: a new bundle is a new worker, offered with *A new version of the garden is ready.* and *Refresh* (calm-refresh.md, G0.10). | Nothing to add here until it has a host (F2). | | PWA | The service worker: a new bundle is a new worker, offered with *A new version of the garden is ready.* and *Refresh* (calm-refresh.md, G0.10). | Nothing to add here until it has a host (F2). |
| iOS | Not built (G-T1: needs a Mac). | — | | iOS | Not built (G-T1: needs a Mac). | — |
- **F4 — Signing through Custos only.** Authenticode with `domi-code-signing` for the installer; - **F4 — Signing through Custos only.** Authenticode with `domi-code-signing` for the installer;
the APK with `rosea-android` through `custos-sign apk` (corrected 2026-11-21, `android-release-apk.md` A6: the APK with `rosea-domi-android` through `custos-sign apk` (corrected 2026-11-21, `android-release-apk.md` A6:
Custos does NOT make this key; it must be added to Custos's `ANDROID_APPS` or made by hand; a `run` step that names it in `keys:` so preflight checks it); Custos does NOT make this key; it must be added to Custos's `ANDROID_APPS` or made by hand; a `run` step that names it in `keys:` so preflight checks it);
`domi-release` signs each file's minisign signature and `SHA256SUMS`. No key, password or token is `domi-release` signs each file's minisign signature and `SHA256SUMS`. No key, password or token is
in the repository, a pipeline file or a log (G-T3). Each key's scope must name `mnovak/Rosea` exactly: in the repository, a pipeline file or a log (G-T3). Each key's scope must name `mnovak/Rosea` exactly:
@@ -0,0 +1,29 @@
# Review — `fix/rosea-domi-android-key`
**What:** the APK is signed with Mark's Custos key `rosea-domi-android`, not `rosea-android`.
Mark made the key himself under that name and keeps it (relayed by Aula, 2026-12-02). Two release runs
of v0.1.0 (`r9j7b2sqmzdjg`, `rwyv2j3bazfv9`) were refused at preflight for `rosea-android`, a key
that was never made.
**Changed:** `APK_KEY` in `sign-apk.ts` and its test. The `apk` step now lists `keys: [rosea-domi-android]`
again: the key exists, so preflight can check it (PR #10 removed the list only because the key didn't
exist yet). The pipeline header, A6 in `android-release-apk.md`, `fabrica-release.md`, GAP G-F7,
FEATURES and HANDOVER use the new name. Earlier reviews and lessons keep the old one as history.
## Findings
1. **The name is forever.** An APK signed with this key *is* Rosea on Android. No APK has been signed with
either name yet (G-F7 is still open), so changing it now costs no player anything. After v0.1.1 it can
never change again. The comment in `sign-apk.ts` says so.
2. **Scope.** custos-sign still asks for `mnovak/Rosea`, the `release` pipeline and a tag. Whether Mark's key
allows that scope is Custos's to check at the card. *Not verified here*, since this session can't see the
vault. If the scope differs, the `apk` step fails at signing, not at preflight.
3. **Does the test fail on the old name?** `sign-apk.test.ts` pins `--key rosea-domi-android` and
`APK_KEY`. Putting `'rosea-android'` back fails both assertions.
4. **Soul, privacy, reachability, offline:** nothing a player sees changed.
5. **Not verified:** that preflight passes with the new name. That is shown only by the v0.1.1 run on the hub.
**Scope:** one constant, its test, one pipeline step and the docs that name the key.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, `pnpm test` 646 passed (schema 19, identity 5, release 8,
cpu-guard 13, storage 70, content 88, art-prep 80, tauri 92, ui 92, engine 179); `fabrica artifex check` 0 problems.
+4 -3
View File
@@ -4,7 +4,7 @@
# CLI) runs every gate of CLAUDE.md §5.5 on a clean checkout, the e2e and offline suites against the BUILT PWA, # CLI) runs every gate of CLAUDE.md §5.5 on a clean checkout, the e2e and offline suites against the BUILT PWA,
# takes the Aula pictures on demo data (e2e/aula.spec.ts), and builds the Windows installer and the Android APK. # takes the Aula pictures on demo data (e2e/aula.spec.ts), and builds the Windows installer and the Android APK.
# Nothing is signed before Mark's card. Then: Authenticode on the installer (domi-code-signing); the APK through # Nothing is signed before Mark's card. Then: Authenticode on the installer (domi-code-signing); the APK through
# custos-sign with rosea-android (Custos 0.25 makes it under Mark's Android grant at its first signature); a minisign # custos-sign with rosea-domi-android (Mark's key in Custos); a minisign
# signature for each (domi-release); the release with SHA256SUMS signed by domi-release. # signature for each (domi-release); the release with SHA256SUMS signed by domi-release.
# No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates # No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates
# through Fabrica's Update all; a player installs the next file over the old one (F3). # through Fabrica's Update all; a player installs the next file over the old one (F3).
@@ -82,9 +82,10 @@ steps:
files: ["**/*-setup.exe"] files: ["**/*-setup.exe"]
- id: apk - id: apk
needs: [approve] needs: [approve]
# No `keys: [rosea-android]`: preflight checks that a listed key exists, and Custos makes rosea-android only at # The key is Mark's `rosea-domi-android` in Custos (made by him; 2026-12-02), so preflight checks it again. The
# its first signature, so the list refused the first release (run r9j7b2sqmzdjg). Culina's and Medicus's way. # name `rosea-android` was never made: runs r9j7b2sqmzdjg and rwyv2j3bazfv9 were refused for it.
run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }} run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }}
keys: [rosea-domi-android]
artifacts: ["target/release/rosea-domi-*-arm64.apk"] artifacts: ["target/release/rosea-domi-*-arm64.apk"]
- id: minisign - id: minisign
needs: [sign, apk] needs: [sign, apk]
+4 -4
View File
@@ -51,7 +51,7 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
restore as the `rosea-rose` file, additive only. R4 (Rust in the shell) and R1 are Mark's, along with *free* and restore as the `rosea-rose` file, additive only. R4 (Rust in the shell) and R1 are Mark's, along with *free* and
*today* (G-AT1). *today* (G-AT1).
- **Code waits** for Atrium's `docs/APP_CONTRACT.md` v0 (the Aula session says when). Visual changes wait for `@domi/ui`. - **Code waits** for Atrium's `docs/APP_CONTRACT.md` v0 (the Aula session says when). Visual changes wait for `@domi/ui`.
- **The key:** Custos 0.25's *Android grant* (Mark, `mnovak/*`, per Aula) should make `rosea-android` at the first - **The key:** Custos 0.25's *Android grant* (Mark, `mnovak/*`, per Aula) should make `rosea-domi-android` at the first
signature (G-F7, unverified). signature (G-F7, unverified).
- **The release:** still waits for Mark's own yes in this session to remove G6.1 from CLAUDE.md. The request - **The release:** still waits for Mark's own yes in this session to remove G6.1 from CLAUDE.md. The request
reached this session only through the Aula session, and CLAUDE.md is not edited on a relayed request. reached this session only through the Aula session, and CLAUDE.md is not edited on a relayed request.
@@ -65,7 +65,7 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
- **The phone test passed** through the hub's queue (`fabrica tests run --target phone`): run - **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 `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). `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 - **Blocked on the key:** `rosea-domi-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 `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). Mark's *Create Android key* (G-F7).
- **Still the author's:** publication (G6.1, G-F1). - **Still the author's:** publication (G6.1, G-F1).
@@ -75,14 +75,14 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
- **Rosea is a Fabrica app** (`feature/fabrica-release`, PR mnovak/Rosea#1): `.fabrica/` (app, the - **Rosea is a Fabrica app** (`feature/fabrica-release`, PR mnovak/Rosea#1): `.fabrica/` (app, the
`release` and `e2e` pipelines, `tests.yaml` with `web` and `phone`, `aula.yaml`), `AULA.md`, the brief `release` and `e2e` pipelines, `tests.yaml` with `web` and `phone`, `aula.yaml`), `AULA.md`, the brief
and the 0.1.0 notes, `scripts/check-version.mjs`, the APK signed in Custos (`sign:apk`, and the 0.1.0 notes, `scripts/check-version.mjs`, the APK signed in Custos (`sign:apk`,
`rosea-android`), `domi-rosea://` from the installer, the pictures on demo data (`pnpm aula:shots`). `rosea-domi-android`), `domi-rosea://` from the installer, the pictures on demo data (`pnpm aula:shots`).
Analysis: [`.agents/features/fabrica-release.md`](.agents/features/fabrica-release.md). Review: Analysis: [`.agents/features/fabrica-release.md`](.agents/features/fabrica-release.md). Review:
[`.agents/reviews/feature-fabrica-release.md`](.agents/reviews/feature-fabrica-release.md). [`.agents/reviews/feature-fabrica-release.md`](.agents/reviews/feature-fabrica-release.md).
Rosea is in Fabrica's workspace and `deploy.json` on this PC. Rosea is in Fabrica's workspace and `deploy.json` on this PC.
- **No release was made.** The Gitea repository is public, so a release is public, and G6.1 comes - **No release was made.** The Gitea repository is public, so a release is public, and G6.1 comes
first. The author's choice is open (G-F1): publish anyway, make the repository private first, or wait. first. The author's choice is open (G-F1): publish anyway, make the repository private first, or wait.
- **Before the first release, in Custos (Mark):** `domi-code-signing` and `domi-release` scoped to - **Before the first release, in Custos (Mark):** `domi-code-signing` and `domi-release` scoped to
`mnovak/Rosea`; `rosea-android` is made by Custos on the first APK signature; back the vault up. `mnovak/Rosea`; `rosea-domi-android` is made by Custos on the first APK signature; back the vault up.
- **Not run:** the `phone` target (only through Fabrica's phone queue); no installer was run, so - **Not run:** the `phone` target (only through Fabrica's phone queue); no installer was run, so
`domi-rosea://` is tested as text only (G-F4). `domi-rosea://` is tested as text only (G-F4).
+4 -4
View File
@@ -2,11 +2,11 @@
* What the release asks custos-sign to do with the Android APK (fabrica-release.md F4). Kept * What the release asks custos-sign to do with the Android APK (fabrica-release.md F4). Kept
* apart from the script that runs it so the arguments can be tested without Custos. * apart from the script that runs it so the arguments can be tested without Custos.
* *
* The key `rosea-android` lives in Custos only; custos-sign holds no key material either. Its * The key `rosea-domi-android` lives in Custos only (Mark made it under that name, 2026-12-02);
* scope is exactly `mnovak/Rosea`, the release pipeline, a tag (Custos makes the key on the first * custos-sign holds no key material either. Its scope is exactly `mnovak/Rosea`, the release
* release, behind Mark's first-signature card). * pipeline, a tag. The name is forever: an APK signed with it is Rosea on Android for good.
*/ */
export const APK_KEY = 'rosea-android'; export const APK_KEY = 'rosea-domi-android';
export const REPO = 'mnovak/Rosea'; export const REPO = 'mnovak/Rosea';
/** Where Gradle leaves the release APK of `tauri android build --apk --target aarch64`, from src-tauri. */ /** Where Gradle leaves the release APK of `tauri android build --apk --target aarch64`, from src-tauri. */
+3 -3
View File
@@ -13,13 +13,13 @@ const COMMIT = 'a'.repeat(40);
const pkg = JSON.parse(readFileSync(join(fileURLToPath(new URL('..', import.meta.url)), 'package.json'), 'utf8')) as { scripts: Record<string, string> }; const pkg = JSON.parse(readFileSync(join(fileURLToPath(new URL('..', import.meta.url)), 'package.json'), 'utf8')) as { scripts: Record<string, string> };
describe('signArgs', () => { describe('signArgs', () => {
it('asks for rosea-android, scoped to mnovak/Rosea, the release pipeline and a tag', () => { it('asks for rosea-domi-android, scoped to mnovak/Rosea, the release pipeline and a tag', () => {
const args = signArgs({ version: '0.1.0', commit: COMMIT, unsigned: 'in.apk', out: 'out.apk' }); const args = signArgs({ version: '0.1.0', commit: COMMIT, unsigned: 'in.apk', out: 'out.apk' });
expect(args).toEqual([ expect(args).toEqual([
'apk', 'in.apk', '--out', 'out.apk', '--key', 'rosea-android', '--repo', 'mnovak/Rosea', '--pipeline', 'release', 'apk', 'in.apk', '--out', 'out.apk', '--key', 'rosea-domi-android', '--repo', 'mnovak/Rosea', '--pipeline', 'release',
'--commit', COMMIT, '--trigger', 'tag', '--run', 'rosea-v0.1.0', '--version', '0.1.0', '--step', 'apk' '--commit', COMMIT, '--trigger', 'tag', '--run', 'rosea-v0.1.0', '--version', '0.1.0', '--step', 'apk'
]); ]);
expect(APK_KEY).toBe('rosea-android'); expect(APK_KEY).toBe('rosea-domi-android');
}); });
it('refuses a version or a commit that is not one', () => { it('refuses a version or a commit that is not one', () => {