# pipeline-fit: result The offline renderer and the approval tool now accept the real library. All twelve sample inputs render, and a repeat render in a separate process gave identical bytes. ## Files changed - `catalog/foundation.json`: added `"schema": "kekborn-assets@1"` and an `assets` array with two entries. `skin.moss` has slot `skin`, path `layers/skins/moss.png` and rarity `common`. `frame.common` has slot `frame`, path `layers/frames/common.png` and tier `common`. Every registration field (`schemaVersion`, `canvas`, `frameAperture`, `layers` with sha256s, `registration`, `reserves`, `finish`) is unchanged. - `catalog/skin-lichen.json`, `catalog/skin-peat.json`, `catalog/skin-slate.json`: changed `rarity` from `standard` to `common`. Nothing else changed in them. - `tools/approval.cjs`: `sample-inputs/NN.json` is now the first accepted input path for each study. The older paths are still accepted, and exactly one input per study is still required. - `docs/approval.md`: now names `sample-inputs/NN.json` as an accepted input path and lists the new test file. - `docs/render.md`: now says which rarity values are allowed, that a catalog file may carry other fields beside `schema` and `assets` (as `foundation.json` does), and describes the new real-catalog test. - New `test/compositor/real-catalog.test.cjs` (4 tests). It checks that every real `catalog/*.json` has the schema and an `assets` array. It checks that the real folder loads and registers `skin.moss` and `frame.common` with the right slot, path, rarity and tier, and that every rarity has a weight. It checks that lichen, peat and slate draw with the common weight. It runs `selectLayers` for all twelve `sample-inputs/NN.json`: each needs exactly one background, banner, skin, eyes, expression and frame, every chosen file must exist, the IDs the input names explicitly must be the ones chosen, and the frame must fit the tier. It also checks that the samples cover all five tiers and all six categories. - New `test/approval/sample-inputs.test.cjs` (4 tests). It copies the real `sample-inputs/NN.json` into a fixture package under `test/scratch/`. It checks that `manifest` accepts and lists those files and that `verify` passes. It checks that a second input for the same study is refused ("found 2"), that a sidecar whose input disagrees is refused, and that every real input has a wallet, tier, category and artSeed. I did not touch the draw algorithm, the stack order, the sidecar fields, `sample-inputs/`, any PNG, or anything under `samples/`. ## How each fault was fixed 1. **foundation.json and E_CATALOG**: I added the schema field and the `assets` array next to the existing registration content, so the loader accepts the file and the selector knows `skin.moss` and `frame.common`. `node --test test/raster/foundation.test.cjs` still passes (3/3). 2. **rarity `standard`**: I set the value to `common` in the three skin files. I left the loader and the selector unchanged, so `standard` is still rejected and no hidden alias exists. 3. **Approval input path**: `tools/approval.cjs` now accepts `sample-inputs/NN.json`, and `docs/approval.md` says so. ## Checks run - I ran `node bin/render.cjs sample-inputs/NN.json test/scratch/r/NN.png` for NN = 01 to 12. All twelve exited 0. Decoding each PNG gave 2048×2560, and each had its `NN.json` record beside it with the fields schema, catalogSchema, input, seed, tier, category, canvas, layers, arms, finish and pngSha256. - I rendered study 07 again in a separate process to `07b.png`. `cmp` reported the bytes identical (sha256 f751a3fc…a655b094 both times). - I ran `node --test test/compositor/*.test.cjs test/approval/*.test.cjs`: 21 tests, 21 pass, 0 fail. That is 14 compositor tests (10 in `render.test.cjs`, 4 new) and 7 approval tests (3 in `approval.test.cjs`, 4 new). This Node v24 setup treats a bare directory argument (`node --test test/compositor/`) as one file and fails it, so the test files have to be passed by glob. - I ran `node --test test/raster/foundation.test.cjs`: 3 pass. - To confirm the new tests catch the original faults, I temporarily restored the old `catalog/` and `tools/approval.cjs` with `git stash` and ran only the two new test files: 7 of 8 failed. I then put the fixes back. ## Still failing Nothing that I know of. I did not run `tools/approval.cjs manifest` on the real repository, because `samples/` and `contact-sheet.png` are not there yet and this item may not create them.