From a5dbd5251b03dd3c9c522402ac5fbf6dc152c390 Mon Sep 17 00:00:00 2001 From: mnovak Date: Sun, 1 Nov 2026 21:55:04 +0100 Subject: [PATCH 1/2] [art-prep] Phase2Pictures: Add the fox, berries, bush, paths and lanterns to the art board, each card marked with its phase --- art/STYLE.md | 51 +++++++ art/manifest.json | 180 +++++++++++++++++++++++- art/placeholders/berries-sheet.svg | 4 + art/placeholders/berry-bush-sheet.svg | 4 + art/placeholders/blackberries.svg | 4 + art/placeholders/blueberries.svg | 4 + art/placeholders/bush-flowering.svg | 4 + art/placeholders/bush-resting.svg | 4 + art/placeholders/bush-ripe.svg | 4 + art/placeholders/fox-asleep.svg | 4 + art/placeholders/fox-brush.svg | 4 + art/placeholders/fox-brushed.svg | 4 + art/placeholders/fox-carrying-petal.svg | 4 + art/placeholders/fox-curious.svg | 4 + art/placeholders/fox-eating.svg | 4 + art/placeholders/fox-leading.svg | 4 + art/placeholders/fox-moments-sheet.svg | 4 + art/placeholders/fox-petted.svg | 4 + art/placeholders/fox-resting.svg | 4 + art/placeholders/fox-sheet.svg | 4 + art/placeholders/fox-sitting.svg | 4 + art/placeholders/fox-trotting.svg | 4 + art/placeholders/fox-trust-sheet.svg | 4 + art/placeholders/fox-visiting.svg | 4 + art/placeholders/fox-watching.svg | 4 + art/placeholders/lantern-lit.svg | 4 + art/placeholders/lantern-unlit.svg | 4 + art/placeholders/lanterns-sheet.svg | 4 + art/placeholders/leaf-plate.svg | 4 + art/placeholders/path-prints.svg | 4 + art/placeholders/path-road.svg | 4 + art/placeholders/path-trail.svg | 4 + art/placeholders/paths-sheet.svg | 4 + art/placeholders/raspberries.svg | 4 + art/placeholders/rose-hips.svg | 4 + art/placeholders/wild-strawberries.svg | 4 + tools/art-prep/board/index.html | 6 +- tools/art-prep/src/board.ts | 3 +- tools/art-prep/src/manifest.ts | 6 + tools/art-prep/src/placeholders.ts | 153 +++++++++++++++++++- tools/art-prep/test/accept.test.ts | 2 +- tools/art-prep/test/board.test.ts | 16 ++- tools/art-prep/test/manifest.test.ts | 17 ++- tools/art-prep/test/prompt.test.ts | 23 ++- 44 files changed, 576 insertions(+), 17 deletions(-) create mode 100644 art/placeholders/berries-sheet.svg create mode 100644 art/placeholders/berry-bush-sheet.svg create mode 100644 art/placeholders/blackberries.svg create mode 100644 art/placeholders/blueberries.svg create mode 100644 art/placeholders/bush-flowering.svg create mode 100644 art/placeholders/bush-resting.svg create mode 100644 art/placeholders/bush-ripe.svg create mode 100644 art/placeholders/fox-asleep.svg create mode 100644 art/placeholders/fox-brush.svg create mode 100644 art/placeholders/fox-brushed.svg create mode 100644 art/placeholders/fox-carrying-petal.svg create mode 100644 art/placeholders/fox-curious.svg create mode 100644 art/placeholders/fox-eating.svg create mode 100644 art/placeholders/fox-leading.svg create mode 100644 art/placeholders/fox-moments-sheet.svg create mode 100644 art/placeholders/fox-petted.svg create mode 100644 art/placeholders/fox-resting.svg create mode 100644 art/placeholders/fox-sheet.svg create mode 100644 art/placeholders/fox-sitting.svg create mode 100644 art/placeholders/fox-trotting.svg create mode 100644 art/placeholders/fox-trust-sheet.svg create mode 100644 art/placeholders/fox-visiting.svg create mode 100644 art/placeholders/fox-watching.svg create mode 100644 art/placeholders/lantern-lit.svg create mode 100644 art/placeholders/lantern-unlit.svg create mode 100644 art/placeholders/lanterns-sheet.svg create mode 100644 art/placeholders/leaf-plate.svg create mode 100644 art/placeholders/path-prints.svg create mode 100644 art/placeholders/path-road.svg create mode 100644 art/placeholders/path-trail.svg create mode 100644 art/placeholders/paths-sheet.svg create mode 100644 art/placeholders/raspberries.svg create mode 100644 art/placeholders/rose-hips.svg create mode 100644 art/placeholders/wild-strawberries.svg diff --git a/art/STYLE.md b/art/STYLE.md index ceb895f..0141a35 100644 --- a/art/STYLE.md +++ b/art/STYLE.md @@ -9,6 +9,9 @@ A picture that is off-style goes back for another try. It is never shipped. > and Mark kept the draft as it was: S1–S5 in §0 are decided. The first picture on the board, > the rose's character sheet, is still the test. If it looks wrong, this file changes before > anything else is made, and `pnpm art:board` rebuilds every prompt. +> +> **Added later the same day, a draft again:** the fox and the Phase 2–3 pictures (F1–F4 in §0, +> §3a, the new rows in §2 and §4, review points 8–9). Mark's approval above covers S1–S5 only. --- @@ -22,6 +25,15 @@ A picture that is off-style goes back for another try. It is never shipped. | S4 | The palette | §2 | It starts from the app's tokens (`--rose #b4485e`, `--paper #fbf6f1`). | | S5 | The sky | Drawn in code, never painted | The sun moves at the player's real time, and the stars are the real constellations. A painted sky could do neither. | +**Draft, waiting for Mark: the fox and the Phase 2–3 pictures.** + +| # | Choice | The draft says | Why | +|:--|:--|:--|:--| +| F1 | The fox's look | A small russet fox with a cream mask round his eyes and muzzle, dark legs, and a bushy tail with faint darker rings | The mask and the rings are the quiet nod to Ulfík the red panda (CLAUDE.md §1). They also keep him far from the book's fox, which is pale and sandy with very long ears. | +| F2 | His size | Sitting, he is about as tall as the rose | They share the garden bed and must read together on a phone. | +| F3 | Bush and berries | One wild bush in three states. The berries are their own small pictures, placed on the bush in code | Five berry kinds (GAMEPLAY.md §3) then need one bush, not five. | +| F4 | Paths and lanterns (Phase 3) | Small vignettes for now | The screen that shows two roses and the path between them is not designed yet. Its feature doc may ask for them again. | + --- ## 1. The system prompt (paste word for word) @@ -60,6 +72,14 @@ The main tones. Small shades in between are fine. | Sunset glow | coral | `#E9846A` | | Night | dusk indigo | `#2E3561` | | Lamps and stars | lamp gold | `#F4D58D` | +| Fox coat | russet | `#B65A35` | +| Fox mask, chest, tail tip | cream | `#F3E3C8` | +| Fox legs, ear tips | deep brown | `#5A3A33` | +| Wild strawberries | strawberry | `#D2554E` | +| Blueberries | dusk blue | `#5B6FA6` | +| Raspberries | raspberry | `#C2456A` | +| Blackberries | bramble | `#3F2E4A` | +| Rose hips | hip orange | `#D0632E` | Never use neon, saturated primaries, pure black, pure white or cold greys. @@ -89,6 +109,27 @@ The rose is the only character in Phase 1. Every rose picture follows the charac --- +## 3a. The fox (Phase 2, draft: F1–F2) + +The fox is the second character. Every fox picture follows the character sheet `fox-sheet`. + +- **A small, young fox** with a warm russet coat (`#B65A35`). His face has a cream mask + (`#F3E3C8`): cream cheeks and muzzle, and a small cream spot above each eye. His legs and + paws are deep brown (`#5A3A33`). His ears are rounded and of middle size, cream inside with + dark tips. His tail is big and bushy, with three faint darker rings and a cream tip. +- **His face** is like the rose's: small dark eyes, often half-closed, and a tiny dark nose + and mouth. He is shy and curious, never sly. +- **He is a fox, not a red panda.** He has a fox's pointed muzzle and a fox's body. The mask + and the tail rings are only a nod. +- **Sitting, he is about as tall as the rose.** +- **How he comes closer:** watching from a distance, curious, sitting, resting near. Then the + ways he is tamed: petted, brushed, eating berries. The player's hand is never drawn. A + petted fox simply leans into a touch we do not see. +- **Never:** pale sandy fur, very large ears, a wheat field, a collar, lead or clothes, or a + fox who looks sly, hungry, frightened or hurt. + +--- + ## 4. The world - **The garden:** a small round garden bed on a hillside meadow. A low dry-stone wall sits @@ -108,6 +149,13 @@ The rose is the only character in Phase 1. Every rose picture follows the charac or anything that looks like a drawing from the book (GAMEPLAY.md §8: *a direction only — never, ever copying the illustrations*). The willow windbreak is the shelter from the wind, and it must look nothing like a screen. +- **The wild berry bush (Phase 2, F3):** a small round bush beside the rose's bed, with soft + oval leaves. It rests, flowers, then ripens. The berries are their own pictures: wild + strawberries, blueberries, raspberries, blackberries and rose hips. Code places them on the + bush and on the large leaf the fox eats from. A soft wooden brush is used to groom him. +- **Paths and lanterns (Phase 3, F4):** a path through the meadow grows from paw prints, to a + trodden trail, to a soft earth road edged with stones. A lantern is a small iron-and-glass + hand lantern hanging from a shepherd's-crook post, never a street lamp. - No flags, religious symbols, buildings, vehicles or people. --- @@ -164,6 +212,9 @@ tick them: *Accept* is one tap. 5. The size and background are right for its kind in §5. 6. It reads clearly at the smallest size it is shown. 7. It is gentle: nothing blames, frightens or looks hurt, and drift looks like waiting. +8. It reads as one young russet fox with a cream mask and a ringed tail, shy and gentle, and + nothing like the book's sandy, long-eared fox. +9. He matches `fox-sheet`: the same mask, ears, leg colour, tail rings and size. --- diff --git a/art/manifest.json b/art/manifest.json index 1355493..a68245a 100644 --- a/art/manifest.json +++ b/art/manifest.json @@ -1,9 +1,13 @@ { - "//": "Every picture Rosea Domi needs, Phase 1 first. tools/art-prep builds the art board's prompts and stand-ins from this file (docs/ART.md). Status lives on the board, not here: this file says what is wanted, never whether it is done.", + "//": "Every picture Rosea Domi needs, in the order of the phases that use them (docs/ROADMAP.md). tools/art-prep builds the art board's prompts and stand-ins from this file (docs/ART.md). Status lives on the board, not here: this file says what is wanted, never whether it is done.", "characters": { "rose": { "sheet": "rose-sheet", "description": "The rose: one garden rose on a single slender stem, about three blooms tall from the bloom down to where the stem would meet the soil, with three leaves (two low, one high) and a few small thorns with rounded tips that never look threatening. Her bloom is her head: soft layered petals in rose (#C85A6E) turning pale petal (#F2B5BE) at the edges, and in the middle of the bloom a soft face with two small dark eyes, often half-closed, and a tiny mouth; a faint blush (#E8899B) on the petals by her cheeks when she is tended. A little vain: head held high, petals neat. Her leaves move like small arms." + }, + "fox": { + "sheet": "fox-sheet", + "description": "The fox: a small, young fox; sitting, he is about as tall as the rose. A warm russet coat (#B65A35). A cream mask (#F3E3C8) on his face: cream cheeks and muzzle and a small cream spot above each eye. Deep brown legs and paws (#5A3A33). Rounded ears of middle size, cream inside with dark tips. A big bushy tail with three faint darker rings and a cream tip. Small dark eyes, often half-closed, a tiny dark nose and mouth. A fox's pointed muzzle and a fox's body: the mask and the tail rings are only a nod to a red panda. Shy, curious and gentle, never sly." } }, "avoid": [ @@ -16,12 +20,14 @@ "a tiny round planet", "a desert", "a scarf", + "a wheat field or golden wheat", "the look of any existing book's drawings" ], "assets": [ { "id": "rose-sheet", "type": "sheet", + "phase": 1, "width": 1536, "height": 1024, "background": "full", @@ -40,6 +46,7 @@ { "id": "rose-stages-sheet", "type": "spritesheet", + "phase": 1, "width": 1536, "height": 1024, "background": "transparent", @@ -63,6 +70,7 @@ { "id": "rose-care-sheet", "type": "spritesheet", + "phase": 1, "width": 1536, "height": 1024, "background": "transparent", @@ -86,6 +94,7 @@ { "id": "rose-moments-sheet", "type": "spritesheet", + "phase": 1, "width": 1536, "height": 1024, "background": "transparent", @@ -109,6 +118,7 @@ { "id": "care-props-sheet", "type": "spritesheet", + "phase": 1, "width": 1536, "height": 1024, "background": "transparent", @@ -133,6 +143,7 @@ { "id": "garden-chair", "type": "sprite", + "phase": 1, "width": 1024, "height": 1024, "background": "transparent", @@ -148,6 +159,7 @@ { "id": "garden-morning", "type": "layer", + "phase": 1, "width": 1024, "height": 1536, "background": "transparent", @@ -165,6 +177,7 @@ { "id": "garden-day", "type": "layer", + "phase": 1, "width": 1024, "height": 1536, "background": "transparent", @@ -182,6 +195,7 @@ { "id": "garden-sunset", "type": "layer", + "phase": 1, "width": 1024, "height": 1536, "background": "transparent", @@ -199,6 +213,7 @@ { "id": "garden-night", "type": "layer", + "phase": 1, "width": 1024, "height": 1536, "background": "transparent", @@ -216,6 +231,7 @@ { "id": "app-icon", "type": "icon", + "phase": 1, "width": 1024, "height": 1024, "background": "full", @@ -230,6 +246,168 @@ "include": ["a bold, simple silhouette that reads at 48 px"], "avoid": ["fine detail that vanishes when small", "a border or rounded-corner frame"], "checks": [0, 1, 2, 3, 4, 5, 6] + }, + { + "id": "fox-sheet", + "type": "sheet", + "phase": 2, + "width": 1536, + "height": 1024, + "background": "full", + "shipped": false, + "smallest": null, + "character": "fox", + "usedBy": ["The reference for every fox picture. Make it before any other fox picture: every fox prompt asks for it as the reference picture."], + "purpose": "Reference sheet that fixes the fox's look; every later fox prompt points to it. Never shown in the app.", + "subject": "The fox, as described below. Four full figures: sitting facing the front; standing in side view facing left; standing in three-quarter view facing left; sitting seen from behind, tail curled round. Then three close-ups of the head only: content (eyes half-closed), curious (eyes open, head tilted, ears forward), sleepy (eyes closed).", + "setting": "Isolated on plain warm off-white paper (#FBF6F1), no scenery, no ground.", + "composition": "Seven figures on one sheet with even spacing: the four full figures in a row across the top two thirds, the three close-ups in a row below, all full figures at the same scale, nothing overlapping.", + "include": ["the same markings in every view: the cream mask, the cream spots above the eyes, the dark legs, the three faint tail rings and the cream tail tip", "identical proportions in every view"], + "avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a sly, hungry or frightened look"], + "checks": [2, 3, 4, 5, 7, 8] + }, + { + "id": "fox-trust-sheet", + "type": "spritesheet", + "phase": 2, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 96, + "character": "fox", + "usedBy": ["The fox coming closer: the engine's fox distance picks the pose, never more than one step a day (CLAUDE.md §5.5).", "Pet and brush, the touch half of taming (GAMEPLAY.md §3).", "Not in the app yet: Phase 2 builds the fox"], + "purpose": "The fox in six poses of growing trust, from watching at a distance to leaning into a touch.", + "angle": "Every pose shows the whole fox at the same scale (the scale of fox-sheet), light from the left. Side and three-quarter views face left unless the cell says otherwise.", + "grid": { "cols": 3, "rows": 2 }, + "cells": [ + { "id": "fox-watching", "does": "watching from a distance: sitting half turned away, looking back over his shoulder, ears up, wary but curious." }, + { "id": "fox-curious", "does": "curious: standing, one front paw lifted, head tilted, ears forward, sniffing the air towards the left." }, + { "id": "fox-sitting", "does": "sitting calmly facing the front, tail wrapped round his paws, eyes half-closed." }, + { "id": "fox-resting", "does": "resting close: lying down with his head on his front paws, eyes half-closed, tail curled round. Trusting and at ease." }, + { "id": "fox-petted", "does": "being petted: sitting, leaning his head and shoulder to the left into a touch we do not see, eyes closed happily, ears softly back. No hand is drawn." }, + { "id": "fox-brushed", "does": "just brushed: sitting tall, his coat fluffed and glossy, tail fanned out, chin up, a little proud, like the rose." } + ], + "include": ["the same fox as fox-sheet in every cell"], + "avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a human hand or arm", "ground or grass under him"], + "checks": [2, 3, 4, 5, 6, 7, 8, 9] + }, + { + "id": "fox-moments-sheet", + "type": "spritesheet", + "phase": 2, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 96, + "character": "fox", + "usedBy": ["Feeding him berries (GAMEPLAY.md §3), the fox at night, following on the journey, and after the taming leading the player towards real people (CLAUDE.md §1).", "Phase 3: carrying a trace of you to a friend, and the thanks visit to your rose.", "Not in the app yet: Phase 2 builds the fox"], + "purpose": "The fox in six moments: eating, asleep, following, leading, carrying a petal and visiting.", + "angle": "Every moment shows the whole fox at the same scale as fox-trust-sheet, light from the left. Side views face the way the cell says.", + "grid": { "cols": 3, "rows": 2 }, + "cells": [ + { "id": "fox-eating", "does": "eating: crouched forward, nose down as if eating from the ground just in front of his paws, tail up and happy. The leaf and berries are their own pictures placed in code, so nothing is drawn there." }, + { "id": "fox-asleep", "does": "asleep: curled in a round ball, tail over his nose, eyes closed, peaceful." }, + { "id": "fox-trotting", "does": "following: trotting to the left in side view, light on his feet, ears up, tail streaming behind." }, + { "id": "fox-leading", "does": "leading the way: walking to the right in side view, looking back over his shoulder at the viewer, one front paw raised mid-step. Inviting." }, + { "id": "fox-carrying-petal", "does": "carrying a trace: trotting to the left, holding one rose petal gently in his mouth, careful and proud. The petal is pale cream, so code can tint it with the friend's colour." }, + { "id": "fox-visiting", "does": "visiting: sitting very upright, looking up and to the left as if at a rose beside him, tail swept round, eyes soft. A quiet thank-you." } + ], + "include": ["the same fox as fox-sheet in every cell"], + "avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a human hand or arm", "ground, grass or a leaf under him"], + "checks": [2, 3, 4, 5, 6, 7, 8, 9] + }, + { + "id": "berries-sheet", + "type": "spritesheet", + "phase": 2, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 48, + "usedBy": ["The fox's food. The player's own rose's growth sets the kind: wild strawberries, blueberries, raspberries, blackberries, then rose hips (GAMEPLAY.md §3).", "Placed in code on the berry bush and on the leaf he eats from.", "Not in the app yet: Phase 2"], + "purpose": "Five small berry clusters, one of each kind, and the large leaf the fox eats from, each easy to recognise at 48 px.", + "angle": "Each thing in a gentle three-quarter view from a little above, the same light from the left. Every berry cluster at the same scale; the leaf is the largest drawing.", + "grid": { "cols": 3, "rows": 2 }, + "cells": [ + { "id": "wild-strawberries", "does": "a small cluster of three tiny wild strawberries, cone-shaped and seedy, strawberry red (#D2554E), on a short stalk with two small leaves." }, + { "id": "blueberries", "does": "a small cluster of five round blueberries in dusk blue (#5B6FA6), each with a soft bloom and a tiny crown, on a short twig with two leaves." }, + { "id": "raspberries", "does": "a small cluster of three raspberries in raspberry (#C2456A), each made of little round drupelets, with one leaf." }, + { "id": "blackberries", "does": "a small cluster of three glossy blackberries in bramble (#3F2E4A), with one leaf and no thorns." }, + { "id": "rose-hips", "does": "two oval rose hips in hip orange (#D0632E) on one short stem, each with a small dark crown of dried sepals. The rarest and best, so a faint warm glow round them." }, + { "id": "leaf-plate", "does": "one large, soft dock leaf lying flat, seen from above, in sage and moss green, empty: the berries are placed on it in code." } + ], + "include": ["each thing whole and clear at 48 px", "the five berry clusters at the same scale"], + "avoid": ["thorns", "a bowl, plate or basket", "berries that look bruised or rotten"], + "checks": [2, 3, 4, 5, 6] + }, + { + "id": "berry-bush-sheet", + "type": "spritesheet", + "phase": 2, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 96, + "usedBy": ["The wild bush beside the player's own rose. It ripens only on a day the care helped, and gives one harvest a day (GAMEPLAY.md §3; CLAUDE.md §8, berry farming).", "The brush for grooming the fox (GAMEPLAY.md §3).", "Not in the app yet: Phase 2"], + "purpose": "The wild berry bush in its three states, and the soft brush used to groom the fox.", + "angle": "Each thing in a gentle three-quarter view, the same light from the left. The first three cells are the same bush at the same scale; only its state changes.", + "grid": { "cols": 2, "rows": 2 }, + "cells": [ + { "id": "bush-resting", "does": "the wild berry bush at rest: a small round bush of soft oval leaves in sage and moss, calm, with no flowers and no fruit." }, + { "id": "bush-flowering", "does": "the same bush flowering: a scatter of small white five-petalled flowers among the leaves." }, + { "id": "bush-ripe", "does": "the same bush ready to pick: the leaves lifted and parted in three small, softly lit hollows where the berries are placed in code. No berries drawn." }, + { "id": "fox-brush", "does": "a small, soft grooming brush with a rounded honey-wood back (#B98A5A) and pale natural bristles, lying on its side, bristles to the right." } + ], + "include": ["the same bush in the first three cells", "the bush whole, from its base to its top leaves"], + "avoid": ["berries drawn on the bush", "thorns", "soil, a pot or ground"], + "checks": [2, 3, 4, 5, 6, 7] + }, + { + "id": "paths-sheet", + "type": "spritesheet", + "phase": 3, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 96, + "usedBy": ["The path between two friends' roses, which only grows: paw prints, then a trail, then a road (CLAUDE.md §1, friends).", "Not in the app yet: Phase 3. Its feature doc designs the screen and may ask for these again (STYLE.md F4)."], + "purpose": "Three short stretches of the path between two roses, one for each stage of its growth.", + "angle": "Each stretch seen from a little above, running from the bottom of its cell up into the distance and narrowing, in a soft oval of meadow grass that fades out at its edges. The same meadow, scale and light in every cell.", + "grid": { "cols": 3, "rows": 1 }, + "cells": [ + { "id": "path-prints", "does": "the path at its start: a line of small paw prints through the meadow grass, the grass barely pressed." }, + { "id": "path-trail", "does": "a trail: a narrow line of trodden, paler grass with the earth just showing, a few paw prints along it." }, + { "id": "path-road", "does": "a road: a soft earth path, a little wider, edged on both sides with small rounded stones and wildflowers." } + ], + "include": ["the same meadow in all three cells", "the grass fading softly to transparency at its edges"], + "avoid": ["a signpost, gate or fence", "shoe prints", "a hard square edge to the meadow"], + "checks": [2, 3, 4, 5, 6, 7] + }, + { + "id": "lanterns-sheet", + "type": "spritesheet", + "phase": 3, + "width": 1536, + "height": 1024, + "background": "transparent", + "shipped": true, + "smallest": 96, + "usedBy": ["The lantern a player may light once the path is a road. A lantern only one player lit is never shown to the other; when both are lit, the game says so (CLAUDE.md §1; §8, a lantern as rejection).", "Not in the app yet: Phase 3"], + "purpose": "The lantern beside the rose, unlit and lit.", + "angle": "Both seen from the front with the whole post visible: the same lantern at the same scale, only the light changes.", + "grid": { "cols": 2, "rows": 1 }, + "cells": [ + { "id": "lantern-unlit", "does": "unlit: a small iron-and-glass hand lantern hanging from a shepherd's-crook post of honey wood, its glass clear, the candle inside unlit. Quiet, not sad." }, + { "id": "lantern-lit", "does": "lit: the same lantern with a small candle flame glowing lamp gold (#F4D58D), and a soft halo of warm light round it that stays inside the safe box." } + ], + "include": ["the same post and lantern in both cells"], + "avoid": ["a street lamp", "a flame that looks dangerous", "ground or grass at the foot of the post"], + "checks": [2, 3, 4, 5, 6, 7] } ] } diff --git a/art/placeholders/berries-sheet.svg b/art/placeholders/berries-sheet.svg new file mode 100644 index 0000000..33cef16 --- /dev/null +++ b/art/placeholders/berries-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/berry-bush-sheet.svg b/art/placeholders/berry-bush-sheet.svg new file mode 100644 index 0000000..80cdd49 --- /dev/null +++ b/art/placeholders/berry-bush-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/blackberries.svg b/art/placeholders/blackberries.svg new file mode 100644 index 0000000..4a998ae --- /dev/null +++ b/art/placeholders/blackberries.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/blueberries.svg b/art/placeholders/blueberries.svg new file mode 100644 index 0000000..c5485ca --- /dev/null +++ b/art/placeholders/blueberries.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/bush-flowering.svg b/art/placeholders/bush-flowering.svg new file mode 100644 index 0000000..2a5d598 --- /dev/null +++ b/art/placeholders/bush-flowering.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/bush-resting.svg b/art/placeholders/bush-resting.svg new file mode 100644 index 0000000..5a7f225 --- /dev/null +++ b/art/placeholders/bush-resting.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/bush-ripe.svg b/art/placeholders/bush-ripe.svg new file mode 100644 index 0000000..b288204 --- /dev/null +++ b/art/placeholders/bush-ripe.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-asleep.svg b/art/placeholders/fox-asleep.svg new file mode 100644 index 0000000..28c9d24 --- /dev/null +++ b/art/placeholders/fox-asleep.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-brush.svg b/art/placeholders/fox-brush.svg new file mode 100644 index 0000000..41e7cad --- /dev/null +++ b/art/placeholders/fox-brush.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-brushed.svg b/art/placeholders/fox-brushed.svg new file mode 100644 index 0000000..11e125c --- /dev/null +++ b/art/placeholders/fox-brushed.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-carrying-petal.svg b/art/placeholders/fox-carrying-petal.svg new file mode 100644 index 0000000..3d4f290 --- /dev/null +++ b/art/placeholders/fox-carrying-petal.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-curious.svg b/art/placeholders/fox-curious.svg new file mode 100644 index 0000000..9e46994 --- /dev/null +++ b/art/placeholders/fox-curious.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-eating.svg b/art/placeholders/fox-eating.svg new file mode 100644 index 0000000..0529fe2 --- /dev/null +++ b/art/placeholders/fox-eating.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-leading.svg b/art/placeholders/fox-leading.svg new file mode 100644 index 0000000..fb8367e --- /dev/null +++ b/art/placeholders/fox-leading.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-moments-sheet.svg b/art/placeholders/fox-moments-sheet.svg new file mode 100644 index 0000000..f7f1688 --- /dev/null +++ b/art/placeholders/fox-moments-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-petted.svg b/art/placeholders/fox-petted.svg new file mode 100644 index 0000000..3347a64 --- /dev/null +++ b/art/placeholders/fox-petted.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-resting.svg b/art/placeholders/fox-resting.svg new file mode 100644 index 0000000..8878afe --- /dev/null +++ b/art/placeholders/fox-resting.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-sheet.svg b/art/placeholders/fox-sheet.svg new file mode 100644 index 0000000..7733bce --- /dev/null +++ b/art/placeholders/fox-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-sitting.svg b/art/placeholders/fox-sitting.svg new file mode 100644 index 0000000..49f608a --- /dev/null +++ b/art/placeholders/fox-sitting.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-trotting.svg b/art/placeholders/fox-trotting.svg new file mode 100644 index 0000000..91cf0cb --- /dev/null +++ b/art/placeholders/fox-trotting.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-trust-sheet.svg b/art/placeholders/fox-trust-sheet.svg new file mode 100644 index 0000000..ae5f4d6 --- /dev/null +++ b/art/placeholders/fox-trust-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-visiting.svg b/art/placeholders/fox-visiting.svg new file mode 100644 index 0000000..7999cb3 --- /dev/null +++ b/art/placeholders/fox-visiting.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/fox-watching.svg b/art/placeholders/fox-watching.svg new file mode 100644 index 0000000..a63db6f --- /dev/null +++ b/art/placeholders/fox-watching.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/lantern-lit.svg b/art/placeholders/lantern-lit.svg new file mode 100644 index 0000000..0656eb9 --- /dev/null +++ b/art/placeholders/lantern-lit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/lantern-unlit.svg b/art/placeholders/lantern-unlit.svg new file mode 100644 index 0000000..d3cb653 --- /dev/null +++ b/art/placeholders/lantern-unlit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/lanterns-sheet.svg b/art/placeholders/lanterns-sheet.svg new file mode 100644 index 0000000..774ffe2 --- /dev/null +++ b/art/placeholders/lanterns-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/leaf-plate.svg b/art/placeholders/leaf-plate.svg new file mode 100644 index 0000000..91d507e --- /dev/null +++ b/art/placeholders/leaf-plate.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/path-prints.svg b/art/placeholders/path-prints.svg new file mode 100644 index 0000000..c54065b --- /dev/null +++ b/art/placeholders/path-prints.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/path-road.svg b/art/placeholders/path-road.svg new file mode 100644 index 0000000..07c3a68 --- /dev/null +++ b/art/placeholders/path-road.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/path-trail.svg b/art/placeholders/path-trail.svg new file mode 100644 index 0000000..262cfd7 --- /dev/null +++ b/art/placeholders/path-trail.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/paths-sheet.svg b/art/placeholders/paths-sheet.svg new file mode 100644 index 0000000..3830e2c --- /dev/null +++ b/art/placeholders/paths-sheet.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/raspberries.svg b/art/placeholders/raspberries.svg new file mode 100644 index 0000000..a3d6cfe --- /dev/null +++ b/art/placeholders/raspberries.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/rose-hips.svg b/art/placeholders/rose-hips.svg new file mode 100644 index 0000000..dbd86ba --- /dev/null +++ b/art/placeholders/rose-hips.svg @@ -0,0 +1,4 @@ + + + + diff --git a/art/placeholders/wild-strawberries.svg b/art/placeholders/wild-strawberries.svg new file mode 100644 index 0000000..14674c4 --- /dev/null +++ b/art/placeholders/wild-strawberries.svg @@ -0,0 +1,4 @@ + + + + diff --git a/tools/art-prep/board/index.html b/tools/art-prep/board/index.html index 9fcddbe..065da37 100644 --- a/tools/art-prep/board/index.html +++ b/tools/art-prep/board/index.html @@ -228,7 +228,7 @@

