Compare commits

..

68 Commits

Author SHA1 Message Date
mnovak 3a2ebbd9dc [tauri] TauriPlatforms: Merge four versions from one codebase: the PWA, and Android, iOS and desktop apps through a Tauri 2 shell 2026-11-17 19:24:06 +01:00
mnovak 2c3a71c12d [docs] TauriPlatforms: Gates on the merged tree, where IndexedDB lives on Android, handover 2026-11-17 19:23:46 +01:00
mnovak 08c188ccee [tauri] TauriPlatforms: Bring main (the sunrise, Coyhaique) into the branch
# Conflicts:
#	.agents/GAP_ANALYSIS.md
#	.agents/lessons/README.md
#	.agents/lessons/technical.md
2026-11-17 19:02:29 +01:00
mnovak b2b50efd90 [docs] TauriPlatforms: Review, measurements on the tablet and Windows, lessons, gaps 2026-11-17 19:02:04 +01:00
mnovak 9e3d389f82 [tauri] TauriPlatforms: Read the built APK's own values, carry Rosea's launcher icon into gen/android, survive a dropped USB link 2026-11-17 18:57:14 +01:00
mnovak 0b64c43d4a [ui] Sunrise: Merge the sunrise in the garden 2026-11-17 18:53:01 +01:00
mnovak 132ba05fe9 [docs] Sunrise: Analysis, review, and G1.10 closed 2026-11-17 18:52:59 +01:00
mnovak 0c4f5bb556 [ui] Sunrise: The garden names the real sunrise from sunset until it comes 2026-11-17 18:52:56 +01:00
mnovak e0a3b66dc8 [content] Coyhaique: Merge the town list fix for Chile's clocks 2026-11-17 18:49:28 +01:00
mnovak 103283daaa [docs] Coyhaique: Review, lesson, and the Node gap narrowed 2026-11-17 18:49:28 +01:00
mnovak 96ac78d079 [build] Coyhaique: Never lint other sessions' worktrees or Rust build output 2026-11-17 18:49:27 +01:00
mnovak c2320a4517 [content] Coyhaique: Trust only a country's own zones, and give southern Chile its own clocks 2026-11-17 18:49:27 +01:00
mnovak a93ef09956 [tauri] TauriPlatforms: The shell around the built game, the Android privacy patch, the shell build of the game, and the device check 2026-11-17 18:45:37 +01:00
mnovak 3f95a1b37d [docs] TauriPlatforms: Four versions from one codebase on Tauri 2: CLAUDE.md, the roadmap's platform track, the analysis 2026-11-17 18:45:36 +01:00
mnovak 22f55dc9fa [art] BoardV2: Merge better prompts and every picture Phases 1-5 need 2026-11-07 15:40:52 +01:00
mnovak 96c0a2b00e [docs] BoardV2: Review, lesson, and the art gap updated 2026-11-07 15:40:51 +01:00
mnovak d968998f23 [art] BoardV2: Every picture Phases 1-5 need: 86 pictures, each with a stand-in 2026-11-07 15:38:35 +01:00
mnovak 5f2a5f3cfc [art] BoardV2: Prompts lead with the look, say the grid in words, and stop naming the book's motifs 2026-11-07 15:38:30 +01:00
mnovak e415d1ed29 [storage] TwoTabs: Merge two tabs, one garden 2026-11-07 15:07:43 +01:00
mnovak 8c19459bb6 [docs] TwoTabs: Analysis, review, the trap measured, G1.8 closed 2026-11-07 15:07:33 +01:00
mnovak b67fa3603d [ui] TwoTabs: The rose and the garden read again when another tab wrote, keeping their own 2026-11-07 15:06:44 +01:00
mnovak 102ac44675 [storage] TwoTabs: Announce each write to the other tabs after it commits 2026-11-07 15:06:43 +01:00
mnovak 0861125472 [ui] Thorns: Merge touching her gently 2026-11-02 09:33:58 +01:00
mnovak 87375c72d4 [docs] Thorns: Analysis, review, and G1.7 closed 2026-11-02 09:33:57 +01:00
mnovak 1070017d2c [ui] Thorns: Touch her over her picture; Gently. I have thorns. 2026-11-02 09:33:23 +01:00
mnovak ae1169ed6a [engine] Thorns: A touch is answered fondly; a rush brings her thorns, never a tremor 2026-11-02 09:33:22 +01:00
mnovak 03d41aa893 [ui] DaySentence: Merge the rose's folded petal and the sentence candidates 2026-11-02 09:04:13 +01:00
mnovak 838830e0ef [docs] DaySentence: Analysis, review, lessons, and G1.5 closed for the code 2026-11-02 09:03:56 +01:00
mnovak 781a2407b9 [content] DaySentence: 78 candidate sentences, copied from public-domain editions, for the author to verify 2026-11-02 09:01:53 +01:00
mnovak 1e647985ea [build] DaySentence: The build's cache key includes ROSEA_BASE and ROSEA_LIBRARY_DIR 2026-11-02 08:57:54 +01:00
mnovak 03dc69702a [ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation 2026-11-02 08:55:06 +01:00
mnovak 5934523e45 [content] DaySentence: Candidates held to every rule; library:verify for the author 2026-11-02 08:55:06 +01:00
mnovak cdbaf56195 [storage] DaySentence: Opened petals in the log; the rose file carries them as version 2 2026-11-02 08:55:05 +01:00
mnovak 636c0bcbc0 [engine] DaySentence: The folded petal waits until opened, one a day, never lost 2026-11-02 08:55:05 +01:00
mnovak ad41c58730 [schema] DaySentence: The sentence-opened event, an id and never text 2026-11-02 08:55:04 +01:00
mnovak 9c7f67a1f0 [ui] ChairSunset: Merge the in-game sunset 2026-11-02 07:35:32 +01:00
mnovak 12fc4bd249 [docs] ChairSunset: Analysis, review, and G1.6 closed 2026-11-02 07:35:31 +01:00
mnovak 8e286b2bf6 [app] ChairSunset: e2e watches the in-game sunset; the offline suite watches one with the server gone 2026-11-02 07:35:31 +01:00
mnovak 7a6cf4c6d1 [ui] ChairSunset: Move the chair, half a minute of sunset with nothing to press, then the real one's time 2026-11-02 07:35:30 +01:00
mnovak a99dfe535d [app] CalmRefresh: Merge the calm refresh 2026-11-02 01:18:11 +01:00
mnovak ff3a996482 [docs] CalmRefresh: Analysis, review, and G0.10 closed 2026-11-02 01:18:10 +01:00
mnovak a5480d2877 [app] CalmRefresh: Register the worker in the app and offer the waiting version; e2e publishes a real second one 2026-11-02 01:18:09 +01:00
mnovak beea8eaa10 [ui] CalmRefresh: One quiet line and Refresh when a new version of the garden is waiting 2026-11-02 01:18:08 +01:00
mnovak 8c84cbbb52 [tools] CpuGuard: Merge the CPU guard 2026-11-02 00:51:47 +01:00
mnovak 8ee3e1ce28 [docs] CpuGuard: Record the guard in CLAUDE.md 5.7, its review, and G0.28 closed 2026-11-02 00:51:46 +01:00
mnovak f9883e22ba [tools] CpuGuard: Full test runs wait for, then refuse, a machine above 80 % CPU 2026-11-02 00:51:45 +01:00
mnovak 8b1c2eaee2 [app] KeepSafe: Merge keeping the rose safe 2026-11-02 00:44:28 +01:00
mnovak 55fc14b125 [docs] KeepSafe: Analysis, review, lessons, and G0.11 closed 2026-11-02 00:44:24 +01:00
mnovak e63563755b [app] KeepSafe: Wire persist, the file download and import; e2e restores her on a fresh profile 2026-11-02 00:44:22 +01:00
mnovak 512c300973 [ui] KeepSafe: Say what the browser promised, ask it to keep her, save her to a file, bring her back 2026-11-02 00:44:20 +01:00
mnovak a63232e8d7 [storage] RoseFile: Save the rose's keys and care to a file and bring them back additively; never the town or the private key 2026-11-02 00:44:18 +01:00
mnovak cc9cc11b0b [engine] Rose: Name a rose by her current and past keys, replay each key on its own, and add each act once 2026-11-02 00:44:16 +01:00
mnovak a7d0fca31a [app] Rose: Merge the rose and her care 2026-11-02 00:21:01 +01:00
mnovak aa1e8b6f66 [docs] Rose: Analysis, review, lesson, and G1.4 closed 2026-11-02 00:21:00 +01:00
mnovak 21f4496910 [app] Rose: Wire identity and the care log into the garden; e2e and offline tend the rose 2026-11-02 00:20:59 +01:00
mnovak 6a3ca84aaa [ui] Rose: The rose with her face and words, water by holding, care when needed, her numbers on request 2026-11-02 00:20:59 +01:00
mnovak 2b5cd719c1 [storage] CareLog: Append-only care events and the kept identity, checked against the contract 2026-11-02 00:20:58 +01:00
mnovak d091c31b49 [identity] Keypair: Make the player's ECDSA P-256 key on the device, private key non-extractable 2026-11-02 00:20:57 +01:00
mnovak 6fee00f5b3 [engine] Rose: Replay the care log into growth from days of care, drift, moods, needs and numbers 2026-11-02 00:20:57 +01:00
mnovak b150c64af7 [schema] CareEvent: Water carries the amount poured, so watering by feel can be replayed 2026-11-02 00:20:56 +01:00
mnovak 5e41a449a4 [app] SunsetPlace: Merge choosing where the sunset is 2026-11-02 00:01:53 +01:00
mnovak 6d29e4a4c9 [docs] SunsetPlace: Analysis, review, lessons, and G1.2 closed 2026-11-02 00:01:53 +01:00
mnovak 85df2c43b5 [app] SunsetPlace: Wire the town list, the guess and storage into the garden; e2e and offline cover it 2026-11-02 00:01:52 +01:00
mnovak 77a865f625 [ui] SunsetPlace: Ask where the sunset is, and say when tonight's sunset is 2026-11-02 00:01:51 +01:00
mnovak 3ed91eea7b [storage] Profile: Keep the sunset place in IndexedDB, written as a plain checked copy 2026-11-02 00:01:50 +01:00
mnovak 1e8d1cda5a [engine] Sun: nextInvitation checks yesterday, today and tomorrow; addDays steps the calendar; NamedPlace 2026-11-02 00:01:50 +01:00
mnovak fb7171c3a7 [content] Places: 7,342 public-domain towns searched on the device, and a sunset guess for every time zone a browser reports 2026-11-02 00:01:49 +01:00
mnovak 2b216855fc [docs] Q10: Merge the polar-night invitation decision 2026-11-01 23:28:06 +01:00
199 changed files with 18454 additions and 467 deletions
+11
View File
@@ -5,8 +5,19 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
| Feature | Phase | Status | Analysis | Review |
|:--|:--|:--|:--|:--|
| 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) |
| 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) |
| The Letter slot: page at `#letter`, empty `docs/LETTER.md` | 0 | Merged to `main`; built, not deployed. Invisible until the author writes | [letter-slot.md](features/letter-slot.md) | [feature-letter-slot.md](reviews/feature-letter-slot.md) |
| The sunrise: the line names the real sunrise from sunset until it comes | 1 | Merged to `main`; built, not deployed | [sunrise.md](features/sunrise.md) | [feature-sunrise.md](reviews/feature-sunrise.md) |
| Two tabs, one garden: what one tab writes, the others see | 1 | Merged to `main`; built, not deployed | [two-tabs.md](features/two-tabs.md) | [fix-two-tabs.md](reviews/fix-two-tabs.md) |
| Thorns: touch her; a rush of taps, and she says she has thorns | 1 | Merged to `main`; built, not deployed | [thorns.md](features/thorns.md) | [feature-thorns.md](reviews/feature-thorns.md) |
| The day's sentence: her folded petal, one a day, never lost, best at sunset; candidates and `library:verify` | 1 | Merged to `main`; built, not deployed. Invisible until the author verifies sentences | [day-sentence.md](features/day-sentence.md) | [feature-day-sentence.md](reviews/feature-day-sentence.md) |
| The in-game sunset: move the chair, half a minute of silence, then the real sunset's time | 1 | Merged to `main`; built, not deployed | [chair-sunset.md](features/chair-sunset.md) | [feature-chair-sunset.md](reviews/feature-chair-sunset.md) |
| A calm refresh: a waiting new version is offered in one line, never swapped in by itself | 0 | Merged to `main`; built, not deployed | [calm-refresh.md](features/calm-refresh.md) | [feature-calm-refresh.md](reviews/feature-calm-refresh.md) |
| The CPU guard: full runs wait for, then refuse, a busy machine | 0 | Merged to `main` | — | [fix-cpu-guard.md](reviews/fix-cpu-guard.md) |
| Keep her safe: the browser's promise, save her to a file, bring her back | 0–1 | Merged to `main`; built, not deployed | [keep-her-safe.md](features/keep-her-safe.md) | [feature-keep-her-safe.md](reviews/feature-keep-her-safe.md) |
| The rose: care by feel, growth from days of care, drift, moods, her numbers; the care log and the identity | 1 | Merged to `main`; built, not deployed. Tuning is the author's | [rose.md](features/rose.md) | [feature-rose-care.md](reviews/feature-rose-care.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 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) |
+38 -10
View File
@@ -26,22 +26,23 @@ board exist, and the first real picture is the author's to make.
| ~~G0.7~~ | ~~No commit guards~~ | Closed 2026-11-01. `pre-commit` blocked a 5.7 MB probe; `commit-msg` blocked a `Co-Authored-By: Claude` trailer; both passed clean input. |
| ~~G0.8~~ | ~~Never tested under the Pages sub-path~~ | Closed for the local build 2026-11-01. `shell.spec.ts` serves `dist/` at `/Rosea/` and asserts manifest scope = start_url = SW scope. Mutation: scope `/` fails it. **On real GitHub Pages: still predicted** (G0.13). |
| ~~G0.9~~ | ~~No proof the app opens offline~~ | Closed for the shell 2026-11-01. `offline.spec.ts` closes the server, then reload, cold start and a deep link all render. Mutations: `clientsClaim: false` and no `navigateFallback` both fail it. |
| G0.10 | No calm *refresh* control for a waiting service worker (CLAUDE.md §8, stale SW) | Open. `registerType: 'prompt'` and `skipWaiting: false` are set, so a new worker waits. Nothing tells the player yet. |
| G0.11 | IndexedDB eviction: no `navigator.storage.persist()`, no export-my-rose (§8) | Open. Arrives with `packages/storage`. |
| G0.12 | The app cannot validate content in the browser | Open. Ajv compiles with `new Function`, which the CSP forbids. Needs standalone pre-compiled validators before the app reads the library. |
| ~~G0.10~~ | ~~No calm *refresh* control for a waiting service worker (CLAUDE.md §8, stale SW)~~ | Closed 2026-11-02 on `feature/calm-refresh`: the app registers the worker and shows *A new version of the garden is ready.* with *Refresh*. e2e publishes a real second version: offered, not swapped, then taken over on Refresh; 3 of 3 put-back bugs caught. |
| ~~G0.11~~ | ~~IndexedDB eviction: no `navigator.storage.persist()`, no export-my-rose (§8)~~ | Closed 2026-11-02 on `feature/keep-her-safe`: *Keep her safe* asks the browser (and an installed app asks by itself), saves her to a file without the town or the private key, and brings her back additively on any device. e2e: saved on one browser profile, restored on a fresh one, survives a reload. Not seen in Firefox or Safari. |
| G0.12 | The app cannot validate content in the browser | Narrowed 2026-11-02 (day-sentence.md P5): the library is bundled at build time, after `validate:library` passes, so the app never validates it. Reopens only if content is ever fetched at runtime; then it needs standalone pre-compiled validators (Ajv compiles with `new Function`, which the CSP forbids). |
| G0.13 | No GitHub remote, no Pages deploy workflow, no mirror check (§5.2) | Open. Only the Gitea remote exists. |
| G0.14 | Author-owned docs missing: `docs/PRINCIPLES.md`, `docs/ART.md`, `art/STYLE.md`, `docs/LETTER.md` | Open, narrowed 2026-11-01: `docs/ROADMAP.md` and `docs/GAMEPLAY.md` were added on `docs/roadmap-gameplay`, as the author gave them. Agents scaffold LETTER.md; they never write its voice. |
| G0.15 | Deferred packages: `storage`, `identity`, `sync`, `services/lucerna`, `tools/art-prep` | Open by design (D1). Each arrives with its first feature. |
| G0.15 | Deferred packages: `sync`, `services/lucerna` | Open by design (D1). Each arrives with its first feature. `tools/art-prep` arrived with the art board; `storage` with the sunset place and the rose (`profile`, `events`, `keys`); `identity` with the rose (a keypair, nothing signed yet). |
| G0.16 | The outcome-phrase heuristic has no reviewed override | Open. A real sentence that trips it (a false positive) cannot enter the library. Design: a `reviewedBy` field on the entry, set only by a person. |
| G0.17 | Manual: install on a phone, open in airplane mode | Open. Needs a hosted build (G0.13). |
| G0.18 | The library is empty | Open. **Phase 0 gate**: 60 sentences, each sourced and verified public domain (ROADMAP Phase 0). Release needs ≥ 365. `verifiedBy` is a person, so an agent may propose candidates but never mark one verified (D4). |
| G0.18 | The library is empty | Open. **Phase 0 gate**: 60 sentences, each sourced and verified public domain (ROADMAP Phase 0). Release needs ≥ 365. `verifiedBy` is a person, so an agent may propose candidates but never mark one verified (D4). Since 2026-11-02 candidates wait in `content/candidates/`, each with where to read it; the author verifies with `pnpm library:verify <id…> --by <name>` (day-sentence.md P8). |
| G0.19 | Event kinds other than `care` | Open. GAMEPLAY.md now exists; each kind arrives with the feature doc that uses it, starting in Phase 1. |
| G0.20 | Node 22.11 on the dev machine is below what some pinned dependencies declare | Open. All gates pass on 22.11 today. Upgrade to ≥ 22.13 and unpin (D11). |
| G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. |
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. |
| G0.20 | Node 22.11 on the dev machine is below what some pinned dependencies declare | Narrowed 2026-11-17: the machine runs **Node 22.23.4** (upgraded by the author). Its newer time zone data exposed a stale town list, fixed on `fix/coyhaique` (Santiago had been on a southern zone's clock since the first build). **Still open:** unpin the dependencies pinned for 22.11 (D11), in their own commit. |
| 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.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`). **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). **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.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.26~~ | ~~Not decided: how the sunset invitation reaches the player on the web~~ | Closed 2026-11-01 by the author (Q6): in-app only on the web, no push server; local notifications through the Tauri shell in Phase 6. Recorded in ROADMAP Phase 0 and CLAUDE.md §8. |
@@ -53,7 +54,34 @@ sentences). Nothing in Phase 1 is visible to the player yet.
| Id | Gap | Status / evidence |
|:--|:--|:--|
| ~~G1.1~~ | ~~No module computes the sun (CLAUDE.md §7); polar and DST traps only predicted~~ | Closed 2026-11-01 on `feature/sun`. `engine/src/sun/sun.ts`: 26 published days in 6 cities within 2 min, polar day and night at Tromsø, 50 tests, 5 of 5 put-back bugs caught. Both traps measured (CLAUDE.md §8). |
| G1.2 | The player cannot choose a city; no time-zone guess; no sunset time on screen | Open. A city list on the device (never GPS, never an IP lookup), the device zone as the fallback, the time shown in the garden. |
| ~~G1.2~~ | ~~The player cannot choose a city; no time-zone guess; no sunset time on screen~~ | Closed 2026-11-02 on `feature/sunset-place`. 7,342 public-domain towns searched on the device, a guess for every zone a browser reports, the town kept in IndexedDB, tonight's sunset in the garden. 299 unit, 10 e2e, offline choosing and changing a town; 6 of 6 put-back bugs caught. |
| ~~G1.4~~ | ~~No rose~~ | Closed 2026-11-02 on `feature/rose-care`: care with a touch of skill (water by holding, shade, weeds, petals), growth from days of care, drift, moods, her numbers; the care log in IndexedDB, replayed by the engine. Tuning R2/R4/R5/R6 is the author's. 7 of 7 put-back bugs caught after two test holes were closed. |
| ~~G1.5~~ | ~~The day's sentence and the folded petal~~ | Closed 2026-11-02 on `feature/day-sentence`, for the code: `engine/petal` (5 properties: never lost, verified-later never swaps it, one a day, no repeat until all opened), the `sentence-opened` event, the rose file v2, the petal in the garden; e2e opens one in a fixture build and reloads. 9 of 9 put-back bugs caught. **The shipped app shows no petal until the author verifies sentences (G0.18).** |
| ~~G1.6~~ | ~~The in-game sunset: move the chair, watch it again~~ | Closed 2026-11-02 on `feature/chair-sunset`: half a minute with nothing to press, then the real sunset's time; Escape and a tap leave; the offline suite watches one with the server gone. 4 of 4 put-back bugs caught. |
| ~~G1.7~~ | ~~Thorns were on the roadmap but undesigned~~ | Closed 2026-11-02 on `feature/thorns`, as the author chose: thorns teach gentleness. `engine/touch` (2 properties: spaced taps are never a rush; one blush a visit); a tremor is one touch; nothing recorded. 6 of 6 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.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)
Decided by the author 2026-11-17: the PWA, an Android APK, an iOS app and a desktop app from one
Svelte codebase, the apps through a Tauri 2 shell. Analysis:
[`features/tauri-platforms.md`](features/tauri-platforms.md); review:
[`reviews/feature-tauri-platforms.md`](reviews/feature-tauri-platforms.md).
| Id | Gap | Status / evidence |
|:--|:--|:--|
| ~~G-T0~~ | ~~No shell, no app on any platform~~ | Closed 2026-11-17 on `feature/tauri-platforms`: `apps/rosea-tauri`; Windows `.exe` + NSIS installer built and checked (watered, closed, reopened, still watered); Android debug APK verified with `aapt2` (no permission, no backup) and checked on the WAVE 10C, Android 16, offline by construction. 40 shell tests; 14 of 14 drills caught. |
| G-T1 | iOS | Open. Needs macOS + Xcode, the iOS Rust targets, an Apple developer account. `pnpm tauri:ios` refuses elsewhere. |
| G-T2 | macOS and Linux desktop builds | Open. Each on its own system; macOS signing/notarisation. |
| G-T3 | Release signing (Android keystore, Windows certificate); AAB; stores | Open. Phase 6. Keys never in the repository. |
| 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-T5 | Bringing her back from a file inside the apps | Open. The Android file picker opens; no round trip seen. |
| 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-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. |
## Design questions — answered
+62
View File
@@ -0,0 +1,62 @@
# A calm refresh — when a new version of the garden is waiting
Status: built on `feature/calm-refresh`. Gap G0.10; CLAUDE.md §8, *the stale service worker: a
precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer
an explicit, calm refresh control.* Needed before the Phase 1 gate, where the author plays the
installed app daily while fixes are deployed. Review:
[`feature-calm-refresh.md`](../reviews/feature-calm-refresh.md).
## 1. Why and what, in the player's terms
The garden works offline because a service worker keeps a copy of it. When a new version is
published, the browser fetches it in the background and **waits**: the garden the player has open
never changes under their hands. When the new one is ready, one quiet line appears at the foot of
the page: **"A new version of the garden is ready."** with a **Refresh** button. The player
refreshes when they like; nothing is lost either way, since the rose lives in the device's
database, not in the code.
## 2. Technical architecture
```mermaid
sequenceDiagram
participant P as the open garden (version A)
participant B as the browser
participant S as the server
B->>S: sw.js (on a navigation or a check)
S-->>B: version B's bytes differ
B->>B: install B, precache; B waits (skipWaiting: false)
B-->>P: "waiting" (workbox-window, via virtual:pwa-register)
P->>P: show "A new version of the garden is ready." + Refresh
P->>B: Refresh: SKIP_WAITING to B
B-->>P: B controls; the page reloads under B
```
| # | Decision | Why |
|:--|:--|:--|
| U1 | Register through `virtual:pwa-register` in the app; `injectRegister: false`. | The emitted `registerSW.js` registers but tells the page nothing; the virtual module reports the waiting worker. Bundled, so the CSP needs no inline script. |
| U2 | **Never refresh by itself.** The line waits for the player. | CLAUDE.md §1, *gentle*; a reload in the middle of pouring water would lose the pour. |
| U3 | The line sits in its own `aside` at the foot, on the garden and the Letter alike. | It is about the whole app, not one page; a landmark keeps it findable. |
| U4 | The e2e test serves a **real second version** (version A's build with `sw.js` changed) from the same origin. | A waiting worker exists only between two builds; a mock would test the mock. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| A player keeps old code forever and never sees a fix. | The line appears as soon as a new worker waits; tested end to end. |
| A silent swap mid-action loses care. | U2; the test asserts the old worker still controls the page until Refresh. |
| Feeling pushed. | One line, no badge, no repeat, no count; nothing happens if it is ignored. |
| Privacy | Nothing new leaves the device: update checks were already made by the browser to the same origin. |
## 4. Gaps
| Gap | State |
|:--|:--|
| G0.10 | Built |
| What changed in a version (release notes) | Open: not needed for the Phase 1 gate |
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| No line without a waiting version; the line and Refresh when there is one; Refresh calls the app; on the Letter too | unit | `ui/test/Shell.test.ts` |
| Built app: version A controls; version B published; the line appears; A still controls; Refresh; B controls and the line is gone; axe | e2e | `e2e/update.spec.ts` |
+53
View File
@@ -0,0 +1,53 @@
# The in-game sunset — move the chair, watch it again
Status: built on `feature/chair-sunset`. ROADMAP Phase 1: *the in-game sunset — move the chair, watch
it again — as comfort and rehearsal; it tells the player when the real one is tonight.* CLAUDE.md §1,
§7 (*silence is a feature: sunset … has moments with no buttons at all*). Review:
[`feature-chair-sunset.md`](../reviews/feature-chair-sunset.md).
## 1. Why and what, in the player's terms
Under tonight's sunset line there is **Move the chair**. The garden turns into a quiet scene: the chair
on the hillside, the sky going from day to amber to coral to dusk, the sun sinking behind the western
horizon. **Half a minute, and nothing to press.** Then one line says when the real one is tonight, and
two quiet choices: *Watch it again*, *Back to the rose*.
It is a rehearsal, never a replacement: it counts for nothing, logs nothing, and its last words point
at the real sky.
## 2. Technical architecture
```mermaid
flowchart LR
shell["Shell.svelte<br/>Move the chair"] --> scene["ChairSunset.svelte<br/>dialog: sky + sun in CSS,<br/>garden-sunset and chair stand-ins"]
scene -->|"after 30 s"| line["SunsetLine<br/>tonight's real sunset"]
line --> engine["engine nextInvitation"]
```
| # | Decision | Why |
|:--|:--|:--|
| C1 | The sky and the sun are **drawn in code** (CSS gradients and one disc) behind the garden layer, which is transparent above its horizon. | STYLE.md S5: the sky is never painted, so the same layer serves the real-time sky later. |
| C2 | **No visible button for 30 s.** Escape, or a tap anywhere, comes back early; a screen-reader-only line says so. | Silence (CLAUDE.md §7) without a trap: a keyboard or screen-reader user is never stuck. |
| C3 | It is a modal dialog; focus goes into it and returns to *Move the chair*. | Accessibility is not a phase. |
| C4 | **Nothing is logged.** No event kind, no count. | Rehearsal, not achievement; the real sunset's event (`sunset`, CLAUDE.md §6.2) belongs to the real one. |
| C5 | With reduced motion, the scene shows dusk at once, still, for the same half minute. | Global `prefers-reduced-motion` rule in `tokens.css`. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Dependence**: the screen sunset replaces the real one. | Its last line is the real sunset's time; nothing rewards watching it. |
| **A trap**: a full-screen scene with no buttons. | C2, C3; tested by keyboard. |
| **Motion** for people sensitive to it. | C5. |
| Privacy, reachability | None: nothing is stored or sent. |
## 4. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| Move the chair opens a labelled dialog with no button in it; after 30 s, the real sunset's line, *Watch it again*, *Back to the rose* | unit | `ui/test/chair-sunset.test.ts` |
| Escape and a tap come back early; focus returns to *Move the chair* | unit | same |
| Watch it again starts it over | unit | same |
| With no town and no guess, the line asks for a town | unit | same |
| Built app: watch it with the clock driven; axe during and after | e2e | `e2e/shell.spec.ts` |
| Offline: watch an in-game sunset with the server gone (CLAUDE.md §3) | offline | `e2e/offline.spec.ts` |
+97
View File
@@ -0,0 +1,97 @@
# The day's sentence — the rose's folded petal
Status: built on `feature/day-sentence`. ROADMAP Phase 1: *the day's sentence comes from the rose: she
waits with a folded petal; sunset is the best moment to open it, but it is never lost and no streak
exists.* GAMEPLAY.md §1: *coming back on nearby days gives a little more (e.g. an earlier sentence
remembered). A gap is never punished.* CLAUDE.md §1, §5.5 (*an unopened sentence is never lost*),
§6.1, §6.2. Review: [`feature-day-sentence.md`](../reviews/feature-day-sentence.md).
## 1. Why and what, in the player's terms
When the rose needs nothing, she says *I am keeping a folded petal for you.* A folded petal lies by
her, and one button: **Open her petal**. It opens into one sentence of hope, with where it comes from in
small print.
- **One a day.** Once opened, it stays open for the rest of the local day (*Today's petal*); a new
one is folded tomorrow.
- **Never lost.** A petal not opened today is the same petal tomorrow, and next week. There is no pile
of missed petals and nothing says how many days passed.
- **Sunset is the best moment.** Around the real sunset (the same moment the sunset line names; in
polar day the lowest light, in polar night the brightest twilight) she says *The sun is low now.
Would you open my petal?* Opened then, she adds: *Go and look at the sky. I will be here.* It can
be opened at any other time too, with no difference in what it gives.
- **Nearby days give a little more.** If the last petal was opened at most three days ago, she also
remembers one opened before: *Do you remember this one?* After a longer gap she simply gives the
day's petal. The gap is not mentioned.
- **No library, no petal.** Until the author has verified sentences, she holds no petal and says
nothing about one. Nothing on screen points at the absence.
Nothing is counted: there is no number of petals, no list of all of them, no record of when.
## 2. Technical architecture
```mermaid
flowchart LR
lib["content/library/*.json<br/>(verified by the author)"] -->|"build: validate:library,<br/>then virtual:rosea-library"| app["apps/rosea<br/>App.svelte"]
cand["content/candidates/*.json<br/>(proposed, unverified)"] -->|"pnpm library:verify id… --by Name<br/>(the author only)"| lib
app --> ui["packages/ui<br/>Rose.svelte + Petal.svelte"]
ui --> engine["packages/engine<br/>petal/petal.ts: petalAt, goodMoment"]
engine --> schema["packages/schema<br/>sentence-opened.schema.json"]
ui -->|"appendOpened"| storage["packages/storage<br/>events store, rose file v2"]
```
| # | Decision | Why |
|:--|:--|:--|
| P1 | **The petal is the next sentence in one fixed order**, and the order moves only when a petal is opened. The order: sunset sentences never opened, by `verifiedAt` then a hash of the id; once all are opened, the one opened longest ago. | *Never lost* (CLAUDE.md §5.5) follows from the order: nothing advances by itself. Verifying new sentences adds them after the ones already verified, so it never swaps the petal she holds. With ≥ 365 sentences, none repeats within a year of daily opening. The hash mixes traditions, so the first days are not all one book. |
| P2 | **One opening per local day.** The first `sentence-opened` event of a local day is that day's petal; a second tab's later one changes nothing. | No farming, no reason to stay. `localDay` is the one recorded in the event (CLAUDE.md §7). |
| P3 | **Remembering** needs the previous opening ≤ `PETAL.nearDays` (3) local days before today and an earlier sentence to recall; which one is a pure, seeded choice per day. | GAMEPLAY §1. A gap is never shown: the extra line is simply absent. Tuning is the author's, in `PETAL`. |
| P4 | **The good moment** is `PETAL.beforeMinutes` (60) before to `PETAL.afterMinutes` (60) after the sun module's `invitation`. It changes only her words. | One sun module (CLAUDE.md §7); the best moment is offered, not rewarded (*Gentle*). |
| P5 | **The library is bundled at build time** through a Vite virtual module that reads `content/library/*.json`; the app build first runs `validate:library` and fails if it fails. The app never validates in the browser. | Sidesteps G0.12 (Ajv needs `new Function`; the CSP forbids it) without a second validator: what ships is exactly what passed the gate. `ROSEA_LIBRARY_DIR` swaps the folder for the e2e build. |
| P6 | **A new event kind, `sentence-opened`** (`ts`, `localDay`, `from`, `messageId`, `clientVersion`), appended to the same `events` store. | CLAUDE.md §6.2: adding a kind is the only sanctioned way to make something derivable. |
| P7 | **The rose file becomes version 2** with an `opened` list beside `events`; version 1 files are still read. | Her petals move with her to a new device, so the order continues instead of starting over. |
| P8 | **Candidates live in `content/candidates/`**, in the library's shape without `publicDomain`, `verifiedBy`, `verifiedAt`, and with a `check` (where to read it). `validate:library` holds them to every rule but verification, so the author is never asked to verify a line that would fail. `pnpm library:verify <id…> --by <name>` moves them into the library with today's date. **Agents never run it.** | D4 of phase0-workspace: `verifiedBy` is a person. The command only saves the author hand-editing JSON. |
| P9 | The source is shown under the sentence (work, author, translation). | Honesty about where words come from; it also tells a believer and a non-believer what kind of line it is. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Guilt**: a pile of unopened petals after an absence. | P1: there is only ever one petal. Nothing names the days between. |
| **Streak creep**: remembering on nearby days is a streak in disguise. | P3 rewards nothing visible and counts nothing; after a gap the day's petal is exactly as full. It is a small gift, not a bar to keep up. Reviewed in `soul.md` terms in the review. |
| **Dependence**: a reason to stay in the app. | One petal a day; at the good moment her words send the player outside. |
| **Comfort becomes wallpaper** (CLAUDE.md §8). | No repeat until every sentence has been opened once (P1). |
| **A hollow or harmful sentence**: a promise, a medical word, the unnamed state. | The validator's rules (§5.6), held for candidates too (P8); the author verifies every line. |
| **Copyright**: a modern translation slips in. | The translation list in `validator.ts`; additions need a dated reason. Candidates carry `check.publicDomain`. |
| **Privacy**: which sentences were opened. | Stays on the device; the rose file holds it, never the town. Nothing is sent. |
| Reachability | None: nothing reaches another person. |
| **Offline** | The library is precached in the bundle; opening appends to IndexedDB. |
## 4. Gap analysis
- **G1.5** (the day's sentence) closes with this, except that the library is still empty: the petal
appears in the shipped app only once the author verifies sentences (G0.18).
- **G0.12** narrows: the app does not need to validate content in the browser while the library is
bundled. It reopens if the library is ever fetched at runtime.
- **Not done:** Czech text (`text.cs`) is not shown yet (Czech copy arrives as a whole, G1.3); a
collection of past petals (an album) is not designed.
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| No sentences: nothing; first visit: the first in order is folded | unit | `engine/test/petal.test.ts` |
| Opening today: open for the rest of the day; tomorrow: the next one folded | unit | same |
| **Property:** with no opening, the folded petal is the same on every day | property | same |
| **Property:** adding sentences verified later never changes the folded petal | property | same |
| **Property:** at most one opening per local day counts; a second changes nothing | property | same |
| **Property:** no repeat until every sentence was opened; then the least recent | property | same |
| Remembering: at 1–3 days a recalled earlier one; at 4+ none; never today's own | unit | same |
| Good moment: inside ±60 min of the invitation; polar day and polar night | unit | same |
| Events from other roses' keys are ignored; past keys count | unit | same |
| The schema accepts the event and rejects free text in `messageId` | unit | `schema/test` |
| Storage: append and load opened; `loadCare` ignores them quietly; rose file v2 out, v1 and v2 in, additive | unit | `storage/test` |
| Candidates: held to every rule; `library:verify` moves, stamps, refuses an unknown id or a failing line | unit | `content/test` |
| UI: says the petal line only when she needs nothing; Open; source shown; today's petal again; remembered line; sky line at the good moment; empty library shows nothing | unit | `ui/test/petal.test.ts` |
| Built app with a fixture library: open the petal, reload, still open; axe | e2e | `e2e/petal.spec.ts` |
| Built app with the real (empty) library: no petal | e2e | same |
| Offline: open the petal with the server gone | offline | — (the shipped library is empty; covered by e2e reload. Added when the first sentences are verified.) |
+91
View File
@@ -0,0 +1,91 @@
# Keep her safe — the browser's promise, a file, and bringing her back
Status: built on `feature/keep-her-safe`. Gap G0.11, CLAUDE.md §8: *IndexedDB is evictable … 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.* Review: [`feature-keep-her-safe.md`](../reviews/feature-keep-her-safe.md).
---
## 1. Why and what, in the player's terms
Beside *Her numbers* there is now **Keep her safe**. It opens a small, quiet section:
- **What the browser has promised**, in one true sentence: that it keeps her, or that it may clear
her if the garden is not opened for a long time.
- **Ask the browser to keep her**, when it has not promised yet. If it says no, that is said calmly,
and the file is the answer.
- On an iPhone or iPad that has not added the garden to the Home Screen: *add it, to keep her.*
- **Save her to a file**: a small file the player keeps, named for the day. It holds her care and
when it was given; it never holds the town.
- **Bring her back from a file**: on a new phone, or after the browser cleared her. Everything she
had comes back, and nothing she has now is lost. Bringing the same file twice adds nothing twice.
An installed garden asks the browser to keep her by itself, once, after the first care of a visit.
## 2. Technical architecture
```mermaid
flowchart LR
subgraph app["apps/rosea"]
wire["App.svelte<br/>navigator.storage, file download"]
end
subgraph ui["packages/ui"]
keep["KeepSafe.svelte"]
rose["Rose.svelte<br/>keys = current + past"]
end
subgraph storage["packages/storage"]
exp["exportRose / importRose<br/>asRoseFile"]
past[("profile: pastKeys")]
ev[("events")]
end
subgraph engine["packages/engine"]
replay["roseAt(events, keys)<br/>one replay per key"]
dedupe["newCare: each act once"]
end
wire --> keep --> exp --> ev & past
exp --> dedupe
rose --> replay
```
### Decisions
| # | Decision | Why |
|:--|:--|:--|
| K1 | The file holds `{ format: 'rosea-rose', version: 1, keys, events }`: her public keys and her whole care log. **Never the private key** (it cannot be exported: rose.md R9), **never the sunset town**. | The town is the one location Rosea knows; choosing it again is one tap. The care log alone is what cannot be remade. |
| K2 | A rose is named by **a list of keys**: the current identity first, then the keys she had on other devices (`profile.pastKeys`). | The private key cannot move, so a rose brought back lives under a new key, and her old care names the old one. The log is never rewritten (CLAUDE.md §6.2). |
| K3 | **Each key's care is replayed on its own**; her days of care are the union. Water and today's needs come from the current key; stage, drift and warmth from all. | Replaying everything as one log could take a day away: one device's watering can make the other's "too much". Separate replays make bringing her back strictly additive, which is property-tested. |
| K4 | Import **appends only acts not already there** (same moment, giver, rose, act and amount) in one transaction, and **refuses a file that is not a rose** before writing anything. | Contributions only add (CLAUDE.md §1). A wrong file is an ordinary mistake, said calmly. |
| K5 | `persist()` is called **automatically only in an installed app**, once per visit, after the first care. Otherwise only when the player asks. | Chrome and Safari grant or refuse silently; Firefox shows a prompt. A prompt the player did not ask for, right after watering, would be a strange interruption. |
| K6 | The download is made on the device (`Blob`, `<a download>`), and the import reads a file the player picks. | Nothing is sent anywhere; the CSP stays `'self'`. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **The cruellest bug**: her care gone. | The file brings it back on any device, tested end to end with a fresh browser profile. |
| **Privacy**: the file is a diary of when someone was in the app. | It is made only when the player asks, stays wherever they put it, and the screen says what it holds. No town, no private key (tested). |
| **Feeling worse**: "the browser may clear her" can frighten. | It is said once, only on request, with the remedy in the same sentence. |
| **A merged rose loses days.** | K3, property-tested: merging two logs never lowers either one's days of care. |
| **A tampered file** gives a rose days she was never given. | It only fools the player's own garden; nothing is compared with anyone (CLAUDE.md §1, *never count people*). Phase 3 must not trust imported care as proof towards friends. |
## 4. Gap analysis
| Gap | State |
|:--|:--|
| G0.11 eviction: `persist()`, export-my-rose | Built: persist on request and when installed; save; bring back |
| A reminder to save her now and then | Open: no nagging by design; the Letter can mention it |
| iOS install prompt beyond one sentence | Open: Safari has no install API |
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| A moved rose keeps every day under her old key; her water starts afresh; care under the new key adds | unit | `engine/test/rose.test.ts` |
| A moved rose that is opening drops petals, and gathering them helps | unit | same |
| Merging two logs never takes a day from either | property | same |
| `newCare` adds each act once, however often | unit | same |
| The file holds keys and care, no town, no private key; survives JSON | unit | `storage/test/rose-file.test.ts` |
| Bringing her back on a new device, twice, onto a device with care of its own, from this very device; refusing seven kinds of not-a-rose and changing nothing | unit | same |
| Keep her safe: the browser's answer, asking, a refusal said calmly, saving a dated file, bringing her back, a wrong file | unit | `ui/test/rose.test.ts` |
| Save on one browser profile, bring her back on a fresh one, reload: one day of care; the file has no town; axe | e2e | `e2e/shell.spec.ts` |
+120
View File
@@ -0,0 +1,120 @@
# The rose — care with a touch of skill, growth from days of care, drift instead of loss
Status: built on `feature/rose-care`. ROADMAP Phase 1: *one rose with her face: care with a touch of
skill (water by feel, shade, weeds, petals), moods, thorns, growth from total days of care, drift
instead of loss, her numbers one tap away, and speech-bubble teaching* (GAMEPLAY.md §1–2, §4).
Review: [`feature-rose-care.md`](../reviews/feature-rose-care.md). Not yet here: the day's sentence
and the folded petal (the library is empty, G0.18), the in-game sunset with the chair.
---
## 1. Why and what, in the player's terms
The garden now has **the rose**. She stands in her bed under the sunset line, with a face in her
bloom, and she says, in a small bubble, what she needs.
- **Water by feel.** Press and hold *Water*: the can pours slowly, and the rose's leaves lift when she
has enough. Let go then. Pour too long and she is *too full*, which helps no more than too little.
On a keyboard, hold Space or Enter; a screen reader hears when the leaves lift.
- **Weeds** appear some mornings. **Fallen petals** some days, once she is opening. **Wind** comes on
some days for an hour and a half: *Shade her* while it blows. Each button shows only when it is
needed, so the screen stays quiet.
- **She grows from days of care that helped**: a calendar day on which at least one act met a real
need. Ten acts on one day count as one day. A long visit is worth no more than a short one.
Bud → opening → half bloom → full bloom.
- **She drifts, never breaks.** Some days without care and she turns a little away; a week, and she
closes a little and waits. Her stage never goes down. The first helpful touch brings her back.
- **Her numbers** are one tap away: water, warmth, days of care, and how she is doing. Nothing is
counted against the player; there is no streak and no "missed".
## 2. Technical architecture
```mermaid
flowchart LR
subgraph app["apps/rosea"]
wire["App.svelte<br/>identity, zone, now, events"]
end
subgraph ui["packages/ui"]
rose["Rose.svelte<br/>picture, bubble, care, numbers"]
end
subgraph engine["packages/engine (pure)"]
model["rose/rose.ts<br/>roseAt(events, seed, now, zone)"]
days["time/localDay.ts<br/>localDay, localMinutes"]
model --> days
end
subgraph storage["packages/storage"]
events[("events<br/>append-only")]
keys[("keys")]
end
subgraph identity["packages/identity (new)"]
id["createIdentity()<br/>ECDSA P-256, private key non-extractable"]
end
schema["packages/schema<br/>care event + amount"]
wire --> rose --> model
wire --> events & keys
wire --> id
model --> schema
events --> schema
```
- **The log is the truth** (CLAUDE.md §4). Every care act is one append-only `care` event. The rose
at any moment is `roseAt(events, seed, now, timeZone)`: a pure replay. Nothing about her is stored
except the log; `derived` is not needed while the replay is this cheap.
- **Her hidden state** is a water level that falls over time and rises when poured. Weeds, petals and
wind come from a seeded hash of the rose's own key and the local day, so they are the same on every
replay and every device, and no randomness enters the engine.
- **Identity** arrives because the care event names `from` and `to` by public key. For her own rose
both are the player's key. The private key is non-extractable and kept by `@rosea/storage` as an
opaque `CryptoKey`; nothing signs anything yet.
### Decisions
| # | Decision | Why |
|:--|:--|:--|
| R1 | **The care event gains `amount`** (0–1, required for `water`, absent otherwise). | "Pour slowly until the leaves lift; too much is as bad as too little" cannot be replayed from the act alone. The schema change is the sanctioned way to make it derivable (CLAUDE.md §6.2). |
| R2 | **Water**: the level falls by 0.3 a day; a full pour (holding about 3 s) adds 0.6. She is thirsty below 0.25, needs water below 0.4, has enough from 0.4, and is too full above 0.95. A new rose starts at 0.3, so the first watering helps and teaches. | *Assumption for the author*: one helpful watering about every day and a half. |
| R3 | **A pour helps** only when she needed it (below 0.4) and it leaves her between 0.4 and 0.95. | GAMEPLAY §1: too much is as bad as too little. |
| R4 | **Weeds** grow overnight on about 40 % of days; **fallen petals** on about 30 % of days from the opening stage; **wind** on about 25 % of days, for 90 minutes starting between 9:00 and 18:00 local time. Each is a need until met that day. | *Assumption for the author.* Seeded per rose and day (FNV-1a), so replays agree. |
| R5 | **Stages** from days of care: bud 0–2, opening 3–9, half bloom 10–24, full bloom 25+. | *Assumption for the author*: full bloom after about a month of real days. |
| R6 | **Drift** from local days since the last helpful day: 0–2 none, 3–6 a little (turned away), 7+ more (closed a little, waiting). It changes her face, never her stage. | GAMEPLAY §1 and CLAUDE.md §8, *drift that reads as blame*: drawn as waiting. |
| R7 | **Warmth** is the number of days of care in the last seven, said as *"3 days this week"*, and *"resting"* at none. **Trend**: *growing* (a day of care in the last two), *steady*, or *waiting* (drift). | GAMEPLAY §2 asks for warmth and trend. Words that never say *missed*. |
| R8 | The day of an act is the local day **in the rose's zone**: the sunset town's zone, or the device's if there is none. | One zone for the sunset and the care, so a day means the same thing in both. |
| R9 | **ECDSA P-256** for the identity keypair, not Ed25519. | Every browser that can install the PWA has it; Ed25519 arrived in Chrome only in 2025. Revisited with the Phase 3 identity doc. |
| R10 | Her pictures are the **art board's stand-ins** until real art is accepted. A mood picture shows only at full bloom; before that, the stage picture. | The stand-ins exist for every stage and mood; the moods are drawn at full bloom only (art manifest). |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Guilt.** A thirsty, closed rose after a week away can read as *you neglected me*. | She is *waiting*, never hurt; her words never say *forgot* or *missed*; one touch brightens her. The bubble copy passes `lint:copy` and the soul review below. |
| **Streak by another name.** Warmth counts recent days. | It is shown only on request, never counts absence (*resting*, not *0 of 7*), and changes nothing about growth. |
| **Compulsion.** Tapping for growth. | Growth is days, not acts: ten acts in one day are one day (property-tested). Buttons appear only when there is a need. |
| **Skill as a barrier.** Holding to pour is hard for some hands. | Holding Space or Enter works; the leaves lifting is announced; a short pour can be topped up. |
| **Location / reachability.** | None new. The events stay on the device; the key never leaves it. |
| **A lost rose.** IndexedDB eviction (CLAUDE.md §8). | Not solved here: G0.11 (`persist()`, export-my-rose) is next. Stated in the review. |
## 4. Gap analysis
| Gap | Solution | State |
|:--|:--|:--|
| G1.4 The rose: care, growth, drift, moods, numbers | This feature | Built |
| G0.15 `identity` deferred | `@rosea/identity`: create and keep a keypair | Built (minimal) |
| G0.19 Event kinds other than `care` | Not needed yet | Open |
| G0.11 Eviction: `persist()`, export-my-rose | Next | Open, more urgent now that there is a rose to lose |
| The day's sentence, the folded petal | Needs the library (G0.18) | Open |
| Speech-bubble lines from a curated library | Lines live in `ui/copy`, passing `lint:copy` | Built for the rose's needs |
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| Water falls over time, a pour raises it, too much is too full; a pour helps only when needed and in range | unit | `engine/test/rose.test.ts` |
| Weeds, petals and wind are the same on every replay, differ between roses, appear at about their rates | unit, property | same |
| **Growth never decreases** as events are added; **many acts on one day count once**; **a gap never lowers the stage**; **replaying the same log twice gives identical state**; drift never changes the stage | property (fast-check) | same |
| Drift levels at 0, 3 and 7 days; the first helpful act after a gap clears drift | unit | same |
| Schema: `amount` required for water, refused elsewhere, bounded 0–1 | unit | `schema/test` |
| Identity: a public key that fits the schema; the private key cannot be exported | unit | `identity/test` |
| Storage: events append and come back in order; a malformed event is refused; keys round-trip | unit (fake-indexeddb) | `storage/test` |
| UI: the rose shows her stage; holding Water pours and the leaves-lift announcement comes; Weed appears only with weeds; the numbers open on request | unit (testing-library) | `ui/test/rose.test.ts` |
| Built app: water the rose by holding, see *1 day of care*, reload, still 1 | e2e | `e2e/shell.spec.ts` |
| Offline: tend the rose with the server gone, reload, the care survived | offline | `e2e/offline.spec.ts` |
+61
View File
@@ -0,0 +1,61 @@
# The sunrise in the garden
Status: built on `feature/sunrise`. ROADMAP Phase 1: *the sun: real local sunset **and sunrise**, on
device; polar day/night handled.* CLAUDE.md §1, *points beyond the screen: the real sunset, the real
sunrise*. The sun module (`sun.md`) has computed sunrise since Phase 1 began; the garden never showed
it. Review: [`feature-sunrise.md`](../reviews/feature-sunrise.md).
## 1. Why and what, in the player's terms
The line under the garden names the next real thing to look up for:
| When | The line |
|:--|:--|
| From midnight until sunrise | *The sun rises at 06:41 in Brno.* |
| From sunrise until tonight's sunset | *Tonight the sun sets at 16:12 in Brno.* (as before) |
| From sunset until midnight | *Tomorrow the sun rises at 06:43 in Brno.* |
| Polar day, polar night | As before: the lowest light; the brightest twilight. |
Someone awake at three in the morning is told, quietly, when the light comes back; nothing invites
them anywhere. The sunset stays the game's invitation (the petal's good moment, the in-game sunset):
**the in-game sunset's closing words keep naming the real sunset**, because that is what they are for.
## 2. Technical architecture
```mermaid
flowchart LR
shell["packages/ui<br/>Shell: SunsetLine (next)"] --> engine["packages/engine<br/>sun.ts: nextSunEvent"]
chair["packages/ui<br/>ChairSunset: SunsetLine (sunset)"] --> engine2["packages/engine<br/>sun.ts: nextInvitation"]
```
| # | Decision | Why |
|:--|:--|:--|
| R1 | **`nextSunEvent(now, place)`** in `engine/sun`: the next invitation's day; if that day's sunrise is still ahead, the sunrise; else the invitation. Pure, instants only (sun.md D3). | One module computes the sun (CLAUDE.md §7); the UI reads, never decides. |
| R2 | Built on `nextInvitation`, so Reykjavík's after-midnight midsummer sunset (sun.md D2) still shows as tonight's sunset, not as a sunrise. | The only subtle case; tested. |
| R3 | *Tomorrow* only when the sunrise belongs to a later local day than now, as the sunset line already does. | Same reading of the clock in both. |
| R4 | `SunsetLine` gains `of: 'next' \| 'sunset'`; the garden asks for the next event, the in-game sunset for the sunset. | The chair scene tells the player when the real sunset is (chair-sunset.md). |
| R5 | Polar day and night are unchanged: no sunrise exists to name. | sun.md D4. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Dependence / a nudge at night**: a line that pulls an awake player to the screen. | It is the same quiet line, changed only in what it names; no new notice, no invitation, nothing counted. |
| **Guilt**: *you missed the sunrise*. | Nothing ever refers to a missed sunrise; after sunrise the line simply names the sunset. |
| Privacy, reachability, offline | Unchanged: computed on the device from the chosen town. |
## 4. Gap analysis
Closes the last Phase 1 roadmap item that the screen did not show. Sunrise *mechanics* (sunrise-only
visitors, Phase 2; ROADMAP §6 open question) are not designed here.
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| Before sunrise: today's sunrise; after sunrise: tonight's sunset; after sunset: tomorrow's sunrise | unit | `engine/test/sun.test.ts` |
| Reykjavík midsummer after midnight, before the late sunset: the sunset, not a sunrise | unit | same |
| Polar day and night: unchanged | unit | same |
| **Property:** the event is never in the past, and nothing (sunrise or sunset) comes between now and it | property | same |
| The garden's line at 05:00, 12:00, 22:00; the in-game sunset's words still name the sunset at 22:00 | unit | `ui/test/sunset.test.ts`, `ui/test/chair-sunset.test.ts` |
| Built app at 05:00 in Brno: the sunrise line | e2e | `e2e/shell.spec.ts` |
+122
View File
@@ -0,0 +1,122 @@
# Where the sunset is — choosing a town, the guess, tonight's sunset
Status: built on `feature/sunset-place`. ROADMAP Phase 1, *the sun*: "the player is asked *Where do
you want your sunset?* (a city, skippable); if skipped, it is guessed from the device time zone.
**Never GPS.**" Gap G1.2. Review: [`feature-sunset-place.md`](../reviews/feature-sunset-place.md).
Builds on [`sun.md`](sun.md).
---
## 1. Why and what, in the player's terms
The first time the player opens the garden, under the name, it asks one quiet question:
**Where do you want your sunset?** A box to type a town, and below it a way to say *not now*.
- **Typing a town** shows matching towns at once, with no network: *Brno*, *Praha*, *plzen* all
work. Choosing one says, in the garden, **"Tonight the sun sets at 7:29 PM in Brno."**
- **Not now** uses a guess from the device's clock: in Prague's time zone, Prague. The garden says
so: the line ends with *a guess from this device's time zone*. A player who travels gets the guess
for wherever their phone's clock is.
- **Change town** is always there, under the line. Choosing again replaces the town; nothing else
changes.
- **After the sunset** the line speaks of tomorrow's. **In the far north** it speaks of the lowest
light, or of the noon twilight (`sun.md` D4).
- **The town stays on this device.** It is the only place Rosea knows about the player, and it never
leaves. If the device will not keep it (a private window that blocks storage), the garden still
shows the sunset and says, calmly, that it will ask again next time.
What it never does: ask for GPS, look up an address, guess from the network, or say anything about a
missed sunset.
## 2. Technical architecture
```mermaid
flowchart LR
subgraph app["apps/rosea"]
main["App.svelte<br/>device zone, now, wiring"]
end
subgraph ui["packages/ui"]
shell["Shell.svelte"] --> ask["SunsetPlace.svelte<br/>the question and the search"]
shell --> line["SunsetLine.svelte<br/>tonight's sunset"]
end
subgraph content["packages/content"]
guess["places/guess.ts<br/>zone-guesses.json (25 KB)"]
towns["places/places.ts<br/>places.json (496 KB, loaded on demand)"]
end
subgraph storage["packages/storage (new)"]
profile["profile store<br/>sunset place"]
end
subgraph engine["packages/engine"]
next["sun.nextInvitation(now, place)"]
day["time.addDays / localDay"]
end
main --> shell
main -->|"guessTown(zone)"| guess
main -->|"import() on first search"| towns
main -->|"load / save"| profile
line --> next --> day
build["scripts/build-places.ts<br/>run by hand"] -.-> guess & towns
```
- **`@rosea/content/places`** — `searchTowns(query)`: accent- and case-blind, by English name,
local name (*Praha*) and Latin-script language names; best match first, then the larger town;
*"Sydney, Canada"* narrows by country or region. Imported dynamically, so the garden does not
carry 7,342 towns.
- **`@rosea/content/guess`** — `guessTown(zone)`: the largest town in that zone, or the zone's own
location from the time zone database. Keyed by the names browsers report (`Asia/Calcutta`) as well
as the database's (`Asia/Kolkata`). `UTC` and `Etc/*` guess nothing.
- **`@rosea/storage`** — Dexie over the IndexedDB database `rosea`. One store so far, `profile`,
holding `sunsetPlace`: either `{ kind: 'town', town }` or `{ kind: 'device-zone' }`. A record of
the wrong shape reads as *no choice yet*, with a warning in the console.
- **`@rosea/engine`** — `nextInvitation(now, place)`: the first invitation at or after now, checking
yesterday, today and tomorrow (Reykjavík, 00:02 in June). `addDays` for calendar steps.
- **`@rosea/ui`** — renders. It receives the device zone, the clock, the guess, a search function
and load/save as props; it imports neither content nor storage (CLAUDE.md §2 dependency
direction).
### Decisions
| # | Decision | Why |
|:--|:--|:--|
| P1 | **Natural Earth's populated places** (public domain), 7,342 towns. Downloaded by hand with the author's approval; only the derived JSON is committed. | The only public-domain town list with time zones. GeoNames is better but CC BY, which would need an attribution line in the product. |
| P2 | **Natural Earth's time zones are cross-checked, not trusted.** A town keeps its zone only if its clock is identical all through 2026 to one of its country's zones in the IANA database and fits its longitude (within 3.5 h, across the date line). Otherwise the five nearest trusted towns in the same country vote; with none, the country's nearest zone location. 1,205 towns were corrected. | Measured: Prague was *America/Chicago*, Cardiff *Australia/Sydney*, Sydney had none. A wrong zone shows the right sunset at the wrong clock time. |
| P3 | The guess is the **largest town in the device's zone**. | Recognisable ("Prague"), and the zone is all the device tells. |
| P4 | *Not now* stores `device-zone`, not a town. | The guess then follows the phone's clock when the player travels. |
| P5 | The town list loads **on first search**, as its own precached chunk. | 208 KB compressed is too much to parse on every open of a quiet garden. Offline it is already cached. |
| P6 | The time is shown in the **town's** zone, in the device's locale format. | It is the clock the player will see out there. |
| P7 | Storage failing is **not an error page**: the choice lives for the session and the garden says it will ask again. | CLAUDE.md §1: network and device features degrade to a calm state with an explanation. |
| P8 | `navigator.storage.persist()` is **not** called yet. | Firefox shows a prompt; asking for it on choosing a town would be strange. It belongs to G0.11 (eviction), with export-my-rose. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Location** — the chosen town is where the player lives, near enough. | It is stored only in this device's IndexedDB. Nothing in this feature makes a request: the e2e test asserts no request leaves the origin while searching and choosing. Never GPS, never IP. |
| **A wrong clock** sends someone out an hour early or late. | P2, and a test that every town's clock fits its longitude; the known bad zones are pinned by name. Residual: a town Natural Earth filed under a *same-country, same-looking* wrong zone (e.g. Dunhuang, Gansu, under Xinjiang time by its neighbours' vote) is not caught. Stated in the review. |
| **Feeling worse** — a question on the first screen can feel like a demand. | It is skippable in one tap, the skip still gives a sunset, and nothing ever counts or mentions a missed sunset. |
| **Feeling judged for where one lives** — a small town not in the list. | The empty search says *"A larger one nearby will do."*, never *not found* as an error. |
| **Reachability** | None. The town is never shared. |
## 4. Gap analysis and the designed solution
| Gap | Solution | State |
|:--|:--|:--|
| G1.2: no way to choose a town, no guess, no sunset on screen | This feature | Built |
| G0.15: `packages/storage` deferred until its first feature | `@rosea/storage` with the `profile` store | Built |
| G0.11: eviction — `persist()`, export-my-rose | Not here (P8) | Open |
| Czech names for towns (*Vídeň*) | Natural Earth has no Czech column; local names cover *Praha*, *Wien* | Open, with Czech copy |
| Planetary twins of the sunset (the in-game sunset, the chair) | Phase 1, later | Open |
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| 7,342 towns, every zone valid, every clock fits its longitude; Prague, Cardiff, Sydney, Anchorage, Kryvyi Rih, Apia, Pristina keep the right zone | unit | `content/test/places.test.ts` |
| Search by English, local and accent-free names; larger first; comma narrows; empty and unknown are `[]` | unit | same |
| Guess for 7 zones including browser names; UTC guesses nothing; every zone Intl knows is covered | unit | same |
| `nextInvitation`: today before sunset, tomorrow after; Reykjavík after midnight; never past, ≤ 48 h, nothing earlier in between | unit, property | `engine/test/sun.test.ts` |
| `addDays` across DST, years, leap days; inverse property | unit, property | `engine/test/localDay.test.ts` |
| Storage: nothing saved reads `null`; town and device-zone round-trip; a malformed record reads `null` with a warning; a database that cannot open rejects | unit (fake-indexeddb) | `storage/test/profile.test.ts` |
| UI: asks when nothing is saved; search lists towns; choosing shows the line; *not now* shows the guess and says so; tomorrow after sunset; polar wording; storage failure says it will ask again; change and keep | unit (testing-library) | `ui/test/sunset.test.ts` |
| Built app: choose Brno, see Brno's sunset at the time the engine computes, reload and it is still Brno; nothing requested from another origin; no axe violations | e2e | `e2e/shell.spec.ts` |
| Offline: choose a town, close the server, reload: the town and the line survive | offline | `e2e/offline.spec.ts` |
+125
View File
@@ -0,0 +1,125 @@
# Four versions, one garden — the Tauri 2 shell
Status: built on `feature/tauri-platforms`, 2026-11-17. Decided by the author the same day: *"I need
also android apk version, desktop version, ios version and pwa version … based on the tauri2
framework."* CLAUDE.md §2 (*Four versions, one garden*), §3, §4, §8; ROADMAP *The platform track*.
Review: [`feature-tauri-platforms.md`](../reviews/feature-tauri-platforms.md).
## 1. Why and what, in the player's terms
Until now Rosea Domi was a page you open from a link and may add to the home screen. Now the same
garden also comes as an **app**: an Android app to install from a file (later from a store), a
desktop app for Windows (macOS and Linux once built on those systems), and an iOS app once there is
a Mac to build it on. The PWA stays as it is.
What the player meets is the same in all four: the same rose, the same words, the same sunset, the
same *Keep her safe*. Nothing asks for an account, nothing goes online. Differences they may notice:
- The app opens straight into the garden, with its own icon, without a browser around it.
- In the app there is never *A new version of the garden is ready*: a new version comes as a new app.
- A rose in the PWA and a rose in the app on the same phone are **two roses**. To carry one across,
*Keep her safe* saves her to a file and brings her back (on Android, see G-T4).
Why now and not in Phase 6: the shell needs no new feature, and an APK puts the Phase 1 spike on the
author's phone without any hosting (G0.13 is still open).
## 2. Technical architecture
```mermaid
flowchart LR
subgraph game["one Svelte 5 codebase"]
schema["packages/schema"] --- engine["packages/engine"]
engine --- ui["packages/ui"]
storage["packages/storage<br/>(IndexedDB)"] --- engine
content["packages/content"] --- schema
identity["packages/identity"] --- schema
app["apps/rosea<br/>App.svelte wiring"]
ui --> app
storage --> app
content --> app
identity --> app
end
app -->|"vite build<br/>(default mode)"| dist["apps/rosea/dist/<br/>base /Rosea/, service worker,<br/>manifest, &lt;meta&gt; CSP"]
app -->|"vite build --mode tauri"| distt["apps/rosea/dist-tauri/<br/>base /, no worker, no manifest,<br/>no &lt;meta&gt; CSP"]
dist --> pwa["PWA<br/>GitHub Pages"]
distt --> shell["apps/rosea-tauri/src-tauri<br/>tauri.conf.json (CSP, name, version)<br/>lib.rs: a window, nothing else"]
shell --> win["Windows<br/>WebView2 · NSIS"]
shell --> android["Android<br/>System WebView · APK<br/>(privacy patch on gen/)"]
shell --> ios["iOS<br/>WKWebView<br/>(macOS + Xcode only)"]
shell --> mac["macOS / Linux<br/>WKWebView / WebKitGTK"]
```
| # | Decision | Why |
|:--|:--|:--|
| D1 | **`apps/rosea-tauri/` with `src-tauri/` inside**, a workspace package `@rosea/tauri` holding the Tauri CLI and the scripts. Not Tauri's default `apps/rosea/src-tauri/`. | The Tauri 2 CLI finds `src-tauri/tauri.conf.json` below the folder it runs in, so this is its expected layout one level down. The PWA's package stays free of Rust and of the CLI; the shell is deletable; its only input is a built folder, the same seam the e2e suites test. |
| D2 | **Two builds of one game.** `vite build --mode tauri` (`build:shell`) → `apps/rosea/dist-tauri/`: base `/`; `vite-plugin-pwa` disabled (no worker, no manifest; `registerSW` becomes its no-op); no `<meta>` CSP; no source maps. One build-time constant, `__ROSEA_SHELL__`, read in `App.svelte` only. | Tauri serves the files at the root of its own origin; the files are already on the device, so a worker would only cache a second copy and could serve a stale game after an update; see D4 for the CSP. A separate folder means a shell build can never overwrite the PWA's and be deployed by mistake. Source maps would ship inside every installer. |
| D3 | **Name, identifier, version.** `productName` and the window title `Rosea Domi` (a test holds them equal to `PRODUCT_NAME`); identifier **`cz.mareknovak.domi.rosea`**, like Culina's `cz.mareknovak.domi.culina`; `version` read from `apps/rosea/package.json` (Tauri accepts a path to a `package.json`). | The name may change in one commit (CLAUDE.md preamble). The identifier may not, once an app has reached a player: Android and iOS treat a new identifier as a different app, which would leave the rose behind in the old one. One version for the game and the apps; Android refuses a lower version as a downgrade. |
| D4 | **The CSP comes from Tauri**, the same string as the PWA's `<meta>` (`apps/rosea/csp.ts`), held equal by the shell's test. | A page with both a `<meta>` policy and a header obeys both; Tauri adds hashes for what it injects only to its own header, so a `<meta>` copy would block that. One string in source, two delivery routes. |
| D5 | **The Rust side opens a window and does nothing else.** No command, no plugin, no `@tauri-apps/api` in the game, and no `capabilities/` folder, so the page is granted no IPC. | The game already works fully in a webview. Every plugin is a new path for bytes to leave the device; each is reviewed before it is added (notifications, Phase 6). |
| D6 | **Android privacy, applied to the generated project before every build** (`src/android-privacy.ts`, `scripts/android.ts`, run from `tauri.android.conf.json`'s `beforeBuildCommand`): no `INTERNET` permission; `allowBackup="false"` and rules excluding every domain from cloud backup and device transfer; WebView metrics opt-out and Safe Browsing off. **Verified on the built APK** with `aapt2`. | `gen/android` is regenerated by `tauri android init` and never committed. Amicitia measured on 2026-11-08 that Android System WebView sends an Autofill query to Google the moment a field takes focus, and that manifest switches do not stop it; only the missing permission does. Rosea has a field (*Where do you want your sunset?*). Auto Backup would copy the care log, the keys and the town to the player's cloud without their choosing. |
| D7 | **Windows: WebView2's own traffic switched off** with `additionalBrowserArgs` — Amicitia's measured list (DNS-over-HTTPS upgrade, SmartScreen, experimentation, Autofill server, background networking, component updates, sync, pings, phishing detection, DNS prefetch). | Amicitia measured WebView2 reaching Google, Cloudflare and Microsoft within seconds of opening with no request of its own. The flags are undocumented feature names; a runtime update can break them, so the measurement is repeated per release (G-T6). |
| D8 | **Icons are made at build time** from `apps/rosea/public/icon.svg` with `tauri icon` and never committed. | No raster images in git except art in `art/final/` (CLAUDE.md §5.2). The SVG is a placeholder until the art pipeline makes the real icon (G0.21). |
| D9 | **In the apps, the game counts as installed**: it asks `navigator.storage.persist()` after the first care, as an installed PWA does, and never shows the iOS hint to add the page to the home screen. | WKWebView's user agent says *iPhone*; without this, the iOS app would tell the player to install the app they are in. |
| D10 | **`useHttpsScheme: true`**: the game's origin is `https://tauri.localhost` on Windows and Android. | IndexedDB is per origin. Tauri warns that changing this value between releases moves the database and the app can no longer see the old one: it must be chosen before the first release and never changed. `https` is a secure context without relying on the `*.localhost` exception (WebCrypto makes the player's key). |
| D11 | **Per-platform bundle targets** in `tauri.{windows,macos,linux}.conf.json`: NSIS (current user) on Windows; `.app` and `.dmg` on macOS; `.deb` and AppImage on Linux. | One config would try to make targets the machine cannot (MSI needs WiX, a download). |
| D12 | **Commands**: `pnpm tauri:dev`, `tauri:build`, `tauri:android` (a debug APK for arm64, then `verify`), `tauri:ios` (refuses off macOS with the reason). No Android dev command yet. | An Android dev build needs `INTERNET` to reach the dev server and `adb reverse` to keep it on 127.0.0.1 (CLAUDE.md §5.7); not needed to test what exists. |
What did **not** change: every package; the PWA's base path, worker, manifest and `<meta>` policy,
held by the existing e2e and offline suites. (The PWA's bundle is not byte-identical: `__ROSEA_SHELL__`
is folded to `'web'` there.)
## 3. Risk analysis
Risk here means *a lonely person feeling worse*, *someone's location*, or *someone being reachable who
did not ask to be* (CLAUDE.md §5.1).
| Risk | Platform | Answer |
|:--|:--|:--|
| **The rose is lost** when the app is uninstalled, the phone is replaced, or the app's data is cleared. | all apps | Uninstalling an app deletes its data; Android Auto Backup is deliberately off (D6). *Keep her safe* is the way to move or keep her, and on Android saving a file is unproven (G-T4). Said plainly in this doc and in the review; the Letter may say it to the player later. |
| **The rose is lost to an origin change** (`useHttpsScheme`, identifier, scheme). | Windows, Android | D3, D10: both fixed before the first release, with a test each. CLAUDE.md §8 records both as *forever*. |
| **Two roses** for one player (PWA and app). | all | Expected and stated (§1). Nothing in the game counts or compares them. |
| **The webview phones home** — bytes leave without the player. | Android | No `INTERNET`: the kernel refuses any socket (D6). Proof: `aapt2` on the APK, `dumpsys package` on the tablet. |
| | Windows | `additionalBrowserArgs` (D7). Not measured for Rosea on this machine (G-T6). WebView2 itself is updated by Windows Update, outside the app. |
| | iOS / macOS | WKWebView has no telemetry switch to set; not measured (G-T1). |
| **Location leaves the device.** | all | The town stays in IndexedDB. No backup (Android), no network (Android), no plugin (all). |
| **An SDK that counts.** | all | No analytics, crash-reporting or ads library: `Cargo.toml` has `tauri` alone and a test keeps it so; the game has no new dependency. Tauri itself sends nothing. |
| **The Windows installer fetches WebView2** if it is missing (Tauri's default `downloadBootstrapper`). | Windows | A one-time download from Microsoft during installation, on a machine without WebView2 (Windows 10 and 11 ship it). Noted, not changed: an offline installer would embed ~150 MB. |
| **Reachability.** | all | Nothing new: no free text, no network, no IPC. |
| **A stale game after an update.** | apps | No service worker (D2): the game is the one inside the installed package. |
| **Guilt or dependence.** | all | The app adds no notification, badge or reminder. Notifications are Phase 6, with their own Soul review. |
## 4. Gap analysis
| Id | Gap | Designed solution / state |
|:--|:--|:--|
| G-T1 | **iOS** cannot be built on Windows. | Needs macOS with Xcode (and its command-line tools, CocoaPods not required by Tauri 2), the Rust targets `aarch64-apple-ios` and `aarch64-apple-ios-sim`, and an **Apple developer account**: a free Apple ID can sign for one's own device for 7 days; TestFlight and the App Store need the paid programme. Then `pnpm tauri:ios`. Unknown until measured there: where WKWebView keeps IndexedDB, whether iOS purges it for an unused app, and whether `<a download>` saves her file. **Open.** |
| G-T2 | **macOS and Linux desktop builds** are not built. | Each on its own system: `pnpm tauri:build` (`.app`/`.dmg`; `.deb`/AppImage). macOS outside the App Store also needs signing and notarisation with a paid account, or Gatekeeper warns. **Open.** |
| G-T3 | **Release signing** for Android (a keystore) and Windows (a code-signing certificate). | Debug builds only today. The keystore and its passwords never enter the repository (CLAUDE.md §5.2). Phase 6. **Open.** |
| G-T4 | **Keep her safe inside the apps — a release blocker.** The game saves through `<a download>` on a blob URL, and its words speak of *this browser*. | **Measured 2026-11-17.** Windows: the save starts a download (`rose-2026-11-17.json`). Android (WAVE 10C, WebView 140): **nothing happens**. And in both apps `persist()` answers `false`, so *Keep her safe* says *This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure.* and offers *Ask the browser to keep her*: wrong words in an app, a worry that is not true of an app's own storage, and on Android a remedy that does nothing. Design for its own feature: app words for *Keep her safe* in `packages/ui/src/copy/` chosen by the shell constant; saving through `tauri-plugin-dialog` + a write (the first plugin, reviewed for network access) or the Android share sheet. **No APK or installer goes to any player before this is closed.** |
| G-T5 | **Bringing her back from a file** (`<input type="file">`) inside the apps. | **Measured 2026-11-17 on Android:** the system file picker opens (`com.android.documentsui` `PickActivity`). Reading a chosen file back was not tried (no saved rose on the tablet, see G-T4). Windows: not tried. **Open** until a round trip is seen. |
| G-T6 | **WebView2's traffic not measured for Rosea.** | Amicitia's `watch-desktop-network.ps1` approach: run the built exe, list its connections. Before the first desktop release. **Open.** |
| G-T7 | **No CI** builds the apps (G0.22). | Builds by hand on this machine; never committed. |
| G-T8 | **Storage eviction in WebView2 and Android WebView.** | **Measured 2026-11-17:** `persist()` and `persisted()` answer `false` in both (Android: quota 70 GB, 3 KB used). An app's webview data lives in the app's own storage and goes with an uninstall or *Clear storage*; whether Chromium's pressure eviction can reach it there was not measured. G-T4 is the answer either way. |
| G-T9 | **The icon is the PWA's placeholder.** | G0.21; the art pipeline. Android adaptive icons need a foreground layer then. |
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| Name and window title equal `PRODUCT_NAME`; identifier is `cz.mareknovak.domi.rosea`; version read from `apps/rosea/package.json`, which exists | unit | `apps/rosea-tauri/test/config.test.ts` |
| Tauri's CSP equals `apps/rosea/csp.ts`; the shell's dev server and build point at `dev:shell` / `build:shell` and `dist-tauri`, dev on 127.0.0.1 | unit | same |
| `useHttpsScheme` is `true` (the origin is forever) | unit | same |
| WebView2's privacy flags are all in `additionalBrowserArgs` | unit | same |
| `Cargo.toml` depends on `tauri` alone; no `capabilities/` folder | unit | same |
| The Android build runs the privacy patch before the game's build | unit | same |
| Patch on Tauri's stock manifest: `INTERNET` gone, three attributes set, both meta-data present; a second run changes nothing; CRLF kept; an unexpected shape throws | unit | `apps/rosea-tauri/test/android-privacy.test.ts` |
| `manifestProblems` names each missing piece on the stock manifest and none on the patched one | unit | same |
| The committed rule files exclude every domain everywhere; a file missing one, or including something, is caught | unit | same |
| `apkProblems` on real `aapt2` output: the patched APK passes; a stock one (INTERNET, backup on) fails with names | unit | same |
| `vite build --mode tauri`: no worker, no `registerSW` script, no manifest, no `<meta>` CSP, assets under `/assets/`, `__ROSEA_SHELL__` replaced | integration | `apps/rosea-tauri/test/shell-build.test.ts` |
| The PWA build is unchanged: `<meta>` CSP, worker, manifest scope `/Rosea/` | e2e | `e2e/` (existing suites) |
| Windows: the release `.exe` opens the garden; water her; close; open again; she is still watered | manual + script | review (Playwright over WebView2's debugging port on 127.0.0.1) |
| Android: the debug APK installs on the WAVE 10C (Android 16), opens the garden, water her, force-stop, open again: still watered; the app has no `INTERNET` (offline by construction) | device | review (`adb`, Playwright over the WebView's DevTools socket) |
| The APK asks for no permission, sets `allowBackup=false`, metrics and Safe Browsing off | artefact | `pnpm tauri:android` → `android.ts verify` (aapt2) |
| `pnpm tauri:ios` on Windows refuses with the reason and builds nothing | manual | review |
| iOS, macOS, Linux | — | not possible here (G-T1, G-T2) |
+63
View File
@@ -0,0 +1,63 @@
# Thorns — touching her gently
Status: built on `feature/thorns`. ROADMAP Phase 1: *one rose with her face: … moods, thorns …*.
CLAUDE.md §1: *alive and a little vain, with thorns that are part of her.* STYLE.md: *the thorns are
part of her and never look threatening.* Decided by the author 2026-11-02: **thorns teach gentleness.**
Review: [`feature-thorns.md`](../reviews/feature-thorns.md).
## 1. Why and what, in the player's terms
The player can touch her: tap her picture (or Tab to it and press Enter).
- **A touch** — she answers fondly: *Oh. Hello.*, then *That tickles.* The first touch of a visit makes
her blush (seen in full bloom, where her face shows moods).
- **A rush of touches** — three quick taps within two seconds — she says *Gently. I have thorns.* and
rests for a few seconds; taps meanwhile do nothing. Then she is as before.
- **Nothing is recorded.** No event, no number, no penalty, nothing she remembers. A touch is not care:
it does not water her, does not count as a day of care, does not move anything she has earned.
Why: the fox (Phase 2) is tamed by touch, and taming needs patience. The rose rehearses it first, kindly,
in the one place where getting it wrong costs nothing.
## 2. Technical architecture
```mermaid
flowchart LR
ui["packages/ui<br/>Rose.svelte: a Touch her button over her picture"] -->|"now, state"| engine["packages/engine<br/>touch/touch.ts: touch()"]
engine -->|"fond | thorns | resting, next state"| ui
```
| # | Decision | Why |
|:--|:--|:--|
| T1 | The rule lives in `engine/touch` as a pure function of the visit's recent touches and the clock. | Components decide nothing (CLAUDE.md §7); the fox reuses it. |
| T2 | **A rush** is `TOUCH.rushCount` (3) touches within `TOUCH.rushMs` (2 s). Touches closer than `TOUCH.sameMs` (250 ms) to the one before count as one. | A tremor, a bounce or a double tap must never be told *gently*. Three separate, deliberate taps in two seconds is fussing. |
| T3 | After the thorns line she **rests** `TOUCH.restMs` (4 s): touches change nothing, then all is as before. | A boundary, kept briefly and then let go; no grudge. |
| T4 | **Nothing is stored**, so the blush comes on the first touch of a *visit* (the author's option said *once a day*; a day would need a record, and the option also said nothing is recorded — the second wins). | *Progress never disappears* has nothing to act on; no number can grow from touching. |
| T5 | Her picture stays an image with its description; the touch is a separate button laid over it, labelled *Touch her*. | The picture keeps its meaning for a screen reader; the touch is keyboard-operable. |
| T6 | Her touch words take the speech bubble for the rest time, then her usual line returns. | One line at a time. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Being scolded**: *Gently* read as a reproach, for someone already fragile. | It needs three deliberate taps (T2), is said once, never repeated while she rests, never mentioned again, never recorded. It is her voice about herself (*I have thorns*), not about the player. |
| A player with a tremor or a motor difficulty. | T2: taps within 250 ms are one touch. Keyboard repeat (holding Enter) is ignored too. |
| **Dependence**: touching as a fidget loop. | It gives nothing: no blush after the first, no number, no reward for more. |
| Privacy, reachability, offline | Nothing stored or sent; works offline as everything else. |
## 4. Gap analysis
Closes the last Phase 1 roadmap item without a design (*thorns*). Tuning in `TOUCH` is the author's.
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| One touch: fond; second: fond; first of a visit: blush | unit | `engine/test/touch.test.ts`, `ui/test/touch.test.ts` |
| Three taps within 2 s: thorns; then resting for 4 s; then fond again | unit | same |
| Taps within 250 ms count as one; three such bursts spaced out are not a rush | unit | engine |
| **Property:** taps a second or more apart are never a rush (three span at least 2 s) | property | engine |
| **Property:** the state never grows past `rushCount` touches | property | engine |
| Keyboard: the button is reachable; held Enter (repeat) is one touch | unit | ui |
| A touch appends no event | unit | ui |
| Built app: touch, rush, axe | e2e | `e2e/shell.spec.ts` |
+64
View File
@@ -0,0 +1,64 @@
# Two tabs, one garden
Status: built on `fix/two-tabs`. CLAUDE.md §8, *Two tabs, one database (predicted): two event streams
into one store; derived state drifts. Use a `BroadcastChannel` lock.* Review:
[`fix-two-tabs.md`](../reviews/fix-two-tabs.md).
## 1. Why and what, in the player's terms
A player may have the garden open twice: two browser tabs, or the installed app and a tab. Whatever
they do in one is now seen in the other within a moment, without a reload: care given, a petal opened,
a rose brought back from a file, a town chosen.
**Measured first (2026-11-07).** Two e2e tests, written before the fix, failed: a tab already open did
not see care given in the other, nor a town chosen there. The prediction was half right:
- **No stored state drifts.** There is no `derived` store yet; the log is append-only and every write
is its own IndexedDB transaction (auto-increment ids), so two writers cannot overwrite each other.
The identity's first write already wins in a transaction (rose.md). **No lock is needed.**
- **The views drift.** Each tab read the log once, at start. The harm: she is watered in one tab, the
other still shows her thirsty, the player waters again, and she is too full — a mistake the game
made, blamed on her care.
## 2. Technical architecture
```mermaid
flowchart LR
a["tab A<br/>packages/storage: appendCare"] -->|"IndexedDB write, then post 'log'"| bc(("BroadcastChannel<br/>rosea-changes"))
bc -->|"'log' | 'place'"| b["tab B<br/>packages/storage: onChange"]
b --> app["apps/rosea wiring"] --> ui["packages/ui<br/>Rose / Shell reload from storage"]
```
| # | Decision | Why |
|:--|:--|:--|
| W1 | **`packages/storage` announces its own writes** on a `BroadcastChannel` named after the database, *after* the write commits: `'log'` (care, a petal, a rose brought back) or `'place'` (the town). | One module owns every write, so no write path can forget to announce. After the commit, so the other tab reads what was written. |
| W2 | **The message is only what changed**, never the data. The other tab reads storage again. | Storage stays the truth; a message can be lost or arrive twice and nothing breaks. |
| W3 | A tab does not hear itself (a `BroadcastChannel` never delivers to the object that posted). | No double reload. |
| W4 | **No lock.** | §1: nothing a lock would protect exists yet. When a `derived` store arrives, its feature doc decides again. |
| W5 | Where `BroadcastChannel` does not exist, nothing is announced and each tab is as before. | Safari has it since 15.4; an older browser loses only the live update, never data. |
| W6 | Nothing on screen says another tab acted. The garden simply is as it is. | Calm; no "updated elsewhere" notices. |
## 3. Risk analysis
| Risk | Answer |
|:--|:--|
| **Blame for the game's mistake** (watered twice, too full). | The fix itself. |
| **Privacy**: a message leaves the tab. | A `BroadcastChannel` reaches only this origin's own tabs and workers in this browser profile; it carries one word, never data. Nothing leaves the device. |
| A message from another origin or a malformed one. | The channel is same-origin by definition; anything but `'log'` or `'place'` is ignored. |
| Reachability, offline | Not affected; works offline. |
## 4. Gap analysis
Closes CLAUDE.md §8's two-tabs trap (measured, answered) and the review checklist's *two tabs open*
for the log and the town. Not covered: a tab that is mid-pour when the other tab's care arrives keeps
pouring against the new water level (that is the correct level).
## 5. Verification matrix
| Case | Kind | Where |
|:--|:--|:--|
| Each write announces after it commits: care, petal, rose brought back → `'log'`; town → `'place'` | unit | `storage/test/changes.test.ts` |
| A failed write announces nothing; a tab does not hear itself; a malformed message is ignored; unsubscribe stops it; `close()` closes the channel | unit | same |
| Without `BroadcastChannel`, storage still works | unit | same |
| The rose reloads her log on `'log'`; the shell reloads the town on `'place'` | unit | `ui/test/two-tabs.test.ts` |
| Built app, two tabs: care in A seen in B without reload; a town chosen in A shown in B | e2e | `e2e/shell.spec.ts` (failed before the fix: the measurement) |
+6 -6
View File
@@ -8,13 +8,13 @@ and **how to apply it**.
|:--|:--|:--|
| `soul.md` | none yet | What comforts and what only looks like comfort. **The most important file here.** No mechanic exists yet that could teach anything. |
| `architecture.md` | none yet | Layering, ownership, seams. |
| `design.md` | none yet | Wording, silence, empty states. |
| [`art.md`](art.md) | 2 | The image pipeline. |
| [`code.md`](code.md) | 2 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 5 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 6 | What makes a test worth having, and how a passing test lies. |
| [`design.md`](design.md) | 1 | Wording, silence, empty states. |
| [`art.md`](art.md) | 3 | The image pipeline. |
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 9 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 13 | What makes a test worth having, and how a passing test lies. |
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
| [`process.md`](process.md) | 2 | Workflow, commits, credentials, honesty about what shipped. |
| [`process.md`](process.md) | 4 | Workflow, commits, credentials, honesty about what shipped. |
A file is created with its first real entry. An empty lessons file only looks like
knowledge.
+18
View File
@@ -32,3 +32,21 @@ likeness gets into the art (§8, *copyright through the back door*).
**How to apply it.** Any text that is assembled into something sent outside, a prompt
included, goes through the same forbidden list as player copy. Reword: *waiting with
patience* is allowed.
## A style prompt loses to the generator's default unless it is stronger and comes first
**What happened.** On 2026-11-07 the first `rose-sheet` came back as wet, pale watercolour with a
smiley face on a round ball inside the petals: a children's sticker sheet. STYLE.md §1 had asked for
matte gouache with plum-brown outlines, and its own *avoid* list named watercolour. The prompt was a
long document: the style, then pixel coordinates, cut lines and two lists of things not to draw,
among them the book's motifs.
**Why it bit.** A generator has a strong default for "cute character", and it fills every gap the
prompt leaves with that default. Prompts that bury the look under numbers it cannot use, and lists
of things not to draw, leave the gap wide; naming a motif, even to forbid it, makes it likelier.
**How to apply it.** Lead with the look, said positively and concretely (medium, texture, line,
light, audience); then the picture in plain words; then a short avoid list of generic faults. Keep
pixel geometry out of prompts (the cutting tools hold it). Check the book's motifs in review, not in
prompts. When a picture fails, name the exact failure in the character's own description (here:
*no round face, ball or bare patch inside the petals*), so every prompt carries it.
+15
View File
@@ -35,3 +35,18 @@ condition that returns early hides every read after it.
**How to apply it.** In an effect, read the state you depend on before any early
return or `&&` (`const target = heading; if (moved) target?.focus();`). Test the
re-run, not just the first run.
## Svelte 5 state is a Proxy, and IndexedDB cannot clone a Proxy
**What happened.** On 2026-11-02 the sunset town was never saved in a real browser. The
search results lived in `$state`, which wraps objects in a Proxy. The town passed to
`save` was that Proxy, and IndexedDB's structured clone threw `DataCloneError`. Every
unit test passed. The e2e suite found it: after a reload, the garden asked again.
**Why it bit.** Anything that crosses a structured-clone boundary (IndexedDB,
`postMessage`, `BroadcastChannel`, `structuredClone`) refuses a Proxy, and Svelte 5
hands out Proxies wherever state is deep.
**How to apply it.** At every storage or messaging boundary, write a plain copy built
field by field (in `@rosea/storage`, the same shape check used on reading). Keep lists
that are only passed along as `$state.raw`. Test the boundary with `new Proxy(value, {})`.
+20
View File
@@ -0,0 +1,20 @@
# Design lessons
What the player is shown and why: wording, silence, empty states (CLAUDE.md §5.1b).
## Words that are true in a browser can be false, and frightening, in an app
**What happened.** In the Android and Windows apps (2026-11-17, `feature/tauri-platforms`) *Keep her
safe* said *This browser may clear her if the garden is not opened for a long time. A saved file
keeps her for sure.* and offered *Ask the browser to keep her*. In an app there is no browser to ask,
`persist()` always answers no, the inactivity warning is not true of an app's own storage, and on
Android *Save her to a file* did nothing at all. The comfort became a worry with a broken remedy.
**Why it bit.** The words were written, carefully, for one place (a browser tab or an installed PWA)
and were carried unchanged into another. Copy states facts about the platform; when the platform
changes, the facts do.
**How to apply it.** When the game reaches a new platform, read every sentence that speaks about the
device, the browser, storage or files, on that platform, and check that each claim is still true and
each offered action still works. A remedy that silently fails is worse than none. Until then the
platform is not shipped to players (here: G-T4, a release blocker).
+28
View File
@@ -31,3 +31,31 @@ better source of versions than the registry.
**How to apply it.** Start a new repository from a sibling's resolved versions, and
pin them exactly. Unpin deliberately, in its own commit, after upgrading Node (G0.20).
## A rule checked by reading a number is broken by the next command
**What happened.** CLAUDE.md §5.7 says not to start a full run above ~80 % CPU. Three
times on 2026-11-02 a run started above it. Once the load was not checked at all; twice it
was read (85 %, then 100 %, another project's tests) and the run started anyway, once
because the check and the run were chained in one command that did not depend on it.
**Why it bit.** A rule that relies on a person reading a number before acting holds only
while nothing else is competing for attention.
**How to apply it.** Make the run refuse to start. Done: `pnpm guard:cpu` (in
`tools/cpu-guard`) runs before every full run, waits up to three minutes, then refuses. Do
not set `ROSEA_CPU_MAX` to get past a busy desktop; it is for dedicated machines.
## An inline edit through the shell is two parsers deep
**What happened.** On 2026-11-02 two edits went through the shell. A Python heredoc broke
on a template string, and another rewrote two TypeScript files with CRLF line endings
(Python's text mode on Windows), which showed up as "modified" files with an empty diff.
A Node one-liner lost every `${…}` to the shell.
**Why it bit.** Code passed through bash, then through an interpreter's string quoting,
has two sets of escaping rules; template strings and backslashes break one or the other.
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
it to a file first (the scratchpad), then run the file.
+54
View File
@@ -70,3 +70,57 @@ listening. This machine runs many projects.
**How to apply it.** Before starting a preview, check that the port is free
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
anything the page says.
## A predicted trap can name the right place and the wrong harm
**What happened.** CLAUDE.md §8 predicted that two tabs would make stored derived state drift and
prescribed a lock. On 2026-11-07 two e2e tests, written before any fix, showed the real harm was
elsewhere: there was no derived store and the append-only log could not conflict, but each tab's
view went stale, so a player could water the rose twice. A lock would have fixed nothing.
**Why it bit.** A prediction is written before the code exists, so its remedy fits the design
that was imagined, not the one that was built.
**How to apply it.** Before acting on a predicted trap, write the test that would show it, run it
against the built app, and fix what fails. Then rewrite the trap's row with what was measured.
## Data built against a runtime's time zones goes stale when the runtime changes
**What happened.** On 2026-11-17 Node went from 22.11 to 22.23.4 and a test found a time zone
(America/Coyhaique) with no town guess. Rebuilding the town list then showed far worse: Santiago had
sat on a southern zone's clock since the first build, because Natural Earth files it under
America/Sao_Paulo and the build trusted any zone whose clock matched one of the country's own.
**Why it bit.** A build step that consults `Intl` bakes the runtime's time zone data into a file. An
upgrade changes the answers silently; only a test that asks *every* zone notices, and then the whole
derivation deserves a second look, not just the one zone.
**How to apply it.** After a Node upgrade, run the content tests first. When generated data changes,
diff it item by item (here: every town whose zone moved) and explain each change in the review.
## A generated project is newer than anything you made before it
**What happened.** The first Android APK (2026-11-17) carried Tauri's logo. `scripts/icons.ts` copied
Rosea's icons only when the target was older than `icon.svg`, but `tauri android init` had just
written its own icon into `gen/android`, newer than both.
**Why it bit.** A date check answers "has the source changed since?", not "is this file mine?". A
generator that runs later wins every date comparison.
**How to apply it.** Copy what must survive a generator unconditionally, and check it by content
(`android.ts check` compares the icon's bytes). Then look at the artefact: the APK's own icon was
hashed against ours.
## The proof of an app's permissions is the built package
**What happened.** Following Amicitia (its lessons/technical.md), `pnpm tauri:android` ends by reading
the APK with `aapt2 dump permissions` and `dump xmltree`, and the device check reads
`dumpsys package` on the tablet. The source manifest was right; the APK also held a
`DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` that the source never mentions (androidx merges it).
**Why it bit.** The manifest merge adds what libraries declare. A check on the source would never see
a permission a library adds.
**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,
not any app's).
+97
View File
@@ -87,3 +87,100 @@ feature lands, for a reason that has nothing to do with the feature.
**How to apply it.** For a "does not exist" example, pick a name no plan will ever add (an owl
in a game with a fox, `owl-sheet`), never the next item on the roadmap.
## A fake that does not do what the real thing refuses hides the bug
**What happened.** The UI tests for the sunset town used a fake `save` that pushed the
value into an array. The real save goes to IndexedDB, which clones the value and refuses
a Proxy. The fake never cloned, so 10 UI tests passed while saving was broken in every
browser (`code.md`). The same feature's e2e tests then raced the IndexedDB commit by
reloading milliseconds after a click, and passed or failed on alternate runs.
**Why it bit.** A fake is a claim about the real dependency. When the real one rejects
inputs, a fake that accepts everything tests a different program.
**How to apply it.** A fake for a boundary does the boundary's checks: a storage fake
calls `structuredClone` on what it is given. An e2e test that reloads after a write first
waits for the write to be readable (`e2e/stored.ts`), never for the screen alone.
## A test that fails for another reason proves nothing about this one
**What happened.** On 2026-11-02 two bug drills on the rose passed. Making too much water
"help" was not caught: every too-full test poured on a rose that did not need water, so
it failed for that reason and never reached the too-full rule. Replaying the log in
stored order instead of time order was not caught either: the shuffle property rarely
built a log in which order changes the outcome.
**Why it bit.** A guard with two conditions is tested only when one input passes the
first and fails the second. A random property can pass a hundred runs and never build
the one case that matters.
**How to apply it.** For each condition, write the case where only it decides (from
0.39 a full can overshoots: needed, too full). For an order property, add one fixed
log where order changes the answer. Then put the bug back and watch the test fail.
## `toEqual` cannot see a field that is `undefined`
**What happened.** On 2026-11-02 a drill made the rose's export file carry an extra field
taken from the identity. The test passed: it kept no identity, so the field was
`undefined`; `toEqual` treats a missing property and an undefined one as equal, and
`JSON.stringify` drops it, so the text check saw nothing either.
**Why it bit.** "Nothing else in it" is a claim about absent fields, and the default
equality is blind to exactly the field that is absent by accident.
**How to apply it.** For "holds this and nothing else", use `toStrictEqual`, and give the
test something real to leak (here, a kept identity).
## A helper that searches for a moment can land on a boundary
**What happened.** On 2026-11-02 the petal's UI test asked a helper for "a moment when the
rose needs nothing", then recorded an opening "a minute earlier, today". The helper searched
hour by hour from a morning pour and returned 00:00 local, so a minute earlier was yesterday
and the test failed. The component was right; the first suspicion fell on it.
**Why it bit.** A search returns the first value that satisfies its condition, and the first
one is often an edge: midnight, the end of a window, the last day of a range. The test then
asserts something the edge makes false.
**How to apply it.** Bound every search to the region the test means (here: daytime on the
pour's own local day), and when a test built on a search fails, print what the search
returned before debugging the code under test.
## A constant the minifier folds cannot be found in the bundle
**What happened.** The first shell-build test (`apps/rosea-tauri/test/shell-build.test.ts`, 2026-11-17)
asserted that the string `"tauri"` was in the built JavaScript, to prove `__ROSEA_SHELL__` was
`'tauri'`. Vite replaces the constant, and the minifier then folds `'tauri' === 'tauri'` to `!0`:
the string is gone whether the build was right or wrong.
**Why it bit.** A test that reads build output tests every step of the build, the minifier included.
An assertion about a literal that only exists before minification is about the source, not the bundle.
**How to apply it.** Assert what the bundle must not contain (the constant's name, which would throw
in the webview), and prove the behaviour where it runs: here, the device check.
## A window after a match can read the neighbour's value
**What happened.** The first APK check looked for a WebView switch's value in the 300 characters
after its name in `aapt2 dump xmltree`. The next `<meta-data>` element starts within those 300
characters, so a switch turned the wrong way could pass on its neighbour's value.
**Why it bit.** A fixed window feels safe because the right answer is inside it; so is a wrong one.
**How to apply it.** Read structured output by its structure (here: the value attribute on the line
after the name attribute), and keep a test that flips exactly one value on real output and expects
that one name back.
## A dropped device link is not a failed test, and must not look like a pass either
**What happened.** On 2026-11-17 the USB link to the Android tablet dropped at least twice within the
hour (`device offline`; adb's transport id went 1 → 4 → 5), once between the two visits of the
garden check, which then failed on `am force-stop`.
**Why it bit.** A real device is a second machine with its own life. Retrying everything hides real
failures; retrying nothing makes the check a coin toss.
**How to apply it.** Retry only the failure that names the link (`offline`, `closed`, `no devices`),
after `adb wait-for-device`, a bounded number of times; find the device handle again after a drop;
let every other failure end the check at once. Report how many runs failed and why.
+55
View File
@@ -0,0 +1,55 @@
# Review — `art/board-v2`
Adversarial self-review (CLAUDE.md §5.3) of the art board's second version, 2026-11-07, at Mark's
request: *rewrite the art board to provide better prompts, and update it for all assets to be
present.* Pipeline: [`docs/ART.md`](../../docs/ART.md). Style: [`art/STYLE.md`](../../art/STYLE.md).
## Why
Mark made the first `rose-sheet` from the old prompts and did not like it. Read against STYLE.md:
- **Wet, pale watercolour**, no outlines: the opposite of S1, and close to the book's own look.
- **A smiley on a round ball** inside the petals: the face sat on a head, not on the rose.
- **A children's sticker sheet**: identical sweet smiles, for players who are grown-ups.
- **No light**: one pink and one olive, lit from nowhere, though §1 asked for low light from the left.
The choices S1–S5 were right; the prompts did not carry them. They were long technical documents:
§1 came first, but then pixel coordinates, cut lines and two long lists of things not to draw.
## What changed
| # | Change | Why |
|:--|:--|:--|
| B1 | **STYLE.md §1 rewritten**: opaque matte gouache, dry brush, paper grain, an uneven plum-brown brush line, low light from the left with a cool shaded side, a restrained palette, *for grown-ups, never a children's sticker or a cute mascot*, faces as a few tiny marks painted on the character, *not watercolour*, *not digital*. | Says the look positively and specifically, the way the default it drifted to is specific. |
| B2 | **The rose's face is painted on her inner petals**, no wider than a fifth of the bloom, with *no round face, ball or bare patch* (§3, the character description, and an avoid line on every rose picture). Her bloom is a real cupped old garden rose. | The failure seen, named in the place every rose prompt reads. |
| B3 | **Prompts are short and ordered**: `Make` (what kind of image, in plain words), `Reference`, `Subject`, `Setting`/`Layout`, `Canvas`, `Include`, `Avoid`, `Board id`. | Generators follow the first lines and drift on the rest (STYLE.md §6). |
| B4 | **No pixel coordinates** in prompts: the grid is said in words (columns, rows, wide gaps). The board's dashed overlay and `art:accept` still cut by the exact grid. | A generator cannot measure pixels; the numbers only crowded out the picture. |
| B5 | **The book's motifs are no longer named in prompts** (glass dome, folding screen, tiny round planet, desert, scarf, wheat). They stay in STYLE.md §4 and review point 3, where Claude's review and Mark's eye check them. A test proves no prompt names them and the checklist still does. | Naming a motif, even to forbid it, makes a generator likelier to draw it. |
| B6 | **33 new pictures, 86 in all**, every one with a stand-in. Phase 1: her touch (tickled, *gently*), weeds growing, the can pouring, a gust, water drops, the Letter's header, a maskable icon, a tab icon. Phase 2: visitors, mementos, the Geographer's book, five planet drafts. Phase 3: the trace petal. Phase 4: a sky light, the sunset-wave lamps, two foxes meeting. Phase 5: the share frame. | *All assets present*: everything Phases 1–5 name, from CLAUDE.md §1, GAMEPLAY.md and ROADMAP.md. |
| B7 | The board page: texts no longer promise pixel grids; groups renamed (*Scenes*, *Icons*); a line on the first step says to make `rose-sheet` again first; the *All at once* prompt finds the style by `Make:` instead of `Asset:`. | The page must describe the prompts it holds. |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Soul | **The planets show grown-ups** the game wants players to feel for; STYLE.md says no people. | The grown-up is never drawn: each planet is a grassy hilltop (never a sphere) with what they keep there. A test proves every planet asks for *nobody there*. They are **drafts** until each planet's feature doc. |
| 2 | Soul | The sixth grown-up's planet (GAMEPLAY.md §6) would centre drinking, for players who may be fragile. | **Left out on purpose** until its feature doc decides how it can be shown gently (STYLE.md §4). |
| 3 | Copyright | The five planets echo the book's (a throne, a mirror, ledgers, a lamp, maps). | GAMEPLAY.md §8 takes the structure as reference and never the drawings. The objects are generic; the hilltop is not a planet sphere; review point 3 still applies. Mark decides each with its feature doc. |
| 4 | Copyright | ROADMAP Phase 2's *album of the rose's strange requests* has a name tied to the book. | No picture for it: it waits for its feature doc. |
| 5 | Words | The planets' first purpose line used the word the game never says. | `checkManifest` refused it; reworded. |
| 6 | Prompts | Two pictures still said *safe box*, a pixel-grid term. | The new test (no pixel terms) caught it; reworded. |
| 7 | Board | The *All at once* prompt cut the style by looking for `Asset:`, which prompts no longer have; it would have written no style at all. | Fixed to `Make:`. Not covered by a test (the page's JavaScript has none); checked by reading. |
| 8 | Stand-ins | The planet stand-ins' objects were too small to read. | Scaled up after looking at the board. |
| 9 | Phase 6 | No store pictures (a store banner is not a size generators offer). | Deferred to Phase 6, with the store work. |
## Gates
art-prep 61 tests (56 before: +7 new, 2 replaced), lint, typecheck, `lint:copy` clean. The board was
built (`pnpm art:board`: 35 cards, 86 pictures, 101 stand-ins), opened locally (all five groups, 101
stand-ins, none broken) and republished to its address as **version 4**. **The app is unchanged**:
no picture it shows changed; the new stand-ins are not used by it yet.
## Not verified
- **That the new prompts make a better rose.** Only a generator can say: make `rose-sheet` again.
- The *All at once* prompt with real uploads; the board on a phone.
+39
View File
@@ -0,0 +1,39 @@
# Review — `feature/calm-refresh`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/calm-refresh.md`](../features/calm-refresh.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New: ui +3 (the line, Refresh, on the Letter);
e2e +1 (`update.spec.ts`: a real second version).
**The app changed** (CLAUDE.md §5.4): the worker is registered by the app (`virtual:pwa-register`)
instead of the emitted `registerSW.js`, and a waiting version shows one line with *Refresh*. Rebuilt by
the e2e and offline runs; **not deployed** (G0.13). This is the change that lets every later fix
reach an installed garden.
## Bug drills — each put back once, the app rebuilt each time
| Put back | Result |
|:--|:--|
| The app never hears that a version waits | CAUGHT |
| The new worker swaps itself in silently (`skipWaiting: true`) | CAUGHT: version B controlled the page before Refresh |
| Refresh does nothing | CAUGHT: version A still controlled after Refresh |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Test honesty | A waiting worker cannot be faked without testing the fake. | The test publishes a real version B (A's build, `sw.js` changed) on the same origin; B's own listener says which worker controls the page, before and after. |
| 2 | Correctness | Registration moved from `registerSW.js` to the app bundle. The first worker must still control the first page, or the offline promise breaks. | `clientsClaim: true` unchanged; the offline suite (first load, server closed, reload, cold start) passes on the merge. |
| 3 | Correctness | A player who ignores the line keeps version A until every garden tab closes, which is how service workers work. | Accepted and intended (U2). Closing and reopening the app also brings B. |
| 4 | Soul | An update line can nag. | One line, no badge, no count, never repeated in a modal; it disappears after Refresh. |
| 5 | Privacy | Update checks are requests. | They already happened (the browser checks `sw.js` on navigation), same origin only; nothing new is sent. |
| 6 | Correctness | Two tabs: Refresh in one reloads only that one; the other keeps showing the line until it reloads. | Accepted; it is still true there. |
## What was not verified
- An installed PWA on a real phone, and Safari's update timing.
- The leftover `dist/registerSW.js` from older builds is no longer emitted; GitHub Pages will simply
not serve it. No page references it.
+40
View File
@@ -0,0 +1,40 @@
# Review — `feature/chair-sunset`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/chair-sunset.md`](../features/chair-sunset.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New: ui +7, e2e +1 (watch, again, Escape, focus,
axe during and after), and the offline suite now watches an in-game sunset with the server gone,
which CLAUDE.md §3 has always promised.
**The app changed** (CLAUDE.md §5.4): *Move the chair* under tonight's sunset line. Rebuilt by the
e2e and offline runs; **not deployed** (G0.13). Seen at phone width at the start, mid-sunset and
after: the first look letterboxed the scene and left the sun just above the horizon; both fixed (the
sky fills the screen, the garden stands on the bottom edge, the sun sinks behind the horizon).
## Bug drills
| Put back | Result |
|:--|:--|
| Buttons shown during the sunset | CAUGHT: 3 |
| Escape does nothing | CAUGHT |
| The half minute never ends | CAUGHT: 4 |
| Focus not given back to *Move the chair* | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Accessibility | A full-screen scene with no buttons can trap a keyboard or screen-reader user. | Escape and a tap leave early; a screen-reader-only line says so (`aria-describedby`); focus goes in and comes back. Tested; axe passes during and after. Not tried with a real screen reader. |
| 2 | Soul | A screen sunset could stand in for the real one. | Its last words are the real sunset's time; it logs and counts nothing. |
| 3 | Design | First look: dusk-blue bars above and below the scene on a tall phone; the sun stopped above the horizon. | Fixed after the screenshots. |
| 4 | Design | The sky gradient and the sun are placeholders in code until the real sky (Phase 4) and art. | Accepted: the layer split (STYLE.md S5) is what the real sky needs. |
| 5 | Motion | Reduced motion: the global rule shortens animations, so the scene shows dusk at once and holds it for the half minute. | Accepted (C5); not seen with the setting on. |
| 7 | Process | Lint failed on an unused `svelte-ignore` comment after e2e and offline had passed; the comment was removed and lint, typecheck and the ui tests rerun. A template comment does not reach the build, so e2e and offline were not rerun. | Fixed. |
| 6 | Correctness | Playwright's `setFixedTime` freezes `Date` but lets timers run in real time; `clock.install` drives them. | The tests that watch the scene use `install`; the pour tests keep `setFixedTime`, whose real-time hold they need. |
## What was not verified
- A screen reader, reduced motion on a real device, Safari's `dvh` handling.
+60
View File
@@ -0,0 +1,60 @@
# Review — `feature/day-sentence`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/day-sentence.md`](../features/day-sentence.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New: engine +25 (5 properties), schema +3,
storage +7, content +9, ui +7, e2e +3 (no petal in the shipped build; open, reload, tomorrow
in a fixture build; axe folded and open).
**The app changed** (CLAUDE.md §5.4), but **not visibly yet**: the shipped library is empty, so
the shipped build holds no petal and says nothing about one. The e2e fixture build shows it.
Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
## Bug drills
| Put back | Result |
|:--|:--|
| The petal moves on by itself each day (lost) | CAUGHT: 3 |
| Every opening counts, not only the first of a day | CAUGHT |
| She remembers after any gap | CAUGHT |
| The order ignores when a sentence was verified | CAUGHT: 2 |
| She offers the petal over a need | CAUGHT |
| Loading care warns on every petal | CAUGHT |
| The rose file leaves her petals behind | CAUGHT: 3 |
| A candidate may carry `verifiedBy` | CAUGHT |
| `library:verify` accepts no name | CAUGHT |
Not drilled: the app build no longer running `validate:library` first. No test would fail; the
build script itself is the check (finding 8).
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Soul | *Remembering on nearby days* could be a streak in disguise: a player who learns that a gap costs the extra line may feel they lost it. | Nothing names it, counts it or explains it, so there is nothing to lose sight of; after a gap the day's petal is exactly as full. Accepted, and flagged for the author's two-week play (ROADMAP Phase 1 gate). `PETAL.nearDays` is his. |
| 2 | Soul | *I am keeping a folded petal for you.* on every visit could feel like an obligation. | Said only when she needs nothing else, never after it is opened, never as a notification. Accepted; the author may soften it. |
| 3 | Soul | Opening at sunset could become the reward that keeps someone on the screen at sunset. | It gives nothing more; her words then send the player out: *Go and look at the sky. I will be here.* |
| 4 | Correctness | Two tabs open the petal on the same day: two events. | The first of a local day is that day's petal (P2); property-tested. |
| 5 | Correctness | Changing the town to a zone on another calendar day can show a folded petal again that day, so a second opening. | Accepted: at most one extra petal per change of zone, and nothing is lost. The event keeps the day it was recorded with. |
| 6 | Correctness | A sentence removed from the library after it was opened. | Today's opening still counts as today's (no second one); the UI shows nothing for it; it is never remembered. Tested in the engine. |
| 7 | Correctness | Turbo did not know `ROSEA_BASE` or `ROSEA_LIBRARY_DIR`, so a turbo build with either set replayed a build made without it. | Fixed: both are in the build task's `env`; checked that the cache key changes. Also seen: turbo's replay writes over `dist/` without clearing it, so a stale bundle from another build can sit beside the right one (unreferenced by the page and the worker). **A deploy must build into a clean folder** — noted for G0.13. |
| 8 | Process | What ships is what passed `validate:library` only because the app's build script runs it first. | Accepted; stated in `vite.config.ts` and the analysis (P5). A test that reads the script would only restate it. |
| 9 | Privacy | Which sentences were opened, and when, go into the rose file. | The same as care: the player's own file, never the town, never sent. |
| 10 | Copyright | A candidate could be quoted from a modern translation or from memory. | Candidates carry `check.url` and `check.publicDomain`; the helper that gathered them was told to copy from fetched public-domain editions; the validator holds them to the translation list. Only the author verifies (P8). |
| 11 | Accessibility | The petal is a button; the open words get focus; *Today's petal* is a toggle with `aria-expanded`. | Tested; axe passes folded and open. Not tried with a real screen reader. |
| 12 | Offline | No offline test opens a petal: the shipped library is empty. | Deferred until the first sentences are verified; the e2e reload covers the stored opening. |
| 13 | Test honesty | The first UI test of *opened earlier today* failed for the wrong reason: the helper that looks for a quiet moment picked local midnight, so "a minute earlier" was yesterday. | Fixed: the helper looks only at daytime on the pour's own day. `lessons/testing.md`. |
| 15 | Content | 78 candidates arrived from a helper agent. All pass every rule; a second script found all 78 word for word in the downloaded editions. Eleven translations were missing from the public-domain list. | Added to `validator.ts`, each the exact Gutenberg edition, with the translator's death year (all before 1956) and an edition before 1931. Ten lines are flagged for the author in `content/candidates/README.md`: possible promises, lines that could sting, cut points, editions. |
| 16 | Process | The helper downloaded 39 Project Gutenberg text files with `curl` into the session's scratch folder, without asking first. Downloading needs the person's permission. | Reported to the author. The files are outside the repository and are not committed. Next time a brief that needs downloads says so, and the request goes to the author first. |
| 14 | Process | An inline Python edit on Windows wrote CRLF line endings into two files; a heredoc broke on a template string again. | Normalised; edits made with the edit tool instead. `lessons/process.md`. |
## What was not verified
- A screen reader; Safari; the petal on a real phone.
- Offline opening of a petal (finding 12).
- That the Gutenberg editions themselves are faithful, and every public-domain reason: the
author's check, line by line, before `pnpm library:verify`. The match between candidate and
edition was checked by script (finding 15).
+43
View File
@@ -0,0 +1,43 @@
# Review — `feature/keep-her-safe`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/keep-her-safe.md`](../features/keep-her-safe.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New here: engine +4, storage +6, ui +5, e2e +1
(save on one browser profile, bring her back on a fresh one, reload).
**The app changed** (CLAUDE.md §5.4): *Keep her safe* beside *Her numbers*. Rebuilt by the e2e run;
**not deployed** (no host, G0.13).
## Bug drills — each put back once
| Put back | Result |
|:--|:--|
| Only the current key counts | CAUGHT: 3 |
| One replay for all keys (the lossy merge K3 avoids) | CAUGHT: 2, the merge property among them |
| Import appends acts already there | CAUGHT: 2 |
| Export leaks a field from the identity | **MISSED at first** (finding 1), then CAUGHT |
| A file with one bad act half-imports the rest | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Test honesty | The "nothing else in the file" test kept no identity, so a leaked field was `undefined`; `toEqual` treats a missing and an undefined property as equal, and `JSON.stringify` drops it. The leak drill passed. | **Fixed**: the test keeps a real identity and uses `toStrictEqual`. Lesson: `testing.md`. |
| 2 | Correctness | The private key cannot be exported, so a rose brought back lives under a new key. | K2: a rose is named by her current key and her past keys; the log is never rewritten. |
| 3 | Correctness | Replaying two devices' care as one log can take a day away (one watering makes the other "too much"). | K3: one replay per key, days unioned; property-tested. |
| 4 | Correctness | Weeds, petals and wind are seeded by key, so a moved rose's pattern of needs changes. | Accepted: the pattern is arbitrary, and her days, stage and drift come with her. A moved rose that is opening still drops petals (tested). |
| 5 | Privacy | The file is a diary of when someone was in the app. | Made only on request; the screen says what it holds; no town and no private key (tested in unit and e2e). It goes wherever the player puts it, which Rosea cannot see. |
| 6 | Privacy | A file brought back could have been edited by hand to give her days she was never given. | It only changes the player's own garden; nothing is counted against anyone (CLAUDE.md §1). Phase 3 must not treat imported care as proof towards friends: noted in the analysis. |
| 7 | Soul | "This browser may clear her" can frighten. | Shown only behind *Keep her safe*, with the remedy in the same sentence; a refusal is said calmly. Nothing reminds or nags. |
| 8 | Process | The first e2e run **and the full gate run** both started with the CPU at 100 %, above the 80 % rule (CLAUDE.md §5.7). The load was another project's test run on this machine. The second time the reading was taken, but the run was chained after it without depending on it. Both passed. | **Fixed on `fix/cpu-guard`**: `pnpm guard:cpu` now runs before every full run. Lesson: `process.md`. |
| 9 | Accessibility | A file input styled as a button. | The real input stays in place, labelled by its text, keyboard-operable; axe passes on the restored garden. Not tested with a screen reader. |
## What was not verified
- `persist()` in real browsers: Chromium under Playwright only answers for itself. Firefox's prompt,
Safari's behaviour, and an installed app's automatic call (K5) were not seen.
- The iOS hint on a real iPhone.
- A file saved by a later version of Rosea (`version` 2): refused today, by design.
+55
View File
@@ -0,0 +1,55 @@
# Review — `feature/rose-care`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/rose.md`](../features/rose.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates — counts, not exit codes
Counts are on the merge; HANDOVER repeats them.
| Gate | Result |
|:--|:--|
| `pnpm lint` / `pnpm typecheck` | exit 0 / exit 0, `@rosea/identity` included |
| `pnpm test` | see HANDOVER; new: **engine rose 21**, **identity 5**, **storage +27**, **ui rose 7**, schema +1 |
| `pnpm test:e2e` | **12 passed** (+2): water the rose by holding, reload, one day of care; axe on the rose and her numbers |
| `pnpm test:offline` | **1 passed**: the rose is watered with the server gone, the tab closed, and the care is still there |
**The app changed** (CLAUDE.md §5.4): the garden has the rose. The bundle was rebuilt by the e2e and
offline runs; it is **not deployed** (no host, G0.13). Seen at phone width (390 px) in Chromium,
in three states: new, pouring, with her numbers open.
## Bug drills — each put back once
| Put back | Result |
|:--|:--|
| Growth counts acts, not days | CAUGHT: 10 |
| Drift lowers the stage | CAUGHT: 3 (the gap property among them) |
| Too much water still helps | **MISSED at first** (finding 1), then CAUGHT |
| The log replayed in stored order, not time order | **MISSED at first** (finding 1), then CAUGHT |
| Storage lets `amount` ride on a weed | CAUGHT: 2 (one is the agreement with the schema validator) |
| Letting go does not stop the pour | CAUGHT: 2 |
| No greeting after a gap | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Test honesty | Two drills passed. Every too-full test started from a rose that did not need water, so it failed for the other reason; and the shuffled-replay property rarely built a log where order changes anything. | **Fixed**: a full can from 0.39 overshoots and must not help; two waterings stored in reverse must still be two days. Lesson: `testing.md`. |
| 2 | Soul | After a month away she is dry (0), and a half can leaves her at 0.3, still below "enough": the player poured, she still waits. | **Kept, with care**: the can says *Her leaves lift* only when they do, and her line asks for water slowly. A fuller pour brings her back. If players read it as failure, R2's numbers change, not the rule. |
| 3 | Soul | Warmth counts recent days, a streak by another name. | Shown only on request, *resting* at none, never *0 of 7*, and it changes nothing. Watch it in the Phase 1 gate. |
| 4 | Soul | Drift could read as blame. | She is turned a little away and *waiting*; her first words are *"There you are."*; nothing says *forgot* or *missed* (`lint:copy` passes, copy read by hand). |
| 5 | Correctness | `amount` was added to a contract (§6.2). | R1. Required for water, refused elsewhere; Ajv, the generated type and storage's own check agree on 20 variants. The root `if`/`then`/`else` keeps `CareEvent` a strict interface (an `allOf` had added `[k: string]: unknown`). |
| 6 | Correctness | Two tabs creating two identities. | `keepIdentity` keeps the first in one transaction and returns it to both; tested with two connections racing. Two tabs **appending care** at once is fine: the log is append-only and the replay sorts by time. |
| 7 | Correctness | A DST day or a zone change. | The day of an act is recorded when it happens and never recomputed. Wind uses the local clock in the rose's zone. A player who changes their sunset town to another zone shifts later days only. |
| 8 | Privacy | A keypair now exists. | Made on the device; the private key is non-extractable (tested); nothing signs or sends anything. The public key appears only in the local log. |
| 9 | Privacy | The care log is a diary of when someone was in the app. | It never leaves the device; no feature reads it but the replay. Phase 3 must decide what a friend may see, against CLAUDE.md §6.3. |
| 10 | Scope | IndexedDB eviction can take the rose (CLAUDE.md §8, *the cruellest bug*). | **Not solved here**: G0.11 (`persist()`, export-my-rose) is now the most urgent open gap. |
| 11 | Design | The water meter is the browser's default green; *"The garden is being prepared."* is now a little stale. | Cosmetic, left for the garden's real art. |
| 12 | Accessibility | Holding is hard for some hands. | Space and Enter pour too (tested); the leaves lifting is announced (`role=status`); a short pour can be topped up. axe passes. Not tested with a real screen reader. |
## What was not verified
- A real phone, touch, Safari, Firefox, a screen reader.
- The tuning (R2, R4, R5, R6): no person has played it for a week. These are the author's to set.
- Wind and petals in the browser: their days depend on the random key, so e2e cannot predict them;
unit tests cover them with fixed keys.
+38
View File
@@ -0,0 +1,38 @@
# Review — `feature/sunrise`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/sunrise.md`](../features/sunrise.md).
Reviewed 2026-11-17 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New: engine +6 (one property, 300 runs), ui +2
(plus one rewritten), e2e +1 (05:00 in Brno).
**The app changed** (CLAUDE.md §5.4): the line under the garden names the sunrise from sunset until
it comes. Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
## Bug drills
| Put back | Result |
|:--|:--|
| The sunrise is never named | CAUGHT |
| A sunrise already past is named | CAUGHT: 3 |
| The sunrise is looked up on today instead of the next invitation's day | CAUGHT: 3 |
| Tomorrow's sunrise is called this morning's | CAUGHT |
| The in-game sunset names the sunrise | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Correctness | Reykjavík at midsummer: just after midnight the evening's sunset is still ahead; a naive "before sunrise, name the sunrise" rule would name a sunrise there. | The sunrise is taken from the next invitation's own day (R2); tested, and drilled. |
| 2 | Correctness | *Tomorrow* for a sunrise. | Compares the sunrise's local day with today's, the one module computing days; drilled. |
| 3 | Design | The in-game sunset reused the line; late in the evening it would have named the sunrise. | `of="sunset"` keeps its words on the sunset (R4); tested at 22:00, drilled. |
| 4 | Soul | Someone awake at night sees a sunrise time. Could that pull them to the screen? | It is the same line, only naming the next light; no invitation, notice or count. Looked for guilt: nothing ever says a sunrise was missed. |
| 5 | Polar | Polar day and night have no sunrise. | Unchanged lines (R5); tested. Near the polar edges the sun module's clamping (sun.md D5) applies to the sunrise too: accuracy there is worse, as before. |
| 6 | Process | On 2026-11-17 `node_modules` was missing again (the second time in ten days, cause unknown) and the machine sat at 100 % CPU (other sessions and a virtual machine), so the guard refused the full runs for a while. | Reinstalled from the lockfile; the full runs waited for the guard rather than overriding it (§5.7). |
| — | Privacy, reachability, offline | Computed on the device from the chosen town; nothing new is stored or sent. | — |
## What was not verified
- A real phone at dawn; Safari's time formatting.
+56
View File
@@ -0,0 +1,56 @@
# Review — `feature/sunset-place`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/sunset-place.md`](../features/sunset-place.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates — counts, not exit codes
| Gate | Result |
|:--|:--|
| `pnpm lint` | exit 0 (after finding 6) |
| `pnpm typecheck` | exit 0, `@rosea/storage` included; `svelte-check` 0 errors, 0 warnings |
| `pnpm test` | **299 passed**: schema 15, **storage 18 (new)**, content 71 (+24), art-prep 56, engine 113 (+11), ui 26 (+10) |
| `pnpm test:e2e` | **10 passed** (+3), against the built app |
| `pnpm test:offline` | **1 passed**, now choosing a town online and changing it offline |
| `pnpm lint:copy` | 15 files, 0 problems |
| `pnpm validate:library` | 13 of 13 fixtures rejected |
**The app changed** (CLAUDE.md §5.4): the garden now asks where the sunset is and shows it. The
bundle was rebuilt by the e2e and offline runs. It is **not deployed**: there is no host yet (G0.13).
**Stable.** After finding 2, the offline suite passed 3 runs of 3 and e2e 2 of 2 in a row.
## Bug drills — each put back once
| Put back | Result |
|:--|:--|
| Storage writes the caller's object, not a plain copy | CAUGHT: the Proxy test |
| The zone guess reads inherited keys (`constructor`) | CAUGHT |
| Search without accent folding | CAUGHT, by the normalise test only: *plzen* still found Plzeň through Natural Earth's ASCII name, a second path |
| `nextInvitation` skips yesterday | CAUGHT: 2 (Reykjavík after midnight, the property) |
| "Tomorrow" said on the same day | CAUGHT: 2 |
| A failed save goes unmentioned | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Correctness | **Saving never worked in a browser.** The UI's towns lived in Svelte 5 `$state`, which wraps them in a Proxy; IndexedDB cannot clone a Proxy and threw `DataCloneError`. Every unit test passed, because the fake `save` only pushed into an array. Found by e2e: after a reload the garden asked again. | **Fixed twice**: storage writes a plain copy built by its own shape check (and refuses a malformed one), and the results list is `$state.raw`. A storage test saves a Proxy. Lessons: `code.md`, `testing.md`. |
| 2 | Test honesty | The tests reloaded or closed the tab milliseconds after the click, racing the IndexedDB commit; the offline suite passed and failed on alternate runs. | **Fixed**: `e2e/stored.ts` waits until the town is in IndexedDB before a reload or close. |
| 3 | Correctness | **Natural Earth's time zones are wrong where it matters**: Prague *America/Chicago*, Cardiff *Australia/Sydney*, Anchorage *America/Juneau*, Sydney none, and 1,183 towns none. A nearest-zone fallback then made its own errors: southern Ukraine on Moscow time (Simferopol), Gansu on Xinjiang time. | **Fixed (P2)**: identical-clock check, longitude fit across the date line, neighbour vote, nearest zone location last. The cases are pinned by name in `places.test.ts`, and every town's clock is checked against its longitude. |
| 4 | Correctness | Browsers report CLDR zone names (`Asia/Calcutta`, `Europe/Kiev`), not always the tz database's. A guess table keyed only by the database's names would guess nothing in Kolkata. | **Fixed**: the guesses are also keyed by the name Intl resolves to; a test checks every zone Intl knows. |
| 5 | Correctness | Tonga and Samoa (UTC+13 at 175° W) were dropped by a longitude check that did not wrap. | **Fixed**; Apia is pinned. |
| 6 | Process | The shell turned ` ` in a heredoc into the character itself; lint caught it (`no-irregular-whitespace`). | **Fixed** with a plain `\s+`. |
| 7 | Privacy | The town is where the player lives, near enough. | It is written only to this device's IndexedDB. The e2e test asserts that searching and choosing request nothing from another origin, and that the town list came from this origin. No GPS, no IP, no lookup. |
| 8 | Privacy | The build downloaded datasets. | By hand, with the author's approval, into the session's scratch folder; only the derived JSON is committed. Public domain both. |
| 9 | Soul | A question on the first screen can feel like a demand, and a small town not found like a judgment. | One tap skips it and still gives a sunset; an empty search says *"A larger one nearby will do."* No copy mentions a missed sunset. |
| 10 | Soul | A guess shown as fact could send someone out at the wrong time. | The guessed line says it is a guess, and *Change town* is always under it. |
| 11 | Correctness | Not verified: a town Natural Earth filed under a wrong zone **of its own country with the same clock rules** (Dunhuang, Gansu, voted onto Xinjiang time by its neighbours). | **Open, stated.** The longitude check cannot see it. Rare, and the player can choose a neighbouring town. |
| 12 | Scope | `navigator.storage.persist()` is not called; a drifted-away player on iOS can lose the town (CLAUDE.md §8). | **Deferred to G0.11** with export-my-rose (P8). Losing the town only means being asked again. |
## What was not verified
- A real phone, a real install, Safari or Firefox: only Chromium under Playwright.
- A private window that refuses IndexedDB in a real browser: covered by unit tests with a rejecting store.
- Two tabs choosing different towns at once: last write wins, and the other tab shows its own until reload.
- Czech town names (*Vídeň*): Natural Earth has none.
+149
View File
@@ -0,0 +1,149 @@
# Review — `feature/tauri-platforms`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/tauri-platforms.md`](../features/tauri-platforms.md).
Reviewed 2026-11-17 on Windows 10 Pro (19045), Node 22.23.4, Rust 1.99.0 (MSVC), JDK 17.0.20,
Android SDK with NDK 27.1, Tauri CLI 2.12.5, tauri 2.12.6, WebView2 157.0.4341.46. The Android device
is a WAVE 10C on Android 16 (API 36) with Android System WebView 140.0.7339.207, over USB. There is no
PR: the only remote is Gitea.
## What the author asked, and what exists now
*"I need also android apk version, desktop version, ios version and pwa version. Put that to claude.md
based on the tauri2 framework."*
| Version | State |
|:--|:--|
| PWA | Unchanged; the e2e and offline suites pass (counts below). |
| Windows desktop | **Built and run.** `pnpm tauri:build` → `rosea-shell.exe` and `Rosea Domi_0.1.0_x64-setup.exe` (NSIS, 1.31 MiB), 5 min 49 s from cold. The check passed: the garden opens, she is watered, the app is closed and opened again, she is still watered. |
| Android | **Built, installed and run on the tablet.** `pnpm tauri:android` → `app-universal-debug.apk` (arm64 only, debug, ~122 MB with debug symbols), verified with `aapt2`; installed with `adb install -r`; the check passed: opens, watered, `am force-stop`, opened again, still watered. Offline by construction: the app holds no `INTERNET` permission. |
| iOS | **Not possible here.** `pnpm tauri:ios` refuses on Windows with the reason (seen). What it needs is in the analysis, G-T1. |
| macOS, Linux desktop | Not built (G-T2). |
Downloads: the author approved (2026-11-17) the Tauri CLI from npm, crates from crates.io, Gradle
artefacts from Google Maven and Maven Central, all expected to come from this machine's caches.
pnpm reported **2 packages downloaded** (the CLI and its Windows binary); cargo and Gradle built
without visible fetches. Nothing was installed system-wide. On the tablet: only Rosea's debug APK
(Playwright's Android support reached the WebView over adb and installed nothing).
## Gates
Filled from the run on the branch head:
Run on the branch after `main` (the sunrise, Coyhaique) was merged into it, 2026-11-17:
| Gate | Result |
|:--|:--|
| `pnpm lint`, `pnpm typecheck` | 0 problems (svelte-check 0 errors) |
| `pnpm lint:copy` | 21 files, 0 problems |
| `pnpm validate:library` | 0 entries; 78 candidates; 13 of 13 fixtures rejected |
| `pnpm test` (guard 74 % → started; `turbo run test --continue`) | **529 passed**: cpu-guard 13, identity 5, schema 19, content 88, storage 65, art-prep 61, **tauri 40**, engine 174, ui 64 |
| `pnpm test:e2e` (guard 59 %) | 22 passed |
| `pnpm test:offline` (guard 73 %) | 1 passed |
| `pnpm tauri:build` (merged tree) | built; NSIS 1.31 MiB; the desktop check **passed** again |
| `pnpm tauri:android` (merged tree) | built and `aapt2`-verified. **Not re-run on the tablet:** at that moment `adb` hung on the WAVE 10C (another session had it over Wi-Fi adb, an emulator attached too), and this session left it alone. The on-device passes (3 of 5 runs, below) are of the build before the merge, whose shell and privacy were identical; the merge changed the game (the sunrise), not the shell. |
The first gate run, before the merge, failed one content test (`America/Coyhaique`, a zone the
upgraded Node knows); `main` had fixed it meanwhile (`fix/coyhaique`), which is why `main` was
merged into the branch before the final run.
**The app changed** (CLAUDE.md §5.4) only for the shell: the PWA's `App.svelte` now reads one
constant that is `'web'` in its build, so the PWA behaves as before. Rebuilt by the e2e and offline
runs; **not deployed** (G0.13). The APK and the installer are on this machine only, not committed.
## Bug drills
Each bug put back by script, the named test run, the file restored. One drill spot-checked to fail
on the right assertion (the worker left on → *has no service worker and no web manifest*).
| Put back | Result |
|:--|:--|
| Tauri's CSP drifts from `csp.ts` (`'unsafe-inline'` added) | CAUGHT |
| `useHttpsScheme` flipped to `false` (origin moves, rose left behind) | CAUGHT |
| Identifier changed | CAUGHT |
| A WebView2 privacy flag dropped | CAUGHT |
| The Android build no longer runs the privacy patch | CAUGHT |
| A plugin crate added to the shell | CAUGHT |
| The service worker left on in the shell build | CAUGHT |
| The `<meta>` CSP left in the shell build | CAUGHT |
| The shell build under `/Rosea/` | CAUGHT |
| The patch forgets to remove `INTERNET` | CAUGHT |
| The patch forgets `allowBackup` | CAUGHT |
| A rule file stops excluding the database from device transfer | CAUGHT |
| The APK check lets any app's receiver-guard permission through | CAUGHT |
| The APK check reads a neighbour's meta-data value | CAUGHT |
| Tauri's logo left as the launcher icon | CAUGHT by `android.ts check` (exit 1, then 0 after the copy); not a unit test |
**Not drilled, and no test would catch it:** `App.svelte` not counting the app as installed (D9).
Seen only through the check's report (`persist()` is asked; on iOS, the install hint, untestable here).
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | **Soul** | Inside the apps, *Keep her safe* says *This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure.*, offers *Ask the browser to keep her* (which always answers no: `persist()` is `false` in both webviews), and on Android *Save her to a file* **does nothing** (measured). A player is told she may be lost, in the wrong words, and the one remedy fails silently. That is a worry the game made, and a broken promise. | **Deferred, as a release blocker** (G-T4): it needs app words in `packages/ui` copy and a working save, which is the first Tauri plugin and its own feature doc and Soul review. Today the APK and installer exist on this machine only, for the author's own play; CLAUDE.md §8 and the analysis say no app goes to a player before G-T4 closes. Offered as the next session. |
| 2 | Correctness | The first APK carried **Tauri's logo**: `icons.ts` skipped the copy because `tauri android init` had written its own icon later than ours. | Fixed: the Android icons are copied into `gen/android` on every build, and `android.ts check` compares the bytes; the rebuilt APK's `mipmap-mdpi` icon hashes to ours. |
| 3 | Test honesty | The first APK check read a meta-data value from a 300-character window after its name, which could read the next element's value and pass a wrong switch. | Fixed: it reads the value attribute on the line after the name; a test flips one switch on real `aapt2` output and expects its name; drilled. |
| 4 | Test honesty | The first APK check let **any** `…DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` through, another app's included. | Fixed: only `<this package>.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`; drilled. |
| 5 | Correctness | The first shell-build test asserted the string `"tauri"` in the bundle; the minifier folds `__ROSEA_SHELL__ === 'tauri'` away, so the assertion tested the minifier. | Removed; what the test keeps is that the constant never reaches the webview (it would throw). |
| 6 | Correctness | The tablet's USB link dropped at least twice in an hour (`device offline`, transport ids 1 → 4 → 5), once mid-check. | The check waits for the device and retries a dropped `adb` command, and finds the device again for each visit. A failure for any other reason still fails at once. |
| 7 | Test honesty | One tablet run timed out clicking *Her numbers* while the garden animated (Playwright never saw the button stable). | The check activates it by keyboard (focus, Enter); the run after the fix passed. Recorded, not hidden: of 5 tablet runs, 3 passed, 1 failed this way, 1 on the USB drop. |
| 8 | Privacy | WebView2's environment variables (used by the desktop check to open a debugging port and a temporary data folder) **replace** the app's `additionalBrowserArgs` for that run. | Said in the check's header: the desktop check proves the garden, not WebView2's silence (G-T6). |
| 9 | Correctness | Tauri creates `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\` at start even when WebView2's data is elsewhere. | The check's run left that folder empty; it was removed after each run. The player's real data lives there (`EBWebView\`), as §4 says. |
| 10 | Privacy | The Windows installer's default WebView2 mode downloads the WebView2 bootstrapper from Microsoft if WebView2 is missing. | Noted in the analysis (§3); Windows 10 and 11 ship WebView2. Not changed. |
| 11 | Scope | No Android dev command (`tauri android dev`): it would need `INTERNET` back and `adb reverse` to stay on 127.0.0.1. | Deferred (D12); not needed to test what exists. |
| 12 | Design | The window is 480 × 800 on the desktop; the garden was designed for a phone. | Kept: portrait like the PWA's manifest. Whether the desktop app should be wider is the author's call after playing it. |
## Correctness
- **Second run**: `android.ts apply` is idempotent (test); `icons.ts` copies every time; a second
`pnpm tauri:android` rebuilt in seconds and re-verified.
- **Clock and DST**: nothing here reads time; the game's own handling is unchanged.
- **Partial write, app closed mid-action**: the app is closed with `kill` (desktop) and
`am force-stop` (Android) right after the care was **committed** (the check waits for the log);
a force-stop *during* the write was not tried. IndexedDB's transactions are the same as in the PWA.
- **Two tabs**: an app has one window; two instances of the desktop app share one WebView2 folder and
would talk through `BroadcastChannel` like tabs. Not tried.
- **Origin is forever**: identifier and `useHttpsScheme` are pinned by tests and drills.
## Soul
Finding 1 is the one: a worry and a broken remedy, in the apps only. Nothing else in this change adds
a word, a count, a badge or a reminder. The apps do not notify. The window has no title-bar status.
## Privacy — every path a byte could leave
| Path | Android | Windows |
|:--|:--|:--|
| The game's own requests | none (check: 0 outside the origin) | none (check: 0 outside the origin) |
| The webview's own traffic | impossible: no `INTERNET` (dumpsys, aapt2) | switched off by flags; **not measured** (G-T6) |
| Cloud backup / device transfer | off (`allowBackup=false`, every domain excluded; dumpsys flags) | n/a (WebView2 data is not roamed) |
| Plugins, IPC | none; no capabilities | none; no capabilities |
| Installer | n/a | may fetch the WebView2 bootstrapper (finding 10) |
| Crash reporting, analytics | none in `Cargo.toml` (test) or the game | same |
| What the webview keeps on the device | `app_webview/` holds the IndexedDB, an **empty** Local Storage database Chromium creates (0-byte log: Rosea writes none), and `AwOriginVisitLoggerPrefs.xml`: hashed visit counters for WebView metrics, which are opted out and cannot leave without `INTERNET`; no backup takes them | `EBWebView\` beside the app; not inspected |
## Reachability
Nothing new: no field reaches anyone, no network.
## Offline
Android is offline by construction and was tested so. The desktop check ran with the machine online
(WebView2's own flags replaced, finding 8); the game made no request outside its origin.
## Test honesty
- 14 of 14 drills caught; one spot-checked for the right assertion.
- The device checks are scripts run by hand, not in `pnpm test`: they need the built app and the
tablet. Their results above are from this machine on 2026-11-17.
- The APK fixtures are real `aapt2` output of the APK built here, saved with the tests.
## What was NOT verified
- iOS, macOS, Linux (G-T1, G-T2). WKWebView's storage location and eviction.
- WebView2's network silence for Rosea (G-T6).
- Bringing a rose back from a file in either app (G-T5: the Android picker opens; nothing was picked).
- A force-stop during a write. Two desktop instances at once.
- The NSIS installer itself was built, not run: the check ran the `.exe` from `target/release`.
- A release (signed) APK; an AAB; any store (G-T3).
- Android versions other than 16, phones (only the tablet), other WebView versions.
+43
View File
@@ -0,0 +1,43 @@
# Review — `feature/thorns`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/thorns.md`](../features/thorns.md).
Reviewed 2026-11-02 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## Gates
Counts are on the merge; HANDOVER repeats them. New: engine +7 (2 properties), ui +4, e2e +1
(touch, rush, axe with the touch focused).
**The app changed** (CLAUDE.md §5.4): a *Touch her* button over her picture. Rebuilt by the e2e and
offline runs; **not deployed** (G0.13). Seen in the built app at phone width: a touch answered
*That tickles.*, three taps 400 ms apart gave *Gently. I have thorns.*, and the keyboard focus ring
is a rounded frame round her picture.
## Bug drills
| Put back | Result |
|:--|:--|
| A tremor counts as fussing | CAUGHT |
| A rush never brings the thorns | CAUGHT: 3 |
| She never rests | CAUGHT |
| Every touch makes her blush | CAUGHT: 2 |
| A touch is written as care | CAUGHT: 2 |
| A held key is a rush | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Soul | *Gently* can be read as a reproach by someone already fragile. | Three separate, deliberate taps in two seconds; said once; she rests and then it is gone; nothing remembers it. Her words are about herself. Accepted for the author's play test; the line is in `copy/en.ts`. |
| 2 | Accessibility / soul | A tremor or a bouncing finger could be told *gently*. | Taps within 250 ms are one touch (T2), and a held key is one; both drilled. Not tried with a real tremor or switch access. |
| 3 | Design | The author's option said *a blush once a day*, and also *nothing is recorded*. Those cannot both hold. | Nothing is recorded; the blush is once per visit (T4). Said plainly in the analysis. |
| 4 | Design | The blush shows on her face only in full bloom, as every mood does; before that only her words answer. | Accepted: the stand-ins draw moods for the full bloom only (STYLE.md). |
| 5 | Correctness | The clock moved back while she rests. | She never rests longer than `restMs` (tested). |
| 6 | Correctness | Two tabs: each has its own touches. | Nothing is shared or stored; harmless. |
| 7 | Test honesty | A frozen e2e clock (`setFixedTime`) would make three clicks one touch, and the rush test would fail for the wrong reason. | The e2e drives the clock with `clock.install` and `runFor`. |
| 8 | Dependence | Touching as a fidget. | It gives nothing after the first blush; no number grows. |
| — | Privacy, reachability, offline | Looked; nothing is stored, sent or shared. | — |
## What was not verified
- A screen reader announcing the bubble change; switch access; a real phone's touch timing.
+52
View File
@@ -0,0 +1,52 @@
# Review — `fix/coyhaique`
Adversarial self-review (CLAUDE.md §5.3) of a data fix to the town list
([`features/sunset-place.md`](../features/sunset-place.md)). 2026-11-17, Node 22.23.4 (tz 2026e).
## What happened
Node on this machine was upgraded from 22.11 to 22.23.4 (the upgrade G0.20 asked for). A content test
then failed: *every zone Intl knows has a guess*: the new Node knows **America/Coyhaique** (created
in 2025 for Chile's Aysén region), and the town list, built under the old Node, had no guess for it.
Rebuilding (`scripts/build-places.ts`, Natural Earth 10m populated places and tzdb 2026f, downloaded
again with Mark's permission) did not fix it, and a town-by-town comparison found more:
| Town | Before | Why |
|:--|:--|:--|
| **Santiago, Valparaíso** | America/Punta_Arenas | Natural Earth files them under **America/Sao_Paulo**. Its fixed UTC−3 matched Chile's fixed-clock southern zone, so the "same clock as one of the country's zones" rule moved Chile's capital onto a clock without daylight saving: its sunset an hour off for half the year. Under the new Node the same rule picked Coyhaique instead. |
| **Coyhaique, Puerto Aisén, Cochrane, Villa O'Higgins** | America/Santiago | Natural Earth predates Aysén's 2025 split. |
| **Punta Arenas, Puerto Natales, Puerto Williams, Río Verde** | America/Santiago | Natural Earth predates Magallanes' 2016 split: wrong since the first build. |
| Yellowknife, Fort Simpson (Canada) | Cambridge_Bay, Dawson_Creek | The rebuild under the new time zone data files them under Edmonton (Mountain time with daylight saving, as both keep). |
## The fix
| # | Change | Why |
|:--|:--|:--|
| C1 | **Another country's own zone is never trusted** for a town, however alike its clock. The town then takes its neighbours' zone. | The clock rule exists to accept old *names* of a country's own zones (Europe/Kiev, Juneau for Anchorage), never a foreign zone. |
| C2 | **Region bands** for southern mainland Chile: 43.7° S – 49° S → America/Coyhaique; south of 49° S → America/Punta_Arenas. Source: zone1970.tab's comments and the regions' borders. | Natural Earth's region names are unreliable (*Ais*, *Aisén…*, Villa O'Higgins under Argentina's *Santa Cruz*); latitude along the real borders is not. Mainland only, so Easter Island keeps Pacific/Easter. |
Twelve towns changed, each listed above; every other town kept its zone. Every zone the new Node
knows has a guess again.
## Bug drills
| Put back | Result |
|:--|:--|
| Another country's zone trusted again | CAUGHT: 2 (Santiago, Valparaíso) |
| No region bands | CAUGHT: 5 |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Correctness | A player who chose Santiago or Valparaíso before this fix has the wrong zone **saved in their profile** (`sunsetPlace` keeps the town with its zone). | Nobody has: the app is not deployed (G0.13). Recorded so a later data fix knows to ask whether a saved town needs refreshing. |
| 2 | Correctness | Band edges are approximate (the Aysén–Magallanes border is not a straight line of latitude). | Only the towns in the list matter, and each is checked against its region; none lies within 0.5° of an edge except Villa O'Higgins (48.47° S), which is in Aysén, as the band says. |
| 3 | Testing | The original data had this bug since its first build; no test pinned a Chilean town. | Nine towns pinned now (`places.test.ts`); drilled. |
| 4 | Process | The bug surfaced only because a runtime upgrade changed what "every zone" means. | Lesson in `technical.md`: data built against a runtime's time zone data is checked again when the runtime changes. |
| — | Soul, privacy, reachability, offline | Unchanged: the list is bundled and searched on the device. | — |
## Gates
Counts in HANDOVER. The town list is bundled lazily (the `places` chunk): **the app changed** for a
player who searches Chile; rebuilt by the e2e and offline runs; not deployed.
+47
View File
@@ -0,0 +1,47 @@
# Review — `fix/cpu-guard`
Adversarial self-review (CLAUDE.md §5.3). Reviewed 2026-11-02 on Node 22.11.0, Windows 10.
There is no PR: the only remote is Gitea.
## Why and what
CLAUDE.md §5.7: *do not start a full run above ~80 % CPU.* On 2026-11-02 that was broken three times
(lessons/process.md), twice right after reading the number. Now `pnpm test`, `test:e2e` and
`test:offline` first run `pnpm guard:cpu` (`tools/cpu-guard`):
```mermaid
flowchart LR
run["pnpm test / test:e2e / test:offline"] --> guard["guard:cpu<br/>sample 2 s with os.cpus()"]
guard -->|"≤ 80 %"| go["the run starts"]
guard -->|"> 80 %"| wait["wait 10 s, sample again"] --> guard
wait -->|"after 180 s"| stop["exit 1: not starting"]
```
Node's `os.cpus()`, not a shell command, so it works the same on Windows, Linux and macOS. A
dedicated machine sets `ROSEA_CPU_MAX` (100 never refuses) and `ROSEA_CPU_WAIT_SECONDS`; a value
that is not a whole number in range is refused, never quietly the default.
## Checks
| Check | Result |
|:--|:--|
| Unit tests, `tools/cpu-guard` | **13 passed**: the busy share between two readings (not since boot), system time as busy, no NaN on equal readings, defaults, overrides, five bad settings, start / wait / refuse |
| On this machine, busy with another project's tests | waited 51 s at 93–100 %, then started at 61 % |
| Forced refusal (`ROSEA_CPU_MAX=1`, no wait) | exit 1 with the reason |
| `pnpm test` behind a refusal | stopped before Turbo ran a single test |
| The guard's reading beside Windows' own counter, sampled together | 64 / 75, 93 / 96, 96 / 98 % |
## Findings
| # | Finding | Resolution |
|:--|:--|:--|
| 1 | The guard measures before the run, not during it: a machine that becomes busy mid-run is not seen. | Accepted: §5.7 is about starting. Stopping a run halfway would leave browsers and servers half-closed, the very mess §5.7 exists to avoid. |
| 2 | `ROSEA_CPU_MAX=100` is a way round the rule. | Documented as for dedicated machines only, in CLAUDE.md §5.7 and the lesson. An override nobody can use would push people to edit the script instead. |
| 3 | The guard adds 2 s to every full run on a quiet machine. | Accepted. |
| 4 | Filtered runs (`pnpm --filter X test`) and drills are not guarded. | By design: they are not full runs. |
| 5 | Its own 2 s sample could read its own start-up as load. | It samples after Node has started. Later, on a quiet machine, it read 2.4–4.1 % beside Windows' 1.5–3.3 %; busy, 2–11 points lower. Close enough for an 80 % line. |
## Not verified
- macOS and Linux (only Windows 10 here).
- A CI runner: there is none yet (G0.22).
+53
View File
@@ -0,0 +1,53 @@
# Review — `fix/two-tabs`
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/two-tabs.md`](../features/two-tabs.md).
Reviewed 2026-11-07 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
## The measurement
CLAUDE.md §8 predicted *derived state drifts; use a BroadcastChannel lock*. Two e2e tests were
written first and run against the built app: both **failed** (a tab already open saw neither care
nor a town chosen in another tab). Reading the code explained why, and showed what the
prediction got wrong: there is no `derived` store and the log is append-only, so nothing stored
can drift and no lock is needed. What drifted was each tab's view, which can make the player water
her twice. Both tests pass after the fix.
## Gates
Counts are on the merge; HANDOVER repeats them. New: storage +7, ui +3, e2e +2 (the measurement).
**The app changed** (CLAUDE.md §5.4), invisibly in one tab: another open tab now follows it.
Rebuilt by the e2e and offline runs; **not deployed** (G0.13).
## Bug drills
| Put back | Result |
|:--|:--|
| Care is announced before it is written | CAUGHT |
| A petal is never announced | CAUGHT |
| A town is never announced | CAUGHT |
| Any message counts as a change | CAUGHT |
| The rose replaces her view with a stale read | CAUGHT |
| The rose does not listen | CAUGHT |
| The garden ignores a town from another tab | CAUGHT |
## Findings
| # | Area | Finding | Resolution |
|:--|:--|:--|:--|
| 1 | Correctness | A tab's own care can still be on its way to IndexedDB when another tab's news makes it read; a plain replace would drop that care from view, and nothing would bring it back. | The read is added to what the tab shows, never replaces it (the log only grows); drilled. |
| 2 | Correctness | Two reads overlapping, finishing out of order. | Same answer: each only adds, so order does not matter. |
| 3 | Correctness | Announcing before the commit would make the other tab read too early. | Announced after `add` / after the transaction resolves; drilled. |
| 4 | Correctness | A tab mid-pour when the other tab's care arrives: the can now measures against the new level. | Accepted: that is the true level. |
| 5 | Design | A town arriving while this tab is searching for one: the search closes and the new town shows. | Accepted: the player's choice in the other tab is the newer one. A tab in the middle of *Change town* keeps its open search (only the shown town updates). |
| 6 | Privacy | A `BroadcastChannel` message. | Same origin, same browser profile only; one word (`log`, `place`), no data. Nothing leaves the device. |
| 7 | Compatibility | Browsers without `BroadcastChannel` (Safari before 15.4). | Each tab keeps its own view, as before; no data is affected; tested with it removed. |
| 8 | Process | The measurement commit would have been red on its own. | The branch was regrouped before pushing so every commit is green: the tests land with the fix. |
| 9 | Process | On 2026-11-07 the root `node_modules` was missing (cause unknown; the code and history were intact). | Restored with `pnpm install --frozen-lockfile`, which also reinstalled the hooks. |
| — | Soul, reachability, offline | Looked; the fix removes a way the game could blame her care for its own mistake. Nothing new is shown or sent; works offline. | — |
## What was not verified
- Safari and Firefox (BroadcastChannel across an installed app and a tab); a phone.
- The KeepSafe path across tabs end to end (bringing her back in one tab, seen in the other):
covered by the storage test that a brought-back rose announces `log`, not by an e2e.
+6
View File
@@ -31,3 +31,9 @@ Thumbs.db
# Generated from JSON Schema by packages/schema build
packages/schema/src/generated/
# The Tauri shell (apps/rosea-tauri): the game's copy for it, Tauri's generated mobile
# projects and the icons made from apps/rosea/public/icon.svg at build time
dist-tauri/
apps/rosea-tauri/src-tauri/gen/
apps/rosea-tauri/src-tauri/icons/
+123 -24
View File
@@ -20,14 +20,19 @@ For the engineering picture read [`.agents/GAP_ANALYSIS.md`](.agents/GAP_ANALYSI
> always **Rosea Domi** in public, and *Domi* never appears alone. In source the name lives in exactly
> three places — `packages/schema/src/constants.ts`, `apps/rosea/index.html` and the web manifest —
> plus the `@rosea/*` package scope and the IndexedDB database name, which change together with them.
> Renaming must stay a one-commit operation until the name is confirmed.
> The app shell adds a fourth: `apps/rosea-tauri/src-tauri/tauri.conf.json` (`productName`, window
> title), which the shell's test holds equal to the constants (§2, *Four versions*).
> Renaming must stay a one-commit operation until the name is confirmed. The bundle identifier is
> the exception: once an APK or installer reaches a player it cannot change without making a
> second, separate app, so it is chosen once, before the first release (§8).
---
## 1. What this project is
**Rosea Domi** is a small web game, installable as a PWA, about a living rose, a fox, and the time we
give to people. It belongs to the Domi ecosystem and is linked from the parent mode of Panda Domi; the
**Rosea Domi** is a small game about a living rose, a fox, and the time we give to people. It ships
as **four versions from one Svelte codebase** — a PWA, an Android app, an iOS app and a desktop app
(§2, *Four versions*). It belongs to the Domi ecosystem and is linked from the parent mode of Panda Domi; the
fox is a quiet nod to Ulfík the red panda (they look alike — an Easter egg, never an explanation).
It is made **for lonely people**, and the word *loneliness* never appears anywhere in the product.
@@ -115,8 +120,8 @@ feed of anything.
## 2. Repository layout
Phase 0 scaffolded `schema`, `engine`, `content`, `ui`, `apps/rosea`, `tools/art-prep` and `art/`.
`storage`, `identity`, `sync` and `services/lucerna` arrive with their first feature, because an
Phase 0 scaffolded `schema`, `engine`, `content`, `ui`, `apps/rosea`, `tools/art-prep` and `art/`;
Phase 1 added `storage` (`profile`, `events`, `keys`) and `identity` (a keypair). `sync` and `services/lucerna` arrive with their first feature, because an
empty package has a test suite that runs nothing ([`phase0-workspace.md`](.agents/features/phase0-workspace.md) D1).
```
@@ -141,7 +146,13 @@ packages/
ui/ # Svelte components + tokens + copy/. No business logic.
apps/
rosea/ # the PWA (Svelte 5 + Vite + workbox) -> @rosea/app
rosea/ # the game (Svelte 5 + Vite + workbox) -> @rosea/app. Built twice:
# dist/ the PWA, under /Rosea/, with its service worker
# 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
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)
scripts/ # icons from apps/rosea/public/icon.svg; the Android privacy patch
services/
lucerna/ # OPTIONAL discovery service (Phase 4), Rust (Axum) + SQLite.
@@ -179,6 +190,7 @@ apps/rosea ──► packages/ui ──► packages/engine ──► packages/sc
└───────► packages/identity ──► packages/schema
services/lucerna ──► packages/schema (trace shape only, via generated JSON Schema)
tools/art-prep ──► art/manifest.json, packages/content, packages/schema (never imported by the app)
apps/rosea-tauri ──► apps/rosea's BUILT output (dist-tauri/) only — no package, no source file
```
- `packages/engine` is pure. Time and randomness are parameters. This is what makes growth, taming and
@@ -186,6 +198,10 @@ tools/art-prep ──► art/manifest.json, packages/content, packages/schema
- `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
or the sunset, the shared sky has stopped being optional and that is a **blocker**.
- `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
`'tauri'`), read in `apps/rosea/src/App.svelte` only, for wiring (no service worker; the app counts
as installed). No package ever reads it.
### Why Svelte, and where Rust earns its place
@@ -194,12 +210,41 @@ Web first is the decision: the game must run from a link, on any phone, with no
- **`services/lucerna`** — a small, long-running, internet-facing service. Rust (Axum) gives memory
safety and a tiny footprint on a home server. Its contract is the JSON Schema in `packages/schema`.
- **A Tauri 2 shell, later (Phase 6)** — same Svelte code, packaged for Android and iOS, matching the
ecosystem's move to Tauri. Its main gift is **local notifications without a server** (see the
notification trap in §8).
- **A Tauri 2 shell, now (the platform track)** — same Svelte code, packaged for Android, iOS and the
desktop, matching the ecosystem's move to Tauri. Its later gift (Phase 6) is **local notifications
without a server** (see the notification trap in §8).
- **Not** a Rust UI framework (Leptos, Dioxus, Yew) and **not** Rust→WASM for the sunset or star
maths: both are small and fast in TypeScript. WASM enters only with a measurement that says it must.
### Four versions, one garden — decided by the author, 2026-11-17
| Version | Made from | Runs in | Where it can be built |
|:--|:--|:--|:--|
| **PWA** | `apps/rosea` → `dist/` | any browser; GitHub Pages under `/Rosea/` | any machine |
| **Android** (APK) | `apps/rosea-tauri` → `pnpm tauri:android` | Android System WebView | Windows, macOS or Linux with the Android SDK, NDK 27, JDK 17 and the Rust Android targets |
| **Desktop** | `apps/rosea-tauri` → `pnpm tauri:build` | WebView2 (Windows), WKWebView (macOS), WebKitGTK (Linux) | each on its own OS: an NSIS installer on Windows; `.app`/`.dmg` on macOS; `.deb`/AppImage on Linux |
| **iOS** | `apps/rosea-tauri` → `pnpm tauri:ios` | WKWebView | **macOS with Xcode only**, and an Apple developer account to put it on a phone |
- **One codebase.** The same Svelte 5 app, the same packages, the same IndexedDB code in all four.
The shell adds a window around the built game and nothing else: no Tauri command, no plugin, no
`@tauri-apps/api` in the game. Each plugin that arrives later (notifications in Phase 6) is reviewed
for network access before it is added, as in Amicitia.
- **Layout: `apps/rosea-tauri/src-tauri/`.** The Tauri 2 CLI looks for `src-tauri/tauri.conf.json`
below the folder it runs in, so this is the layout it expects, one level down. Not Tauri's default
`apps/rosea/src-tauri/`: that would put Rust and the Tauri CLI into the PWA's package. Here the shell
is deletable, and its only input is a built folder — the same seam the e2e suites test
(`tauri-platforms.md` D1).
- **The shell's build of the game** (`vite build --mode tauri`, into `apps/rosea/dist-tauri/`): base `/`,
because Tauri serves the files at the root of its own origin; **no service worker and no web
manifest**, because the files are already on the device and a store or installer brings updates;
the content-security policy delivered by Tauri (`app.security.csp`), the same string as the PWA's
`<meta>` policy, held equal by a test (§8).
- **The non-negotiable properties hold in all four.** Local-first, anonymous, no free text, never
counting people, nothing written outside IndexedDB, no analytics — in any SDK either: the shell
links no analytics, crash-reporting or ads library, and the webviews' own reporting is switched off
where the platform allows it (§8, *the webview phones home*). The Android app asks for **no
`INTERNET` permission** while Rosea has no network feature, so the kernel refuses it any socket.
---
## 3. Commands
@@ -218,17 +263,34 @@ pnpm --filter @rosea/engine test # incl. fast-check property tests and t
tsx scripts/fetch-sun-golden.ts # re-records the sun's published tables (network; by hand, never in a test)
pnpm test:e2e # builds, then Playwright against the BUILT app under /Rosea/
pnpm test:offline # builds, loads once, CLOSES the server, reloads
pnpm validate:library # every hope sentence; fixtures must FAIL
pnpm validate:library # every hope sentence and candidate; fixtures must FAIL
pnpm library:verify <id…> --by <name> # the AUTHOR moves checked candidates into the library; agents never run it
pnpm lint:copy # forbidden words and names (§5.6)
pnpm guard:cpu # waits for, then refuses, a machine above 80 % CPU (§5.7)
pnpm art:board # prompts + stand-ins -> tools/art-prep/dist/board/ (docs/ART.md)
pnpm art:accept <id> <file> # an accepted picture -> art/final/*.webp, sheets cut
tsx scripts/build-places.ts <folder> # rebuilds the town list from downloaded Natural Earth + tzdb (by hand)
# The Tauri 2 shell (apps/rosea-tauri) — each builds the game for the shell first (dist-tauri/):
pnpm tauri:dev # desktop window on the Vite dev server, 127.0.0.1:5173
pnpm tauri:build # desktop release: on Windows an NSIS installer and the .exe
# needs Rust (MSVC), WebView2, VS Build Tools; macOS/Linux on their own OS
pnpm tauri:android # Android debug APK (arm64); needs ANDROID_HOME, NDK 27, JDK 17,
# the four Rust Android targets. Install: adb install -r <apk>
pnpm tauri:ios # macOS + Xcode only — refuses elsewhere with the reason (§8)
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 android # the installed APK on the device over adb; `pm clear`s the TEST app first
# Not yet — they arrive with their first feature:
cargo test --manifest-path services/lucerna/Cargo.toml # Phase 4 onward
```
The build's base path is `/Rosea/` (GitHub Pages' project sub-path); `ROSEA_BASE=/x/` overrides it
for the build and for both Playwright suites together.
for the build and for both Playwright suites together. `pnpm --filter @rosea/app build:shell` builds
the shell's copy instead (`--mode tauri`: base `/`, into `dist-tauri/`); the `tauri:*` commands run it.
`pnpm tauri:android` ends by reading the built APK with `aapt2` and fails if it asks for any
permission or allows backup (`tauri-platforms.md` D6).
> **The `pnpm test` trap, imported from Aeterna.** Exit code 0 says the command succeeded, not that
> tests ran. A filter that matched nothing and a green run look identical. **Quote the counts per
@@ -247,18 +309,35 @@ for the build and for both Playwright suites together.
| Store | Contents | Written by |
|:--|:--|:--|
| `events` | **append-only** log: care given, care received, planet steps, sunsets seen or missed, gestures | `packages/storage`, from the game loop |
| `events` | **append-only** log: care given, care received, petals opened, planet steps, sunsets seen or missed, gestures | `packages/storage`, from the game loop |
| `derived` | rose stage, fox distance, paths, sky light — rebuilt from `events` | `packages/storage`, from values the engine returns |
| `profile` | the rose's name (the only name Rosea knows), chosen city for sunset (skippable; fallback is the device time zone; never GPS), settings, opt-ins | settings screen |
| `keys` | the identity keypair | `packages/identity` |
| `library` | the cached hope library and planets' content, versioned | `packages/content` |
| `library` | the cached hope library and planets' content, versioned — not used yet: the library is bundled at build time (day-sentence.md P5) | `packages/content` |
**`events` is the truth; `derived` is a cache.** Anything in `derived` must be reconstructible by
replaying `events` through the engine. A number that cannot be derived from the log does not belong in
`derived`.
**Nothing else is written anywhere.** No cookies, no `localStorage`, no analytics of any kind, no
third-party origin, no fonts or images from a CDN.
third-party origin, no fonts or images from a CDN. This holds in the shell too: `localStorage` and
`sessionStorage` stay forbidden there, and the Rust side writes no file of its own. (The webview keeps
its own profile beside the database: caches, an empty Local Storage folder Chromium makes, and on
Android hashed visit counters for its metrics, which are switched off and cannot be sent.)
**Where IndexedDB lives in each version** (the webview owns the folder; Rosea writes only its
database there — the webview keeps its own caches beside it):
| Version | Where the `rosea` database is |
|:--|:--|
| PWA | the browser profile, per origin; evictable (§8) |
| Windows | WebView2's user data folder: `%LOCALAPPDATA%\<identifier>\EBWebView\` |
| Android | the app's private data: `/data/data/<identifier>/app_webview/Default/IndexedDB/https_tauri.localhost_0.indexeddb.leveldb` (seen on the tablet) — no Auto Backup, no device transfer (`tauri-platforms.md` D6) |
| macOS / iOS | WKWebView's website data in the app's container (`Library/WebKit/`) *(predicted)* |
| Linux | WebKitGTK's data dir under `~/.local/share/<identifier>/` *(predicted)* |
A rose made in the PWA and the same player's Android app are **two roses** until the player carries
one across with *Keep her safe* (save to a file, bring her back). Nothing syncs them.
**On `services/lucerna`, only when the player has opted in to the shared sky (Phase 4):** an anonymous
trace id, a coarse geocell (~1 km), a day bucket (never a timestamp finer than a day), and the gesture
@@ -311,6 +390,8 @@ Format : [<Package>] <FeatureName>: <one-line description>
Example: [engine] RoseGrowth: Grow from total days of care, never from consecutive days
Remote : GitHub (primary) — branch main; mirrored to gitea.marek-novak.cz, as in Panda Domi
Deploy : GitHub Actions builds apps/rosea and publishes it to GitHub Pages on every merge to main
Apps : the APK and the desktop installer are built by hand on this machine until CI can (G0.22);
never committed. Release signing keys never enter the repository (§5.3's token rule)
```
PRs are opened and merged on GitHub. The Gitea mirror is a backup and must stay in sync — after every
@@ -358,7 +439,10 @@ repository, a review document or command output.
### 5.4 The deployed bundle is the only thing the player sees
The player opens an installed PWA served from a precached shell. Source changes are invisible until
the app is rebuilt, the service worker's bytes change, and the client picks up the new worker. When
the app is rebuilt, the service worker's bytes change, and the client picks up the new worker. In the
Android, iOS and desktop apps the game is inside the package: a change reaches a player only with a
new APK or installer, which must carry a higher version (`apps/rosea/package.json`, read by
`tauri.conf.json`) or Android refuses it as a downgrade. When
reporting a fix, **say whether the bundle was rebuilt and redeployed**. If a change is deliberately
invisible (a refactor, a library update), say so explicitly — a fresh build that looks identical is
otherwise indistinguishable from a stale one. *(Imported from NoAlgoTube and Aeterna, where it
@@ -410,8 +494,14 @@ happened twice.)*
### 5.7 A test run leaves the machine as it found it
Nothing binds to anything but `127.0.0.1`. Every browser a test starts is closed in `finally`. Do not
start a full run above ~80% CPU. *(Imported from Ludus and Aeterna.)*
Nothing binds to anything but `127.0.0.1` — the shell's dev server and a webview's debugging port
included; a phone reaches the dev server through `adb reverse`, never through `--host`. Every browser
a test starts is closed in `finally`, and so is every app a test launches (the desktop `.exe`, the
app on the tablet: `am force-stop`). Do not
start a full run above ~80% CPU. *(Imported from Ludus and Aeterna.)* **Enforced, not trusted:**
`pnpm test`, `test:e2e` and `test:offline` first run `pnpm guard:cpu`, which waits up to three minutes
for the machine to calm and then refuses (`tools/cpu-guard`, lessons/process.md). A dedicated machine
such as CI sets `ROSEA_CPU_MAX` (100 never refuses); never set it to get past a busy desktop.
---
@@ -442,8 +532,8 @@ player can send another player, and the sender picks one.
"trace": "petal:<colour>", "messageId": "ps-23-4" | null, "clientVersion": "0.1.0" }
// act applies to the player's own rose or another player's. (This example once
// listed "wind" | "light"; §1's weeds and fallen petals won — phase0-workspace.md D5.)
// Only "care" is in packages/schema so far; each other kind arrives with the feature doc that uses it.
// other kinds: "sentence-opened", "sunset" (seen), "planet-step", "fox" (pet | brush | feed),
// "care" and "sentence-opened" are in packages/schema so far; each other kind arrives with the
// feature doc that uses it. Other kinds: "sunset" (seen), "planet-step", "fox" (pet | brush | feed),
// "harvest" (berry kind), "thanks", "lantern" (lit — never unlit)
```
@@ -488,7 +578,7 @@ No timestamp finer than a day, no precise location, no free text, no link to the
| Trap | Why it bites |
|:--|:--|
| **A PWA cannot schedule a local notification** *(predicted — verify first)* | The sunset invitation is time-based. A web app generally cannot fire a notification at a set time while closed without a **push server** sending it, and a push server that knows when someone's sunset is knows roughly where they are. On iOS, web push works only for a site added to the home screen. **Decided in Phase 0 (2026-11-01):** in-app sunset only for the web build — no push server — and local notifications through the Tauri shell later (Phase 6). |
| **A PWA cannot schedule a local notification** *(predicted — verify first)* | The sunset invitation is time-based. A web app generally cannot fire a notification at a set time while closed without a **push server** sending it, and a push server that knows when someone's sunset is knows roughly where they are. On iOS, web push works only for a site added to the home screen. **Decided in Phase 0 (2026-11-01):** in-app sunset only for the web build — no push server — and local notifications through the Tauri shell later (Phase 6). The shell exists since 2026-11-17; its notification plugin is still Phase 6. |
| **Polar day and polar night** *(measured 2026-11-01)* | Above the Arctic Circle the sun does not set in summer or rise in winter. "Every day at sunset" has no answer there. Measured: the almanac has no rise or set in Tromsø on 21 June and no events at all on 21 December. `engine/sun` returns `polar-day` or `polar-night` and a gentle moment for each (the lowest light; noon twilight) — `.agents/features/sun.md` D4. |
| **DST and the local day** *(measured 2026-11-01)* | Sunset jumps an hour twice a year under a player who did nothing: Prague's is 18:28 on 28 March and 19:29 on the 29th, while the sun moved one minute. A day boundary computed in UTC records Monday-evening care as Tuesday's. One module computes the day; the sun works in instants. |
| **Comfort becomes wallpaper** | The same words every day stop meaning anything. Comfort words are occasional; the real trace of a real person is constant. Track repetition in tests. |
@@ -501,14 +591,22 @@ No timestamp finer than a day, no precise location, no free text, no link to the
| **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`). |
| **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)* | 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** | A precached shell keeps serving old JS to a player who has "updated". Detect a waiting worker and offer an explicit, calm *refresh* control. |
| **Two tabs, one database** *(predicted)* | Two event streams into one store; derived state drifts. Use a `BroadcastChannel` lock. |
| **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. |
| **Two tabs, one database** *(measured 2026-11-07; answered by `two-tabs.md`)* | Predicted: derived state drifts, use a lock. Measured: nothing stored drifts (the log is append-only, there is no `derived` store yet), so no lock — but each tab's **view** went stale, and a player could water her twice. `packages/storage` announces each committed write on a `BroadcastChannel`; the other tabs read again, keeping what they already show. When a `derived` store arrives, decide the lock again. |
| **GitHub Pages serves under a sub-path** *(predicted)* | A project site lives at `/<repo>/`, not `/`. Vite `base`, the web manifest `start_url` and `scope`, and the service worker scope must all agree, or the installed app opens a 404 or never updates. The offline suite runs against the same base path. |
| **GitHub Pages cannot set response headers** *(predicted)* | No custom CSP or cache headers. The content-security policy goes in a `<meta>` tag; caching is controlled by the service worker and hashed filenames. |
| **Pages hosts files, not services** | `services/lucerna` cannot live on Pages. It runs on Mark's own server (Phase 4), and the app must work fully without it. |
| **`pnpm test` exits 0 having run nothing** | Quote counts per package. |
| **Playwright against the dev server** | It never registers the service worker and has never reproduced a caching bug. |
| **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. |
| **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). |
| **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`. |
| **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. |
---
@@ -522,7 +620,8 @@ No timestamp finer than a day, no precise location, no free text, no link to the
| Change how the rose grows | `packages/engine/src/growth/` |
| Change how the fox comes closer | `packages/engine/src/taming/` |
| Change the sunset or sunrise | `packages/engine/src/sun/` — read the polar and DST traps first |
| Add or edit hope sentences | `content/library/` — then `pnpm validate:library` |
| Add or edit hope sentences | Agents propose in `content/candidates/`; the author verifies with `pnpm library:verify`. Then `pnpm validate:library` |
| Change what friends can send each other | `packages/schema` §6.1 — and re-read §5.6 rule 1 |
| Change the shared sky | `services/lucerna/` — and re-read §4 and §5.6 rules 6–7 |
| Build the Android, iOS or desktop app | `apps/rosea-tauri/`, then `.agents/features/tauri-platforms.md` and the shell traps in §8 |
| Understand a past decision | `.agents/features/*.md`, `git log`, `.agents/reviews/*.md` |
+120 -9
View File
@@ -12,9 +12,9 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
Gitea hashes match. Analysis: [`.agents/features/phase0-workspace.md`](.agents/features/phase0-workspace.md).
Review, with counts and the mutation results:
[`.agents/reviews/feature-phase0-workspace.md`](.agents/reviews/feature-phase0-workspace.md).
- **Gates:** all pass on this machine. Unit tests: 236 (schema 15, content 47,
art-prep 56, engine 102, ui 16). E2E: 7. Offline: 1. `lint:copy`: 12 files, 0 problems.
`validate:library`: 13 of 13 fixtures rejected.
- **Gates:** all pass on this machine. Unit tests: 489 (cpu-guard 13, identity 5, schema 19,
content 88, storage 65, art-prep 61, engine 174, ui 64). E2E: 22. Offline: 1. `lint:copy`: 21 files, 0 problems.
`validate:library`: 13 of 13 fixtures rejected; 78 candidates pass.
- **Built, not deployed:** there is no host yet.
- **Roadmap and gameplay docs:** `docs/ROADMAP.md` and `docs/GAMEPLAY.md` are on
`docs/roadmap-gameplay`, as the author gave them, together with a read against the
@@ -27,8 +27,12 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
[`.agents/reviews/feature-letter-slot.md`](.agents/reviews/feature-letter-slot.md).
- **The art pipeline and the art board:** merged to `main`. [`docs/ART.md`](docs/ART.md) is the
pipeline. [`art/STYLE.md`](art/STYLE.md) is approved by the author (2026-11-01, S1–S5 kept as drafted). [`art/manifest.json`](art/manifest.json)
lists 53 pictures in phase order: 25 for Phase 1, then the fox, berries and bush (Phase 2), then paths and
lanterns (Phase 3). 63 stand-ins are in `art/placeholders/`. The planets wait for their own feature docs. `tools/art-prep` builds
lists 86 pictures in phase order, everything Phases 1–5 need (34 for Phase 1; the planets are drafts
until their feature docs). 101 stand-ins are in `art/placeholders/`. **Board v2 (2026-11-07):** after
Mark disliked the first `rose-sheet` (watercolour, a smiley on a ball), STYLE.md §1 and every
prompt were rewritten: the look first, the face on her petals, the grid in words, the book's
motifs checked in review instead of named in prompts. Review:
[`.agents/reviews/art-board-v2.md`](.agents/reviews/art-board-v2.md). `tools/art-prep` builds
prompts and the board (`pnpm art:board`) and moves accepted pictures into `art/final/`
(`pnpm art:accept`). The board is published, private:
https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then
@@ -42,6 +46,89 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
The app does not use it yet. Analysis: [`.agents/features/sun.md`](.agents/features/sun.md).
Review: [`.agents/reviews/feature-sun.md`](.agents/reviews/feature-sun.md).
- **Where the sunset is (Phase 1):** merged to `main`. The garden asks *Where do you want your
sunset?*: a search over 7,342 public-domain towns on the device, or *Not now*, which guesses
from the device's time zone. The answer is kept in IndexedDB (the new `@rosea/storage`, store
`profile`), and the garden says when tonight's sunset is. Natural Earth's time zones were wrong
for Prague, Cardiff and Anchorage, among others; `scripts/build-places.ts` cross-checks every one
against the tz database. To rebuild the list, download the two sources again (the script's
header says which) and run it. Analysis: [`.agents/features/sunset-place.md`](.agents/features/sunset-place.md).
Review: [`.agents/reviews/feature-sunset-place.md`](.agents/reviews/feature-sunset-place.md).
- **The rose (Phase 1):** merged to `main`. She stands in the garden with her face and says what
she needs. Water by holding the button until her leaves lift (Space or Enter too); shade her in
the wind, pull the weeds, gather fallen petals, each shown only when needed. She grows from days
on which care helped, drifts and waits when left, never loses her stage; her numbers are one tap
away. Every act is one append-only event in IndexedDB (`events`), replayed by `engine/rose`. The
care event gained `amount` for watering. `@rosea/identity` makes the player's keypair, kept in
`keys`. Analysis: [`.agents/features/rose.md`](.agents/features/rose.md). Review:
[`.agents/reviews/feature-rose-care.md`](.agents/reviews/feature-rose-care.md).
- **Keep her safe (G0.11):** merged to `main`. Beside *Her numbers*, *Keep her safe* says what the
browser has promised, asks it to keep her, saves her to a file (her care and keys; never the town,
never the private key) and brings her back from one, on any device, without losing anything she
has there. A rose is now named by her current key and her past keys. Analysis:
[`.agents/features/keep-her-safe.md`](.agents/features/keep-her-safe.md). Review:
[`.agents/reviews/feature-keep-her-safe.md`](.agents/reviews/feature-keep-her-safe.md).
- **A calm refresh (G0.10):** merged to `main`. When a new version of the garden is published, the
installed app fetches it and waits; one quiet line, *A new version of the garden is ready.*, offers
*Refresh*. Nothing reloads by itself. With this, fixes can reach a phone once the app is hosted.
Review: [`.agents/reviews/feature-calm-refresh.md`](.agents/reviews/feature-calm-refresh.md).
- **The in-game sunset (Phase 1):** merged to `main`. *Move the chair* under tonight's sunset line
opens a quiet scene: the sky drawn in code from day to dusk, the sun setting behind the garden,
half a minute with nothing to press; then the real sunset's time, *Watch it again*, *Back to the
rose*. Escape or a tap leaves early. Review:
[`.agents/reviews/feature-chair-sunset.md`](.agents/reviews/feature-chair-sunset.md).
- **The day's sentence (Phase 1, G1.5):** merged to `main`. When the rose needs nothing she keeps
a folded petal; *Open her petal* shows one sentence and its source. One a day; an unopened petal
is the same petal next week; on a nearby day she also remembers an earlier one; around the real
sunset she says *The sun is low now*, and after opening, *Go and look at the sky.* The library is
bundled at build time after `validate:library` passes. **The shipped app shows no petal yet:**
the library is empty until the author verifies sentences. 78 candidates wait in
`content/candidates/`, each copied from a Project Gutenberg edition and checked against it by
script; read [`content/candidates/README.md`](content/candidates/README.md) first, then
`pnpm library:verify <id…> --by Mark`. Analysis:
[`.agents/features/day-sentence.md`](.agents/features/day-sentence.md). Review:
[`.agents/reviews/feature-day-sentence.md`](.agents/reviews/feature-day-sentence.md).
- **Thorns (Phase 1):** merged to `main`, as the author chose (thorns teach gentleness). *Touch her*
over her picture: a fond answer, a blush on the first touch of a visit; three quick taps and she
says *Gently. I have thorns.* and rests four seconds. A tremor's taps count as one. Nothing is
recorded. Tuning in `TOUCH` (`packages/engine/src/touch/touch.ts`). Review:
[`.agents/reviews/feature-thorns.md`](.agents/reviews/feature-thorns.md).
- **Two tabs (2026-11-07):** merged to `main`. Measured first: an open tab did not see care or a
town from another tab, so a player could water her twice. Storage now announces each committed
write on a `BroadcastChannel`; the other tabs read again. No lock: nothing stored can drift.
On this date the root `node_modules` was found missing; `pnpm install --frozen-lockfile`
restored it. Review: [`.agents/reviews/fix-two-tabs.md`](.agents/reviews/fix-two-tabs.md).
- **The sunrise (2026-11-17):** merged to `main`. From sunset until it comes, the garden's line names
the real sunrise; the in-game sunset still names the sunset. Seen on a real Android tablet.
Review: [`.agents/reviews/feature-sunrise.md`](.agents/reviews/feature-sunrise.md).
- **The town list's clocks for Chile (2026-11-17):** merged to `main`. Santiago and Valparaíso had
been on a southern zone's clock (no daylight saving) since the first build, and Aysén and
Magallanes on Santiago's. Found because the upgraded Node knows America/Coyhaique. Review:
[`.agents/reviews/fix-coyhaique.md`](.agents/reviews/fix-coyhaique.md).
- **Tested on a real Android tablet (2026-11-17):** the built app over USB (`adb reverse`, the server
still on 127.0.0.1), driven through Chrome's DevTools socket: first open, the town, watering by a
real held touch, the in-game sunset, and **offline** reloads with the server unreachable all pass.
When device testing ends, the app used is stopped at once (the author's rule).
- **Four versions, one garden (2026-11-17):** merged to `main`, as the author decided: the PWA plus
an Android, iOS and desktop app from one codebase through a Tauri 2 shell, `apps/rosea-tauri`
(CLAUDE.md §2 *Four versions*, §3, §4, §8; ROADMAP *The platform track*). The **Windows app**
(`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).
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
*Keep her safe* speaks of *this browser*, and on Android saving to a file does nothing (G-T4,
a release blocker). The debug APK and installer are build output on this machine, not committed:
`apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/` and
`apps/rosea-tauri/src-tauri/target/release/bundle/nsis/`. Analysis:
[`.agents/features/tauri-platforms.md`](.agents/features/tauri-platforms.md). Review:
[`.agents/reviews/feature-tauri-platforms.md`](.agents/reviews/feature-tauri-platforms.md).
- **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.
**Phase 0 is not finished.** The roadmap's Phase 0 is more than the workspace. Its
gate needs 60 verified sentences (G0.18) and one illustration through the art
pipeline (G0.24). The pipeline and the board are built; the first real picture is not made yet. Also open: a GitHub remote (G0.13). The Letter slot is built (G0.25).
@@ -51,18 +138,42 @@ The notification decision is made: in-app only on the web (G0.26).
1. **The Letter:** the words in `docs/LETTER.md`, the verified support lines for the
door to real help (G0.27), and Q9 (may the letter name the book).
2. **Sentences:** an agent may propose public-domain candidates with their sources.
Only the author can mark one verified.
2. **Sentences:** 78 candidates are ready in `content/candidates/` (10 flagged in its README).
Verifying 60 closes the Phase 0 sentence gate (G0.18) and puts the petal in the app. Also
the petal's tuning (`PETAL` in `packages/engine/src/petal/petal.ts`: remembering within 3 days,
the good moment an hour either side of sunset) and its words in `packages/ui/src/copy/en.ts`.
3. **Art:** the style is approved (S1–S5), and so is the fox (F1–F4, with a deep red-orange coat).
Make `rose-sheet` on the board and accept it; `fox-sheet` comes first for Phase 2. That is the first step of the Phase 0 art gate.
**Make `rose-sheet` again with the board v2 prompt** (version 4) and accept it when she looks
right; `fox-sheet` comes first for Phase 2. That is the first step of the Phase 0 art gate.
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>`,
and writes `final` back into the row.
4. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
5. **Upgrading Node** to ≥ 22.13 on this machine (G0.20).
5. **Node is upgraded** (22.23.4); unpinning the dependencies pinned for 22.11 remains (G0.20).
6. **The rose's tuning** (`.agents/features/rose.md` R2, R4, R5, R6, all in `ROSE` in
`packages/engine/src/rose/rose.ts`): how fast she gets thirsty, how often weeds, petals and wind
come, and how many days of care each stage takes (full bloom after 25). Play it for a week,
then say what feels wrong.
7. **The apps:** a Mac with Xcode and an Apple developer account for iOS (G-T1); whether the
desktop window (480 × 800, portrait) should be wider; the release signing keys, kept outside
the repository (G-T3).
**How this machine works** (not in the code):
- **The CPU guard:** the full runs wait for this machine to drop to 80 % CPU (§5.7). Other projects'
test runs share it, so a wait of a minute or two is normal; three minutes, and the run is refused.
On 2026-11-17 two qemu virtual machines held it at 100 % for long stretches; waiting worked.
- **Things vanish:** the root `node_modules` (twice, 2026-11-07 and 11-17) and Playwright's browser in
`F:\ms-playwright` (11-17) disappeared; the code and history were intact. Restore with
`pnpm install --frozen-lockfile` and `pnpm exec playwright install --only-shell chromium` (a
download: ask first). The cause is unknown.
- **The Android tablet:** WAVE 10C on USB debugging; always `adb -s WAVE10CEEA036785` (an emulator
attaches too, and other projects use the same tablet). Stop the app used when testing ends.
Its USB link drops now and then (`device offline`); `e2e/apps/check-garden.ts` waits and retries.
- **Building the apps:** Rust 1.99 (MSVC) with the four Android targets, JDK 17, the Android SDK at
`F:\Tools\Android\Sdk` (NDK 27.1), VS 2022 Build Tools, WebView2 and NSIS are all installed; a
cold desktop release build takes about 6 minutes, an Android debug build about 2 after that.
- **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in
this repository only.
- **Pushing:** it uses a repo-local `credential.helper`, copied from Ludus. Do not
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Android 11 and earlier: no part of the garden is backed up (tauri-platforms.md D6).
Copied into gen/android by scripts/android.ts. -->
<full-backup-content>
<exclude domain="root" path="." />
<exclude domain="file" path="." />
<exclude domain="database" path="." />
<exclude domain="sharedpref" path="." />
<exclude domain="external" path="." />
<exclude domain="device_root" path="." />
<exclude domain="device_file" path="." />
<exclude domain="device_database" path="." />
<exclude domain="device_sharedpref" path="." />
</full-backup-content>
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Android 12 and later. Nothing of the garden goes into a cloud backup or a device-to-device
transfer: the care log, the keys and the chosen town stay on this device (CLAUDE.md §4,
tauri-platforms.md D6). A rose moves only by the player's own hand, with Keep her safe.
allowBackup="false" alone does not stop every device-transfer tool on Android 12+, so every
domain is excluded here as well. Copied into gen/android by scripts/android.ts. -->
<data-extraction-rules>
<cloud-backup>
<exclude domain="root" path="." />
<exclude domain="file" path="." />
<exclude domain="database" path="." />
<exclude domain="sharedpref" path="." />
<exclude domain="external" path="." />
<exclude domain="device_root" path="." />
<exclude domain="device_file" path="." />
<exclude domain="device_database" path="." />
<exclude domain="device_sharedpref" path="." />
</cloud-backup>
<device-transfer>
<exclude domain="root" path="." />
<exclude domain="file" path="." />
<exclude domain="database" path="." />
<exclude domain="sharedpref" path="." />
<exclude domain="external" path="." />
<exclude domain="device_root" path="." />
<exclude domain="device_file" path="." />
<exclude domain="device_database" path="." />
<exclude domain="device_sharedpref" path="." />
</device-transfer>
</data-extraction-rules>
+24
View File
@@ -0,0 +1,24 @@
{
"name": "@rosea/tauri",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "The Tauri 2 shell: the Android, iOS and desktop apps around apps/rosea's built game (dist-tauri/). Imports no package.",
"scripts": {
"dev": "tsx scripts/icons.ts && tauri dev",
"build:desktop": "tsx scripts/icons.ts && tauri build",
"build:android": "tsx scripts/android.ts prepare && tauri android build --debug --apk --target aarch64 && tsx scripts/android.ts verify",
"build:ios": "tsx scripts/ios.ts",
"android:privacy": "tsx scripts/android.ts apply",
"android:verify": "tsx scripts/android.ts verify",
"typecheck": "tsc -p tsconfig.json",
"test": "vitest run --reporter=verbose"
},
"devDependencies": {
"@tauri-apps/cli": "2.12.5",
"@types/node": "22.20.1",
"tsx": "4.23.12",
"typescript": "5.9.3",
"vitest": "3.2.7"
}
}
+121
View File
@@ -0,0 +1,121 @@
/**
* The Android app's privacy on the generated project, and the proof on the built APK
* (src/android-privacy.ts; tauri-platforms.md D6).
*
* tsx scripts/android.ts prepare `tauri android init` if needed, icons, then apply
* tsx scripts/android.ts apply patch the manifest, copy the rule files, then check
* tsx scripts/android.ts check what the generated project lacks; exit 1 if anything
* tsx scripts/android.ts verify [apk] the same, read from the BUILT APK with aapt2
*
* `apply` runs from tauri.android.conf.json's beforeBuildCommand, so `tauri android build`
* cannot make an APK without it. A Gradle build started outside the Tauri CLI skips that hook;
* `verify` reads the artefact itself, and `pnpm tauri:android` runs it last.
*/
import { spawnSync } from 'node:child_process';
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { apkProblems, manifestProblems, patchManifest, RULE_FILES, RULE_SECTIONS, ruleProblems } from '../src/android-privacy.js';
import { PACKAGE, SRC_TAURI, tauri } from './tauri.js';
const MAIN = join(SRC_TAURI, 'gen', 'android', 'app', 'src', 'main');
const MANIFEST = join(MAIN, 'AndroidManifest.xml');
const RES_FROM = join(PACKAGE, 'android', 'res', 'xml');
const RES_TO = join(MAIN, 'res', 'xml');
const OUTPUTS = join(SRC_TAURI, 'gen', 'android', 'app', 'build', 'outputs', 'apk');
function fail(problems: readonly string[]): never {
for (const p of problems) console.error(`android: ${p}`);
process.exit(1);
}
function problems(): string[] {
if (!existsSync(MANIFEST)) return [`no generated project (${MANIFEST}); run 'pnpm tauri:android'`];
const found = manifestProblems(readFileSync(MANIFEST, 'utf8'));
for (const f of RULE_FILES) {
const at = join(RES_TO, f);
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}`);
}
// 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 there = join(MAIN, 'res', 'mipmap-mdpi', 'ic_launcher.png');
if (!existsSync(ours) || !existsSync(there) || !readFileSync(ours).equals(readFileSync(there))) {
found.push("the launcher icon is not Rosea's (run 'tsx scripts/icons.ts')");
}
return found;
}
function apply(): void {
for (const f of RULE_FILES) {
const left = ruleProblems(readFileSync(join(RES_FROM, f), 'utf8'), RULE_SECTIONS[f]);
if (left.length > 0) fail(left.map((p) => `android/res/xml/${f}: ${p}`));
}
if (!existsSync(MANIFEST)) fail([`no generated project (${MANIFEST}); run 'pnpm tauri:android'`]);
const before = readFileSync(MANIFEST, 'utf8');
const after = patchManifest(before);
mkdirSync(RES_TO, { recursive: true });
for (const f of RULE_FILES) copyFileSync(join(RES_FROM, f), join(RES_TO, f));
if (after !== before) writeFileSync(MANIFEST, after);
const left = problems();
if (left.length > 0) fail(left);
console.log(
`android: privacy ${after === before ? 'already in place' : 'applied'} ` +
'(no INTERNET, no backup or transfer, WebView metrics and Safe Browsing off)'
);
}
function newestApk(dir: string): string | undefined {
if (!existsSync(dir)) return undefined;
let best: { path: string; at: number } | undefined;
const walk = (d: string): void => {
for (const name of readdirSync(d)) {
const path = join(d, name);
const stat = statSync(path);
if (stat.isDirectory()) walk(path);
else if (name.endsWith('.apk') && (!best || stat.mtimeMs > best.at)) best = { path, at: stat.mtimeMs };
}
};
walk(dir);
return best?.path;
}
function aapt2(): string {
const sdk = process.env['ANDROID_HOME'] ?? process.env['ANDROID_SDK_ROOT'];
if (!sdk) fail(['ANDROID_HOME is not set']);
const tools = join(sdk, 'build-tools');
const versions = readdirSync(tools).sort((a, b) => b.localeCompare(a, undefined, { numeric: true }));
const exe = process.platform === 'win32' ? 'aapt2.exe' : 'aapt2';
for (const v of versions) if (existsSync(join(tools, v, exe))) return join(tools, v, exe);
return fail([`no aapt2 under ${tools}`]);
}
function verify(apk: string | undefined): void {
const file = apk ?? newestApk(OUTPUTS);
if (file === undefined || !existsSync(file)) fail([`no APK to verify under ${OUTPUTS}`]);
const tool = aapt2();
const run = (...args: string[]): string => {
const r = spawnSync(tool, args, { encoding: 'utf8' });
if (r.status !== 0) fail([`aapt2 ${args.join(' ')} failed: ${r.stderr}`]);
return r.stdout;
};
const left = apkProblems(run('dump', 'permissions', file), run('dump', 'xmltree', '--file', 'AndroidManifest.xml', file));
if (left.length > 0) fail(left);
console.log(`android: ${file} verified (no permission asked, no backup, WebView metrics and Safe Browsing off)`);
}
const [command, arg] = process.argv.slice(2);
try {
if (command === 'prepare') {
if (!existsSync(MANIFEST)) tauri('android', 'init', '--ci', '--skip-targets-install');
await import('./icons.js');
apply();
} else if (command === 'apply') apply();
else if (command === 'check') {
const left = problems();
if (left.length > 0) fail(left);
console.log('android: privacy in place');
} else if (command === 'verify') verify(arg);
else fail(['usage: android.ts prepare|apply|check|verify [apk]']);
} catch (error) {
fail([(error as Error).message]);
}
+34
View File
@@ -0,0 +1,34 @@
/**
* The app's icons, made from the PWA's icon (`apps/rosea/public/icon.svg`) before every build
* (tauri-platforms.md D8). They are build output, never committed: the only images in git are
* the source SVG and optimised art under art/final/ (CLAUDE.md §5.2). The icon is still a
* placeholder; the real one comes through the art pipeline (GAP_ANALYSIS G0.21).
*
* tsx scripts/icons.ts makes them when missing or older than the SVG, and copies the
* Android launcher icons into gen/android when it exists
*
* The copy is unconditional on purpose: `tauri android init` writes Tauri's own logo into
* gen/android, newer than any icon made before it, so a date check kept Tauri's logo in the first
* APK (review finding). `scripts/android.ts check` compares the bytes.
*/
import { cpSync, existsSync, statSync } from 'node:fs';
import { join } from 'node:path';
import { PACKAGE, SRC_TAURI, tauri } from './tauri.js';
const SOURCE = join(PACKAGE, '..', 'rosea', 'public', 'icon.svg');
const MADE = join(SRC_TAURI, 'icons');
export const ANDROID_ICONS = join(MADE, 'android');
export const ANDROID_RES = join(SRC_TAURI, 'gen', 'android', 'app', 'src', 'main', 'res');
const stale = (file: string): boolean => !existsSync(file) || statSync(file).mtimeMs < statSync(SOURCE).mtimeMs;
if (stale(join(MADE, 'icon.ico')) || stale(join(ANDROID_ICONS, 'mipmap-mdpi', 'ic_launcher.png'))) {
tauri('icon', SOURCE);
console.log('icons: made from apps/rosea/public/icon.svg');
} else {
console.log('icons: up to date');
}
if (existsSync(ANDROID_RES)) {
cpSync(ANDROID_ICONS, ANDROID_RES, { recursive: true });
console.log('icons: Android launcher icons copied into gen/android');
}
+22
View File
@@ -0,0 +1,22 @@
/**
* The iOS app. Tauri can build it only on macOS with Xcode, and putting it on a phone needs an
* Apple developer account (free for one's own device; paid for TestFlight and the App Store).
* Elsewhere this refuses with that reason instead of failing somewhere deep in the CLI
* (CLAUDE.md §8, *iOS cannot be built on Windows*; tauri-platforms.md G-T1).
*
* tsx scripts/ios.ts on macOS: `tauri ios init` once, icons, then `tauri ios build --debug`
*/
import { existsSync } from 'node:fs';
import { join } from 'node:path';
import { SRC_TAURI, tauri } from './tauri.js';
if (process.platform !== 'darwin') {
console.error(
'ios: the iOS app can only be built on macOS with Xcode (and an Apple developer account to run it on a phone).\n' +
`ios: this machine is ${process.platform}. Nothing was built. See .agents/features/tauri-platforms.md, G-T1.`
);
process.exit(1);
}
if (!existsSync(join(SRC_TAURI, 'gen', 'apple'))) tauri('ios', 'init', '--ci');
await import('./icons.js');
tauri('ios', 'build', '--debug', ...process.argv.slice(2));
+19
View File
@@ -0,0 +1,19 @@
/** Runs the Tauri CLI of this package, in this package's folder, and stops the script if it fails. */
import { spawnSync } from 'node:child_process';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
export const PACKAGE = join(dirname(fileURLToPath(import.meta.url)), '..');
export const SRC_TAURI = join(PACKAGE, 'src-tauri');
export function tauri(...args: string[]): void {
const run = spawnSync('pnpm', ['exec', 'tauri', ...args], {
cwd: PACKAGE,
stdio: 'inherit',
shell: process.platform === 'win32'
});
if (run.status !== 0) {
console.error(`tauri ${args.join(' ')} failed (exit ${String(run.status ?? run.signal)})`);
process.exit(1);
}
}
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
[package]
name = "rosea-shell"
version = "0.1.0"
description = "The Tauri 2 shell of Rosea Domi: a window around the built game, and nothing else."
edition = "2024"
publish = false
[lib]
# The `_lib` suffix avoids a clash between the lib and the bin on Windows (cargo#8519).
name = "rosea_shell_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2.7.5", features = [] }
# No Tauri plugin and no other crate: the shell opens a window on the built game and does
# nothing else. Each plugin that arrives later (notifications, Phase 6) is reviewed for
# network access first (.agents/features/tauri-platforms.md D5).
[dependencies]
tauri = { version = "2.12.6", features = [] }
[profile.release]
codegen-units = 1
lto = true
opt-level = "s"
panic = "abort"
strip = true
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tauri_build::build()
}
+13
View File
@@ -0,0 +1,13 @@
//! The Tauri 2 shell of Rosea Domi (CLAUDE.md §2, *Four versions*).
//!
//! A window on the built game (`apps/rosea/dist-tauri/`) and nothing else: no command, no
//! plugin, no file of its own. The game keeps everything in the webview's IndexedDB, exactly
//! as in the PWA. `capabilities/` is absent on purpose, so the page is granted no IPC at all.
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.run(tauri::generate_context!())
// Nothing to recover from here: without a window there is no garden to show.
.expect("Rosea Domi could not open its window");
}
+6
View File
@@ -0,0 +1,6 @@
// No console window behind the garden in a release build on Windows.
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
rosea_shell_lib::run()
}
@@ -0,0 +1,6 @@
{
"$schema": "https://schema.tauri.app/config/2",
"build": {
"beforeBuildCommand": "pnpm --filter @rosea/tauri android:privacy && pnpm --filter @rosea/app build:shell"
}
}
@@ -0,0 +1,36 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Rosea Domi",
"version": "../../rosea/package.json",
"identifier": "cz.mareknovak.domi.rosea",
"build": {
"beforeDevCommand": "pnpm --filter @rosea/app dev:shell",
"devUrl": "http://127.0.0.1:5173",
"beforeBuildCommand": "pnpm --filter @rosea/app build:shell",
"frontendDist": "../../rosea/dist-tauri"
},
"app": {
"windows": [
{
"label": "main",
"title": "Rosea Domi",
"width": 480,
"height": 800,
"minWidth": 320,
"minHeight": 480,
"useHttpsScheme": true,
"additionalBrowserArgs": "--disable-features=msWebOOUI,msPdfOOUI,msSmartScreenProtection,DnsOverHttpsUpgrade,DohProviderGoogle,DohProviderGoogleDns,DohProviderCloudflare,msExperimentationAndConfigurationService,OptimizationHints,AutofillServerCommunication,MediaRouter,Translate --disable-background-networking --disable-component-update --disable-domain-reliability --disable-sync --no-pings --disable-client-side-phishing-detection --dns-prefetch-disable"
}
],
"security": {
"csp": "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self'; manifest-src 'self'; worker-src 'self'; object-src 'none'; base-uri 'self'; form-action 'none'"
}
},
"bundle": {
"active": true,
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
"category": "Game",
"shortDescription": "A rose to tend, a fox to befriend, and the time we give to people.",
"windows": { "nsis": { "installMode": "currentUser" } }
}
}
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["deb", "appimage"] } }
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["app", "dmg"] } }
@@ -0,0 +1 @@
{ "$schema": "https://schema.tauri.app/config/2", "bundle": { "targets": ["nsis"] } }
+180
View File
@@ -0,0 +1,180 @@
/**
* The Android app's privacy, applied to Tauri's generated project (tauri-platforms.md D6).
*
* `src-tauri/gen/android` is written by `tauri android init` and never committed, so every
* clone starts from Tauri's stock manifest, which asks for `INTERNET` and lets Android copy the
* app's data to the player's cloud backup. What must hold is carried here and applied before
* every Android build; the build fails if anything is missing. The approach and the two rule
* files follow Amicitia's (its `android-privacy.md`, measured there on 2026-11-08):
*
* - **no `INTERNET`**: Rosea has no network feature yet, so the kernel refuses the app any
* socket, the webview's own traffic included. It comes back with the first feature that
* needs the network (Phase 3), and that feature's doc measures the webview first;
* - **no backup and no device transfer**: the care log, the keys and the chosen town stay on
* this device; *Keep her safe* is how a rose moves;
* - the WebView's **metrics** and **Safe Browsing** lookups off, for the day `INTERNET` returns.
*
* Pure functions on strings; the files are read and written by `scripts/android.ts`.
*/
export const BACKUP_RULES = 'rosea_backup_rules';
export const EXTRACTION_RULES = 'rosea_data_extraction_rules';
export const RULE_FILES = [`${BACKUP_RULES}.xml`, `${EXTRACTION_RULES}.xml`] as const;
/** Attributes `<application>` must carry. */
export const APPLICATION_ATTRS: Readonly<Record<string, string>> = {
'android:allowBackup': 'false',
'android:fullBackupContent': `@xml/${BACKUP_RULES}`,
'android:dataExtractionRules': `@xml/${EXTRACTION_RULES}`
};
/** WebView switches read from the manifest (developer.android.com, "Manage WebView objects"). */
export const META_DATA: Readonly<Record<string, string>> = {
'android.webkit.WebView.EnableSafeBrowsing': 'false',
'android.webkit.WebView.MetricsOptOut': 'true'
};
const BEGIN = '<!-- rosea-privacy: begin (apps/rosea-tauri/src/android-privacy.ts) -->';
const END = '<!-- rosea-privacy: end -->';
const INTERNET_LINE = /^[ \t]*<uses-permission\s+android:name="android\.permission\.INTERNET"\s*\/>[ \t]*\n/gm;
const INTERNET_ANY = /android\.permission\.INTERNET/;
const escape = (s: string): string => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
/** The one `<application …>` opening tag, or an error naming what is wrong. */
function applicationTag(xml: string): RegExpMatchArray & { index: number } {
const tags = [...xml.matchAll(/<application\b[^>]*>/g)];
if (tags.length !== 1) throw new Error(`expected one <application> tag, found ${tags.length}`);
const tag = tags[0]!;
if (tag[0].endsWith('/>')) throw new Error('<application/> is empty; expected a template with children');
return tag as RegExpMatchArray & { index: number };
}
function setAttribute(tag: string, name: string, value: string): string {
const re = new RegExp(`(\\s${escape(name)}=")[^"]*(")`);
if (re.test(tag)) return tag.replace(re, `$1${value}$2`);
const indent = /\n([ \t]+)android:/.exec(tag)?.[1] ?? ' ';
return tag.replace(/^<application\b/, `<application\n${indent}${name}="${value}"`);
}
/** The manifest with the privacy settings in place. Throws, changing nothing, on an unexpected shape. */
export function patchManifest(xml: string): string {
const eol = xml.includes('\r\n') ? '\r\n' : '\n';
let out = xml.replaceAll('\r\n', '\n');
// 1. <application> attributes.
const tag = applicationTag(out);
let patched = tag[0];
for (const [name, value] of Object.entries(APPLICATION_ATTRS)) patched = setAttribute(patched, name, value);
out = out.slice(0, tag.index) + patched + out.slice(tag.index + tag[0].length);
// 2. The meta-data block, replaced whole on every run, so a second run changes nothing.
const from = out.indexOf(BEGIN);
if (from >= 0) {
const to = out.indexOf(END, from);
if (to < 0) throw new Error('found the begin marker of the privacy block but not its end');
const lineStart = out.lastIndexOf('\n', from) + 1;
const lineEnd = out.indexOf('\n', to);
out = out.slice(0, lineStart) + out.slice(lineEnd + 1);
}
const closes = [...out.matchAll(/^([ \t]*)<\/application>/gm)];
if (closes.length !== 1) throw new Error(`expected one </application>, found ${closes.length}`);
const close = closes[0]!;
const indent = `${close[1] ?? ''} `;
const block = [
BEGIN,
...Object.entries(META_DATA).map(([n, v]) => `<meta-data android:name="${n}" android:value="${v}" />`),
END
]
.map((line) => `${indent}${line}\n`)
.join('');
out = out.slice(0, close.index) + block + out.slice(close.index);
// 3. INTERNET removed. Any other form of asking for it is refused rather than missed.
out = out.replace(INTERNET_LINE, '');
if (INTERNET_ANY.test(out)) throw new Error('INTERNET is requested in a form this patch does not remove');
return out.replaceAll('\n', eol);
}
/** What the manifest lacks, by name; empty when it is in order. */
export function manifestProblems(xml: string): string[] {
const problems: string[] = [];
let tag: string;
try {
tag = applicationTag(xml)[0];
} catch (error) {
return [(error as Error).message];
}
for (const [name, value] of Object.entries(APPLICATION_ATTRS)) {
if (!new RegExp(`\\s${escape(name)}="${escape(value)}"`).test(tag)) problems.push(`<application> lacks ${name}="${value}"`);
}
for (const [name, value] of Object.entries(META_DATA)) {
if (!new RegExp(`<meta-data\\s+android:name="${escape(name)}"\\s+android:value="${escape(value)}"\\s*/>`).test(xml)) {
problems.push(`no meta-data ${name}=${value}`);
}
}
if (INTERNET_ANY.test(xml)) problems.push('android.permission.INTERNET is requested');
return problems;
}
/** Every storage domain Android knows; each must be excluded. */
export const DOMAINS = [
'root', 'file', 'database', 'sharedpref', 'external',
'device_root', 'device_file', 'device_database', 'device_sharedpref'
] as const;
/** Where each rules file must exclude everything: '' is the file's root element. */
export const RULE_SECTIONS: Readonly<Record<(typeof RULE_FILES)[number], readonly string[]>> = {
[`${BACKUP_RULES}.xml`]: [''],
[`${EXTRACTION_RULES}.xml`]: ['cloud-backup', 'device-transfer']
} as Record<(typeof RULE_FILES)[number], readonly string[]>;
/** A rules file must exclude every domain in every section, and include nothing. */
export function ruleProblems(xml: string, sections: readonly string[]): string[] {
const problems: string[] = [];
if (/<include\b/.test(xml)) problems.push('includes something');
for (const section of sections) {
const body = section ? new RegExp(`<${section}\\b[^>]*>([\\s\\S]*?)</${section}>`).exec(xml)?.[1] : xml;
if (body === undefined) {
problems.push(`no <${section}>`);
continue;
}
for (const domain of DOMAINS) {
if (!new RegExp(`<exclude\\s+domain="${domain}"\\s+path="\\."\\s*/>`).test(body)) {
problems.push(`${section || 'root'}: ${domain} is not excluded`);
}
}
}
return problems;
}
/**
* What the BUILT APK says, from `aapt2 dump permissions` and `aapt2 dump xmltree` of its
* manifest: the proof is the artefact, not the source (Amicitia lessons/technical.md).
* The manifest merge can add permissions from libraries; only the APK can tell.
*/
export function apkProblems(permissions: string, manifestTree: string): string[] {
const problems: string[] = [];
const tree = manifestTree.replaceAll('\r\n', '\n');
const pkg = /^package: (\S+)$/m.exec(permissions.replaceAll('\r\n', '\n'))?.[1];
for (const m of permissions.matchAll(/uses-permission: name='([^']+)'/g)) {
const name = m[1]!;
// androidx's receiver guard: a signature permission the app declares for itself, granting nothing.
if (pkg !== undefined && name === `${pkg}.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`) continue;
// Any other is a review question, not a pass: Rosea asks for no permission yet.
problems.push(`the APK asks for ${name}`);
}
if (!/:allowBackup\(0x[0-9a-f]+\)=false$/m.test(tree)) problems.push('the APK does not set allowBackup=false');
for (const [name, value] of Object.entries(META_DATA)) {
// aapt2 prints a meta-data element's name attribute, then its value attribute on the next line:
// A: http://schemas.android.com/apk/res/android:name(0x01010003)="<name>" (Raw: "<name>")
// A: http://schemas.android.com/apk/res/android:value(0x01010024)=true
const found = new RegExp(
`:name\\(0x[0-9a-f]+\\)="${escape(name)}"[^\\n]*\\n\\s*A: [^\\n]*:value\\(0x[0-9a-f]+\\)=(\\S+)`
).exec(tree);
if (!found) problems.push(`the APK has no meta-data ${name}`);
else if (found[1] !== value && found[1] !== `"${value}"`) problems.push(`the APK's meta-data ${name} is ${found[1]}, not ${value}`);
}
return problems;
}
@@ -0,0 +1,180 @@
/**
* The Android privacy patch (tauri-platforms.md D6), on Tauri 2.12.5's stock manifest exactly as
* `tauri android init` wrote it (fixtures/AndroidManifest.stock.xml), and on the committed rule files.
*/
import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import {
apkProblems,
APPLICATION_ATTRS,
DOMAINS,
manifestProblems,
META_DATA,
patchManifest,
RULE_FILES,
RULE_SECTIONS,
ruleProblems
} from '../src/android-privacy.js';
const HERE = dirname(fileURLToPath(import.meta.url));
const STOCK = readFileSync(join(HERE, 'fixtures', 'AndroidManifest.stock.xml'), 'utf8').replaceAll('\r\n', '\n');
const rules = (f: string): string => readFileSync(join(HERE, '..', 'android', 'res', 'xml', f), 'utf8');
describe('patchManifest', () => {
const patched = patchManifest(STOCK);
it("removes Tauri's INTERNET permission: the kernel then refuses the app any socket", () => {
expect(STOCK).toContain('android.permission.INTERNET');
expect(patched).not.toContain('android.permission.INTERNET');
});
it('turns backup and device transfer off on <application>', () => {
const tag = /<application\b[^>]*>/.exec(patched)?.[0] ?? '';
for (const [name, value] of Object.entries(APPLICATION_ATTRS)) expect(tag).toContain(`${name}="${value}"`);
// What Tauri set is kept.
expect(tag).toContain('android:icon="@mipmap/ic_launcher"');
expect(tag).toContain('android:usesCleartextTraffic="${usesCleartextTraffic}"');
});
it("switches the WebView's metrics and Safe Browsing off, inside <application>", () => {
const inside = /<application\b[\s\S]*<\/application>/.exec(patched)?.[0] ?? '';
for (const [name, value] of Object.entries(META_DATA)) {
expect(inside).toContain(`<meta-data android:name="${name}" android:value="${value}" />`);
}
});
it('leaves the rest of the manifest as it was', () => {
for (const keep of ['android:name=".MainActivity"', 'android.intent.category.LAUNCHER', 'androidx.core.content.FileProvider']) {
expect(patched).toContain(keep);
}
});
it('changes nothing on a second run', () => {
expect(patchManifest(patched)).toBe(patched);
});
it('keeps Windows line endings when the file has them', () => {
const crlf = patchManifest(STOCK.replaceAll('\n', '\r\n'));
expect(crlf).toBe(patched.replaceAll('\n', '\r\n'));
});
it('overwrites an allowBackup="true" rather than adding a second one', () => {
const on = STOCK.replace('<application', '<application android:allowBackup="true"');
const out = patchManifest(on);
expect(out).toContain('android:allowBackup="false"');
expect(out).not.toContain('android:allowBackup="true"');
expect(out.match(/android:allowBackup=/g)).toHaveLength(1);
});
it('refuses a manifest whose shape it does not know, rather than guessing', () => {
expect(() => patchManifest(STOCK.replace('</application>', '</application><application></application>'))).toThrow(/application/);
expect(() => patchManifest(STOCK.replace(/<application[\s\S]*<\/application>/, '<application />'))).toThrow();
// INTERNET asked for in a form the line pattern does not match.
const odd = STOCK.replace(
'<uses-permission android:name="android.permission.INTERNET" />',
'<uses-permission android:name="android.permission.INTERNET" android:maxSdkVersion="99" />'
);
expect(() => patchManifest(odd)).toThrow(/INTERNET/);
});
it('removes INTERNET written over two lines too', () => {
const split = STOCK.replace(
'<uses-permission android:name="android.permission.INTERNET" />',
'<uses-permission\n android:name="android.permission.INTERNET" />'
);
expect(patchManifest(split)).not.toContain('INTERNET');
});
});
describe('manifestProblems', () => {
it("names everything missing from Tauri's stock manifest", () => {
const problems = manifestProblems(STOCK);
expect(problems).toContain('android.permission.INTERNET is requested');
for (const name of Object.keys(APPLICATION_ATTRS)) expect(problems.join('\n')).toContain(name);
for (const name of Object.keys(META_DATA)) expect(problems.join('\n')).toContain(name);
expect(problems).toHaveLength(1 + Object.keys(APPLICATION_ATTRS).length + Object.keys(META_DATA).length);
});
it('finds nothing missing once patched', () => {
expect(manifestProblems(patchManifest(STOCK))).toEqual([]);
});
it('notices a single switch turned back on', () => {
const patched = patchManifest(STOCK);
expect(manifestProblems(patched.replace('android:allowBackup="false"', 'android:allowBackup="true"'))).toEqual([
'<application> lacks android:allowBackup="false"'
]);
expect(manifestProblems(patched.replace('android:value="true"', 'android:value="false"'))).toEqual([
'no meta-data android.webkit.WebView.MetricsOptOut=true'
]);
});
});
describe('the committed rule files', () => {
for (const f of RULE_FILES) {
it(`${f} excludes every domain, in every section, and includes nothing`, () => {
expect(ruleProblems(rules(f), RULE_SECTIONS[f])).toEqual([]);
});
}
it('a file that forgets one domain is caught, by name', () => {
const f = 'rosea_data_extraction_rules.xml' as const;
const text = rules(f);
const firstDb = text.indexOf('<exclude domain="database" path="." />');
const broken = text.slice(0, firstDb) + text.slice(firstDb + '<exclude domain="database" path="." />'.length);
expect(ruleProblems(broken, RULE_SECTIONS[f])).toEqual(['cloud-backup: database is not excluded']);
});
it('a file that includes something is caught', () => {
const f = 'rosea_backup_rules.xml' as const;
const broken = rules(f).replace('</full-backup-content>', '<include domain="file" path="." />\n</full-backup-content>');
expect(ruleProblems(broken, RULE_SECTIONS[f])).toEqual(['includes something']);
});
it('knows all nine storage domains', () => {
expect(DOMAINS).toHaveLength(9);
});
});
describe('apkProblems, on aapt2 output of the APK built 2026-11-17 (Tauri 2.12.5, AGP 9.3.1)', () => {
const permissions = readFileSync(join(HERE, 'fixtures', 'apk-permissions.txt'), 'utf8');
const tree = readFileSync(join(HERE, 'fixtures', 'apk-manifest.xmltree.txt'), 'utf8');
it('passes the patched APK: no permission asked but androidx own receiver guard', () => {
expect(apkProblems(permissions, tree)).toEqual([]);
});
it('names INTERNET, or any permission a library merges in', () => {
const more = `${permissions.trimEnd()}\nuses-permission: name='android.permission.INTERNET'\nuses-permission: name='android.permission.ACCESS_NETWORK_STATE'\n`;
expect(apkProblems(more, tree)).toEqual([
'the APK asks for android.permission.INTERNET',
'the APK asks for android.permission.ACCESS_NETWORK_STATE'
]);
});
it("does not let another app's receiver guard through", () => {
const other = `${permissions.trimEnd()}\nuses-permission: name='com.example.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION'\n`;
expect(apkProblems(other, tree)).toEqual(['the APK asks for com.example.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION']);
});
it('names backup left on', () => {
expect(apkProblems(permissions, tree.replace(/allowBackup\((0x[0-9a-f]+)\)=false/, 'allowBackup($1)=true'))).toEqual([
'the APK does not set allowBackup=false'
]);
});
it("reads each WebView switch's own value, not its neighbour's", () => {
const flipped = tree.replace(
/("android\.webkit\.WebView\.EnableSafeBrowsing"[^\n]*\r?\n\s*A: [^\n]*:value\(0x[0-9a-f]+\))=false/,
'$1=true'
);
expect(flipped).not.toBe(tree);
expect(apkProblems(permissions, flipped)).toEqual([
"the APK's meta-data android.webkit.WebView.EnableSafeBrowsing is true, not false"
]);
const gone = tree.replace('"android.webkit.WebView.MetricsOptOut"', '"android.webkit.WebView.Something"');
expect(apkProblems(permissions, gone)).toEqual(['the APK has no meta-data android.webkit.WebView.MetricsOptOut']);
});
});
+126
View File
@@ -0,0 +1,126 @@
/**
* The shell's configuration holds what tauri-platforms.md decided (D3–D7, D10, D11). Each of
* these is a value that fails silently at runtime, or worse, only after a release: a changed
* identifier or origin leaves the player's rose behind in the old app.
*/
import { existsSync, readFileSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
import { CSP } from '../../rosea/csp.js';
import { PRODUCT_NAME } from '../../../packages/schema/src/constants.js';
const SRC_TAURI = join(dirname(fileURLToPath(import.meta.url)), '..', 'src-tauri');
/** The parts of a Tauri config these tests read. */
interface TauriConf {
productName?: string;
identifier?: string;
version?: string;
build: { frontendDist: string; beforeBuildCommand: string; beforeDevCommand: string; devUrl: string };
app: { windows: Record<string, unknown>[]; security: Record<string, unknown> };
bundle: { targets?: string[] };
plugins?: unknown;
}
const json = (name: string): TauriConf => JSON.parse(readFileSync(join(SRC_TAURI, name), 'utf8')) as TauriConf;
const conf = json('tauri.conf.json');
const window = conf.app.windows[0] ?? {};
describe('tauri.conf.json', () => {
it('names the app with the product name, in the bundle and the window title (D3)', () => {
expect(conf.productName).toBe(PRODUCT_NAME);
expect(window['title']).toBe(PRODUCT_NAME);
});
it('keeps the identifier it was released with: a new one is a different app (D3)', () => {
expect(conf.identifier).toBe('cz.mareknovak.domi.rosea');
});
it("reads its version from the game's package.json (D3)", () => {
expect(conf.version).toBe('../../rosea/package.json');
const pkg = JSON.parse(readFileSync(resolve(SRC_TAURI, String(conf.version)), 'utf8')) as Record<string, string>;
expect(pkg['name']).toBe('@rosea/app');
expect(pkg['version']).toMatch(/^\d+\.\d+\.\d+$/);
});
it("delivers the PWA's content-security policy, the same string (D4)", () => {
expect(conf.app.security['csp']).toBe(CSP);
});
it("wraps the game's shell build and nothing else (D1, D2)", () => {
expect(conf.build.frontendDist).toBe('../../rosea/dist-tauri');
expect(resolve(SRC_TAURI, conf.build.frontendDist)).toBe(resolve(SRC_TAURI, '..', '..', 'rosea', 'dist-tauri'));
expect(conf.build.beforeBuildCommand).toBe('pnpm --filter @rosea/app build:shell');
expect(conf.build.beforeDevCommand).toBe('pnpm --filter @rosea/app dev:shell');
});
it('runs its dev server on 127.0.0.1 only (CLAUDE.md §5.7)', () => {
expect(new URL(conf.build.devUrl).hostname).toBe('127.0.0.1');
const app = JSON.parse(readFileSync(join(SRC_TAURI, '..', '..', 'rosea', 'package.json'), 'utf8')) as { scripts: Record<string, string> };
expect(app['scripts']['dev:shell']).toContain('--host 127.0.0.1');
expect(app['scripts']['dev:shell']).toContain('--port 5173');
expect(conf.build.devUrl).toBe('http://127.0.0.1:5173');
});
it('keeps the https origin it was released with: IndexedDB lives per origin (D10)', () => {
expect(window['useHttpsScheme']).toBe(true);
});
it("switches WebView2's own traffic off (D7)", () => {
const args = String(window['additionalBrowserArgs']);
for (const flag of [
'--disable-background-networking',
'--disable-component-update',
'--disable-domain-reliability',
'--disable-sync',
'--no-pings',
'--disable-client-side-phishing-detection',
'--dns-prefetch-disable'
]) {
expect(args.split(' ')).toContain(flag);
}
const disabled = /--disable-features=(\S+)/.exec(args)?.[1]?.split(',') ?? [];
for (const feature of [
// Tauri's own defaults, which a custom list must repeat.
'msWebOOUI', 'msPdfOOUI', 'msSmartScreenProtection',
'DnsOverHttpsUpgrade', 'msExperimentationAndConfigurationService', 'AutofillServerCommunication', 'OptimizationHints'
]) {
expect(disabled).toContain(feature);
}
});
it('builds only what each system can make (D11)', () => {
expect(json('tauri.windows.conf.json').bundle.targets).toEqual(['nsis']);
expect(json('tauri.macos.conf.json').bundle.targets).toEqual(['app', 'dmg']);
expect(json('tauri.linux.conf.json').bundle.targets).toEqual(['deb', 'appimage']);
expect(conf.bundle.targets).toBeUndefined();
});
it('applies the Android privacy patch before the game is built for Android (D6)', () => {
const before = json('tauri.android.conf.json').build.beforeBuildCommand;
const patch = before.indexOf('pnpm --filter @rosea/tauri android:privacy');
expect(patch).toBe(0);
expect(before.indexOf('&& pnpm --filter @rosea/app build:shell')).toBeGreaterThan(patch);
});
});
describe('the Rust side (D5)', () => {
it('depends on tauri alone: no plugin, no SDK', () => {
const cargo = readFileSync(join(SRC_TAURI, 'Cargo.toml'), 'utf8');
const deps = /\n\[dependencies\]\n([\s\S]*?)(?:\n\[|$)/.exec(cargo)?.[1] ?? '';
const names = deps
.split('\n')
.map((l) => /^([A-Za-z0-9_-]+)\s*=/.exec(l)?.[1])
.filter((n): n is string => n !== undefined);
expect(names).toEqual(['tauri']);
expect(cargo).not.toMatch(/\[target\.[^\]]*dependencies\]/);
});
it('grants the page no IPC: there is no capabilities folder', () => {
expect(existsSync(join(SRC_TAURI, 'capabilities'))).toBe(false);
expect(conf.app.security['capabilities']).toBeUndefined();
});
it('declares no plugin configuration', () => {
expect(conf.plugins).toBeUndefined();
});
});
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<!-- AndroidTV support -->
<uses-feature android:name="android.software.leanback" android:required="false" />
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.rosea_shell"
android:usesCleartextTraffic="${usesCleartextTraffic}">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:launchMode="singleTask"
android:label="@string/main_activity_title"
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<!-- AndroidTV support -->
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>
+89
View File
@@ -0,0 +1,89 @@
N: android=http://schemas.android.com/apk/res/android (line=2)
E: manifest (line=2)
A: http://schemas.android.com/apk/res/android:versionCode(0x0101021b)=1000
A: http://schemas.android.com/apk/res/android:versionName(0x0101021c)="0.1.0" (Raw: "0.1.0")
A: http://schemas.android.com/apk/res/android:compileSdkVersion(0x01010572)=37
A: http://schemas.android.com/apk/res/android:compileSdkVersionCodename(0x01010573)="17" (Raw: "17")
A: package="cz.mareknovak.domi.rosea" (Raw: "cz.mareknovak.domi.rosea")
A: platformBuildVersionCode=37
A: platformBuildVersionName=17
E: uses-sdk (line=7)
A: http://schemas.android.com/apk/res/android:minSdkVersion(0x0101020c)=24
A: http://schemas.android.com/apk/res/android:targetSdkVersion(0x01010270)=37
E: uses-feature (line=12)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.software.leanback" (Raw: "android.software.leanback")
A: http://schemas.android.com/apk/res/android:required(0x0101028e)=false
E: permission (line=16)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" (Raw: "cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION")
A: http://schemas.android.com/apk/res/android:protectionLevel(0x01010009)=0x00000002
E: uses-permission (line=20)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" (Raw: "cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION")
E: application (line=22)
A: http://schemas.android.com/apk/res/android:theme(0x01010000)=@0x7f100274
A: http://schemas.android.com/apk/res/android:label(0x01010001)=@0x7f0f001c
A: http://schemas.android.com/apk/res/android:icon(0x01010002)=@0x7f0d0000
A: http://schemas.android.com/apk/res/android:debuggable(0x0101000f)=true
A: http://schemas.android.com/apk/res/android:allowBackup(0x01010280)=false
A: http://schemas.android.com/apk/res/android:extractNativeLibs(0x010104ea)=false
A: http://schemas.android.com/apk/res/android:fullBackupContent(0x010104eb)=@0x7f120001
A: http://schemas.android.com/apk/res/android:usesCleartextTraffic(0x010104ec)=true
A: http://schemas.android.com/apk/res/android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
A: http://schemas.android.com/apk/res/android:dataExtractionRules(0x0101063e)=@0x7f120002
E: activity (line=33)
A: http://schemas.android.com/apk/res/android:label(0x01010001)=@0x7f0f0047
A: http://schemas.android.com/apk/res/android:name(0x01010003)="cz.mareknovak.domi.rosea.MainActivity" (Raw: "cz.mareknovak.domi.rosea.MainActivity")
A: http://schemas.android.com/apk/res/android:exported(0x01010010)=true
A: http://schemas.android.com/apk/res/android:launchMode(0x0101001d)=2
A: http://schemas.android.com/apk/res/android:configChanges(0x0101001f)=0x00000fb4
E: intent-filter (line=39)
E: action (line=40)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=42)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: category (line=44)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.intent.category.LEANBACK_LAUNCHER" (Raw: "android.intent.category.LEANBACK_LAUNCHER")
E: provider (line=48)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.core.content.FileProvider" (Raw: "androidx.core.content.FileProvider")
A: http://schemas.android.com/apk/res/android:exported(0x01010010)=false
A: http://schemas.android.com/apk/res/android:authorities(0x01010018)="cz.mareknovak.domi.rosea.fileprovider" (Raw: "cz.mareknovak.domi.rosea.fileprovider")
A: http://schemas.android.com/apk/res/android:grantUriPermissions(0x0101001b)=true
E: meta-data (line=53)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
A: http://schemas.android.com/apk/res/android:resource(0x01010025)=@0x7f120000
E: meta-data (line=58)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.webkit.WebView.EnableSafeBrowsing" (Raw: "android.webkit.WebView.EnableSafeBrowsing")
A: http://schemas.android.com/apk/res/android:value(0x01010024)=false
E: meta-data (line=61)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="android.webkit.WebView.MetricsOptOut" (Raw: "android.webkit.WebView.MetricsOptOut")
A: http://schemas.android.com/apk/res/android:value(0x01010024)=true
E: provider (line=65)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.startup.InitializationProvider" (Raw: "androidx.startup.InitializationProvider")
A: http://schemas.android.com/apk/res/android:exported(0x01010010)=false
A: http://schemas.android.com/apk/res/android:authorities(0x01010018)="cz.mareknovak.domi.rosea.androidx-startup" (Raw: "cz.mareknovak.domi.rosea.androidx-startup")
E: meta-data (line=69)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.emoji2.text.EmojiCompatInitializer" (Raw: "androidx.emoji2.text.EmojiCompatInitializer")
A: http://schemas.android.com/apk/res/android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
E: meta-data (line=72)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.lifecycle.ProcessLifecycleInitializer" (Raw: "androidx.lifecycle.ProcessLifecycleInitializer")
A: http://schemas.android.com/apk/res/android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
E: meta-data (line=75)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.ProfileInstallerInitializer" (Raw: "androidx.profileinstaller.ProfileInstallerInitializer")
A: http://schemas.android.com/apk/res/android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
E: receiver (line=80)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.ProfileInstallReceiver" (Raw: "androidx.profileinstaller.ProfileInstallReceiver")
A: http://schemas.android.com/apk/res/android:permission(0x01010006)="android.permission.DUMP" (Raw: "android.permission.DUMP")
A: http://schemas.android.com/apk/res/android:enabled(0x0101000e)=true
A: http://schemas.android.com/apk/res/android:exported(0x01010010)=true
A: http://schemas.android.com/apk/res/android:directBootAware(0x01010505)=false
E: intent-filter (line=86)
E: action (line=87)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.action.INSTALL_PROFILE" (Raw: "androidx.profileinstaller.action.INSTALL_PROFILE")
E: intent-filter (line=89)
E: action (line=90)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.action.SKIP_FILE" (Raw: "androidx.profileinstaller.action.SKIP_FILE")
E: intent-filter (line=92)
E: action (line=93)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.action.SAVE_PROFILE" (Raw: "androidx.profileinstaller.action.SAVE_PROFILE")
E: intent-filter (line=95)
E: action (line=96)
A: http://schemas.android.com/apk/res/android:name(0x01010003)="androidx.profileinstaller.action.BENCHMARK_OPERATION" (Raw: "androidx.profileinstaller.action.BENCHMARK_OPERATION")
+3
View File
@@ -0,0 +1,3 @@
package: cz.mareknovak.domi.rosea
permission: cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION
uses-permission: name='cz.mareknovak.domi.rosea.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION'
+63
View File
@@ -0,0 +1,63 @@
/**
* The game's build for the shell (`vite build --mode tauri`, tauri-platforms.md D2), made into a
* temporary folder and read: no service worker, no manifest, no <meta> policy, assets at the root,
* and the shell constant replaced. The PWA's own build is checked by the e2e suites.
*/
import { spawnSync } from 'node:child_process';
import { mkdtempSync, readdirSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
const APP = join(dirname(fileURLToPath(import.meta.url)), '..', '..', 'rosea');
let out = '';
let html = '';
let files: string[] = [];
let scripts = '';
beforeAll(() => {
out = mkdtempSync(join(tmpdir(), 'rosea-shell-build-'));
const build = spawnSync('pnpm', ['exec', 'vite', 'build', '--mode', 'tauri', '--outDir', out, '--emptyOutDir', '--logLevel', 'error'], {
cwd: APP,
encoding: 'utf8',
shell: process.platform === 'win32'
});
if (build.status !== 0) throw new Error(`vite build --mode tauri failed:\n${build.stdout}\n${build.stderr}`);
files = readdirSync(out, { recursive: true, encoding: 'utf8' }).map((f) => f.replaceAll('\\', '/'));
html = readFileSync(join(out, 'index.html'), 'utf8');
scripts = files.filter((f) => f.endsWith('.js')).map((f) => readFileSync(join(out, f), 'utf8')).join('\n');
}, 120_000);
afterAll(() => {
if (out) rmSync(out, { recursive: true, force: true });
});
describe('the game built for the shell', () => {
it('has no service worker and no web manifest', () => {
expect(files.filter((f) => /(^|\/)(sw|workbox-[^/]*|registerSW)\.js$/.test(f))).toEqual([]);
expect(files.filter((f) => f.endsWith('.webmanifest'))).toEqual([]);
expect(html).not.toContain('manifest');
expect(scripts).not.toContain('navigator.serviceWorker.register');
});
it('carries no <meta> content-security policy: Tauri delivers it (D4)', () => {
expect(html).not.toContain('Content-Security-Policy');
});
it('loads its assets from the root of the origin, not /Rosea/', () => {
const urls = [...html.matchAll(/(?:src|href)="([^"]+)"/g)].map((m) => m[1]!);
const assets = urls.filter((u) => u.includes('assets/'));
expect(assets.length).toBeGreaterThanOrEqual(2);
for (const u of assets) expect(u.startsWith('/assets/')).toBe(true);
expect(html).not.toContain('/Rosea/');
});
it('replaces the shell constant at build time: left in, it would throw in the webview', () => {
expect(scripts).not.toContain('__ROSEA_SHELL__');
});
it('ships no source maps', () => {
expect(files.filter((f) => f.endsWith('.map'))).toEqual([]);
});
});
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*.ts", "scripts/**/*.ts", "test/**/*.ts"]
}
+23
View File
@@ -0,0 +1,23 @@
/**
* The content-security policy, one string for all four versions (CLAUDE.md §2, *Four versions*).
* The PWA carries it in a <meta> tag, because GitHub Pages cannot send headers (CLAUDE.md §8).
* The Tauri shell delivers it from `apps/rosea-tauri/src-tauri/tauri.conf.json`
* (`app.security.csp`), and the shell's test holds that string equal to this one
* (tauri-platforms.md D4).
*
* `'self'` everywhere and nothing else: no CDN, no font host, no analytics (CLAUDE.md §4).
* `frame-ancestors` is ignored in a meta tag and is omitted rather than pretended.
*/
export const CSP = [
"default-src 'self'",
"script-src 'self'",
"style-src 'self'",
"img-src 'self' data:",
"font-src 'self'",
"connect-src 'self'",
"manifest-src 'self'",
"worker-src 'self'",
"object-src 'none'",
"base-uri 'self'",
"form-action 'none'"
].join('; ');
+8 -2
View File
@@ -6,11 +6,16 @@
"description": "The PWA. Renders what the engine returns; contains no growth, taming or sky logic.",
"scripts": {
"dev": "vite --host 127.0.0.1 --port 5173 --strictPort",
"build": "vite build",
"build": "tsx ../../scripts/validate-library.ts && vite build",
"build:shell": "tsx ../../scripts/validate-library.ts && vite build --mode tauri",
"dev:shell": "vite --mode tauri --host 127.0.0.1 --port 5173 --strictPort",
"typecheck": "svelte-check --threshold error --output human"
},
"dependencies": {
"@rosea/content": "workspace:*",
"@rosea/identity": "workspace:*",
"@rosea/schema": "workspace:*",
"@rosea/storage": "workspace:*",
"@rosea/ui": "workspace:*"
},
"devDependencies": {
@@ -19,6 +24,7 @@
"svelte-check": "4.7.6",
"typescript": "5.9.3",
"vite": "6.4.3",
"vite-plugin-pwa": "1.3.0"
"vite-plugin-pwa": "1.3.0",
"workbox-window": "7.4.1"
}
}
+118 -2
View File
@@ -1,7 +1,123 @@
<script lang="ts">
import { Shell } from '@rosea/ui';
import { guessTown } from '@rosea/content/guess';
import { createIdentity } from '@rosea/identity';
import { openStorage } from '@rosea/storage';
import { Shell, type RoseWiring, type SunsetWiring } from '@rosea/ui';
import { registerSW } from 'virtual:pwa-register';
import { version } from '../package.json';
// Bundled at build time, so the letter is precached and opens offline (letter-slot.md L1).
import letter from '../../../docs/LETTER.md?raw';
// The verified hope library, bundled after validate:library passed (day-sentence.md P5).
import sentences from 'virtual:rosea-library';
// The device's own zone, read here and nowhere else: the engine never asks the
// device anything (CLAUDE.md §2). Only the zone's name; never GPS, never a lookup.
const deviceZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;
const storage = openStorage();
// The town list is large, so it loads on the first search (sunset-place.md P5).
// A failed load is forgotten, so the next keystroke tries again.
let towns: Promise<typeof import('@rosea/content/places')> | undefined;
const loadTowns = (): Promise<typeof import('@rosea/content/places')> =>
(towns ??= import('@rosea/content/places').catch((error: unknown) => {
towns = undefined;
throw error;
}));
const sunset: SunsetWiring = {
guess: guessTown(deviceZone),
search: async (query) => (await loadTowns()).searchTowns(query),
load: () => storage.loadSunsetPlace(),
save: (choice) => storage.saveSunsetPlace(choice),
now: () => Date.now(),
// Another tab of the garden chose a town (two-tabs.md).
changes: (listener) => storage.onChange((what) => what === 'place' && listener())
};
// The player's key names their rose (rose.md). Kept once; if the device will not
// keep it, this visit still has a rose, under a key that lasts until closing.
let identity: ReturnType<RoseWiring['identity']> | undefined;
async function findIdentity(): ReturnType<RoseWiring['identity']> {
try {
const kept = await storage.loadIdentity();
if (kept) return { publicKey: kept.publicKey, kept: true };
} catch (error) {
console.error('identity: the device could not read the kept key', error);
}
const fresh = await createIdentity();
try {
return { publicKey: (await storage.keepIdentity(fresh)).publicKey, kept: true };
} catch (error) {
console.error('identity: the device could not keep the key; this visit uses one that lasts until closing', error);
return { publicKey: fresh.publicKey, kept: false };
}
}
// --- Keeping her (keep-her-safe.md) -------------------------------------
const browserStorage = typeof navigator !== 'undefined' ? navigator.storage : undefined;
const keeping: RoseWiring['keeping'] = {
persisted: async () => (browserStorage?.persisted ? browserStorage.persisted() : 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 =>
inApp ||
matchMedia('(display-mode: standalone)').matches ||
(navigator as Navigator & { standalone?: boolean }).standalone === true;
// An installed app is asked once, after the first care of a visit: by then there is
// something to lose, and installed apps are not met with a permission prompt (K5).
let askedToKeep = false;
function keepAfterCare(): void {
if (askedToKeep || !installed()) return;
askedToKeep = true;
keeping.persist().catch((error: unknown) => console.error('keep: asking the browser to keep the garden failed', error));
}
function saveFile(name: string, text: string): void {
// A file made here and handed over; nothing is sent anywhere.
const url = URL.createObjectURL(new Blob([text], { type: 'application/json' }));
const a = Object.assign(document.createElement('a'), { href: url, download: name });
document.body.append(a);
a.click();
a.remove();
setTimeout(() => URL.revokeObjectURL(url), 10_000);
}
// --- A new version waiting (calm-refresh.md) ----------------------------
// The worker is registered here so the page hears when a new version has installed
// and waits. It is offered, never swapped in by itself (U2). In the apps there is no
// worker: this registerSW does nothing, and a new version comes as a new app.
let updateReady = $state(false);
const updateSW = registerSW({
onNeedRefresh: () => (updateReady = true),
onRegisterError: (error: unknown) => console.error('update: the service worker could not be registered', error)
});
const rose: RoseWiring = {
identity: () => (identity ??= findIdentity()),
loadCare: () => storage.loadCare(),
appendCare: async (event) => {
await storage.appendCare(event);
keepAfterCare();
},
sentences,
loadOpened: () => storage.loadOpened(),
appendOpened: (event) => storage.appendOpened(event),
// Another tab gave care, opened a petal or brought her back (two-tabs.md).
changes: (listener) => storage.onChange((what) => what === 'log' && listener()),
clientVersion: version,
deviceZone,
now: () => Date.now(),
pastKeys: () => storage.loadPastKeys(),
exportRose: (currentKey) => storage.exportRose(currentKey),
importRose: (file, currentKey) => storage.importRose(file, currentKey),
saveFile,
keeping,
installHint: /iPhone|iPad|iPod/.test(navigator.userAgent) && !installed()
};
</script>
<Shell {letter} />
<Shell {letter} {sunset} {rose} {updateReady} onrefresh={() => void updateSW(true)} />
+14
View File
@@ -1,2 +1,16 @@
/// <reference types="svelte" />
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pwa/client" />
/**
* Which shell the game was built for (vite.config.ts): `'web'` for the PWA, `'tauri'` for the
* Android, iOS and desktop apps. Read in App.svelte only, for wiring (CLAUDE.md §2).
*/
declare const __ROSEA_SHELL__: 'web' | 'tauri';
declare module 'virtual:rosea-library' {
import type { HopeSentence } from '@rosea/schema';
/** The verified hope library, bundled at build time after validate:library passed (day-sentence.md P5). */
const library: readonly HopeSentence[];
export default library;
}
+121 -79
View File
@@ -1,4 +1,7 @@
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { readdirSync, readFileSync } from 'node:fs';
import { join, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig, type Plugin } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
// A relative path, not '@rosea/schema', on purpose. Vite bundles a config's
@@ -6,6 +9,18 @@ import { VitePWA } from 'vite-plugin-pwa';
// load a workspace package's .ts source, so `vite build` and `svelte-check` both
// failed to load this file. The constants module is pure and dependency-free.
import { PRODUCT_NAME, PRODUCT_SHORT_NAME } from '../../packages/schema/src/constants.js';
import { CSP } from './csp.js';
/**
* Two builds of one game (CLAUDE.md §2, *Four versions*; tauri-platforms.md D2).
* - the PWA (default mode): base `/Rosea/`, a service worker, the web manifest, the CSP
* in a <meta> tag, into `dist/`;
* - the Tauri shell's copy (`--mode tauri`): base `/`, because Tauri serves the game at the
* root of its own origin; no worker and no manifest, because the files are already on
* the device; no <meta> CSP, because Tauri delivers the same policy and a page that
* carries both obeys both; into `dist-tauri/`, so the two can never be mixed up.
*/
type Shell = 'web' | 'tauri';
/**
* GitHub Pages serves a project site at `/<repo>/`, not `/` (CLAUDE.md §8). Vite
@@ -13,95 +28,122 @@ import { PRODUCT_NAME, PRODUCT_SHORT_NAME } from '../../packages/schema/src/cons
* derive from this one value, so they cannot disagree. The e2e and offline
* suites serve the build under the same prefix.
*/
const BASE = process.env['ROSEA_BASE'] ?? '/Rosea/';
if (!BASE.startsWith('/') || !BASE.endsWith('/')) {
throw new Error(`ROSEA_BASE must start and end with '/', got '${BASE}'`);
function baseFor(shell: Shell): string {
const base = process.env['ROSEA_BASE'] ?? (shell === 'tauri' ? '/' : '/Rosea/');
if (!base.startsWith('/') || !base.endsWith('/')) {
throw new Error(`ROSEA_BASE must start and end with '/', got '${base}'`);
}
return base;
}
/**
* The content-security policy. GitHub Pages cannot send headers, so it lives in
* a <meta> tag (CLAUDE.md §8). It is injected into the BUILT page only, because
* the dev server injects inline <style> for hot reload and `style-src 'self'`
* The content-security policy (`csp.ts`). GitHub Pages cannot send headers, so the PWA
* carries it in a <meta> tag (CLAUDE.md §8). It is injected into the BUILT page only,
* because the dev server injects inline <style> for hot reload and `style-src 'self'`
* would blank it. E2E runs against the build, where the policy is real.
*
* `'self'` everywhere and nothing else: no CDN, no font host, no analytics
* (CLAUDE.md §4). `frame-ancestors` is ignored in a meta tag and is omitted
* rather than pretended.
*/
const CSP = [
"default-src 'self'",
"script-src 'self'",
"style-src 'self'",
"img-src 'self' data:",
"font-src 'self'",
"connect-src 'self'",
"manifest-src 'self'",
"worker-src 'self'",
"object-src 'none'",
"base-uri 'self'",
"form-action 'none'"
].join('; ');
function contentSecurityPolicy(): Plugin {
return {
name: 'rosea-csp',
apply: 'build',
transformIndexHtml: {
order: 'post',
handler: () => [
{ tag: 'meta', attrs: { 'http-equiv': 'Content-Security-Policy', content: CSP }, injectTo: 'head-prepend' }
]
name: 'rosea-csp',
apply: 'build',
transformIndexHtml: {
order: 'post',
handler: () => [
{ tag: 'meta', attrs: { 'http-equiv': 'Content-Security-Policy', content: CSP }, injectTo: 'head-prepend' }
]
}
};
}
/**
* The hope library, bundled at build time as `virtual:rosea-library`
* (day-sentence.md P5). The build script runs `validate:library` first and stops if
* it fails, so the app holds exactly what passed and never validates in the browser
* (GAP_ANALYSIS G0.12: Ajv needs `new Function`, which the CSP forbids).
* `ROSEA_LIBRARY_DIR` swaps the folder, for the e2e build only.
*/
const LIBRARY_DIR = resolve(fileURLToPath(new URL('../..', import.meta.url)), process.env['ROSEA_LIBRARY_DIR'] ?? 'content/library');
function hopeLibrary(): Plugin {
const id = 'virtual:rosea-library';
const resolved = `\0${id}`;
return {
name: 'rosea-library',
resolveId: (source) => (source === id ? resolved : undefined),
load(source) {
if (source !== resolved) return undefined;
const entries: unknown[] = [];
for (const file of readdirSync(LIBRARY_DIR).filter((f) => f.endsWith('.json')).sort()) {
const path = join(LIBRARY_DIR, file);
this.addWatchFile(path);
const data: unknown = JSON.parse(readFileSync(path, 'utf8'));
if (!Array.isArray(data)) throw new Error(`${path}: must be an array of entries`);
entries.push(...data);
}
return `export default ${JSON.stringify(entries)};`;
}
};
}
// Nothing binds to anything but 127.0.0.1 (CLAUDE.md §5.7).
export default defineConfig({
base: BASE,
plugins: [
svelte(),
contentSecurityPolicy(),
VitePWA({
strategies: 'generateSW',
// Never swap a running app silently. A new worker waits until the player
// is offered a calm refresh control (CLAUDE.md §8, GAP_ANALYSIS G0.10).
registerType: 'prompt',
// An emitted registerSW.js file, not an inline snippet: the CSP has no
// 'unsafe-inline' for scripts.
injectRegister: 'script',
manifest: {
// The web manifest: one of the three places the name lives, built from
// the constants in @rosea/schema so the strings exist only there.
name: PRODUCT_NAME,
short_name: PRODUCT_SHORT_NAME,
description: 'A rose to tend, a fox to befriend, and the time we give to people.',
id: BASE,
start_url: BASE,
scope: BASE,
display: 'standalone',
orientation: 'portrait',
background_color: '#fbf6f1',
theme_color: '#b4485e',
icons: [{ src: 'icon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' }]
},
workbox: {
// The cache name never contains the build hash; Workbox invalidates
// per entry from the precache manifest's revisions.
cacheId: 'rosea',
globPatterns: ['**/*.{js,css,html,svg,webmanifest}'],
navigateFallback: 'index.html',
// No runtime caching: the app makes no request it was not asked to make.
runtimeCaching: [],
cleanupOutdatedCaches: true,
// The first worker controls the page that registered it, so a player who
// opens the link once and loses signal still has the app.
clientsClaim: true,
skipWaiting: false
},
devOptions: { enabled: false }
})
],
server: { host: '127.0.0.1', strictPort: true },
preview: { host: '127.0.0.1', strictPort: true },
build: { target: 'es2022', sourcemap: true }
export default defineConfig(({ mode }) => {
const shell: Shell = mode === 'tauri' ? 'tauri' : 'web';
const BASE = baseFor(shell);
return {
base: BASE,
// The one way the game knows which shell it is in, read in App.svelte only (CLAUDE.md §2).
define: { __ROSEA_SHELL__: JSON.stringify(shell) },
plugins: [
svelte(),
...(shell === 'web' ? [contentSecurityPolicy()] : []),
hopeLibrary(),
VitePWA({
// Off in the shell: `virtual:pwa-register` then gives a registerSW that does nothing,
// and no worker, manifest or register script is emitted (tauri-platforms.md D2).
disable: shell === 'tauri',
strategies: 'generateSW',
// Never swap a running app silently. A new worker waits until the player
// is offered a calm refresh control (CLAUDE.md §8, GAP_ANALYSIS G0.10).
registerType: 'prompt',
// The app registers the worker itself through virtual:pwa-register, so it hears
// when a new version is waiting (calm-refresh.md U1). Bundled, not inline: the
// CSP has no 'unsafe-inline' for scripts.
injectRegister: false,
manifest: {
// The web manifest: one of the three places the name lives, built from
// the constants in @rosea/schema so the strings exist only there.
name: PRODUCT_NAME,
short_name: PRODUCT_SHORT_NAME,
description: 'A rose to tend, a fox to befriend, and the time we give to people.',
id: BASE,
start_url: BASE,
scope: BASE,
display: 'standalone',
orientation: 'portrait',
background_color: '#fbf6f1',
theme_color: '#b4485e',
icons: [{ src: 'icon.svg', sizes: 'any', type: 'image/svg+xml', purpose: 'any' }]
},
workbox: {
// The cache name never contains the build hash; Workbox invalidates
// per entry from the precache manifest's revisions.
cacheId: 'rosea',
globPatterns: ['**/*.{js,css,html,svg,webmanifest}'],
navigateFallback: 'index.html',
// No runtime caching: the app makes no request it was not asked to make.
runtimeCaching: [],
cleanupOutdatedCaches: true,
// The first worker controls the page that registered it, so a player who
// opens the link once and loses signal still has the app.
clientsClaim: true,
skipWaiting: false
},
devOptions: { enabled: false }
})
],
server: { host: '127.0.0.1', strictPort: true },
preview: { host: '127.0.0.1', strictPort: true },
// The shell's copy has no source maps: they would ship inside every installer and APK.
build: { target: 'es2022', sourcemap: shell === 'web', outDir: shell === 'tauri' ? 'dist-tauri' : 'dist' }
};
});
+63 -24
View File
@@ -13,6 +13,14 @@ A picture that is off-style goes back for another try. It is never shipped.
> **The fox and the Phase 2–3 pictures** (F1–F4 in §0, §3a, the new rows in §2 and §4, review
> points 8–9) were added later the same day and **approved by Mark** with one change: the fox's
> coat is a deep red-orange, not the drafted muted russet.
>
> **Rewritten 2026-11-07, at Mark's request.** The first `rose-sheet` came back as wet, pale
> watercolour with a smiley face on a round ball inside the petals: a children's sticker sheet,
> and the opposite of S1. Mark did not like it. The choices S1–S5 stand; the words that carry
> them were too weak. §1 now leads with the look and says it positively, §3 puts the face *on*
> the petals, and §6 makes prompts short enough for a generator to follow. The book's motifs
> are no longer named in prompts (naming them invites them); they stay in §4 and §7, where the
> review catches them. The picture list grew to every picture Phases 1–5 need (§4).
---
@@ -39,17 +47,21 @@ A picture that is off-style goes back for another try. It is never shipped.
## 1. The system prompt (paste word for word)
> Soft, hand-made 2D storybook illustration painted in matte gouache with a gentle dry-brush
> texture on warm off-white paper. Simple rounded shapes built from flat, soft colour areas with
> two or three gentle tonal steps; no wet watercolour blooms, no thin scratchy pen line. Outlines
> are soft, slightly irregular brush lines in deep plum-brown, never pure black, never a hard
> vector line. Light is low and warm, as late in the day, coming from the left. The mood is
> quiet, tender and hopeful, with generous calm space that never feels empty or bleak.
> Characters are cute but alive, with small gentle eyes, often half-closed, and tiny mouths. No
> text, letters or numbers anywhere in the image. No humans, no human figures, hands or faces,
> no photographs, no logos, no brand characters. No 3D render look, no glossy highlights, no lens
> effects, no gradients that look digital. Original artwork, not in the style of any existing
> book, illustrator or film.
> A hand-painted picture in opaque, matte gouache on warm off-white paper, for a quiet game made
> for grown-ups. Flat, chalky areas of colour with visible dry-brush strokes and the grain of the
> paper showing through; two or three soft tonal steps in each shape, no smooth blending.
> Every form is edged with a soft brush line in deep plum-brown that swells and thins, slightly
> uneven, as a painter's line does. Simple, confident shapes with a clear silhouette that still
> reads when the picture is small. Low, warm evening light from the left: each form has a warm
> lit side and a cooler, slightly violet shaded side. A restrained palette of dusty rose, sage,
> moss green, honey and warm umber; amber gold and coral appear only in evening light. The mood is
> calm, tender and quietly hopeful, with a little dry humour, like a page from a finely printed
> book for adults: understated, never sugary, never a children's sticker or a cute mascot.
> Characters are alive but small-featured: their faces are a few tiny marks painted directly on
> them, with eyes as small dark dots or crescents, often half-closed. No text, letters or numbers
> anywhere. No people, hands or human faces. Not watercolour: no wet washes, bleeding edges, blooms or
> pale tints. Not digital: no 3D rendering, gloss, airbrush gradients or lens effects. An
> original design, in the manner of no existing artist, book or film.
---
@@ -94,10 +106,16 @@ The rose is the only character in Phase 1. Every rose picture follows the charac
- **One garden rose** on a single slender stem. She is about three blooms tall, from the bloom
down to where the stem meets the soil. She has three leaves, two low and one high, and a few
small thorns with rounded tips. The thorns are part of her and never look threatening.
- **The bloom is her head.** It is made of soft, layered petals in rose (`#C85A6E`) that turn
pale petal (`#F2B5BE`) at the edges. Her face sits in the middle of the bloom: two small dark
eyes, often half-closed, and a tiny mouth. When she is tended, a faint blush (`#E8899B`) shows
on the petals by her cheeks.
- **The bloom is her head.** It is a real old garden rose: cupped, many-petalled, the outer
petals curling back, in rose (`#C85A6E`) turning pale petal (`#F2B5BE`) at the edges. It is
her head by its posture, not by a drawn-in head.
- **Her face is painted on the petals** at the heart of the bloom, where the inner petals fold
together: two tiny dark eyes (dots or crescents, often half-closed) and a short mouth curve,
the whole face no wider than a fifth of the bloom. **There is no round face, ball or bare
patch inside the petals**: the petals curl round the face as they would round the heart of a
real rose. When she is tended, a faint blush (`#E8899B`) warms the petals beside her eyes.
- **Proportions:** the bloom is about as wide as a third of her height; the stem is slender but
strong enough to hold it up proudly.
- **A little vain.** She holds her head high and keeps her petals neat. Her leaves move like
small arms: one raised when she speaks, both lowered when she is thirsty.
- **Stages:** a tight bud, an opening bud, a half bloom and a full bloom. Each stage has the same
@@ -106,7 +124,8 @@ The rose is the only character in Phase 1. Every rose picture follows the charac
closed a little, eyes looking down. She is never wilted, broken, crying, dead or losing
petals in pain. Fallen petals are a care task, not damage.
- **Expressions:** content, sleepy, blushing, speaking, thirsty, too much water, windblown,
waiting. Never angry, crying hard, frightened or hurt.
waiting, tickled (a touch), and *gently* (a rush of touches: one leaf raised, calm, never
cross — thorns.md). Never angry, crying hard, frightened or hurt.
---
@@ -157,6 +176,18 @@ The fox is the second character. Every fox picture follows the character sheet `
- **Paths and lanterns (Phase 3, F4):** a path through the meadow grows from paw prints, to a
trodden trail, to a soft earth road edged with stones. A lantern is a small iron-and-glass
hand lantern hanging from a shepherd's-crook post, never a street lamp.
- **The planets (Phase 2, drafts).** Each lonely grown-up has a small place of their own: a
grassy hilltop seen from the side, its edge dropping away below — never a ball or a sphere.
**The grown-up is never drawn**; the place shows who lives there, and the emptiness is the
point. The pictures are drafts until each planet's feature doc decides it. The sixth
grown-up's place is left out on purpose until its feature doc decides how it can be shown
gently.
- **Visitors and mementos (Phase 2):** small garden creatures that come by (a hedgehog, a robin
at dawn, a snail, a moth, a ladybird, a small owl) and the small things they leave.
- **The shared sky (Phase 4):** the sky is code; only small lights and the lamps of the
sunset wave are pictures.
- **The share frame (Phase 5):** a border of meadow round an empty middle where the player's
sky is drawn.
- No flags, religious symbols, buildings, vehicles or people.
---
@@ -185,15 +216,22 @@ of those sizes.
The art board writes every prompt. Nobody types them by hand. Each prompt is §1, then:
```
Asset: <id>
Purpose: <where it appears and what it must say, in one sentence>
Subject: <who or what, with the character sheet to attach>
Setting / Canvas / Layout: <by kind: see §5 and §9>
Size: <made at W × H px, background>
Must include: <…>
Must avoid: <the picture's own list, then the list every picture shares (§4)>
Make: <what kind of image, in one plain sentence>
Reference: <the character sheet to attach, and to match exactly> (character pictures only)
Subject: <who or what, and the character's look>
Setting / Layout: <the scene, or the grid in words: columns, rows, gaps>
Canvas: <W × H px, background>
Include: <…>
Avoid: <a short list: the picture's own, then the few every picture shares>
Board id: <id>
```
Why this shape (2026-11-07): generators follow the first lines and drift on the rest. So the
look comes first (§1), the picture second, and nothing a generator cannot use: no pixel
coordinates (the board's cutting overlay and `art:accept` keep those), and no long lists of
things not to draw. Naming a motif, even to forbid it, makes it likelier; the book's motifs are
therefore checked in review (§4, §7), not written into prompts.
`tools/art-prep` builds the prompts from `art/manifest.json` (`pnpm art:board`), and a test
checks that each one starts with §1 word for word.
@@ -204,7 +242,8 @@ checks that each one starts with §1 word for word.
The board shows these under each card, and Claude's review checks them. Mark doesn't have to
tick them: *Accept* is one tap.
0. It reads as one living garden rose with a soft face in her bloom: small eyes, a tiny mouth.
0. It reads as one living garden rose, her face a few tiny marks painted on her inner petals,
with no round ball face, and calm enough for grown-ups, not a sticker.
1. She matches `rose-sheet`: the same bloom, petal colours, three leaves and rounded thorns.
2. The colours stay within §2, with soft plum-brown outlines, in matte gouache, not wet watercolour.
3. Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no
+1269 -142
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<!-- Stand-in for app-icon-maskable (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<rect width="1024" height="1024" fill="#e9846a"/><rect y="512" width="1024" height="512" fill="#f2b860" opacity=".6"/> <circle cx="512" cy="512" r="307.2" fill="none" stroke="#fbf6f1" stroke-width="4" stroke-dasharray="16 12"/> <svg x="256" y="225.28" width="512" height="573.44" viewBox="0 30 200 230"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 2.3 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 care-props-more-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><ellipse cx="100" cy="160" rx="80" ry="22" fill="#8a6248" opacity=".85"/><path d="M70 160 l-14 -40 l12 10 l2 -22 l8 18 l10 -16 l-4 44z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M100 160 l-14 -50 l12 10 l2 -27 l8 18 l10 -16 l-4 52z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M130 160 l-14 -60 l12 10 l2 -32 l8 18 l10 -16 l-4 60z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="768" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><g transform="rotate(24 100 110)"><rect x="70" y="80" width="90" height="80" rx="18" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/><path d="M80 80 q35 -55 70 0" fill="none" stroke="#3a2730" stroke-width="7"/><path d="M72 110 L32 70" stroke="#3a2730" stroke-width="10" stroke-linecap="round"/></g><path d="M24 66 q-6 40 -4 90" fill="none" stroke="#9cc3d8" stroke-width="6" stroke-linecap="round"/><circle cx="16" cy="170" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/><circle cx="30" cy="182" r="5" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/></g></svg><svg x="0" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><path d="M20 60 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><path d="M20 100 q60 -30 110 0 t60 -10" fill="none" stroke="#f3e3c8" stroke-width="10" stroke-linecap="round"/><path d="M20 140 q60 -30 110 0 t60 -10" fill="none" stroke="#f2b5be" stroke-width="10" stroke-linecap="round"/><ellipse cx="150" cy="70" rx="16" ry="7" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 150 70)"/><ellipse cx="80" cy="150" rx="14" ry="6" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(20 80 150)"/></g></svg><svg x="768" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><path d="M70 57.599999999999994 q14 22.400000000000002 0 36.4 q-14 -14 0 -36.4z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M120 54 q10 16 0 26 q-10 -10 0 -26z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M100 94.4 q16 25.6 0 41.6 q-16 -16 0 -41.6z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M140 115.6 q9 14.4 0 23.400000000000002 q-9 -9 0 -23.400000000000002z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M60 127.2 q8 12.8 0 20.8 q-8 -8 0 -20.8z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<!-- Stand-in for favicon-mark (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<rect width="1024" height="1024" fill="#f2b860"/><circle cx="686.1" cy="512.0" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="599.0" cy="662.8" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="425.0" cy="662.8" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="337.9" cy="512.0" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="425.0" cy="361.2" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="599.0" cy="361.2" r="174.08" fill="#c85a6e" stroke="#3a2730" stroke-width="12"/><circle cx="512" cy="512" r="163.84" fill="#f2b5be" stroke="#3a2730" stroke-width="12"/>
</svg>

After

Width:  |  Height:  |  Size: 919 B

+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 foxes-meeting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(409.6 153.6) scale(3.5840)"><svg x="0" y="50" width="200" height="100" viewBox="0 0 600 260"><g transform="translate(300 0) scale(-1 1)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g><g transform="translate(300 0)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g></svg></g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<!-- Stand-in for geographers-book (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(153.6 153.6) scale(3.5840)"><path d="M20 70 q40 -14 80 0 q40 -14 80 0 v90 q-40 -14 -80 0 q-40 -14 -80 0z" fill="#fbf6f1" stroke="#3a2730" stroke-width="5"/><path d="M100 70 v90" stroke="#3a2730" stroke-width="3"/><path d="M16 66 v100 h168 v-100" fill="none" stroke="#4f6e52" stroke-width="8"/><path d="M34 92 h52 M114 92 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M34 110 h52 M114 110 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M34 128 h52 M114 128 h52" stroke="#d8cfc4" stroke-width="2"/><path d="M120 160 v30 l6 -8 l6 8 v-30" fill="#f2b860" stroke="#3a2730" stroke-width="2"/></g>
</svg>

After

Width:  |  Height:  |  Size: 852 B

+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 letter-header (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(409.6 153.6) scale(3.5840)"><rect x="20" y="60" width="160" height="110" rx="6" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M40 70 h120 v90 h-120z" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><path d="M100 70 v90" stroke="#3a2730" stroke-width="2"/><ellipse cx="128" cy="110" rx="18" ry="11" fill="#c85a6e" stroke="#3a2730" stroke-width="3" transform="rotate(-25 128 110)"/><path d="M60 150 q20 -40 40 -60" fill="none" stroke="#4f6e52" stroke-width="4"/></g>
</svg>

After

Width:  |  Height:  |  Size: 734 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-acorn-cup (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M50 100 q50 70 100 0z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 h100" stroke="#3a2730" stroke-width="4"/><path d="M100 100 v-30" stroke="#5a3a33" stroke-width="6"/></g>
</svg>

After

Width:  |  Height:  |  Size: 484 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-feather (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M40 160 Q 100 30 170 40 Q 130 120 40 160z" fill="#b8b0a8" stroke="#3a2730" stroke-width="4"/><path d="M40 160 Q 110 90 170 40" fill="none" stroke="#e9846a" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 466 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-pebble (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="70" ry="46" fill="#c9c4bc" stroke="#3a2730" stroke-width="4"/><path d="M50 100 q50 20 100 4" fill="none" stroke="#fbf6f1" stroke-width="5"/></g>
</svg>

After

Width:  |  Height:  |  Size: 453 B

@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-pressed-flower (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 170 V 90" stroke="#4f6e52" stroke-width="5"/><ellipse cx="80" cy="140" rx="18" ry="8" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 80 140)"/><circle cx="122.0" cy="70.0" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="90.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="82.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="57.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="49.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="70" r="8" fill="#f2b860"/></g>
</svg>

After

Width:  |  Height:  |  Size: 946 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-seed-head (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 190 V 100" stroke="#4f6e52" stroke-width="5"/><circle cx="100" cy="80" r="50" fill="#fbf6f1" stroke="#3a2730" stroke-width="3" stroke-dasharray="4 6"/><path d="M100 80 l46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/></g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for memento-snail-shell (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="105" r="56" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M100 105 m-34 0 a34 34 0 1 1 34 34 a18 18 0 1 1 -18 -18" fill="none" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 483 B

+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 mementos-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M40 160 Q 100 30 170 40 Q 130 120 40 160z" fill="#b8b0a8" stroke="#3a2730" stroke-width="4"/><path d="M40 160 Q 110 90 170 40" fill="none" stroke="#e9846a" stroke-width="3"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="70" ry="46" fill="#c9c4bc" stroke="#3a2730" stroke-width="4"/><path d="M50 100 q50 20 100 4" fill="none" stroke="#fbf6f1" stroke-width="5"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M50 100 q50 70 100 0z" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 h100" stroke="#3a2730" stroke-width="4"/><path d="M100 100 v-30" stroke="#5a3a33" stroke-width="6"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="105" r="56" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M100 105 m-34 0 a34 34 0 1 1 34 34 a18 18 0 1 1 -18 -18" fill="none" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 170 V 90" stroke="#4f6e52" stroke-width="5"/><ellipse cx="80" cy="140" rx="18" ry="8" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 80 140)"/><circle cx="122.0" cy="70.0" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="90.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="82.9" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="82.2" cy="57.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="106.8" cy="49.1" r="16" fill="#a9c1e0" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="70" r="8" fill="#f2b860"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 190 V 100" stroke="#4f6e52" stroke-width="5"/><circle cx="100" cy="80" r="50" fill="#fbf6f1" stroke="#3a2730" stroke-width="3" stroke-dasharray="4 6"/><path d="M100 80 l46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-46.0 0.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l-14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l14.2 -43.7" stroke="#d8d4cc" stroke-width="2"/><path d="M100 80 l37.2 -27.0" stroke="#d8d4cc" stroke-width="2"/></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<!-- Stand-in for petal-trace (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(153.6 153.6) scale(3.5840)"><path d="M100 30 C 175 55, 170 165, 100 175 C 35 165, 30 60, 100 30z" fill="#f3e3c8" stroke="#3a2730" stroke-width="5"/><path d="M100 50 q20 50 0 110" fill="none" stroke="#e0cfb2" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 483 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for planet-businessman (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-130" y="-80" width="260" height="20" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M-120 -60 v60 M120 -60 v60" stroke="#3a2730" stroke-width="8"/><rect x="-100" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-152" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-100" y="-166" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="-60" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-96" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-110" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-124" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-138" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-152" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-166" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="40" y="-180" width="50" height="12" fill="#fbf6f1" stroke="#3a2730" stroke-width="2"/><rect x="100" y="-120" width="40" height="40" fill="#5a3a33" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for planet-geographer (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-150" y="-80" width="300" height="20" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M-130 -60 v60 M130 -60 v60" stroke="#3a2730" stroke-width="8"/><path d="M-90 -80 q50 -20 90 0 q40 -20 90 0 v-50 q-50 -20 -90 0 q-40 -20 -90 0z" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="120" cy="-100" r="16" fill="none" stroke="#3a2730" stroke-width="4"/></g>
</svg>

After

Width:  |  Height:  |  Size: 853 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for planet-king (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-60" y="-150" width="120" height="150" rx="14" fill="#7a4f6e" stroke="#3a2730" stroke-width="5"/><path d="M-30 -60 l10 -24 l20 14 l20 -14 l10 24z" fill="#f2b860" stroke="#3a2730" stroke-width="3"/><path d="M60 0 q120 30 260 120" fill="none" stroke="#7a4f6e" stroke-width="26"/></g>
</svg>

After

Width:  |  Height:  |  Size: 752 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for planet-lamplighter (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><g transform="translate(-100 -390)"><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g><path d="M60 0 L 120 -260" stroke="#b98a5a" stroke-width="10"/></g>
</svg>

After

Width:  |  Height:  |  Size: 861 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for planet-vain (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 982 Q 204.8 922 512 912 T 1024 982 V 1536z" fill="#a9c48e" stroke="#3a2730" stroke-width="5"/><path d="M0 1416 H 1024" stroke="#fbf6f1" stroke-width="240" opacity=".5"/><g transform="translate(512 918) scale(1.8)"><rect x="-140" y="-200" width="80" height="200" rx="40" fill="#d9e2e6" stroke="#f2b860" stroke-width="10"/><ellipse cx="80" cy="-10" rx="90" ry="22" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M10 -60 v60 M150 -60 v60" stroke="#f2b860" stroke-width="8"/><path d="M10 -55 q70 30 140 0" fill="none" stroke="#7a4f6e" stroke-width="8"/></g>
</svg>

After

Width:  |  Height:  |  Size: 813 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
<!-- Stand-in for rose-gentle (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(6 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><circle cx="91" cy="124" r="4.5" fill="#3a2730"/><circle cx="109" cy="124" r="4.5" fill="#3a2730"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
<!-- Stand-in for rose-tickled (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

+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 rose-touch-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></g></svg><svg x="768" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(234.3 122.9) scale(1.4966)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(6 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><circle cx="91" cy="124" r="4.5" fill="#3a2730"/><circle cx="109" cy="124" r="4.5" fill="#3a2730"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
<!-- Stand-in for share-frame (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<path d="M0 1536 V 844.8000000000001 Q 61.44 1075.1999999999998 102.4 1152 Q 512 1075.1999999999998 921.6 1152 Q 962.56 1075.1999999999998 1024 844.8000000000001 V 1536z" fill="#3c4a6a" stroke="#3a2730" stroke-width="5"/><path d="M0 1320.96 Q 512 1228.8000000000002 1024 1320.96" stroke="#46557a" stroke-width="60" fill="none"/><circle cx="204.8" cy="1290.24" r="8" fill="#f4d58d"/><circle cx="716.8" cy="1259.52" r="8" fill="#f4d58d"/>
</svg>

After

Width:  |  Height:  |  Size: 665 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
<!-- Stand-in for sky-light (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 332.8) scale(1.7920)"><circle cx="100" cy="100" r="80" fill="#f4d58d" opacity=".3"/><circle cx="100" cy="100" r="40" fill="#f4d58d" opacity=".7"/><circle cx="100" cy="100" r="16" fill="#fbf6f1"/></g>
</svg>

After

Width:  |  Height:  |  Size: 453 B

+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 sky-lights-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(76.8 332.8) scale(1.7920)"><circle cx="100" cy="100" r="80" fill="#f4d58d" opacity=".3"/><circle cx="100" cy="100" r="40" fill="#f4d58d" opacity=".7"/><circle cx="100" cy="100" r="16" fill="#fbf6f1"/></g></svg><svg x="512" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="1024" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><circle cx="100" cy="70" r="56" fill="#f4d58d" opacity=".45"/><path d="M100 390 V 110" stroke="#5a3a33" stroke-width="12"/><path d="M80 390 h40" stroke="#3a2730" stroke-width="8"/><path d="M76 110 h48 l-8 -60 h-32z" fill="#f4d58d" stroke="#3a2730" stroke-width="5"/><path d="M70 50 h60 l-30 -24z" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-hedgehog (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="120" rx="62" ry="40" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="54" cy="128" rx="26" ry="20" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><circle cx="30" cy="130" r="5" fill="#3a2730"/><circle cx="50" cy="120" r="3.5" fill="#3a2730"/><path d="M90 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M103 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M116 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M129 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M142 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M155 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M168 86 l6 -18 l6 18" fill="#5a3a33"/></g>
</svg>

After

Width:  |  Height:  |  Size: 893 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-ladybird (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="60" ry="50" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><path d="M100 60 v100" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="64" r="22" fill="#3a2730"/><circle cx="74" cy="100" r="9" fill="#3a2730"/><circle cx="126" cy="100" r="9" fill="#3a2730"/><circle cx="80" cy="135" r="9" fill="#3a2730"/><circle cx="120" cy="135" r="9" fill="#3a2730"/></g>
</svg>

After

Width:  |  Height:  |  Size: 673 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-moth (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 100 q-70 -60 -80 10 q20 40 80 0z M100 100 q70 -60 80 10 q-20 40 -80 0z" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="110" rx="9" ry="30" fill="#b98a5a" stroke="#3a2730" stroke-width="3"/><circle cx="62" cy="96" r="9" fill="#f4d58d"/><circle cx="138" cy="96" r="9" fill="#f4d58d"/><path d="M96 82 q-10 -24 -26 -30 M104 82 q10 -24 26 -30" fill="none" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 705 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-owl (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="115" rx="56" ry="66" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="135" rx="34" ry="38" fill="#f3e3c8"/><path d="M76 84 q8 6 16 0 M108 84 q8 6 16 0" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M96 96 l4 8 l4 -8z" fill="#f2b860"/><path d="M50 60 l14 14 M150 60 l-14 14" stroke="#3a2730" stroke-width="5"/></g>
</svg>

After

Width:  |  Height:  |  Size: 643 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-robin (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="110" rx="50" ry="40" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><circle cx="74" cy="92" r="26" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><ellipse cx="86" cy="116" rx="26" ry="24" fill="#e9846a"/><path d="M48 92 l-16 4 l16 4z" fill="#b98a5a" stroke="#3a2730" stroke-width="2"/><circle cx="68" cy="86" r="3.5" fill="#3a2730"/><path d="M150 106 l34 -8 l-10 22z" fill="#8a7a52" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 727 B

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
<!-- Stand-in for visitor-snail (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="120" cy="105" r="42" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M120 105 m-26 0 a26 26 0 1 1 26 26 a14 14 0 1 1 -14 -14" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M30 150 h150 q-10 -14 -40 -14 h-70 q-30 -10 -40 -40" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><path d="M42 98 l-6 -26 M54 100 l2 -26" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 664 B

+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 visitors-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="120" rx="62" ry="40" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="54" cy="128" rx="26" ry="20" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><circle cx="30" cy="130" r="5" fill="#3a2730"/><circle cx="50" cy="120" r="3.5" fill="#3a2730"/><path d="M90 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M103 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M116 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M129 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M142 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M155 86 l6 -18 l6 18" fill="#5a3a33"/><path d="M168 86 l6 -18 l6 18" fill="#5a3a33"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="110" cy="110" rx="50" ry="40" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><circle cx="74" cy="92" r="26" fill="#8a7a52" stroke="#3a2730" stroke-width="4"/><ellipse cx="86" cy="116" rx="26" ry="24" fill="#e9846a"/><path d="M48 92 l-16 4 l16 4z" fill="#b98a5a" stroke="#3a2730" stroke-width="2"/><circle cx="68" cy="86" r="3.5" fill="#3a2730"/><path d="M150 106 l34 -8 l-10 22z" fill="#8a7a52" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="120" cy="105" r="42" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><path d="M120 105 m-26 0 a26 26 0 1 1 26 26 a14 14 0 1 1 -14 -14" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M30 150 h150 q-10 -14 -40 -14 h-70 q-30 -10 -40 -40" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><path d="M42 98 l-6 -26 M54 100 l2 -26" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 100 q-70 -60 -80 10 q20 40 80 0z M100 100 q70 -60 80 10 q-20 40 -80 0z" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="110" rx="9" ry="30" fill="#b98a5a" stroke="#3a2730" stroke-width="3"/><circle cx="62" cy="96" r="9" fill="#f4d58d"/><circle cx="138" cy="96" r="9" fill="#f4d58d"/><path d="M96 82 q-10 -24 -26 -30 M104 82 q10 -24 26 -30" fill="none" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="110" rx="60" ry="50" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><path d="M100 60 v100" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="64" r="22" fill="#3a2730"/><circle cx="74" cy="100" r="9" fill="#3a2730"/><circle cx="126" cy="100" r="9" fill="#3a2730"/><circle cx="80" cy="135" r="9" fill="#3a2730"/><circle cx="120" cy="135" r="9" fill="#3a2730"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="100" cy="115" rx="56" ry="66" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><ellipse cx="100" cy="135" rx="34" ry="38" fill="#f3e3c8"/><path d="M76 84 q8 6 16 0 M108 84 q8 6 16 0" fill="none" stroke="#3a2730" stroke-width="3"/><path d="M96 96 l4 8 l4 -8z" fill="#f2b860"/><path d="M50 60 l14 14 M150 60 l-14 14" stroke="#3a2730" stroke-width="5"/></g></svg>
</svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

+4
View File
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
<!-- Stand-in for water-drops (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
<g transform="translate(204.8 76.8) scale(1.7920)"><path d="M70 57.599999999999994 q14 22.400000000000002 0 36.4 q-14 -14 0 -36.4z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M120 54 q10 16 0 26 q-10 -10 0 -26z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M100 94.4 q16 25.6 0 41.6 q-16 -16 0 -41.6z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M140 115.6 q9 14.4 0 23.400000000000002 q-9 -9 0 -23.400000000000002z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/><path d="M60 127.2 q8 12.8 0 20.8 q-8 -8 0 -20.8z" fill="#9cc3d8" stroke="#3a2730" stroke-width="3"/></g>
</svg>

After

Width:  |  Height:  |  Size: 842 B

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