01 Performance is a budget, not a vibe
A frame is 16.7 ms and a phone is not a MacBook. I write the budget down, measure against it, and publish the numbers with the conditions they were taken under, including what they don't prove.
pixi-marrow DESIGN.md §16; Spine Benchmark error bands
02 Measure in pixels, not by eye
Renderers get checked by renderers. Headless Chrome draws the hard cases and a script compares pixels across backends and against the reference runtime.
check-render.mjs in pixi-silk and pixi-marrow; D3D11 CI job
03 Size is a CI gate
Every library has a committed size baseline and a check that fails the build when it grows. Expensive features are opt-in by name, never hidden in a default.
size-check.mjs in reels, wheels, silk, marrow; zvuk size-limit
04 Headless and deterministic
Game logic that only works with a GPU and a real clock can't be tested. My engines run in Node with a fake ticker, and they ship that harness to users as a public export.
pixi-reels/testing, pixi-wheels testing, zvuk Web Audio mock
05 Docs are built from the code
Numbers in a README come from a facts file the tests also read. Examples are imported from the template they describe. llms.txt is generated and diff-checked in CI.
marrow facts.json + check:facts; slotplate docs; build-check.yml
06 Engines stay out of the game
Reels don't know the paytable, wheels don't know the RTP, the HUD doesn't know the RGS. Small typed surfaces: builders, presets, typed events, strict TypeScript with noUncheckedIndexedAccess.
pixi-reels ADR 007; WheelBuilder; open-slot-ui headless core