[docs] ArtBoard: Record the art pipeline, its review, and the board replacing the 127.0.0.1 page

This commit is contained in:
2026-11-01 20:17:03 +01:00
parent f24597dfdb
commit 3ff14fab16
11 changed files with 379 additions and 14 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ and **how to apply it**.
| `soul.md` | none yet | What comforts and what only looks like comfort. **The most important file here.** No mechanic exists yet that could teach anything. |
| `architecture.md` | none yet | Layering, ownership, seams. |
| `design.md` | none yet | Wording, silence, empty states. |
| `art.md` | none yet | The image pipeline. |
| [`art.md`](art.md) | 2 | The image pipeline. |
| [`code.md`](code.md) | 2 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 4 | The browser and the build as platforms. |
| [`technical.md`](technical.md) | 5 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 4 | 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. |
+34
View File
@@ -0,0 +1,34 @@
# Art
What the image pipeline taught (CLAUDE.md §5.1b).
## "Never enlarge" also skips the crop
**What happened.** `art:accept` first resized a full-background picture with sharp's
`fit: 'cover'` and `withoutEnlargement: true`. A 900 × 600 picture accepted as the
1024 × 1024 app icon came out 900 × 600. Because it was smaller than the target, sharp
skipped the whole resize, crop included, and a rectangle would have become the icon. The
test *a full-background picture of the wrong shape is cropped from the middle* caught
it before the first real picture existed (`tools/art-prep/src/accept.ts`, `middle()`).
**Why it bit.** One option can switch off two jobs: changing the shape and changing the
size. "Don't blow it up" was meant for the size only.
**How to apply it.** Crop to the target shape first, as its own step, then only ever
shrink. Test the small, wrongly shaped input as well as the large one: a generator that
ignores the requested size is the normal case, not the edge case.
## A check on prompt words catches what review would miss
**What happened.** The first `pnpm art:board` refused its own manifest: the waiting
rose's cell said she was "quiet and *patient*", and `patient` is on the forbidden list
(§5.6 rule 3). The manifest checker runs `findForbidden` from `@rosea/content` over
every word a prompt is built from.
**Why it bit.** Prompts are not player-facing, so `lint:copy` never reads them. But a
prompt that names the book, or a word that drifts in from it, is exactly how a
likeness gets into the art (§8, *copyright through the back door*).
**How to apply it.** Any text that is assembled into something sent outside, a prompt
included, goes through the same forbidden list as player copy. Reword: *waiting with
patience* is allowed.
+15
View File
@@ -55,3 +55,18 @@ fresh. This is CLAUDE.md §5.4 again, caused by the build tool and not the servi
**How to apply it.** Any file the app bundles from outside its package goes into
`globalDependencies` or the task's `inputs`, in the same commit as the import. To
check, change the file, run the build, and look for `cache miss`.
## A preview on a busy port shows someone else's app
**What happened.** The art board's local preview was given port 5180. Ludus's dev
server already listened on `localhost:5180`, so the preview pane opened **Ludus**,
whose page text appeared under the board's tab. Port 5191 was busy too. The board
rendered only on 5237, after `netstat` confirmed the port was free.
**Why it bit.** A server that fails to bind, or binds 127.0.0.1 while another app holds
`localhost`, does not always stop loudly, and the browser simply shows whatever is
listening. This machine runs many projects.
**How to apply it.** Before starting a preview, check that the port is free
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
anything the page says.