Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cd7dda0c0 | |||
| 9b8eb7036d | |||
| 21d3cd1119 | |||
| 3a6f2ad6ee |
+2
-1
@@ -5,7 +5,8 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
|||||||
|
|
||||||
| Feature | Phase | Status | Analysis | Review |
|
| 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 | On `feature/fabrica-release`. 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) |
|
||||||
|
| 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) |
|
||||||
| 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) |
|
||||||
|
|||||||
@@ -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` (Custos makes the key on the first release); no key in the repository (`fabrica-release.md` F4). **Still open:** 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-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-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. |
|
||||||
@@ -93,7 +93,8 @@ 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-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-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 | Open: it runs only through Fabrica's phone queue (CLAUDE.md for this brief); see the review. |
|
| 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-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. |
|
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
|
||||||
|
|
||||||
## Phase 6 — Release
|
## Phase 6 — Release
|
||||||
|
|||||||
@@ -0,0 +1,103 @@
|
|||||||
|
# The Android APK in a release, tested on the Wave 10 through Fabrica's phone queue
|
||||||
|
|
||||||
|
Branch `feature/android-release-apk`, 2026-11-21. Follows [`fabrica-release.md`](fabrica-release.md) (F1–F11), which
|
||||||
|
made Rosea a Fabrica app with no release yet.
|
||||||
|
|
||||||
|
## 1. Why and what, in the player's terms
|
||||||
|
|
||||||
|
Mark asked for every Domi app to ship its APK, tested at least once on a real phone first: *install, open, the first
|
||||||
|
screen shows, one real action*. For Rosea the real action is to water her, and the check that matters is that she is
|
||||||
|
still watered after the app is closed and opened again. A rose that forgets her care on a phone is the cruellest bug
|
||||||
|
this product could have (CLAUDE.md §8).
|
||||||
|
|
||||||
|
A player gets the APK from Rosea's Aula page once a release is published. Nothing about the game changes. This
|
||||||
|
branch changes how the APK is built, tested and released.
|
||||||
|
|
||||||
|
## 2. Technical architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart LR
|
||||||
|
subgraph repo["Rosea (this repository)"]
|
||||||
|
game["apps/rosea → dist-tauri/"] --> shell["apps/rosea-tauri: tauri android build"]
|
||||||
|
shell --> debug["debug APK (WebView drivable)"]
|
||||||
|
shell --> unsigned["release APK, unsigned<br/>android.ts verify: no permission, no backup"]
|
||||||
|
spec["e2e/android/garden.android.ts"]
|
||||||
|
end
|
||||||
|
subgraph fabrica["Fabrica (Mark's PC and the hub)"]
|
||||||
|
e2e["e2e pipeline, runner windows-e2e<br/>step phone: device Wave 10"] --> lease["hub: phone queue lease"]
|
||||||
|
lease --> run["fabrica tests run --target phone<br/>reset uninstall, install, launch"]
|
||||||
|
rel["release pipeline: android → approve → apk"]
|
||||||
|
end
|
||||||
|
debug --> e2e
|
||||||
|
spec --> run
|
||||||
|
run --> phone(("Wave 10"))
|
||||||
|
unsigned --> rel
|
||||||
|
rel --> custos["Custos: custos-sign apk, key rosea-android"]
|
||||||
|
custos --> mini["minisign (domi-release), SHA256SUMS"]
|
||||||
|
```
|
||||||
|
|
||||||
|
- **A1. Two APKs, one game.** The phone test drives the **debug** APK. Only a debug build's WebView can be reached
|
||||||
|
over DevTools (Fabrica docs/22 part 5), and Tauri's `devtools` feature would make the *release* WebView drivable for
|
||||||
|
anyone with a cable, so the shipped APK never gets it. The two APKs carry the same `dist-tauri/` game, the same
|
||||||
|
manifest patch (no `INTERNET`, no backup) and the same `MainActivity`. They differ in the Rust profile and the
|
||||||
|
signing key. What the phone test cannot prove about the release APK is listed in §5.
|
||||||
|
- **A2. The phone only through the queue.** The `phone` step of `.fabrica/artifex/e2e.yaml` says `device: Wave 10`.
|
||||||
|
The hub queues the run for the phone, the runner sets `ANDROID_SERIAL` and `FABRICA_PHONE_LEASED`, and the nested
|
||||||
|
`fabrica tests run --target phone` uses that phone without a lease of its own (docs/35 part 4). The spec skips
|
||||||
|
unless Fabrica's environment is there, so it never reaches for a phone by itself.
|
||||||
|
- **A3. `reset: uninstall`, not the default `clear`.** The target installs the debug APK. A release build of Rosea
|
||||||
|
on the phone has another key and would refuse the install. `clear` would wipe its data and then fail anyway;
|
||||||
|
`uninstall` wipes the same data and installs fresh. The Wave 10 is the dedicated test phone (docs/35 part 5), and
|
||||||
|
no player's rose lives on it.
|
||||||
|
- **A4. `maxMinutes: 20`.** One test of about two minutes, plus install and launch. Twenty minutes frees the phone
|
||||||
|
for the next app if the run hangs, well under the 60-minute default.
|
||||||
|
- **A5. Caches off C:.** Both pipelines name `GRADLE_USER_HOME` on `D:\build\rosea\gradle` and the NDK
|
||||||
|
(`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
|
||||||
|
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
|
||||||
|
`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
|
||||||
|
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.
|
||||||
|
|
||||||
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
| Risk | Where | Answer |
|
||||||
|
| :-- | :-- | :-- |
|
||||||
|
| A player's rose lost on the test phone | `reset: uninstall` | The Wave 10 is Fabrica's dedicated test phone (docs/35 part 5). The memory rule stands: Fabrica stops the app after the run, and the spec force-stops it in `finally` as well. |
|
||||||
|
| 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. |
|
||||||
|
| 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
|
||||||
|
|
||||||
|
| Gap | Solution here | Left open |
|
||||||
|
| :-- | :-- | :-- |
|
||||||
|
| The phone target did not say `reset` or `maxMinutes` (the old CLI refused them) | The installed CLI reads both now: a planted `reset: wipe-everything` is refused by `fabrica artifex check`. Written: `reset: uninstall`, `maxMinutes: 20`. | none |
|
||||||
|
| 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.** |
|
||||||
|
| 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 | G6.1: the repository is public, so a release is public, and a legal check of the look comes first. | **Mark's** (`fabrica-release.md` F1). |
|
||||||
|
|
||||||
|
## 5. Verification matrix
|
||||||
|
|
||||||
|
| Case | Kind | How | Status |
|
||||||
|
| :-- | :-- | :-- | :-- |
|
||||||
|
| The release APK builds with every cache off C: | build | `pnpm tauri:android-release` | done 2026-11-21: 27 min from cold (Gradle 9.6.1 downloaded to D:), 5.60 MiB, arm64-v8a, versionCode 1000, sha256 4d52e9eca4cd2e56… (unsigned) |
|
||||||
|
| The release APK asks for no permission and allows no backup | build check | `android.ts verify <unsigned apk>` (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 |
|
||||||
|
| 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 |
|
||||||
@@ -93,8 +93,8 @@ nothing of Fabrica's.
|
|||||||
| 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` (Custos makes the key on the first release,
|
the APK with `rosea-android` through `custos-sign apk` (corrected 2026-11-21, `android-release-apk.md` A6:
|
||||||
Mark's first-signature card; 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:
|
||||||
Mark's step in Custos, which `fabrica preflight rosea` names when it is missing.
|
Mark's step in Custos, which `fabrica preflight rosea` names when it is missing.
|
||||||
@@ -141,7 +141,9 @@ nothing of Fabrica's.
|
|||||||
`v0.1.0`, the version every file has today.
|
`v0.1.0`, the version every file has today.
|
||||||
- **F11 — The page's words are copy.** `AULA.md`, `.fabrica/aula/brief.md` and `.fabrica/notes/*.md`
|
- **F11 — The page's words are copy.** `AULA.md`, `.fabrica/aula/brief.md` and `.fabrica/notes/*.md`
|
||||||
are what a stranger reads about Rosea, like a store listing (§8). `lint:copy` scans them, so the
|
are what a stranger reads about Rosea, like a store listing (§8). `lint:copy` scans them, so the
|
||||||
page never says *lonely*, never names the book, and makes no claim to heal anything.
|
page never says *lonely*, never names the book, and makes no claim to heal anything. The release
|
||||||
|
notes `fabrica notes` writes from commit subjects are copy too: the release's `notes-copy` step runs
|
||||||
|
`lint:copy` over `target/notes/release-notes.md` before the page is made.
|
||||||
|
|
||||||
## 3. Risk analysis
|
## 3. Risk analysis
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ and **how to apply it**.
|
|||||||
| [`technical.md`](technical.md) | 10 | The browser and the build as platforms. |
|
| [`technical.md`](technical.md) | 10 | The browser and the build as platforms. |
|
||||||
| [`testing.md`](testing.md) | 16 | What makes a test worth having, and how a passing test lies. |
|
| [`testing.md`](testing.md) | 16 | What makes a test worth having, and how a passing test lies. |
|
||||||
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
||||||
| [`process.md`](process.md) | 5 | Workflow, commits, credentials, honesty about what shipped. |
|
| [`process.md`](process.md) | 6 | Workflow, commits, credentials, honesty about what shipped. |
|
||||||
|
|
||||||
A file is created with its first real entry. An empty lessons file only looks like
|
A file is created with its first real entry. An empty lessons file only looks like
|
||||||
knowledge.
|
knowledge.
|
||||||
|
|||||||
@@ -70,3 +70,28 @@ it to a file first (the scratchpad), then run the file.
|
|||||||
|
|
||||||
**How to apply it.** Prefix hand-typed adb commands with `MSYS_NO_PATHCONV=1`, or pass arguments from
|
**How to apply it.** Prefix hand-typed adb commands with `MSYS_NO_PATHCONV=1`, or pass arguments from
|
||||||
Node (`spawnSync`), which the shell does not touch.
|
Node (`spawnSync`), which the shell does not touch.
|
||||||
|
|
||||||
|
## A bug drill restored with `git checkout` loses the work beside it
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-19 (`feature/fabrica-release`) a drill edited `scripts/lint-copy.ts`
|
||||||
|
and restored it with `git checkout --`. That brought back the *committed* file and silently dropped an
|
||||||
|
uncommitted change in it (the release notes' entry). The diff showed it at once; it was re-applied.
|
||||||
|
|
||||||
|
**Why it bit.** `git checkout -- <file>` restores the index, not the file as it was a minute ago.
|
||||||
|
|
||||||
|
**How to apply it.** Commit before drilling, or copy the file aside and copy it back. Check
|
||||||
|
`git diff --stat` after every drill.
|
||||||
|
|
||||||
|
## A claim about another system's behaviour, written from its docs' general rule, was wrong for us
|
||||||
|
|
||||||
|
**What happened.** On 2026-11-19 `fabrica-release.md` F4 said "Custos makes `rosea-android` on the
|
||||||
|
first release". Custos does that only for the apps in its `ANDROID_APPS` table, and Rosea was never in
|
||||||
|
it (`apps/desktop/src-tauri/src/signing.rs`, read on 2026-11-21). The release would have stopped at
|
||||||
|
`no_key` after Mark's approval card. Culina and Liber hit exactly that on 2026-11-20.
|
||||||
|
|
||||||
|
**Why it bit.** The doc described what Custos does for Postea, and it read like a rule for every app.
|
||||||
|
Nothing in Rosea could test the claim: the step that would have failed runs only after a human approves.
|
||||||
|
|
||||||
|
**How to apply it.** When a step depends on another system doing something for us, find the line in
|
||||||
|
that system's source or config that names us, and cite it in the analysis. If no line names us,
|
||||||
|
write the claim as a gap, not as a fact.
|
||||||
|
|||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Review: `feature/android-release-apk` (2026-11-21)
|
||||||
|
|
||||||
|
Analysis: [`../features/android-release-apk.md`](../features/android-release-apk.md). The brief was Mark's, relayed by
|
||||||
|
the Aula session: release each app's APK after the most basic e2e on the Wave 10, through Fabrica's phone queue.
|
||||||
|
|
||||||
|
## What changed
|
||||||
|
|
||||||
|
- `.fabrica/tests.yaml`: the `phone` target says `reset: uninstall` and `maxMinutes: 20`.
|
||||||
|
- `.fabrica/artifex/e2e.yaml`: new steps `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`,
|
||||||
|
`fabrica tests run --target phone`); `GRADLE_USER_HOME` on D:, `NDK_HOME` named.
|
||||||
|
- `.fabrica/artifex/release.yaml`: the same two variables, and the header no longer claims Custos makes `rosea-android`.
|
||||||
|
- `e2e/android/garden.android.ts`: force-stops the app in `finally`.
|
||||||
|
- Docs: the analysis, G-T3 and G-F5 narrowed, G-F7 new, `fabrica-release.md` F4 corrected, the handover.
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
See *Counts* at the end (filled in from the run of this branch).
|
||||||
|
|
||||||
|
Also run:
|
||||||
|
|
||||||
|
- `fabrica artifex check`: 2 pipelines, app.yaml, aula.yaml, tests.yaml and brief.md, 0 problems.
|
||||||
|
- **Drill:** `reset: wipe-everything` planted in tests.yaml was refused with
|
||||||
|
`targets[1].reset: clear (the app's data), uninstall or keep`, then restored by copy, not `git checkout`
|
||||||
|
(lessons/process.md).
|
||||||
|
- `fabrica tests list --target phone`: 1 test in 1 file.
|
||||||
|
- **The release APK:**
|
||||||
|
- `pnpm tauri:android-release` with Gradle, Cargo's target, TEMP and ANDROID_USER_HOME under `D:\build\rosea`: exit 0 in 27 min.
|
||||||
|
- `android.ts verify`: no permission asked, no backup, metrics and Safe Browsing off.
|
||||||
|
- `aapt2 dump badging`: `cz.mareknovak.domi.rosea`, versionCode 1000, versionName 0.1.0, arm64-v8a, not debuggable, 5.60 MiB, sha256 `4d52e9eca4cd2e56…`, unsigned.
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
1. **The release pipeline does not require the phone test.** A tag can be released whose debug APK never passed on
|
||||||
|
the Wave 10. *Deferred, with the reason.* A `device:` step in `release` would queue the whole release for the
|
||||||
|
phone from the start, and the release runs on `windows`, not `windows-e2e` (docs/35 part 2). The gate is
|
||||||
|
process for now: no tag on a commit until the e2e pipeline's `phone` step has passed on it (analysis §3). A
|
||||||
|
pipeline `needs:` across pipelines would close it; Artifex has none today.
|
||||||
|
2. **The phone tests a debug APK, and the release is a different build.** *Accepted, and stated (A1).* Only a debug
|
||||||
|
WebView can be driven. The game bytes, the manifest patch and `MainActivity` are the same; the Rust profile and
|
||||||
|
the key differ. A manual check of the signed release APK on the phone is in the matrix, for after the key exists.
|
||||||
|
3. **`reset: uninstall` instead of the asked-for `clear`.** *Kept, with the reason (A3):* a release build on the
|
||||||
|
phone would otherwise block every debug run. It loses nothing more than `clear` would.
|
||||||
|
4. **`fabrica-release.md` F4 was wrong.** It said Custos makes `rosea-android` on the first release. Custos's
|
||||||
|
`ANDROID_APPS` table never named Rosea (0.22.0: Postea; 0.24.0: Postea, Culina, Liber). *Fixed* in F4, G-T3 and
|
||||||
|
the release.yaml header, and a lesson added (process.md). The release would have stopped at `no_key` after Mark's
|
||||||
|
card, as Culina's and Liber's did.
|
||||||
|
5. **The debug build in the e2e pipeline uses the default `ANDROID_USER_HOME`** (`%USERPROFILE%\.android` on C:).
|
||||||
|
Gradle writes `debug.keystore` there if it is missing. *Accepted:* adb's pairing keys live in that folder too
|
||||||
|
(docs/35 part 2), and moving it for the step could cut the runner off from the phone. It is one small file,
|
||||||
|
and it is already there.
|
||||||
|
6. **The pipelines keep Cargo's target in the checkout** (on F:, which is nearly full). *Accepted:* the
|
||||||
|
installer's artifact glob is relative to it. Only the local build here used D:.
|
||||||
|
7. **The new `finally` line was never run.** No run of the spec is possible outside the queue. *Not verified*:
|
||||||
|
typecheck and lint only.
|
||||||
|
8. **`fabrica devices list` did one reconnect pass** (adb `devices`, mDNS, `adb connect`), and `fabrica devices queue`
|
||||||
|
asked again for the pending Custos card 836209. Neither installs, starts or taps anything on the phone. Both are
|
||||||
|
stated here, so nobody reads "nothing touched the phone" as stronger than it is.
|
||||||
|
9. **The proposed certificate CN *Rosea Domi* outlives the working name** (A7). *For Mark and Custos to decide.*
|
||||||
|
|
||||||
|
## Soul, privacy, reachability, offline
|
||||||
|
|
||||||
|
- **Soul:** no player-facing change. Nothing can make a person feel worse.
|
||||||
|
- **Privacy:** the release APK asks for no `INTERNET` permission, has no backup, and has the WebView's metrics off
|
||||||
|
(verified on the built file). The phone spec chooses *Not now*, so no town is set on the phone.
|
||||||
|
- **Reachability:** none; there is no network.
|
||||||
|
- **Offline:** unchanged; the APK cannot reach a network at all.
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
|
||||||
|
- The `phone` step and the phone target never ran. The Wave 10 is `connected (not paired in Fabrica)`, and
|
||||||
|
pairing belongs to the Fabrica session.
|
||||||
|
- No signature was made. `rosea-android` does not exist (G-F7).
|
||||||
|
- No release, by G6.1 (G-F1).
|
||||||
|
- The e2e pipeline was never started on the hub.
|
||||||
|
|
||||||
|
## Counts (this branch, 2026-11-21)
|
||||||
|
|
||||||
|
- `pnpm test`: **608 passed** (cpu-guard 13, identity 5, schema 19, content 88, storage 70, art-prep 80, release 8,
|
||||||
|
engine 179, tauri 58, ui 88).
|
||||||
|
- `pnpm lint`, `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems.
|
||||||
|
`pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||||
|
- `pnpm test:e2e` and `test:offline` were **not rerun**. Nothing the browser runs changed: the only code change is
|
||||||
|
one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from
|
||||||
|
`feature/fabrica-release`, on the same game.
|
||||||
@@ -0,0 +1,162 @@
|
|||||||
|
# Review — `feature/fabrica-release`
|
||||||
|
|
||||||
|
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/fabrica-release.md`](../features/fabrica-release.md).
|
||||||
|
PR: https://gitea.marek-novak.cz/mnovak/Rosea/pulls/1 (the first PR on this repository).
|
||||||
|
Reviewed 2026-11-19 on Windows 10, Node 22.23.4, Fabrica CLI 0.14.0 (installed in `F:\Apps\Fabrica`),
|
||||||
|
while about twenty other sessions shared the machine: the CPU sat at 100 % for hours, so every run
|
||||||
|
below waited for the CPU guard (§5.7); none bypassed it.
|
||||||
|
|
||||||
|
## What changed for the player
|
||||||
|
|
||||||
|
Nothing in the game. The changes are around it:
|
||||||
|
|
||||||
|
- **The Windows installer** now also registers `domi-rosea://` for the user, and its uninstaller
|
||||||
|
removes it. Opening such an address opens the garden.
|
||||||
|
- **A release** can be made from a tag on Fabrica's runner, signed in Custos, with an Aula page. None
|
||||||
|
has been made: the first one waits for the author (G-F1, finding 1).
|
||||||
|
|
||||||
|
## Gates
|
||||||
|
|
||||||
|
Run on the branch head, 2026-11-19, each behind `pnpm guard:cpu` (it refused 6 times; each run waited):
|
||||||
|
|
||||||
|
| Gate | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| `pnpm lint`, `pnpm typecheck` | 0 problems (svelte-check 0 errors, 0 warnings; 18 of 18 turbo tasks; root and `tools/release` tsc clean) |
|
||||||
|
| `pnpm lint:copy` | 29 files, 0 problems (now with `AULA.md`, the brief and the notes) |
|
||||||
|
| `pnpm validate:library` | 13 of 13 fixtures rejected; 78 candidates |
|
||||||
|
| `pnpm test` | **608 passed**: identity 5, cpu-guard 13, content 88, schema 19, **release 8** (new), art-prep 80, storage 70, ui 88, engine 179, **tauri 58** (+11). A first run under 100 % load timed out one engine test (10.5 s against 5 s; code untouched here) and stopped turbo; the rerun passed. |
|
||||||
|
| `pnpm test:e2e` | 26 passed. A first run under load timed out the two-profile *keep her safe* test (30 s); the rerun passed. |
|
||||||
|
| `pnpm test:offline` | 1 passed |
|
||||||
|
| `pnpm aula:shots` | 2 passed; 8 PNGs (1280 × 800 and 720 × 1600), looked at one by one |
|
||||||
|
| `fabrica artifex check` | 2 pipelines, app.yaml, aula.yaml, tests.yaml, brief: 0 problems |
|
||||||
|
| `fabrica aula brief` / `aula shots` / `aula page` / `notes` | the line, 2 paragraphs, 8 captions, 0 problems; 8 shots and `aula.json`; `aula-page.json` and `.html`; 28 changes, 0 copy problems |
|
||||||
|
| `fabrica tests list` | `web` 26 tests, `phone` 1 test |
|
||||||
|
| `fabrica preflight rosea --dir .` | 0 blockers, 2 warnings (Custos not checked: finding 2; pnpm's version unread) |
|
||||||
|
| `pnpm tauri:build` (target on D:) | `Rosea Domi_0.1.0_x64-setup.exe`, 1.31 MiB; the generated `installer.nsi` includes `hooks.nsh` and calls both hooks |
|
||||||
|
|
||||||
|
**The bundle** (CLAUDE.md §5.4): the game's code is unchanged, so the PWA bundle is the same; the
|
||||||
|
installer differs by the NSIS hook. Nothing was deployed or distributed.
|
||||||
|
|
||||||
|
## Bug drills
|
||||||
|
|
||||||
|
Each test was run with its bug put back, then the file restored by copy (never `git checkout`, see
|
||||||
|
finding 9):
|
||||||
|
|
||||||
|
| Put back | Result |
|
||||||
|
|:--|:--|
|
||||||
|
| The hook's command without `"%1"` | CAUGHT (`config.test.ts`) |
|
||||||
|
| The uninstaller keeps the `domi-rosea` key | CAUGHT (`config.test.ts`) |
|
||||||
|
| `check-version` forgets `apps/rosea/package.json` (the file the installer and APK read) | CAUGHT (2 tests) |
|
||||||
|
| `lint:copy` forgets the generated release notes | CAUGHT (`copy.test.ts`) |
|
||||||
|
| The APK's scope says `mnovak/rosea` | CAUGHT (`sign-apk.test.ts`) |
|
||||||
|
| `CUSTOS_PIPE` accepted (another Custos signs) | CAUGHT (`sign-apk.test.ts`) |
|
||||||
|
|
||||||
|
6 of 6.
|
||||||
|
|
||||||
|
## Findings
|
||||||
|
|
||||||
|
1. **Publishing is a public release, and G6.1 forbids one (blocker for the release, not the merge).**
|
||||||
|
The repository on Gitea is public (`private: false`, read anonymously), so a Fabrica `publish` and
|
||||||
|
the Aula page are public. CLAUDE.md §8 and G6.1: *a legal check of the look comes before any public
|
||||||
|
release*. **Deferred to the author:** asked through the session that started this one, with three
|
||||||
|
choices (publish now; make the repository private first; wait). Until then no tag is made. G-F1.
|
||||||
|
2. **Custos's side was not checked.** `fabrica preflight rosea --dir .` says 0 blockers, 2 warnings, but
|
||||||
|
the CLI has no `fabrica/` grant yet, so the keys and scopes were *not* checked. Expected blockers
|
||||||
|
before the first release, each Mark's step in Custos: `domi-code-signing` and `domi-release` must
|
||||||
|
name `mnovak/Rosea` in their scope; `rosea-android` does not exist (Custos makes it on the first
|
||||||
|
signature). Running preflight raised a Custos card to certify the Fabrica CLI (match code
|
||||||
|
836209): it was not retried. **Deferred:** Mark's Custos.
|
||||||
|
3. **The release's `pnpm test` refuses on a busy PC.** The runner is Mark's desktop, so the CPU guard
|
||||||
|
runs inside the release; at today's load it would wait three minutes and fail the step after the
|
||||||
|
install. **Kept:** §5.7 says a dedicated machine may set `ROSEA_CPU_MAX`, a busy desktop may not. A
|
||||||
|
refused release is re-run when the PC is calm (Fabrica: *Re-run*).
|
||||||
|
4. **The installed Fabrica CLI does not know `reset` or `maxMinutes`** (docs/35, on Fabrica `main`).
|
||||||
|
**Fixed:** left out of `tests.yaml`, which now passes `fabrica artifex check`; the reason is in the
|
||||||
|
file. With the queue's default `clear`, a release build on the phone would block the debug one; the
|
||||||
|
file says so.
|
||||||
|
5. **Generated release notes were not copy-checked.** `fabrica notes` writes commit subjects to a page
|
||||||
|
strangers read; a subject could carry a forbidden word. **Fixed:** `lint:copy` reads
|
||||||
|
`target/notes/release-notes.md` when it exists, and the release's `notes-copy` step runs before
|
||||||
|
`page`. Today's notes (28 changes): 0 problems.
|
||||||
|
6. **Two Custos cards per release.** Fabrica's approval and Authenticode share the run's card; the APK
|
||||||
|
is signed by `custos-sign` with its own run id (`rosea-v<version>`), so it is a second card (and on
|
||||||
|
the first release a *first signature* card). **Kept:** the pipeline gives a `run` step no run id to
|
||||||
|
pass; Postea does the same.
|
||||||
|
7. **`domi-rosea://` and a running Rosea.** Without a single-instance plugin a second window opens on
|
||||||
|
the same data. Two windows behave as two tabs (two-tabs.md), so nothing is lost or doubled; a
|
||||||
|
second window is still a surprise. **Kept**, by §2 (no plugin); written in F5.
|
||||||
|
8. **Shared Fabrica files.** `F:\Apps\Fabrica\data\workspace.yaml` and `deploy.json` were edited while
|
||||||
|
other sessions edit them too: Rosea was appended by a read-modify-write within one second, after
|
||||||
|
another session had added Amicitia and Liber. Both files were read back: every earlier entry is
|
||||||
|
still there. **Kept:** there is no lock to take.
|
||||||
|
9. **A drill restored a file with `git checkout` and lost an uncommitted change** (the notes entry in
|
||||||
|
`lint-copy.ts`). Found at once by the diff, re-applied and committed. **Fixed** the method: drills
|
||||||
|
now copy the file aside and back.
|
||||||
|
10. **Gates ran after the first commits, not before** (§5.5 asks for green before any commit). The
|
||||||
|
machine's load held every full run back for hours. **Fixed in order, not in time:** nothing is
|
||||||
|
merged before the gates above are green.
|
||||||
|
|
||||||
|
11. **The pictures are not the same on every run.** A fresh profile makes a fresh key, and her
|
||||||
|
weeds and fallen petals follow it, so the garden in two runs differs (weeds in one, none in the
|
||||||
|
other; water 40 % or 39 % with the hold's real timing). Each picture is still honest. **Kept**,
|
||||||
|
and Fabrica's `visual` step (docs/28) is not in the release: it would stop every release on a
|
||||||
|
difference nobody made. A fixed demo key would need a seam in `@rosea/identity`; not worth it now.
|
||||||
|
12. **Build output on F:.** F: was nearly full (18 GB free, about twenty sessions building). **Fixed
|
||||||
|
for this session:** Cargo's target and temporary files went to `D:\build\rosea`. The pipeline itself
|
||||||
|
builds in the runner's folder (`E:\fabrica-runner`). Gradle's home on the runner is its default,
|
||||||
|
on C:; not changed here (no Android build ran here).
|
||||||
|
|
||||||
|
## Soul
|
||||||
|
|
||||||
|
*Can this make a lonely person feel worse?* The words a stranger reads (`AULA.md`, the brief, the
|
||||||
|
notes) were read for guilt, comparison and promises: they say *nothing is lost by being away*,
|
||||||
|
*no streak resets, no reminders, no counting of anyone*, and call the version early and the pictures
|
||||||
|
stand-ins. No sentence names the reader's state or promises comfort. `lint:copy` passes on them. The
|
||||||
|
pictures show one invented rose tended for two weeks, with no number about anyone else. Looked; found
|
||||||
|
nothing beyond finding 1.
|
||||||
|
|
||||||
|
## Privacy
|
||||||
|
|
||||||
|
Every path by which a byte could leave the device: **none was added to the game.** No updater, no
|
||||||
|
plugin, no permission; `latest.json` is not published, so no future build can be pointed at one by
|
||||||
|
accident. The bytes this feature sends leave Mark's PC, not a player's: the pipeline's release to
|
||||||
|
Gitea, `fabrica preflight` to the hub and Custos. The pictures are taken on loopback in throwaway
|
||||||
|
profiles; both tests assert that no request left the test server's origin. The demo rose's file
|
||||||
|
carries no town (asserted).
|
||||||
|
|
||||||
|
## Reachability
|
||||||
|
|
||||||
|
`domi-rosea://` lets a local program or a web page (after the browser asks) open the garden. It
|
||||||
|
cannot pass anything in: the game reads no argument. No Canalis capability is served, so no other app
|
||||||
|
can reach into her (F6). Nobody becomes reachable.
|
||||||
|
|
||||||
|
## Offline
|
||||||
|
|
||||||
|
Unchanged: the game makes no request. The release pipeline runs `pnpm test:offline` before anything
|
||||||
|
is built for a player.
|
||||||
|
|
||||||
|
## Test honesty
|
||||||
|
|
||||||
|
The new tests fail with their bug put back (6 of 6, above). The `phone` target's spec has never run
|
||||||
|
(see *Not verified*), so it may be wrong in ways only a phone shows.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
In: the six onboarding items as they apply (F1–F11). Out: the release itself (finding 1), Canalis
|
||||||
|
Part B (F6), videos (F8, Pensum `kkpy69`), a `server` part (F2), iOS (G-T1).
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
|
||||||
|
- **No release and no signature**: no tag (finding 1). So no Custos card was answered, no
|
||||||
|
`SHA256SUMS` exists, the Aula page is not live, and `publish`, `sign`, `apk` and `minisign` have never
|
||||||
|
run. The hub run (`fabrica deploy rosea --part desktop`) has never run.
|
||||||
|
- **The Android release build** (`pnpm tauri:android-release`) was not run here: its Gradle home is on
|
||||||
|
C:, which this session may not use. Its only difference from the debug build that works is `--debug`
|
||||||
|
and the verified path; the first release run is its first build.
|
||||||
|
- **`domi-rosea://` on a real install**: the installer was built, not run (it writes the real registry).
|
||||||
|
- **The `phone` target**: never run. It must go through Fabrica's phone queue; the spec may need fixes
|
||||||
|
that only a phone shows (G-F5).
|
||||||
|
- **The `e2e` pipeline on the e2e runner**: not started (manual; it would compete with the release
|
||||||
|
sessions on this PC).
|
||||||
|
- **Fabrica's *Update all* over a Rosea install**: needs a signed release first.
|
||||||
|
- **WebView2's own traffic** (G-T6): still unmeasured for Rosea.
|
||||||
@@ -1,14 +1,19 @@
|
|||||||
# Rosea Domi: the web e2e suite on this PC's e2e runner (fabrica-release.md F9; Fabrica docs/20_tests.md,
|
# Rosea Domi: the e2e suites on this PC's e2e runner (fabrica-release.md F9, android-release-apk.md; Fabrica
|
||||||
# docs/31_runners_here.md): the PWA built, then `fabrica tests run --target web` (Playwright headless against the
|
# docs/20_tests.md, docs/31_runners_here.md, docs/35_phone_queue.md).
|
||||||
# BUILT bundle under /Rosea/), the records, traces and screenshots kept with the run. Manual: no push webhook
|
# web: the PWA built, then `fabrica tests run --target web` (Playwright headless against the BUILT bundle under
|
||||||
# reaches the hub yet. The phone target is not here: it runs through the phone queue with
|
# /Rosea/), the records, traces and screenshots kept with the run.
|
||||||
# `fabrica tests run --target phone`.
|
# phone: the debug APK built, then `fabrica tests run --target phone` on the Wave 10. The step says `device:`, so
|
||||||
|
# the hub queues this run for the phone and the nested run uses the run's phone (FABRICA_PHONE_LEASED);
|
||||||
|
# no adb reaches the phone outside the queue. The run waits in the queue without holding a runner.
|
||||||
|
# Manual: no push webhook reaches the hub yet. Gradle's cache is on D: (never C:; F: is the crowded workspace).
|
||||||
name: e2e
|
name: e2e
|
||||||
on:
|
on:
|
||||||
manual: true
|
manual: true
|
||||||
runner: windows-e2e
|
runner: windows-e2e
|
||||||
env:
|
env:
|
||||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||||
|
GRADLE_USER_HOME: 'D:\build\rosea\gradle'
|
||||||
|
NDK_HOME: 'F:\Tools\Android\Sdk\ndk\27.1.12297006'
|
||||||
steps:
|
steps:
|
||||||
- id: install
|
- id: install
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
@@ -19,3 +24,11 @@ steps:
|
|||||||
needs: [build]
|
needs: [build]
|
||||||
run: fabrica tests run --target web
|
run: fabrica tests run --target web
|
||||||
artifacts: [".fabrica/runs/tests/**"]
|
artifacts: [".fabrica/runs/tests/**"]
|
||||||
|
- id: apk
|
||||||
|
needs: [install]
|
||||||
|
run: pnpm tauri:android
|
||||||
|
- id: phone
|
||||||
|
needs: [apk]
|
||||||
|
device: Wave 10
|
||||||
|
run: fabrica tests run --target phone
|
||||||
|
artifacts: [".fabrica/runs/tests/**"]
|
||||||
|
|||||||
@@ -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 makes that key on the first release: a first-signature card); a minisign
|
# custos-sign with rosea-android (NOT made by Custos on its own: android-release-apk.md A6, until then `no_key`); 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).
|
||||||
@@ -18,6 +18,9 @@ runner: windows
|
|||||||
env:
|
env:
|
||||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||||
CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe'
|
CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe'
|
||||||
|
# The Android build (android-release-apk.md): the Tauri CLI needs the NDK named; Gradle's cache on D:, never C:.
|
||||||
|
GRADLE_USER_HOME: 'D:\build\rosea\gradle'
|
||||||
|
NDK_HOME: 'F:\Tools\Android\Sdk\ndk\27.1.12297006'
|
||||||
steps:
|
steps:
|
||||||
- id: version
|
- id: version
|
||||||
run: node scripts/check-version.mjs ${{ version }}
|
run: node scripts/check-version.mjs ${{ version }}
|
||||||
@@ -57,12 +60,15 @@ steps:
|
|||||||
- id: notes
|
- id: notes
|
||||||
run: fabrica notes
|
run: fabrica notes
|
||||||
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
|
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
|
||||||
|
- id: notes-copy
|
||||||
|
needs: [notes, install]
|
||||||
|
run: pnpm lint:copy
|
||||||
- id: shots
|
- id: shots
|
||||||
needs: [pictures]
|
needs: [pictures]
|
||||||
run: fabrica aula shots
|
run: fabrica aula shots
|
||||||
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
|
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
|
||||||
- id: page
|
- id: page
|
||||||
needs: [notes, shots]
|
needs: [notes-copy, shots]
|
||||||
run: fabrica aula page
|
run: fabrica aula page
|
||||||
artifacts: ["target/aula/aula-page.json", "target/aula/aula-page.html"]
|
artifacts: ["target/aula/aula-page.json", "target/aula/aula-page.html"]
|
||||||
- id: approve
|
- id: approve
|
||||||
|
|||||||
+9
-7
@@ -1,11 +1,11 @@
|
|||||||
# Rosea Domi's Playwright targets (fabrica-release.md F9; Fabrica docs/20_tests.md, docs/22_devices.md,
|
# Rosea Domi's Playwright targets (fabrica-release.md F9, android-release-apk.md; Fabrica docs/20_tests.md,
|
||||||
# docs/35_phone_queue.md). `fabrica tests run --target <name>`, or Tests in Fabrica.
|
# docs/22_devices.md, docs/35_phone_queue.md). `fabrica tests run --target <name>`, or Tests in Fabrica.
|
||||||
# web: the BUILT PWA (build it first: `pnpm build`) in headless Chromium: the specs of `pnpm test:e2e`.
|
# web: the BUILT PWA (build it first: `pnpm build`) in headless Chromium: the specs of `pnpm test:e2e`.
|
||||||
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue. Build it first
|
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue (the e2e pipeline's
|
||||||
# (`pnpm tauri:android`). The queue clears this app's data before the run (docs/35 `reset: clear`, its
|
# `phone` step, or `fabrica tests run --target phone`). Build it first (`pnpm tauri:android`). A debug APK,
|
||||||
# default); `reset` and `maxMinutes` are not written here because the installed Fabrica (CLI 0.14.0)
|
# because only a debug build's WebView can be driven (docs/22 part 5); the release APK is the same game.
|
||||||
# does not know them yet. A release build on the phone blocks the debug one (another key): uninstall it
|
# `reset: uninstall`: the app is installed fresh, so a release build of Rosea on the phone (another key)
|
||||||
# there first.
|
# cannot block the run. Nothing of Rosea's on the test phone is kept: it holds no rose of anyone's.
|
||||||
dir: .
|
dir: .
|
||||||
config: e2e/playwright.fabrica.config.ts
|
config: e2e/playwright.fabrica.config.ts
|
||||||
targets:
|
targets:
|
||||||
@@ -19,4 +19,6 @@ targets:
|
|||||||
project: android
|
project: android
|
||||||
device: Wave 10
|
device: Wave 10
|
||||||
package: cz.mareknovak.domi.rosea
|
package: cz.mareknovak.domi.rosea
|
||||||
|
reset: uninstall
|
||||||
|
maxMinutes: 20
|
||||||
apk: apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/app-universal-debug.apk
|
apk: apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/app-universal-debug.apk
|
||||||
|
|||||||
+30
-1
@@ -2,7 +2,36 @@
|
|||||||
|
|
||||||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||||
|
|
||||||
## Last session — 2026-10-31 to 2026-11-17
|
## Latest — 2026-11-21: the APK for a release, tested through the phone queue (blocked twice)
|
||||||
|
|
||||||
|
- **`feature/android-release-apk`**: the phone target says `reset: uninstall` and `maxMinutes: 20`; the e2e
|
||||||
|
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.
|
||||||
|
- **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).
|
||||||
|
- **Still the author's:** publication (G6.1, G-F1).
|
||||||
|
|
||||||
|
## Earlier — 2026-11-19: released through Fabrica (built, not published)
|
||||||
|
|
||||||
|
- **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`).
|
||||||
|
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.
|
||||||
|
- **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).
|
||||||
|
|
||||||
|
## Earlier — 2026-10-31 to 2026-11-17
|
||||||
|
|
||||||
**Done.**
|
**Done.**
|
||||||
|
|
||||||
|
|||||||
@@ -40,15 +40,15 @@ describe('signArgs', () => {
|
|||||||
|
|
||||||
describe('custosSign', () => {
|
describe('custosSign', () => {
|
||||||
it('runs the custos-sign CUSTOS_SIGN_EXE names, else the one on PATH', () => {
|
it('runs the custos-sign CUSTOS_SIGN_EXE names, else the one on PATH', () => {
|
||||||
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe' }, () => true)).toBe('F:\Apps\Custos\custos-sign.exe');
|
expect(custosSign({ CUSTOS_SIGN_EXE: 'F:\\Apps\\Custos\\custos-sign.exe' }, () => true)).toBe('F:\\Apps\\Custos\\custos-sign.exe');
|
||||||
expect(custosSign({}, () => true)).toBe('custos-sign.exe');
|
expect(custosSign({}, () => true)).toBe('custos-sign.exe');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('refuses a named custos-sign that is not there, rather than another one', () => {
|
it('refuses a named custos-sign that is not there, rather than another one', () => {
|
||||||
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\nowhere.exe' }, () => false)).toThrow(/not there/);
|
expect(() => custosSign({ CUSTOS_SIGN_EXE: 'X:\\nowhere.exe' }, () => false)).toThrow(/not there/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('refuses another Custos (CUSTOS_PIPE)', () => {
|
it('refuses another Custos (CUSTOS_PIPE)', () => {
|
||||||
expect(() => custosSign({ CUSTOS_PIPE: '\\.\pipe\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
|
expect(() => custosSign({ CUSTOS_PIPE: '\\\\.\\pipe\\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ test('the garden opens on the phone; she is watered, and still watered after the
|
|||||||
await page.getByRole('button', { name: en.rose.numbers }).click();
|
await page.getByRole('button', { name: en.rose.numbers }).click();
|
||||||
await expect(page.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
await expect(page.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
||||||
} finally {
|
} finally {
|
||||||
|
// Fabrica stops the app after the run too; the phone is never left with Rosea open (memory rule, 2026-11-17).
|
||||||
|
await device?.shell(`am force-stop ${PKG!}`).catch((e: unknown) => console.warn(`force-stop: ${String(e)}`));
|
||||||
await device?.close();
|
await device?.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -110,7 +110,7 @@ test('two weeks in an invented garden, photographed on a desktop', async ({ brow
|
|||||||
|
|
||||||
await page.getByRole('button', { name: en.rose.numbers }).click();
|
await page.getByRole('button', { name: en.rose.numbers }).click();
|
||||||
await expect(page.locator('#rose-numbers')).toContainText(en.rose.daysOfCare);
|
await expect(page.locator('#rose-numbers')).toContainText(en.rose.daysOfCare);
|
||||||
await page.locator('#rose-numbers').scrollIntoViewIfNeeded();
|
await page.locator('#rose-numbers').evaluate((el) => el.scrollIntoView({ block: 'center' }));
|
||||||
await shot(page, 'numbers');
|
await shot(page, 'numbers');
|
||||||
|
|
||||||
await page.getByRole('button', { name: en.rose.safe.title }).click();
|
await page.getByRole('button', { name: en.rose.safe.title }).click();
|
||||||
|
|||||||
@@ -26,7 +26,15 @@ const TARGETS: readonly { dir: string; ext: readonly string[] }[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
/** Single files: the page shell, the config that builds the web manifest, the Letter, and the Aula page's text. */
|
/** Single files: the page shell, the config that builds the web manifest, the Letter, and the Aula page's text. */
|
||||||
const FILES: readonly string[] = ['apps/rosea/index.html', 'apps/rosea/vite.config.ts', 'docs/LETTER.md', 'AULA.md'];
|
const FILES: readonly string[] = [
|
||||||
|
'apps/rosea/index.html',
|
||||||
|
'apps/rosea/vite.config.ts',
|
||||||
|
'docs/LETTER.md',
|
||||||
|
'AULA.md',
|
||||||
|
// Written by `fabrica notes` from commit subjects during a release; read when it is there, so the
|
||||||
|
// release's `notes-copy` step stops a forbidden word before it reaches the page (fabrica-release.md F11).
|
||||||
|
'target/notes/release-notes.md'
|
||||||
|
];
|
||||||
|
|
||||||
function walk(dir: string, ext: readonly string[]): string[] {
|
function walk(dir: string, ext: readonly string[]): string[] {
|
||||||
if (!existsSync(dir)) return [];
|
if (!existsSync(dir)) return [];
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { spawnSync } from 'node:child_process';
|
import { spawnSync } from 'node:child_process';
|
||||||
import { createRequire } from 'node:module';
|
import { createRequire } from 'node:module';
|
||||||
import { join } from 'node:path';
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
||||||
|
import { dirname, join } from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { describe, expect, it } from 'vitest';
|
import { describe, expect, it } from 'vitest';
|
||||||
|
|
||||||
@@ -26,6 +27,20 @@ describe('lint:copy reads the Aula page', { timeout: 60_000 }, () => {
|
|||||||
expect(files).toContain('.fabrica/notes/0.1.0.md');
|
expect(files).toContain('.fabrica/notes/0.1.0.md');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("a release's generated notes are checked when they are there", () => {
|
||||||
|
const notes = join(repo, 'target/notes/release-notes.md');
|
||||||
|
const had = existsSync(notes);
|
||||||
|
if (!had) {
|
||||||
|
mkdirSync(dirname(notes), { recursive: true });
|
||||||
|
writeFileSync(notes, '# notes\n');
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
expect(listed()).toContain('target/notes/release-notes.md');
|
||||||
|
} finally {
|
||||||
|
if (!had) rmSync(notes);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
it('the game itself is still checked', () => {
|
it('the game itself is still checked', () => {
|
||||||
const files = listed();
|
const files = listed();
|
||||||
expect(files).toContain('packages/ui/src/copy/en.ts');
|
expect(files).toContain('packages/ui/src/copy/en.ts');
|
||||||
|
|||||||
Reference in New Issue
Block a user