Compare commits

..

37 Commits

Author SHA1 Message Date
mnovak 578aa44f23 [tauri] InstallerName: Publish the Windows installer as RoseaDomi_<version>_x64-setup.exe, a name Aula and Atrium accept; productName stays Rosea Domi 2026-12-02 15:32:43 +01:00
mnovak 2b1ac99fbe [repo] Release0.1.1: Merge the record of the first release, v0.1.1 (PR #12) 2026-12-02 15:24:35 +01:00
mnovak eded64d36e [repo] Release0.1.1: v0.1.1 is published, signed with rosea-domi-android; G-F1 and G-F7 closed with the run's evidence 2026-12-02 15:24:21 +01:00
mnovak 18b6c81772 [repo] Release: 0.1.1 2026-12-02 14:58:16 +01:00
mnovak be15a8536c [tauri] ApkKey: Merge signing the APK with Mark's Custos key rosea-domi-android (PR #11) 2026-12-02 14:57:43 +01:00
mnovak a2176563eb [tauri] ApkKey: Sign the APK with Mark's Custos key rosea-domi-android, and let preflight check it again 2026-12-02 14:57:16 +01:00
mnovak 69f8b74c9d [repo] ReleaseFirstApkKey: Merge the apk step without a keys list, so the first release passes preflight (PR #10) 2026-11-25 14:17:28 +01:00
mnovak 4cff831b76 [repo] ReleaseFirstApkKey: The apk step lists no keys, because Custos makes rosea-android only at its first signature and preflight refused the first run 2026-11-25 14:17:09 +01:00
mnovak 8d7027c563 [ui] DomiUi: Merge Rosea's buttons, town search and the licence credit on @domi/ui v1.5.0 (CPAL-1.0); the Android town field sends no Autofill request (PR #8) 2026-11-25 14:08:07 +01:00
mnovak f942d4efd8 [repo] RemoveG6.1: Merge the author's removal of the legal check of the look, and his decision to publish v0.1.0 (PR #9) 2026-11-25 11:35:07 +01:00
mnovak 82e5213b2f [repo] RemoveG6.1: The author removed the legal check of the look and decided to publish v0.1.0 (his words, 2026-11-25); the guards stay the only defence 2026-11-25 11:34:08 +01:00
mnovak a240d35ca2 [ui] DomiUi: @domi/ui v1.5.0: Move the chair is Button too (bind:element), so every button is the shared one 2026-11-23 02:50:05 +01:00
mnovak 87ca83cd1b [ui] DomiUi: @domi/ui v1.4.0: Water and Touch her are Button again (the handler fix from here), the credit is DomiCredit link={false} 2026-11-23 02:31:50 +01:00
mnovak 7f8b6861f9 [ui] DomiUi: @domi/ui v1.2.0; on Android the town field is an editable box, so focusing it sends no Autofill request (TextField as=auto) 2026-11-23 01:34:49 +01:00
mnovak 8018268821 [ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots 2026-11-23 00:59:50 +01:00
mnovak 295e6ba59a [repo] AtriumAdoption: Merge Rosea's answers to Atrium contract v0.3 §9, prepared, nothing built (PR #7) 2026-11-23 00:25:42 +01:00
mnovak 130e3a51a2 [repo] AtriumAdoption: What Atrium's Days 2-8 will ask (contract v0.3 §9) and Rosea's prepared answers: no request, no updater, no IPC, one IndexedDB, no badge 2026-11-23 00:24:33 +01:00
mnovak 7dd291d730 [repo] Licence: Merge Rosea Domi under CPAL-1.0, the README with the Exhibit B credit (PR #6) 2026-11-23 00:16:52 +01:00
mnovak 0d5124d4a1 [repo] Licence: Rosea Domi under CPAL-1.0 (LICENSE from the Domi template, every package.json and Cargo.toml), a README with the Exhibit B credit; the in-app credit proposed for the author 2026-11-23 00:14:23 +01:00
mnovak 60a9f14d2c [tauri] AtriumManifest: Merge domi-app.toml beside rosea-shell.exe for Atrium Domi, manifest only, no door (PR #5) 2026-11-22 23:26:34 +01:00
mnovak 816b47b113 [tauri] AtriumManifest: Ship domi-app.toml beside rosea-shell.exe for Atrium Domi, built from the name and version; 27 hostile fixtures refused with the parser's codes; no door, by the author's ruling 2026-11-22 23:22:15 +01:00
mnovak f4efc9e27a [repo] AtriumAdoption: Merge the plan for making Rosea Atrium-ready: inventory, R1 keep her origin, snapshot as the rosea-rose file (PR #4) 2026-11-22 21:55:40 +01:00
mnovak 4d18ea0afc [repo] AtriumAdoption: The plan for Atrium Domi: no Tauri call, one IndexedDB database, no outgoing request, accent and icon; keep her origin when hosted, snapshot as the rosea-rose file; G-F7 narrowed by Custos's Android grant 2026-11-22 21:52:34 +01:00
mnovak b3076553ef [repo] AndroidReleaseApk: Merge the phone test passed on the Wave 10 through Fabrica's queue (PR #3) 2026-11-21 10:46:20 +01:00
mnovak 0ab845dcbb [repo] AndroidReleaseApk: The phone test passed on the Wave 10 through Fabrica's queue (1 of 1), a planted fault failed as it must; Fabrica's run records ignored 2026-11-21 10:46:16 +01:00
mnovak f5d8d2c581 [repo] AndroidReleaseApk: Merge the phone target through Fabrica's queue and the release APK built and verified; rosea-android named as Custos's gap (PR #2) 2026-11-21 08:55:42 +01:00
mnovak 7cd7dda0c0 [repo] AndroidReleaseApk: The phone target through Fabrica's queue (reset uninstall, maxMinutes, the e2e pipeline's phone step), the release APK built and verified with caches on D:, rosea-android named as Custos's gap 2026-11-21 08:53:49 +01:00
mnovak 9b8eb7036d [repo] FabricaRelease: Merge Rosea released and updated through Fabrica: pipelines, the Aula page's words and pictures, the APK signed in Custos, domi-rosea:// from the installer, the phone target (PR #1) 2026-11-19 03:44:47 +01:00
mnovak 21d3cd1119 [repo] FabricaRelease: Review with every gate's counts, the numbers picture centred, handover and a lesson 2026-11-19 03:44:36 +01:00
mnovak 3a6f2ad6ee [repo] FabricaRelease: Lint the generated release notes before the page is made; fix escapes in the APK signing test 2026-11-19 02:11:31 +01:00
mnovak 0d37f91763 [repo] FabricaRelease: Rosea as a Fabrica app: the release and e2e pipelines, the Aula page's words and pictures, the version check, the APK signed in Custos, domi-rosea:// from the installer, the phone target 2026-11-19 01:38:53 +01:00
mnovak 185625e7fe [tauri] KeepHerSafeApps: Merge Keep her safe in the apps: true words, Android's own save screen, the page between the bars 2026-11-17 22:22:56 +01:00
mnovak d5f37b3149 [docs] KeepHerSafeApps: Round trip on the tablet, the page between Android's bars, review, gaps closed, lessons 2026-11-17 22:22:36 +01:00
mnovak 2eea9d67f5 [art] GardenerLayers: Merge the gardener in layered parts: a guide, 55 layer sheets, register checked on accept 2026-11-17 21:53:32 +01:00
mnovak 229cced136 [art] GardenerLayers: The gardener in layered parts, painted over one guide in register, checked on accept 2026-11-17 21:53:22 +01:00
mnovak e262b8f295 [tauri] KeepHerSafeApps: The device check reads the app's words, drives Android's save and pick screens, and waits for her before reading her numbers 2026-11-17 20:42:56 +01:00
mnovak 3c4463dbdd [tauri] KeepHerSafeApps: App words for Keep her safe, and Android's own save screen through a narrow bridge 2026-11-17 20:31:35 +01:00
257 changed files with 14010 additions and 371 deletions
+6 -1
View File
@@ -5,6 +5,11 @@ 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 | Merged to `main` (9b8eb70). Not published: the first release waits for the author (G-F1, G6.1) | [fabrica-release.md](features/fabrica-release.md) | [feature-fabrica-release.md](reviews/feature-fabrica-release.md) |
| @domi/ui: the shared buttons and the town search field, vendored v1.5.0 (CPAL-1.0); the licence credit at the foot of every screen | Platform track | Built on `feature/domi-ui`; the look is Mark's to judge from the pictures | [domi-ui.md](features/domi-ui.md) | [feature-domi-ui.md](reviews/feature-domi-ui.md) |
| Atrium Domi adoption: the inventory (Tauri calls, data, network, accent, icon) and the plan for steps 1–8 of Atrium's Appendix A | Platform track | Plan merged (f4efc9e); step 1 = `domi-app.toml` alone (`feature/atrium-door`), the door skipped by Mark's ruling | [atrium-adoption.md](features/atrium-adoption.md) | [docs-atrium-adoption.md](reviews/docs-atrium-adoption.md), [feature-atrium-door.md](reviews/feature-atrium-door.md) |
| The APK for a release, tested on the Wave 10 through the phone queue: `reset: uninstall`, `maxMinutes`, the e2e pipeline's `phone` step, the release APK built and verified | Platform track | Merged (f5d8d2c); the phone test passed on the Wave 10 through the queue, 1 of 1 (2026-11-21). Blocked: `rosea-domi-android` does not exist (G-F7); publication (G-F1) | [android-release-apk.md](features/android-release-apk.md) | [feature-android-release-apk.md](reviews/feature-android-release-apk.md) |
| Keep her safe in the apps: true words, Android's own save screen, the page kept between the system bars | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. Closes G-T4 and, on Android, G-T5 | [keep-her-safe-apps.md](features/keep-her-safe-apps.md) | [feature-keep-her-safe-apps.md](reviews/feature-keep-her-safe-apps.md) |
| Four versions, one garden: the Tauri 2 shell (`apps/rosea-tauri`) for Android, iOS and desktop beside the PWA; a Windows build and an Android debug APK run on the tablet | Platform track | Merged to `main` 2026-11-17; built on this machine, not distributed. iOS needs a Mac (G-T1); *Keep her safe* in the apps is a release blocker (G-T4) | [tauri-platforms.md](features/tauri-platforms.md) | [feature-tauri-platforms.md](reviews/feature-tauri-platforms.md) | | 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) |
| Roadmap and gameplay docs, read against the code | 0 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) | | Roadmap and gameplay docs, read against the code | 0 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) |
@@ -21,4 +26,4 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
| Where the sunset is: choose a town (or skip to a guess from the device's zone), kept on the device; tonight's sunset in the garden | 1 | Merged to `main`; built, not deployed | [sunset-place.md](features/sunset-place.md) | [feature-sunset-place.md](reviews/feature-sunset-place.md) | | Where the sunset is: choose a town (or skip to a guess from the device's zone), kept on the device; tonight's sunset in the garden | 1 | Merged to `main`; built, not deployed | [sunset-place.md](features/sunset-place.md) | [feature-sunset-place.md](reviews/feature-sunset-place.md) |
| The sun: real sunrise, sunset and solar noon on the device; polar day and night | 1 | Merged to `main`; engine only, the app does not show it yet | [sun.md](features/sun.md) | [feature-sun.md](reviews/feature-sun.md) | | The sun: real sunrise, sunset and solar noon on the device; polar day and night | 1 | Merged to `main`; engine only, the app does not show it yet | [sun.md](features/sun.md) | [feature-sun.md](reviews/feature-sun.md) |
| Her planet and the gardener: a round tiny planet, a boy or girl chosen at the first open, the ring of care by a tap on her, care by gesture (tilt the can, swipe weeds up, sweep petals, drag the windbreak, stroke her); every gesture also a button | 1 | Merged to `main`; built, not deployed. Code stand-ins; the painted art waits on the board | [planet-garden.md](features/planet-garden.md) | [feature-planet-garden.md](reviews/feature-planet-garden.md) | | Her planet and the gardener: a round tiny planet, a boy or girl chosen at the first open, the ring of care by a tap on her, care by gesture (tilt the can, swipe weeds up, sweep petals, drag the windbreak, stroke her); every gesture also a button | 1 | Merged to `main`; built, not deployed. Code stand-ins; the painted art waits on the board | [planet-garden.md](features/planet-garden.md) | [feature-planet-garden.md](reviews/feature-planet-garden.md) |
| The art pipeline and the art board: STYLE.md (S1–S5 and the fox's F1–F4 approved), the manifest (Phase 1–3, 53 pictures), stand-ins, `tools/art-prep`, the published board | 0 | Merged to `main`; board published (private). The app is unchanged. Gate waits on the first real picture | [art-pipeline.md](features/art-pipeline.md) | [feature-art-board.md](reviews/feature-art-board.md), [art-phase2-3-pictures.md](reviews/art-phase2-3-pictures.md) | | The art pipeline and the art board: STYLE.md (S1–S6 and the fox's F1–F4 approved), the manifest (Phases 1–5: 95 cards, 538 pictures, of them 55 gardener layer sheets), stand-ins, `tools/art-prep`, the published board | 0 | Merged to `main`; board published (private). The app is unchanged. Gate waits on the first real picture | [art-pipeline.md](features/art-pipeline.md) | [feature-art-board.md](reviews/feature-art-board.md), [art-phase2-3-pictures.md](reviews/art-phase2-3-pictures.md), [art-board-v2.md](reviews/art-board-v2.md), [art-gardener-layers.md](reviews/art-gardener-layers.md) |
+25 -6
View File
@@ -40,7 +40,7 @@ board exist, and the first real picture is the author's to make.
| G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. Narrowed 2026-11-17: the apps make PNG/ICO icons from `icon.svg` at build time (`tauri icon`, never committed); the PWA still has none, and the picture is still the placeholder. | | G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. Narrowed 2026-11-17: the apps make PNG/ICO icons from `icon.svg` at build time (`tauri icon`, never committed); the PWA still has none, and the picture is still the placeholder. |
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. Since 2026-11-17 the APK and the Windows installer are also built by hand here (G-T7). | | G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. Since 2026-11-17 the APK and the Windows installer are also built by hand here (G-T7). |
| G0.23 | Source maps are built and would be published | Open. `sourcemap: true`; maps are not precached. Decide with G0.13 whether the repository is public. If not, use `'hidden'`. | | G0.23 | Source maps are built and would be published | Open. `sourcemap: true`; maps are not precached. Decide with G0.13 whether the repository is public. If not, use `'hidden'`. |
| G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | **Pipeline built 2026-11-01** (`feature/art-board`): docs/ART.md, the Phase 1 manifest (25 pictures), 29 generated stand-ins, `tools/art-prep` (50 tests; 5 of 5 put-back bugs caught), the art board published. STYLE.md approved by the author 2026-11-01 (S1–S5 kept as drafted; `docs/style-approved`). The board grew to 53 pictures with Phases 2–3 (`art/phase2-3-pictures`); the fox's look F1–F4 approved with a deep red-orange coat (`art/fox-coat`). 2026-11-07, `art/board-v2`: the first `rose-sheet` came out as watercolour with a smiley on a ball; STYLE.md §1 and every prompt rewritten (look first, face on the petals, no pixel numbers, the book's motifs checked in review, not named), and the board grew to 86 pictures for Phases 1–5 (board version 4). **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. | | G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | **Pipeline built 2026-11-01** (`feature/art-board`): docs/ART.md, the Phase 1 manifest (25 pictures), 29 generated stand-ins, `tools/art-prep` (50 tests; 5 of 5 put-back bugs caught), the art board published. STYLE.md approved by the author 2026-11-01 (S1–S5 kept as drafted; `docs/style-approved`). The board grew to 53 pictures with Phases 2–3 (`art/phase2-3-pictures`); the fox's look F1–F4 approved with a deep red-orange coat (`art/fox-coat`). 2026-11-07, `art/board-v2`: the first `rose-sheet` came out as watercolour with a smiley on a ball; STYLE.md §1 and every prompt rewritten (look first, face on the petals, no pixel numbers, the book's motifs checked in review, not named), and the board grew to 86 pictures for Phases 1–5 (board version 4). 2026-11-17, `art/gardener-layers`: the gardener the player dresses is drawn in layered parts (the author's answer): a guide and 55 layer sheets, register checked by `art:accept`, 10 of 10 put-back bugs caught; the board has 95 cards and 538 pictures. **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. |
| ~~G0.25~~ | ~~No slot for *A Letter from the Gardener*~~ | Closed 2026-11-01, merged to `main`. `docs/LETTER.md` holds slots as comments only; the page opens at `#letter` once it has words. 16 ui tests, and e2e on both the empty and a temporary written letter. Mutations caught: the link while empty, any link scheme, focus not moving, *heal* in the letter. | | ~~G0.25~~ | ~~No slot for *A Letter from the Gardener*~~ | Closed 2026-11-01, merged to `main`. `docs/LETTER.md` holds slots as comments only; the page opens at `#letter` once it has words. 16 ui tests, and e2e on both the empty and a temporary written letter. Mutations caught: the link while empty, any link scheme, focus not moving, *heal* in the letter. |
| ~~G0.28~~ | ~~CLAUDE.md §5.7's CPU limit was only read, and broken three times on 2026-11-02~~ | Closed 2026-11-02 on `fix/cpu-guard`: `pnpm guard:cpu` runs before every full run, waits up to 3 min, then refuses. 13 tests; seen waiting 51 s on a busy machine, refusing, and stopping `pnpm test` before any test ran. | | ~~G0.28~~ | ~~CLAUDE.md §5.7's CPU limit was only read, and broken three times on 2026-11-02~~ | Closed 2026-11-02 on `fix/cpu-guard`: `pnpm guard:cpu` runs before every full run, waits up to 3 min, then refuses. 13 tests; seen waiting 51 s on a busy machine, refusing, and stopping `pnpm test` before any test ran. |
| G0.27 | The quiet door to real help has no numbers (§5.6 rule 5) | Open. The slot is in `docs/LETTER.md`. Support lines are real-world facts the author must verify, per country, so the door exists only once the letter does. | | G0.27 | The quiet door to real help has no numbers (§5.6 rule 5) | Open. The slot is in `docs/LETTER.md`. Support lines are real-world facts the author must verify, per country, so the door exists only once the letter does. |
@@ -62,6 +62,7 @@ sentences). Phase 1 is built in code, not deployed (no host yet, G0.13).
| ~~G1.8~~ | ~~Two tabs (CLAUDE.md §8, predicted)~~ | Closed 2026-11-07 on `fix/two-tabs`. Measured first: two e2e tests failed (an open tab saw neither care nor a town from the other). Storage announces committed writes on a `BroadcastChannel`; the rose and the garden read again, adding to what they show. No lock needed: nothing stored drifts. 7 of 7 put-back bugs caught. | | ~~G1.8~~ | ~~Two tabs (CLAUDE.md §8, predicted)~~ | Closed 2026-11-07 on `fix/two-tabs`. Measured first: two e2e tests failed (an open tab saw neither care nor a town from the other). Storage announces committed writes on a `BroadcastChannel`; the rose and the garden read again, adding to what they show. No lock needed: nothing stored drifts. 7 of 7 put-back bugs caught. |
| ~~G1.10~~ | ~~The garden named only the sunset, never the sunrise (ROADMAP Phase 1: *sunset and sunrise*)~~ | Closed 2026-11-17 on `feature/sunrise`: from sunset until it comes, the line names the real sunrise; the in-game sunset still names the sunset. engine `nextSunEvent` with a 300-run property; e2e at 05:00 in Brno; seen on a real Android tablet. 5 of 5 put-back bugs caught. | | ~~G1.10~~ | ~~The garden named only the sunset, never the sunrise (ROADMAP Phase 1: *sunset and sunrise*)~~ | Closed 2026-11-17 on `feature/sunrise`: from sunset until it comes, the line names the real sunrise; the in-game sunset still names the sunset. engine `nextSunEvent` with a 300-run property; e2e at 05:00 in Brno; seen on a real Android tablet. 5 of 5 put-back bugs caught. |
| ~~G1.9~~ | ~~The garden was a page of buttons, not a game (the author, 2026-11-17)~~ | Closed 2026-11-17 on `feature/planet-garden`: her round planet, a gardener the player chooses at the first open (fixed lists, kept in `profile`, never in the rose file), the ring of care by a tap on her, care by gesture with a button for each. 84 ui tests incl. 7 on the planet and 7 on gestures; e2e `planet.spec.ts` 3; 9 of 9 put-back bugs caught (2 only after tests were added); 7 of 7 by real touch on the Android tablet. **Open in it:** painted art for the planet and the gardener, and how customised looks are drawn (STYLE.md §3b, the author's). | | ~~G1.9~~ | ~~The garden was a page of buttons, not a game (the author, 2026-11-17)~~ | Closed 2026-11-17 on `feature/planet-garden`: her round planet, a gardener the player chooses at the first open (fixed lists, kept in `profile`, never in the rose file), the ring of care by a tap on her, care by gesture with a button for each. 84 ui tests incl. 7 on the planet and 7 on gestures; e2e `planet.spec.ts` 3; 9 of 9 put-back bugs caught (2 only after tests were added); 7 of 7 by real touch on the Android tablet. **Open in it:** painted art for the planet and the gardener, and how customised looks are drawn (STYLE.md §3b, the author's). |
| G1.11 | The app does not stack painted gardener layers | Open. Decided 2026-11-17 (STYLE.md §3b): the scene stacks body, clothes, apron, hair and hat from `art/final/`, in the look the player chose, and keeps its code drawing for any look whose layers are not all accepted. Comes with the first accepted layers; needs a size budget for 55 sheets (docs/ART.md §4: 440 cells would not all be precached). |
| G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. | | G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
## The platform track — four versions (from 2026-11-17) ## The platform track — four versions (from 2026-11-17)
@@ -76,19 +77,37 @@ 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 | Open. Phase 6. Keys never in the repository. | | G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Narrowed 2026-11-19 on `feature/fabrica-release`: the release pipeline signs the installer with Custos's `domi-code-signing` and the APK with `rosea-domi-android` through `custos-sign`; no key in the repository (`fabrica-release.md` F4). **Still open:** `rosea-domi-android` does not exist and Custos (0.22.0 here, 0.24.0 too) will not make it: it is not in Custos's `ANDROID_APPS` (`android-release-apk.md` A6, G-F7); no signature made yet (the first release waits, G-F1); AAB and stores (Phase 6). |
| G-T4 | **Keep her safe inside the apps — release blocker** | Open. Measured: *Save her to a file* does nothing on Android; the words say *this browser*; `persist()` is always `false`. Needs app copy and a working save (first plugin). No app reaches a player before this closes. | | ~~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 | Open. The Android file picker opens; no round trip seen. | | ~~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. |
| G-T7 | No CI for the apps | Open. With G0.22. | | G-T7 | No CI for the apps | Narrowed 2026-11-19 on `feature/fabrica-release`: `.fabrica/artifex/release.yaml` builds both apps from a tag on Fabrica's Windows runner after every gate; `.fabrica/artifex/e2e.yaml` runs the web suite on the e2e runner. Still Mark's PC, and no run on a push yet (no webhook reaches the hub). |
| G-T8 | Webview storage eviction | Partly measured: `persist()` is `false` in WebView2 and Android WebView. Pressure eviction of app storage not measured. G-T4 is the answer either way. | | G-T8 | Webview storage eviction | Partly measured: `persist()` is `false` in WebView2 and Android WebView. Pressure eviction of app storage not measured. G-T4 is the answer either way. |
| G-T9 | The app icon is the placeholder | Open. With G0.21. | | G-T9 | The app icon is the placeholder | Open. With G0.21. |
## Fabrica — released and updated through Fabrica (`fabrica-release.md`)
| Id | Gap | Status / evidence |
|:--|:--|:--|
| ~~G-F1~~ | ~~The first release is not published~~ | **Closed 2026-12-02:** v0.1.1 published by the hub's run `r59y647cfcpw9` (https://gitea.marek-novak.cz/mnovak/Rosea/releases/tag/v0.1.1): the installer (Authenticode, domi-code-signing), the APK (rosea-domi-android), a minisig for each and SHA256SUMS (domi-release), the notes and the Aula pictures. Mark decided to publish on 2026-11-25. v0.1.0 is a tag only: its runs were refused at preflight and nothing was published under it. |
| G-F2 | Canalis Part B: no capability is served | Open by decision (F6): no capability found that neither writes into her nor reads her; Canalis keys need Custos, which a player does not have. |
| G-F3 | No showcase videos | Open: Pensum `kkpy69`, once Fabrica docs/37 is on `main`. |
| G-F4 | `domi-rosea://` not seen working | Open: the hook is tested as text; no installer was run on this PC (it writes the real registry). |
| ~~G-F5~~ | ~~The `phone` target has not run~~ | **Closed 2026-11-21:** `fabrica tests run --target phone` through the hub's queue, run `20261121-101158-uckm` 1 passed 0 failed on the Wave 10 (debug APK `bd59ff908125…`, commit f5d8d2c); the planted-fault drill `20261121-102500-crkf` failed as it must. The e2e pipeline's `phone` step still waits for the hub's e2e runner (Mark). Earlier: narrowed 2026-11-21 (`android-release-apk.md`): `reset: uninstall`, `maxMinutes: 20`, and the e2e pipeline's `phone` step (`device: Wave 10`) puts it in the hub's queue. **Still open:** the Wave 10 is not paired in Fabrica (`fabrica devices list`: *connected (not paired in Fabrica)*), so the step cannot get its phone; pairing is the Fabrica session's. |
| ~~G-F7~~ | ~~No key signs the APK~~ | **Closed 2026-12-02:** Mark made `rosea-domi-android` in Custos (PR #11 named it in the code and the pipeline). The v0.1.1 run `r59y647cfcpw9` signed `rosea-domi-0.1.1-arm64.apk` with it, and its `apk` step passed (custos-sign verifies with apksig). This key is Rosea on Android for good. |
| G-F6 | PWA updates have no host | Open with G0.13: the service worker and *Refresh* are built; nothing serves the PWA. |
## Atrium Domi — adoption (`atrium-adoption.md`)
| Id | Gap | Status / evidence |
|:--|:--|:--|
| G-AT1 | Rosea is not Atrium-ready (manifest, service door, hosted mode, backup snapshot, audit, export) | **Narrowed 2026-11-22** (`feature/atrium-door`): step 1 is the `domi-app.toml` alone (contract v0.1 §8 3e), and Atrium's own parser accepts it; 27 hostile fixtures are refused with the parser's codes. The door is skipped by Mark's ruling (manifest only, no rule changes). Earlier: 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 ## Phase 6 — Release
| Id | Gap | Status / evidence | | Id | Gap | Status / evidence |
|:--|:--|:--| |:--|:--|:--|
| G6.1 | A legal check of the look: a child on a small round planet with a rose is the book's best-known image, and its estate holds trademarks | Open, **before any public release**. The author accepted the risk on 2026-11-17 (CLAUDE.md §8); the guards are STYLE.md S2, S6, §3b and review points 10–11. | | ~~G6.1~~ | ~~A legal check of the look: a child on a small round planet with a rose is the book's best-known image, and its estate holds trademarks~~ | **Removed by the author, 2026-11-25, without a check.** His words, typed in Rosea's own session: "Yes, remove G6.1 from Rosea's CLAUDE.md and release Rosea v0.1.0, desktop and APK." CLAUDE.md §8 says so on `docs/remove-g6-1`. The risk stays his, accepted on 2026-11-17; the guards (STYLE.md S2, S6, §3b, review points 10–11) are now the only defence. |
## Design questions — answered ## Design questions — answered
+109
View File
@@ -0,0 +1,109 @@
# 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-domi-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-domi-android` does not exist, and Custos will not make it.** Custos creates an Android key on an
app's first release only for the apps in its `ANDROID_APPS` table (`apps/desktop/src-tauri/src/signing.rs`). In
0.24.0 that table holds Postea, Culina and Liber, and Mark's PC runs 0.22.0, which holds Postea only. Rosea's `apk`
step would stop at `no_key`, as Culina's and Liber's did on 2026-11-20. Two fixes exist, and both belong to
Custos and Mark, not to this repository: a Custos change that adds `rosea-domi-android` (`CN=Rosea Domi`, only
`mnovak/Rosea`, pipeline `release`) and its install on this PC, or Mark's *Create Android key* by hand.
`fabrica-release.md` said "Custos makes the key on the first release". It was wrong, and is corrected here.
**Answered 2026-11-25:** Custos 0.25's Android grant (`mnovak/*`, given by Mark) makes `rosea-domi-android` at its
first signature. So the `apk` step lists no `keys:`: preflight refuses a listed key that does not exist yet,
which stopped the first v0.1.0 run (r9j7b2sqmzdjg) before it built anything.
**Answered again 2026-12-02:** Mark made the key himself, named `rosea-domi-android`, and keeps that name. Every
mention below and the code now say `rosea-domi-android`, and the `apk` step lists it in `keys:` again.
- **A7. The certificate is forever.** Once a player installs an APK signed with `rosea-domi-android`, every update must
carry the same certificate (CLAUDE.md §8). The CN names the product, *Rosea Domi*, and the name is still provisional.
The key outlives a rename: a renamed app keeps the old CN, and no player sees it.
## 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-domi-android` only, through Custos, and refuses `CUSTOS_PIPE` (sign-apk.ts). There is no fallback to a debug or local keystore. A missing key stops the release. |
| An untested APK published | the release | The phone test is a pipeline of its own: phones are leased per run, and the release must not hold the phone for two hours. Until the e2e pipeline's `phone` step has passed on a commit, that commit is not tagged (process, §5). |
## 4. Gap analysis and the designed solution
| 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-domi-android` | Named as Custos's change (A6). | **Custos's and Mark's.** |
| The Wave 10 is not paired in Fabrica | `fabrica devices list` shows `WAVE 10C connected (not paired in Fabrica)`. `pass::resolve` then finds no phone named *Wave 10*, and the step fails before it runs. | **The Fabrica session's** (Pipelines → Workshop → Devices → Pair a phone). |
| Publication | The repository is public, so a release is public. Mark removed G6.1 (the legal check) and said to release on 2026-11-25. | **Mark's**, answered (`fabrica-release.md` F1). |
## 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-domi-android`'s certificate | release | the `apk` step (custos-sign verifies with apksig) | **not run**: no key |
| What the debug test cannot prove about the release APK | manual | install the signed release APK on the Wave 10 once, water, close, reopen | after the key exists |
+256
View File
@@ -0,0 +1,256 @@
# Atrium adoption: making Rosea Domi "Atrium-ready" (plan)
Status: the plan was merged as f4efc9e (PR mnovak/Rosea#4). **Step 1, part A is built** on `feature/atrium-door`, 2026-11-22: the `domi-app.toml` (§8). Part B, the door and the fallback, is skipped by Mark's ruling: manifest only, no rule changes. 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` | `#e8899b`: `--rose` on the dark theme. Atrium Domi's window is dark, and its catalogue already names this colour for Rosea (`atrium-registry` `catalogue.rs`). The light `--rose` is `#b4485e` | `packages/ui/src/tokens.css` |
| `icon` | `domi-icon.png`: the shell's 256 px icon, `icons/128x128@2x.png`, made from `apps/rosea/public/icon.svg` at build time. A **placeholder** (form only); the real icon comes through `docs/ART.md` | `tauri.windows.conf.json` `bundle.resources` |
| `ui_bundle` | `apps/rosea/dist-tauri/` (base `/`, no worker, no manifest) | §3, R1 |
| `hostable` | `true`, with the origin rule in R1 | — |
| `free` | `true`: Mark's rule, *`free = true` for all apps for now* (via the Aula session, 2026-11-22). Rosea needs no licence anyway (APP_CONTRACT §2.2) | — |
| `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 no new place.** `domi-app.toml` is made before each desktop build from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and the game's version (`scripts/domi-app.ts`), and it is never committed. | Renaming stays one commit (CLAUDE.md, header), and Fabrica's four version files stay four. |
## 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 | A: `domi-app.toml` (§2.4, §8). B: the door client and the fallback | **A built** (`feature/atrium-door`); **B skipped** by Mark's ruling (§8) |
| 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`) |
## 8. Step 1 (APP_CONTRACT v0.1, Atrium main 25bed39)
Contract v0.1 §2.4 gives Rosea `id = "rosea"`, `label = "Rose"`, `accent = "#e8899b"`, and the file uses exactly these.
§8 point 3e makes the manifest alone *the lightest step 1* for an app with no IPC, and point 5 records that
players without Custos skip the door. Mark approved a public mirror of `atrium-door`'s client side (via the Aula
session), so a later door would not need the private repository.
### A, built: `domi-app.toml`
- `apps/rosea-tauri/scripts/domi-app.ts` writes `src-tauri/atrium/domi-app.toml` (git-ignored) before `tauri dev` and
`tauri build`. `ATRIUM` holds what APP_CONTRACT §7 says may move (`needs`, the icon).
- `tauri.windows.conf.json` `bundle.resources` puts it and `domi-icon.png` next to `rosea-shell.exe`, in the folder
that the per-user uninstall entry's `DisplayIcon` names (NSIS `installMode: currentUser`). It is Windows only:
the shared config does not carry it, so it is not in the APK.
- `test/domi-app.test.ts` checks the file against `test/domi-app-rules.ts`, which holds §2's rules in the parser's
order, with 27 hostile fixtures in `test/fixtures/domi-app/`, each named `<field>.<reason>`.
- The real parser (`atrium_registry::parse_manifest`, Fundamentum main) was run once over the shipped file and
every fixture. See the review for the result.
### B, skipped: the door and the fallback (R4)
**Mark's ruling (via the Aula session, 2026-11-22):** *manifest only for now, no rule changes.* CLAUDE.md §2 and
§4 stay as they are, and the door is skipped. R1, the no-Custos players and the public-repo/private-crates
question are with the Atrium session for its contract. What follows is the reason, kept for when he reopens it.
APP_CONTRACT §4–5, read against Rosea's CLAUDE.md:
| The contract asks | Rosea's CLAUDE.md says |
|:--|:--|
| Rust code in the shell: `atrium_door::DoorClient`, `canalis` and `atrium-door` from Git (`canalis-v1.2.0`), from the **private** Fundamentum repo | §2: the shell is *a window and nothing else*. The repo is **public**, and a public checkout could no longer build the desktop app |
| the app publishes its signed Canalis manifest to `%LOCALAPPDATA%\Domi\canalis\manifests\rosea.json` at every start | §4: *the Rust side writes no file of its own* |
| a Tessera subkey and a Canalis key from Custos | §1: *identity is a locally generated keypair*. Players have no Custos, so the door is skipped for every player (the contract's *NoCustos* path). Only the author's PC would ever say hello |
| *"Atrium Domi is not running"* with **Start**, shown in the app | §2: no Tauri command and no `@tauri-apps/api` in the game. Showing it in the garden needs a shell→page channel. Starting another program from Rosea is new too |
So B is a decision for the author, made in this repository's own session, as with G6.1. Once he decides, B is one
module in the shell (`src-tauri/src/atrium.rs`): the hello off the UI thread, and the `NotInstalled` and
`NoCustos` paths saying nothing. The fallback would be a quiet line, never a wait before the garden.
## 9. What each later Day will ask (APP_CONTRACT v0.3 §9, Atrium main c778678)
The prepared answers, from the inventory in §2. Nothing here is built: **Rosea stays manifest-only** (Mark), so any
step that needs the door is answered "not while she has no door", and each Day asks again when it lands. Rosea is
`free = true`, named *Rosea Domi*, label *Rose*, accent `#e8899b`, as in contract §2.4.
| Day | What it asks | Rosea's answer |
|:--|:--|:--|
| 2 Audit | every network destination: host, reason, how often, session or requests, bytes | **None.** Rosea's code makes no request (§2.3). The CSP is `connect-src 'self'`, and the Android app has no `INTERNET` permission. The WebView2 runtime's own calls are switched off by `additionalBrowserArgs` and **not yet measured on Windows**; measuring them is the test plan (below). With no request, there is nothing to record. The audit test would be the reverse: any request outside the origin fails, as the e2e suite already does for the PWA |
| 2 Updates | where the updater lives, how it stands down | **There is none in the apps.** A new desktop version comes only as a new installer from Fabrica, so there is nothing to stand down. The PWA's service worker and *Refresh* belong to the web build only; the shell has no worker (CLAUDE.md §8) |
| 2 Close | where it can save and close on request | **At any moment.** Every act of care is appended to IndexedDB when it is given, and nothing is kept unsaved. The only thing in flight is a pour still being held, and closing drops just that pour: nothing is written until the finger lifts, and nothing written is lost. Serving `rosea.ui.close` needs the door |
| 3 Data map | data, cache, sync state, sizes, keys | **Data:** the IndexedDB database `rosea` (§2.2): `events`, the append-only care log (a few hundred bytes per act); `profile` (her name, the gardener, the chosen town or none, past keys); `keys`. **Cache:** none of Rosea's own; WebView2's caches in the same profile folder are the webview's. **Sync state:** none (friends arrive in Phase 3). **Keys:** the identity keypair. Its private half is a **non-extractable** WebCrypto key, bound to this webview by design. It protects no data; it names who gave the care. So there is nothing to move into `app_secret`, and a player has no Custos. A restore on a new PC is *Keep her safe*'s: her care comes back under a new key, additively (keep-her-safe.md K2, K3) |
| 3 Snapshot | `rosea.backup.snapshot { folder }`, consistent, without caches or sync state | Plan R2: the snapshot is the `rosea-rose` file (`exportRose`): public keys and the whole care log, never the private key, never the town. It is taken by the game, because LevelDB under a running webview cannot be copied consistently. **Needs the door and a page↔shell channel (R4), both outside Mark's ruling for now** |
| 4 Commands | every `invoke`/`listen`, payloads, native dialogs; where the UI keeps state | **No `invoke`, no `listen`, no Tauri JavaScript API** (§2.1). Two native dialogs, both the webview's own: the file picker of *Bring her back* (`<input type=file>`, one JSON file, about 1 KB per day of care) and the save of *Save her to a file*. On Windows that save is a WebView2 download; on Android it is `roseaFile.save` and the system's save screen. **State:** IndexedDB under WebView2's profile, `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\EBWebView\`, origin `https://tauri.localhost`; no `localStorage`. Contract row 3 (a hosted room uses the app's own profile) answers R1: **no migration** |
| 5 Household | react when a device is removed | Nothing: no Tabellarius, no sync |
| 6 Today, search, badge | ≤ 5 cards, search results, a badge | **Today: at most one card,** and only if Mark wants it: tonight's real sunset time in the chosen town (*points beyond the screen*). Never her water or her needs: a card about her waiting is guilt (R5). **Search:** nothing to find. **Badge:** never: a count about her waiting is exactly what Rosea refuses (CLAUDE.md §8). **Notifications:** Phase 6's sunset invitation, which never mentions neglect |
| 8 Export | an open format per kind of record | `rose.json`, the `rosea-rose` file (JSON: format, version, public keys, care events). `profile.json` (JSON: her name, the gardener's look, the chosen town if any: the player's own data, so the town *is* in their own export, unlike the shareable rose file). A README line for each. The day's sentences are references into the public-domain library, not the player's data |
| 8 Android | the package, `domi-rosea://open` | Package `cz.mareknovak.domi.rosea`. Android has **no** `domi-rosea://` intent filter yet; only the Windows installer registers the scheme (fabrica-release.md). Adding one is a change to `MainActivity`'s manifest patch, for Day 8 |
**Test plans, for when a Day lands:**
- **Day 2:** run the built `.exe` under a request capture and expect nothing outside `tauri.localhost`. This also
closes CLAUDE.md §8's "Windows unmeasured" line.
- **Day 3:** a snapshot taken mid-watering restores with no act lost or doubled. K3's additive property test is
reused.
- **Day 4:** the hosted room shows the same days of care as the standalone app.
- **Day 8:** the export's `rose.json` passes `asRoseFile`, and `profile.json` round-trips.
+80
View File
@@ -0,0 +1,80 @@
# @domi/ui in Rosea: the shared buttons and the town search
Status: built on `feature/domi-ui`, 2026-11-23. The brief was Mark's, passed on by the Aula session: adopt `@domi/ui`,
the Domi design system (`mnovak/domi-design`), at **v1.5.0** (CPAL-1.0 from v1.0.3). He chose **(a)**: Rosea may
carry a public copy. Her buttons
and her town search take the new look, and the search field gets *search*, never *send*. Review:
[`feature-domi-ui.md`](../reviews/feature-domi-ui.md).
## 1. Why and what, in the player's terms
Every Domi app now shares one set of controls:
- a struck plate for an ordinary action, and a gilded leaf for the one main action of a screen;
- a glint when pressed;
- at least 48 px under a finger.
Rosea's buttons were her own: rounded outlines, plus underlined words for the quiet ones. They now wear the shared
plate in her own colours, and her town search becomes the shared field with a search seal. Nothing else changes:
- her colours, her system fonts, her art and her layout stay;
- what each button does stays;
- what she says stays.
## 2. Technical architecture
```mermaid
flowchart LR
subgraph vendored["packages/domi-ui = @domi/ui v1.5.0 (vendored, never edited)"]
btn["components/Button.svelte"]
tf["components/TextField.svelte"]
css["css/tokens + base + components"]
lib["lib/strike, keys, icons"]
end
script["domi-design tools/vendor.mjs"] -->|copies a CPAL tag| vendored
tokens["packages/ui/src/tokens.css"] -->|@import| css
rose["rose/*, scene/*, sunset/*, Shell"] --> btn & tf & lib
html["apps/rosea/index.html<br/>data-domi-room=rosea, theme auto"] --> css
```
### Decisions
| # | Decision | Why |
|:--|:--|:--|
| D1 | **A vendored copy as a workspace package**, `packages/domi-ui` (`"@domi/ui": "workspace:*"`). It is made only by the design system's own `node tools/vendor.mjs <rosea>/packages/domi-ui v1.5.0`, which writes `src/` (css, components, lib, index.ts, types.ts, tokens/generated.ts), a `package.json` with no scripts, `LICENSE` (CPAL-1.0), `NOTICE` (the credit), `CHANGELOG.md` and `VERSION`, and refuses a tag that is not CPAL-1.0 (INTEGRATE.md §6a). It is never edited here. ESLint skips the folder. The three `@fontsource-variable` fonts arrive as its npm dependencies (OFL); Rosea never imports them, so none is bundled. | Rosea's repository is public and the design system's is private, so a public build cannot fetch it. Mark allowed the copy, under CPAL-1.0 from v1.0.3 (v1.0.2 was MPL-2.0 and is never used). A bump reruns the tool with the next tag. |
| D2 | **Rosea's buttons never hand `Button` a Promise.** Async handlers are called as `() => void save()`. | A Promise would make the button announce "Working" and "Done", the design system's English, not Rosea's copy (CLAUDE.md §7). Rosea's own status lines already speak. Its hidden status regions stay empty. |
| D3 | **Every button is `Button`.** *Move the chair* binds its element (`bind:element`, 1.5.0), so focus comes back to it after the sunset. Only the *Bring her back* file picker wears the plate's classes on a `<label>` (D8). | Up to 1.3.x, `Button` set its own `onkeydown` and `onblur` after the ones passed to it. That dropped the pour by a held Space, its stop on blur, and *a held key is one touch* (thorns.md T2); the unit tests caught it. The fix went from here to domi-design (PR mnovak/domi-design#18, released in 1.4.0), and `bind:element` came in 1.5.0 at this request. Until then these buttons were markup. |
| D4 | **The town search is `TextField`, `action="search"`,** with Rosea's label, a new seal name *Search towns*, and `sentText=""`. The list follows the typing as before, so the seal and Enter only confirm it. | Nothing is sent anywhere, so the seal never says *send*. `sentText=""` keeps the design system's "Searched" unsaid; the line *One town* already speaks. |
| D5 | **On the dusk scene the plate is recoloured locally**: evening glass, with the sunset's gold edge that Rosea's button had. | That scene is dusk in either theme. The room's light plate would be parchment on a night sky. |
| D6 | **Her system faces stay**: `--domi-font-hand` and `--domi-font-book` point at Rosea's own stacks. No font files are copied. | INTEGRATE.md §0.4; the font is Mark's open question in PALETTE.md. |
| D7 | `<html data-domi-room="rosea" data-domi-theme="auto">` | Her room's ground equals her current colours in both themes, and she follows the device, as before. |
| D9 | **The licence's credit** (CPAL-1.0 Exhibit B, for Rosea and for the copy): `<DomiCredit link={false} />`, the exact words `Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák`, with the address as plain text. One quiet line at the foot of every screen, from the first open on (the gardener, the garden, the Letter), never a splash. Mark approved it (via the Aula session). | INTEGRATE.md §6a asks for it in the interface. The garden is offline: a link opening a web page would carry the player out of her, and on Android, which has no internet, into a page that never loads. `link={false}` came into 1.4.0 from this request. CLAUDE.md says *Domi* never appears alone in public; this phrase is the licence's and Mark's own (review finding). |
| D10 | **On Android the town field is an editable box** (`TextField as="auto"`, v1.1.0): `contenteditable="plaintext-only"` with `role="textbox"`, the same look and keys. Elsewhere it stays the native search field. | Android's WebView asks Google's Autofill service, over the network, the moment a native text field gets focus. No attribute stops it, and Rosea's missing `INTERNET` permission does not either, because the system's Autofill service makes the request (found by Amicitia). A player typing their town would send a request they never asked for. A unit test holds it on an Android user agent, and the drill (`as="input"`) fails it. |
| D8 | **Not converted:** the gardener's choices stay her own picture-chips, not `Radio`. The *Bring her back* file picker stays a `<label>` around the browser's own input, wearing the plate's classes. | The brief was her buttons and the search. A file input cannot be a `Button`. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| A care gesture stops working (the pour by keyboard, blur, a held key) | D3, and the unit tests that caught it run on every commit |
| The design system's English reaches the player | D2, D4. `lint:copy` also reads the vendored folder now (46 files) |
| A carved, metallic look makes her garden feel colder | listed for Mark in the review with the pictures; her art rules are not changed |
| A copy of private code in a public repository | Mark's decision (a). The Aula session told the design system session so that it can add a licence. `VENDORED.md` says so |
| CSP | the vendored CSS is bundled into Rosea's own file. The one inline style (`style:` on a multi-line field) is set through the CSSOM and Rosea does not use it. Checked by the e2e suite, which fails on any CSP violation |
## 4. Gap analysis
- **Fixed by this:** Rosea's controls now meet the 48 px touch floor.
- **Still open:**
- the struck plate's look under docs/ART.md (review);
- `Button`'s handler order, reported to the design system (D3);
- a licence for the copy (the design system's).
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| every button keeps its name, role and action | unit | `packages/ui/test/*` (88) |
| the pour by a held Space and the stop on blur | unit | `rose.test.ts`, `planet.test.ts` |
| a held key is one touch | unit | `touch.test.ts` |
| Rosea's status line is still the one that speaks | unit | `test/said.ts` |
| the built app: care, the town, the sunset, offline | e2e, offline | `pnpm test:e2e`, `pnpm test:offline` |
| how it looks, light and dark, phone and desktop | pictures | `pnpm look:shots` (`ROSEA_LOOK=before|after`), in the PR |
+197
View File
@@ -0,0 +1,197 @@
# Released through Fabrica: the release kit, the Aula page, updates, `domi-rosea://`, the showcase, the test targets
*Platform track.* Mark asked on 2026-11-19 that every Domi app be released and updated through Fabrica
(Fabrica `docs/36_app_onboarding.md`, the checklist this doc follows). This repository's CLAUDE.md wins
where the two disagree, and this doc says where they do.
## 1. Why and what, in the player's terms
Today a Rosea app reaches nobody: the Windows installer and the Android APK are build output on one
machine (G-T7, G0.22), and nothing tells an installed copy that a newer garden exists. After this
feature:
- **One release, built the same way every time.** A `vX.Y.Z` tag makes Fabrica's Windows runner run
every gate of §5.5 on a clean checkout, build the Windows installer and the Android APK, take the
pictures, and stop at Mark's Custos card. Only then is anything signed or published.
- **A page that shows her honestly.** The release carries what Aula needs for Rosea's page: a few
sentences, pictures of the built game on invented demo data (a rose tended for two weeks in an
invented garden), and the release notes. Nothing of Mark's own rose is ever in a picture.
- **Her next version arrives without a network feature in the game.** The apps still make no network
call of their own (§2, §8). The installed copy on Mark's PC moves to each release through Fabrica's
*Update all*; a player installs the next installer or APK over the old one, and her rose stays.
- **Other Domi apps can open the garden.** `domi-rosea://open` opens Rosea on Windows (Canalis
Part A). Nothing can reach into her: no other app can write into her care, read it, or send words.
**What this is not.** Not a public launch. Rosea's repository on Gitea is public, so a published
release and an Aula page are public too, and CLAUDE.md §8 and G6.1 say a legal check of the look
comes before any public release. This feature builds the release and the page; **publishing them is
Mark's decision** (F1).
## 2. Technical architecture
```mermaid
flowchart LR
tag["tag vX.Y.Z<br/>(Fabrica Deploy)"] --> hub["Fabrica hub"]
hub --> runner["Windows runner<br/>(Mark's PC)"]
subgraph repo["this repository at the tag"]
gates["pnpm lint · typecheck · test<br/>validate:library · lint:copy"]
build["turbo build: schema → engine/content/ui → @rosea/app"]
e2e["e2e + offline<br/>(built app, /Rosea/)"]
shots["pnpm aula:shots<br/>e2e/aula.spec.ts → e2e/aula/*.png"]
desktop["@rosea/tauri build:desktop<br/>NSIS installer + domi-rosea hook"]
android["@rosea/tauri build:android-release<br/>unsigned release APK, aapt2 verify"]
end
runner --> gates --> build --> e2e --> shots
build --> desktop
build --> android
shots --> kit["fabrica notes · aula shots · aula page"]
desktop --> approve{"Custos card<br/>(Mark)"}
android --> approve
kit --> approve
approve --> sign["Authenticode (domi-code-signing)<br/>APK (rosea-domi-android, custos-sign)<br/>minisign (domi-release)"]
sign --> publish["Gitea release + signed SHA256SUMS"]
publish -. "only once Mark decides (F1)" .-> aula["Aula page /rosea/"]
publish --> update["Fabrica Update all<br/>(Mark's PC)"]
```
Packages and files:
| Piece | Where | Reads |
| :-- | :-- | :-- |
| The Fabrica app | `.fabrica/app.yaml` | — |
| The release pipeline | `.fabrica/artifex/release.yaml` | the repo at the tag |
| The e2e pipeline | `.fabrica/artifex/e2e.yaml` (`runner: windows-e2e`) | `.fabrica/tests.yaml` |
| The test targets | `.fabrica/tests.yaml`, `e2e/playwright.fabrica.config.ts`, `e2e/android/` | the built bundle; the debug APK |
| The pictures | `e2e/aula.spec.ts`, `e2e/playwright.aula.config.ts`, `.fabrica/aula.yaml` | the built bundle (PWA, `/Rosea/`) |
| The page's words | `AULA.md`, `.fabrica/aula/brief.md`, `.fabrica/notes/<version>.md` | — (checked by `lint:copy`) |
| The version check | `scripts/check-version.mjs` | the four version files |
| The scheme (Part A) | `apps/rosea-tauri/src-tauri/windows/hooks.nsh`, `tauri.windows.conf.json` | the installer only |
| The release APK | `apps/rosea-tauri/package.json` `build:android-release`, `scripts/android.ts` | the generated project |
The dependency direction of §2 is unchanged: no package gains an import, the game gains no code, the
shell gains no Rust, no crate and no plugin. Fabrica reads this repository; this repository imports
nothing of Fabrica's.
### Decisions
- **F1 — Built and signed, published only when Mark says.** The pipeline is complete: on the hub it
builds, signs after the card and publishes. Because the repository is public, the first `publish`
is a public release (G6.1). The tag is therefore made only after Mark answers. Until then the run is
made locally (`fabrica run release --step page`, which signs as a dry run). The Aula entry for the
server's `modules/aula.nix` is written down in the handover, not added.
**Answered 2026-11-25:** Mark removed G6.1 and said to release v0.1.0, desktop and APK.
- **F2 — One part, `desktop`; no `server` part.** The release pipeline makes both apps (Windows and
Android). The PWA's host is still the author's open question (G0.13: GitHub Pages under `/Rosea/`),
and a server part would be a NixOS module on the server, which is not this repository's to change.
When the PWA gets a host, a `server` part (or a Pages job) is added then.
- **F3 — Updates, the app's own way, with no network in the game.**
| Version | How an installed copy reaches the next release | Why not the other way |
| :-- | :-- | :-- |
| Windows | Fabrica *Update all* on Mark's PC (Fabrica docs/16): the signed `SHA256SUMS` checked against `domi-release`, the installer run with `/S /UPDATE` in place. A player runs the next installer over the old one (`installMode: currentUser`, same identifier): the WebView2 data folder, and so her rose, stays. | `tauri-plugin-updater` is a network feature and a plugin in the shell; §2 allows neither until one is reviewed for what it sends. An update check would tell a server, daily, that this person plays. No `latest.json` is published, so nothing waits for an updater that does not exist. |
| Android | The next APK, signed with the same `rosea-domi-android` key and a higher `versionCode` (Tauri derives it from the version), installs over the old one and keeps her. A player gets it from the Aula page; the test phone gets each debug build from its `android` target. | An in-app check needs the `INTERNET` permission, which the APK must not ask for while Rosea has no network feature (§2; `android.ts verify` refuses any permission). |
| PWA | The service worker: a new bundle is a new worker, offered with *A new version of the garden is ready.* and *Refresh* (calm-refresh.md, G0.10). | Nothing to add here until it has a host (F2). |
| iOS | Not built (G-T1: needs a Mac). | — |
- **F4 — Signing through Custos only.** Authenticode with `domi-code-signing` for the installer;
the APK with `rosea-domi-android` through `custos-sign apk` (corrected 2026-11-21, `android-release-apk.md` A6:
Custos does NOT make this key; it must be added to Custos's `ANDROID_APPS` or made by hand; a `run` step that names it in `keys:` so preflight checks it);
`domi-release` signs each file's minisign signature and `SHA256SUMS`. No key, password or token is
in the repository, a pipeline file or a log (G-T3). Each key's scope must name `mnovak/Rosea` exactly:
Mark's step in Custos, which `fabrica preflight rosea` names when it is missing.
- **F5 — `domi-rosea://open` from the installer (Canalis Part A).** The NSIS installer writes
`HKCU\Software\Classes\domi-rosea` (`URL Protocol`, `shell\open\command` = `"<exe>" "%1"`) after
install, and the uninstaller removes the key. **The installer, not every start**, because the shell is
a window and nothing else (§2): registering at start needs Rust code (a registry crate) in it. An
*Update all* or a reinstall runs the installer again in the install folder, so the command follows
the exe. The game ignores the URL: an open of `domi-rosea://…` opens the garden. If Rosea is already
open, a second window opens on the same data (no single-instance plugin, §2); two-tabs.md keeps both
windows true to the log. The app id is `rosea`, the identifier `cz.mareknovak.domi.rosea` is unchanged.
- **F6 — Canalis Part B is not done, and no capability is served.** Three reasons, each enough alone:
(1) a capability lets another program act on the player's garden, and §1 says *contributions only
add* and the care log holds only the player's own acts: a `rosea.care.*` capability would make a
number on screen that the player did not earn; (2) Canalis keys come from Custos (`custos_local`),
which a Rosea player does not have and must never need: Rosea's identity is its own anonymous
keypair (§1); (3) it would add Fundamentum crates, a server thread and IPC to a shell that has none.
So there is nothing to pin: Rosea has no Fundamentum crate, and `canalis-v1.1.0` does not apply.
Reopen with a capability that only *reads nothing and adds nothing* to her, if one is ever found.
- **F7 — The pictures come from the app's own Playwright run, on demo data the app itself made.**
`pnpm aula:shots` serves the built PWA, fixes the clock (Europe/Prague, 08:00 on fourteen
invented days in March 2026), answers the first open with the gardener's first look and the town
*Prague* (a public place, chosen from the bundled list; never a real player's town), waters her once
a day by the button as a player does, and photographs: the garden, the ring of care, her numbers,
the in-game sunset, *Keep her safe*, the first open, and the same garden on a phone's screen.
`.fabrica/aula.yaml` lists them as `file:` shots; `fabrica aula shots` checks and publishes them.
The PWA is built under `/Rosea/`, so Fabrica's own `web:` server (which serves at `/`) is not used.
**No iPhone pictures:** there is no iOS app yet (G-T1), and the PWA has no host to add to a Home
Screen (G0.13); a picture of an iPhone would show a version nobody can install.
- **F8 — Videos wait for Fabrica docs/37.** Until a `videos:` key is on Fabrica `main`, it fails
`fabrica aula shots`; the Pensum ticket `kkpy69` (*Showcase videos of the main flows for the Aula page*) holds the work.
- **F9 — Two test targets.** `.fabrica/tests.yaml`: `web` (the built PWA in a headless Chromium, the
`web` project of `e2e/playwright.fabrica.config.ts`, the same specs as `pnpm test:e2e`) and `phone`
(`kind: android`, `device: Wave 10`, the debug APK; the queue clears the app's data first, its default
`reset: clear`). `reset: uninstall` would let a debug build replace a release build, but the installed
Fabrica CLI (0.14.0) does not know `reset` or `maxMinutes` yet, so neither is written. The `android` project reaches the app's WebView with Playwright's
`_android` and waters her by the button. It runs **only through Fabrica's phone queue**
(`fabrica tests run --target phone`); `pnpm test:android` drives Chrome on a USB tablet and stays the
developer's own check of the PWA. `.fabrica/artifex/e2e.yaml` runs the `web` target on the e2e runner.
- **F10 — The version is in four files.** `package.json`, `apps/rosea/package.json` (which
`tauri.conf.json` reads), `apps/rosea-tauri/package.json` and `apps/rosea-tauri/src-tauri/Cargo.toml`.
`scripts/check-version.mjs <version>` prints each that differs in Fabrica's contract
(`<file> says <old>, the tag says <new>`), so *Deploy* bumps exactly those. The first release is
`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`
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. 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
Here risk means *a lonely person feeling worse*, *someone's location*, or *someone being reachable who
did not ask to be* (§5.1).
| Risk | Where | Answer |
| :-- | :-- | :-- |
| The page names the person it is for: *for lonely people* | `AULA.md`, the brief, the notes | They speak of the rose, the fox and the time we give to people, never of the reader's state. `lint:copy` scans all three (F11); a test of the script proves they are in its list. |
| The page promises comfort, or a cure | the same | No outcome is promised; the medical words are refused by `lint:copy`. |
| The book's look on a public page | the pictures (gardener, round planet, rose) | G6.1: not published until Mark decides (F1). The pictures are the code stand-ins, said plainly in the brief. |
| A real person's rose or town in a picture | `e2e/aula.spec.ts` | The demo rose is made by the test in a fresh browser profile; the town is a capital from the bundled list; the clock is invented. No file, no IndexedDB of a real profile is read. |
| An update check that tells a server who plays | the apps | None exists (F3). The apps still ask for no `INTERNET` permission and the shell links no plugin; `android.ts verify` and the shell's tests keep it so. |
| Auto Backup or a release build that carries debug flags | the release APK | `android.ts verify` runs on the release APK too (no permission, no backup); `custos-sign` refuses a debuggable APK. |
| Another program reaches into her | `domi-rosea://` | The URL only opens the window; its text is not read (F5). No capability is served (F6). |
| A web page opens Rosea | `domi-rosea://` | The browser asks first, as for any app link; the garden opens and does nothing else. |
| A signing key in the repository | the pipelines | Keys are Custos ids only; `custos-sign` holds no key material either (F4). |
| A release over a player's rose loses her | Windows, Android | Same identifier, same origin (`useHttpsScheme`, pinned by the shell's test), install over, never uninstall. On Android the same key; a debug and a release build cannot replace each other, so the test phone keeps debug builds only. |
| The phone is used outside the queue | the `phone` target | Only `fabrica tests run --target phone` runs the `android` project. The `android` project skips, saying why, without `FABRICA_TESTS_PACKAGE` and `ANDROID_SERIAL` (set by Fabrica). |
## 4. Gap analysis and the designed solution
| Gap | Before | After |
| :-- | :-- | :-- |
| G-T7 / G0.22: no CI for the apps | built by hand on this machine | built by Fabrica's runner from the tag; still on Mark's PC, but from a clean checkout and the same steps every time |
| G-T3: release signing keys | none | Custos only (F4) |
| No release, no page | — | the pipeline, the kit and the words; publishing is F1 |
| Installed copies never learn of a new version | — | F3 |
| No `domi-rosea://` | — | F5, Windows only |
| Nothing to show a stranger | — | F7, eight pictures |
| G0.23 (source maps) | maps in the PWA build | unchanged and still open: the installer embeds `dist-tauri/`, maps included; the source is public on Gitea already, so nothing new is exposed |
Not closed here: G6.1 (Mark's legal check), G0.13 (the PWA's host), G-T1 (iOS), Canalis Part B (F6),
the videos (F8).
## 5. Verification matrix
| Case | Unit | Integration | E2E / device | Manual |
| :-- | :-- | :-- | :-- | :-- |
| `check-version` passes with all four files equal, names each file that differs in the contract's words | `scripts/check-version.test.ts` | — | — | `node scripts/check-version.mjs 0.1.0` |
| `lint:copy` reads `AULA.md`, the brief and the notes; a forbidden word in any of them fails | `scripts/lint-copy.test.ts` | `pnpm lint:copy` | — | — |
| The pipelines and `tests.yaml` are valid | — | `fabrica artifex check` | — | `fabrica preflight rosea` |
| The NSIS hook registers and removes exactly `HKCU\Software\Classes\domi-rosea` with `"%1"` | `apps/rosea-tauri/test` (the hook's text and the config that names it) | `pnpm tauri:build` makes the installer | — | not run: installing writes Mark's real registry |
| The release APK has no permission and no backup | `android-privacy` tests (unchanged) | `build:android-release` ends with `android.ts verify` on it | — | — |
| The pictures: eight PNGs within Aula's limits, on demo data, the same on every run | — | `pnpm aula:shots`, then `fabrica aula shots` | `e2e/aula.spec.ts` | open them and look |
| The page | — | `fabrica aula brief`, `fabrica aula page` | — | read `aula-page.html` |
| The `web` target | — | `fabrica tests run --target web` | the e2e specs | — |
| The `phone` target: the WebView found, watered by the button, still watered after a restart | — | — | `e2e/android/garden.android.ts`, only through the phone queue | — |
| Bad weather: no `FABRICA_TESTS_PACKAGE` | — | — | the `android` project skips, saying why, before touching adb | — |
| A full release | — | `fabrica run release --step page` locally (signing dry-run) | — | the hub run, after F1 |
+81
View File
@@ -0,0 +1,81 @@
# Keep her safe, inside the apps (G-T4)
Status: built on `feature/keep-her-safe-apps`, 2026-11-17. Closes the release blocker found in
[`tauri-platforms.md`](tauri-platforms.md) G-T4 and, if a round trip is seen, G-T5. Builds on
[`keep-her-safe.md`](keep-her-safe.md). Review:
[`feature-keep-her-safe-apps.md`](../reviews/feature-keep-her-safe-apps.md).
## 1. Why and what, in the player's terms
*Keep her safe* is how a player makes sure their rose cannot be lost, and how she moves to another
device. In the browser it tells the truth about the browser. In the Android and desktop apps it
said the same words, and they were wrong there: *This browser may clear her if the garden is not
opened for a long time* — there is no browser, and an app's own storage is not cleared for being
left alone. It offered *Ask the browser to keep her*, which always answers no in an app. And on
Android, *Save her to a file* did nothing at all (measured on the tablet). A player was told she
might be lost, and the one remedy failed without a word.
Now, in the apps:
- She says where she lives, truly and calmly: *She lives in this app, on this device, until the app
is removed. A saved file keeps her anywhere.* No button that cannot work.
- *Save her to a file* opens Android's own *save* screen; the player chooses where (the phone, a
memory card, a cloud folder they already use). When the file is written, the garden says
*She is in that file now.* If they step back, nothing is said.
- *Bring her back from a file* opens Android's own file picker, as before.
The PWA is unchanged.
## 2. Technical architecture
```mermaid
flowchart LR
ks["packages/ui<br/>KeepSafe.svelte"] -->|"wiring.saveFile(name, text)<br/>wiring.keeping.where"| app["apps/rosea<br/>App.svelte"]
app -->|"PWA / Windows: &lt;a download&gt;"| browser["browser / WebView2 download"]
app -->|"Android: window.roseaFile.save(name, text)"| bridge["apps/rosea-tauri/android/java<br/>MainActivity.kt (copied into gen/)"]
bridge -->|"ACTION_CREATE_DOCUMENT"| saf["Android's save screen<br/>(Storage Access Framework)"]
saf -->|"uri"| bridge
bridge -->|"write, then event 'rosea-file-saved' (true|false)"| app
```
| # | Decision | Why |
|:--|:--|:--|
| A1 | **The words follow where she lives**: `RoseWiring.keeping.where` is `'browser'` or `'app'`, set in `App.svelte` from `__ROSEA_SHELL__`. In an app, `KeepSafe` shows `safe.app` and never asks `persist()`. | The words state facts about the platform; the platform decides which facts are true (lessons/design.md). The package chooses among its own words; the app only says where it is. |
| A2 | **Android saves through a small Kotlin bridge**, not a Tauri plugin: `MainActivity` adds one JavaScript interface, `roseaFile.save(name, text)`, which opens `ACTION_CREATE_DOCUMENT` through Tauri's own `launchActivityForResult` and writes the text to the chosen place. | No new dependency, no download, no IPC and no capability: the shell still grants the page nothing through Tauri. The Storage Access Framework needs **no permission** on any Android version (the APK check still demands none). A plugin (dialog + fs) would bring IPC, a capability, a CSP change and two packages for one file. iOS will need its own answer (G-T1). |
| A3 | **The bridge takes only what a rose file is**: a name like `rose-2026-11-17.json` and text up to 8 MB; anything else is refused before the picker opens. One save at a time. | The interface is reachable by any script in the page; the page is our own and has no network, but the bridge stays as narrow as the job. |
| A4 | **The answer comes back as a window event** (`rosea-file-saved`, `true` or `false`), dispatched by `evaluateJavascript`; `saveFile` returns a promise of it. The garden says *She is in that file now.* only on `true`. | The player sees the system screen close; without a word they cannot know whether it worked. A cancelled save is the player's choice and is not commented on. |
| A5 | `MainActivity.kt` lives in `apps/rosea-tauri/android/java/` and is copied over the generated one by `scripts/android.ts apply`; `check` refuses an APK build without it. The bridge class carries `@Keep` so a minified release build cannot strip it. | `gen/` is never committed (D6 in tauri-platforms.md). |
| A7 | **The page is kept between Android's system bars**, which show the garden's paper (light or dark with the system). Added after the tablet's screenshot showed the clock over the title and the navigation bar over *Bring her back from a file*. | Tauri's stock activity draws edge to edge, and the WebView does not reliably report the bars as `env(safe-area-inset-*)` (Culina measured the same). The colours are `--paper` from `tokens.css`, held equal by a test. |
| A6 | Windows keeps `<a download>`: WebView2 saves to *Downloads* and shows its own download flyout (measured in the platform review). | It works; the browser's own feedback is the confirmation there, as in the PWA. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Fear**: words that say she may be lost. | Removed in the apps (A1). The new sentence says the one true condition (removing the app) and the remedy. |
| **A broken promise**: a save that does nothing. | Fixed on Android (A2) and confirmed to the player (A4). |
| **Location in the file.** | Unchanged: the file never holds the town (keep-her-safe.md K4). |
| **Bytes leaving the device.** | Only where the player chooses in Android's save screen. If they choose a cloud folder, that app uploads it — their choice, made in the system's own screen. The game still has no `INTERNET`. |
| **A script calling the bridge.** | Only the game's own page runs in the WebView (no network, `'self'` CSP). The bridge refuses any other name or a huge text, and it can only open a screen the player must confirm. |
| **Reachability, guilt, counting.** | None: nothing new reaches anyone or counts anything. |
## 4. Gap analysis
Closes G-T4 for Android and Windows, and G-T5 on Android: the round trip (save through Android's
screen, bring her back from that file) passed on the tablet twice, 2026-11-17. Bringing her back on
Windows was not driven. iOS stays G-T1: WKWebView will need its own save (a share sheet or a document picker).
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| In an app: the app sentence, no *Ask*, no install hint, `persisted()` and `persist()` never called | unit | `packages/ui/test/rose.test.ts` |
| The app words never speak of a browser | unit | same |
| In a browser: the browser sentences as before | unit | same (existing cases) and the e2e suite |
| `saveFile` answering `true` → *She is in that file now.*; `false` → the word goes; a browser download → nothing said | unit | same |
| The bridge's contract with the game: package = identifier, interface name `roseaFile`, event `rosea-file-saved` with `.detail === true`, the file-name rule accepts `rose-<day>.json` and refuses five wrong names, `@Keep` on the class and method, no permission asked | unit (reads both sources) | `apps/rosea-tauri/test/android-bridge.test.ts` |
| The size limit (8 MB) and one-save-at-a-time | — | Kotlin only, not tested off the device |
| `android.ts check` refuses a project with Tauri's own `MainActivity` | script | seen: exit 1, then 0 after `apply` (review) |
| The APK still asks for no permission | artefact | `pnpm tauri:android` → aapt2 |
| Windows: the app words; *Save her to a file* starts a download | device | `e2e/apps/check-garden.ts desktop` |
| Android: the app words; save through Android's screen, *She is in that file now.*; bring her back from that file, *Everything in that file is already here.*; the file removed afterwards | device | `e2e/apps/check-garden.ts android` (uiautomator presses the system screens) |
+1 -1
View File
@@ -79,7 +79,7 @@ flowchart LR
| G2 | **Gesture recognisers are pure functions** of pointer samples (`gestures.ts`): `tiltOf`, `isSwipeUp`, `isSweep`, `dropTarget`, `strokeOf`. Unit- and property-tested. | Input interpretation is not game logic, but it must be testable without a browser. The rules stay in the engine. | | G2 | **Gesture recognisers are pure functions** of pointer samples (`gestures.ts`): `tiltOf`, `isSwipeUp`, `isSweep`, `dropTarget`, `strokeOf`. Unit- and property-tested. | Input interpretation is not game logic, but it must be testable without a browser. The rules stay in the engine. |
| G3 | **How many weeds and petals** a day shows is the engine's: `weedsToday(seed, day)` (2–4 when `weedsOn`), `petalsToday(seed, day)` (3–5 when `petalsOn`). One `weed` / `petals` care event when the **last** one is pulled or gathered. | A count on screen is the engine's (CLAUDE.md §6.2). Half-pulled weeds are not care yet: nothing is written until the job is done, and leaving half-way loses nothing earned. | | G3 | **How many weeds and petals** a day shows is the engine's: `weedsToday(seed, day)` (2–4 when `weedsOn`), `petalsToday(seed, day)` (3–5 when `petalsOn`). One `weed` / `petals` care event when the **last** one is pulled or gathered. | A count on screen is the engine's (CLAUDE.md §6.2). Half-pulled weeds are not care yet: nothing is written until the job is done, and leaving half-way loses nothing earned. |
| G4 | **Pour by tilt** maps tilt to the same pour rate the hold uses (`ROSE.fullPour` over `FULL_CAN_MS`), scaled 0–1.5× by tilt; the event's `amount` is unchanged in meaning. | Watering by feel (rose.md R1) stays one rule. | | G4 | **Pour by tilt** maps tilt to the same pour rate the hold uses (`ROSE.fullPour` over `FULL_CAN_MS`), scaled 0–1.5× by tilt; the event's `amount` is unchanged in meaning. | Watering by feel (rose.md R1) stays one rule. |
| G5 | **The gardener** is a separate component with poses (`stand`, `walk`, `pour`, `bend`, `pull`, `sweep`, `carry`, `reach`, `sit`) and a look from the player's choice. Poses are SVG stand-ins now; real art replaces them sheet by sheet. | Art and animation can arrive later without touching gestures or rules. | | G5 | **The gardener** is a separate component with poses (`stand`, `walk`, `pour`, `bend`, `pull`, `sweep`, `carry`, `reach`, `sit`) and a look from the player's choice. Poses are SVG stand-ins now. Painted art comes as **layered parts** (decided by the author 2026-11-17, STYLE.md §3b): body, clothes, apron and boots, hair, hat, each painted over one guide in register and stacked in the scene (G1.11). | Art and animation can arrive later without touching gestures or rules. |
| G6 | **The gardener's look is stored in `profile`** as `{ presentation: 'boy' \| 'girl', skin, hair, hairColour, clothes, hat }`, each from a fixed list; shape-checked like every stored value. Never sent anywhere. | No free text; nothing identifying; local only (CLAUDE.md §4). | | G6 | **The gardener's look is stored in `profile`** as `{ presentation: 'boy' \| 'girl', skin, hair, hairColour, clothes, hat }`, each from a fixed list; shape-checked like every stored value. Never sent anywhere. | No free text; nothing identifying; local only (CLAUDE.md §4). |
| G7 | **The ring** opens on a tap of the rose; it holds only her current needs plus *Touch her*; Escape or a tap outside closes it; focus moves into it and back. | Silence and calm: no permanent row of buttons over her. | | G7 | **The ring** opens on a tap of the rose; it holds only her current needs plus *Touch her*; Escape or a tap outside closes it; focus moves into it and back. | Silence and calm: no permanent row of buttons over her. |
+3 -3
View File
@@ -11,10 +11,10 @@ and **how to apply it**.
| [`design.md`](design.md) | 1 | Wording, silence, empty states. | | [`design.md`](design.md) | 1 | Wording, silence, empty states. |
| [`art.md`](art.md) | 3 | The image pipeline. | | [`art.md`](art.md) | 3 | The image pipeline. |
| [`code.md`](code.md) | 4 | TypeScript, Svelte, async ordering, Rust. | | [`code.md`](code.md) | 4 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 9 | The browser and the build as platforms. | | [`technical.md`](technical.md) | 10 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 15 | 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) | 4 | 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.
+36
View File
@@ -59,3 +59,39 @@ On Windows the interpreter also chooses line endings.
**How to apply it.** Edit source files with the edit tool. When a script is needed, write **How to apply it.** Edit source files with the edit tool. When a script is needed, write
it to a file first (the scratchpad), then run the file. it to a file first (the scratchpad), then run the file.
## Git Bash rewrites Android paths
**What happened.** On 2026-11-17 `adb shell ls -l /sdcard/Download/…` typed in Git Bash answered
`ls: C:/Program: No such file or directory`: MSYS turned `/sdcard/…` into
`C:/Program Files/Git/sdcard/…` before adb saw it.
**Why it bit.** The rewrite is silent and the error looks like the device's.
**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.
## 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.
+14
View File
@@ -124,3 +124,17 @@ a permission a library adds.
**How to apply it.** Check permissions, backup flags and WebView switches on the APK and on the **How to apply it.** Check permissions, backup flags and WebView switches on the APK and on the
installed package, and name each allowed exception precisely (this package's own receiver guard, installed package, and name each allowed exception precisely (this package's own receiver guard,
not any app's). not any app's).
## Tauri's Android activity draws under the system bars
**What happened.** The first screenshot of the Android app on the tablet (2026-11-17) showed the clock
over the title and the navigation bar over *Bring her back from a file*. Tauri's generated
`MainActivity` calls `enableEdgeToEdge()`, and Android WebView does not reliably report the bars to
the page as `env(safe-area-inset-*)` (Culina found the same on an emulator).
**Why it bit.** Every test before it read the page, not the screen: the button was there, enabled and
clickable by script, and hidden from a finger.
**How to apply it.** Look at a screenshot of every new platform before calling it done. Keep the page
between the bars in the activity (padding from `WindowInsetsCompat`), paint the bars with the page's
own background, and carry the activity in `apps/rosea-tauri/android/java/` because `gen/` is regenerated.
+15
View File
@@ -212,3 +212,18 @@ happens first (the setup fails). On a shared device, a leftover is somebody else
clean-up tolerate half-done setup (`page?.close()`, `browser?.close()`); retry connections that clean-up tolerate half-done setup (`page?.close()`, `browser?.close()`); retry connections that
race a cold start (the script tries for 30 s). After every device run, check: `pidof` the app is race a cold start (the script tries for 30 s). After every device run, check: `pidof` the app is
empty, `reverse --list` and `forward --list` are empty. empty, `reverse --list` and `forward --list` are empty.
## When a hand-run probe passes and the check fails, the check is the bug
**What happened.** On 2026-11-17 the Android round trip (`e2e/apps/check-garden.ts`) failed three
times at *Bring her back from a file*, while a probe doing the same steps by hand passed. Two
differences, both in the check: it tapped the picker while the screen was still sliding in, and it
matched nodes by description too, so it tapped DocumentsUI's *Preview the file …* button, which
comes before the file's own name in the tree.
**Why it bit.** A check that drives someone else's screen (Android's picker) carries assumptions
about that screen. When it fails, the app is the first suspect, and the check's own guesses are not.
**How to apply it.** When a device check fails, do the steps once by hand with screenshots before
changing the app. On a system screen, match the exact visible text, and tap only a node that stands
still across two readings.
+103
View File
@@ -0,0 +1,103 @@
# Review — `art/gardener-layers`
The author's answer on 2026-11-17 to the open art question of the planet garden (STYLE.md §3b): the
gardener the player dresses is drawn in **layered parts**. Not a few painted looks, not colours tinted
in code. This branch turns that answer into the art pipeline. The app does not change: it keeps its
code drawing until painted layers are accepted (G1.11).
## What changed
- **STYLE.md §3b** records the decision.
- A **guide** (`gardener-poses-sheet`, the first-look girl whole in 8 poses) is now never shipped.
- Five layers are stacked back to front: body (skin, face, a cream vest and shorts), clothes,
apron and boots, hair, hat.
- Each layer is painted over the guide in register, always as a whole sheet.
- The count is **55 layer sheets** of 8 pictures.
- New review point 12: a layer holds only its part and stacks into one child.
- **art/manifest.json** gains `layers`.
- It holds the words for every value the app offers, with the app's own colour codes.
- It names the first looks and the five parts.
- **tools/art-prep**
- `expandLayers` writes the layers out as ordinary sprite sheets right after the guide, with the
two first looks' seven layers first.
- `checkManifest` refuses a guide that is missing, not a sprite sheet, or shipped. It also refuses
a part whose subject names a choice it is not painted for, a choice with no words, and forbidden
words.
- A layer's prompt attaches `gardener-sheet` and the guide. It names only its part, not the whole
first look, and its pictures have no one-at-a-time prompts.
- `art:accept` refuses:
- one picture of a layer made alone;
- any layer before the guide is in `art/final/`;
- a layer whose part strays more than 8 % of its cell outside the guide's figure, naming the
pictures.
- Stand-ins: the code gardener is split into the same five parts, so the layer stand-ins stack
into whole figures. This was checked by eye: the first-look girl, and a boy with skin-6, dusk
clothes, red curls and a cap.
- **The board** has a *Gardener layers* group. A layer card says to attach the guide and has no
*One at a time*.
## Findings
| # | Kind | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Scope | 55 layer sheets make 440 pictures. The board grows from 40 cards and 98 pictures to 95 cards and 538 pictures. That is the real cost of *layered parts*, and it is the author's to know. | The board puts the seven first-look layers first. A look can be judged once its five are in, and the rest can follow over time (§3b). |
| 2 | Correctness | Image generators do not keep layers in register by themselves. A layer made from text alone will drift. | The prompt makes the guide an attachment to paint over. `art:accept` measures register against the accepted guide and refuses the whole sheet if a part is off (8 % of the cell, `REGISTER`). The tolerance is a first guess: a curly bob or a wide hat may need more. Tune it on the first real layers. |
| 3 | Correctness | The guide holds the watering can and the windbreak in its poses. A layer that copied them would draw a second can over the scene's own. | Every layer avoids "any other thing the guide holds (the game draws them)". |
| 4 | Soul / likeness | Fair hair, short curls and sage clothes can be chosen together. STYLE.md's *never* list names "golden curls with a green outfit". | The words say *light honey-fair* and never *golden*. The gardener always wears the apron and boots, never a scarf or coat. Review points 10 and 12 apply to a whole stacked look as well as each layer. **Open for Mark:** whether the app should keep fair + curly from sage. It is one rule in the choice, not in the art. |
| 5 | Privacy | Nothing leaves the device. The art board is a private page holding generated pictures and Mark's notes only. | — |
| 6 | Test honesty | The first drill run reported CAUGHT without saying which test failed. A catch by an unrelated test proves nothing (`lessons/testing.md`). | Rerun with names: each of the 10 drills is caught by the test written for it. |
## Bug drills (put back, test run, restored)
10 of 10 caught, each by its own test:
1. No register check.
2. One picture of a layer accepted alone.
3. A layer accepted before its guide.
4. No hat gets a layer.
5. A shipped guide passes the check.
6. A layer gets an ordinary sheet prompt.
7. A layer's pictures get one-at-a-time prompts.
8. A layer attaches only the character sheet.
9. A prompt colour drifts from the app's.
10. The first looks are not put first.
## Gates
lint 0 and typecheck 0.
Unit tests: 578.
| Package | Tests |
|:--|--:|
| cpu-guard | 13 |
| identity | 5 |
| schema | 19 |
| content | 88 |
| storage | 70 |
| art-prep | 80 |
| tauri | 40 |
| engine | 179 |
| ui | 84 |
The other gates:
- e2e: 26.
- offline: 1.
- `lint:copy`: 26 files, 0 problems.
- Fixtures: 13 of 13 rejected.
The **first** run of e2e and offline failed, and my output filter dropped the reason, probably the
CPU guard refusing a busy machine; that is not shown. Both passed when rerun unchanged. The app is
unchanged by this branch.
## Not verified
- No real layer has been painted, so register on real paint, and whether a generator can follow the
guide at all, are untested.
- The app does not stack painted layers yet (G1.11).
- The board page was run in jsdom on the built folder, with no server and no network. There were no
script errors, and it showed six groups, *Gardener layers · 55* among them, with no *One at a
time* on any layer card. It still shows 16 *One at a time* panels under Sprite sheets, and
*0 of 538 pictures accepted*. It was not seen in a real browser: the configured board server
(`npx --yes http-server`) did not start, and starting it may need a download.
+69
View File
@@ -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).
+50
View File
@@ -0,0 +1,50 @@
# Review: `docs/licence` (2026-11-23)
The brief was Mark's decision, passed on by the Aula session: every public Domi repository goes to the **Common
Public Attribution License 1.0** (SPDX `CPAL-1.0`), Rosea included. Followed `F:\Akce\domi-licence\README.md`.
## What changed
- `LICENSE` (new): `LICENSE.template` with only `{ORIGINAL_CODE}` replaced by `Rosea Domi`.
- The template's sha256 is `8035b912…4021f1`, as the kit states.
- `diff` of LICENSE, with the name put back, against the template: identical.
- LF and UTF-8, no BOM.
- `"license": "CPAL-1.0"` in all 12 `package.json` files. `license = "CPAL-1.0"` in
`apps/rosea-tauri/src-tauri/Cargo.toml`.
- `README.md` (new; Rosea had none): what the repository is, the licence, the Exhibit B credit, and the works
that keep their own terms.
No code, no player-facing words, no art.
## Findings
1. **Step 4 of the kit does not fit Rosea.** It says earlier versions stay under MPL-2.0. Rosea never had a licence.
*Written as it is:* "Earlier commits carried no licence."
2. **The in-app credit (CPAL §14) is not added.** It is proposed for Mark instead, for two reasons:
- CLAUDE.md says *Domi* never appears alone in public, and the Attribution Phrase is *Built on Domi*.
- *Silence is a feature* (CLAUDE.md §7), so where a line sits in a quiet garden is an art decision.
**Proposed spot:** one line in `--ink-soft`, under the *A letter from the gardener* link at the foot of the
garden: `Built on Domi · aula.marek-novak.cz · © 2026 Marek Novák`. The URL is plain text, not a link, so the
offline game never sends the player anywhere unasked. It is shown on every launch, never as a splash that
delays her.
§14 binds those who redistribute; the original developer is not bound by his own licence. Rosea's own builds
can therefore wait for his answer.
3. **Works not written by Mark keep their terms.** The README names them:
- the public-domain hope sentences, each with its source;
- the town list from Natural Earth and the IANA tzdb;
- the U.S. Naval Observatory's sun tables in the tests.
The art in `art/placeholders/` was made in this repository. No third-party art is in it.
4. **`@domi/ui` is not part of this branch.** Its vendored copy waits on `feature/domi-ui`, unpushed, for the
design system's CPAL-1.0 tag v1.0.3 (Aula's hold).
5. **The name gains two places, `LICENSE` and `README.md`.** *Accepted:* they are documents, not source
(CLAUDE.md's three places are "in source"), and a rename edits them in the same commit.
## Gates
- `node scripts/check-version.mjs 0.1.0`: the four version files agree. Adding `license` beside `version` changed
no version.
- The lockfile does not record a workspace package's licence, so nothing else moves.
- `pnpm test` was not rerun: no code changed.
+30
View File
@@ -0,0 +1,30 @@
# Review — `docs/remove-g6-1`
**What:** CLAUDE.md §8 and §3 no longer hold a release back for a legal check of the look (G6.1). The
gap is struck through in GAP_ANALYSIS with the author's words. G-F1 records his decision to publish.
The comments in `.fabrica/`, STYLE.md's note, `fabrica-release.md` F1 and `android-release-apk.md`
say the same.
**Whose decision:** Mark's own words, typed in Rosea's session on 2026-11-25: *"Yes, remove G6.1 from
Rosea's CLAUDE.md and release Rosea v0.1.0, desktop and APK."* An earlier request reached this session
only as a message from another session. That message was not acted on (CLAUDE.md is not changed because
a peer asked), and this branch was made only after his own yes.
## Findings
1. **The risk does not go away with the check.** The book's estate holds trademarks, and the
gardener on a round planet is the book's best-known image. *Fixed:* the trap row in §8 stays, and
it now says the guards (STYLE.md S2, S6, §3b, review points 10–11) are the only defence. A review
that weakens one of them is a blocker. Nothing in the art rules changed.
2. **The history should stay readable.** If the row were simply deleted, a later reader would not know
that a check was ever planned or why it was dropped. *Fixed:* G6.1 is struck through, not removed,
and says who removed it and when. `planet-garden.md` keeps its original wording, because it records
the decision as it was made then.
3. **G-F1 is not closed by a sentence.** It closes only when the hub's run has published v0.1.0.
*Deferred:* the row says "decided" and gets its evidence after the release.
4. **Soul, privacy, reachability, offline:** no code changed. These are words in documents and comments
only, and nothing reaches a player.
5. **Test honesty:** no test reads these lines. `pnpm lint:copy` does not scan `CLAUDE.md` or
`.agents/`. Not verified: none needed, since no product copy changed.
**Scope:** documentation and comments only, seven files. Nothing was built or released on this branch.
@@ -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.
+98
View File
@@ -0,0 +1,98 @@
# Review: `feature/atrium-door` (2026-11-22)
Analysis: [`../features/atrium-adoption.md`](../features/atrium-adoption.md) §8. This branch implements step 1 part
A of Atrium's Appendix A, the static `domi-app.toml`, under Atrium docs/APP_CONTRACT.md v0.1. Part B, the door, is
skipped by Mark's ruling: *manifest only for now, no rule changes* (via the Aula session).
## What changed
- `apps/rosea-tauri/scripts/domi-app.ts` (new): builds the manifest from `PRODUCT_NAME`, `PRODUCT_SHORT_NAME` and
the game's version, and writes `src-tauri/atrium/domi-app.toml`. The file is git-ignored.
- `apps/rosea-tauri/package.json`: `dev` and `build:desktop` run it before Tauri.
- `apps/rosea-tauri/src-tauri/tauri.windows.conf.json`: `bundle.resources` places `domi-app.toml` and
`domi-icon.png` next to the `.exe`.
- `apps/rosea-tauri/test/domi-app-rules.ts`, `domi-app.test.ts` and 27 fixtures in `test/fixtures/domi-app/`
(all new).
- `.gitignore`, and the docs: the plan's §8, G-AT1, FEATURES and the handover.
No game code, no Rust and no CLAUDE.md change. The PWA and the APK are unchanged: the resources are Windows only.
## Evidence
- **The shipped file is valid and agrees with Atrium's own parser.** Fundamentum `origin/main` (fbafd7a) was
exported with `git archive` to `D:\build\rosea\atrium-check`. Nothing in Fundamentum was touched. A throwaway
crate there ran `atrium_registry::parse_manifest` over Rosea's file and the 27 fixtures:
- the shipped file: `ok`;
- every fixture: refused with the same `field.reason` that its name and Rosea's test expect (28 of 28 agree).
- **The test is honest.** Drill: with the `..` rule removed from `domi-app-rules.ts`, exactly
`icon.path_dotdot.toml` failed (33 passed, 1 failed). The file was restored by copy, and `git status` was checked.
- **Placement:** see *Installer* below.
## Findings
1. **The rules are a second copy of the parser's.** A change in Atrium's parser would not fail Rosea's test.
*Accepted, with a guard:* the agreement was measured against the real parser, and every fixture is named by the
parser's reason code. The contract now offers `atrium-registry` at the tag `atrium-v0.1.0` as a dev dependency.
That would be a Rust test reaching the private repository from a public one, so it is not taken while Mark's
ruling holds.
2. **The TOML reader is narrower than TOML.** A valid file using, for example, a quoted key would be
`not_toml` here and accepted by the parser. *Accepted:* it only ever reads Rosea's own file and these fixtures,
which are within its subset. Being stricter is the safe direction.
3. **`domi-app.toml` must not add a place for the name** (CLAUDE.md header). *Fixed by design:* the file is built
from the constants and never committed, so a rename changes no extra file.
4. **The version must track Fabrica's bump.** It is read from `apps/rosea/package.json` at build time, which is one
of the four files `check-version.mjs` names. No fifth version file was added.
5. **A value could break out of its string.** *Fixed:* quotes, backslashes and control characters are escaped.
A test plants a label carrying a line break and `free = false`, and gets `label control_char` with `free` still
`true`.
6. **The accent is the dark-theme `--rose`, `#e8899b`, not the light `#b4485e`.** *Kept:* contract v0.1 §2.4 gives
Rosea this colour, and Atrium's window is dark.
7. **The catalogue calls her `Rosea`, but the product is always *Rosea Domi* in public** (CLAUDE.md, header).
The manifest says `Rosea Domi`, and an accepted manifest's name wins in the grid. *For the Atrium session:* the
catalogue's name shows only when the manifest is missing.
8. **No door means later Days ask again** (contract §8 3e). *Stated* in the handover, as 3e asks.
9. **The icon is the placeholder.** *Unchanged* (G-T9). The real one comes through `docs/ART.md`.
## Soul, privacy, reachability, offline
- **Soul:** nothing the player sees changes. Atrium's grid shows a name, a label and a colour.
- **Privacy:** the file holds the product's name and version only. It names no person, no town and no key. Rosea
reads nothing of Atrium's and sends nothing.
- **Reachability:** none. No IPC was added.
- **Offline:** unchanged.
## Installer
- `pnpm tauri:build` was run with Cargo's target and TEMP under `D:\build\rosea`. It produced
`Rosea Domi_0.1.0_x64-setup.exe` (1.31 MiB, sha256 `63856129ea0a69f1…`).
- The wrapper script reported exit 1, because PowerShell's `ErrorActionPreference = Stop` treats Tauri's first
stderr `Info` line as an error.
- The build itself finished: the installer and `rosea-shell.exe` both date from 23:09.
- The generated `installer.nsi` writes, in `Section Install` with `SetOutPath $INSTDIR`:
- `File "/oname=domi-app.toml"` and `File "/oname=domi-icon.png"`, beside `File "${MAINBINARYSRCPATH}"`
(`MAINBINARYNAME` is `rosea-shell`);
- `DisplayIcon` = `$INSTDIR\rosea-shell.exe` under the per-user key (`INSTALLMODE currentUser`). So the manifest
sits exactly in the folder that APP_CONTRACT §3 says Atrium reads.
- The uninstaller deletes both files.
- `7z l` on the installer lists `rosea-shell.exe`, `domi-app.toml` (189 bytes) and `domi-icon.png`, and nothing
else of Rosea's.
- Extracted with `7z e` into the scratchpad, never installed:
- the shipped `domi-app.toml` is the file above, and Atrium's parser says `ok`;
- `domi-icon.png` starts with the PNG signature and is 4,698 bytes, under the 1 MiB cap.
## Gates (this branch, 2026-11-22)
- `pnpm test`: **642 passed**. By package: cpu-guard 13, identity 5, schema 19, content 88, storage 70,
art-prep 80, release 8, engine 179, tauri 92 (58 before + 34 new), ui 88.
- The first full run had `@rosea/tauri` fail under turbo, though all its files reported passing. It did not
happen again: the package's own run and a second full run were both green. *Not explained*, and stated here.
- `pnpm lint`: clean, after adding `.fabrica/runs/**` to the ESLint ignores. Fabrica's git-ignored run records
carry its own `reporter.cjs`, which ESLint was reading (six errors, none in Rosea's code).
- `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems. `pnpm validate:library`: 13 of 13 fixtures rejected.
- **Not rerun:** `test:e2e` and `test:offline`. Nothing the browser runs changed: the game is the same, and only
the Windows bundle gains two files. `fabrica artifex check` was also not rerun, since `.fabrica/` is unchanged.
## Not verified
- Atrium Domi showing Rosea in its grid: that needs an installed Rosea and an installed Atrium Domi on this PC. The
installer writes the real HKCU uninstall entry (as G-F4), so it was not run.
+112
View File
@@ -0,0 +1,112 @@
# Review: `feature/domi-ui` (2026-11-23)
Analysis: [`../features/domi-ui.md`](../features/domi-ui.md). Rosea's buttons and her town search take `@domi/ui`'s
look, from a vendored copy. The copy is **v1.5.0, CPAL-1.0**, made by the design system's `tools/vendor.mjs` into `packages/domi-ui`. Aula's
hold was lifted with that tag; v1.0.1, the copy first tried here, never left this machine.
## Before and after
`ROSEA_LOOK=before|after pnpm look:shots` made the pictures: 28 of each (light and dark × phone and desktop × seven
screens), from the BUILT app, `main` 60a9f14 against this branch. They are in the PR, not in git.
## What Mark should look at: where the carved look meets Rosea's art rules
Her art rules (docs/ART.md, art/STYLE.md) are not changed. These are the places where the new look and her old look
differ, for him to judge:
1. **The rose colour leaves the buttons.**
- Her ordinary buttons were outlined in `--rose`. They are now @domi/ui's neutral plate: warm grey on parchment,
dark stone at night.
- Her quiet buttons were underlined words in `--rose`. They are now plain words in `--domi-fg-2`, bold, with no
underline.
- Rose now shows only on focus, on the leaf (*Done* on the first screen), and on the search seal.
2. **A heavier, more formal type in the controls.** The labels are bold (600) in her system face, where her text
around them is regular. The field's label *Town or city* is bold too.
3. **Two control styles on the first screen.** The gardener's choices stay her soft rose chips (D8). The *Done*
below them is a gilded leaf.
4. **Taller rows on a phone.** Every control is at least 48 px under a finger, so *Change gardener* now wraps to a
line of its own under *Her numbers* and *Keep her safe*, with more air around it.
5. **Dusk.** On the sunset scene the plate is recoloured locally to evening glass with the sunset's gold edge (D5).
It is the one place with colours that are not @domi/ui's.
6. **The glint and the strike** (a light sweep and a press ring) animate on press. With reduced motion on, Rosea's
own rule turns every transition off, as before.
## Findings
1. **`Button` drops `onkeydown` and `onblur` passed to it.** Its own handlers come after `{...rest}`.
- In Rosea that broke three things: the pour by a held Space, the stop on blur, and *a held key is one touch*.
The unit tests caught all three.
- *Fixed upstream:* PR mnovak/domi-design#18 from here, reviewed and released in @domi/ui 1.4.0. Its two tests
fail on the old Button. Water and Touch her are `Button` again; until 1.4.0 they were markup (D3). *Move the
chair* became `Button` with 1.5.0's `bind:element`. Without the binding, the focus test fails (drill).
2. **Every `Button` carries its own `role="status"` region.** Rosea's tests that asked for "the" status found
several. *Fixed in the tests* (`test/said.ts`, and one e2e locator), not in the vendored code. Rosea never hands
a button a Promise (D2), so these regions stay empty and say nothing.
3. **The design system's English** ("Working", "Done", "Searched", "Could not search") would reach the player
through a Promise or a search.
- *Prevented* by D2 and `sentText=""`.
- The seal's name is Rosea's own copy: *Search towns*.
- `lint:copy` now reads 46 files, including the vendored folder: 0 problems.
4. **A row of shared buttons does not wrap.** Their words stay on one line, and Rosea's links row had no
`flex-wrap`, so on a 360 px phone it pushed the whole page sideways. The first after pictures showed it.
- *Fixed:* `.more`, `.actions` and `.choices` wrap.
5. **svelte-check could not type `Strike.svelte`** in v1.0.1, a component with no script. The first build here
added `allowJs`. v1.0.4 gives it a script upstream, so `allowJs` is gone again: no change to Rosea's tsconfigs.
6. **ESLint flagged three rules in the vendored `TextField.svelte`.** *Skipped:* `packages/domi-ui` is ignored,
linted upstream, and never edited here.
7. **The licence.**
- v1.0.1 was `UNLICENSED` and v1.0.2 MPL-2.0; neither left this machine.
- The copy now is **v1.5.0**, made by the design system's own `tools/vendor.mjs`. It refuses any tag before the
CPAL-1.0 v1.0.3, and writes `LICENSE`, `NOTICE`, `VERSION` and a `package.json` without scripts. It lives in
`packages/domi-ui` as `@domi/ui` (`workspace:*`).
- The three font packages arrive as its npm dependencies (OFL). Rosea imports none, and `dist/` has no font
file (counted: 0).
8. **The credit** (D9) is `<DomiCredit link={false} />`, added in 1.4.0 from this request. Without it, the web
address is a link that opens a new window. A tap must not carry the player out of an offline garden; on Android, with no internet,
it would lead into a page that never loads. Mark approved the line (via the Aula session): one quiet line on
every launch, never a splash.
- It stands at the foot of every screen: the first open, the garden and the Letter.
- A unit test holds the exact words and that no link to the address exists. The drill: without the line on
the garden, that test failed.
- The tension with CLAUDE.md's *Domi never appears alone* is Mark's to reconcile in his file. The phrase is the
licence's.
9. **The README** says what §6a asks: *Contains @domi/ui (CPAL-1.0, …), in `packages/domi-ui`*. It now names the
public-domain sources of the candidate sentences and the origin of the placeholder art, as the domi-licence
session asked. `tauri.conf.json` declares `"license": "CPAL-1.0"` for the bundles.
10. **Android's Autofill request.** v1.1.0's `TextField as="auto"` draws an editable box on Android, so focusing
the town field no longer makes the WebView ask Google's Autofill service. That request is made by the system's
service, not Rosea's process, so her missing `INTERNET` permission never stopped it. *Fixed (D10)*, with two
unit tests (Android: no native field; elsewhere: the native search field), and the drill fails without it.
The Aula pictures' phone uses an Android user agent, so they type into the editable box in a real browser.
*Not measured on the Wave 10:* the release APK's next phone run should watch for the Autofill request.
## Soul, privacy, reachability, offline
- **Soul:** no words changed except the seal's name, and no gesture changed. The look is Mark's call (above).
- **Privacy:** nothing new leaves the device. The vendored CSS is bundled, with no font files and no requests;
the e2e suite fails on any request outside the origin.
- **Reachability:** none.
- **Offline:** `pnpm test:offline` 1 passed.
## Gates (this branch, v1.5.0, 2026-11-23)
- `pnpm test`: **646 passed**. By package: cpu-guard 13, schema 19, identity 5, release 8, storage 70, content 88,
art-prep 80, tauri 92, ui 92 (88 before, plus 2 credit tests and 2 Android-field tests), engine 179.
- `pnpm lint`, `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems. `pnpm validate:library`: 13 of 13
fixtures rejected.
- `pnpm test:e2e`: **26 passed** against the built app, axe included. `pnpm test:offline`: **1 passed**. The Aula
pictures: **2 passed**; their phone has an Android user agent and types into the editable box.
- No font file in `dist/`. `pnpm look:shots`: 28 pictures after, compared with the 28 before.
- v1.5.0 (*Move the chair* as `Button`): the same counts again: 646 tests, e2e 26, offline 1. The pictures were not
retaken: the button renders the same classes and label as the markup it replaces.
- Drills, each restored after:
- without the credit on the garden, the credit test fails;
- with `DomiCredit`'s link back on, it fails;
- with a native town field on Android, the Android test fails;
- domi-design's two Button tests fail on the old Button.
## Not verified
- The Android and Windows apps: same game, same CSS. Not rebuilt.
- A screen reader. The roles and names are checked by the tests and axe, not heard.
+162
View File
@@ -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.
@@ -0,0 +1,95 @@
# Review — `feature/keep-her-safe-apps`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/keep-her-safe-apps.md`](../features/keep-her-safe-apps.md).
Reviewed 2026-11-17 on Windows 10, Node 22.23.4, Tauri CLI 2.12.5, WebView2 157; the Android tablet is
the WAVE 10C (Android 16, WebView 140). Closes the release blocker G-T4 found in
[`feature-tauri-platforms.md`](feature-tauri-platforms.md) finding 1. No PR: the only remote is Gitea.
## What changed for the player
- **In the Android and Windows apps**, *Keep her safe* says *She lives in this app, on this device,
until the app is removed. A saved file keeps her anywhere.* The browser sentences, *Ask the browser
to keep her* and the iPhone install hint are gone there; `persist()` is no longer asked.
- **On Android**, *Save her to a file* opens Android's own save screen. When the file is written the
garden says *She is in that file now.*; a player who steps back hears nothing.
- **The PWA is unchanged** (its words, its download; the e2e suite still passes).
## Gates
Run on the branch head (based on `main` 0b72ae0, with the planet garden), 2026-11-17:
| Gate | Result |
|:--|:--|
| `pnpm lint`, `pnpm typecheck` | 0 problems (svelte-check: 0 errors, 0 warnings, after finding 5) |
| `pnpm lint:copy` | 0 problems |
| `pnpm validate:library` | 13 of 13 fixtures rejected; 78 candidates |
| `pnpm test` (guard waited 28 s at 100 %, then started at 42 %; rerun after findings 10–12 at 71 %) | **572 passed**: identity 5, schema 19, cpu-guard 13, content 88, storage 70, art-prep 63, engine 179, **tauri 47** (+7), **ui 88** (+4 here) |
| `pnpm test:e2e` | 26 passed |
| `pnpm test:offline` | 1 passed |
| `pnpm tauri:android` | built; Kotlin compiled; `aapt2`: still no permission, no backup |
| `pnpm tauri:build` + `check-garden.ts desktop` | **3 of 3 passed**: the app's words shown, no browser words; *Save her to a file* started a download (`rose-2026-11-17.json`, cancelled by the check) |
| `check-garden.ts android` (WAVE 10C over Wi-Fi adb, unlocked by the author) | **2 of 2 passed after the fixes** (findings 10–12): opened, watered, force-stopped, reopened, still watered; the app's words; *Save her to a file* → Android's save screen → *She is in that file now.*; *Bring her back from a file* → Android's picker → *Everything in that file is already here.*; the test file removed from `Download`, the app stopped. Earlier runs: 1 failed on the adb server, 3 on findings 11 and 12. |
**The app changed** (CLAUDE.md §5.4): the apps' *Keep her safe*. Rebuilt; **not deployed or
distributed** (G0.13; the apps exist on this machine only).
## Bug drills
| Put back | Result |
|:--|:--|
| `KeepSafe` ignores where she lives (browser words in the app) | CAUGHT |
| The app still asks the browser to keep her | CAUGHT |
| *She is in that file now.* said whatever the answer | CAUGHT |
| The app words speak of a browser | CAUGHT |
| The Kotlin interface renamed (`roseFile`) | CAUGHT |
| The Kotlin answers on another event | CAUGHT |
| The file-name rule lets any `.json` through | CAUGHT (by *accepts the file name the garden gives … and nothing else*) |
| `@Keep` dropped from the bridge class | CAUGHT |
| The game takes any answer but `false` as success | CAUGHT |
| `android.ts check` with Tauri's own `MainActivity` | CAUGHT (exit 1; `apply` puts Rosea's back, exit 0) |
| The page no longer kept between the bars (listener renamed; padding dropped) | CAUGHT, both — after the first test **missed** the renamed call (it matched a substring; tightened to the exact call and padding) |
| The bars' paper drifts from `tokens.css` | CAUGHT |
**Not drilled, and nothing off the device would catch it:** the 8 MB limit and one save at a time
(Kotlin only); `evaluateJavascript` being blocked by the page's CSP (only the device run shows the
answer arriving).
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | **Soul** | The release blocker itself: words of fear and a remedy that did nothing (G-T4). | Fixed: true words in the apps, a working save on Android, a quiet confirmation. |
| 2 | Soul | Should a cancelled save say something (*Nothing was saved.*)? | No: stepping back is the player's choice; commenting on it would scold. The earlier *saved* word is cleared, so nothing false stays on screen. |
| 3 | Privacy | The bridge is a JavaScript interface any script in the WebView could call. | Only the game's page runs there (no network, `'self'` CSP). The bridge accepts only `rose-YYYY-MM-DD.json` and up to 8 MB, and can only open a screen the player must confirm. |
| 4 | Privacy | The player may choose a cloud folder in Android's save screen. | Their choice, made in the system's own screen; the file never holds the town (keep-her-safe.md K4). The game still has no `INTERNET`. |
| 5 | Correctness | svelte-check warned that `inApp` read `wiring` once (`state_referenced_locally`). | `$derived`; 0 warnings. |
| 6 | Test honesty | The desktop check failed twice reading *Her numbers* after the restart: it pressed before her care had been read back (the planet garden made the first paint earlier). | The check waits for her picture, then presses until the button says it is open, never pressing an open one; then 3 of 3 passed. |
| 7 | Correctness | Two quick taps on *Save* while Android's screen opens. | The game returns the same pending promise; Kotlin ignores a second call while busy. Not tried on the device. |
| 8 | Scope | iOS (WKWebView) will need its own save. | G-T1; noted in the analysis. |
| 9 | Process | The tablet was asleep behind a secure lock when the device check was due. | Waited for the author to unlock it; nothing was bypassed. |
| 10 | **Design** | Seen on the tablet's screenshot: the app drew **under Android's system bars** — the clock over the title, the navigation bar over *Bring her back from a file*. Tauri's stock activity turns edge-to-edge on and leaves the page under the bars. | Rosea's `MainActivity` keeps the page between the bars and paints them with the garden's paper, light or dark with the system (as Culina does); a test holds the colours equal to `tokens.css`; seen fixed on the tablet (dark theme). |
| 11 | Test honesty | The check tapped the picker's file while the screen was still sliding in. | It taps only a node that stands still across two readings. |
| 12 | Test honesty | The check matched a node by its description too, and DocumentsUI's *Preview the file …* button comes first: it opened a preview, not the file, and the check failed for a reason that was the check's own. | The file is chosen by its own text only. Found by a probe that did the steps by hand and succeeded. |
| 13 | Process | Git Bash rewrites `/sdcard/…` arguments to Windows paths for `adb shell` typed by hand. | `MSYS_NO_PATHCONV=1` for hand-typed adb; the check passes arguments from Node and is not affected. Lesson in process.md. |
| 14 | Process | The USB link hung `adb install`; the same tablet was reachable over Wi-Fi adb (another session's connection on the shared adb server). | Installed and checked over Wi-Fi; nothing in the other session's state was changed. |
## Correctness
- **Second run**: `android.ts apply` copies the activity each time; `check` compares bytes.
- **App closed mid-save**: the file is written on Android's side only after the player presses Save;
if the app dies before the answer, the promise never resolves and the garden simply says nothing
(the next visit is fresh). Not tried.
- **Two tabs**: an app has one window.
## Reachability, offline
Nothing reaches anyone. The save and the picker work with no network (the app has none).
## What was NOT verified
- iOS, macOS, Linux.
- A minified release APK (the `@Keep` is checked in source only).
- Saving to a cloud folder or a memory card; Android versions other than 16.
- Bringing back a file made on *another* device (the round trip used the same tablet, so it answered *already here*; the merge itself is storage's, tested in keep-her-safe.md).
- The light theme's bars on the tablet (seen in the dark theme only; the colour is tested).
- Bringing her back on Windows (WebView2's file dialog was not driven).
+34
View File
@@ -0,0 +1,34 @@
# Review — `fix/installer-name`
**What:** the Windows installer is published as `RoseaDomi_<version>_x64-setup.exe`, not
`Rosea Domi_<version>_x64-setup.exe`. Aula makes an installer public only when its name matches
`[A-Za-z0-9._-]+-setup.exe` (Aula docs/14_feed.md), which is also the form Atrium Domi expects. So v0.1.1's
installer never appeared on Aula, while its APK did (reported by Aula, 2026-12-02).
**How:** `tauri build` still names the file after `productName`. Then `scripts/installer-name.ts` renames it,
in the same `build:desktop` command, before the release's `desktop` step collects `*-setup.exe`. The names and the
pattern live in `src/installer-name.ts`, where the test can reach them without a build.
## Findings
1. **Why not change `productName`?** It is also the window title, the install folder and the uninstall
entry Atrium finds her by. A new `productName` would make the next installer a second app beside the
first, and a player who updates would have two roses. Only the file is renamed. *Not done:* the
installer's own wizard text still says "Rosea Domi", which is right.
2. **An older installer left in the folder.** The release step publishes every `*-setup.exe` in
`bundle/nsis/`. The rename deletes any other installer there (build output only) and fails unless exactly
one remains with an accepted name. Tested with an old Tauri-named file and an old renamed one beside the
new one.
3. **The signing steps** (`sign`, `minisign`, `publish`) match `**/*-setup.exe`, so they find the renamed
file. *Not verified until the v0.1.2 hub run.*
4. **Test honesty:** with the space put back (`${PRODUCT_NAME}` unchanged), 4 of the 7 new tests fail
(drill run on D:, then reverted). The `build:desktop` order is pinned by a test, and `domi-app.test.ts` was
loosened only to allow what follows `tauri build`.
5. **AULA.md** names the new file, so a player following the page finds it.
6. **Soul, privacy, reachability, offline:** nothing a player sees inside the game changed.
**Not verified:** a real `tauri build` here (it is the hub's step), and Aula showing the installer once v0.1.2
is published.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, lint:copy 0 problems; `pnpm test` 653 passed (schema 19, identity 5,
release 8, cpu-guard 13, storage 70, content 88, art-prep 80, tauri 99, ui 92, engine 179).
@@ -0,0 +1,19 @@
# Review — `fix/release-first-apk-key`
**What:** the release pipeline's `apk` step no longer lists `keys: [rosea-android]`. The first v0.1.0 run
(`r9j7b2sqmzdjg`) was refused at preflight: "Custos has no key rosea-android (step apk)". Custos 0.25 makes that
key only at its first signature, under Mark's Android grant.
## Findings
1. **Does the step still get its key?** `keys:` is only a preflight check (Fabrica docs/23_preflight.md: "Preflight
checks that such a key exists; its scope is the script's to state"). `sign-apk.ts` still asks custos-sign for
`rosea-android`, scoped to `mnovak/Rosea` and the `release` pipeline, and `sign-apk.test.ts` still pins that.
Culina's and Medicus's pipelines leave the key out for the same reason.
2. **What is lost:** after the first release, a missing key is caught at the `apk` step, not seconds before the
build. *Deferred:* put `keys: [rosea-android]` back once the key exists, after v0.1.x is published.
3. **Soul, privacy, reachability, offline:** no code that reaches a player changed.
4. **Test honesty:** `fabrica artifex check` passes (2 pipelines, 0 problems). Nothing tests the preflight list.
What proves it is the next hub run getting past preflight, which is not yet run.
**Scope:** one YAML step, its header comment, and A6 in `android-release-apk.md`.
@@ -0,0 +1,29 @@
# Review — `fix/rosea-domi-android-key`
**What:** the APK is signed with Mark's Custos key `rosea-domi-android`, not `rosea-android`.
Mark made the key himself under that name and keeps it (relayed by Aula, 2026-12-02). Two release runs
of v0.1.0 (`r9j7b2sqmzdjg`, `rwyv2j3bazfv9`) were refused at preflight for `rosea-android`, a key
that was never made.
**Changed:** `APK_KEY` in `sign-apk.ts` and its test. The `apk` step now lists `keys: [rosea-domi-android]`
again: the key exists, so preflight can check it (PR #10 removed the list only because the key didn't
exist yet). The pipeline header, A6 in `android-release-apk.md`, `fabrica-release.md`, GAP G-F7,
FEATURES and HANDOVER use the new name. Earlier reviews and lessons keep the old one as history.
## Findings
1. **The name is forever.** An APK signed with this key *is* Rosea on Android. No APK has been signed with
either name yet (G-F7 is still open), so changing it now costs no player anything. After v0.1.1 it can
never change again. The comment in `sign-apk.ts` says so.
2. **Scope.** custos-sign still asks for `mnovak/Rosea`, the `release` pipeline and a tag. Whether Mark's key
allows that scope is Custos's to check at the card. *Not verified here*, since this session can't see the
vault. If the scope differs, the `apk` step fails at signing, not at preflight.
3. **Does the test fail on the old name?** `sign-apk.test.ts` pins `--key rosea-domi-android` and
`APK_KEY`. Putting `'rosea-android'` back fails both assertions.
4. **Soul, privacy, reachability, offline:** nothing a player sees changed.
5. **Not verified:** that preflight passes with the new name. That is shown only by the v0.1.1 run on the hub.
**Scope:** one constant, its test, one pipeline step and the docs that name the key.
**Gate (D:, 2026-12-02):** lint 0, typecheck 0, `pnpm test` 646 passed (schema 19, identity 5, release 8,
cpu-guard 13, storage 70, content 88, art-prep 80, tauri 92, ui 92, engine 179); `fabrica artifex check` 0 problems.
+16
View File
@@ -0,0 +1,16 @@
# Rosea Domi declares itself to Fabrica (.agents/features/fabrica-release.md; Fabrica core docs/FORMATS.md,
# "Fabrica: the app"). One part: the release pipeline makes the Windows installer and the Android APK from one
# tag. No server part: the PWA's host is still the author's question (GAP_ANALYSIS G0.13), and a server part is
# a NixOS module on the server, not this repository's (F2). The colour is --rose.
# aula: true means the releases carry Aula's kit. The page appears on Aula only once the server's
# modules/aula.nix lists Rosea. The author decided to publish on 2026-11-25 and removed the look's legal check
# (GAP_ANALYSIS G6.1, G-F1; fabrica-release.md F1).
name: Rosea
icon: flower
color: "#b4485e"
aula: true
tagPrefix: v
parts:
desktop:
pipeline: release
check: node scripts/check-version.mjs
+34
View File
@@ -0,0 +1,34 @@
# 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
- id: build
needs: [install]
run: pnpm build
- id: web
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/**"]
+110
View File
@@ -0,0 +1,110 @@
# Rosea Domi: one release, both apps (.agents/features/fabrica-release.md; Fabrica docs/36_app_onboarding.md).
# A `vX.Y.Z` tag (Fabrica: Apps → Rosea → Deploy, or `fabrica deploy rosea --part desktop`) is started on the hub.
# The Windows runner (the Fabrica app on Mark's PC, whose folder is on every step's PATH, so `fabrica` is its own
# 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-domi-android (Mark's key in Custos); a minisign
# signature for each (domi-release); the release with SHA256SUMS signed by domi-release.
# No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates
# through Fabrica's Update all; a player installs the next file over the old one (F3).
# The repository is public, so `publish` is a public release; the author decided to publish on 2026-11-25 (F1).
# Playwright's browsers are in F:\ms-playwright (CLAUDE.md §3: never C:); nothing is downloaded during a release.
name: release
on:
tag: "v*"
manual: true
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 }}
- id: install
run: pnpm install --frozen-lockfile
- id: lint
needs: [install]
run: pnpm lint
- id: typecheck
needs: [install]
run: pnpm typecheck
- id: test
needs: [install]
run: pnpm test
- id: library
needs: [install]
run: pnpm validate:library
- id: copy
needs: [install]
run: pnpm lint:copy
- id: e2e
needs: [lint, typecheck, test, library, copy]
run: pnpm test:e2e
- id: offline
needs: [e2e]
run: pnpm test:offline
- id: pictures
needs: [offline]
run: pnpm aula:shots
- id: desktop
needs: [offline]
run: pnpm tauri:build
artifacts: ["apps/rosea-tauri/src-tauri/target/release/bundle/nsis/*-setup.exe"]
- id: android
needs: [desktop]
run: pnpm tauri:android-release
- id: notes
run: fabrica notes
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
- id: notes-copy
needs: [notes, install]
run: pnpm lint:copy
- id: shots
needs: [pictures]
run: fabrica aula shots
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
- id: page
needs: [notes-copy, shots]
run: fabrica aula page
artifacts: ["target/aula/aula-page.json", "target/aula/aula-page.html"]
- id: approve
needs: [version, desktop, android, page]
approve: "Release Rosea ${{ tag }}?"
- id: sign
needs: [approve]
sign:
key: domi-code-signing
kind: authenticode
files: ["**/*-setup.exe"]
- id: apk
needs: [approve]
# The key is Mark's `rosea-domi-android` in Custos (made by him; 2026-12-02), so preflight checks it again. The
# name `rosea-android` was never made: runs r9j7b2sqmzdjg and rwyv2j3bazfv9 were refused for it.
run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }}
keys: [rosea-domi-android]
artifacts: ["target/release/rosea-domi-*-arm64.apk"]
- id: minisign
needs: [sign, apk]
sign:
key: domi-release
kind: minisign
files: ["**/*-setup.exe", "**/rosea-domi-*-arm64.apk"]
- id: publish
needs: [minisign]
publish:
gitea-release: true
files:
- "**/*-setup.exe"
- "**/*-setup.exe.minisig"
- "**/rosea-domi-*-arm64.apk"
- "**/rosea-domi-*-arm64.apk.minisig"
- "target/aula/aula-*.png"
- "target/aula/aula.json"
- "target/aula/aula-page.json"
- "**/release-notes.md"
- "**/release-notes.json"
sums: domi-release
+39
View File
@@ -0,0 +1,39 @@
# Rosea's pictures for its Aula page (fabrica-release.md F7; Fabrica docs/19_web_shots.md). All are taken by the
# app's own Playwright run (`pnpm aula:shots`, e2e/aula.spec.ts) from the BUILT PWA on demo data the game itself
# made: an invented rose watered once a day for two weeks in March 2026, in Prague, with the gardener's first look.
# `fabrica aula shots` checks and publishes the files; it starts no browser of its own (the PWA lives under
# /Rosea/, and Fabrica's server serves at /). No iPhone pictures: there is no iOS app yet (G-T1).
size: [1280, 800]
shots:
- name: garden
title: Her planet after two weeks of care
section: In a browser or on Windows
file: e2e/aula/garden.png
- name: ring
title: What she needs today
section: In a browser or on Windows
file: e2e/aula/ring.png
- name: numbers
title: Her numbers
section: In a browser or on Windows
file: e2e/aula/numbers.png
- name: sunset
title: Move the chair
section: In a browser or on Windows
file: e2e/aula/sunset.png
- name: safe
title: Keep her safe
section: In a browser or on Windows
file: e2e/aula/safe.png
- name: first-open
title: Who tends her?
section: The first open
file: e2e/aula/first-open.png
- name: phone-garden
title: The garden on a phone
section: On a phone
file: e2e/aula/phone-garden.png
- name: phone-ring
title: What she needs, on a phone
section: On a phone
file: e2e/aula/phone-ring.png
+14
View File
@@ -0,0 +1,14 @@
A small game about a living rose, a fox, and the time we give to people. An early version.
You tend one rose on a round tiny planet of her own. Water her by feel, pull the weeds, gather her fallen petals, shade her from the wind. She grows from the days on which you cared for her, never from a streak, and when you are away she waits.
The garden follows the real sun of a town you choose. No account, nothing sent anywhere. The pictures are stand-ins drawn in code until the painted ones are ready.
- garden: Her planet after two weeks of care, with the gardener beside her and tonight's real sunset below.
- ring: A tap on her shows what she needs today.
- numbers: Her numbers: water, warmth, days of care and how she is.
- sunset: Move the chair: a quiet sunset in the garden, with nothing to press.
- safe: Keep her safe: save her to a file, and bring her back on any device.
- first-open: The first open: dress the gardener who tends her.
- phone-garden: The same garden on a phone.
- phone-ring: On a phone, what she needs is one tap away.
+9
View File
@@ -0,0 +1,9 @@
The first release of Rosea Domi, an early version: the rose, her planet and the gardener.
- Tend her by hand or by button: water by feel, pull weeds, gather petals, shade her from the wind, touch her gently.
- She grows from the days on which care helped, never from a streak, and waits when you are away.
- A gardener you dress at the first open, who walks round her planet to the work.
- The real sunset and sunrise of a town you choose, and a quiet sunset in the garden.
- Keep her safe: save her to a file and bring her back on any device.
- A Windows installer and an Android app. Nothing is sent anywhere; the Android app asks for no permission at all.
- The pictures are stand-ins drawn in code until the painted ones are ready.
@@ -0,0 +1,15 @@
---
id: kkpy69
title: Showcase videos of the main flows for the Aula page
status: todo
priority: normal
labels: [showcase, aula]
created: 2026-11-19T01:31:09+01:00
updated: 2026-11-19T01:31:09+01:00
doc: .agents/features/fabrica-release.md
---
Once Fabrica docs/37 (showcase videos: .fabrica/aula.yaml videos:, WebM <= 8 MiB, <= 60 s, <= 6 per release, published as target/aula/aula-<name>.webm under SHA256SUMS) is on Fabrica main, record short videos from e2e/aula.spec.ts on the same demo garden: watering by the can, the ring of care, moving the chair (the in-game sunset), keeping her safe in a file. Add them to aula.yaml videos: and to the release's publish files. Until then a videos: key fails fabrica aula shots (fabrica-release.md F8).
## Log
- 2026-11-19T01:31:09+01:00 mnovak: created
+24
View File
@@ -0,0 +1,24 @@
# 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 (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:
- name: web
kind: web
title: The garden in a browser
project: web
- name: phone
kind: android
title: The Android app on the test phone
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
+9
View File
@@ -37,3 +37,12 @@ packages/schema/src/generated/
dist-tauri/ dist-tauri/
apps/rosea-tauri/src-tauri/gen/ apps/rosea-tauri/src-tauri/gen/
apps/rosea-tauri/src-tauri/icons/ apps/rosea-tauri/src-tauri/icons/
# The domi-app.toml for Atrium Domi, made from the name and version before each desktop build (atrium-adoption.md)
apps/rosea-tauri/src-tauri/atrium/
# The Aula pictures, taken by `pnpm aula:shots` (e2e/aula.spec.ts) and published by Fabrica, never committed
e2e/aula/
# Before-and-after pictures of a change of look (`pnpm look:shots`), never committed
e2e/look/
# Fabrica's records of `fabrica tests run` (run.json, traces): local evidence, quoted in the reviews, never committed
.fabrica/runs/
+45
View File
@@ -0,0 +1,45 @@
# Rosea Domi
*Rosea* (Latin: rose-coloured) is a small game about a living rose, a fox, and the time we give to
people. You tend one rose on a round tiny planet of her own. She grows from the days on which you
cared for her, never from a streak, and when you are away she waits.
**This is an early version.** The rose, her planet and the gardener are here; the fox, the other
planets, friends and the shared sky come later. The pictures are simple stand-ins drawn in code
until the painted ones are ready.
## What you do
- **Tend her by hand.** Tap her to see what she needs today. Tilt the watering can and stop when her
leaves lift: too much is as bad as too little. Pull the weeds, sweep up fallen petals, set the
windbreak against the wind. Every gesture also has a plain button, and works from the keyboard.
- **Choose who tends her.** At the first open you dress your gardener, a boy or a girl.
- **Watch the real sky.** Choose a town near you (or let the device's time zone guess), and the
garden names tonight's real sunset, and after it the real sunrise. *Move the chair* shows a quiet
sunset in the garden, half a minute with nothing to press, then says when the real one is.
- **Her numbers, one tap away.** Water, warmth, days of care and how she is, about her alone.
- **Keep her safe.** Save her to a file and bring her back on any device.
Nothing is lost by being away: no streak resets, no reminders, no counting of anyone.
## Private by construction
There is no account, no email and no password. Everything stays on your device: her care, your town,
your gardener. The game sends nothing anywhere and shows nothing from anywhere else. The Android app
does not even ask for the permission to use the internet.
## Installing
- **Windows:** run `RoseaDomi_<version>_x64-setup.exe`. It installs for you alone, with no
administrator rights.
- **Android:** install the `.apk` (Android 7 or newer). Your phone will ask you to allow installing
apps from where you downloaded it.
- **iPhone, macOS and Linux:** not yet.
Each file is signed: its SHA-256 is in `SHA256SUMS`, and `SHA256SUMS.minisig` is its signature.
## Updating
Install the newer file over the old one, the same way. Your rose stays: she lives with the app on
your device, and a newer version keeps her. Removing the app removes her too, so save her to a file
first (*Her numbers* → *Keep her safe* → *Save her to a file*).
+17 -3
View File
@@ -157,7 +157,8 @@ apps/
# dist-tauri/ for the shell: base /, no service worker, no manifest # dist-tauri/ for the shell: base /, no service worker, no manifest
rosea-tauri/ # the Tauri 2 shell -> @rosea/tauri. Wraps apps/rosea/dist-tauri/; imports no package rosea-tauri/ # the Tauri 2 shell -> @rosea/tauri. Wraps apps/rosea/dist-tauri/; imports no package
src-tauri/ # Rust (a window and nothing else), tauri.conf.json; no capabilities/, so no IPC src-tauri/ # Rust (a window and nothing else), tauri.conf.json; no capabilities/, so no IPC
android/ # what must survive `tauri android init` (gen/ is never committed) android/ # what must survive `tauri android init` (gen/ is never committed): the backup rules,
# and MainActivity.kt (the save bridge; the page kept between the system bars)
scripts/ # icons from apps/rosea/public/icon.svg; the Android privacy patch scripts/ # icons from apps/rosea/public/icon.svg; the Android privacy patch
services/ services/
@@ -204,6 +205,9 @@ apps/rosea-tauri ──► apps/rosea's BUILT output (dist-tauri/) only — no p
- `apps/rosea` contains zero growth, taming or sky logic. It renders what the engine returns. - `apps/rosea` contains zero growth, taming or sky logic. It renders what the engine returns.
- `services/lucerna` must be deletable. If removing it breaks the rose, the planets, the fox, friends - `services/lucerna` must be deletable. If removing it breaks the rose, the planets, the fox, friends
or the sunset, the shared sky has stopped being optional and that is a **blocker**. or the sunset, the shared sky has stopped being optional and that is a **blocker**.
- `.fabrica/` is how Fabrica releases both apps (`fabrica-release.md`): it reads this repository and this
repository imports nothing of Fabrica's. The Windows installer also registers `domi-rosea://` for the
user (an NSIS hook, no Rust code): any such address opens the garden and nothing else.
- `apps/rosea-tauri` must be deletable too: removing it leaves the PWA whole. The game never asks - `apps/rosea-tauri` must be deletable too: removing it leaves the PWA whole. The game never asks
which shell it is in except through one build-time constant, `__ROSEA_SHELL__` (`'web'` or which shell it is in except through one build-time constant, `__ROSEA_SHELL__` (`'web'` or
`'tauri'`), read in `apps/rosea/src/App.svelte` only, for wiring (no service worker; the app counts `'tauri'`), read in `apps/rosea/src/App.svelte` only, for wiring (no service worker; the app counts
@@ -287,6 +291,15 @@ pnpm tauri:ios # macOS + Xcode only — refuses elsewh
pnpm --filter @rosea/tauri test # the shell's tests: config (CSP, name, origin), privacy patch, shell build pnpm --filter @rosea/tauri test # the shell's tests: config (CSP, name, origin), privacy patch, shell build
tsx e2e/apps/check-garden.ts desktop # the built .exe: water her, close, reopen, still watered (temp data folder) tsx e2e/apps/check-garden.ts desktop # the built .exe: water her, close, reopen, still watered (temp data folder)
tsx e2e/apps/check-garden.ts android # the installed APK on the device over adb; `pm clear`s the TEST app first tsx e2e/apps/check-garden.ts android # the installed APK on the device over adb; `pm clear`s the TEST app first
pnpm tauri:android-release # the release APK (unsigned; verified with aapt2); Fabrica signs it in Custos
# Released through Fabrica (.fabrica/; .agents/features/fabrica-release.md):
node scripts/check-version.mjs <x.y.z> # the four version files agree; Fabrica's Deploy bumps what it names
pnpm aula:shots # builds, then the Aula pictures on demo data -> e2e/aula/*.png
fabrica artifex check # the pipelines, tests.yaml, aula.yaml and the brief
fabrica tests run --target web # the e2e specs as Fabrica's target (build first)
fabrica tests run --target phone # the debug APK on the test phone, ONLY through Fabrica's phone queue
fabrica deploy rosea --part desktop # a release: bump, tag, the hub's run, Mark's Custos cards (public)
# Not yet — they arrive with their first feature: # Not yet — they arrive with their first feature:
cargo test --manifest-path services/lucerna/Cargo.toml # Phase 4 onward cargo test --manifest-path services/lucerna/Cargo.toml # Phase 4 onward
@@ -596,7 +609,7 @@ No timestamp finer than a day, no precise location, no free text, no link to the
| **Location makes people findable** | Coarse cells next to a sparse population identify a house. Cell size must adapt to density, traces must be delayed and auto-deleted, and stranger contact is consent-only (§5.6). | | **Location makes people findable** | Coarse cells next to a sparse population identify a house. Cell size must adapt to density, traces must be delayed and auto-deleted, and stranger contact is consent-only (§5.6). |
| **The library as a scam channel** | If any field lets a sender attach free text, a lonely recipient can be manipulated. The id-only contract (§6.1) is the defence. | | **The library as a scam channel** | If any field lets a sender attach free text, a lonely recipient can be manipulated. The id-only contract (§6.1) is the defence. |
| **Copyright through the back door** | An image prompt "in the style of" the book's drawings, a fox or rose that looks like the original, or a famous line "paraphrased" too closely. All forbidden (§5.6); the art pipeline checks likeness (`docs/ART.md`). | | **Copyright through the back door** | An image prompt "in the style of" the book's drawings, a fox or rose that looks like the original, or a famous line "paraphrased" too closely. All forbidden (§5.6); the art pipeline checks likeness (`docs/ART.md`). |
| **A child on a small round planet with a rose** *(a risk the author accepted, 2026-11-17)* | It is the book's most recognisable image, and its estate holds trademarks. The author chose it knowingly. Keep every guard (STYLE.md S2, S6, §3b, review points 10–11: the gardener is the player's own, in work clothes, never a scarf, coat, cape, suit or crown; the planet is a cultivated garden, never volcanoes, baobabs or a lone lamp post), and **a legal check of the look comes before any public release** (G6.1). | | **A child on a small round planet with a rose** *(a risk the author accepted, 2026-11-17)* | It is the book's most recognisable image, and its estate holds trademarks. The author chose it knowingly. Keep every guard (STYLE.md S2, S6, §3b, review points 10–11: the gardener is the player's own, in work clothes, never a scarf, coat, cape, suit or crown; the planet is a cultivated garden, never volcanoes, baobabs or a lone lamp post). The legal check of the look that used to come before release (G6.1) was **removed by the author on 2026-11-25**: he releases with the risk accepted, and the guards are now the only defence, so a review that weakens one is a **blocker**. |
| **Medical claims in a store listing** | One word like *heal* in marketing copy can pull the product toward medical-device rules. `lint:copy` also runs on store text kept in the repo. | | **Medical claims in a store listing** | One word like *heal* in marketing copy can pull the product toward medical-device rules. `lint:copy` also runs on store text kept in the repo. |
| **IndexedDB is evictable** *(predicted; answered by `keep-her-safe.md`)* | WebKit can discard origin storage after seven days without interaction — exactly the shape of a player who drifted away and comes back. Call `navigator.storage.persist()` where it exists, prompt iOS players to install, and make export-my-rose a first-class feature. A player returning to find their rose gone is the cruellest bug this product could have. | | **IndexedDB is evictable** *(predicted; answered by `keep-her-safe.md`)* | WebKit can discard origin storage after seven days without interaction — exactly the shape of a player who drifted away and comes back. Call `navigator.storage.persist()` where it exists, prompt iOS players to install, and make export-my-rose a first-class feature. A player returning to find their rose gone is the cruellest bug this product could have. |
| **The stale service worker** *(answered by `calm-refresh.md`)* | A precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer an explicit, calm *refresh* control. | | **The stale service worker** *(answered by `calm-refresh.md`)* | A precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer an explicit, calm *refresh* control. |
@@ -609,9 +622,10 @@ No timestamp finer than a day, no precise location, no free text, no link to the
| **Base path in the shell** *(measured 2026-11-17)* | The PWA lives under `/Rosea/`; Tauri serves the game at the root of its own origin (`https://tauri.localhost/` on Windows and Android with `useHttpsScheme`, `tauri://localhost/` on macOS and iOS). A shell build with base `/Rosea/` would ask for `/Rosea/assets/…` and open a blank window. The shell's copy is built with base `/` into its own folder, so the two can never be mixed up; measured: the garden opens at `https://tauri.localhost/` on Windows and on Android. | | **Base path in the shell** *(measured 2026-11-17)* | The PWA lives under `/Rosea/`; Tauri serves the game at the root of its own origin (`https://tauri.localhost/` on Windows and Android with `useHttpsScheme`, `tauri://localhost/` on macOS and iOS). A shell build with base `/Rosea/` would ask for `/Rosea/assets/…` and open a blank window. The shell's copy is built with base `/` into its own folder, so the two can never be mixed up; measured: the garden opens at `https://tauri.localhost/` on Windows and on Android. |
| **A service worker inside a webview** *(answered 2026-11-17)* | Inside Tauri the files are already on the device; a worker would cache a second copy, could serve a stale game after an app update, and *A new version of the garden is ready* would offer a refresh that fetches nothing. The shell's build has no worker and no manifest: `vite-plugin-pwa` is disabled there and `registerSW` is its no-op. Measured: no registration in either app. | | **A service worker inside a webview** *(answered 2026-11-17)* | Inside Tauri the files are already on the device; a worker would cache a second copy, could serve a stale game after an app update, and *A new version of the garden is ready* would offer a refresh that fetches nothing. The shell's build has no worker and no manifest: `vite-plugin-pwa` is disabled there and `registerSW` is its no-op. Measured: no registration in either app. |
| **Two content-security policies** *(conflict predicted; the answer measured 2026-11-17)* | The PWA carries its policy in a `<meta>` tag (Pages sends no headers). Tauri can deliver its own policy and adds hashes for the scripts it injects; a page with **both** obeys both, and the `<meta>` would block what Tauri adds. So the shell's build has no `<meta>` policy and Tauri delivers the same string, held equal by `apps/rosea-tauri` test. Measured: no CSP violation and no request outside the origin, on Windows and on Android. | | **Two content-security policies** *(conflict predicted; the answer measured 2026-11-17)* | The PWA carries its policy in a `<meta>` tag (Pages sends no headers). Tauri can deliver its own policy and adds hashes for the scripts it injects; a page with **both** obeys both, and the `<meta>` would block what Tauri adds. So the shell's build has no `<meta>` policy and Tauri delivers the same string, held equal by `apps/rosea-tauri` test. Measured: no CSP violation and no request outside the origin, on Windows and on Android. |
| **IndexedDB eviction in a webview** *(partly measured 2026-11-17)* | WebView2 and Android WebView are Chromium: best-effort storage can be cleared under disk pressure, and an app's data is wiped on uninstall (the Windows uninstaller offers to delete app data). WKWebView on iOS may purge website data of an app that is not used. `persist()` answers `false` in WebView2 and in Android WebView (measured). *Keep her safe* is the real defence — and on Android saving a file through `<a download>` **does nothing** (measured on the tablet), while the words still speak of *this browser*: a release blocker (`tauri-platforms.md` G-T4). | | **IndexedDB eviction in a webview** *(partly measured 2026-11-17)* | WebView2 and Android WebView are Chromium: best-effort storage can be cleared under disk pressure, and an app's data is wiped on uninstall (the Windows uninstaller offers to delete app data). WKWebView on iOS may purge website data of an app that is not used. `persist()` answers `false` in WebView2 and in Android WebView (measured). *Keep her safe* is the real defence. In the apps it speaks of the app, not a browser, and on Android it saves through Android's own save screen, because `<a download>` does nothing in Android WebView (measured; `keep-her-safe-apps.md`). |
| **The webview phones home** *(measured in Amicitia, 2026-11-08; here: Android closed by construction, Windows unmeasured)* | A webview talks to its maker on its own: WebView2 to Microsoft and DNS-over-HTTPS providers, Android WebView to Google's metrics and an Autofill server as soon as a field takes focus. Desktop: `additionalBrowserArgs` switches these off (undocumented feature names a runtime update can break). Android: no `INTERNET` permission at all while Rosea has no network feature, plus metrics and Safe Browsing off in the manifest, applied by a committed patch because `gen/` is regenerated. Measure on every release build. | | **The webview phones home** *(measured in Amicitia, 2026-11-08; here: Android closed by construction, Windows unmeasured)* | A webview talks to its maker on its own: WebView2 to Microsoft and DNS-over-HTTPS providers, Android WebView to Google's metrics and an Autofill server as soon as a field takes focus. Desktop: `additionalBrowserArgs` switches these off (undocumented feature names a runtime update can break). Android: no `INTERNET` permission at all while Rosea has no network feature, plus metrics and Safe Browsing off in the manifest, applied by a committed patch because `gen/` is regenerated. Measure on every release build. |
| **Auto Backup sends the garden to a cloud** *(answered 2026-11-17)* | A stock Tauri Android manifest lets Android copy the app's data — the care log, the keys, the chosen town — to the player's cloud backup, without the player choosing it. The patch sets `allowBackup="false"` and excludes every domain from cloud backup and device transfer; *Keep her safe* is how a rose moves. Measured: the installed package carries no `ALLOW_BACKUP` flag and no `INTERNET` permission (`dumpsys package`); `pnpm tauri:android` checks the APK itself with `aapt2`. | | **Auto Backup sends the garden to a cloud** *(answered 2026-11-17)* | A stock Tauri Android manifest lets Android copy the app's data — the care log, the keys, the chosen town — to the player's cloud backup, without the player choosing it. The patch sets `allowBackup="false"` and excludes every domain from cloud backup and device transfer; *Keep her safe* is how a rose moves. Measured: the installed package carries no `ALLOW_BACKUP` flag and no `INTERNET` permission (`dumpsys package`); `pnpm tauri:android` checks the APK itself with `aapt2`. |
| **Android draws under the system bars** *(measured 2026-11-17)* | Tauri's stock activity turns edge-to-edge on, and the WebView does not reliably report the bars as `env(safe-area-inset-*)`: the clock sat over the title, the navigation bar over a button. Rosea's own `MainActivity` (`apps/rosea-tauri/android/java/`, copied into `gen/` by `android.ts`) keeps the page between the bars and paints them with `--paper`. |
| **iOS cannot be built on Windows** *(known)* | `tauri ios init` and every iOS build need macOS and Xcode; installing on a phone needs an Apple developer account (free for one's own device, paid for TestFlight and the App Store). `pnpm tauri:ios` refuses on Windows with this reason. | | **iOS cannot be built on Windows** *(known)* | `tauri ios init` and every iOS build need macOS and Xcode; installing on a phone needs an Apple developer account (free for one's own device, paid for TestFlight and the App Store). `pnpm tauri:ios` refuses on Windows with this reason. |
| **The bundle identifier and the origin are forever** | An Android `applicationId` or iOS bundle id cannot change after a release without becoming a different app: the old one keeps the player's rose, the new one starts empty. Chosen once (`cz.mareknovak.domi.rosea`), before the first release, even though the product name may still change. The same holds for `useHttpsScheme` (`true`): flipping it changes the webview's origin, and IndexedDB is per origin, so the rose is left behind. The shell's test pins both. | | **The bundle identifier and the origin are forever** | An Android `applicationId` or iOS bundle id cannot change after a release without becoming a different app: the old one keeps the player's rose, the new one starts empty. Chosen once (`cz.mareknovak.domi.rosea`), before the first release, even though the product name may still change. The same holds for `useHttpsScheme` (`true`): flipping it changes the webview's origin, and IndexedDB is per origin, so the rose is left behind. The shell's test pins both. |
+126 -8
View File
@@ -2,7 +2,116 @@
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-12-02: v0.1.1, the first release
- **Published:** https://gitea.marek-novak.cz/mnovak/Rosea/releases/tag/v0.1.1, by the hub's release run `r59y647cfcpw9` at `18b6c81`.
- Windows: `Rosea Domi_0.1.1_x64-setup.exe`, Authenticode with `domi-code-signing`.
- Android: `rosea-domi-0.1.1-arm64.apk`, signed with **`rosea-domi-android`**, Mark's key in Custos. It is Rosea on
Android for good: every later APK must be signed with it.
- Each file has a minisig, and SHA256SUMS is signed with `domi-release`. The notes and 9 Aula pictures are attached.
- Mark's cards: one code (932 135) covered `sign` and `minisign`. The `apk` step raised none.
- **How it got there:**
- G6.1 (the legal check of the look) was removed by Mark's own words on 2026-11-25 (PR #9).
- @domi/ui went in after its phone test on the Wave 10 through Fabrica's queue (PR #8; run `20261125-133208-trjl`).
- The `apk` step's preflight list first named a key that didn't exist (PR #10). Mark's key is
`rosea-domi-android` (PR #11).
- v0.1.0 is a tag on `8d7027c` only. Its runs (`r9j7b2sqmzdjg`, `rwyv2j3bazfv9`) were refused at preflight, and
nothing was published under it.
- **Dispatching:** the hub doesn't start a release on a tag push. Dispatch it with `POST /api/runs`
`{"repo":"mnovak/Rosea","pipeline":"release","ref":"vX.Y.Z"}`, with the token from
`custos-claude get fabrica-hub-token` held in a variable and never printed. Or use `fabrica deploy rosea`, which
bumps, tags and follows.
- **Still open:** the Aula page needs the server's `modules/aula.nix` to list Rosea (not this repository's). The PWA
has no host (G0.13). iOS needs a Mac (G-T1).
- **The 90 % rule (Mark, 2026-11-25):** no build or test while CPU or RAM is at 90 % or more. Drives: 90 % at first,
95 % for D:, E: and F: from 2026-12-02. Check first and wait. It is not in CLAUDE.md yet: that needs Mark's own yes
in this repository's session.
## Earlier — 2026-11-23: @domi/ui, the shared look, and the credit
- **`feature/domi-ui`**: Rosea's buttons and her town search wear @domi/ui v1.5.0 (CPAL-1.0). On Android the town field is an editable box, so no Autofill request goes to Google.
- It is vendored unchanged into `packages/domi-ui` by the design system's `tools/vendor.mjs`.
- Her colours, system fonts, art and layout stay.
- The licence credit stands at the foot of every screen, in its exact words, as plain text.
- Analysis: [`.agents/features/domi-ui.md`](.agents/features/domi-ui.md). Review:
[`.agents/reviews/feature-domi-ui.md`](.agents/reviews/feature-domi-ui.md), which lists where the new look
meets her art rules, for Mark.
- Before and after pictures: `ROSEA_LOOK=before|after pnpm look:shots`.
- **To upgrade @domi/ui:** from a domi-design clone, `node tools/vendor.mjs <rosea>/packages/domi-ui <tag>`.
- **The Button fix** went from here to domi-design (PR mnovak/domi-design#18, released in 1.4.0): Water and Touch her
are `Button` again, and *Move the chair* too, with 1.5.0's `bind:element`.
## Earlier — 2026-11-23: the licence
- **`docs/licence`**: Rosea Domi is under **CPAL-1.0** from this commit; earlier commits carried no licence.
- `LICENSE` is the Domi template with the name filled in; `CPAL-1.0` is set in every `package.json` and in
`Cargo.toml`.
- A new `README.md` carries the Exhibit B credit (*Built on Domi* · https://aula.marek-novak.cz · Copyright (c)
2026 Marek Novák).
- Review: [`.agents/reviews/docs-licence.md`](.agents/reviews/docs-licence.md).
- **Mark's:** the in-app credit. It is proposed as one quiet line under the Letter's link and is not built, because
CLAUDE.md says *Domi* never appears alone in public.
- **`feature/domi-ui`** is local and unpushed, waiting for `@domi/ui` v1.0.3 under CPAL-1.0.
## Earlier — 2026-11-22: Atrium step 1, the manifest alone
- **`feature/atrium-door`** ships a `domi-app.toml` next to `rosea-shell.exe` (Windows only):
- the values are `id rosea`, `name Rosea Domi`, `label Rose`, accent `#e8899b`, `free = true`, `hostable = false`;
- it is built from the name constants and the game's version, and never committed;
- Atrium's own parser accepts it, and refuses 27 hostile fixtures with the same codes as Rosea's test.
- Review: [`.agents/reviews/feature-atrium-door.md`](.agents/reviews/feature-atrium-door.md).
- **No door** (contract v0.1 §8 3e). By Mark's ruling, CLAUDE.md §2 (*a window and nothing else*) and §4 (*the Rust
side writes no file*) stand. Rosea makes no Canalis call, and Atrium Domi finds her by her uninstall entry and
this file. Later Atrium Days (audit, updates, backup, today) will ask again for the door.
## Earlier — 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-domi-android` at the first
signature (G-F7, unverified).
- **The release:** still waits for Mark's own yes in this session to remove G6.1 from CLAUDE.md. The request
reached this session only through the Aula session, and CLAUDE.md is not edited on a relayed request.
## 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-domi-android` does not exist, and Custos will not make it, because it is not in Custos's
`ANDROID_APPS` (0.22.0 here, 0.24.0 too). This corrects `fabrica-release.md` F4. It needs a Custos change or
Mark's *Create Android key* (G-F7).
- **Still the author's:** publication (G6.1, G-F1).
## 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-domi-android`), `domi-rosea://` from the installer, the pictures on demo data (`pnpm aula:shots`).
Analysis: [`.agents/features/fabrica-release.md`](.agents/features/fabrica-release.md). Review:
[`.agents/reviews/feature-fabrica-release.md`](.agents/reviews/feature-fabrica-release.md).
Rosea is in Fabrica's workspace and `deploy.json` on this PC.
- **No release was made.** The Gitea repository is public, so a release is public, and G6.1 comes
first. The author's choice is open (G-F1): publish anyway, make the repository private first, or wait.
- **Before the first release, in Custos (Mark):** `domi-code-signing` and `domi-release` scoped to
`mnovak/Rosea`; `rosea-domi-android` is made by Custos on the first APK signature; back the vault up.
- **Not run:** the `phone` target (only through Fabrica's phone queue); no installer was run, so
`domi-rosea://` is tested as text only (G-F4).
## Earlier — 2026-10-31 to 2026-11-17
**Done.** **Done.**
@@ -133,13 +242,20 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
(`pnpm tauri:build`) and an **Android debug APK** (`pnpm tauri:android`) were built here; both (`pnpm tauri:build`) and an **Android debug APK** (`pnpm tauri:android`) were built here; both
passed the garden check (watered, closed, reopened, still watered; nothing outside the origin). passed the garden check (watered, closed, reopened, still watered; nothing outside the origin).
The APK asks for no permission, not even `INTERNET`, and allows no backup (checked on the APK and The APK asks for no permission, not even `INTERNET`, and allows no backup (checked on the APK and
on the tablet). **iOS needs a Mac** (G-T1). **No app goes to a player yet:** inside the apps on the tablet). **iOS needs a Mac** (G-T1). *Keep her safe* in the apps was a release blocker
*Keep her safe* speaks of *this browser*, and on Android saving to a file does nothing (G-T4, (G-T4); it is closed, see the next entry. The debug APK and installer are build output on this
a release blocker). The debug APK and installer are build output on this machine, not committed: machine, not committed:
`apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/` and `apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/` and
`apps/rosea-tauri/src-tauri/target/release/bundle/nsis/`. Analysis: `apps/rosea-tauri/src-tauri/target/release/bundle/nsis/`. Analysis:
[`.agents/features/tauri-platforms.md`](.agents/features/tauri-platforms.md). Review: [`.agents/features/tauri-platforms.md`](.agents/features/tauri-platforms.md). Review:
[`.agents/reviews/feature-tauri-platforms.md`](.agents/reviews/feature-tauri-platforms.md). [`.agents/reviews/feature-tauri-platforms.md`](.agents/reviews/feature-tauri-platforms.md).
- **Keep her safe in the apps (2026-11-17):** merged to `main`; closes the release blocker G-T4.
In the apps she *lives in this app, on this device, until the app is removed*; no browser is
asked. On Android *Save her to a file* opens Android's own save screen (a small Kotlin bridge in
`apps/rosea-tauri/android/java/MainActivity.kt`; no plugin, no permission) and the garden says
*She is in that file now.*; bringing her back from that file works. The page now stays between
Android's system bars. Seen on the tablet and on Windows. Review:
[`.agents/reviews/feature-keep-her-safe-apps.md`](.agents/reviews/feature-keep-her-safe-apps.md).
- **Phase 1 is built in code.** What remains of it is the author's: verified sentences (the petal - **Phase 1 is built in code.** What remains of it is the author's: verified sentences (the petal
appears with them), hosting (G0.13), and the gate itself — two weeks of daily play on a phone. appears with them), hosting (G0.13), and the gate itself — two weeks of daily play on a phone.
@@ -162,10 +278,12 @@ The notification decision is made: in-app only on the web (G0.26).
After an accept, Claude reads the row (`ArtifactData get art/<id>`), downloads the picture After an accept, Claude reads the row (`ArtifactData get art/<id>`), downloads the picture
(`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/<set>`, (`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/<set>`,
and writes `final` back into the row. and writes `final` back into the row.
4. **The gardener in paint:** the board asks for the first look (a girl, braids, sage, a straw hat). 4. **The gardener in paint:** *layered parts* (Mark, 2026-11-17; STYLE.md §3b). Make
Painted art cannot be recoloured for every skin, hair and clothes choice the way the stand-in is: `gardener-sheet`, then the guide `gardener-poses-sheet`, and accept both; then the seven first-look
layered parts, a few painted looks, or tints? (STYLE.md §3b). Also: a gardener changed in one tab layers (first in the board's *Gardener layers* group), each painted over the guide. The other 48
shows in another only after a reload (the rose's care does update live). can follow over time. Open for Mark: may the choice keep fair curls away from sage clothes (the
book's look)? Review: [`.agents/reviews/art-gardener-layers.md`](.agents/reviews/art-gardener-layers.md).
Also: a gardener changed in one tab shows in another only after a reload.
5. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23). 5. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
6. **Node is upgraded** (22.23.4); unpinning the dependencies pinned for 22.11 remains (G0.20). 6. **Node is upgraded** (22.23.4); unpinning the dependencies pinned for 22.11 remains (G0.20).
7. **The rose's tuning** (`.agents/features/rose.md` R2, R4, R5, R6, all in `ROSE` in 7. **The rose's tuning** (`.agents/features/rose.md` R2, R4, R5, R6, all in `ROSE` in
+168
View File
@@ -0,0 +1,168 @@
Common Public Attribution License Version 1.0 (CPAL)
1. “Definitions”
1.0.1 “Commercial Use” means distribution or otherwise making the Covered Code available to a third party.
1.1 “Contributor” means each entity that creates or contributes to the creation of Modifications.
1.2 “Contributor Version” means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor.
1.3 “Covered Code” means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof.
1.4 “Electronic Distribution Mechanism” means a mechanism generally accepted in the software development community for the electronic transfer of data.
1.5 “Executable” means Covered Code in any form other than Source Code.
1.6 “Initial Developer” means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.
1.7 “Larger Work” means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.
1.8 “License” means this document.
1.8.1 “Licensable” means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
1.9 “Modifications” means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is:
A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.
B. Any new file that contains any part of the Original Code or previous Modifications.
1.10 “Original Code” means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License.
1.10.1 “Patent Claims” means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
1.11 “Source Code” means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor’s choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.
1.12 “You” (or “Your”) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, “You” includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
2. Source Code License.
2.1 The Initial Developer Grant.
The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and
(b) under Patents Claims infringed by the making, using or selling of Original Code, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Code (or portions thereof).
(c) the licenses granted in this Section 2.1(a) and (b) are effective on the date Initial Developer first distributes Original Code under the terms of this License.
(d) Notwithstanding Section 2.1(b) above, no patent license is granted: 1) for code that You delete from the Original Code; 2) separate from the Original Code; or 3) for infringements caused by: i) the modification of the Original Code or ii) the combination of the Original Code with other software or devices.
2.2 Contributor Grant.
Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license
(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and
(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: 1) Modifications made by that Contributor (or portions thereof); and 2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first makes Commercial Use of the Covered Code.
(d) Notwithstanding Section 2.2(b) above, no patent license is granted: 1) for any code that Contributor has deleted from the Contributor Version; 2) separate from the Contributor Version; 3) for infringements caused by: i) third party modifications of Contributor Version or ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or 4) under Patent Claims infringed by Covered Code in the absence of Modifications made by that Contributor.
3. Distribution Obligations.
3.1 Application of License.
The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients’ rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.
3.2 Availability of Source Code.
Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party.
3.3 Description of Modifications.
You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code.
3.4 Intellectual Property Matters
(a) Third Party Claims. If Contributor has knowledge that a license under a third party’s intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled “LEGAL” which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.
(b) Contributor APIs. If Contributor’s Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file.
(c) Representations. Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor’s Modifications are Contributor’s original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License.
3.5 Required Notices.
You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients’ rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer.
3.6 Distribution of Executable Versions.
You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You describe recipients’ rights relating to the Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient’s rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer, Original Developer or any Contributor. You hereby agree to indemnify the Initial Developer, Original Developer and every Contributor for any liability incurred by the Initial Developer, Original Developer or such Contributor as a result of any such terms You offer.
3.7 Larger Works.
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
4. Inability to Comply Due to Statute or Regulation.
If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
5. Application of this License.
This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code.
6. Versions of the License.
6.1 New Versions.
Socialtext, Inc. (“Socialtext”) may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.
6.2 Effect of New Versions.
Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Socialtext. No one other than Socialtext has the right to modify the terms applicable to Covered Code created under this License.
6.3 Derivative Works.
If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrases “Socialtext”, “CPAL” or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the CPAL. (Filling in the name of the Initial Developer, Original Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.)
7. DISCLAIMER OF WARRANTY.
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN “AS IS” BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER, ORIGINAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
8. TERMINATION.
8.1 This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
8.2 If You initiate litigation by asserting a patent infringement claim (excluding declatory judgment actions) against Initial Developer, Original Developer or a Contributor (the Initial Developer, Original Developer or Contributor against whom You file such action is referred to as “Participant”) alleging that:
(a) such Participant’s Contributor Version directly or indirectly infringes any patent, then any and all rights granted by such Participant to You under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively, unless if within 60 days after receipt of notice You either: (i) agree in writing to pay Participant a mutually agreeable reasonable royalty for Your past and future use of Modifications made by such Participant, or (ii) withdraw Your litigation claim with respect to the Contributor Version against such Participant. If within 60 days of notice, a reasonable royalty and payment arrangement are not mutually agreed upon in writing by the parties or the litigation claim is not withdrawn, the rights granted by Participant to You under Sections 2.1 and/or 2.2 automatically terminate at the expiration of the 60 day notice period specified above.
(b) any software, hardware, or device, other than such Participant’s Contributor Version, directly or indirectly infringes any patent, then any rights granted to You by such Participant under Sections 2.1(b) and 2.2(b) are revoked effective as of the date You first made, used, sold, distributed, or had made, Modifications made by that Participant.
8.3 If You assert a patent infringement claim against Participant alleging that such Participant’s Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.
8.4 In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.
9. LIMITATION OF LIABILITY.
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ORIGINAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY’S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
10. U.S. GOVERNMENT END USERS.
The Covered Code is a “commercial item,” as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of “commercial computer software” and “commercial computer software documentation,” as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein.
11. MISCELLANEOUS.
This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by California law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in the United States of America, any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California, with venue lying in Santa Clara County, California, with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys’ fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License.
12. RESPONSIBILITY FOR CLAIMS.
As between Initial Developer, Original Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer, Original Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
13. MULTIPLE-LICENSED CODE.
Initial Developer may designate portions of the Covered Code as Multiple-Licensed. Multiple-Licensed means that the Initial Developer permits you to utilize portions of the Covered Code under Your choice of the CPAL or the alternative licenses, if any, specified by the Initial Developer in the file described in Exhibit A.
14. ADDITIONAL TERM: ATTRIBUTION
(a) As a modest attribution to the organizer of the development of the Original Code (“Original Developer”), in the hope that its promotional value may help justify the time, money and effort invested in writing the Original Code, the Original Developer may include in Exhibit B (“Attribution Information”) a requirement that each time an Executable and Source Code or a Larger Work is launched or initially run (which includes initiating a session), a prominent display of the Original Developer’s Attribution Information (as defined below) must occur on the graphic user interface employed by the end user to access such Covered Code (which may include display on a splash screen), if any. The size of the graphic image should be consistent with the size of the other elements of the Attribution Information. If the access by the end user to the Executable and Source Code does not create a graphic user interface for access to the Covered Code, this obligation shall not apply. If the Original Code displays such Attribution Information in a particular form (such as in the form of a splash screen, notice at login, an “about” display, or dedicated attribution area on user interface screens), continued use of such form for that Attribution Information is one way of meeting this requirement for notice.
(b) Attribution information may only include a copyright notice, a brief phrase, graphic image and a URL (“Attribution Information”) and is subject to the Attribution Limits as defined below. For these purposes, prominent shall mean display for sufficient duration to give reasonable notice to the user of the identity of the Original Developer and that if You include Attribution Information or similar information for other parties, You must ensure that the Attribution Information for the Original Developer shall be no less prominent than such Attribution Information or similar information for the other party. For greater certainty, the Original Developer may choose to specify in Exhibit B below that the above attribution requirement only applies to an Executable and Source Code resulting from the Original Code or any Modification, but not a Larger Work. The intent is to provide for reasonably modest attribution, therefore the Original Developer cannot require that You display, at any time, more than the following information as Attribution Information: (a) a copyright notice including the name of the Original Developer; (b) a word or one phrase (not exceeding 10 words); (c) one graphic image provided by the Original Developer; and (d) a URL (collectively, the “Attribution Limits”).
(c) If Exhibit B does not include any Attribution Information, then there are no requirements for You to display any Attribution Information of the Original Developer.
(d) You acknowledge that all trademarks, service marks and/or trade names contained within the Attribution Information distributed with the Covered Code are the exclusive property of their owners and may only be used with the permission of their owners, or under circumstances otherwise permitted by law or as expressly set out in this License.
15. ADDITIONAL TERM: NETWORK USE.
The term “External Deployment” means the use, distribution, or communication of the Original Code or Modifications in any way such that the Original Code or Modifications may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Code or Modifications as a distribution under section 3.1 and make Source Code available under Section 3.2.
EXHIBIT A. Common Public Attribution License Version 1.0.
"The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://opensource.org/license/cpal_1-0. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The Original Code is Rosea Domi.
The Original Developer is the Initial Developer.
The Initial Developer of the Original Code is Marek Novák. All portions of the code written by Marek Novák are Copyright (c) 2026. All Rights Reserved.
Contributor: none."
EXHIBIT B. Attribution Information
Attribution Copyright Notice: Copyright (c) 2026 Marek Novák
Attribution Phrase (not exceeding 10 words): Built on Domi
Attribution URL: https://aula.marek-novak.cz
Graphic Image as provided in the Covered Code, if any: none.
Display of Attribution Information is required in Larger Works which are defined in the CPAL as a work which combines Covered Code or portions thereof with code not governed by the terms of the CPAL.
+40
View File
@@ -0,0 +1,40 @@
# Rosea Domi
A small game about a living rose, a fox, and the time we give to people. It ships from one Svelte codebase as four
versions: a web app (PWA), and apps for Android, Windows and, later, iOS. What the player sees is described in
[`AULA.md`](AULA.md). How the repository works is described in [`CLAUDE.md`](CLAUDE.md) and [`HANDOVER.md`](HANDOVER.md).
```bash
pnpm install --frozen-lockfile
pnpm --filter @rosea/app dev # 127.0.0.1:5173
pnpm test # every package; quote the counts
```
## Licence
Rosea Domi is licensed under the **Common Public Attribution License 1.0** (SPDX `CPAL-1.0`). The full text, with
Exhibits A and B, is in [`LICENSE`](LICENSE). The code is under CPAL-1.0 from the commit that added that file.
Earlier commits carried no licence.
Anyone who distributes Rosea Domi or a work built from it must show this credit, as section 14 and Exhibit B
require:
> Built on Domi · https://aula.marek-novak.cz · Copyright (c) 2026 Marek Novák
Contains @domi/ui (CPAL-1.0, Copyright (c) 2026 Marek Novák), in `packages/domi-ui`; the rest of this repo is under
its own licence. The copy is unchanged, made by the design system's `tools/vendor.mjs` from its tag; its `NOTICE` and
`VERSION` say which. The game shows the credit above at the foot of every screen.
The licence does not cover what Marek Novák did not write. Those works keep their own terms:
- **The hope sentences** quote public-domain works. They sit in `content/candidates/` until the author verifies each
one into `content/library/`, and every entry names its work, author, translation and public-domain status. The
sources include the King James Bible; Cicero (tr. Shuckburgh, 1900, and Peabody, 1887); Marcus Aurelius (tr. Long, 1862); Seneca (tr.
Stewart, 1889); Laozi (tr. Legge, 1891); the Dhammapada (tr. Müller, 1881); Sa'di (tr. Ross, 1823); Julian of
Norwich (ed. Warrack, 1901); Kahlil Gibran; Rabindranath Tagore (his own English, 1912); Thoreau, Muir, Emerson,
Dickinson, Whitman, Wordsworth, Rossetti and Stevenson.
- **The town list** (`packages/content/src/places/`) is made from Natural Earth and the IANA time zone database,
both in the public domain (`scripts/build-places.ts`).
- **The sun's reference tables** used by the tests come from the U.S. Naval Observatory and name it in the fixture.
- **The pictures** in `art/placeholders/` are stand-ins drawn in code by this repository's `tools/art-prep`, under
its licence. There is no third-party art.
@@ -0,0 +1,120 @@
package cz.mareknovak.domi.rosea
// Rosea's own MainActivity, copied over the one `tauri android init` generates by
// apps/rosea-tauri/scripts/android.ts (gen/ is never committed; `android.ts check` compares it).
// .agents/features/keep-her-safe-apps.md A2–A5.
import android.app.Activity
import android.content.Intent
import android.content.res.Configuration
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.webkit.JavascriptInterface
import android.webkit.WebView
import androidx.activity.enableEdgeToEdge
import androidx.annotation.Keep
import androidx.core.graphics.Insets
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
class MainActivity : TauriActivity() {
private var webView: WebView? = null
private var busy = false
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)
// Tauri's activity draws edge to edge, and the WebView does not reliably report the bars as
// env(safe-area-inset-*): the clock sat over the title and the navigation bar over *Bring her
// back from a file* (keep-her-safe-apps review). So the page is kept between the bars, and
// the bars show the garden's own paper, light or dark as the system is.
paintBehindBars()
val bars = WindowInsetsCompat.Type.systemBars() or WindowInsetsCompat.Type.displayCutout()
ViewCompat.setOnApplyWindowInsetsListener(findViewById(android.R.id.content)) { view, insets ->
val inset = insets.getInsets(bars)
view.setPadding(inset.left, inset.top, inset.right, inset.bottom)
WindowInsetsCompat.Builder(insets)
.setInsets(WindowInsetsCompat.Type.systemBars(), Insets.NONE)
.setInsets(WindowInsetsCompat.Type.displayCutout(), Insets.NONE)
.build()
}
}
// The manifest lets the activity live through a theme change (uiMode), so the paint follows it here.
override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig)
paintBehindBars()
}
private fun paintBehindBars() {
val night = (resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES
window.decorView.setBackgroundColor(Color.parseColor(if (night) PAPER_DARK else PAPER))
}
// *Save her to a file*: Android WebView does nothing with a blob download, so the game asks
// here instead (window.roseaFile.save), and Android's own save screen lets the player choose
// where the file goes. No permission is needed for it on any Android version.
override fun onWebViewCreate(webView: WebView) {
this.webView = webView
webView.addJavascriptInterface(RoseFile(), "roseaFile")
}
/** Tells the game whether the file was written (A4): true, or false when the player stepped back. */
private fun answer(written: Boolean) {
busy = false
val view = webView ?: return
view.post {
view.evaluateJavascript("window.dispatchEvent(new CustomEvent('rosea-file-saved', { detail: $written }))", null)
}
}
@Keep
inner class RoseFile {
/** Only a rose file: its dated name and a bounded text (A3). One save at a time. */
@Keep
@JavascriptInterface
fun save(name: String, text: String) {
if (!NAME.matches(name) || text.length > MAX_CHARS) {
Log.w(TAG, "refused a file that is not a rose file: ${name.take(64)}, ${text.length} chars")
answer(false)
return
}
runOnUiThread {
if (busy) return@runOnUiThread
busy = true
val intent = Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
type = "application/json"
putExtra(Intent.EXTRA_TITLE, name)
}
launchActivityForResult(intent) { result ->
val uri = result?.data?.data
if (result?.resultCode != Activity.RESULT_OK || uri == null) {
answer(false)
return@launchActivityForResult
}
val written = try {
contentResolver.openOutputStream(uri, "wt")?.use { out ->
out.write(text.toByteArray(Charsets.UTF_8))
true
} ?: false
} catch (error: Exception) {
Log.e(TAG, "the rose file could not be written", error)
false
}
answer(written)
}
}
}
}
companion object {
private const val TAG = "RoseaFile"
private val NAME = Regex("^rose-\\d{4}-\\d{2}-\\d{2}\\.json$")
private const val MAX_CHARS = 8 * 1024 * 1024
// --paper in packages/ui/src/tokens.css, light and dark; a test holds them equal.
private const val PAPER = "#fbf6f1"
private const val PAPER_DARK = "#1d1819"
}
}
+6 -3
View File
@@ -1,13 +1,16 @@
{ {
"name": "@rosea/tauri", "name": "@rosea/tauri",
"version": "0.1.0", "version": "0.1.1",
"private": true, "private": true,
"license": "CPAL-1.0",
"type": "module", "type": "module",
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.", "description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
"scripts": { "scripts": {
"dev": "tsx scripts/icons.ts && tauri dev", "dev": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri dev",
"build:desktop": "tsx scripts/icons.ts && tauri build", "build:desktop": "tsx scripts/icons.ts && tsx scripts/domi-app.ts && tauri build && tsx scripts/installer-name.ts",
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify", "build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
"build:android-release": "tsx scripts/android.ts prepare && tauri android build --apk --target aarch64 && tsx scripts/android.ts verify src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk",
"sign:apk": "tsx scripts/sign-apk.ts",
"build:ios": "tsx scripts/ios.ts", "build:ios": "tsx scripts/ios.ts",
"android:privacy": "tsx scripts/android.ts apply", "android:privacy": "tsx scripts/android.ts apply",
"android:verify": "tsx scripts/android.ts verify", "android:verify": "tsx scripts/android.ts verify",
+12 -2
View File
@@ -13,7 +13,7 @@
*/ */
import { spawnSync } from 'node:child_process'; import { spawnSync } from 'node:child_process';
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'; import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';
import { join } from 'node:path'; import { dirname, join } from 'node:path';
import { apkProblems, manifestProblems, patchManifest, RULE_FILES, RULE_SECTIONS, ruleProblems } from '../src/android-privacy.js'; import { apkProblems, manifestProblems, patchManifest, RULE_FILES, RULE_SECTIONS, ruleProblems } from '../src/android-privacy.js';
import { PACKAGE, SRC_TAURI, tauri } from './tauri.js'; import { PACKAGE, SRC_TAURI, tauri } from './tauri.js';
@@ -22,6 +22,10 @@ const MANIFEST = join(MAIN, 'AndroidManifest.xml');
const RES_FROM = join(PACKAGE, 'android', 'res', 'xml'); const RES_FROM = join(PACKAGE, 'android', 'res', 'xml');
const RES_TO = join(MAIN, 'res', 'xml'); const RES_TO = join(MAIN, 'res', 'xml');
const OUTPUTS = join(SRC_TAURI, 'gen', 'android', 'app', 'build', 'outputs', 'apk'); const OUTPUTS = join(SRC_TAURI, 'gen', 'android', 'app', 'build', 'outputs', 'apk');
// Rosea's own MainActivity: the save bridge (keep-her-safe-apps.md A2, A5).
const IDENTIFIER = (JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.conf.json'), 'utf8')) as { identifier: string }).identifier;
const ACTIVITY_FROM = join(PACKAGE, 'android', 'java', 'MainActivity.kt');
const ACTIVITY_TO = join(MAIN, 'java', ...IDENTIFIER.split('.'), 'MainActivity.kt');
function fail(problems: readonly string[]): never { function fail(problems: readonly string[]): never {
for (const p of problems) console.error(`android: ${p}`); for (const p of problems) console.error(`android: ${p}`);
@@ -36,6 +40,10 @@ function problems(): string[] {
if (!existsSync(at)) found.push(`res/xml/${f} is missing`); if (!existsSync(at)) found.push(`res/xml/${f} is missing`);
else if (readFileSync(at, 'utf8') !== readFileSync(join(RES_FROM, f), 'utf8')) found.push(`res/xml/${f} differs from android/res/xml/${f}`); else if (readFileSync(at, 'utf8') !== readFileSync(join(RES_FROM, f), 'utf8')) found.push(`res/xml/${f} differs from android/res/xml/${f}`);
} }
if (!existsSync(ACTIVITY_TO)) found.push(`no MainActivity.kt at ${ACTIVITY_TO}`);
else if (readFileSync(ACTIVITY_TO, 'utf8') !== readFileSync(ACTIVITY_FROM, 'utf8')) {
found.push("MainActivity.kt is not Rosea's (android/java/MainActivity.kt): no save bridge");
}
// The launcher icon is Rosea's, not the Tauri logo `init` put there (scripts/icons.ts). // The launcher icon is Rosea's, not the Tauri logo `init` put there (scripts/icons.ts).
const ours = join(SRC_TAURI, 'icons', 'android', 'mipmap-mdpi', 'ic_launcher.png'); const ours = join(SRC_TAURI, 'icons', 'android', 'mipmap-mdpi', 'ic_launcher.png');
const there = join(MAIN, 'res', 'mipmap-mdpi', 'ic_launcher.png'); const there = join(MAIN, 'res', 'mipmap-mdpi', 'ic_launcher.png');
@@ -55,12 +63,14 @@ function apply(): void {
const after = patchManifest(before); const after = patchManifest(before);
mkdirSync(RES_TO, { recursive: true }); mkdirSync(RES_TO, { recursive: true });
for (const f of RULE_FILES) copyFileSync(join(RES_FROM, f), join(RES_TO, f)); for (const f of RULE_FILES) copyFileSync(join(RES_FROM, f), join(RES_TO, f));
if (!existsSync(dirname(ACTIVITY_TO))) fail([`no generated activity folder ${dirname(ACTIVITY_TO)}; the identifier changed?`]);
copyFileSync(ACTIVITY_FROM, ACTIVITY_TO);
if (after !== before) writeFileSync(MANIFEST, after); if (after !== before) writeFileSync(MANIFEST, after);
const left = problems(); const left = problems();
if (left.length > 0) fail(left); if (left.length > 0) fail(left);
console.log( console.log(
`android: privacy ${after === before ? 'already in place' : 'applied'} ` + `android: privacy ${after === before ? 'already in place' : 'applied'} ` +
'(no INTERNET, no backup or transfer, WebView metrics and Safe Browsing off)' "(no INTERNET, no backup or transfer, WebView metrics and Safe Browsing off; Rosea's MainActivity)"
); );
} }
+96
View File
@@ -0,0 +1,96 @@
/**
* The `domi-app.toml` that lets Atrium Domi show Rosea Domi in its grid (Atrium docs/APP_CONTRACT.md v0, §2–3;
* .agents/features/atrium-adoption.md). It is made before every desktop build from the name constants and the game's
* version, so the name stays in its three places (CLAUDE.md, header) and the version in Fabrica's four files
* (scripts/check-version.mjs). It is build output, never committed. `tauri.windows.conf.json` puts it next to the
* `.exe`, with the icon it names.
*
* tsx scripts/domi-app.ts writes src-tauri/atrium/domi-app.toml
*
* This is a static file only. Rosea reads nothing of Atrium's and calls nothing; the door (APP_CONTRACT §4–5) waits
* on the author (atrium-adoption.md R4). What APP_CONTRACT §7 says may still change is kept here, in `ATRIUM`.
*/
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
import { join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { PRODUCT_NAME, PRODUCT_SHORT_NAME } from '../../../packages/schema/src/constants.js';
import { PACKAGE, SRC_TAURI } from './tauri.js';
/** What the Atrium contract fixes today and may move before its v1 (APP_CONTRACT §2.2, §7). */
export const ATRIUM = {
needs: { fundamentum: '>=0.7', atrium: '>=0.1' },
/** The icon, beside the `.exe`: the shell's own 256 px icon, made from apps/rosea/public/icon.svg (a placeholder). */
icon: { file: 'domi-icon.png', from: 'icons/128x128@2x.png' }
} as const;
/** The file, relative to src-tauri/, that `tauri.windows.conf.json` bundles. */
export const MANIFEST = 'atrium/domi-app.toml';
export interface DomiApp {
readonly id: string;
readonly name: string;
readonly label: string;
readonly version: string;
readonly accent: string;
readonly icon: string;
readonly hostable: boolean;
readonly free: boolean;
readonly needs: { readonly fundamentum: string; readonly atrium: string };
}
export function domiApp(version: string): DomiApp {
return {
// The Aula project and the Canalis id; it changes with the name, in the same commit.
id: PRODUCT_SHORT_NAME.toLowerCase(),
name: PRODUCT_NAME,
// One plain word for what she is (atrium-adoption.md §2.4, a judgment).
label: 'Rose',
version,
// --rose on the dark theme (packages/ui/src/tokens.css): Atrium Domi's window is dark, and its catalogue names
// the same colour for Rosea (Fundamentum crates/atrium-registry/src/catalogue.rs).
accent: '#e8899b',
icon: ATRIUM.icon.file,
// Day 4 waits on R1: hosted, she must keep her own window and origin, or her rose seems gone.
hostable: false,
// Rosea needs no licence (APP_CONTRACT §2.2: "true if your app needs no licence").
free: true,
needs: ATRIUM.needs
};
}
/**
* A TOML basic string. Every value here is ours; the escape keeps a later one honest: a quote, a backslash or a
* line break can never end the string and start a key.
*/
const str = (s: string): string =>
// eslint-disable-next-line no-control-regex -- finding control characters is the point
`"${s.replace(/[\\"\u0000-\u001f\u007f]/g, (c) =>
c === '\\' || c === '"' ? `\\${c}` : `\\u${c.charCodeAt(0).toString(16).padStart(4, '0')}`
)}"`;
export function toToml(m: DomiApp): string {
return [
`id = ${str(m.id)}`,
`name = ${str(m.name)}`,
`label = ${str(m.label)}`,
`version = ${str(m.version)}`,
`accent = ${str(m.accent)}`,
`icon = ${str(m.icon)}`,
`hostable = ${String(m.hostable)}`,
`free = ${String(m.free)}`,
`needs = { fundamentum = ${str(m.needs.fundamentum)}, atrium = ${str(m.needs.atrium)} }`,
''
].join('\n');
}
/** The game's version: the installer's own (tauri.conf.json reads the same file). */
export function gameVersion(): string {
const pkg = JSON.parse(readFileSync(join(PACKAGE, '..', 'rosea', 'package.json'), 'utf8')) as { version: string };
return pkg.version;
}
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
mkdirSync(join(SRC_TAURI, 'atrium'), { recursive: true });
writeFileSync(join(SRC_TAURI, MANIFEST), toToml(domiApp(gameVersion())), 'utf8');
console.log(`domi-app.toml: written for Atrium Domi (${MANIFEST})`);
}
@@ -0,0 +1,38 @@
/**
* After `tauri build`: renames the NSIS installer to its published name (src/installer-name.ts), so
* the release step's `*-setup.exe` finds one file, and its name has no space.
*
* tsx scripts/installer-name.ts in src-tauri/target/release/bundle/nsis/
*/
import { existsSync, readdirSync, renameSync, rmSync } from 'node:fs';
import { join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { INSTALLER_PATTERN, installerName, tauriInstallerName } from '../src/installer-name.js';
import { gameVersion } from './domi-app.js';
import { SRC_TAURI } from './tauri.js';
/**
* Renames the version's installer in `dir` and removes any other installer there (an older build's,
* which the release's `*-setup.exe` would otherwise publish too). Returns the new path. Fails if the
* built file is missing, or if anything but the one accepted installer is left.
*/
export function renameInstaller(dir: string, version: string): string {
const from = join(dir, tauriInstallerName(version));
const name = installerName(version);
const to = join(dir, name);
if (!existsSync(from)) throw new Error(`no installer to rename: ${from}`);
for (const f of readdirSync(dir)) {
if (f.endsWith('-setup.exe') && f !== tauriInstallerName(version)) rmSync(join(dir, f));
}
renameSync(from, to);
const left = readdirSync(dir).filter((f) => f.endsWith('-setup.exe'));
if (left.length !== 1 || left[0] !== name || !INSTALLER_PATTERN.test(name)) {
throw new Error(`expected only ${name}, found: ${left.join(', ')}`);
}
return to;
}
if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
const to = renameInstaller(join(SRC_TAURI, 'target', 'release', 'bundle', 'nsis'), gameVersion());
console.log(`installer: ${to}`);
}
+26
View File
@@ -0,0 +1,26 @@
/**
* `pnpm --filter @rosea/tauri sign:apk <version> <commit>`: the release APK, signed in Custos
* (fabrica-release.md F4). Runs after the release's approval; Mark's card shows the match code
* custos-sign prints. Nothing is written unless custos-sign signs and verifies.
*/
import { spawnSync } from 'node:child_process';
import { existsSync, mkdirSync } from 'node:fs';
import { join } from 'node:path';
import { custosSign, signArgs, signedApkName, UNSIGNED_APK } from '../src/sign-apk.js';
import { PACKAGE, SRC_TAURI } from './tauri.js';
const [version = '', commit = ''] = process.argv.slice(2);
try {
const unsigned = join(SRC_TAURI, UNSIGNED_APK);
if (!existsSync(unsigned)) throw new Error(`no release APK at ${unsigned}; run 'pnpm tauri:android-release' first`);
const outDir = join(PACKAGE, '..', '..', 'target', 'release');
mkdirSync(outDir, { recursive: true });
const exe = custosSign(process.env, existsSync);
const args = signArgs({ version, commit, unsigned, out: join(outDir, signedApkName(version)) });
const run = spawnSync(exe, args, { stdio: 'inherit' });
if (run.error) throw run.error;
process.exit(run.status ?? 1);
} catch (e) {
console.error(`sign:apk: ${e instanceof Error ? e.message : String(e)}`);
process.exit(1);
}
+1 -1
View File
@@ -2614,7 +2614,7 @@ dependencies = [
[[package]] [[package]]
name = "rosea-shell" name = "rosea-shell"
version = "0.1.0" version = "0.1.1"
dependencies = [ dependencies = [
"tauri", "tauri",
"tauri-build", "tauri-build",
+2 -1
View File
@@ -1,6 +1,7 @@
[package] [package]
name = "rosea-shell" name = "rosea-shell"
version = "0.1.0" version = "0.1.1"
license = "CPAL-1.0"
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else." description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
edition = "2024" edition = "2024"
publish = false publish = false
@@ -30,6 +30,7 @@
"active": true, "active": true,
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"], "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"category": "Game", "category": "Game",
"license": "CPAL-1.0",
"shortDescription": "A rose to tend, a fox to befriend, and the time we give to people.", "shortDescription": "A rose to tend, a fox to befriend, and the time we give to people.",
"windows": { "nsis": { "installMode": "currentUser" } } "windows": { "nsis": { "installMode": "currentUser" } }
} }
@@ -1 +1,8 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["nsis"] } } {
"$schema": "https://schema.tauri.app/config/2",
"bundle": {
"targets": ["nsis"],
"resources": { "atrium/domi-app.toml": "domi-app.toml", "icons/128x128@2x.png": "domi-icon.png" },
"windows": { "nsis": { "installerHooks": "./windows/hooks.nsh" } }
}
}
@@ -0,0 +1,16 @@
; Rosea Domi's installer hooks (.agents/features/fabrica-release.md F5; Fundamentum's Canalis, Part A).
; The installer registers domi-rosea://open for the current user, and the uninstaller removes it.
; Here and not at every start: the shell is a window and nothing else (CLAUDE.md §2), and a reinstall
; or Fabrica's Update all (/UPDATE in the same folder) runs this again, so the command follows the exe.
; The game reads no argument: any domi-rosea:// address opens the garden, and nothing else.
!macro NSIS_HOOK_POSTINSTALL
WriteRegStr HKCU "Software\Classes\domi-rosea" "" "URL:Rosea Domi"
WriteRegStr HKCU "Software\Classes\domi-rosea" "URL Protocol" ""
WriteRegStr HKCU "Software\Classes\domi-rosea\DefaultIcon" "" '"$INSTDIR\${MAINBINARYNAME}.exe",0'
WriteRegStr HKCU "Software\Classes\domi-rosea\shell\open\command" "" '"$INSTDIR\${MAINBINARYNAME}.exe" "%1"'
!macroend
!macro NSIS_HOOK_POSTUNINSTALL
DeleteRegKey HKCU "Software\Classes\domi-rosea"
!macroend
+25
View File
@@ -0,0 +1,25 @@
/**
* The Windows installer's published file name. Tauri's NSIS bundler names it after `productName`
* (`Rosea Domi_<version>_x64-setup.exe`), and the space keeps it off Aula: Aula makes an installer
* public only when its name matches `[A-Za-z0-9._-]+-setup.exe` (Aula docs/14_feed.md), the
* `<Name>_<version>_x64-setup.exe` form Atrium Domi expects as well.
*
* Only the file is renamed after the build. `productName` stays "Rosea Domi": it is also the window
* title, the install folder and the uninstall entry Atrium finds her by, and changing it would make
* the next installer a second app beside the first.
*/
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
/** What Aula and Atrium accept as an installer's name. */
export const INSTALLER_PATTERN = /^[A-Za-z0-9._-]+-setup\.exe$/;
/** Tauri's own name for the installer of a version. */
export const tauriInstallerName = (version: string): string => `${PRODUCT_NAME}_${version}_x64-setup.exe`;
/** The published name: the product name without spaces, e.g. `RoseaDomi_0.1.2_x64-setup.exe`. */
export function installerName(version: string): string {
if (!/^\d+\.\d+\.\d+$/.test(version)) throw new Error(`not a version: ${version}`);
const name = `${PRODUCT_NAME.replace(/\s+/g, '')}_${version}_x64-setup.exe`;
if (!INSTALLER_PATTERN.test(name)) throw new Error(`the installer's name would not be accepted: ${name}`);
return name;
}
+54
View File
@@ -0,0 +1,54 @@
/**
* What the release asks custos-sign to do with the Android APK (fabrica-release.md F4). Kept
* apart from the script that runs it so the arguments can be tested without Custos.
*
* The key `rosea-domi-android` lives in Custos only (Mark made it under that name, 2026-12-02);
* custos-sign holds no key material either. Its scope is exactly `mnovak/Rosea`, the release
* pipeline, a tag. The name is forever: an APK signed with it is Rosea on Android for good.
*/
export const APK_KEY = 'rosea-domi-android';
export const REPO = 'mnovak/Rosea';
/** Where Gradle leaves the release APK of `tauri android build --apk --target aarch64`, from src-tauri. */
export const UNSIGNED_APK = 'gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk';
/** The published APK's name: the app, the version, the one ABI it is built for. */
export const signedApkName = (version: string): string => `rosea-domi-${version}-arm64.apk`;
export interface SignRequest {
readonly version: string;
readonly commit: string;
readonly unsigned: string;
readonly out: string;
}
/** The arguments of `custos-sign apk`, or the reason they cannot be made. */
export function signArgs(r: SignRequest): string[] {
if (!/^\d+\.\d+\.\d+$/.test(r.version)) throw new Error(`not a version: ${r.version}`);
if (!/^[0-9a-f]{40}$/.test(r.commit)) throw new Error(`not a commit: ${r.commit}`);
return [
'apk', r.unsigned,
'--out', r.out,
'--key', APK_KEY,
'--repo', REPO,
'--pipeline', 'release',
'--commit', r.commit,
'--trigger', 'tag',
'--run', `rosea-v${r.version}`,
'--version', r.version,
'--step', 'apk'
];
}
/**
* Which custos-sign to run. `CUSTOS_SIGN_EXE` names it; when it names a file that is not there,
* the release refuses rather than run another one from PATH. `CUSTOS_PIPE` is refused: a signed
* run must reach Mark's Custos, never a test instance whose key is nobody's.
*/
export function custosSign(env: Readonly<Record<string, string | undefined>>, exists: (p: string) => boolean): string {
if (env['CUSTOS_PIPE']) throw new Error('CUSTOS_PIPE is set: the APK would be signed by another Custos than Mark\'s');
const named = env['CUSTOS_SIGN_EXE'];
if (named === undefined || named === '') return 'custos-sign.exe';
if (!exists(named)) throw new Error(`CUSTOS_SIGN_EXE names ${named}, which is not there`);
return named;
}
@@ -0,0 +1,69 @@
/**
* The save bridge's contract between the Kotlin side (android/java/MainActivity.kt) and the game
* (apps/rosea/src/App.svelte, packages/ui KeepSafe): keep-her-safe-apps.md A2–A5. A mismatch here
* fails silently on the device — the save screen never opens, or the garden never hears back —
* so the names are read from both sources and compared.
*/
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
const HERE = dirname(fileURLToPath(import.meta.url));
const kotlin = readFileSync(join(HERE, '..', 'android', 'java', 'MainActivity.kt'), 'utf8');
const app = readFileSync(join(HERE, '..', '..', 'rosea', 'src', 'App.svelte'), 'utf8');
const keepSafe = readFileSync(join(HERE, '..', '..', '..', 'packages', 'ui', 'src', 'rose', 'KeepSafe.svelte'), 'utf8');
const conf = JSON.parse(readFileSync(join(HERE, '..', 'src-tauri', 'tauri.conf.json'), 'utf8')) as { identifier: string };
const nameRule = new RegExp(/Regex\("(.+?)"\)/.exec(kotlin)?.[1]?.replaceAll('\\\\', '\\') ?? 'missing');
describe('the Android save bridge', () => {
it('lives in the package of the app it is copied into', () => {
expect(kotlin).toMatch(new RegExp(`^package ${conf.identifier.replaceAll('.', '\\.')}$`, 'm'));
expect(kotlin).toMatch(/class MainActivity : TauriActivity\(\)/);
});
it('is found by the game under the name it is registered with', () => {
const registered = /addJavascriptInterface\(RoseFile\(\), "(\w+)"\)/.exec(kotlin)?.[1];
expect(registered).toBe('roseaFile');
expect(app).toContain(`roseaFile?: { save(name: string, text: string): void }`);
expect(app).toContain('.roseaFile');
});
it('answers on the event the game listens for, with true or false', () => {
const event = /new CustomEvent\('([\w-]+)', \{ detail: \$written \}\)/.exec(kotlin)?.[1];
expect(event).toBe('rosea-file-saved');
expect(app.match(/'rosea-file-saved'/g)?.length).toBeGreaterThanOrEqual(2);
expect(app).toContain('.detail === true');
});
it("accepts the file name the garden gives (rose-<day>.json) and nothing else", () => {
expect(keepSafe).toContain('`rose-${today}.json`');
expect(nameRule.test('rose-2026-11-17.json')).toBe(true);
for (const wrong of ['rose.json', '../rose-2026-11-17.json', 'rose-2026-11-17.json.exe', 'rose-2026-11-17.apk', 'evil-2026-11-17.json']) {
expect(nameRule.test(wrong)).toBe(false);
}
});
it('keeps the bridge through a minified release build', () => {
expect(kotlin).toMatch(/@Keep\s+inner class RoseFile/);
expect(kotlin).toMatch(/@JavascriptInterface\s+fun save\(name: String, text: String\)/);
});
it("paints behind the system bars with the garden's own paper, light and dark", () => {
const tokens = readFileSync(join(HERE, '..', '..', '..', 'packages', 'ui', 'src', 'tokens.css'), 'utf8');
const papers = [...tokens.matchAll(/--paper:\s*(#[0-9a-f]{6})/gi)].map((m) => m[1]!.toLowerCase());
expect(papers).toHaveLength(2);
expect(/PAPER = "(#[0-9a-f]{6})"/i.exec(kotlin)?.[1]?.toLowerCase()).toBe(papers[0]);
expect(/PAPER_DARK = "(#[0-9a-f]{6})"/i.exec(kotlin)?.[1]?.toLowerCase()).toBe(papers[1]);
// A source check only; the proof is the tablet's screenshot (review). Exact call and padding:
expect(kotlin).toMatch(/ViewCompat\.setOnApplyWindowInsetsListener\(findViewById\(android\.R\.id\.content\)\)/);
expect(kotlin).toMatch(/view\.setPadding\(inset\.left, inset\.top, inset\.right, inset\.bottom\)/);
});
it('asks Android for nothing: the save screen needs no permission', () => {
// Asking at run time or naming one; the APK check (aapt2) refuses any declared in the manifest.
expect(kotlin).not.toMatch(/requestPermissions\(|Manifest\.permission|checkSelfPermission/);
expect(kotlin).toContain('Intent.ACTION_CREATE_DOCUMENT');
});
});
+39
View File
@@ -103,6 +103,45 @@ describe('tauri.conf.json', () => {
}); });
}); });
describe('domi-rosea://open, from the installer (fabrica-release.md F5)', () => {
const windows = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.windows.conf.json'), 'utf8')) as {
bundle: { windows?: { nsis?: { installerHooks?: string; installMode?: string } } };
};
const hooksPath = windows.bundle.windows?.nsis?.installerHooks ?? '';
const hooks = existsSync(join(SRC_TAURI, hooksPath)) ? readFileSync(join(SRC_TAURI, hooksPath), 'utf8') : '';
/** The NSIS statements of one macro, comments dropped. */
const macro = (name: string): string[] =>
(new RegExp(`!macro ${name}\\r?\\n([\\s\\S]*?)!macroend`).exec(hooks)?.[1] ?? '')
.split(/\r?\n/)
.map((l) => l.trim())
.filter((l) => l !== '' && !l.startsWith(';'));
it('the Windows installer runs the hooks file, and installs for the current user only', () => {
expect(hooksPath).toBe('./windows/hooks.nsh');
expect(hooks).not.toBe('');
const nsis = (conf.bundle as { windows?: { nsis?: { installMode?: string } } }).windows?.nsis;
expect(nsis?.installMode).toBe('currentUser');
});
it('registers exactly the domi-rosea scheme under HKCU, opening the installed exe with the address', () => {
expect(macro('NSIS_HOOK_POSTINSTALL')).toEqual([
'WriteRegStr HKCU "Software\\Classes\\domi-rosea" "" "URL:Rosea Domi"',
'WriteRegStr HKCU "Software\\Classes\\domi-rosea" "URL Protocol" ""',
`WriteRegStr HKCU "Software\\Classes\\domi-rosea\\DefaultIcon" "" '"$INSTDIR\\\${MAINBINARYNAME}.exe",0'`,
`WriteRegStr HKCU "Software\\Classes\\domi-rosea\\shell\\open\\command" "" '"$INSTDIR\\\${MAINBINARYNAME}.exe" "%1"'`
]);
});
it('the uninstaller removes that key and nothing else', () => {
expect(macro('NSIS_HOOK_POSTUNINSTALL')).toEqual(['DeleteRegKey HKCU "Software\\Classes\\domi-rosea"']);
});
it('writes nowhere else: no machine-wide key, no other hook', () => {
expect(hooks).not.toMatch(/HKLM|HKCR|HKEY_/);
expect([...hooks.matchAll(/!macro (\w+)/g)].map((m) => m[1])).toEqual(['NSIS_HOOK_POSTINSTALL', 'NSIS_HOOK_POSTUNINSTALL']);
});
});
describe('the Rust side (D5)', () => { describe('the Rust side (D5)', () => {
it('depends on tauri alone: no plugin, no SDK', () => { it('depends on tauri alone: no plugin, no SDK', () => {
const cargo = readFileSync(join(SRC_TAURI, 'Cargo.toml'), 'utf8'); const cargo = readFileSync(join(SRC_TAURI, 'Cargo.toml'), 'utf8');
+235
View File
@@ -0,0 +1,235 @@
/**
* Atrium Domi's rules for a `domi-app.toml` (Atrium docs/APP_CONTRACT.md v0 §2), as a test helper. The real parser is
* Rust (`atrium_registry::parse_manifest`, Fundamentum). APP_CONTRACT §6 asks an app that cannot use it "at least" to
* check its file against §2. The rules are checked in the parser's order, so a hostile file gets the reason code
* the parser gives. That agreement was measured once against the parser itself (review of `feature/atrium-door`).
*
* The TOML reader takes only what a manifest needs: `key = value` lines, comments, basic strings, booleans, decimal
* integers (so `format = 2` is `unknown_key`, as in the parser), one-line inline tables and arrays of strings. Anything else is `not_toml`. That is stricter than TOML, which is safe for
* Rosea's own file; `toml` 1.x would accept some files this refuses.
*/
export interface Refusal {
readonly field: string | null;
readonly reason: string;
}
type Value = string | boolean | number | readonly string[] | { readonly [k: string]: Value };
const MAX_MANIFEST = 16_384;
class NotToml extends Error {}
function readString(s: string, at: number): [string, number] {
if (s[at] !== '"') throw new NotToml();
let out = '';
let i = at + 1;
while (i < s.length) {
const c = s[i]!;
if (c === '"') return [out, i + 1];
if (c === '\\') {
const e = s[i + 1];
const simple: Record<string, string> = { '"': '"', '\\': '\\', n: '\n', t: '\t', r: '\r', b: '\b', f: '\f' };
if (e && e in simple) {
out += simple[e];
i += 2;
} else if (e === 'u' || e === 'U') {
const len = e === 'u' ? 4 : 8;
const hex = s.slice(i + 2, i + 2 + len);
if (!/^[0-9a-fA-F]+$/.test(hex) || hex.length !== len) throw new NotToml();
out += String.fromCodePoint(parseInt(hex, 16));
i += 2 + len;
} else throw new NotToml();
} else if (c === '\n' || (c.charCodeAt(0) < 0x20 && c !== '\t') || c === '\x7f') {
throw new NotToml();
} else {
out += c;
i += 1;
}
}
throw new NotToml();
}
const skip = (s: string, at: number): number => {
let i = at;
while (s[i] === ' ' || s[i] === '\t') i += 1;
return i;
};
function readValue(s: string, at: number): [Value, number] {
const i = skip(s, at);
if (s[i] === '"') return readString(s, i);
if (s.startsWith('true', i)) return [true, i + 4];
if (s.startsWith('false', i)) return [false, i + 5];
const int = /^[+-]?(0|[1-9][0-9]*)(?![0-9A-Za-z._:])/.exec(s.slice(i));
if (int) return [Number(int[0]), i + int[0].length];
if (s[i] === '[') {
const items: string[] = [];
let j = skip(s, i + 1);
if (s[j] === ']') return [items, j + 1];
for (;;) {
const [v, k] = readString(s, skip(s, j));
items.push(v);
j = skip(s, k);
if (s[j] === ']') return [items, j + 1];
if (s[j] !== ',') throw new NotToml();
j += 1;
}
}
if (s[i] === '{') {
const table: Record<string, Value> = {};
let j = skip(s, i + 1);
if (s[j] === '}') return [table, j + 1];
for (;;) {
const key = /^[A-Za-z0-9_-]+/.exec(s.slice(skip(s, j)))?.[0];
if (!key) throw new NotToml();
j = skip(s, skip(s, j) + key.length);
if (s[j] !== '=') throw new NotToml();
const [v, k] = readValue(s, j + 1);
if (key in table) throw new NotToml();
table[key] = v;
j = skip(s, k);
if (s[j] === '}') return [table, j + 1];
if (s[j] !== ',') throw new NotToml();
j += 1;
}
}
throw new NotToml();
}
function readToml(text: string): Record<string, Value> {
const table: Record<string, Value> = {};
for (const raw of text.split('\n')) {
const line = raw.endsWith('\r') ? raw.slice(0, -1) : raw;
const start = skip(line, 0);
if (start === line.length || line[start] === '#') continue;
const key = /^[A-Za-z0-9_-]+/.exec(line.slice(start))?.[0];
if (!key) throw new NotToml();
let i = skip(line, start + key.length);
if (line[i] !== '=') throw new NotToml();
const [v, end] = readValue(line, i + 1);
i = skip(line, end);
if (i !== line.length && line[i] !== '#') throw new NotToml();
if (key in table) throw new NotToml();
table[key] = v;
}
return table;
}
type Kind = 'str' | 'bool' | 'table' | 'array' | 'other';
const KEYS: readonly (readonly [string, Kind, boolean])[] = [
['id', 'str', true],
['name', 'str', true],
['label', 'str', true],
['version', 'str', true],
['accent', 'str', true],
['icon', 'str', false],
['ui_bundle', 'str', false],
['hostable', 'bool', true],
['free', 'bool', true],
['needs', 'table', true],
['capabilities', 'array', false]
];
const kindOf = (v: Value): Kind =>
typeof v === 'string' ? 'str' : typeof v === 'boolean' ? 'bool' : typeof v === 'number' ? 'other' : Array.isArray(v) ? 'array' : 'table';
// SemVer 2.0 (semver.org's regular expression).
const SEMVER =
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
// The part of Cargo's requirement syntax this file uses: comparators like `>=0.7`, comma-separated.
const SEMVER_REQ = /^\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2}(?:\s*,\s*(?:[=><~^]|>=|<=)?\s*\d+(?:\.\d+){0,2})*\s*$/;
// eslint-disable-next-line no-control-regex -- APP_CONTRACT §2.2's control characters, on purpose
const CONTROL = /[\u0000-\u001f\u007f-\u009f]/;
const BIDI = /[؜‎‏‪-‮⁦-⁩]/;
const DEVICE = /^(con|prn|aux|nul|com[0-9]|lpt[0-9]|conin\$|conout\$)$/i;
function text(field: string, value: string, max: number): Refusal | null {
const chars = [...value].length;
if (chars === 0) return { field, reason: 'empty' };
if (chars > max) return { field, reason: 'too_long' };
if (CONTROL.test(value)) return { field, reason: 'control_char' };
if (BIDI.test(value)) return { field, reason: 'bidi_char' };
if (value.trim() !== value) return { field, reason: 'edge_space' };
return null;
}
function relPath(p: string): string | null {
if (p.length === 0) return 'path_empty';
if (new TextEncoder().encode(p).length > 255) return 'path_too_long';
if (p.includes('\0')) return 'path_nul';
if (p.includes('\\')) return 'path_backslash';
if (p.startsWith('/')) return 'path_absolute';
if (p.includes(':')) return 'path_colon';
if (p.includes('..')) return 'path_dotdot';
const parts = p.split('/');
if (parts.some((c) => c === '' || c === '.')) return 'path_component';
if (parts.some((c) => c.endsWith('.') || c.endsWith(' '))) return 'path_trailing';
if (parts.some((c) => DEVICE.test(c.split('.')[0]!))) return 'path_reserved';
if (!/^[A-Za-z0-9\-_./ %+()]+$/.test(p)) return 'path_char';
return null;
}
/** `null` when Atrium Domi would accept the file, else the first rule it breaks. */
export function checkManifest(bytes: Uint8Array): Refusal | null {
if (bytes.length > MAX_MANIFEST) return { field: null, reason: 'too_large' };
let source: string;
try {
source = new TextDecoder('utf-8', { fatal: true }).decode(bytes);
} catch {
// Invalid UTF-8 is the answer itself, not an error to report.
return { field: null, reason: 'not_utf8' };
}
let t: Record<string, Value>;
try {
t = readToml(source);
} catch (e) {
if (e instanceof NotToml) return { field: null, reason: 'not_toml' };
throw e;
}
if (Object.keys(t).some((k) => !KEYS.some(([name]) => name === k))) return { field: null, reason: 'unknown_key' };
for (const [key, kind, required] of KEYS) {
const v = t[key];
if (v === undefined) {
if (required) return { field: key, reason: 'missing' };
} else if (kindOf(v) !== kind) return { field: key, reason: 'wrong_type' };
}
const needs = t['needs'] as Record<string, Value>;
if (Object.keys(needs).some((k) => k !== 'fundamentum' && k !== 'atrium')) return { field: 'needs', reason: 'unknown_key' };
for (const k of ['fundamentum', 'atrium']) {
if (needs[k] === undefined) return { field: 'needs', reason: 'missing' };
if (typeof needs[k] !== 'string') return { field: 'needs', reason: 'wrong_type' };
}
const caps = (t['capabilities'] ?? []) as readonly Value[];
if (caps.length > 64) return { field: 'capabilities', reason: 'too_many' };
if (caps.some((c) => typeof c !== 'string')) return { field: 'capabilities', reason: 'wrong_type' };
const id = t['id'] as string;
if (!/^[a-z0-9-]{1,32}$/.test(id) || id.startsWith('-') || id.endsWith('-')) return { field: 'id', reason: 'bad_id' };
const named = text('name', t['name'] as string, 64) ?? text('label', t['label'] as string, 32);
if (named) return named;
const version = t['version'] as string;
if (version.length > 64 || !SEMVER.test(version)) return { field: 'version', reason: 'not_semver' };
if (!/^#[0-9a-fA-F]{6}$/.test(t['accent'] as string)) return { field: 'accent', reason: 'not_rgb' };
if (typeof t['icon'] === 'string') {
const bad = relPath(t['icon']);
if (bad) return { field: 'icon', reason: bad };
const last = t['icon'].split('/').pop()!;
const dot = last.lastIndexOf('.');
if (dot <= 0 || !['png', 'svg', 'ico'].includes(last.slice(dot + 1).toLowerCase())) return { field: 'icon', reason: 'icon_type' };
}
if (typeof t['ui_bundle'] === 'string') {
const bad = relPath(t['ui_bundle']);
if (bad) return { field: 'ui_bundle', reason: bad };
} else if (t['hostable'] === true) return { field: 'ui_bundle', reason: 'required' };
for (const k of ['fundamentum', 'atrium']) {
const req = needs[k] as string;
if (req.length > 64 || !SEMVER_REQ.test(req)) return { field: 'needs', reason: 'not_semver_req' };
}
const seen = new Set<string>();
for (const c of caps as readonly string[]) {
if (!/^[a-z0-9-]+\.[a-z0-9-]+\.[a-z0-9-]+$/.test(c)) return { field: 'capabilities', reason: 'bad_name' };
if (!c.startsWith(`${id}.`)) return { field: 'capabilities', reason: 'foreign_prefix' };
if (seen.has(c)) return { field: 'capabilities', reason: 'duplicate' };
seen.add(c);
}
return null;
}
+81
View File
@@ -0,0 +1,81 @@
/**
* The `domi-app.toml` Rosea ships for Atrium Domi (atrium-adoption.md; Atrium docs/APP_CONTRACT.md v0). Rosea ships
* a file Atrium accepts, ships it next to the `.exe` with the icon it names, and keeps her name, version and
* identity in the places they already live. The hostile fixtures prove that the check refuses what Atrium refuses,
* and refuses it for Atrium's reason.
*/
import { readdirSync, readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
import { ATRIUM, MANIFEST, domiApp, gameVersion, toToml } from '../scripts/domi-app.js';
import { checkManifest } from './domi-app-rules.js';
const HERE = dirname(fileURLToPath(import.meta.url));
const SRC_TAURI = join(HERE, '..', 'src-tauri');
const FIXTURES = join(HERE, 'fixtures', 'domi-app');
const shipped = toToml(domiApp(gameVersion()));
const bytes = (s: string): Uint8Array => new TextEncoder().encode(s);
describe('domi-app.toml', () => {
it('is accepted by the rules of APP_CONTRACT §2', () => {
expect(checkManifest(bytes(shipped))).toBeNull();
});
it("names her as the product does, at the game's version, with her Aula id", () => {
const m = domiApp(gameVersion());
expect(m.name).toBe(PRODUCT_NAME);
expect(m.version).toBe(JSON.parse(readFileSync(join(HERE, '..', '..', 'rosea', 'package.json'), 'utf8')).version);
expect(m.id).toBe('rosea');
expect(shipped).toContain(`name = "${PRODUCT_NAME}"`);
});
it('is not hostable until her own window and origin are kept (R1), and asks for nothing', () => {
const m = domiApp('0.1.0');
expect(m.hostable).toBe(false);
expect(shipped).not.toContain('ui_bundle');
expect(shipped).not.toContain('capabilities');
});
it('is shipped next to the .exe on Windows only, with the icon it names', () => {
const win = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.windows.conf.json'), 'utf8')) as {
bundle: { resources: Record<string, string> };
};
expect(win.bundle.resources).toEqual({ [MANIFEST]: 'domi-app.toml', [ATRIUM.icon.from]: ATRIUM.icon.file });
expect(domiApp('0.1.0').icon).toBe(ATRIUM.icon.file);
// The shared config would put it into the Android and macOS packages too.
const shared = JSON.parse(readFileSync(join(SRC_TAURI, 'tauri.conf.json'), 'utf8')) as { bundle: Record<string, unknown> };
expect(shared.bundle['resources']).toBeUndefined();
});
it('is made before every desktop build and never committed', () => {
const pkg = JSON.parse(readFileSync(join(HERE, '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
expect(pkg.scripts['build:desktop']).toMatch(/tsx scripts\/domi-app\.ts && tauri build( |$)/);
expect(pkg.scripts['dev']).toContain('tsx scripts/domi-app.ts');
const ignore = readFileSync(join(HERE, '..', '..', '..', '.gitignore'), 'utf8');
expect(ignore).toContain('apps/rosea-tauri/src-tauri/atrium/');
});
it('escapes a quote or a backslash, so no value can add a key', () => {
const hostile = toToml({ ...domiApp('0.1.0'), label: 'Rose"\nfree = false\n#\\' });
expect(checkManifest(bytes(hostile))).toEqual({ field: 'label', reason: 'control_char' });
expect(hostile.split('\n').filter((l) => l.startsWith('free'))).toEqual(['free = true']);
});
});
describe('a hostile domi-app.toml is refused, with the reason Atrium Domi logs', () => {
const files = readdirSync(FIXTURES).filter((f) => f.endsWith('.toml'));
it('has one fixture for each rule it claims', () => {
expect(files.length).toBeGreaterThanOrEqual(27);
});
for (const file of files) {
const [field, reason] = file.replace(/(-\d+)?\.toml$/, '').split('.') as [string, string];
it(`${file}: ${field === 'file' ? '' : `${field} `}${reason}`, () => {
const refusal = checkManifest(new Uint8Array(readFileSync(join(FIXTURES, file))));
expect(refusal).toEqual({ field: field === 'file' ? null : field, reason });
});
}
});
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "rose"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,10 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
capabilities = ["rosea.rose.read", "rosea.rose.read"]
@@ -0,0 +1,10 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
capabilities = ["culina.recipe.read"]
@@ -0,0 +1,10 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
id = "rosea"
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea ÿ Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
format = 2
@@ -0,0 +1,8 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = "false"
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.gif"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "/domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "icons\\domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi*icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "C:domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "../domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "CON.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "-rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "Rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = " Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = ""
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea ‮Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea\u0007Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = "newest", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1", lector = ">=1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1.0"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = true
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,9 @@
id = "rosea"
name = "Rosea Domi"
label = "Rose"
version = "0.1"
accent = "#b4485e"
icon = "domi-icon.png"
hostable = false
free = true
needs = { fundamentum = ">=0.7", atrium = ">=0.1" }
@@ -0,0 +1,63 @@
import { mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterEach, describe, expect, it } from 'vitest';
import { renameInstaller } from '../scripts/installer-name.js';
import { INSTALLER_PATTERN, installerName, tauriInstallerName } from '../src/installer-name.js';
describe('installerName', () => {
it('has no space, and matches what Aula and Atrium accept', () => {
expect(installerName('0.1.2')).toBe('RoseaDomi_0.1.2_x64-setup.exe');
expect(installerName('0.1.2')).toMatch(INSTALLER_PATTERN);
expect(installerName('12.0.31')).toMatch(INSTALLER_PATTERN);
});
it("knows Tauri's own name has a space, which Aula refuses", () => {
expect(tauriInstallerName('0.1.2')).toBe('Rosea Domi_0.1.2_x64-setup.exe');
expect(tauriInstallerName('0.1.2')).not.toMatch(INSTALLER_PATTERN);
});
it('refuses something that is not a version', () => {
expect(() => installerName('0.1')).toThrow(/not a version/);
expect(() => installerName('0.1.2 x')).toThrow(/not a version/);
});
});
describe('the desktop build', () => {
it('renames the installer right after tauri build, so the release never sees the name with a space', () => {
const pkg = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
expect(pkg.scripts['build:desktop']).toMatch(/&& tauri build && tsx scripts\/installer-name\.ts$/);
});
});
describe('renameInstaller', () => {
let dir = '';
afterEach(() => {
if (dir) rmSync(dir, { recursive: true, force: true });
dir = '';
});
it("renames the built installer, and leaves only names Aula accepts", () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
writeFileSync(join(dir, 'Rosea Domi_0.1.2_x64-setup.exe'), 'exe');
const to = renameInstaller(dir, '0.1.2');
expect(to).toBe(join(dir, 'RoseaDomi_0.1.2_x64-setup.exe'));
expect(readdirSync(dir)).toEqual(['RoseaDomi_0.1.2_x64-setup.exe']);
});
it('fails when the build left no installer', () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
expect(() => renameInstaller(dir, '0.1.2')).toThrow(/no installer to rename/);
});
it("removes an older build's installers, so the release publishes only this one", () => {
dir = mkdtempSync(join(tmpdir(), 'rosea-nsis-'));
writeFileSync(join(dir, 'Rosea Domi_0.1.2_x64-setup.exe'), 'exe');
writeFileSync(join(dir, 'Rosea Domi_0.1.1_x64-setup.exe'), 'old');
writeFileSync(join(dir, 'RoseaDomi_0.1.1_x64-setup.exe'), 'old');
writeFileSync(join(dir, 'notes.txt'), 'kept');
renameInstaller(dir, '0.1.2');
expect(readdirSync(dir).sort()).toEqual(['RoseaDomi_0.1.2_x64-setup.exe', 'notes.txt']);
});
});
+54
View File
@@ -0,0 +1,54 @@
/**
* The release APK is signed in Custos and nowhere else (fabrica-release.md F4): the arguments
* name the one key, the exact repository and a tag, and the script never falls back to another
* custos-sign or another Custos.
*/
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import { APK_KEY, custosSign, signArgs, signedApkName, UNSIGNED_APK } from '../src/sign-apk.js';
const COMMIT = 'a'.repeat(40);
const pkg = JSON.parse(readFileSync(join(fileURLToPath(new URL('..', import.meta.url)), 'package.json'), 'utf8')) as { scripts: Record<string, string> };
describe('signArgs', () => {
it('asks for rosea-domi-android, scoped to mnovak/Rosea, the release pipeline and a tag', () => {
const args = signArgs({ version: '0.1.0', commit: COMMIT, unsigned: 'in.apk', out: 'out.apk' });
expect(args).toEqual([
'apk', 'in.apk', '--out', 'out.apk', '--key', 'rosea-domi-android', '--repo', 'mnovak/Rosea', '--pipeline', 'release',
'--commit', COMMIT, '--trigger', 'tag', '--run', 'rosea-v0.1.0', '--version', '0.1.0', '--step', 'apk'
]);
expect(APK_KEY).toBe('rosea-domi-android');
});
it('refuses a version or a commit that is not one', () => {
expect(() => signArgs({ version: 'v0.1.0', commit: COMMIT, unsigned: 'a', out: 'b' })).toThrow(/not a version/);
expect(() => signArgs({ version: '0.1.0', commit: 'HEAD', unsigned: 'a', out: 'b' })).toThrow(/not a commit/);
});
it('names the published APK by app, version and ABI', () => {
expect(signedApkName('0.1.0')).toBe('rosea-domi-0.1.0-arm64.apk');
});
it('signs the release build that android.ts verified, never the debug one', () => {
expect(UNSIGNED_APK).toContain('/release/');
expect(pkg.scripts['build:android-release']).toContain(`verify src-tauri/${UNSIGNED_APK}`);
expect(pkg.scripts['build:android-release']).not.toContain('--debug');
});
});
describe('custosSign', () => {
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({}, () => true)).toBe('custos-sign.exe');
});
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/);
});
it('refuses another Custos (CUSTOS_PIPE)', () => {
expect(() => custosSign({ CUSTOS_PIPE: '\\\\.\\pipe\\test' }, () => true)).toThrow(/CUSTOS_PIPE/);
});
});
+1 -1
View File
@@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en" data-domi-room="rosea" data-domi-theme="auto">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
+2 -1
View File
@@ -1,7 +1,8 @@
{ {
"name": "@rosea/app", "name": "@rosea/app",
"version": "0.1.0", "version": "0.1.1",
"private": true, "private": true,
"license": "CPAL-1.0",
"type": "module", "type": "module",
"description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.", "description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.",
"scripts": { "scripts": {
+36 -5
View File
@@ -54,15 +54,17 @@
} }
// --- Keeping her (keep-her-safe.md) ------------------------------------- // --- Keeping her (keep-her-safe.md) -------------------------------------
// The Android, iOS and desktop apps are installed by being apps (tauri-platforms.md D9):
// they ask to keep the garden after the first care, as an installed PWA does, and never
// show the hint to add the page to the home screen. Keep her safe speaks of the app, not a
// browser (keep-her-safe-apps.md A1).
const inApp = __ROSEA_SHELL__ === 'tauri';
const browserStorage = typeof navigator !== 'undefined' ? navigator.storage : undefined; const browserStorage = typeof navigator !== 'undefined' ? navigator.storage : undefined;
const keeping: RoseWiring['keeping'] = { const keeping: RoseWiring['keeping'] = {
where: inApp ? 'app' : 'browser',
persisted: async () => (browserStorage?.persisted ? browserStorage.persisted() : null), persisted: async () => (browserStorage?.persisted ? browserStorage.persisted() : null),
persist: async () => (browserStorage?.persist ? browserStorage.persist() : null) persist: async () => (browserStorage?.persist ? browserStorage.persist() : null)
}; };
// The Android, iOS and desktop apps are installed by being apps (tauri-platforms.md D9):
// they ask to keep the garden after the first care, as an installed PWA does, and never
// show the hint to add the page to the home screen.
const inApp = __ROSEA_SHELL__ === 'tauri';
const installed = (): boolean => const installed = (): boolean =>
inApp || inApp ||
matchMedia('(display-mode: standalone)').matches || matchMedia('(display-mode: standalone)').matches ||
@@ -76,7 +78,36 @@
keeping.persist().catch((error: unknown) => console.error('keep: asking the browser to keep the garden failed', error)); keeping.persist().catch((error: unknown) => console.error('keep: asking the browser to keep the garden failed', error));
} }
function saveFile(name: string, text: string): void { /**
* Android's save screen, through the app's own bridge (keep-her-safe-apps.md A2): present
* only in the Android app, where `<a download>` does nothing. It answers with a window event,
* true when the file was written, false when the player stepped back (A4).
*/
const androidFile = inApp ? (window as Window & { roseaFile?: { save(name: string, text: string): void } }).roseaFile : undefined;
let saving: Promise<boolean> | undefined;
function saveFile(name: string, text: string): void | Promise<boolean> {
if (androidFile) {
// One save at a time: a second tap while the screen is open waits for the first answer.
if (saving) return saving;
saving = new Promise<boolean>((resolve) => {
const answer = (event: Event): void => {
window.removeEventListener('rosea-file-saved', answer);
saving = undefined;
resolve((event as CustomEvent<unknown>).detail === true);
};
window.addEventListener('rosea-file-saved', answer);
try {
androidFile.save(name, text);
} catch (error) {
console.error('keep: the app could not open the save screen', error);
window.removeEventListener('rosea-file-saved', answer);
saving = undefined;
resolve(false);
}
});
return saving;
}
// A file made here and handed over; nothing is sent anywhere. // A file made here and handed over; nothing is sent anywhere.
const url = URL.createObjectURL(new Blob([text], { type: 'application/json' })); const url = URL.createObjectURL(new Blob([text], { type: 'application/json' }));
const a = Object.assign(document.createElement('a'), { href: url, download: name }); const a = Object.assign(document.createElement('a'), { href: url, download: name });
+20 -5
View File
@@ -27,8 +27,8 @@ A picture that is off-style goes back for another try. It is never shipped.
> care with animations, gestures. He chose a **round tiny planet** (S2 below, reversed) and a > care with animations, gestures. He chose a **round tiny planet** (S2 below, reversed) and a
> **human gardener, a boy or a girl, chosen and dressed by the player** (S6, new), knowing that > **human gardener, a boy or a girl, chosen and dressed by the player** (S6, new), knowing that
> a child tending a rose on a small round planet is close to the book's most recognisable image. > a child tending a rose on a small round planet is close to the book's most recognisable image.
> The guards that keep them our own are in §3b, §4 and review points 10–11, and a legal check of > The guards that keep them our own are in §3b, §4 and review points 10–11 (`.agents/features/planet-garden.md`
> the look comes before any public release (`.agents/features/planet-garden.md` §0). > §0). The legal check that was to come before release (G6.1) was removed by the author on 2026-11-25.
--- ---
@@ -150,9 +150,22 @@ Every gardener picture follows `gardener-sheet`.
- **The choices the player makes** (skin tone, hair style and colour, clothes colour, straw hat, - **The choices the player makes** (skin tone, hair style and colour, clothes colour, straw hat,
cap or none) are the app's (`gardener.schema.json`). The board paints **the first look** (the girl: cap or none) are the app's (`gardener.schema.json`). The board paints **the first look** (the girl:
braids, brown hair, sage clothes, straw hat; and the boy, short hair, the same colours) so the braids, brown hair, sage clothes, straw hat; and the boy, short hair, the same colours) so the
character can be judged. **How the other looks are drawn** (separate layers for hair and hat, or character can be judged.
clothes painted to be tinted in code) **is still open** and waits for Mark: it decides how many - **Every look is stacked from painted layers** (decided by Mark 2026-11-17: *layered parts*, not a
pictures the gardener needs. few painted looks, not colours tinted in code). The app stacks five transparent layers, back to
front: **body** (skin, with the face, and a plain cream vest and shorts), **clothes** (the girl's
tunic or the boy's shirt and trousers), **apron and boots**, **hair**, **hat**. Each layer is a
sprite sheet with the same eight poses as `gardener-poses-sheet`, **the guide**: the girl in the
first look, whole, never shown in the app. A layer is painted over the guide in register — only
its part, exactly where it sits on the guide's figure, everything else transparent — and always
as a whole sheet: one picture at a time would not line up. `pnpm art:accept` refuses a layer
whose part strays more than 8 % of its cell outside the guide's figure, and any layer before the
guide is accepted. The layers never hold the watering can or the windbreak: the game draws them.
- **How many:** one layer sheet for each value the player can choose — 6 bodies (skin), 10 clothes
(girl and boy in 5 colours), 1 apron, 36 hairs (6 styles in 6 colours), 2 hats (no hat needs
none): **55 layer sheets** of 8 pictures, all listed by `art/manifest.json` (`layers`). The seven
that stack the two first looks come first on the board; until a look's layers are all accepted,
the app keeps its code drawing for that look.
- **Never:** a scarf, a long coat or cape, a suit with epaulettes, a crown, a sword, golden curls - **Never:** a scarf, a long coat or cape, a suit with epaulettes, a crown, a sword, golden curls
with a green outfit, or anything that recreates the book's boy. He or she is a gardener at work. with a green outfit, or anything that recreates the book's boy. He or she is a gardener at work.
- **Size:** standing, a little taller than the rose. - **Size:** standing, a little taller than the rose.
@@ -293,6 +306,8 @@ tick them: *Accept* is one tap.
apron, boots; no scarf, long coat, cape, suit, crown or sword, and nothing like the book's boy. apron, boots; no scarf, long coat, cape, suit, crown or sword, and nothing like the book's boy.
11. Her planet is a cultivated garden world: meadow, her bed, the wall, the chair; no volcanoes, 11. Her planet is a cultivated garden world: meadow, her bed, the wall, the chair; no volcanoes,
no baobab-like trees, no lone lamp post, and not the look of the book's little planet. no baobab-like trees, no lone lamp post, and not the look of the book's little planet.
12. A gardener layer holds only its part, in register with the guide: stacked with the other
layers of a look, it makes one child, with nothing doubled, missing or shifted.
--- ---
+131 -3
View File
@@ -717,7 +717,7 @@
}, },
{ {
"phase": 1, "phase": 1,
"shipped": true, "shipped": false,
"character": "gardener", "character": "gardener",
"allow": [ "allow": [
"people, hands or human faces" "people, hands or human faces"
@@ -738,9 +738,9 @@
"background": "transparent", "background": "transparent",
"smallest": 120, "smallest": 120,
"usedBy": [ "usedBy": [
"The gardener at work on her planet (planet-garden.md G5): each pose is shown while the care it belongs to happens." "The guide every gardener layer is painted over (STYLE.md §3b): never shown in the app, which stacks the layers into the look the player chose. Make it right after gardener-sheet, and accept it before any layer."
], ],
"purpose": "The gardener's poses for each act of care, the girl in the first look.", "purpose": "The guide: the girl in the first look, whole, in every pose of care. Each layer is painted over it in register.",
"angle": "The whole girl gardener in every cell, in side view facing right unless the cell says otherwise, at the same scale as gardener-sheet, the same light from the left.", "angle": "The whole girl gardener in every cell, in side view facing right unless the cell says otherwise, at the same scale as gardener-sheet, the same light from the left.",
"grid": { "grid": {
"cols": 4, "cols": 4,
@@ -1751,5 +1751,133 @@
6 6
] ]
} }
],
"layers": [
{
"character": "gardener",
"over": "gardener-poses-sheet",
"phase": 1,
"words": {
"skin": {
"skin-1": "very light, rosy skin (#F6DCC8)",
"skin-2": "light, warm skin (#E8BF9C)",
"skin-3": "warm, medium golden-brown skin (#CF9A72)",
"skin-4": "warm tan-brown skin (#A9714B)",
"skin-5": "deep brown skin (#7F5236)",
"skin-6": "very deep brown skin (#553422)"
},
"presentation": {
"girl": "the girl's plain short-sleeved tunic, falling to just above the knee",
"boy": "the boy's plain short-sleeved shirt and simple trousers to the ankle"
},
"clothes": {
"sage": "sage green (#7FA07A)",
"rose": "dusty rose (#C85A6E)",
"honey": "honey ochre (#B98A5A)",
"dusk": "dusk blue (#5B6FA6)",
"plum": "soft plum (#7A4F6E)"
},
"hair": {
"short": "short hair, cut just above the ears",
"curly": "short soft curls close round the head",
"ponytail": "hair tied back in one ponytail",
"braids": "hair in two braids to the shoulders",
"bob": "a chin-length bob with a short fringe",
"bun": "hair in a small round bun at the back of the head"
},
"hairColour": {
"black": "black (#2B2324)",
"dark-brown": "dark brown (#4A2F24)",
"brown": "warm brown (#7A4B2E)",
"auburn": "auburn (#9A4A2A)",
"red": "copper red (#B5532C)",
"fair": "light honey-fair (#D9B26A)"
},
"hat": {
"straw-hat": "a wide straw hat with a low round crown",
"cap": "a soft cream cotton cap with a short peak",
"none": "no hat"
}
},
"first": [
{
"skin": "skin-3",
"presentation": "girl",
"clothes": "sage",
"hair": "braids",
"hairColour": "brown",
"hat": "straw-hat"
},
{
"skin": "skin-3",
"presentation": "boy",
"clothes": "sage",
"hair": "short",
"hairColour": "brown",
"hat": "straw-hat"
}
],
"parts": [
{
"part": "body",
"axes": [
"skin"
],
"subject": "only the gardener's body, in {skin}: the head with the same tiny painted face as the guide, the ears, neck, arms, hands and legs; and a plain, close-fitting cream vest and short shorts where the clothes will cover them. No hair, no clothes over the vest, no apron, boots or hat."
},
{
"part": "clothes",
"axes": [
"presentation",
"clothes"
],
"subject": "only the gardener's clothes: {presentation}, all in {clothes}, worn exactly as on the guide. Where skin, hair, the apron or the boots would be, leave it transparent."
},
{
"part": "apron",
"axes": [],
"subject": "only the gardener's cream canvas apron with one pocket, and the small sturdy brown boots, exactly as on the guide. Nothing else."
},
{
"part": "hair",
"axes": [
"hair",
"hairColour"
],
"subject": "only the gardener's hair: {hair}, {hairColour}, sitting on the guide's head exactly. The whole hairstyle, as if there were no hat; no face, skin or hat."
},
{
"part": "hat",
"axes": [
"hat"
],
"skip": [
"none"
],
"subject": "only the gardener's hat: {hat}, sitting on the guide's head exactly where the guide's hat is. Nothing else."
}
],
"include": [
"exactly the size, pose and position of the figure in the attached guide, picture by picture",
"the part only; fully transparent everywhere else"
],
"avoid": [
"any part of the gardener other than the one named",
"the watering can, the windbreak or any other thing the guide holds (the game draws them)",
"ground or grass under them"
],
"allow": [
"people, hands or human faces"
],
"checks": [
2,
4,
5,
6,
7,
10,
12
]
}
] ]
} }
+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
<!-- Stand-in for gardener-apron (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="384" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(4 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="768" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(10 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="1152" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(28 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="0" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(18 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="384" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(6 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="768" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(14 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg><svg x="1152" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/></g></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.9 KiB

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
<!-- Stand-in for gardener-carry (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. --> <!-- Stand-in for gardener-carry (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(6 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-80 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g><path d="M80 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M88 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M96 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M104 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g> <g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/><g transform="rotate(6 61 150)"><path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-80 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/><path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e" stroke="#3a2730" stroke-width="2"/><path d="M44 58 v 30" stroke="#7a4b2e" stroke-width="7" fill="none" stroke-linecap="round"/><path d="M78 58 v 30" stroke="#7a4b2e" stroke-width="7" fill="none" stroke-linecap="round"/><ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/></g></g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
<!-- Stand-in for gardener-clothes-boy-dusk (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(4 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(10 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(28 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="0" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(18 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(6 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#5b6fa6" stroke-width="14" stroke-linecap="round"/><g transform="rotate(14 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 160 h26 v34 M62 160 h26 v34" stroke="#5b6fa6" stroke-width="16" fill="none" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
<!-- Stand-in for gardener-clothes-boy-honey (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(4 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(10 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(28 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="0" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(18 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(6 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><g transform="rotate(14 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 160 h26 v34 M62 160 h26 v34" stroke="#b98a5a" stroke-width="16" fill="none" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/></g></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
<!-- Stand-in for gardener-clothes-boy-plum (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(4 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(10 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="0" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(28 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="0" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(18 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="384" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(6 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="768" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#7a4f6e" stroke-width="14" stroke-linecap="round"/><g transform="rotate(14 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg><svg x="1152" y="512" width="384" height="512" viewBox="0 0 384 512"><g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 160 h26 v34 M62 160 h26 v34" stroke="#7a4f6e" stroke-width="16" fill="none" stroke-linecap="round"/><g transform="rotate(0 61 150)"><path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="#7a4f6e" stroke="#3a2730" stroke-width="4"/></g></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

Some files were not shown because too many files have changed in this diff Show More