diff --git a/.agents/FEATURES.md b/.agents/FEATURES.md index 471c863..795ac88 100644 --- a/.agents/FEATURES.md +++ b/.agents/FEATURES.md @@ -5,4 +5,5 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in | Feature | Phase | Status | Analysis | Review | |:--|:--|:--|:--|:--| -| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) | +| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) | +| Roadmap and gameplay docs, read against the code | 0 | On `docs/roadmap-gameplay`; 8 questions for the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) | diff --git a/.agents/GAP_ANALYSIS.md b/.agents/GAP_ANALYSIS.md index d3c9770..4b64a1a 100644 --- a/.agents/GAP_ANALYSIS.md +++ b/.agents/GAP_ANALYSIS.md @@ -3,11 +3,16 @@ What the product needs that it does not have yet, and what was closed. A closed gap is struck through **with its evidence in the row** (CLAUDE.md §5.1). -Ids are `G.`. `docs/ROADMAP.md` does not exist yet, so the phases here are -provisional. Phase 0 is defined in -[`features/phase0-workspace.md`](features/phase0-workspace.md). +Ids are `G.`. Phases follow [`docs/ROADMAP.md`](../docs/ROADMAP.md). The +workspace part of Phase 0 is in +[`features/phase0-workspace.md`](features/phase0-workspace.md). How the roadmap and +`docs/GAMEPLAY.md` compare with the code, and the author's open questions: +[`reviews/docs-roadmap-gameplay.md`](reviews/docs-roadmap-gameplay.md). -## Phase 0 — the workspace +## Phase 0 — Foundations + +**Gate open.** The workspace is merged (G0.1–G0.9). Still missing for the gate: the +60 sentences (G0.18) and one illustration through the pipeline (G0.24). | Id | Gap | Status / evidence | |:--|:--|:--| @@ -24,13 +29,32 @@ provisional. Phase 0 is defined in | 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.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/ROADMAP.md`, `docs/GAMEPLAY.md`, `docs/PRINCIPLES.md`, `docs/ART.md`, `art/STYLE.md`, `docs/LETTER.md`, `HANDOVER.md` predecessor | Open. **GAMEPLAY.md blocks all game code.** Agents scaffold LETTER.md; they never write its voice. | +| 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.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 by design (D4). Release needs ≥ 365 sunset sentences, each verified by the author. | -| G0.19 | Event kinds other than `care` | Open. Wait for GAMEPLAY.md: their fields are game design. | +| 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.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.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` | Open. **Phase 0 gate**: one illustration goes through prompt, paste, automatic checks, review and the author's approval into `art/final/`. | +| G0.25 | No slot for *A Letter from the Gardener* | Open. A page and an empty `docs/LETTER.md` the author fills; agents write no part of its voice. | +| G0.26 | Not decided: how the sunset invitation reaches the player on the web (CLAUDE.md §8) | Open. Due in Phase 0 (ROADMAP), not Phase 1 as CLAUDE.md §8 says (Q6). An agent writes the options and their privacy cost; the author decides. | + +## Open design questions + +Raised by GAMEPLAY.md and ROADMAP.md, for the author. Each is explained in +[`reviews/docs-roadmap-gameplay.md`](reviews/docs-roadmap-gameplay.md) §2. + +| # | Question | Blocks | +|:--|:--|:--| +| Q1 | Where does the fox's food come from with no friends and no Lucerna? | Phase 2 fox | +| Q2 | Does "real time brings full bloom" mean days of care, not minutes on screen? | Phase 1 growth | +| Q3 | Lucerna (*lantern*) and the lantern gesture share a name | Naming | +| Q4 | Is "sent through Amicitia" true about where the bytes go? | Amicitia bridge | +| Q5 | Does *no extra creatures* rule out Phase 2's visitors? | Phase 2 collections | +| Q6 | Notification decision in Phase 0 (ROADMAP) or Phase 1 (CLAUDE.md §8)? Taken as Phase 0. | G0.26 | +| Q7 | Which phase holds the Amicitia bridge? | Planning | +| Q8 | "Nearby days give a little more": safe only if a gap's cost is never shown | Phase 1 Soul review | diff --git a/.agents/features/phase0-workspace.md b/.agents/features/phase0-workspace.md index b93565c..a5771dd 100644 --- a/.agents/features/phase0-workspace.md +++ b/.agents/features/phase0-workspace.md @@ -1,13 +1,14 @@ # Phase 0 — the workspace -Status: **merged to `main`** 2026-11-01 (`d11d242`), built, not deployed. Review: +Status: **merged to `main`** 2026-11-01 (`d11d242`), built, not deployed. This is the +workspace part of ROADMAP Phase 0. **The Phase 0 gate is still open** (G0.18, G0.24). Review: [`feature-phase0-workspace.md`](../reviews/feature-phase0-workspace.md). Gates closed and still open: [`GAP_ANALYSIS.md`](../GAP_ANALYSIS.md). -`docs/ROADMAP.md` does not exist yet, so this document defines Phase 0 itself. It +Written before `docs/ROADMAP.md` existed, so it defined its own scope. It covers what CLAUDE.md §2 calls "confirmed when Phase 0 scaffolds it" and what §3 calls "proposed until Phase 0 scaffolds them", and nothing more. **No game code.** -`docs/GAMEPLAY.md` must be read before any, and it has not been written. +`docs/GAMEPLAY.md` was added later; it must be read before any. --- diff --git a/.agents/reviews/docs-roadmap-gameplay.md b/.agents/reviews/docs-roadmap-gameplay.md new file mode 100644 index 0000000..adbb39f --- /dev/null +++ b/.agents/reviews/docs-roadmap-gameplay.md @@ -0,0 +1,81 @@ +# Review — `docs/roadmap-gameplay` + +The author's `docs/ROADMAP.md` and `docs/GAMEPLAY.md`, added 2026-11-01, read against +CLAUDE.md and what is on `main` (`12f5179`). Both documents are the author's: their +words are kept as given (GAMEPLAY.md was pasted as plain text and only given Markdown +headings and bullets). Where they disagree with each other or with the code, the +question is written down here, not resolved by editing them. + +No code changed, so the gates were not re-run. + +## 1. Phase 0 is not done by the roadmap's definition + +What was merged as "Phase 0" (`d11d242`) is the workspace and its contracts. The +roadmap's Phase 0 is larger, and its **gate is not met**: + +| Roadmap Phase 0 item | State | +|:--|:--| +| Repo, `.gitignore`, 5 MB hook, `CLAUDE.md`, this roadmap | Done (roadmap on this branch) | +| Remotes | Gitea only; GitHub missing (G0.13) | +| `ART.md` | Missing (G0.24) | +| Schema contracts, validator with negative fixtures, `lint:copy` | Done (G0.2, G0.5, G0.6) | +| **60 sentences**, sourced and verified public domain | **Missing**: 0 entries (G0.18). `verifiedBy` needs a person. | +| `art/STYLE.md` drafted with the author, `art/manifest.json`, SVG placeholders, `tools/art-prep` end to end on one asset | **Missing** (G0.24) | +| Slot for *A Letter from the Gardener* | Missing (G0.25) | +| Decision: how the sunset invitation reaches the player on the web | Missing (G0.26) | + +**Gate:** 60 sentences pass and every fixture fails (half met: the fixtures fail, but +there are no sentences); one illustration through the full pipeline into `art/final/` +(not started). The status docs now say *workspace merged, Phase 0 gate open* instead +of *Phase 0 merged*. + +## 2. Questions only the author can answer + +Each one blocks the feature named in its row. None blocks the rest of Phase 0. + +| # | Where | The conflict | Blocks | +|:--|:--|:--|:--| +| Q1 | GAMEPLAY §3 vs ROADMAP Phases 2–4, §5 | Berries come from *forgotten roses of other players*, so the fox's food needs other players. But the fox arrives in Phase 2, before friends (Phase 3). Cold start says Phases 1–2 must stand alone, and the Phase 4 gate says deleting `lucerna` leaves Phases 1–3 working. **Where does the fox's food come from with no friends and no Lucerna?** | Phase 2 fox | +| Q2 | GAMEPLAY §1–2 vs ROADMAP §2, Phase 1 | *Short visits only hold her; real time brings full bloom*, plus *care hours* in the numbers. If "real time" means minutes on screen, bloom rewards staying in the app: the **dependence** risk, against *the best moments send the player away from the screen*. The roadmap says growth comes from **total days of care**. Proposed reading: calendar days with real care, where a long session is worth no more than a short one with the same care. Confirm. | Phase 1 growth | +| Q3 | ROADMAP §1 vs GAMEPLAY §5 | Two lanterns. **Lucerna** (*lantern*) is the server, and the **lantern** is the device-to-device "I'd like to talk". A player, or a later agent, could take the lantern to go through Lucerna. Rename one, or write down that the lantern never touches Lucerna. | Naming; Phase 3–4 | +| Q4 | GAMEPLAY §5 | Before a match, sentences carry *"sent through Amicitia"*. If the bytes go over Rosea's own sync, the label is untrue about where data went (Privacy: what was the player told). Either Amicitia carries them, or the wording changes, for example *a taste of Amicitia*. | The Amicitia bridge | +| Q5 | GAMEPLAY §3 vs ROADMAP Phase 2 | *No extra creatures* vs visitors who leave mementos, rare visitors, and the sheep album. Is the rule about food and the fox's screen only? | Phase 2 collections | +| Q6 | ROADMAP Phase 0 vs CLAUDE.md §8 | The notification decision is due in Phase 0 by the roadmap and in the Phase 1 feature doc by CLAUDE.md. Taken as Phase 0, since the roadmap is newer. An agent can write the options and their privacy cost; the author picks one. | G0.26 | +| Q7 | GAMEPLAY §5 vs ROADMAP | The Amicitia bridge has no phase. It needs roads (Phase 3) and swapped keys (`packages/identity`). Phase 3, 5, or its own? | Planning | +| Q8 | GAMEPLAY §1 | *Coming back on nearby days gives a little more.* This is not a streak, but a player back after a gap gets less than one back after a day. It is safe only if nobody ever sees what a gap cost them. Recorded for the Phase 1 Soul review; no answer needed now. | Phase 1 Soul review | + +## 3. Notes that need no answer + +- **"treat."** GAMEPLAY §3 calls rose hips *the rare top treat*. That is fine in a + design doc. In player copy `treat` is banned (D6), so the in-game words are + different. `lint:copy` catches it. +- **The planets.** *King*, *lamplighter*, *geographer* and similar are ordinary words + and are not on the forbidden list, which is right: §7 allows the echo but never the + name or text. *The Geographer's book* and the *sheep album* are the closest echoes. + Each planet's feature doc gets a copyright line in its review. +- **The drunkard's planet** is a Soul risk for a player who drinks. It goes into that + planet's feature doc. +- **Sunset from a time zone.** A zone is not a place, and sunset needs coordinates. + Fallback: the zone's reference location from the tz database (`zone1970.tab`), + bundled offline. This goes into the Phase 1 sun feature doc. It never asks for GPS + and never makes a network call. +- **Bubble copy** has the same rules as the hope library (GAMEPLAY §4). `lint:copy` + already scans `packages/ui/src/copy/`. Whether bubbles also get ids and a validator + is decided in Phase 1. + +## 4. What already agrees + +- The care acts *water, shade, weeds, petals* match the `care` schema's `act` enum (D5). +- *Berries, never treats*, as in D6. +- Book and Tolkien names are already forbidden in copy (`forbidden.ts`), and + *Rosea Domi* / *Amicitia Domi* pass the Domi-alone rule. +- CLAUDE.md §8 already names the **berry farming** trap (one harvest per forgotten + rose per local day) and the **lantern as rejection** trap (one-sided lanterns are + invisible). +- "Never GPS" matches CLAUDE.md §4. + +## What was NOT done + +- The author's text was not changed, including where §2 shows a conflict. +- No game code was written. GAMEPLAY.md now exists, but Phase 1 starts only after + the Phase 0 gate (ROADMAP §4: *failing it means the next phase does not start*). diff --git a/CLAUDE.md b/CLAUDE.md index 6cfac4f..a55fcfe 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -434,7 +434,7 @@ player can send another player, and the sender picks one. "trace": "petal:", "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; the other kinds wait for docs/GAMEPLAY.md. +// 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), // "harvest" (berry kind), "thanks", "lantern" (lit — never unlit) ``` diff --git a/HANDOVER.md b/HANDOVER.md index 678f5df..fbd830e 100644 --- a/HANDOVER.md +++ b/HANDOVER.md @@ -8,7 +8,7 @@ Rewritten at the end of each session (CLAUDE.md §5.1). - **Repository:** the git repo exists, and `origin` is Gitea (`mnovak/Rosea`). `main` holds `CLAUDE.md` and `.gitignore` (`1e4c5a0`). -- **Phase 0:** merged to `main` with `--no-ff` (`d11d242`) and pushed. Local and +- **Phase 0 workspace:** merged to `main` with `--no-ff` (`d11d242`) and pushed. Local and 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). @@ -16,14 +16,25 @@ Rewritten at the end of each session (CLAUDE.md §5.1). engine 52, ui 3). E2E: 6. Offline: 1. `lint:copy`: 9 files, 0 problems. `validate:library`: 13 of 13 fixtures rejected. - **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 + code: [`.agents/reviews/docs-roadmap-gameplay.md`](.agents/reviews/docs-roadmap-gameplay.md). + The branch is not merged or pushed yet. + +**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). Also open: the Letter slot (G0.25), the notification decision +(G0.26) and a GitHub remote (G0.13). **Waiting on the author.** -1. **`docs/GAMEPLAY.md`.** No game code can start without it (G0.14). `docs/ROADMAP.md` - is needed to name Phase 1. -2. **A GitHub repository** for Pages, and the decision whether it is public. That - decides the source maps (G0.23), the deploy workflow and the mirror check (G0.13). -3. **Upgrading Node** to ≥ 22.13 on this machine (G0.20). +1. **The 8 questions** Q1–Q8 in the review. Q2 (does bloom count days or minutes on + screen) matters first, because it shapes Phase 1 growth. +2. **Sentences:** an agent may propose public-domain candidates with their sources. + Only the author can mark one verified. +3. **`docs/ART.md` and `art/STYLE.md`**, which are needed before the art pipeline. +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). **How this machine works** (not in the code):