Files
Rosea/.agents/reviews/art-gardener-layers.md
T

104 lines
5.7 KiB
Markdown

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