14 KiB
Gap analysis
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<phase>.<n>. Phases follow docs/ROADMAP.md. The
workspace part of Phase 0 is in
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.
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): the pipeline and the board exist, and the first real picture is the author's to make.
| Id | Gap | Status / evidence |
|---|---|---|
Closed 2026-11-01 on feature/phase0-workspace. Every §3 command except art:prep and cargo test runs; counts in the review. |
||
Closed 2026-11-01. packages/schema/schemas/*.json with generated types; schemas.test.ts 15 tests. §6.2's contradictory act list resolved (D5). |
||
Closed 2026-11-01. engine/src/time/localDay.ts; 18 golden, refusal and property tests. The UTC-day trap measured: Anchorage Monday 20:00 is UTC Tuesday. |
||
Closed 2026-11-01. ESLint rule in eslint.config.mjs; purity-lint.test.ts proves 16 bans fire inside the engine and not outside. |
||
Closed 2026-11-01. content/src/validator.ts, 13 negative fixtures, each rejected with its named rule; every rule proved by a fixture. Mutation: disabling the length cap fails validate:library. |
||
lint:copy |
Closed 2026-11-01. One forbidden list shared with the validator; 9 files checked, 0 problems. | |
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. |
||
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). |
||
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. |
||
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. |
||
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: 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). 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 | 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. |
| 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 |
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/. |
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. |
||
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. |
| 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. |
Phase 1 — The rose alone
Started 2026-11-01 with the sun, while the Phase 0 gate waits on the author (pictures, sentences). Phase 1 is built in code, not deployed (no host yet, G0.13).
| Id | Gap | Status / evidence |
|---|---|---|
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). |
||
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. |
||
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. |
||
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). |
||
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. |
||
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. |
||
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. |
||
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. |
||
Closed 2026-11-17 on feature/planet-garden: her round planet, a gardener the player chooses at the first open (fixed lists, kept in profile, never in the rose file), the ring of care by a tap on her, care by gesture with a button for each. 84 ui tests incl. 7 on the planet and 7 on gestures; e2e planet.spec.ts 3; 9 of 9 put-back bugs caught (2 only after tests were added); 7 of 7 by real touch on the Android tablet. Open in it: painted art for the planet and the gardener, and how customised looks are drawn (STYLE.md §3b, the author's). |
||
| G1.3 | Towns have no Czech names (Vídeň) | Open. Natural Earth has none; arrives with Czech copy. |
Phase 6 — Release
| Id | Gap | Status / evidence |
|---|---|---|
| G6.1 | A legal check of the look: a child on a small round planet with a rose is the book's best-known image, and its estate holds trademarks | Open, before any public release. The author accepted the risk on 2026-11-17 (CLAUDE.md §8); the guards are STYLE.md S2, S6, §3b and review points 10–11. |
Design questions — answered
Raised by GAMEPLAY.md and ROADMAP.md, answered by the author 2026-11-01. Details in
reviews/docs-roadmap-gameplay.md §2.
| # | Question | Answer |
|---|---|---|
| Fox food with no friends and no Lucerna | A wild bush beside the player's own rose; other roses only add | |
| What "real time" counts for bloom | Days on which care helped, never minutes on screen | |
| Lucerna and the lantern share a name | Keep both; the lantern never passes through Lucerna | |
| "Sent through Amicitia" | "A taste of Amicitia" | |
| No extra creatures vs visitors | Rule removed from GAMEPLAY §3 | |
| When the notification decision is due | Phase 0, in-app only (G0.26) | |
| Which phase holds the Amicitia bridge | Phase 3 | |
| Q8 | "Nearby days give a little more" | Open as a rule for the Phase 1 Soul review: a gap's cost is never shown |
| In polar night, when should the invitation come? | At solar noon, when the twilight is brightest: answered by the author 2026-11-01 (features/sun.md D4). In polar day it is the lowest light, as CLAUDE.md §8 suggests. |
|
| Q9 | May the Letter name the book and its author for the one sentence of inspiration (GAMEPLAY §7)? | Open. lint:copy refuses those names in the letter as everywhere in the product. A yes needs a written, letter-only exemption. |