[docs] Roadmap: Add the author's phase plan and gameplay loop

This commit is contained in:
2026-11-01 12:35:28 +01:00
parent 12f5179688
commit 68d9c60c14
2 changed files with 275 additions and 0 deletions
+175
View File
@@ -0,0 +1,175 @@
# 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 later a **Tauri 2** shell for Android and iOS
that gives local notifications without a server (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.
- 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).
**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. 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.
- 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.
**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.
### Phase 6 — Stores and money · ongoing
- Tauri 2 shell for Android and iOS: local sunset notifications 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. |
| **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.