Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d18ea0afc | |||
| b3076553ef | |||
| 0ab845dcbb | |||
| f5d8d2c581 | |||
| 7cd7dda0c0 | |||
| 9b8eb7036d |
+3
-1
@@ -5,7 +5,9 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
|
||||
| Feature | Phase | Status | Analysis | Review |
|
||||
|:--|:--|:--|:--|:--|
|
||||
| Released through Fabrica: `.fabrica/` (app, release and e2e pipelines, tests, Aula pictures), the Aula page's words, the version check, the APK signed in Custos, `domi-rosea://open` from the installer, the showcase pictures on demo data, the phone target | Platform track | 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) |
|
||||
| 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 only (2026-11-22); no code until Atrium's `APP_CONTRACT.md` v0 | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md) |
|
||||
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
|
||||
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
|
||||
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) |
|
||||
| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) |
|
||||
|
||||
@@ -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` (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-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. |
|
||||
@@ -93,9 +93,16 @@ Svelte codebase, the apps through a Tauri 2 shell. Analysis:
|
||||
| G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. |
|
||||
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. |
|
||||
| G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). |
|
||||
| G-F5 | The `phone` target has not run | 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~~ | **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-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`)
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|:--|:--|:--|
|
||||
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | Open, **plan only** (2026-11-22). Inventory: no Tauri invoke or listen, one database (`rosea` IndexedDB), no outgoing request. Step 1 waits for Atrium's `APP_CONTRACT.md` v0, and the later steps wait for their Atrium Day. R1 (keep the origin) and R4 (Rust in the shell) are Mark's. |
|
||||
|
||||
## Phase 6 — Release
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
# 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 | `fabrica tests run --target phone` through the hub's queue (the e2e runner is not yet added, so not the pipeline step) | done 2026-11-21: run `20261121-101158-uckm` **1 passed, 0 failed** (7.9 s; waited 12 s in the queue) on the Wave 10, Android 16, debug APK sha256 `bd59ff908125…`, commit f5d8d2c |
|
||||
| The phone test fails when persistence is wrong | e2e drill | planted `Days of care 2`, run through the queue, restored by copy | done: run `20261121-102500-crkf` **0 passed, 1 failed**, received `Days of care1` after the reopen |
|
||||
| The spec never reaches for a phone outside the queue | e2e | `test.skip` without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` | by construction |
|
||||
| The signed APK verifies with `rosea-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key |
|
||||
| What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists |
|
||||
@@ -0,0 +1,189 @@
|
||||
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
|
||||
|
||||
Status: **plan only**, `docs/atrium-adoption`, 2026-11-22. No code changes yet. The brief is Mark's, passed on by the Aula
|
||||
session: prepare Rosea for Atrium Domi. The source is `F:\Akce\Atrium-plan\ROADMAP.md` §1–2 and Appendix A. Rules for when each step may start:
|
||||
|
||||
- Step 1 code waits for Atrium's `docs/APP_CONTRACT.md` v0 on its `main`.
|
||||
- Each later step waits until its Atrium Day lands.
|
||||
- Visual changes wait for `@domi/ui`.
|
||||
|
||||
This file is the inventory Appendix A asks for, plus the decisions those steps would force on Rosea. Its §6 lists the questions for Mark.
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
Atrium Domi is the single free thing a Domi user installs:
|
||||
|
||||
- a tray service that handles updates, licences, backup and the record of *What left this computer*;
|
||||
- a window whose rooms are the Domi apps.
|
||||
|
||||
For Rosea, three things matter to the player:
|
||||
|
||||
- **Backup.** Her rose is backed up with everything else, in one click, with no account. This is a stronger answer to
|
||||
the trap Rosea fears most, a player coming back to find her gone (CLAUDE.md §8), than *Keep her safe* alone.
|
||||
- **The record.** *What left this computer* shows Rosea as having sent nothing, which is the truth.
|
||||
- **Standalone.** The garden opens inside Atrium's window, and the app still opens on its own exactly as today.
|
||||
Atrium is the door, not a lock (ROADMAP §1).
|
||||
|
||||
Nothing about the game changes. The PWA and the Android app are not part of Atrium; Atrium is a Windows desktop
|
||||
service plus a NixOS server edition.
|
||||
|
||||
## 2. Inventory (what Appendix A asks for)
|
||||
|
||||
### 2.1 Direct Tauri invoke/listen in the UI (for `@domi/bridge`, step 2)
|
||||
|
||||
**None.** The shell is *a window and nothing else* (CLAUDE.md §2). Here is what was checked on `main` (b307655):
|
||||
|
||||
- **No Tauri JavaScript API.** No `@tauri-apps/api` dependency anywhere, and no `invoke(`, `listen(` or `__TAURI__`
|
||||
in `apps/rosea/src` or `packages/*/src`.
|
||||
- **No commands, no plugins, no IPC grant.** `apps/rosea-tauri/src-tauri/src/lib.rs` is a bare `tauri::Builder`, and
|
||||
`capabilities/` is absent on purpose, so the page has no IPC at all.
|
||||
- **The one native bridge is Android-only and not Tauri.** It is `window.roseaFile.save(name, text)`, registered
|
||||
with `addJavascriptInterface` in `apps/rosea-tauri/android/java/MainActivity.kt`. It is used by
|
||||
`apps/rosea/src/App.svelte` for *Keep her safe* (`keep-her-safe-apps.md`) and pinned by
|
||||
`apps/rosea-tauri/test/android-bridge.test.ts`. Atrium has no Android part, so it stays.
|
||||
- **The one shell switch is a build-time constant,** `__ROSEA_SHELL__`, read only in `App.svelte`.
|
||||
|
||||
So step 2 has nothing to replace. It becomes a guard: a test that the game still imports no `@tauri-apps/api`
|
||||
(added with step 1 or 3, whichever comes first).
|
||||
|
||||
### 2.2 Data folders and databases (for `rosea.backup.snapshot`, step 4)
|
||||
|
||||
**Rosea writes one thing: the IndexedDB database `rosea`**, through Dexie in `packages/storage` (schema version 2):
|
||||
|
||||
| Store | Contents | Can be remade? |
|
||||
|:--|:--|:--|
|
||||
| `profile` | the rose's name, the gardener, the chosen sunset town (or none), settings, `pastKeys` | the name, gardener and town take a tap each; `pastKeys` cannot be remade |
|
||||
| `events` | the append-only care log, *the truth* (CLAUDE.md §4) | **no** |
|
||||
| `keys` | the identity keypair; the private key is a **non-extractable** WebCrypto key | **no, and it cannot be read out at all** |
|
||||
|
||||
It sits in the webview's profile and is not a file of Rosea's own:
|
||||
|
||||
| Version | Folder |
|
||||
|:--|:--|
|
||||
| Windows (the only one Atrium sees) | `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\EBWebView\` (WebView2's user data folder). The database is LevelDB under `Default\IndexedDB\https_tauri.localhost_0.indexeddb.leveldb` *(this exact path is predicted on Windows; it was seen on Android)* |
|
||||
| macOS, Linux | WKWebView / WebKitGTK data folders *(predicted)*, CLAUDE.md §4 |
|
||||
|
||||
The Rust side writes no file. There is no SQLite.
|
||||
|
||||
### 2.3 Every outgoing network request (for the audit, step 5)
|
||||
|
||||
**None from Rosea.** The evidence:
|
||||
|
||||
| Layer | What holds it |
|
||||
|:--|:--|
|
||||
| The game | no `fetch`, `XMLHttpRequest`, `WebSocket`, `sendBeacon`, `EventSource` or `RTCPeerConnection` in `apps/rosea/src` or `packages/*/src` (grep, b307655) |
|
||||
| The page's policy | CSP `connect-src 'self'` and `default-src 'self'`, from `tauri.conf.json` `app.security.csp`, held equal to the PWA's `<meta>` by the shell's test |
|
||||
| The WebView2 runtime | `additionalBrowserArgs` switches off its own calls home: DoH, SmartScreen, Autofill, Translate, background networking, component update and more (CLAUDE.md §8, *the webview phones home*). **Not yet measured on Windows** |
|
||||
| Android (not in Atrium) | no `INTERNET` permission, checked with `aapt2` on every build |
|
||||
|
||||
What could leave in future:
|
||||
|
||||
- the WebView2 runtime itself, if a runtime update breaks the switches;
|
||||
- Phase 3 friend sync (WebRTC);
|
||||
- Phase 4 `lucerna`.
|
||||
|
||||
Each of those gets its `fundamentum.audit.record` when it arrives. The step-5 test for Rosea is the reverse of the
|
||||
Appendix's: *any* request fails the suite. Today that means a built-app e2e that records every request and expects
|
||||
none outside the origin. The offline suite already comes close.
|
||||
|
||||
### 2.4 Accent and icon (for `domi-app.toml`, step 1)
|
||||
|
||||
| Field | Proposal | Source |
|
||||
|:--|:--|:--|
|
||||
| `id` | `rosea` | the `@rosea/*` scope, `domi-rosea://` |
|
||||
| `name` | `Rosea Domi` | `packages/schema/src/constants.ts`; *Domi* never alone |
|
||||
| `label` | `Rose` *(judgment: a plain word, as Appendix A asks)* | — |
|
||||
| `accent` | `#b4485e` (`--rose`, light); on the dark Domi theme `#e8899b` (`--rose`, dark) | `packages/ui/src/tokens.css`; the web manifest's `theme_color` |
|
||||
| `icon` | `apps/rosea/public/icon.svg`, a **placeholder** (form only). The real icon comes through `docs/ART.md` | the shell's icons are made from it at build time |
|
||||
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
|
||||
| `hostable` | `true`, with the origin rule in R1 | — |
|
||||
| `free` | **Mark's to say** | — |
|
||||
| `capabilities` | `rosea.backup.snapshot`, `rosea.ui.*` (hosted), later `rosea.export.open`. **No** `rosea.atrium.badge` | §5 |
|
||||
|
||||
## 3. Technical architecture (as planned)
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph atrium["Atrium Domi (not in this repo)"]
|
||||
svc["atrium-service<br/>\\.\pipe\domi-atrium"]
|
||||
win["Atrium window"]
|
||||
end
|
||||
subgraph shell["apps/rosea-tauri (Rust)"]
|
||||
door["service door client<br/>(new, step 1)"]
|
||||
snap["rosea.backup.snapshot<br/>(new, step 4)"]
|
||||
end
|
||||
subgraph game["apps/rosea + packages/* (unchanged)"]
|
||||
store["packages/storage<br/>exportRose / importRose"]
|
||||
idb[("IndexedDB rosea<br/>in WebView2's folder")]
|
||||
end
|
||||
svc <--> door
|
||||
door --> snap
|
||||
snap -. "asks the page" .-> store --> idb
|
||||
win -. "hosts rosea.ui.* (step 3)" .-> shell
|
||||
game -. "imports nothing of Atrium's" .- atrium
|
||||
```
|
||||
|
||||
**The seam stays where it is.** The game never learns Atrium exists, just as it never learns which shell it is in
|
||||
except through `__ROSEA_SHELL__`. Everything Atrium needs lives in `apps/rosea-tauri`. That shell stays deletable,
|
||||
and the PWA stays whole without it.
|
||||
|
||||
### Decisions this forces (proposed; Mark decides those marked so)
|
||||
|
||||
| # | Proposal | Why |
|
||||
|:--|:--|:--|
|
||||
| R1 | **Hosted mode keeps Rosea's own webview and origin.** Atrium shows Rosea's window as a room (`--hosted` = Rosea's process, its WebView2 folder, `https://tauri.localhost`). Atrium does not load `ui_bundle` in a webview of its own. | IndexedDB is per origin and per profile. A bundle loaded by Atrium's webview opens an **empty** database, and the player meets a new rose with hers apparently gone: the cruellest bug this product could have (CLAUDE.md §8, *the origin is forever*). If Atrium can only host by loading the bundle, Rosea is `hostable = false` until a migration is designed. |
|
||||
| R2 | **The snapshot is the care log, taken by the game**: `exportRose`'s `rosea-rose` file (`keep-her-safe.md` K1: keys + events, never the private key, never the town). The shell asks the page for it and writes it into the folder the service gives. | Copying LevelDB from under a running webview is not consistent, and the private key cannot be copied at all. The `rosea-rose` file is the one format already tested to restore additively (K3, K4). |
|
||||
| R3 | **Restore is *bring her back*,** not a byte copy. It goes through `importRose`, which only appends. The restored rose lives under a new key with her old care intact (K2). | Contributions only add, and the log is never rewritten (CLAUDE.md §1, §6.2). |
|
||||
| R4 | **Mark decides:** the shell gains Rust code and a local named-pipe client, the first code beyond *a window*. Step 4 needs one page↔shell channel: one Tauri command, or `eval` plus an event, granted only to Rosea's own origin. | This changes CLAUDE.md §2 (*no Tauri command, no plugin*). The pipe is local, not a network, but it is new surface. It is reviewed like a plugin, for network access. |
|
||||
| R5 | **No badge, and *today* only if Mark wants it.** If there is a `rosea.atrium.today` at all, it is the real sunset time (*points beyond the screen*). It never mentions the rose's state. | A badge is a count, and a count about her waiting is guilt with a ribbon (CLAUDE.md §8). |
|
||||
| R6 | **Export (step 7) is the `rosea-rose` JSON**, an open format, with a README line. | It exists already. |
|
||||
| R7 | **The name gains a fifth place** (`domi-app.toml`). The shell's test holds it equal to the constants, as it does for `tauri.conf.json`. | Renaming stays one commit (CLAUDE.md, header). The list in CLAUDE.md needs that line; it is the author's file. |
|
||||
|
||||
## 4. Risk analysis
|
||||
|
||||
| Risk (a person feeling worse, a location, someone reachable) | Where | Answer |
|
||||
|:--|:--|:--|
|
||||
| Her rose seems gone inside Atrium | hosted mode | R1: same origin and profile, or not hostable; an e2e that opens her in both and sees the same days of care |
|
||||
| A restore takes care away | backup | R3: additive import only, property-tested already (K3) |
|
||||
| The town leaves the device in a backup | snapshot | it is not in the file (K1). Backups are encrypted by Atrium, and the target is the player's |
|
||||
| A badge or a *today* line that blames | Atrium Home | R5 |
|
||||
| The pipe becomes a way in | step 1 | Canalis's Noise handshake with Tessera keys (ROADMAP §2); Rosea serves only `rosea.*` to Atrium |
|
||||
| Atrium not running pulls the player away from her | step 1 | the wait and the *Atrium Domi is not running* card must never stand between a cold open and the garden. Rosea opens first, and the card is a quiet line, never a blocker (*three taps to action, one preferred*) |
|
||||
|
||||
## 5. Gap analysis and steps
|
||||
|
||||
Only the steps whose Atrium Day has landed may start, and Aula says when.
|
||||
|
||||
| Step | Atrium Day | Rosea's work | State |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 Manifest + service door | Day 1 + `APP_CONTRACT.md` v0 | `domi-app.toml` (§2.4), the pipe client in the shell, R7's test | waits for APP_CONTRACT v0 |
|
||||
| 2 Bridge | Day 4 | nothing to replace (§2.1); a guard test | waits |
|
||||
| 3 Hosted mode | Day 4 | `--hosted`, `rosea.ui.*`, R1 | waits; R1 needs Atrium's answer |
|
||||
| 4 Backup snapshot | Day 3 | R2, R3, R4; a test: a snapshot taken while she is watered restores to a consistent, additive state | waits; R4 is Mark's |
|
||||
| 5 Audit | Day 2 | no request to record; a test that none is made (§2.3) | waits |
|
||||
| 6 Today/search | Day 6 (optional) | R5 | Mark's choice |
|
||||
| 7 Export | Day 8 | R6 | waits |
|
||||
| 8 Release | — | through Fabrica, as today | waits for G6.1 and G-F1 |
|
||||
|
||||
Visual changes (the room's look, `@domi/ui`) wait for `@domi/ui`.
|
||||
|
||||
## 6. Questions for Mark (through Aula)
|
||||
|
||||
1. **R4:** may the shell gain Rust code, a local pipe client and one page↔shell channel? This amends CLAUDE.md §2.
|
||||
2. **R1:** can Atrium host a room as the app's own window, keeping its origin? If not, Rosea is `hostable = false` for now.
|
||||
3. Is Rosea **free**?
|
||||
4. **R5:** should Rosea have a *today* line at all, with the sunset time only?
|
||||
|
||||
## 7. Verification matrix (for when the steps are built)
|
||||
|
||||
| Case | Kind |
|
||||
|:--|:--|
|
||||
| The garden opens standalone exactly as before, with Atrium absent and with it present | e2e (built `.exe`) |
|
||||
| A cold open is never blocked by a missing service | e2e |
|
||||
| The hosted room shows the same days of care as the standalone app | e2e, manual |
|
||||
| A snapshot taken mid-watering restores without losing or doubling an act | integration |
|
||||
| A restore of yesterday's snapshot adds, never removes | integration (K3's property test reused) |
|
||||
| `domi-app.toml`'s name equals the constants | unit |
|
||||
| The game imports no `@tauri-apps/api` | unit |
|
||||
| No request leaves the origin | e2e on the built app |
|
||||
| The pipe client refuses a peer without Atrium's key | integration (`canalis-testkit`) |
|
||||
@@ -93,8 +93,8 @@ nothing of Fabrica's.
|
||||
| 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` (Custos makes the key on the first release,
|
||||
Mark's first-signature card; a `run` step that names it in `keys:` so preflight checks it);
|
||||
the APK with `rosea-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:
|
||||
Mark's step in Custos, which `fabrica preflight rosea` names when it is missing.
|
||||
|
||||
@@ -14,7 +14,7 @@ and **how to apply it**.
|
||||
| [`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. |
|
||||
| `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
|
||||
knowledge.
|
||||
|
||||
@@ -81,3 +81,17 @@ uncommitted change in it (the release notes' entry). The diff showed it at once;
|
||||
|
||||
**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,69 @@
|
||||
# Review: `docs/atrium-adoption` (2026-11-22)
|
||||
|
||||
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md). This branch is a plan only. It changes no
|
||||
code, no config and no player-facing words.
|
||||
|
||||
## What changed
|
||||
|
||||
- New: `.agents/features/atrium-adoption.md`, which holds the inventory, decisions R1–R7, the risks, the steps and
|
||||
four questions for Mark.
|
||||
- `.agents/FEATURES.md`: a new row.
|
||||
- `.agents/GAP_ANALYSIS.md`:
|
||||
- new section G-AT1;
|
||||
- G-F7 narrowed: Custos 0.25.0's Android grant can make `rosea-android`.
|
||||
|
||||
## How the inventory was made
|
||||
|
||||
Everything was checked on `main` b307655.
|
||||
|
||||
- **Tauri calls:** a search of `apps/`, `packages/`, `e2e/`, `scripts/` and `tools/` for `@tauri-apps`,
|
||||
`__TAURI`, `invoke(`, `.listen(`, `addJavascriptInterface` and `__ROSEA_SHELL__`.
|
||||
- Found only `__ROSEA_SHELL__`, the Android `roseaFile` interface and the Tauri CLI dependency.
|
||||
- The only `.listen(` is the e2e static server's.
|
||||
- **Network:** a search of `apps/rosea/src` and `packages/*/src` for `fetch(`, XHR, `WebSocket`, `sendBeacon`,
|
||||
`EventSource`, `RTCPeerConnection` and absolute URLs. It found nothing.
|
||||
- **Accent and icon:** read from `packages/ui/src/tokens.css`, the web manifest in `vite.config.ts` and
|
||||
`apps/rosea/public/icon.svg`.
|
||||
- **Custos 0.25.0:** `git show v0.25.0:apps/desktop/src-tauri/src/signing.rs` in `F:\Akce\Custos`. Read only.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The Windows path of the database is predicted, not seen.** The `…\Default\IndexedDB\…leveldb` part was seen
|
||||
on Android only. *Marked (predicted)* in §2.2. Measure it when step 4 is built.
|
||||
2. **"No outgoing request" covers Rosea's code, not the WebView2 runtime.** The switches that silence the runtime
|
||||
are undocumented feature names, and they have never been measured on Windows (CLAUDE.md §8). *Stated* in §2.3.
|
||||
A request capture on the built `.exe` belongs in step 5.
|
||||
3. **Appendix A's hosted mode, read literally, could lose her rose.** If Atrium loads `ui_bundle` into its own
|
||||
webview, it opens another origin and profile, and so an empty database. *R1 written as a condition of
|
||||
`hostable = true`*, and asked of Mark and Atrium (§6 Q2). This is the most important line in the plan.
|
||||
4. **The backup snapshot cannot be a file copy.** LevelDB is live under a running webview, and the private key is
|
||||
non-extractable. *R2 and R3:* the snapshot is the tested `rosea-rose` file, and a restore only adds. The cost:
|
||||
a restored rose lives under a new key, as one brought back by *Keep her safe* does. That is said plainly in R3.
|
||||
5. **Steps 1 and 4 change CLAUDE.md §2's *a window and nothing else*.** *Not decided here.* R4 asks Mark. This
|
||||
branch does not touch CLAUDE.md.
|
||||
6. **A badge would be a count about her waiting.** *R5: no badge.* The *today* line is optional and holds only
|
||||
the sunset time.
|
||||
7. **The *Atrium Domi is not running* card could stand between a cold open and the garden.** *§4: Rosea opens
|
||||
first*, and the card is a line, never a wait.
|
||||
8. **G-F7's narrowing rests on the Aula session's word** that 0.25.2 is installed and the grant is given. *Marked
|
||||
unverified* until the first signature.
|
||||
9. **`label = Rose` is a guess.** It is *marked (judgment)*.
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** no change ships. The plan guards against two ways a player could feel worse: R1 (her rose seeming
|
||||
gone) and R5 (a count that blames).
|
||||
- **Privacy:** the snapshot file holds no town (K1). Atrium encrypts the backup, and the target is the player's.
|
||||
- **Reachability:** none. The pipe is local, and Rosea serves only `rosea.*` to Atrium.
|
||||
- **Offline:** unchanged.
|
||||
|
||||
## Gates
|
||||
|
||||
This branch is docs only, and no gate covers its files. `pnpm lint:copy` reads player copy and the Letter, neither
|
||||
of which changed. Not rerun: `pnpm test`, e2e, offline. The bundle was not rebuilt, and this change is invisible to
|
||||
the player by design.
|
||||
|
||||
## Not verified
|
||||
|
||||
- Atrium's `APP_CONTRACT.md` does not exist yet. The field names in §2.4 follow ROADMAP Appendix A and may change.
|
||||
- Whether Atrium can host a room as the app's own window (R1).
|
||||
@@ -0,0 +1,110 @@
|
||||
# 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.
|
||||
|
||||
## Addendum, 2026-11-21 (`fix/phone-target-run`): the phone target ran through the queue
|
||||
|
||||
The Fabrica session got the queue working on the Wave 10. The hub's e2e runner is not added yet, so the target
|
||||
ran from this session with `fabrica tests run --target phone --as claude`, which takes the phone through the
|
||||
hub's queue.
|
||||
|
||||
| Run | What | Result |
|
||||
| :-- | :-- | :-- |
|
||||
| `20261121-101158-uckm` | the spec as merged (f5d8d2c), debug APK sha256 `bd59ff908125…` | **1 passed, 0 failed** (7.9 s). Waited 12 s behind Culina's run. Fabrica uninstalled, installed, started; the WebView was drivable. |
|
||||
| `20261121-101303-zvve` | drill: `Days of care 2` planted | **error, 0 run.** Waited 424 s behind Postea and Culina, then `adb install failed` with an empty reason. Not the planted fault. |
|
||||
| `20261121-102500-crkf` | the same drill, once more | **0 passed, 1 failed.** Received `Days of care1` after the close and reopen, so the test checks persistence for real. |
|
||||
|
||||
The spec was restored by copy after each drill, and `git status` was checked after.
|
||||
|
||||
Findings:
|
||||
|
||||
10. **One `adb install` failed with no reason**, on a phone that two other apps' runs had just used. The next
|
||||
run's `pm uninstall` answered `DELETE_FAILED_INTERNAL_ERROR (not installed)`, so nothing was left behind.
|
||||
*Not reproduced; not Rosea's code.* For the Fabrica session: the CLI could print adb's stderr when stdout ends
|
||||
with `:`.
|
||||
11. **The Aula session's interim rule 2 says `reset: keep`** unless the app's data may be wiped. Rosea's data on the
|
||||
test phone may be wiped (CLAUDE.md §3: `check-garden.ts android` already `pm clear`s the test app), and the
|
||||
test needs a first open. *`uninstall` kept* (A3).
|
||||
12. **The drill ran on the Wi-Fi line** (`192.168.100.127:5555`, rule 1 of the same message) and the passing run on
|
||||
USB. Both are the same phone. Nothing to fix.
|
||||
@@ -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,
|
||||
# docs/31_runners_here.md): the PWA built, then `fabrica tests run --target web` (Playwright headless against the
|
||||
# BUILT bundle under /Rosea/), the records, traces and screenshots kept with the run. Manual: no push webhook
|
||||
# reaches the hub yet. The phone target is not here: it runs through the phone queue with
|
||||
# `fabrica tests run --target phone`.
|
||||
# Rosea Domi: the e2e suites on this PC's e2e runner (fabrica-release.md F9, android-release-apk.md; Fabrica
|
||||
# docs/20_tests.md, docs/31_runners_here.md, docs/35_phone_queue.md).
|
||||
# web: the PWA built, then `fabrica tests run --target web` (Playwright headless against the BUILT bundle under
|
||||
# /Rosea/), the records, traces and screenshots kept with the run.
|
||||
# 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
|
||||
on:
|
||||
manual: true
|
||||
runner: windows-e2e
|
||||
env:
|
||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||
GRADLE_USER_HOME: 'D:\build\rosea\gradle'
|
||||
NDK_HOME: 'F:\Tools\Android\Sdk\ndk\27.1.12297006'
|
||||
steps:
|
||||
- id: install
|
||||
run: pnpm install --frozen-lockfile
|
||||
@@ -19,3 +24,11 @@ steps:
|
||||
needs: [build]
|
||||
run: fabrica tests run --target web
|
||||
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,
|
||||
# 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 (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.
|
||||
# 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).
|
||||
@@ -18,6 +18,9 @@ runner: windows
|
||||
env:
|
||||
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
||||
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:
|
||||
- id: version
|
||||
run: node scripts/check-version.mjs ${{ version }}
|
||||
|
||||
+9
-7
@@ -1,11 +1,11 @@
|
||||
# Rosea Domi's Playwright targets (fabrica-release.md F9; Fabrica docs/20_tests.md, docs/22_devices.md,
|
||||
# docs/35_phone_queue.md). `fabrica tests run --target <name>`, or Tests in Fabrica.
|
||||
# Rosea Domi's Playwright targets (fabrica-release.md F9, android-release-apk.md; Fabrica docs/20_tests.md,
|
||||
# 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`.
|
||||
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue. Build it first
|
||||
# (`pnpm tauri:android`). The queue clears this app's data before the run (docs/35 `reset: clear`, its
|
||||
# default); `reset` and `maxMinutes` are not written here because the installed Fabrica (CLI 0.14.0)
|
||||
# does not know them yet. A release build on the phone blocks the debug one (another key): uninstall it
|
||||
# there first.
|
||||
# phone: the Android debug APK on the Wave 10 test phone, only through Fabrica's phone queue (the e2e pipeline's
|
||||
# `phone` step, or `fabrica tests run --target phone`). Build it first (`pnpm tauri:android`). A debug APK,
|
||||
# because only a debug build's WebView can be driven (docs/22 part 5); the release APK is the same game.
|
||||
# `reset: uninstall`: the app is installed fresh, so a release build of Rosea on the phone (another key)
|
||||
# cannot block the run. Nothing of Rosea's on the test phone is kept: it holds no rose of anyone's.
|
||||
dir: .
|
||||
config: e2e/playwright.fabrica.config.ts
|
||||
targets:
|
||||
@@ -19,4 +19,6 @@ targets:
|
||||
project: android
|
||||
device: Wave 10
|
||||
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
|
||||
|
||||
@@ -40,3 +40,5 @@ apps/rosea-tauri/src-tauri/icons/
|
||||
|
||||
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
|
||||
e2e/aula/
|
||||
# Fabrica's records of `fabrica tests run` (run.json, traces): local evidence, quoted in the reviews, never committed
|
||||
.fabrica/runs/
|
||||
|
||||
+32
-1
@@ -2,7 +2,38 @@
|
||||
|
||||
Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||
|
||||
## Latest — 2026-11-19: released through Fabrica (built, not published)
|
||||
## Latest — 2026-11-22: the Atrium Domi adoption plan (plan only)
|
||||
|
||||
- **`docs/atrium-adoption`**: [`.agents/features/atrium-adoption.md`](.agents/features/atrium-adoption.md) has the
|
||||
inventory Atrium's Appendix A asks for:
|
||||
- no Tauri invoke or listen;
|
||||
- one database, `rosea` IndexedDB in WebView2's folder;
|
||||
- no outgoing request;
|
||||
- accent `#b4485e` / `#e8899b`; the icon is the placeholder `icon.svg`.
|
||||
- **The plan's decisions:** R1 keep Rosea's own origin when hosted, or her rose seems gone; R2/R3 snapshot and
|
||||
restore as the `rosea-rose` file, additive only. R4 (Rust in the shell) and R1 are Mark's, along with *free* and
|
||||
*today* (G-AT1).
|
||||
- **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
|
||||
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.
|
||||
|
||||
## Earlier — 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).
|
||||
- **The phone test passed** through the hub's queue (`fabrica tests run --target phone`): run
|
||||
`20261121-101158-uckm`, 1 passed, 0 failed, on the Wave 10. A planted fault failed as it must. The e2e pipeline's
|
||||
`phone` step still waits for the hub's e2e runner (Mark).
|
||||
- **Blocked on the key:** `rosea-android` does not exist, and Custos will not make it, because it is not in Custos's
|
||||
`ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or
|
||||
Mark's *Create Android key* (G-F7).
|
||||
- **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
|
||||
|
||||
@@ -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 expect(page.locator('#rose-numbers')).toContainText(`${en.rose.daysOfCare}1`);
|
||||
} 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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user