# Merge 02 — kekborn-library-e3: ten item results combined Sources are the ten files under `.imd/reads/artifacts/` (cited as `[item-NAME]`). All ten were present and non-empty. This merge reads the results only. It re-ran no check, and every figure below is the item's own claim. Nothing was deployed, minted or spent in any item. ## 1. Delivered files by item | Item | Delivered | Source | |---|---|---| | frame-rare | `layers/frames/rare.png` (1,375,128 B, sha256 `aec702516552c7f4b656fd46182ed2db17d4a13b8f9c65c9c792dc6a7730886b`); `catalog/frame-rare.json` (sha256 `8afbd6db151464d725a1445d4128b7d3a57b96a5841931eb5d2ffc19b879ed33`) | [item-frame-rare] | | frame-epic | `layers/frames/epic.png` (sha256 `1d5b088b5b2382f17d2307328b057eb3eff9baa23d5facd92888a791e61be03f`); `catalog/frame-epic.json` | [item-frame-epic] | | frame-legendary | `layers/frames/legendary.png` (sha256 `9fafea957df3b46281841af68601d63f2eb94ca81df84cd5ff787bd48047eb2e`); `catalog/frame-legendary.json` | [item-frame-legendary] | | backgrounds | `layers/backgrounds/{umber-hall,green-arras,oxblood-chamber,stone-apse,oak-gallery}.png`, `layers/backgrounds/paint.cjs`, `catalog/backgrounds.json` | [item-backgrounds] | | banners | `layers/banners/{vert-pennon,oxblood-standard,ochre-gonfalon}.png`, `catalog/banners.json` | [item-banners] | | foundation-fit | Revised `finish()` in the raster module, `template/bust.svg`, the guide, `catalog/foundation.json`, `finish-review.png`, `finish-review.json` | [item-foundation-fit] | | heraldry | `layers/heraldry/**` (10 PNGs, ~596 KB), `src/heraldry/index.cjs`, `test/heraldry/arms.test.cjs` | [item-heraldry] | | compositor | `bin/render.cjs`, `src/compositor/{catalog,select,index}.cjs`, `test/compositor/{fixtures,render.test}.cjs`, `docs/render.md` | [item-compositor] | | sample-inputs | `sample-inputs/01.json` … `12.json` | [item-sample-inputs] | | approval-tools | `tools/approval.cjs`, `test/approval/approval.test.cjs`, `docs/approval.md` | [item-approval-tools] | Background sha256 values (all from [item-backgrounds]; the item says they were recomputed after the size repair): - umber-hall: `da3ff55c…` (first listing) - green-arras: `5545a659…` - oxblood-chamber: `3a0576c2…` - stone-apse: `41f70698…` - oak-gallery: `53e74a15…` The repair then re-encoded all five. The full hashes in the item's delivery table are therefore **stale**. The item says `catalog/backgrounds.json` holds the current hashes. New sizes (bytes): 1,382,973; 1,205,725; 1,344,005; 1,398,160; 1,215,284; total 6,546,147. Banner file hashes and the foundation-fit file hashes are not stated in the results. The banner list also gives no per-file hashes. ## 2. Findings that hold **Frames.** Rare, epic and legendary all copy the alpha channel of `layers/frames/common.png`, and each reports 0 differing alpha pixels. Rare and legendary state 0 of 5,242,880 mismatches. The aperture is (144,144)–(1904,2368) exclusive (legendary writes the same box inclusive as (1903,2367)). - **Rare:** silver moulding with a beaded inner lip at a 21 px pitch, and a flat seat tablet. Its face is x 954–1094, y 2392–2542. The clear box (962,2392)–(1086,2536) has a luminance SD of about 1.2. - **Epic:** gilt acanthus carving with sparse worn-bole flecks. The shield seat (962,2392)–(1086,2536) plus a 12 px margin is calm gold, with SD 3.8. - **Legendary:** ornate gold with four corner cartouches. Gems are ruby at top-left and bottom-right, emerald at top-right and sapphire at bottom-left. Smaller cabochons sit on the rails. A plaque spans (640,2420)–(940,2508). The shield seat is flat, with SD 4.4. The painter was re-run and gave a byte-identical PNG. - **No varnish, craquelure or frame shadow is baked into any frame.** Backgrounds, banners and heraldry say the same. These belong to the shared `finish()` pass. **Backgrounds.** Five 2048×2560 RGBA layers, opaque exactly on the aperture [144,1904)×[144,2368) and (0,0,0,0) outside. After repair: 0 gap pixels under the common frame, and output byte-identical on re-run. The skin to backdrop luminance ratio is about 1.8–2.6× (ring measure, against moss). **Banners.** Three full-canvas banners. Each has an opaque cloth field of 96,768 pixels at (1476,316)–(1764,652) with no folds, reserved for the shield. 96,768 of 96,768 opaque was reported for each. **Heraldry.** - `buildArms(seedBytes,{root})` returns `{image 240×288, choices, usedLayers}`. - Parts are value maps (R=G=B centred on 176), recoloured by tincture. - Labelled `sha256(seed‖label)` draws give field, secondary, metal, division, ordinary and charge. - Field and division parts always take a colour, and ordinaries and charges always take a metal. - Options: 2 divisions (pale, fess), 2 ordinaries (cross, bend) and 3 charges (estoile, trefoil, tower). - 9 tests pass. The rail-size legibility test is only a numeric proxy. **Compositor.** - Seed is SHA-256(wallet ‖ artSeed). - It validates input, filters the catalog by tier and category, and draws by rarity weight. - The stack order is fixed. It composites the arms at (1500,340,240,288) and (974,2404,100,120), then runs `finish` once, then encodes the PNG. - It writes a JSON record beside the PNG. - 10 fixture tests pass, including byte-identical output from two independent processes. **Sample inputs.** 12 files with unique wallets and seeds. - Tiers: 2 Common, 2 Uncommon, 3 Rare, 3 Epic, 2 Legendary. - Categories: all six, two each. - Skins: six, two each. Rare skins are ivory (05, 10) and oxblood (08, 12). - Eyes, expressions and backgrounds: 8 eyes, 10 expressions, 5 backgrounds. - Banners: 3 banners used. - Study 02 pairs `expression.paranoid-side-eye` with `eyes.side-eye`. **Foundation-fit.** The varnish is `#E0B870` multiply (6%, rising to 7% in highlights). Cracks are `#2A1E17`, weighted by darkness. The aperture shadow runs 44 px. Alpha is preserved across all 5,242,880 pixels. The eye line passes through (680,936) and (1040,912). 17 raster tests pass. **Approval tools.** The offline `sheet`, `manifest` and `verify` commands are built. The manifest excludes itself. 11 tests pass (with the raster tests). ## 3. Where results disagree or do not fit together 1. **Combined size.** [item-backgrounds] reports its first submission failed `bundle_size` (limit 8 MiB). The repair brought the five backgrounds to 6.5 MB, and the rare frame is 1.4 MB. No result says what the total library is. Backgrounds plus rare frame come to about 7.9 MB, and the other frames, banners, skins and the rest add more. The limit may be per item rather than for the whole bundle. The results do not say, so this is **unresolved**. 2. **Catalog fields.** [item-frame-rare] says no catalog schema existed in its checkout, so it carries only id, slot, path and tier. [item-frame-legendary] adds `name`, and [item-backgrounds] adds name, size, paintBox, sha256 and description. Epic and rare have no `name`. The compositor's validator requires only `id/slot/path` plus optional fields, so this is probably compatible. It was not tested against the real files. 3. **Slot names and casing.** [item-compositor] assumes lowercase tier and category values and a fixed list of 13 slot names. It ignores records with any other slot. Frame, background and banner items use `frame`, `background` and `banner`, so they match. Skins, eyes, expressions, attire, headwear, props and regalia come from items not in this merge, so their match is unchecked. 4. **Heraldry contract.** The compositor expects `usedLayers` as root-relative paths or objects with `path`. Heraldry returns `[{path, sha256}]`, which fits. The compositor expects `buildArms` to return a raster image, and heraldry returns one. Still, [item-compositor] tested only a stub module, and [item-heraldry] tested only itself. 5. **Placement.** The shield box (1500,340,240,288) sits inside the banner cloth reserve (1476,316)–(1764,652). The rail arms (974,2404,100,120) sit inside the shield seats of all three frames, whose clear box is (962,2392)–(1086,2536). Rare also says the shield covers 100×120 of a 140×150 face. These agree. Common and uncommon frames were not part of this merge. 6. **Epic and the finish pass.** [item-frame-epic] says the gold is light and yellow before varnish, and expects the varnish to warm it. [item-foundation-fit] describes a restrained 6–7% multiply. Whether that is enough was never checked on a composite. 7. **Legendary plaque.** The plaque is engraved with ornament only, and no result puts text on it. [item-frame-legendary] gives (≈680–900 × 2445–2483) as the field for any text. 8. **Test command.** [item-frame-rare] notes `node --test test/raster` fails on this Node version, because the directory is treated as a file. [item-foundation-fit] ran `node --test test/raster/*.test.cjs` and passed. This is consistent. Use the glob form. 9. **Test counts.** The raster test count is 8 in most items and 17 in [item-foundation-fit]. foundation-fit added tests, so this is not a conflict. 10. **Git state.** [item-approval-tools] could not stage files, because the index was read-only. The other items report no such trouble. The files are in the workspace but not staged. 11. **Heraldry runtime vs sample size.** About 0.9 s per call, and 45 s for 9 tests. Acceptable for 12 portraits. ## 4. Remaining defects reported by items - **Rare:** procedural paint with regular beads. The two bottom mitres bend about 9° over their last 24 px, because the bottom rail is 192 px against 144 px elsewhere. The seat tablet is plain. Untested with a real shield or against the other frames. - **Epic:** blobby corner bosses, an asymmetric bottom mitre, and stylised acanthus. - **Legendary:** abstract acanthus, stroke texture coarser than common, plaque detail lost at ⅛ scale. - **Backgrounds:** - 10–24% of shadow-side edge pairs differ by less than 20 luminance. The item calls this the intended lost edge. - Niche and panels are mostly hidden by the bust. - Green-arras separates by value only. - 2×2 export cells average away detail finer than 2 px. - Checks 4–6 and 8 were not re-run after the repair. - **Banners:** none identified. - **Heraldry:** a limited vocabulary of 2 divisions and 2 ordinaries. Arms are re-decoded on every call. - **Compositor:** - **Nothing was rendered against the real library.** `src/heraldry/index.cjs` and `catalog/*.json` were absent from its checkout. - The real checkout fails cleanly with `E_MISSING_FILE`. - Rarity weights 8/4/2/1/1 are the item's own choice. - Headwear and regalia are skipped when nothing fits, and Common may have none. - **Sample inputs:** end-to-end rendering is unverified. - **Approval tools:** the actual contact sheet and `manifest.json` have not been generated. They wait for the full sample set. ## 5. Not found in these results - Any render of the 12 portraits, the contact sheet, or the final `manifest.json`. - Results for skins, eyes, expressions, attire, headwear, regalia, props, the common and uncommon frames, and the style guide text itself. Other items cover these. The results refer to the merged guide but do not reproduce it. - Per-file hashes for banners and for the heraldry, foundation and tooling files. - The total bundle size, and a live end-to-end integration run. ## 6. Next steps for the later wave 1. Merge all item output, then run `node --test` over each test file one at a time. 2. Run `node bin/render.cjs` on all 12 `sample-inputs/*.json` against the real catalog. 3. Run `tools/approval.cjs sheet`, then `manifest`, then `verify`. 4. Check the combined size against the 8 MiB limit.