78 lines
9.8 KiB
Markdown
78 lines
9.8 KiB
Markdown
# 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`](../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 — 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 |
|
||
|:--|:--|:--|
|
||
| ~~G0.1~~ | ~~No workspace, no commands~~ | Closed 2026-11-01 on `feature/phase0-workspace`. Every §3 command except `art:prep` and `cargo test` runs; counts in the review. |
|
||
| ~~G0.2~~ | ~~Contracts §6.1–6.3 only in prose~~ | Closed 2026-11-01. `packages/schema/schemas/*.json` with generated types; `schemas.test.ts` 15 tests. §6.2's contradictory `act` list resolved (D5). |
|
||
| ~~G0.3~~ | ~~No single place computes a day~~ | 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. |
|
||
| ~~G0.4~~ | ~~Engine purity enforced by good intentions~~ | Closed 2026-11-01. ESLint rule in `eslint.config.mjs`; `purity-lint.test.ts` proves 16 bans fire inside the engine and not outside. |
|
||
| ~~G0.5~~ | ~~No library validator~~ | 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`. |
|
||
| ~~G0.6~~ | ~~No `lint:copy`~~ | Closed 2026-11-01. One forbidden list shared with the validator; 9 files checked, 0 problems. |
|
||
| ~~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)~~ | 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 | 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/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). |
|
||
| 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` | **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.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.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. |
|
||
|
||
## Phase 1 — The rose alone
|
||
|
||
**Started 2026-11-01** with the sun, while the Phase 0 gate waits on the author (pictures,
|
||
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~~ | 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; the in-game sunset with the chair | Open. The sentence needs the library (G0.18). |
|
||
| G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
|
||
|
||
## Design questions — answered
|
||
|
||
Raised by GAMEPLAY.md and ROADMAP.md, answered by the author 2026-11-01. Details in
|
||
[`reviews/docs-roadmap-gameplay.md`](reviews/docs-roadmap-gameplay.md) §2.
|
||
|
||
| # | Question | Answer |
|
||
|:--|:--|:--|
|
||
| ~~Q1~~ | Fox food with no friends and no Lucerna | A wild bush beside the player's own rose; other roses only add |
|
||
| ~~Q2~~ | What "real time" counts for bloom | Days on which care helped, never minutes on screen |
|
||
| ~~Q3~~ | Lucerna and the lantern share a name | Keep both; the lantern never passes through Lucerna |
|
||
| ~~Q4~~ | "Sent through Amicitia" | "A taste of Amicitia" |
|
||
| ~~Q5~~ | *No extra creatures* vs visitors | Rule removed from GAMEPLAY §3 |
|
||
| ~~Q6~~ | When the notification decision is due | Phase 0, in-app only (G0.26) |
|
||
| ~~Q7~~ | 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 |
|
||
| ~~Q10~~ | 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. |
|