[art] GardenerLayers: The gardener in layered parts, painted over one guide in register, checked on accept
This commit is contained in:
+1
-1
@@ -21,4 +21,4 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
| Where the sunset is: choose a town (or skip to a guess from the device's zone), kept on the device; tonight's sunset in the garden | 1 | Merged to `main`; built, not deployed | [sunset-place.md](features/sunset-place.md) | [feature-sunset-place.md](reviews/feature-sunset-place.md) |
|
||||
| The sun: real sunrise, sunset and solar noon on the device; polar day and night | 1 | Merged to `main`; engine only, the app does not show it yet | [sun.md](features/sun.md) | [feature-sun.md](reviews/feature-sun.md) |
|
||||
| Her planet and the gardener: a round tiny planet, a boy or girl chosen at the first open, the ring of care by a tap on her, care by gesture (tilt the can, swipe weeds up, sweep petals, drag the windbreak, stroke her); every gesture also a button | 1 | Merged to `main`; built, not deployed. Code stand-ins; the painted art waits on the board | [planet-garden.md](features/planet-garden.md) | [feature-planet-garden.md](reviews/feature-planet-garden.md) |
|
||||
| The art pipeline and the art board: STYLE.md (S1–S5 and the fox's F1–F4 approved), 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) |
|
||||
| The art pipeline and the art board: STYLE.md (S1–S6 and the fox's F1–F4 approved), the manifest (Phases 1–5: 95 cards, 538 pictures, of them 55 gardener layer sheets), 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), [art-board-v2.md](reviews/art-board-v2.md), [art-gardener-layers.md](reviews/art-gardener-layers.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. Narrowed 2026-11-17: the apps make PNG/ICO icons from `icon.svg` at build time (`tauri icon`, never committed); the PWA still has none, and the picture is still the placeholder. |
|
||||
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. Since 2026-11-17 the APK and the Windows installer are also built by hand here (G-T7). |
|
||||
| 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/`. |
|
||||
| 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). 2026-11-17, `art/gardener-layers`: the gardener the player dresses is drawn in layered parts (the author's answer): a guide and 55 layer sheets, register checked by `art:accept`, 10 of 10 put-back bugs caught; the board has 95 cards and 538 pictures. **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.28~~ | ~~CLAUDE.md §5.7's CPU limit was only read, and broken three times on 2026-11-02~~ | 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. |
|
||||
@@ -62,6 +62,7 @@ sentences). Phase 1 is built in code, not deployed (no host yet, G0.13).
|
||||
| ~~G1.8~~ | ~~Two tabs (CLAUDE.md §8, predicted)~~ | 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. |
|
||||
| ~~G1.10~~ | ~~The garden named only the sunset, never the sunrise (ROADMAP Phase 1: *sunset and sunrise*)~~ | 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. |
|
||||
| ~~G1.9~~ | ~~The garden was a page of buttons, not a game (the author, 2026-11-17)~~ | 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.11 | The app does not stack painted gardener layers | Open. Decided 2026-11-17 (STYLE.md §3b): the scene stacks body, clothes, apron, hair and hat from `art/final/`, in the look the player chose, and keeps its code drawing for any look whose layers are not all accepted. Comes with the first accepted layers; needs a size budget for 55 sheets (docs/ART.md §4: 440 cells would not all be precached). |
|
||||
| G1.3 | Towns have no Czech names (*Vídeň*) | Open. Natural Earth has none; arrives with Czech copy. |
|
||||
|
||||
## The platform track — four versions (from 2026-11-17)
|
||||
|
||||
@@ -79,7 +79,7 @@ flowchart LR
|
||||
| G2 | **Gesture recognisers are pure functions** of pointer samples (`gestures.ts`): `tiltOf`, `isSwipeUp`, `isSweep`, `dropTarget`, `strokeOf`. Unit- and property-tested. | Input interpretation is not game logic, but it must be testable without a browser. The rules stay in the engine. |
|
||||
| G3 | **How many weeds and petals** a day shows is the engine's: `weedsToday(seed, day)` (2–4 when `weedsOn`), `petalsToday(seed, day)` (3–5 when `petalsOn`). One `weed` / `petals` care event when the **last** one is pulled or gathered. | A count on screen is the engine's (CLAUDE.md §6.2). Half-pulled weeds are not care yet: nothing is written until the job is done, and leaving half-way loses nothing earned. |
|
||||
| G4 | **Pour by tilt** maps tilt to the same pour rate the hold uses (`ROSE.fullPour` over `FULL_CAN_MS`), scaled 0–1.5× by tilt; the event's `amount` is unchanged in meaning. | Watering by feel (rose.md R1) stays one rule. |
|
||||
| G5 | **The gardener** is a separate component with poses (`stand`, `walk`, `pour`, `bend`, `pull`, `sweep`, `carry`, `reach`, `sit`) and a look from the player's choice. Poses are SVG stand-ins now; real art replaces them sheet by sheet. | Art and animation can arrive later without touching gestures or rules. |
|
||||
| G5 | **The gardener** is a separate component with poses (`stand`, `walk`, `pour`, `bend`, `pull`, `sweep`, `carry`, `reach`, `sit`) and a look from the player's choice. Poses are SVG stand-ins now. Painted art comes as **layered parts** (decided by the author 2026-11-17, STYLE.md §3b): body, clothes, apron and boots, hair, hat, each painted over one guide in register and stacked in the scene (G1.11). | Art and animation can arrive later without touching gestures or rules. |
|
||||
| G6 | **The gardener's look is stored in `profile`** as `{ presentation: 'boy' \| 'girl', skin, hair, hairColour, clothes, hat }`, each from a fixed list; shape-checked like every stored value. Never sent anywhere. | No free text; nothing identifying; local only (CLAUDE.md §4). |
|
||||
| G7 | **The ring** opens on a tap of the rose; it holds only her current needs plus *Touch her*; Escape or a tap outside closes it; focus moves into it and back. | Silence and calm: no permanent row of buttons over her. |
|
||||
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
# Review — `art/gardener-layers`
|
||||
|
||||
The author's answer on 2026-11-17 to the open art question of the planet garden (STYLE.md §3b): the
|
||||
gardener the player dresses is drawn in **layered parts**. Not a few painted looks, not colours tinted
|
||||
in code. This branch turns that answer into the art pipeline. The app does not change: it keeps its
|
||||
code drawing until painted layers are accepted (G1.11).
|
||||
|
||||
## What changed
|
||||
|
||||
- **STYLE.md §3b** records the decision.
|
||||
- A **guide** (`gardener-poses-sheet`, the first-look girl whole in 8 poses) is now never shipped.
|
||||
- Five layers are stacked back to front: body (skin, face, a cream vest and shorts), clothes,
|
||||
apron and boots, hair, hat.
|
||||
- Each layer is painted over the guide in register, always as a whole sheet.
|
||||
- The count is **55 layer sheets** of 8 pictures.
|
||||
- New review point 12: a layer holds only its part and stacks into one child.
|
||||
- **art/manifest.json** gains `layers`.
|
||||
- It holds the words for every value the app offers, with the app's own colour codes.
|
||||
- It names the first looks and the five parts.
|
||||
- **tools/art-prep**
|
||||
- `expandLayers` writes the layers out as ordinary sprite sheets right after the guide, with the
|
||||
two first looks' seven layers first.
|
||||
- `checkManifest` refuses a guide that is missing, not a sprite sheet, or shipped. It also refuses
|
||||
a part whose subject names a choice it is not painted for, a choice with no words, and forbidden
|
||||
words.
|
||||
- A layer's prompt attaches `gardener-sheet` and the guide. It names only its part, not the whole
|
||||
first look, and its pictures have no one-at-a-time prompts.
|
||||
- `art:accept` refuses:
|
||||
- one picture of a layer made alone;
|
||||
- any layer before the guide is in `art/final/`;
|
||||
- a layer whose part strays more than 8 % of its cell outside the guide's figure, naming the
|
||||
pictures.
|
||||
- Stand-ins: the code gardener is split into the same five parts, so the layer stand-ins stack
|
||||
into whole figures. This was checked by eye: the first-look girl, and a boy with skin-6, dusk
|
||||
clothes, red curls and a cap.
|
||||
- **The board** has a *Gardener layers* group. A layer card says to attach the guide and has no
|
||||
*One at a time*.
|
||||
|
||||
## Findings
|
||||
|
||||
| # | Kind | Finding | Resolution |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 | Scope | 55 layer sheets make 440 pictures. The board grows from 40 cards and 98 pictures to 95 cards and 538 pictures. That is the real cost of *layered parts*, and it is the author's to know. | The board puts the seven first-look layers first. A look can be judged once its five are in, and the rest can follow over time (§3b). |
|
||||
| 2 | Correctness | Image generators do not keep layers in register by themselves. A layer made from text alone will drift. | The prompt makes the guide an attachment to paint over. `art:accept` measures register against the accepted guide and refuses the whole sheet if a part is off (8 % of the cell, `REGISTER`). The tolerance is a first guess: a curly bob or a wide hat may need more. Tune it on the first real layers. |
|
||||
| 3 | Correctness | The guide holds the watering can and the windbreak in its poses. A layer that copied them would draw a second can over the scene's own. | Every layer avoids "any other thing the guide holds (the game draws them)". |
|
||||
| 4 | Soul / likeness | Fair hair, short curls and sage clothes can be chosen together. STYLE.md's *never* list names "golden curls with a green outfit". | The words say *light honey-fair* and never *golden*. The gardener always wears the apron and boots, never a scarf or coat. Review points 10 and 12 apply to a whole stacked look as well as each layer. **Open for Mark:** whether the app should keep fair + curly from sage. It is one rule in the choice, not in the art. |
|
||||
| 5 | Privacy | Nothing leaves the device. The art board is a private page holding generated pictures and Mark's notes only. | — |
|
||||
| 6 | Test honesty | The first drill run reported CAUGHT without saying which test failed. A catch by an unrelated test proves nothing (`lessons/testing.md`). | Rerun with names: each of the 10 drills is caught by the test written for it. |
|
||||
|
||||
## Bug drills (put back, test run, restored)
|
||||
|
||||
10 of 10 caught, each by its own test:
|
||||
|
||||
1. No register check.
|
||||
2. One picture of a layer accepted alone.
|
||||
3. A layer accepted before its guide.
|
||||
4. No hat gets a layer.
|
||||
5. A shipped guide passes the check.
|
||||
6. A layer gets an ordinary sheet prompt.
|
||||
7. A layer's pictures get one-at-a-time prompts.
|
||||
8. A layer attaches only the character sheet.
|
||||
9. A prompt colour drifts from the app's.
|
||||
10. The first looks are not put first.
|
||||
|
||||
## Gates
|
||||
|
||||
lint 0 and typecheck 0.
|
||||
|
||||
Unit tests: 578.
|
||||
|
||||
| Package | Tests |
|
||||
|:--|--:|
|
||||
| cpu-guard | 13 |
|
||||
| identity | 5 |
|
||||
| schema | 19 |
|
||||
| content | 88 |
|
||||
| storage | 70 |
|
||||
| art-prep | 80 |
|
||||
| tauri | 40 |
|
||||
| engine | 179 |
|
||||
| ui | 84 |
|
||||
|
||||
The other gates:
|
||||
|
||||
- e2e: 26.
|
||||
- offline: 1.
|
||||
- `lint:copy`: 26 files, 0 problems.
|
||||
- Fixtures: 13 of 13 rejected.
|
||||
|
||||
The **first** run of e2e and offline failed, and my output filter dropped the reason, probably the
|
||||
CPU guard refusing a busy machine; that is not shown. Both passed when rerun unchanged. The app is
|
||||
unchanged by this branch.
|
||||
|
||||
## Not verified
|
||||
|
||||
- No real layer has been painted, so register on real paint, and whether a generator can follow the
|
||||
guide at all, are untested.
|
||||
- The app does not stack painted layers yet (G1.11).
|
||||
- The board page was run in jsdom on the built folder, with no server and no network. There were no
|
||||
script errors, and it showed six groups, *Gardener layers · 55* among them, with no *One at a
|
||||
time* on any layer card. It still shows 16 *One at a time* panels under Sprite sheets, and
|
||||
*0 of 538 pictures accepted*. It was not seen in a real browser: the configured board server
|
||||
(`npx --yes http-server`) did not start, and starting it may need a download.
|
||||
Reference in New Issue
Block a user