Art board

Every picture %PRODUCT_NAME% needs, with the prompt that makes it. The app shows a simple stand-in for each until a picture here is accepted.

    -
  1. Copy a prompt into your image generator. Start with the rose's character sheet: every later rose prompt asks for it as the reference picture. A sprite sheet is one prompt that draws several pictures at once on a grid whose every cell is given in pixels; upload it whole and Claude cuts it apart. If a sheet will not keep to its grid, open One at a time on its card and make each picture with its own prompt.
  2. +
  3. Copy a prompt into your image generator. Start with the character sheets, the rose's first: every later picture of her, or of the fox, asks for its sheet as the reference picture. Each card says which roadmap phase first needs it. A sprite sheet is one prompt that draws several pictures at once on a grid whose every cell is given in pixels; upload it whole and Claude cuts it apart. If a sheet will not keep to its grid, open One at a time on its card and make each picture with its own prompt.
  4. Upload or paste what it made: Paste picture on its card, or point at the card and press Ctrl+V (⌘V on a Mac). Compare it with the stand-in. The review points from art/STYLE.md are under each card if you want them; you don't have to tick them.
  5. Accept it right away, or ask for another try with a note. Claude moves accepted pictures into the app.
@@ -444,8 +444,8 @@ const bg = a.background === 'transparent' ? 'transparent background' : 'full background'; const meta = sheet - ? `sprite sheet · ${a.grid.cols} × ${a.grid.rows} grid · ${a.width} × ${a.height} px · ${bg} · makes ${a.cells.filter(Boolean).length} pictures` - : `${a.type} · ${a.width} × ${a.height} px · ${bg}${a.shipped || a.usedBy.some((u) => u.startsWith('Not in the app yet')) ? '' : ' · reference only, not in the app'}`; + ? `Phase ${a.phase} · sprite sheet · ${a.grid.cols} × ${a.grid.rows} grid · ${a.width} × ${a.height} px · ${bg} · makes ${a.cells.filter(Boolean).length} pictures` + : `Phase ${a.phase} · ${a.type} · ${a.width} × ${a.height} px · ${bg}${a.shipped || a.usedBy.some((u) => u.startsWith('Not in the app yet')) ? '' : ' · reference only, not in the app'}`; const el = h('article', { class: 'asset' + (sheet || a.type === 'map' ? ' wide' : ''), id: a.id, 'data-status': 'todo' }, h('div', { class: 'head' }, h('h3', { class: 'id', text: a.id }), refs.pill), h('p', { class: 'meta', text: meta }), diff --git a/tools/art-prep/src/board.ts b/tools/art-prep/src/board.ts index ed8fbbf..2cb76d0 100644 --- a/tools/art-prep/src/board.ts +++ b/tools/art-prep/src/board.ts @@ -19,6 +19,7 @@ export interface BoardCell { export interface BoardAsset { readonly id: string; readonly type: Asset['type']; + readonly phase: number; readonly width: number; readonly height: number; readonly background: Background; @@ -47,7 +48,7 @@ export function boardData(m: Manifest, styleMarkdown: string): BoardData { const assets = m.assets.map((a): BoardAsset => { const base = { - id: a.id, type: a.type, width: a.width, height: a.height, background: a.background, + id: a.id, type: a.type, phase: a.phase, width: a.width, height: a.height, background: a.background, shipped: a.shipped, usedBy: a.usedBy, checks: a.checks, smallest: a.smallest, attach: attachments(a, m), prompt: promptFor(a, m, style) }; diff --git a/tools/art-prep/src/manifest.ts b/tools/art-prep/src/manifest.ts index 8e4b9db..f02afdd 100644 --- a/tools/art-prep/src/manifest.ts +++ b/tools/art-prep/src/manifest.ts @@ -16,6 +16,8 @@ export interface Cell { export interface Asset { readonly id: string; readonly type: AssetType; + /** The roadmap phase that first shows it (docs/ROADMAP.md §4). The manifest lists phases in order. */ + readonly phase: number; readonly width: number; readonly height: number; readonly background: Background; @@ -88,8 +90,12 @@ export function checkManifest(m: Manifest, checklistLength: number): string[] { else if (sheet.type !== 'sheet') problems.push(`character ${name}: "${c.sheet}" is a ${sheet.type}, not a character sheet`); } + let lastPhase = 0; for (const a of m.assets) { claim(a.id, a.id); + if (!Number.isInteger(a.phase) || a.phase < 1 || a.phase > 6) problems.push(`${a.id}: phase ${String(a.phase)} is not a roadmap phase (1–6)`); + else if (a.phase < lastPhase) problems.push(`${a.id}: phase ${a.phase} comes after phase ${lastPhase}; list the pictures in phase order`); + else lastPhase = a.phase; if (!TYPES.includes(a.type)) problems.push(`${a.id}: unknown type "${a.type}"`); if (!GENERATOR_SIZES.some(([w, h]) => w === a.width && h === a.height)) { problems.push(`${a.id}: ${a.width} × ${a.height} is not a size image generators offer (${GENERATOR_SIZES.map(([w, h]) => `${w} × ${h}`).join(', ')})`); diff --git a/tools/art-prep/src/placeholders.ts b/tools/art-prep/src/placeholders.ts index f68f743..9448070 100644 --- a/tools/art-prep/src/placeholders.ts +++ b/tools/art-prep/src/placeholders.ts @@ -20,7 +20,15 @@ const C = { amber: '#f2b860', coral: '#e9846a', night: '#2e3561', - lamp: '#f4d58d' + lamp: '#f4d58d', + fox: '#b65a35', + cream: '#f3e3c8', + foxLeg: '#5a3a33', + strawberry: '#d2554e', + blueberry: '#5b6fa6', + raspberry: '#c2456a', + blackberry: '#3f2e4a', + hip: '#d0632e' } as const; type Eyes = 'open' | 'half' | 'closed' | 'down' | 'squeeze'; @@ -87,6 +95,82 @@ function rose(look: RoseLook): string { return stem + thorns + leaves + bloom; } +interface FoxLook { + readonly pose: 'sit' | 'stand' | 'lie' | 'curl'; + readonly eyes: 'open' | 'half' | 'closed'; + /** Faces right instead of left. */ + readonly right?: boolean; + /** The head turned back over the shoulder. */ + readonly back?: boolean; + /** Seen from behind: no face. */ + readonly behind?: boolean; + readonly petal?: boolean; + readonly fluffed?: boolean; + /** Degrees the head tilts. */ + readonly tilt?: number; +} + +/** The fox in a 300 × 240 box, facing left unless `right`, feet on the bottom edge. */ +function fox(look: FoxLook): string { + const ink = `stroke="${C.ink}" stroke-width="4"`; + const leg = (x: number, y0: number, y1: number): string => ``; + const thick = look.fluffed ? 8 : 0; + const tail = (d: string): string => + `` + + `` + + ``; + const head = (x: number, y: number, r: number): string => { + const k = look.back ? -1 : 1; + const ears = [-0.55, 0.35].map((o) => ``).join(''); + if (look.behind) return ears + ``; + const eye = (ex: number): string => + look.eyes === 'open' + ? `` + : ``; + const snout = x - k * r * 0.75; + return ears + ` + + + ${eye(x - k * 13)}${eye(x + k * 9)} + ${look.petal ? `` : ''}`; + }; + let body: string; + switch (look.pose) { + case 'sit': + body = tail('M185 215 Q 250 205 240 150') + `` + + `` + leg(140, 175, 225) + leg(168, 175, 225) + + head(look.back ? 175 : 145, 72, 38); + break; + case 'stand': + body = tail('M235 120 Q 280 110 290 60') + leg(110, 140, 225) + leg(130, 140, 225) + leg(200, 140, 225) + leg(220, 140, 225) + + `` + head(look.back ? 215 : 80, 98, 34); + break; + case 'lie': + body = tail('M250 205 Q 285 215 290 180') + `` + + leg(70, 215, 222) + head(72, 178, 32); + break; + case 'curl': + body = `` + tail('M205 200 Q 170 235 110 205') + head(125, 168, 30); + break; + } + return look.right ? `${body}` : body; +} + +const FOXES: Record = { + 'fox-watching': { pose: 'sit', eyes: 'open', back: true }, + 'fox-curious': { pose: 'stand', eyes: 'open', tilt: -14 }, + 'fox-sitting': { pose: 'sit', eyes: 'half' }, + 'fox-resting': { pose: 'lie', eyes: 'half' }, + 'fox-petted': { pose: 'sit', eyes: 'closed', tilt: -18 }, + 'fox-brushed': { pose: 'sit', eyes: 'half', fluffed: true, tilt: 8 }, + 'fox-eating': { pose: 'stand', eyes: 'closed', tilt: -30 }, + 'fox-asleep': { pose: 'curl', eyes: 'closed' }, + 'fox-trotting': { pose: 'stand', eyes: 'open' }, + 'fox-leading': { pose: 'stand', eyes: 'open', right: true, back: true }, + 'fox-carrying-petal': { pose: 'stand', eyes: 'half', petal: true }, + 'fox-visiting': { pose: 'sit', eyes: 'half', tilt: 16 } +}; + /** Place a drawing made in a w × h box centred in the target, filling about 76 %. */ function fit(body: string, w: number, h: number, W: number, H: number, fill = 0.76): string { const s = Math.min((W * fill) / w, (H * fill) / h); @@ -128,6 +212,51 @@ const PROPS: Record = { ` }; +const berries = (fill: string, at: readonly (readonly [number, number])[], r: number, leaves = 1): string => + Array.from({ length: leaves }, (_, i) => ``).join('') + + `` + + at.map(([x, y]) => ``).join(''); + +const bush = (extra: string): string => + [[60, 120, 50], [140, 120, 50], [100, 80, 56], [100, 140, 46]].map(([x, y, r]) => ``).join('') + + `` + extra; + +/** The fox's food and the bush, each in a 200 × 200 box like PROPS. */ +const MORE_PROPS: Record = { + 'wild-strawberries': berries(C.strawberry, [[70, 120], [110, 140], [140, 105]], 22, 2), + blueberries: berries(C.blueberry, [[70, 120], [100, 140], [130, 120], [85, 95], [118, 95]], 16, 2), + raspberries: berries(C.raspberry, [[72, 120], [110, 138], [138, 108]], 22), + blackberries: berries(C.blackberry, [[72, 120], [110, 138], [138, 108]], 22), + 'rose-hips': `` + + [[70, 125], [130, 125]].map(([x, y]) => ``).join(''), + 'leaf-plate': ``, + 'bush-resting': bush(''), + 'bush-flowering': bush([[55, 100], [100, 60], [145, 105], [90, 135], [125, 150]].map(([x, y]) => ``).join('')), + 'bush-ripe': bush([[60, 105], [138, 108], [100, 70]].map(([x, y]) => ``).join('')), + 'fox-brush': `` + + Array.from({ length: 12 }, (_, i) => ``).join('') +}; + +const meadow = (path: string): string => + `${path}`; +const lantern = (lit: boolean): string => + (lit ? `` : '') + + `` + + `` + + `` + + `` + + (lit ? `` : ''); + +/** Tall things, each in a 200 × 400 box: the path stretches and the lanterns. */ +const TALL: Record = { + 'path-prints': meadow([340, 290, 240, 190, 140, 95, 55].map((y, i) => ``).join('')), + 'path-trail': meadow(``), + 'path-road': meadow(`` + + [[52, 360], [148, 360], [70, 260], [130, 255], [80, 160], [118, 150], [88, 70], [110, 65]].map(([x, y]) => ``).join('')), + 'lantern-unlit': lantern(false), + 'lantern-lit': lantern(true) +}; + function garden(W: number, H: number, time: 'morning' | 'day' | 'sunset' | 'night'): string { const tint = { morning: { field: '#b8d1a0', far: '#c9dbe0', wall: '#b4a596', light: '#ffffff' }, @@ -149,6 +278,14 @@ function single(a: Asset): string { const { width: W, height: H } = a; switch (a.type) { case 'sheet': { + if (a.character === 'fox') { + const views: FoxLook[] = [{ pose: 'sit', eyes: 'half' }, { pose: 'stand', eyes: 'half' }, { pose: 'stand', eyes: 'half', tilt: -8 }, { pose: 'sit', eyes: 'half', behind: true }]; + const figures = views.map((l, i) => `${fox(l)}`).join(''); + const heads: FoxLook[] = [{ pose: 'sit', eyes: 'half' }, { pose: 'sit', eyes: 'open', tilt: -14 }, { pose: 'sit', eyes: 'closed' }]; + // Close-ups: only the head, cropped by a nested viewBox. + const close = heads.map((l, i) => `${fox(l)}`).join(''); + return `${figures}${close}`; + } const looks: RoseLook[] = [ { stage: 'full', eyes: 'half', mouth: 'smile' }, { stage: 'full', eyes: 'half', mouth: 'smile', tilt: -12 }, @@ -166,7 +303,7 @@ function single(a: Asset): string { return `${figures}${close}`; } case 'sprite': - return fit(PROPS[a.id] ?? '', 200, 200, W, H, 0.7); + return fit(drawing(PROPS, a.id), 200, 200, W, H, 0.7); case 'layer': { const time = (['morning', 'day', 'sunset', 'night'] as const).find((t) => a.id.endsWith(t)) ?? 'day'; return garden(W, H, time); @@ -179,11 +316,21 @@ function single(a: Asset): string { } } +/** A stand-in drawing by id. A picture with none fails the build rather than showing an empty box. */ +function drawing(from: Record, id: string): string { + const d = from[id]; + if (d === undefined) throw new Error(`tools/art-prep/src/placeholders.ts has no stand-in drawing for "${id}"`); + return d; +} + /** One cell's drawing, sized to the cell it ships at. */ function cellBody(id: string, W: number, H: number): string { const look = ROSES[id]; if (look) return fit(rose(look), 200, 520, W, H); - return fit(PROPS[id] ?? '', 200, 200, W, H, 0.7); + const pose = FOXES[id]; + if (pose) return fit(fox(pose), 300, 240, W, H); + if (id in TALL) return fit(drawing(TALL, id), 200, 400, W, H); + return fit(drawing({ ...PROPS, ...MORE_PROPS }, id), 200, 200, W, H, 0.7); } function sheet(a: Asset): string { diff --git a/tools/art-prep/test/accept.test.ts b/tools/art-prep/test/accept.test.ts index abf62cd..b4c3bad 100644 --- a/tools/art-prep/test/accept.test.ts +++ b/tools/art-prep/test/accept.test.ts @@ -114,7 +114,7 @@ describe('art:accept', () => { }); it('refuses a name that is not in the manifest, and a file that is not a picture', async () => { - expect(await refusal(acceptPicture(Buffer.from('x'), 'fox-sheet', m))).toMatch(/"fox-sheet" is not a picture/); + expect(await refusal(acceptPicture(Buffer.from('x'), 'owl-sheet', m))).toMatch(/"owl-sheet" is not a picture/); expect(await refusal(acceptPicture(Buffer.from('not an image'), 'garden-chair', m))).toMatch(/could not be read as a picture/); }); }); diff --git a/tools/art-prep/test/board.test.ts b/tools/art-prep/test/board.test.ts index 421184c..be161cb 100644 --- a/tools/art-prep/test/board.test.ts +++ b/tools/art-prep/test/board.test.ts @@ -2,7 +2,7 @@ import { readFileSync, readdirSync } from 'node:fs'; import { describe, expect, it } from 'vitest'; import { boardData } from '../src/board.js'; import { placeholders } from '../src/placeholders.js'; -import { readManifest, readStyle, root } from './fixtures.js'; +import { clone, readManifest, readStyle, root } from './fixtures.js'; const manifest = readManifest(); const data = boardData(manifest, readStyle()); @@ -19,7 +19,13 @@ describe('the board data', () => { for (const c of a.cells ?? []) expect(c).toMatchObject({ id: expect.any(String), width: expect.any(Number), height: expect.any(Number), prompt: expect.any(String) }); } } - expect(data.checklist).toHaveLength(8); + expect(data.checklist).toHaveLength(10); + expect(data.assets.every((a) => Number.isInteger(a.phase))).toBe(true); + }); + + it('every card says its phase, so a Phase 3 picture is never mistaken for a Phase 1 one', () => { + expect(page).toContain('`Phase ${a.phase} · sprite sheet'); + expect(page).toContain('`Phase ${a.phase} · ${a.type}'); }); it('every kind in the manifest has a group on the board page, or its cards would never show', () => { @@ -46,6 +52,12 @@ describe('the stand-ins', () => { expect(stand.get('watering-can')).toContain('viewBox="0 0 512 512"'); }); + it('a picture with no stand-in drawing stops the build, instead of showing an empty box', () => { + const m = clone(manifest); + (m.assets.find((a) => a.id === 'lanterns-sheet')?.cells as unknown as { id: string }[])[1]!.id = 'lantern-blue'; + expect(() => placeholders(m)).toThrow(/no stand-in drawing for "lantern-blue"/); + }); + it('load nothing from anywhere', () => { for (const svg of stand.values()) { expect(svg.replace('xmlns="http://www.w3.org/2000/svg"', '')).not.toMatch(/https?:|href=| { it('asks for the Phase 1 pictures: the rose sheet first, then stages, care, moments, props, chair, four garden layers, the icon', () => { const m = readManifest(); expect(m.assets[0]?.id).toBe('rose-sheet'); - const pictures = m.assets.flatMap((a: Asset) => (a.cells ? a.cells.map((c) => c.id) : [a.id])); + const phase1 = m.assets.filter((a) => a.phase === 1); + const pictures = phase1.flatMap((a: Asset) => (a.cells ? a.cells.map((c) => c.id) : [a.id])); expect(pictures).toHaveLength(25); expect(pictures).toEqual(expect.arrayContaining(['rose-bud', 'rose-full-bloom', 'rose-waiting', 'petal-folded', 'garden-chair', 'garden-sunset', 'garden-night', 'app-icon'])); }); + + it('then Phase 2, the fox sheet first, and the decided Phase 3 pictures: 28 more', () => { + const m = readManifest(); + const later = m.assets.filter((a) => a.phase > 1); + expect(later[0]?.id).toBe('fox-sheet'); + const pictures = later.flatMap((a: Asset) => (a.cells ? a.cells.map((c) => c.id) : [a.id])); + expect(pictures).toHaveLength(28); + expect(pictures).toEqual(expect.arrayContaining(['fox-watching', 'fox-petted', 'fox-asleep', 'rose-hips', 'bush-ripe', 'fox-brush', 'path-road', 'lantern-lit'])); + expect(new Set(m.assets.map((a) => a.phase))).toEqual(new Set([1, 2, 3])); + }); }); describe('checkManifest refuses', () => { @@ -36,10 +47,12 @@ describe('checkManifest refuses', () => { ['a grid whose cells do not match', withAsset('rose-stages-sheet', (a) => { a.grid = { cols: 3, rows: 1 }; }), /4 cells for a 3 × 1 grid/], ['a grid that does not divide the sheet', withAsset('care-props-sheet', (a) => { a.grid = { cols: 3, rows: 3 }; (a.cells as unknown[]).push({ id: 'x-1', does: 'x' }, { id: 'x-2', does: 'x' }, { id: 'x-3', does: 'x' }); }), /does not divide/], ['a grid on a single picture', withAsset('garden-chair', (a) => { a.grid = { cols: 1, rows: 1 }; }), /only a sprite sheet/], - ['an unknown character', withAsset('app-icon', (a) => { a.character = 'fox'; }), /unknown character "fox"/], + ['an unknown character', withAsset('app-icon', (a) => { a.character = 'owl'; }), /unknown character "owl"/], ['a shipped character sheet', withAsset('rose-sheet', (a) => { a.shipped = true; }), /never shipped/], ['a sprite on a full background', withAsset('garden-chair', (a) => { a.background = 'full'; }), /must be transparent/], ['a review point STYLE.md §7 does not have', withAsset('garden-chair', (a) => { a.checks = [0, POINTS]; }), new RegExp(`review point ${POINTS} is not in`)], + ['a phase the roadmap does not have', withAsset('garden-chair', (a) => { a.phase = 0; }), /phase 0 is not a roadmap phase/], + ['a Phase 1 picture listed after Phase 3', withAsset('lanterns-sheet', (a) => { a.phase = 1; }), /lanterns-sheet: phase 1 comes after phase 3; list the pictures in phase order/], ['a picture with no subject', withAsset('garden-chair', (a) => { delete a.subject; }), /no subject/], ['a picture nobody uses', withAsset('garden-chair', (a) => { a.usedBy = []; }), /usedBy is empty/], ['a name from the book in a prompt', withAsset('garden-chair', (a) => { a.subject = 'a chair for the Little Prince'; }), /"Little Prince" \(little-prince\)/], diff --git a/tools/art-prep/test/prompt.test.ts b/tools/art-prep/test/prompt.test.ts index 2209c5c..dcc45aa 100644 --- a/tools/art-prep/test/prompt.test.ts +++ b/tools/art-prep/test/prompt.test.ts @@ -17,9 +17,10 @@ describe('STYLE.md', () => { expect(style.endsWith('book, illustrator or film.')).toBe(true); }); - it('§7 has the eight review points, a point split over two lines read as one', () => { + it('§7 has the ten review points, a point split over two lines read as one', () => { const points = reviewPoints(readStyle()); - expect(points).toHaveLength(8); + expect(points).toHaveLength(10); + expect(points[8]).toBe("It reads as one young russet fox with a cream mask and a ringed tail, shy and gentle, and nothing like the book's sandy, long-eared fox."); expect(points[3]).toBe('Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no look of its drawings.'); }); @@ -30,8 +31,8 @@ describe('STYLE.md', () => { }); describe('the prompts', () => { - it('every one starts with STYLE.md §1 word for word: 11 cards and 18 one-at-a-time prompts', () => { - expect(allPrompts).toHaveLength(11 + 18); + it('every one starts with STYLE.md §1 word for word: 18 cards and 45 one-at-a-time prompts', () => { + expect(allPrompts).toHaveLength(18 + 45); for (const p of allPrompts) expect(p.startsWith(style + '\n\nAsset: ')).toBe(true); }); @@ -54,6 +55,20 @@ describe('the prompts', () => { expect(by.get('care-props-sheet')?.attach).toEqual([]); }); + it('a fox picture asks for the fox sheet, never the rose sheet, and every one-at-a-time fox prompt does too', () => { + const by = new Map(data.assets.map((a) => [a.id, a])); + expect(by.get('fox-sheet')?.attach).toEqual([]); + for (const id of ['fox-trust-sheet', 'fox-moments-sheet']) { + const a = by.get(id); + expect(a?.attach).toEqual(['fox-sheet']); + for (const p of [a?.prompt ?? '', ...(a?.cells ?? []).map((c) => c.prompt)]) { + expect(p).toContain('Attach the character sheet fox-sheet as the reference picture'); + expect(p).not.toContain('rose-sheet'); + } + } + for (const id of ['berries-sheet', 'berry-bush-sheet', 'paths-sheet', 'lanterns-sheet']) expect(by.get(id)?.attach).toEqual([]); + }); + it('a manifest with a forbidden name never reaches the board', () => { const m = clone(readManifest()); (m.assets[1] as { purpose: string }).purpose = 'In the style of Saint-Exupéry'; From ff9d7f051401a6d983336f7142b0da3ba975e17f Mon Sep 17 00:00:00 2001 From: mnovak Date: Sun, 1 Nov 2026 21:55:21 +0100 Subject: [PATCH 2/2] [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