# Rosea Domi — phase plan Working document. Lives at `docs/ROADMAP.md`. Companion to [`CLAUDE.md`](../CLAUDE.md) (the operating manual) and [`ART.md`](ART.md) (the illustration pipeline). --- ## 0. The thing to decide before anything else Rosea joins a queue that already holds NARTOR, Memoria, Ludus, Panda Domi and others. The failure mode is not "Rosea is a bad idea" — it is many products at 70%. So **Phases 0–1 are a spike, not a commitment**: the rose alone, the sunset, the library, offline, on a real phone. At the end of Phase 1 there is one honest question — *did the real sunset become part of my day?* — and a no is a legitimate answer that leaves a reusable sentence library and a sun module behind. Solo evenings-and-weekends pace. Durations are calendar estimates, not effort (assumption). --- ## 1. Naming `Rosea` — Latin *rose-coloured*: the colour of the sky at sunset and of the rose. Working name. In public always **Rosea Domi**; *Domi* never stands alone. Final name, trademark and domain checks are open (§6). The help section is **A Letter from the Gardener**. The discovery service is **Lucerna** (*lantern*). --- ## 2. What makes this different Most games for lonely people either pretend to be a friend or count everything. Rosea does neither. Its unit of value is **time given to someone else** — and its best moments send the player *away* from the screen: to the real sunset, the real sky, real people. Three consequences run through every phase: 1. **Growth comes from total care, never from a streak.** Nothing earned ever disappears. 2. **No free text, no counting of people.** Comfort is chosen from a curated library; friendship is shown as a path, never a number. 3. **Every beauty has a real twin.** Sunset, sunrise and constellations are real, computed on device. --- ## 3. Architecture in one paragraph A pnpm/Turbo monorepo in TypeScript. `packages/schema` holds the contracts and generates the types. `packages/engine` is pure — growth, taming, the shared sky, and the sun maths, with time as a parameter. `packages/content` holds the hope library and its validator. `packages/storage` is the only module that opens IndexedDB, `packages/identity` the only one that holds keys, `packages/sync` the only one that talks to friends (WebRTC, Phase 3). `apps/rosea` is a **Svelte 5 + Vite PWA** — web first, from a link, no store — built by GitHub Actions and hosted on **GitHub Pages**, with a Gitea mirror. **Rust** is used where it earns its place: `services/lucerna`, the optional anonymous discovery service (Axum + SQLite, Phase 4), and a **Tauri 2** shell (`apps/rosea-tauri`) that packages the same game as an Android app, an iOS app and a desktop app — the platform track below, from 2026-11-17; its local notifications without a server come in Phase 6. All player state is an append-only event log; every visible thing is a pure function of it. --- ## 4. Phases Each phase has a gate: a question with an observable answer. Failing it means the next phase does not start. ### Phase 0 — Foundations · ~1–2 weeks - Repo, `.gitignore`, the 5 MB pre-commit hook, remotes, `CLAUDE.md`, this roadmap, `ART.md`. - `packages/schema` with the hope-sentence and care-event contracts; the library validator with its **negative fixtures**; `lint:copy` with the forbidden-words list. - The first **60 sentences** of the library, each sourced and verified public domain. - **Art**: `art/STYLE.md` drafted with Mark, `art/manifest.json` for Phase 1 assets, Claude's SVG placeholders, and the **art preparation page** (`tools/art-prep`) working end to end on one asset. *Decided 2026-11-01:* the art preparation page is a private claude.ai art board, like Panda Domi's; `tools/art-prep` builds its files and moves accepted pictures into `art/final/` (`docs/ART.md` §3). - A slot for *A Letter from the Gardener* — the author writes it; agents only scaffold the page. - **Decision recorded:** how the sunset invitation reaches the player on the web (see the notification trap in `CLAUDE.md` §8). *Decided 2026-11-01:* on the web the invitation lives inside the app only — no push server; real local notifications come with the Tauri shell (Phase 6). **Gate:** `validate:library` passes on the 60 sentences and **fails on every negative fixture** with a message naming the problem; one illustration has gone through the full pipeline — prompt, paste, automatic checks, Claude's review, Mark's approval — into `art/final/`. ### Phase 1 — The rose alone · ~3–4 weeks · the spike - 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 (`docs/GAMEPLAY.md` §1–2, §4). - **The sun**: real local sunset and sunrise, on device; polar day/night handled. Location: 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.** A finer guess (country from IP or carrier) is an open idea — it costs a network call, so it must be weighed against local-first. - **The in-game sunset** — move the chair, watch it again — as comfort and rehearsal; it tells the player when the real one is tonight. - **The day's sentence comes from the rose** (`docs/GAMEPLAY.md` §1): she waits with a folded petal; sunset is the best moment to open it, but it is never lost and no streak exists. - Installable PWA, fully offline, `navigator.storage.persist()`, export-my-rose. - The offline Playwright suite. **Out of scope:** planets, fox, friends, any server. **Gate — the spike's real question.** Mark plays it daily for two weeks on his phone (the Android app from the platform track lets this start before the PWA is hosted). Then: *did he go and look at the real sunset without the game nagging him, and did the rose make him want to come back?* Yes on both is a go. Yes only on the second means a pleasant toy, not Rosea. No on both is a clean stop. ### Phase 2 — The planets and the fox · ~4–6 weeks - The planets of lonely grown-ups, one at a time, each designed in its own feature doc (they need not all work the same way). - The fox follows at a distance and comes closer through **how the player acts**; short taming at the end of the journey. His berries come from the wild bush beside the player's own rose (`docs/GAMEPLAY.md` §3), so nothing here needs another player. - Collections: visitors who leave mementos while the player is away; the "sheep album" of the rose's strange requests; rare visitors with hidden conditions (sunrise-only visitors among them). - The *Geographer's book* — optional, private numbers about the player's own time. **Gate:** a player who has never heard of the book finishes the first three planets and can say, in their own words, what one of them felt like. ### Phase 3 — Friends · ~4–6 weeks - Tending a friend's rose; their fox brings them a real trace (a petal in your colour) and, now and then, a comfort line **you chose from the library**. - Thanks as one optional gesture — their fox visits your rose. - Paths between roses: footprints → trail → road. - Friend-to-friend sync over WebRTC: care travels like letters and merges when devices meet. - Invite by link; no account. - Forgotten friends' roses ripen berries for the fox (`docs/GAMEPLAY.md` §3). - The bridge to Amicitia: once a path is a road, lanterns, and the device-to-device key swap (`docs/GAMEPLAY.md` §5). **Gate:** five friends, two weeks, no reminders from Mark. *Do they come back on their own, and does at least one of them describe a moment of being cared for?* ### Phase 4 — The shared sky · ~4–6 weeks · opt-in, separable - `services/lucerna` in Rust: anonymous traces only (coarse cell, day bucket, gesture, auto-delete). - The shared night sky made of **real constellations**; acts of care light it; a completed constellation opens a new planet for everyone. - The lamplighter's wave: lamps following the sunset around the globe. - Keeping an absent stranger's rose alive with light — anonymous, no contact. - The consent ladder toward strangers: traces → a light → foxes meet only if both agree. **Gate:** deleting `services/lucerna` leaves Phases 1–3 fully working, with no dead controls and no errors. ### Phase 5 — Real meetings and sharing · ~3–4 weeks - One shared daily moment for everyone, and a spoiler-free image of your sky to share. - Group meetings in public places only (in the spirit of community days); never one-to-one. - The yearly moment on the anniversary of the player's first day. **Gate:** a share image leaves the device containing nothing that identifies the player or anyone else. ### The platform track — four versions · from 2026-11-17, beside the phases *Decided by the author 2026-11-17:* Rosea Domi ships as **four versions from one Svelte codebase** — the PWA, an Android APK, an iOS app and a desktop app (Windows first; macOS and Linux when built on those systems). The three apps come from one **Tauri 2** shell, `apps/rosea-tauri`, which wraps the built game and adds nothing to it. This used to wait for Phase 6; it starts now, because the shell needs no new feature and an APK puts the Phase 1 spike on a phone without any hosting. Analysis: [`.agents/features/tauri-platforms.md`](../.agents/features/tauri-platforms.md). - The shell, a Windows desktop build and an Android debug APK, built on Mark's Windows machine and run on a real Android tablet. - The same privacy in every version: no network permission on Android while Rosea has no network feature, no cloud backup of the garden, the webviews' own reporting off, no SDK that counts anything. - **iOS** needs a Mac with Xcode and an Apple developer account. It waits for one; nothing in the code stops it. - macOS and Linux desktop builds, each on its own system; signed release builds; CI for the apps (G0.22). **Gate:** in each version that exists, the garden opens with the network off, a watered rose is still watered after the app is closed and opened again, and the app sends nothing. ### Phase 6 — Stores and money · ongoing - Store listings: Google Play, the App Store, perhaps the Microsoft Store — their texts pass `lint:copy` like every other word. - Local sunset notifications through the shell's notification plugin, without a server. - Monetisation — **not decided** (§6). Constraints already set: tending others is always free; no ads, no subscription-only, no sale of data. --- ## 5. Risks, stated as risks | Risk | Why it could kill this | What reduces it | |:--|:--|:--| | **It makes a lonely person feel worse** | Guilt, comparison or an unanswered gesture hurts most the people this is for. | The Soul section in every review; `soul.md`; no counts, no streaks, no neglect notifications. | | **Cold start** | Phases 3–5 need people; Mark will have few players for months. | Phases 1–2 must stand alone; the fox's path to people comes after the game is already worth playing. | | **Content volume** | 365 sourced sentences and many planets is a lot of careful work. | Start with 60 sentences; library grows by tradition; the validator keeps quality. | | **Web notifications** | The sunset invitation may need a push server on the web, with a privacy cost. | Decided in Phase 0; the Tauri shell later removes the server. | | **Four versions, one author** | Every platform has its own traps (webviews that phone home, cloud backups, evictable storage), and iOS needs a Mac. | One codebase; the shell adds a window and nothing else; one test suite for the game, the shell's own checks for its config; iOS waits for a Mac rather than being half-done. | | **Copyright** | The book and Tolkien are protected; a too-close image or line is a legal problem. | Forbidden-names lint; likeness check in the art pipeline; ideas only. | | **Medical-device scope** | Wellbeing claims can pull the app under medical rules. | Forbidden words in all copy, store text included. | | **Safety around strangers** | Lonely people are the people a scammer looks for. | No free text, ever; consent ladder; group meetings in public only. | | **One more product** | It competes for the same evenings as everything else in Domi. | The Phase 1 gate, treated as a real decision. | --- ## 6. Open questions - **The sunrise mechanic** beyond sunrise-only visitors. - **The visual style.** Decided with Mark in `art/STYLE.md` before any final art is generated. - **The final name**, trademark and domain checks for Rosea Domi. - **Money.** Only the constraints are fixed (Phase 6). - **The Letter from the Gardener** — written by the author; its philosophy is his and is signed by him.