74 lines
6.3 KiB
Markdown
74 lines
6.3 KiB
Markdown
# Review — `feature/art-board`
|
||
|
||
Adversarial self-review (CLAUDE.md §5.3). Analysis:
|
||
[`features/art-pipeline.md`](../features/art-pipeline.md). Reviewed 2026-11-01 on Node 22.11.0,
|
||
Windows 10. There is no PR: the only remote is Gitea, and this session cannot open one there.
|
||
|
||
## Gates — counts, not exit codes
|
||
|
||
| Gate | Result |
|
||
|:--|:--|
|
||
| `pnpm lint` | exit 0 |
|
||
| `pnpm typecheck` | exit 0, now including `@rosea/art-prep`; `svelte-check` 0 errors, 0 warnings |
|
||
| `pnpm test` | **180 passed**: schema 15, content 47, **art-prep 50 (new)**, engine 52, ui 16 |
|
||
| `pnpm lint:copy` | 12 files, 0 problems (the board and prompts are not player copy; A3 covers prompts) |
|
||
| `pnpm validate:library` | 0 entries; 13 of 13 fixtures rejected |
|
||
| `pnpm test:e2e` | 7 passed |
|
||
| `pnpm test:offline` | 1 passed |
|
||
| `pnpm art:board` | 11 cards, 25 pictures, 29 stand-ins |
|
||
|
||
**The app is unchanged** (§5.4). No app file changed, so the bundle is the same; e2e and offline
|
||
ran to show that. **The board is published**, as a private claude.ai artifact (version 1).
|
||
Its `art` collection was read back once and is empty, as it should be.
|
||
|
||
**The board, rendered once** from `tools/art-prep/dist/board/` on 127.0.0.1:
|
||
*Rosea Domi Art Board*, 11 cards, 18 cell slots, groups *Character sheet · 1*,
|
||
*Sprite sheets · 4*, *Garden layers · 4*, *Single pictures · 1*, *App icon · 1*. No stand-in
|
||
failed to load and nothing overflowed sideways. Served locally, the page has no claude.ai
|
||
runtime, so it showed its read-only state. Upload and Accept were **not** exercised (see
|
||
*not verified*).
|
||
|
||
## Test honesty — bugs put back
|
||
|
||
| Bug put back | Result |
|
||
|:--|:--|
|
||
| The forbidden-word check skipped for asset texts | CAUGHT: 3 failed (book name, medical word, forbidden name never reaches the board) |
|
||
| The shared avoid list dropped from single-picture prompts | CAUGHT: *every one carries the shared avoid list* |
|
||
| `art:accept` stops refusing a sheet with an empty cell | CAUGHT: *refuses the whole sheet when a cell is empty* |
|
||
| The board page loses its *Garden layers* group | CAUGHT: *every kind in the manifest has a group on the board page* |
|
||
| A committed stand-in drifts from the generator | CAUGHT: *art/placeholders/ holds exactly what the generator makes* |
|
||
| `fit: cover` with `withoutEnlargement` (the first draft) | CAUGHT, as the real finding 1 |
|
||
|
||
## Findings
|
||
|
||
| # | Area | Finding | Resolution |
|
||
|:--|:--|:--|:--|
|
||
| 1 | **Correctness** | `art:accept` resized full pictures with `cover` + `withoutEnlargement`. A small, wrongly shaped picture skipped the crop too: a 900 × 600 picture accepted as the square app icon stayed 900 × 600. | **Fixed**: crop to shape first (`middle()`), then only shrink. Test asserts 600 × 600. Lesson: `art.md`. |
|
||
| 2 | **Copyright** | The manifest's own text said the waiting rose is *patient*, a forbidden word, and nothing would have caught a book name in a prompt either, because `lint:copy` does not read prompts. | **Fixed by design**: `checkManifest` runs `findForbidden` over every prompt word, and `art:board` refused its own first draft. Lesson: `art.md`. |
|
||
| 3 | **Copyright** | No automatic likeness check: a generated picture that looks like the book's drawings is caught only by Claude's review and Mark's eye. | **Accepted for Phase 0**, written down in docs/ART.md §5. The prompts' shared avoid list (A4) lowers the odds, and review point 3 names it. |
|
||
| 4 | **Soul** | The rose's moods are where guilt can enter art: a thirsty or waiting rose drawn as hurt blames the player (§8). | **Addressed in the prompts**: *tired, not hurt*, *gently comic, never ill*, *quiet, waiting with patience, never sad, hurt or blaming*. Review point 7. The real pictures still need looking at, which is Mark's and Claude's job on the board. |
|
||
| 5 | **Privacy** | The board stores pictures on claude.ai. | **Accepted**: only generated art and Mark's notes. The app never contacts the board, and art reaches the app only through git. Nothing about a player exists there. |
|
||
| 6 | Process | The roadmap and CLAUDE.md planned `tools/art-prep` as a 127.0.0.1 page. The board replaces it at Mark's request. | **Recorded**: ROADMAP Phase 0 *Decided 2026-11-01*, CLAUDE.md §2, §3 and §9, docs/ART.md §3. |
|
||
| 7 | Correctness | STYLE.md is Claude's draft. The roadmap says *drafted with Mark*. Every prompt on the board inherits the draft. | **Open**: S1–S5 in STYLE.md §0 wait for Mark. The first card, `rose-sheet`, is the test. If it looks wrong, STYLE.md changes, `art:board` rebuilds and the board is republished. |
|
||
| 8 | Correctness | The board's local preview first showed **Ludus**: ports 5180 and 5191 were taken on this machine. | **Fixed** for the preview (port 5237, checked free). It affected only this review's look at the page, not the board. Lesson: `technical.md`. |
|
||
| 9 | Scope | The garden layers assume a horizon at 40 % and a bed at 72 %. Phase 1's screen design may want other numbers. | **Accepted**: the numbers are in the manifest, so changing them costs a rebuild and new pictures, which is the reason to decide before Mark makes the layers. Noted for the Phase 1 feature doc. |
|
||
| 10 | Offline | The board needs the network; the game doesn't. | **Not applicable to the player**: the board is a tool. `art/final/` ships inside the precached bundle (Phase 1). |
|
||
| 11 | Test honesty | `cli-board.ts` and `cli-accept.ts` (file writing, argument parsing) have no tests. `art:board` was run, and `art:accept` was not run on a real file. | **Accepted**: the logic under them is tested. `art:accept` runs for real with the first accepted picture, the Phase 0 gate. |
|
||
|
||
Looked for and found none:
|
||
|
||
- **Reachability.** No player is involved.
|
||
- **Correctness cases from §5.3.** Clock, DST, two tabs and partial writes do not apply to the
|
||
tool. On the board, a second tab is handled by the store's live snapshot, as in Panda Domi's.
|
||
|
||
## What was NOT verified
|
||
|
||
- **Uploading, pasting and accepting on the published board.** These need Mark signed in. The
|
||
page code is Panda Domi's, which works there, adapted only in tokens, groups, wording and the
|
||
review line.
|
||
- **Any real generated picture.** Every `art:accept` test uses synthetic pictures made with sharp.
|
||
- **The style itself.** Whether the gouache direction reads as Rosea and not as the book can only be
|
||
judged on real pictures.
|
||
- **Dark mode and phone width of the published board** were not looked at. The local check was one
|
||
desktop render.
|