Files
Rosea/.agents/GAP_ANALYSIS.md
T
mnovak 3829058e2e [repo] Roadmap: Read the roadmap and gameplay loop against the code
Phase 0 by the roadmap is larger than the merged workspace, so its gate is
recorded as open (G0.18, G0.24-G0.26). Eight questions for the author are
listed in the review rather than resolved by editing the author's docs.
2026-11-01 12:35:28 +01:00

6.5 KiB
Raw Blame History

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).

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) 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/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. 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 §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