From ff9d7f051401a6d983336f7142b0da3ba975e17f Mon Sep 17 00:00:00 2001 From: mnovak Date: Sun, 1 Nov 2026 21:55:21 +0100 Subject: [PATCH] [docs] Phase2Pictures: Record the Phase 2-3 pictures, their review and the fox's draft look --- .agents/FEATURES.md | 2 +- .agents/GAP_ANALYSIS.md | 2 +- .agents/features/art-pipeline.md | 18 ++++--- .agents/lessons/README.md | 2 +- .agents/lessons/testing.md | 14 ++++++ .agents/reviews/art-phase2-3-pictures.md | 60 ++++++++++++++++++++++++ HANDOVER.md | 10 ++-- docs/ART.md | 4 +- 8 files changed, 96 insertions(+), 16 deletions(-) create mode 100644 .agents/reviews/art-phase2-3-pictures.md diff --git a/.agents/FEATURES.md b/.agents/FEATURES.md index dee683d..95b09a6 100644 --- a/.agents/FEATURES.md +++ b/.agents/FEATURES.md @@ -8,4 +8,4 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in | 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 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) | | The Letter slot: page at `#letter`, empty `docs/LETTER.md` | 0 | Merged to `main`; built, not deployed. Invisible until the author writes | [letter-slot.md](features/letter-slot.md) | [feature-letter-slot.md](reviews/feature-letter-slot.md) | -| The art pipeline and the art board: STYLE.md (approved), Phase 1 manifest, stand-ins, `tools/art-prep`, the published board | 0 | Merged to `main`; board published (private). The app is unchanged. Gate waits on the first real picture | [art-pipeline.md](features/art-pipeline.md) | [feature-art-board.md](reviews/feature-art-board.md) | +| The art pipeline and the art board: STYLE.md (S1–S5 approved; fox F1–F4 draft), the manifest (Phase 1–3, 53 pictures), stand-ins, `tools/art-prep`, the published board | 0 | Merged to `main`; board published (private). The app is unchanged. Gate waits on the first real picture | [art-pipeline.md](features/art-pipeline.md) | [feature-art-board.md](reviews/feature-art-board.md), [art-phase2-3-pictures.md](reviews/art-phase2-3-pictures.md) | diff --git a/.agents/GAP_ANALYSIS.md b/.agents/GAP_ANALYSIS.md index 6901583..dcf9e92 100644 --- a/.agents/GAP_ANALYSIS.md +++ b/.agents/GAP_ANALYSIS.md @@ -40,7 +40,7 @@ board exist, and the first real picture is the author's to make. | 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`). **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. | +| 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 is a draft). **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. | diff --git a/.agents/features/art-pipeline.md b/.agents/features/art-pipeline.md index b06fe07..d6494a7 100644 --- a/.agents/features/art-pipeline.md +++ b/.agents/features/art-pipeline.md @@ -59,6 +59,10 @@ typecheck and lint. Nothing imports it: not the app, not the packages. | A8 | Stand-ins are **generated** from the same manifest and committed in `art/placeholders/`. A test fails if they drift. | The board and, from Phase 1, the app both show them. One manifest change must update both. | | A9 | The board's page takes the product name from `@rosea/schema` (`%PRODUCT_NAME%`). | Renaming stays a one-commit operation (CLAUDE.md preamble). | | A10 | Claude writes its review and the `final` paths into the board's rows. The card shows them. | Mark sees on the card what Claude checked and whether the picture is in the game, with no separate report to read. | +| A11 | *Added 2026-11-01 (`art/phase2-3-pictures`).* The manifest also holds Phase 2 (the fox, berries, the bush, the brush) and the Phase 3 pictures whose mechanics are already decided (paths, lanterns). Every card carries a `phase`, the manifest lists phases in order, and the board shows *Phase N* on each card. | Mark asked for more pictures on the board. Making them now lets the fox's look settle before Phase 2 code depends on it. The phase on the card keeps a Phase 3 picture from being taken for something Phase 1 needs. | +| A12 | **The planets are not on the board.** | Each planet is designed in its own feature doc (ROADMAP Phase 2), and their grown-ups are the book's most recognisable drawings. Asking for pictures before the design exists would fix a look with the highest likeness risk and no design behind it. | +| A13 | The fox is a second character with his own sheet (`fox-sheet`) and two review points (STYLE.md §7, 8–9). His look (F1–F4 in STYLE.md §0) is a **draft for Mark**. Mark's approval covered S1–S5 only. | The same mechanism that keeps the rose consistent, reused. The draft is marked as one, so the approval is not stretched over choices he never saw. | +| A14 | A stand-in with no drawing **stops the build**. Before this, an unknown cell got an empty box. | 28 new pictures made a silent blank likely. A blank stand-in looks like a layout bug, not a missing drawing. | ## 3. Risk analysis @@ -78,8 +82,8 @@ typecheck and lint. Nothing imports it: not the app, not the packages. |:--|:--|:--| | No `docs/ART.md` | Written: the six steps, the manifest's rules, the board, budgets, what's missing | Done | | No `art/STYLE.md` "drafted with Mark" | A draft by Claude, with its open choices S1–S5 listed for Mark | Done: Mark kept the draft, 2026-11-01 | -| No `art/manifest.json` | 11 cards, 25 Phase 1 pictures: rose sheet, stages, care, moments, care things, chair, four garden layers, icon | Done | -| No SVG placeholders | 29 stand-ins, generated and committed | Done | +| No `art/manifest.json` | 11 cards, 25 Phase 1 pictures: rose sheet, stages, care, moments, care things, chair, four garden layers, icon. Since A11: 18 cards and 53 pictures, the 28 more for Phases 2–3 | Done | +| No SVG placeholders | 29 stand-ins, generated and committed; 63 since A11 | Done | | No art preparation page | The art board, published (A1) | Done | | **Phase 0 gate:** one picture through the pipeline into `art/final/` | Every step exists and is tested with synthetic pictures | **Open.** It waits on Mark making and accepting the first real picture | @@ -88,14 +92,14 @@ typecheck and lint. Nothing imports it: not the app, not the packages. | Case | Kind | Where | |:--|:--|:--| | The real manifest passes every check | unit | `tools/art-prep/test/manifest.test.ts` | -| Each manifest rule fires: a repeated id, cell id clash, bad id, odd size, cell/grid mismatch, non-dividing grid, grid on a single, unknown character, shipped sheet, opaque sprite, missing review point, no subject, unused picture, a book name, a medical word, *lonely* in the avoid list, a missing or wrong sheet | unit (17 cases) | same | +| Each manifest rule fires: a repeated id, cell id clash, bad id, odd size, cell/grid mismatch, non-dividing grid, grid on a single, unknown character, shipped sheet, opaque sprite, missing review point, a phase outside 1–6, phases out of order, no subject, unused picture, a book name, a medical word, *lonely* in the avoid list, a missing or wrong sheet | unit (19 cases) | same | | STYLE.md §1 and §7 are read exactly; a missing section is an error | unit | `prompt.test.ts` | -| All 29 prompts start with §1 word for word, carry the shared avoid list, and contain no forbidden term | unit | same | -| Rose prompts ask for `rose-sheet`; the sheet itself doesn't | unit | same | +| All 63 prompts start with §1 word for word, carry the shared avoid list, and contain no forbidden term | unit | same | +| Rose prompts ask for `rose-sheet`; the sheet itself doesn't. Fox prompts, one-at-a-time ones included, ask for `fox-sheet` and never name `rose-sheet` | unit | same | | Grid numbers in the prompt equal `cellBoxes`; tall cells made alone use 1024 × 1536 | unit | same | | The board data has the shape the page reads; every kind has a group on the page; the page never spells the product name | unit | `board.test.ts` | -| A stand-in for every picture and cell, at its size, loading nothing; `art/placeholders/` equals the generator's output | unit | same | +| A stand-in for every picture and cell, at its size, loading nothing; `art/placeholders/` equals the generator's output; a picture with no drawing stops the build; every card shows its phase | unit | same | | `art:accept`: single picture to WebP within budget; opaque refused; sheet cut into its cells; any-size sheet cut by grid with a note; empty cell refused by name; painted cell refused; edge-touch warned; solo cell fitted; a layer's clear sky required; a wrong-shape full picture cropped, never enlarged; over budget refused; unknown id or non-image refused | unit, real sharp (12 cases) | `accept.test.ts` | -| The board renders: 11 cards, 18 cells, 5 groups, no broken stand-in, no sideways scroll | manual, built page on 127.0.0.1 | the review | +| The board renders: 11 cards, 18 cells, 5 groups, no broken stand-in, no sideways scroll. Since A11: 18 cards, *Phase N* on each | manual, built page on 127.0.0.1 | the reviews | | The published board's store starts empty | manual (`ArtifactData list art`) | the review | | **One real picture end to end** | manual, Mark | **not done**: the Phase 0 gate | diff --git a/.agents/lessons/README.md b/.agents/lessons/README.md index 5799f73..df79dff 100644 --- a/.agents/lessons/README.md +++ b/.agents/lessons/README.md @@ -12,7 +12,7 @@ and **how to apply it**. | [`art.md`](art.md) | 2 | The image pipeline. | | [`code.md`](code.md) | 2 | TypeScript, Svelte, async ordering, Rust. | | [`technical.md`](technical.md) | 5 | The browser and the build as platforms. | -| [`testing.md`](testing.md) | 5 | What makes a test worth having, and how a passing test lies. | +| [`testing.md`](testing.md) | 6 | What makes a test worth having, and how a passing test lies. | | `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) | | [`process.md`](process.md) | 2 | Workflow, commits, credentials, honesty about what shipped. | diff --git a/.agents/lessons/testing.md b/.agents/lessons/testing.md index ce2c3d1..78bdc28 100644 --- a/.agents/lessons/testing.md +++ b/.agents/lessons/testing.md @@ -73,3 +73,17 @@ case. It fails only under load, and then it looks like a bug in the code that ca **How to apply it.** When the first case of a file loads something heavy (a linter, a compiler, a browser), load it in `beforeAll` with an explicit timeout. If only the first case of a file times out, suspect a cold start before suspecting the code. + +## An example of "missing" must stay missing + +**What happened.** On 2026-11-01 two art-prep tests used *fox* as their example of a thing not +in the manifest: `unknown character "fox"` and `"fox-sheet" is not a picture`. The fox was the +next character on the roadmap. Adding him made both tests fail. They now name an owl, which no +plan mentions. + +**Why it bit.** A negative test takes its example from what is not there yet, and the next +thing on the roadmap is exactly what is not there yet. The test then fails on the day the +feature lands, for a reason that has nothing to do with the feature. + +**How to apply it.** For a "does not exist" example, pick a name no plan will ever add (an owl +in a game with a fox, `owl-sheet`), never the next item on the roadmap. diff --git a/.agents/reviews/art-phase2-3-pictures.md b/.agents/reviews/art-phase2-3-pictures.md new file mode 100644 index 0000000..c02f8b6 --- /dev/null +++ b/.agents/reviews/art-phase2-3-pictures.md @@ -0,0 +1,60 @@ +# Review — `art/phase2-3-pictures` + +Adversarial self-review (CLAUDE.md §5.3). Analysis: +[`features/art-pipeline.md`](../features/art-pipeline.md), decisions A11–A14. Reviewed 2026-11-01 +on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea. + +Mark asked for more pictures on the art board. The board went from 11 cards and 25 pictures to +18 cards and 53. The new ones are the fox (a character sheet and 12 poses), five berries and the +leaf he eats from, the wild bush in three states, the grooming brush, three path stages and a +lantern unlit and lit. + +## Gates — counts, not exit codes + +| Gate | Result | +|:--|:--| +| `pnpm lint` | exit 0 | +| `pnpm typecheck` | exit 0, after finding 4 | +| `pnpm test` | **186 passed**: schema 15, content 47, **art-prep 56 (+6)**, engine 52, ui 16 | +| `pnpm lint:copy` | 12 files, 0 problems | +| `pnpm validate:library` | 0 entries; 13 of 13 fixtures rejected | +| `pnpm test:e2e` | 7 passed | +| `pnpm test:offline` | 1 passed | +| `pnpm art:board` | 18 cards, 53 pictures, 63 stand-ins | + +**The app is unchanged** (§5.4). No app file changed. **The board is republished** to the same +private address, version 2. Its capabilities and stored rows carried over. + +**Bug drills.** Each new guard was switched off once, and its test failed: + +| Put back | Result | +|:--|:--| +| Phases out of order accepted | CAUGHT: *a Phase 1 picture listed after Phase 3* | +| A missing stand-in drawing returns an empty box | CAUGHT: *a picture with no stand-in drawing stops the build* | + +**The stand-ins, looked at.** The seven new stand-ins were rendered to one PNG with sharp. +The browser pane was hidden, so a screenshot there showed nothing. All 12 fox poses, the berries, +bush, brush, paths and lanterns read as what they are. The board, served on 127.0.0.1, showed 18 +cards with *Phase N* on each, and no broken image. + +## Findings + +| # | Area | Finding | Resolution | +|:--|:--|:--|:--| +| 1 | Copyright | The planets' grown-ups are the book's most recognisable drawings. Pictures asked for before each planet's design exists would fix a look with no design behind it. | **By design (A12)**: no planet pictures. Each planet's feature doc asks for its own. | +| 2 | Copyright | The book's fox is pale, sandy and long-eared, and his chapter is full of wheat. A generic "cute fox" prompt drifts towards it. | **Fixed**: a russet fox with a cream mask and tail rings (F1); *pale sandy fur or very large ears* on every fox prompt; *a wheat field* on the shared avoid list; review point 8 names the difference. | +| 3 | Soul | The petted fox needs a touch, and STYLE.md forbids hands. A drawn hand would also put a person in the picture. | **Fixed**: the fox leans into "a touch we do not see", and *a human hand or arm* is on every fox sheet's avoid list. | +| 4 | Correctness | `board.test.ts` cast `readonly Cell[]` straight to a mutable type: vitest passed, `tsc` refused. | **Fixed** with a cast through `unknown`, as the other tests do. Found by the typecheck gate, not by tests. | +| 5 | Test honesty | Two tests used *fox* as their example of a thing not in the manifest (`unknown character "fox"`, `"fox-sheet" is not a picture`). Adding the fox made them fail for the wrong reason. | **Fixed**: the example is now *owl*. Lesson: `testing.md`. | +| 6 | Soul | A lantern unlit could read as *nobody answered*. | **Covered by the game, not the picture**: a lantern only one player lit is never shown to the other (CLAUDE.md §8). The unlit cell is described as "quiet, not sad". | +| 7 | Scope | Paths and lanterns are Phase 3. The screen that shows two roses and the path between them is not designed. | **Deferred, said on the card**: F4 and the card's *usedBy* say the Phase 3 feature doc may ask for them again. | +| 8 | Process | STYLE.md was approved an hour earlier. Adding the fox under that heading would stretch the approval over choices Mark never saw. | **Fixed**: F1–F4 are listed as a draft in §0. HANDOVER asks Mark to approve them before `fox-sheet`. | +| 9 | Process | The full run started with the machine at 85 % CPU. §5.7 says not above ~80 %. The load was not checked first. | **Noted.** The run passed and nothing else was disturbed, but the check comes first next time. | +| 10 | Process | A cleanup step in the drill command would have removed `F:\manifest.bak`, a path at the drive's root. The safety check refused it, and nothing ran. | **Fixed**: the drill was rerun with backups only in the scratchpad and no removal. | + +## What was not verified + +- Upload, Accept and the cut lines on the **published** board, for the new cards. That needs Mark signed in. +- The published board at phone width and in dark mode. +- Whether a generator keeps a 2 × 2 or 2 × 1 grid as well as the 4 × 1 ones. Nothing has been generated yet. +- Whether the fox reads as a fox and not a red panda. Only a real picture can show that, and `fox-sheet` is the test. diff --git a/HANDOVER.md b/HANDOVER.md index ce57d19..58c213a 100644 --- a/HANDOVER.md +++ b/HANDOVER.md @@ -12,8 +12,8 @@ Rewritten at the end of each session (CLAUDE.md §5.1). 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). -- **Gates:** all pass on this machine. Unit tests: 180 (schema 15, content 47, - art-prep 50, engine 52, ui 16). E2E: 7. Offline: 1. `lint:copy`: 12 files, 0 problems. +- **Gates:** all pass on this machine. Unit tests: 186 (schema 15, content 47, + art-prep 56, engine 52, ui 16). E2E: 7. Offline: 1. `lint:copy`: 12 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 @@ -27,7 +27,8 @@ Rewritten at the end of each session (CLAUDE.md §5.1). [`.agents/reviews/feature-letter-slot.md`](.agents/reviews/feature-letter-slot.md). - **The art pipeline and the art board:** merged to `main`. [`docs/ART.md`](docs/ART.md) is the pipeline. [`art/STYLE.md`](art/STYLE.md) is approved by the author (2026-11-01, S1–S5 kept as drafted). [`art/manifest.json`](art/manifest.json) - lists 25 Phase 1 pictures, with 29 stand-ins in `art/placeholders/`. `tools/art-prep` builds + lists 53 pictures in phase order: 25 for Phase 1, then the fox, berries and bush (Phase 2), then paths and + lanterns (Phase 3). 63 stand-ins are in `art/placeholders/`. The planets wait for their own feature docs. `tools/art-prep` builds prompts and the board (`pnpm art:board`) and moves accepted pictures into `art/final/` (`pnpm art:accept`). The board is published, private: https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then @@ -45,7 +46,8 @@ The notification decision is made: in-app only on the web (G0.26). door to real help (G0.27), and Q9 (may the letter name the book). 2. **Sentences:** an agent may propose public-domain candidates with their sources. Only the author can mark one verified. -3. **Art:** the style is approved. Make `rose-sheet` on the board and accept it. That is the first step of the Phase 0 art gate. +3. **Art:** the style is approved (S1–S5). The fox's look, F1–F4 in `art/STYLE.md` §0, is a draft: + approve it or change it before making `fox-sheet`. Make `rose-sheet` on the board and accept it. That is the first step of the Phase 0 art gate. After an accept, Claude reads the row (`ArtifactData get art/`), downloads the picture (`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/`, and writes `final` back into the row. diff --git a/docs/ART.md b/docs/ART.md index ca311da..dbfd3e3 100644 --- a/docs/ART.md +++ b/docs/ART.md @@ -4,8 +4,8 @@ Every illustration in Rosea Domi goes through this pipeline. A picture that skip not shipped, however good it looks (CLAUDE.md §7). - **What the pictures look like:** [`art/STYLE.md`](../art/STYLE.md). Mark approved it on - 2026-11-01 (S1–S5 in its §0). -- **Which pictures exist:** [`art/manifest.json`](../art/manifest.json), Phase 1 first. + 2026-11-01 (S1–S5 in its §0). The fox and the Phase 2–3 pictures (F1–F4) are a draft. +- **Which pictures exist:** [`art/manifest.json`](../art/manifest.json), in phase order: Phase 1 (the rose and her garden), Phase 2 (the fox, berries, the bush), and the decided Phase 3 pictures (paths, lanterns). The planets wait for their own feature docs. - **The tools:** [`tools/art-prep/`](../tools/art-prep/). It turns those two files into prompts, stand-ins and the board, and moves accepted pictures into `art/final/`. - **The board:** a private claude.ai page, *Rosea Domi Art Board*. It is published from