Compare commits

..

11 Commits

Author SHA1 Message Date
mnovak 1cb1ffb8c8 [art-prep] BoardTest: The placeholder comparison gets 30 s, as it timed out at 5 s twice on the release runner 2026-12-02 19:59:31 +01:00
mnovak 666c78f5fe [repo] Release: 0.1.2 2026-12-02 17:57:36 +01:00
mnovak 6f1920e91b [tauri] InstallerName: Merge the installer published as RoseaDomi_<version>_x64-setup.exe (PR #13) 2026-12-02 15:33:19 +01:00
mnovak 578aa44f23 [tauri] InstallerName: Publish the Windows installer as RoseaDomi_<version>_x64-setup.exe, a name Aula and Atrium accept; productName stays Rosea Domi 2026-12-02 15:32:43 +01:00
mnovak 2b1ac99fbe [repo] Release0.1.1: Merge the record of the first release, v0.1.1 (PR #12) 2026-12-02 15:24:35 +01:00
mnovak eded64d36e [repo] Release0.1.1: v0.1.1 is published, signed with rosea-domi-android; G-F1 and G-F7 closed with the run's evidence 2026-12-02 15:24:21 +01:00
mnovak 18b6c81772 [repo] Release: 0.1.1 2026-12-02 14:58:16 +01:00
mnovak be15a8536c [tauri] ApkKey: Merge signing the APK with Mark's Custos key rosea-domi-android (PR #11) 2026-12-02 14:57:43 +01:00
mnovak a2176563eb [tauri] ApkKey: Sign the APK with Mark's Custos key rosea-domi-android, and let preflight check it again 2026-12-02 14:57:16 +01:00
mnovak 69f8b74c9d [repo] ReleaseFirstApkKey: Merge the apk step without a keys list, so the first release passes preflight (PR #10) 2026-11-25 14:17:28 +01:00
mnovak 4cff831b76 [repo] ReleaseFirstApkKey: The apk step lists no keys, because Custos makes rosea-android only at its first signature and preflight refused the first run 2026-11-25 14:17:09 +01:00
23 changed files with 312 additions and 37 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) |
| @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) |
| 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) |
| 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) |
+3 -3
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-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-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-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. |
@@ -89,12 +89,12 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
| Id | Gap | Status / evidence |
|:--|:--|:--|
| G-F1 | The first release is not published | **Decided by the author, 2026-11-25: publish** ("Yes, remove G6.1 from Rosea's CLAUDE.md and release Rosea v0.1.0, desktop and APK."). v0.1.0, desktop and APK, through Fabrica; closed when the hub's run publishes it. |
| ~~G-F1~~ | ~~The first release is not published~~ | **Closed 2026-12-02:** v0.1.1 published by the hub's run `r59y647cfcpw9` (https://gitea.marek-novak.cz/mnovak/Rosea/releases/tag/v0.1.1): the installer (Authenticode, domi-code-signing), the APK (rosea-domi-android), a minisig for each and SHA256SUMS (domi-release), the notes and the Aula pictures. Mark decided to publish on 2026-11-25. v0.1.0 is a tag only: its runs were refused at preflight and nothing was published under it. |
| 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~~ | **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~~ | **Closed 2026-12-02:** Mark made `rosea-domi-android` in Custos (PR #11 named it in the code and the pipeline). The v0.1.1 run `r59y647cfcpw9` signed `rosea-domi-0.1.1-arm64.apk` with it, and its `apk` step passed (custos-sign verifies with apksig). This key is Rosea on Android for good. |
| 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`)
+12 -7
View File
@@ -32,7 +32,7 @@ flowchart LR
spec --> run
run --> phone(("Wave 10"))
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"]
```
@@ -55,14 +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,
`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.
- **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
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
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.
`fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here.
- **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-android`, every update must
**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,
which stopped the first v0.1.0 run (r9j7b2sqmzdjg) before it built anything.
**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.
The key outlives a rename: a renamed app keeps the old CN, and no player sees it.
@@ -74,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. |
| 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 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). |
## 4. Gap analysis and the designed solution
@@ -85,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). |
| 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). |
| `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). |
| 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). |
@@ -100,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 |
| 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 |
| 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 |
+3 -3
View File
@@ -48,7 +48,7 @@ flowchart LR
desktop --> approve{"Custos card<br/>(Mark)"}
android --> 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"]
publish -. "only once Mark decides (F1)" .-> aula["Aula page /rosea/"]
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 |
| :-- | :-- | :-- |
| 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). |
| iOS | Not built (G-T1: needs a Mac). | — |
- **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);
`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:
+34
View File
@@ -0,0 +1,34 @@
# Review — `fix/board-test-timeout`
**What:** the v0.1.2 release runs `r1ahwf1m23cdr` and `rm56nbzfchx5d` both stopped at the `test` step, on one
test: `art-prep` *art/placeholders/ holds exactly what the generator makes* timed out at vitest's default 5 s
(8.7 s in the first run, 5.4 s in the second). Every assertion that ran passed; the work was only slow. The test
reads the 169 SVG stand-ins in `art/placeholders/` and compares each with what the generator makes, while turbo
runs nine other suites on the same runner, in a checkout it has just fetched, so every file is read for the first
time. Run alone on D:, it takes 230 ms.
**How:** that one test gets `{ timeout: 30_000 }`, as `tools/release` already does for its slow suites
(`copy.test.ts` 60 s, `version.test.ts` 30 s), with a comment giving the measured times.
## Findings
1. **Is a longer timeout hiding a real slowdown?** No assertion changed. The test still fails when one stand-in
differs from the generator's output (drill below). 30 s is about three times the slowest time measured on the
runner. A test that takes that long would be a new finding.
2. **Why not a global `testTimeout`?** That would loosen every test in the package, including ones that should
stay fast. Only the test that reads files gets the longer limit.
3. **Why not just dispatch again?** That was tried: the second run failed on the same test. Under the runner's
load, the time sits around the limit, so a retry is a coin toss.
4. **The release:** tag `v0.1.2` points at `666c78f`, which does not have this fix. Nothing was signed or
published from either run. Which tag carries the release is the author's call (HANDOVER).
5. **Soul, privacy, reachability, offline:** a test file only. Nothing a player sees changed, and the bundle is
not rebuilt by this change.
**Test honesty:** with `app-icon-maskable.svg` changed (an attribute added), the test fails in 64 ms on the
content comparison (`expected '<svg data-drill="1"…' to be '<svg xmlns=…'`), not on time. The drill ran on D:
and was reverted.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, lint:copy 0 problems; `pnpm test` 653 passed (schema 19, identity 5,
release 8, cpu-guard 13, storage 70, content 88, art-prep 80, tauri 99, ui 92, engine 179).
**Not verified:** the test's time on the hub runner with this change. The next release run measures it.
+34
View File
@@ -0,0 +1,34 @@
# Review — `fix/installer-name`
**What:** the Windows installer is published as `RoseaDomi_<version>_x64-setup.exe`, not
`Rosea Domi_<version>_x64-setup.exe`. Aula makes an installer public only when its name matches
`[A-Za-z0-9._-]+-setup.exe` (Aula docs/14_feed.md), which is also the form Atrium Domi expects. So v0.1.1's
installer never appeared on Aula, while its APK did (reported by Aula, 2026-12-02).
**How:** `tauri build` still names the file after `productName`. Then `scripts/installer-name.ts` renames it,
in the same `build:desktop` command, before the release's `desktop` step collects `*-setup.exe`. The names and the
pattern live in `src/installer-name.ts`, where the test can reach them without a build.
## Findings
1. **Why not change `productName`?** It is also the window title, the install folder and the uninstall
entry Atrium finds her by. A new `productName` would make the next installer a second app beside the
first, and a player who updates would have two roses. Only the file is renamed. *Not done:* the
installer's own wizard text still says "Rosea Domi", which is right.
2. **An older installer left in the folder.** The release step publishes every `*-setup.exe` in
`bundle/nsis/`. The rename deletes any other installer there (build output only) and fails unless exactly
one remains with an accepted name. Tested with an old Tauri-named file and an old renamed one beside the
new one.
3. **The signing steps** (`sign`, `minisign`, `publish`) match `**/*-setup.exe`, so they find the renamed
file. *Not verified until the v0.1.2 hub run.*
4. **Test honesty:** with the space put back (`${PRODUCT_NAME}` unchanged), 4 of the 7 new tests fail
(drill run on D:, then reverted). The `build:desktop` order is pinned by a test, and `domi-app.test.ts` was
loosened only to allow what follows `tauri build`.
5. **AULA.md** names the new file, so a player following the page finds it.
6. **Soul, privacy, reachability, offline:** nothing a player sees inside the game changed.
**Not verified:** a real `tauri build` here (it is the hub's step), and Aula showing the installer once v0.1.2
is published.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, lint:copy 0 problems; `pnpm test` 653 passed (schema 19, identity 5,
release 8, cpu-guard 13, storage 70, content 88, art-prep 80, tauri 99, ui 92, engine 179).
@@ -0,0 +1,19 @@
# Review — `fix/release-first-apk-key`
**What:** the release pipeline's `apk` step no longer lists `keys: [rosea-android]`. The first v0.1.0 run
(`r9j7b2sqmzdjg`) was refused at preflight: "Custos has no key rosea-android (step apk)". Custos 0.25 makes that
key only at its first signature, under Mark's Android grant.
## Findings
1. **Does the step still get its key?** `keys:` is only a preflight check (Fabrica docs/23_preflight.md: "Preflight
checks that such a key exists; its scope is the script's to state"). `sign-apk.ts` still asks custos-sign for
`rosea-android`, scoped to `mnovak/Rosea` and the `release` pipeline, and `sign-apk.test.ts` still pins that.
Culina's and Medicus's pipelines leave the key out for the same reason.
2. **What is lost:** after the first release, a missing key is caught at the `apk` step, not seconds before the
build. *Deferred:* put `keys: [rosea-android]` back once the key exists, after v0.1.x is published.
3. **Soul, privacy, reachability, offline:** no code that reaches a player changed.
4. **Test honesty:** `fabrica artifex check` passes (2 pipelines, 0 problems). Nothing tests the preflight list.
What proves it is the next hub run getting past preflight, which is not yet run.
**Scope:** one YAML step, its header comment, and A6 in `android-release-apk.md`.
@@ -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 -2
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,
# 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
# custos-sign with rosea-android (NOT made by Custos on its own: android-release-apk.md A6, until then `no_key`); 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.
# 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).
@@ -82,8 +82,10 @@ steps:
files: ["**/*-setup.exe"]
- id: apk
needs: [approve]
# The key is Mark's `rosea-domi-android` in Custos (made by him; 2026-12-02), so preflight checks it again. The
# name `rosea-android` was never made: runs r9j7b2sqmzdjg and rwyv2j3bazfv9 were refused for it.
run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }}
keys: [rosea-android]
keys: [rosea-domi-android]
artifacts: ["target/release/rosea-domi-*-arm64.apk"]
- id: minisign
needs: [sign, apk]
+1 -1
View File
@@ -30,7 +30,7 @@ does not even ask for the permission to use the internet.
## Installing
- **Windows:** run `Rosea Domi_<version>_x64-setup.exe`. It installs for you alone, with no
- **Windows:** run `RoseaDomi_<version>_x64-setup.exe`. It installs for you alone, with no
administrator rights.
- **Android:** install the `.apk` (Android 7 or newer). Your phone will ask you to allow installing
apps from where you downloaded it.
+30 -5
View File
@@ -2,7 +2,32 @@
Rewritten at the end of each session (CLAUDE.md §5.1).
## Latest — 2026-11-23: @domi/ui, the shared look, and the credit
## Latest — 2026-12-02: v0.1.1, the first release
- **Published:** https://gitea.marek-novak.cz/mnovak/Rosea/releases/tag/v0.1.1, by the hub's release run `r59y647cfcpw9` at `18b6c81`.
- Windows: `Rosea Domi_0.1.1_x64-setup.exe`, Authenticode with `domi-code-signing`.
- Android: `rosea-domi-0.1.1-arm64.apk`, signed with **`rosea-domi-android`**, Mark's key in Custos. It is Rosea on
Android for good: every later APK must be signed with it.
- Each file has a minisig, and SHA256SUMS is signed with `domi-release`. The notes and 9 Aula pictures are attached.
- Mark's cards: one code (932 135) covered `sign` and `minisign`. The `apk` step raised none.
- **How it got there:**
- G6.1 (the legal check of the look) was removed by Mark's own words on 2026-11-25 (PR #9).
- @domi/ui went in after its phone test on the Wave 10 through Fabrica's queue (PR #8; run `20261125-133208-trjl`).
- The `apk` step's preflight list first named a key that didn't exist (PR #10). Mark's key is
`rosea-domi-android` (PR #11).
- v0.1.0 is a tag on `8d7027c` only. Its runs (`r9j7b2sqmzdjg`, `rwyv2j3bazfv9`) were refused at preflight, and
nothing was published under it.
- **Dispatching:** the hub doesn't start a release on a tag push. Dispatch it with `POST /api/runs`
`{"repo":"mnovak/Rosea","pipeline":"release","ref":"vX.Y.Z"}`, with the token from
`custos-claude get fabrica-hub-token` held in a variable and never printed. Or use `fabrica deploy rosea`, which
bumps, tags and follows.
- **Still open:** the Aula page needs the server's `modules/aula.nix` to list Rosea (not this repository's). The PWA
has no host (G0.13). iOS needs a Mac (G-T1).
- **The 90 % rule (Mark, 2026-11-25):** no build or test while CPU or RAM is at 90 % or more. Drives: 90 % at first,
95 % for D:, E: and F: from 2026-12-02. Check first and wait. It is not in CLAUDE.md yet: that needs Mark's own yes
in this repository's session.
## Earlier — 2026-11-23: @domi/ui, the shared look, and the credit
- **`feature/domi-ui`**: Rosea's buttons and her town search wear @domi/ui v1.5.0 (CPAL-1.0). On Android the town field is an editable box, so no Autofill request goes to Google.
- It is vendored unchanged into `packages/domi-ui` by the design system's `tools/vendor.mjs`.
@@ -51,7 +76,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
*today* (G-AT1).
- **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).
- **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.
@@ -65,7 +90,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
`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
- **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
Mark's *Create Android key* (G-F7).
- **Still the author's:** publication (G6.1, G-F1).
@@ -75,14 +100,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
`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`,
`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:
[`.agents/reviews/feature-fabrica-release.md`](.agents/reviews/feature-fabrica-release.md).
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
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
`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
`domi-rosea://` is tested as text only (G-F4).
+2 -2
View File
@@ -1,13 +1,13 @@
{
"name": "@rosea/tauri",
"version": "0.1.0",
"version": "0.1.2",
"private": true,
"license": "CPAL-1.0",
"type": "module",
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
"scripts": {
"dev": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri dev",
"build:desktop": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri build",
"build:desktop": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri build && tsx scripts/installer-name.ts",
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
"build:android-release": "tsx scripts/android.ts prepare && tauri android build --apk --target aarch64 && tsx scripts/android.ts verify src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk",
"sign:apk": "tsx scripts/sign-apk.ts",
@@ -0,0 +1,38 @@
/**
* After `tauri build`: renames the NSIS installer to its published name (src/installer-name.ts), so
* the release step's `*-setup.exe` finds one file, and its name has no space.
*
* tsx scripts/installer-name.ts in src-tauri/target/release/bundle/nsis/
*/
import { existsSync, readdirSync, renameSync, rmSync } from 'node:fs';
import { join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { INSTALLER_PATTERN, installerName, tauriInstallerName } from '../src/installer-name.js';
import { gameVersion } from './domi-app.js';
import { SRC_TAURI } from './tauri.js';
/**
* Renames the version's installer in `dir` and removes any other installer there (an older build's,
* which the release's `*-setup.exe` would otherwise publish too). Returns the new path. Fails if the
* built file is missing, or if anything but the one accepted installer is left.
*/
export function renameInstaller(dir: string, version: string): string {
const from = join(dir, tauriInstallerName(version));
const name = installerName(version);
const to = join(dir, name);
if (!existsSync(from)) throw new Error(`no installer to rename: ${from}`);
for (const f of readdirSync(dir)) {
if (f.endsWith('-setup.exe') && f !== tauriInstallerName(version)) rmSync(join(dir, f));
}
renameSync(from, to);
const left = readdirSync(dir).filter((f) => f.endsWith('-setup.exe'));
if (left.length !== 1 || left[0] !== name || !INSTALLER_PATTERN.test(name)) {
throw new Error(`expected only ${name}, found: ${left.join(', ')}`);
}
return to;
}
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
const to = renameInstaller(join(SRC_TAURI, 'target', 'release', 'bundle', 'nsis'), gameVersion());
console.log(`installer: ${to}`);
}
+1 -1
View File
@@ -2614,7 +2614,7 @@ dependencies = [
[[package]]
name = "rosea-shell"
version = "0.1.0"
version = "0.1.2"
dependencies = [
"tauri",
"tauri-build",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "rosea-shell"
version = "0.1.0"
version = "0.1.2"
license = "CPAL-1.0"
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
edition = "2024"
+25
View File
@@ -0,0 +1,25 @@
/**
* The Windows installer's published file name. Tauri's NSIS bundler names it after `productName`
* (`Rosea Domi_<version>_x64-setup.exe`), and the space keeps it off Aula: Aula makes an installer
* public only when its name matches `[A-Za-z0-9._-]+-setup.exe` (Aula docs/14_feed.md), the
* `<Name>_<version>_x64-setup.exe` form Atrium Domi expects as well.
*
* Only the file is renamed after the build. `productName` stays "Rosea Domi": it is also the window
* title, the install folder and the uninstall entry Atrium finds her by, and changing it would make
* the next installer a second app beside the first.
*/
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
/** What Aula and Atrium accept as an installer's name. */
export const INSTALLER_PATTERN = /^[A-Za-z0-9._-]+-setup\.exe$/;
/** Tauri's own name for the installer of a version. */
export const tauriInstallerName = (version: string): string => `${PRODUCT_NAME}_${version}_x64-setup.exe`;
/** The published name: the product name without spaces, e.g. `RoseaDomi_0.1.2_x64-setup.exe`. */
export function installerName(version: string): string {
if (!/^\d+\.\d+\.\d+$/.test(version)) throw new Error(`not a version: ${version}`);
const name = `${PRODUCT_NAME.replace(/\s+/g, '')}_${version}_x64-setup.exe`;
if (!INSTALLER_PATTERN.test(name)) throw new Error(`the installer's name would not be accepted: ${name}`);
return name;
}
+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
* 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
* scope is exactly `mnovak/Rosea`, the release pipeline, a tag (Custos makes the key on the first
* release, behind Mark's first-signature card).
* The key `rosea-domi-android` lives in Custos only (Mark made it under that name, 2026-12-02);
* custos-sign holds no key material either. Its scope is exactly `mnovak/Rosea`, the release
* 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';
/** Where Gradle leaves the release APK of `tauri android build --apk --target aarch64`, from src-tauri. */
+1 -1
View File
@@ -51,7 +51,7 @@ describe('domi-app.toml', () => {
it('is made before every desktop build and never committed', () => {
const pkg = JSON.parse(readFileSync(join(HERE, '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
expect(pkg.scripts['build:desktop']).toMatch(/tsx scripts\/domi-app\.ts && tauri build$/);
expect(pkg.scripts['build:desktop']).toMatch(/tsx scripts\/domi-app\.ts && tauri build( |$)/);
expect(pkg.scripts['dev']).toContain('tsx scripts/domi-app.ts');
const ignore = readFileSync(join(HERE, '..', '..', '..', '.gitignore'), 'utf8');
expect(ignore).toContain('apps/rosea-tauri/src-tauri/atrium/');
@@ -0,0 +1,63 @@
import { mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterEach, describe, expect, it } from 'vitest';
import { renameInstaller } from '../scripts/installer-name.js';
import { INSTALLER_PATTERN, installerName, tauriInstallerName } from '../src/installer-name.js';
describe('installerName', () => {
it('has no space, and matches what Aula and Atrium accept', () => {
expect(installerName('0.1.2')).toBe('RoseaDomi_0.1.2_x64-setup.exe');
expect(installerName('0.1.2')).toMatch(INSTALLER_PATTERN);
expect(installerName('12.0.31')).toMatch(INSTALLER_PATTERN);
});
it("knows Tauri's own name has a space, which Aula refuses", () => {
expect(tauriInstallerName('0.1.2')).toBe('Rosea Domi_0.1.2_x64-setup.exe');
expect(tauriInstallerName('0.1.2')).not.toMatch(INSTALLER_PATTERN);
});
it('refuses something that is not a version', () => {
expect(() => installerName('0.1')).toThrow(/not a version/);
expect(() => installerName('0.1.2 x')).toThrow(/not a version/);
});
});
describe('the desktop build', () => {
it('renames the installer right after tauri build, so the release never sees the name with a space', () => {
const pkg = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
expect(pkg.scripts['build:desktop']).toMatch(/&& tauri build && tsx scripts\/installer-name\.ts$/);
});
});
describe('renameInstaller', () => {
let dir = '';
afterEach(() => {
if (dir) rmSync(dir, { recursive: true, force: true });
dir = '';
});
it("renames the built installer, and leaves only names Aula accepts", () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
writeFileSync(join(dir, 'Rosea Domi_0.1.2_x64-setup.exe'), 'exe');
const to = renameInstaller(dir, '0.1.2');
expect(to).toBe(join(dir, 'RoseaDomi_0.1.2_x64-setup.exe'));
expect(readdirSync(dir)).toEqual(['RoseaDomi_0.1.2_x64-setup.exe']);
});
it('fails when the build left no installer', () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
expect(() => renameInstaller(dir, '0.1.2')).toThrow(/no installer to rename/);
});
it("removes an older build's installers, so the release publishes only this one", () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
writeFileSync(join(dir, 'Rosea Domi_0.1.2_x64-setup.exe'), 'exe');
writeFileSync(join(dir, 'Rosea Domi_0.1.1_x64-setup.exe'), 'old');
writeFileSync(join(dir, 'RoseaDomi_0.1.1_x64-setup.exe'), 'old');
writeFileSync(join(dir, 'notes.txt'), 'kept');
renameInstaller(dir, '0.1.2');
expect(readdirSync(dir).sort()).toEqual(['RoseaDomi_0.1.2_x64-setup.exe', 'notes.txt']);
});
});
+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> };
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' });
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'
]);
expect(APK_KEY).toBe('rosea-android');
expect(APK_KEY).toBe('rosea-domi-android');
});
it('refuses a version or a commit that is not one', () => {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@rosea/app",
"version": "0.1.0",
"version": "0.1.2",
"private": true,
"license": "CPAL-1.0",
"type": "module",
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "rosea",
"private": true,
"license": "CPAL-1.0",
"version": "0.1.0",
"version": "0.1.2",
"type": "module",
"packageManager": "pnpm@9.12.3",
"engines": {
+2 -1
View File
@@ -67,7 +67,8 @@ describe('the stand-ins', () => {
}
});
it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', () => {
// 169 files read and compared one by one: 5.4 s and 8.7 s on the release runner, beside nine other suites.
it('art/placeholders/ holds exactly what the generator makes (run pnpm art:board after changing the manifest)', { timeout: 30_000 }, () => {
const dir = `${root}art/placeholders/`;
const files = readdirSync(dir).filter((f) => f.endsWith('.svg'));
expect(files.map((f) => f.slice(0, -4)).sort()).toEqual([...stand.keys()].sort());