6885a217cd
Adversarial review with per-package counts and 13 reintroduced bugs, all caught. Fixes from the review: the trace geocell is capped at 6 characters (~1 km; 16 allowed centimetres), one forbidden-word hit per place, and an e2e guard that meta charset stays within the first 1024 bytes. CLAUDE.md §6.2 no longer contradicts itself about care acts; §2 and §3 say what Phase 0 actually built.
4.4 KiB
4.4 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>. docs/ROADMAP.md does not exist yet, so the phases here are
provisional. Phase 0 is defined in
features/phase0-workspace.md.
Phase 0 — the workspace
| 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. |
||
| 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/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.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.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'. |