{
 "notes": "EPISODE 2. Episode 1 carried nothing out: its one spawn was refused because an item variable asked for a command's output word for word, and its reads and wake fell with it. Trunk was still empty, 0 of 50 items used. Brief rules learned: never ask a worker to hand back what a command wrote, ask for findings in its own words; keep each filled brief under 3,000 characters and EVERY item variable at 1,000 characters or less (a shape check refused longer ones; long pieces are split over the placeholders task, detail and more, every item filling every placeholder of its batch's brief); scopes only as dir/** or exact paths, never overlapping inside a wave; code batches carry no output field.\n\nBASELINE (I cloned it and ran it): https://github.com/identity-md-launches/goal-3401-create-kekborn-portrait-style at 9ab5835fd20d740eafc029416b163dce239d55f8, 153 files, plain Node, no package.json, no dependencies. `node --test test/*/*.test.cjs` passes 51 tests in under 20 s. 61 code/catalog/doc files, style-guide.md, 91 files under layers/ (80 PNGs of 2048x2560, largest 4.6 MB). Stack: background, banner, arms, prop-rear, attire-back, skin, eyes, expression, attire-front, accessory, headwear, regalia, prop-front, frame, rail arms, finish. The old look is flat and digital: nude bust, small eyes, a thin mouth line. catalog/foundation.json pins the sha256 of layers/skins/moss.png and layers/frames/common.png, and test/raster/foundation.test.cjs checks those hashes plus pixels (socket bed centres opaque dark, (969,680) clear, (969,720) opaque, rail arms reserve opaque). Sample inputs name skins moss, lichen, peat, slate, ivory, oxblood; eyes amber, brass, hazel, olive, sienna, silver, umber, side-eye; expressions amused, dim-grin, dubious, paranoid-side-eye (requiresEyes eyes.side-eye), resolute, scowl, serene, smug, startled, wistful; five backgrounds; three banners.\n\nSPAWNED NOW, three code waves that queue one behind another (19 items, 31 left):\n1 baseline-import (4): code-catalog and layers copy the commit byte for byte; style-guide writes v2 style-guide.md with the locked prompt and negative prompt I wrote into its brief (grid, landmarks, palette numbers kept, Court black #16120F and Cream #E9DFC6 added); painting-contract writes docs/painting.md, 11 rules.\n2 paint-foundation (10): master (layers/skins/moss.png, template/master-reference.png with eyes and calm face on a plain ground, template/master-reference.json measured boxes); frames-wood (common, uncommon); frames-metal (rare silver, epic gilded, legendary jewelled with plaque); backdrops (5); banners (3); heraldry (18 parts, alpha kept, tone repainted); finish (glaze, varnish, brush texture, craquelure, frame shadow in src/raster, docs/finish.md); compositor (`tone` on skins, `skinPaint` on any asset); harmonise (bin/harmonise.cjs request/apply, fixed seed, strength at most 0.3, blend inside aperture only); approval (tools/approval.cjs previews, sheet, manifest, verify; src/jpeg encoder).\n3 paint-probe (5): foundation-record (catalog/foundation.json hashes, whole suite, renders all 12); skin-ivory (rare, with tone); eyes-amber-side; expr-melancholy-smug; attire-scholar. The four painters stop if template/master-reference.png is absent.\nEvery later-wave brief stops its item if the baseline is missing. If the plane refused the second or third wave instead of queueing it, spawn it again under a new name.\n\nDESIGN DECISIONS (keep them):\n- Face layering. The skin is the bust with large dark socket beds and a smooth muzzle, no lips. Eyes fill the sockets, no lids. Each expression paints lids and the whole mouth: skin-coloured paint in layers/expressions/<name>.skin.png (painted in moss colours, recoloured by the compositor with the chosen skin's `tone`, a 3x4 affine RGB map fitted moss to skin and stored on the skin's catalog entry), lips, teeth, tears and shadow glazes in <name>.png, catalog field `skinPaint`. This is what lets 10 strong expressions sit on 6 skins. Hands in props are gloved.\n- Expressions wanted: melancholy, smug, paranoid-side-eye, dim-grin, scowl, serene, startled, regal, sly, weeping. Legacy IDs that sample inputs name must keep resolving: wistful to melancholy, resolute to regal, amused to sly, dubious to weeping, as extra catalog entries on the new files. Expression painters write PNGs only; ONE catalog item in a wave queued after them rewrites catalog/expressions-court.json and expressions-gaze.json (10 named IDs with skinPaint, 4 legacy aliases, requiresEyes kept) and removes the four legacy PNGs, registering only files that exist.\n- Approval paths: masters go to out/ (never committed); samples/NN-plain.jpg and samples/NN-harmonised.jpg at 1024x1280 quality 90, samples/NN.json, contact-sheet.jpg (4x3 cells, plain left, harmonised right), manifest.json. Previews and sheet under 4,000,000 bytes, every file under 8,000,000.\n- Harmonised renders: the worker runs its image-to-image model on out/NN-plain.png with the request's prompt, strength and seed, then `apply`.\n\nEPISODE 3, in order:\na) Read the 19 results. Clone the trunk goal.json names into test/scratch/ and LOOK: convert PNGs to small JPEGs with ffmpeg and open them. Judge master-reference.png (Tudor oil look, Pepe-like but own design, large heavy-lidded eyes, full lips, facing left, landmarks), one render per tier, the probes. Run the suite.\nb) If the master is poor or missing, repaint it first in its own wave and queue the dependents behind it. If no worker reached an image model, read what the tool answered; code-drawn layers do not meet the goal.\nc) Paint the rest in one wave, about 17 items, with what the probes taught: skins lichen+peat and slate+oxblood (oxblood rare; each with tone; scope the PNG and catalog/skin-<name>.json); eyes brass+hazel+olive and sienna+silver+umber; expressions in pairs: paranoid-side-eye+startled, dim-grin+scowl, serene+regal, sly+weeping (each <name>.png and <name>.skin.png); attire antiquary (doublet, monocle, scroll), artisan (garb, brushes), council (coat, sash), knight (armour, gauntlet), seer (robe, hood, orb), each layers/attire/<cat>/** plus catalog/attire-<cat>.json; one item per tier for headwear and regalia (layers/headwear/<tier>.png, layers/regalia/<tier>.png, catalog/tier-<tier>.json; richer with each tier, headwear left of x=1476 above y=652). Redo any failed probe or foundation item.\nd) Queue behind it a wave with the expressions catalog item, then a wave that renders the 12 inputs plain and harmonised and writes the 24 previews, sidecars, contact sheet and manifest (one item can do all 12; scope samples/**, contact-sheet.jpg, manifest.json).\nEPISODE 4: look again, repair, then queue a final render, sheet and manifest wave, since any changed byte stales the manifest. EPISODE 5: verify the trunk (suite, 24 previews, sheet, manifest covers every file, size limits) and finish. Keep about 8 items for repairs.\n\nCHILDREN: the goal bought 10 media jobs (job.open, create-image); none opened. A child is built from its order's words alone and cannot read the trunk or register to the grid, so it cannot paint layers or render the compositor's samples. Open them only if they turn out to serve the deliverable (for instance a master candidate when workers have no image model); otherwise say so when finishing. An unspent budget brings one extra episode.\n\nNothing is deployed, minted or spent on chain. Owner approval of the contact sheet is the purpose and has not been given.",
 "spawn": [
  {
   "name": "baseline-import",
   "mode": "code",
   "brief": "Kekborn portraits v2 builds on the repository https://github.com/identity-md-launches/goal-3401-create-kekborn-portrait-style at commit 9ab5835fd20d740eafc029416b163dce239d55f8 (153 files: compositor, catalog, layers, tests, style guide, all plain Node with no dependencies). This wave lays that baseline into this goal's empty repository; later waves repaint every layer PNG with an image model in Tudor court oil style. Fetch that commit into test/scratch/ and work from it. Write only inside your scope; add no package.json, submodule or configuration file. Deploy, mint and spend nothing.\n\nYour piece: {{task}}\n{{detail}}\n{{more}}\n\nYour result must contain: {{result}}",
   "items": [
    {
     "key": "code-catalog",
     "vars": {
      "task": "Copy every file of the commit under bin/, src/, test/, tools/, sample-inputs/, template/ and catalog/, and docs/approval.md and docs/render.md, to the same path here, byte for byte: 61 files (bin 1, src 7, test 11, tools 1, sample-inputs 12, template 1, catalog 26, docs 2).",
      "detail": "Change, add and omit nothing. Compare each copy's sha256 with the commit's file.",
      "more": "Then run `node --test test/*/*.test.cjs` in the scratch checkout of the whole commit, where all 51 tests should pass.",
      "result": "the commit you copied from; how many files you wrote under each folder; every file that is missing or whose bytes differ from the commit's, or that there is none; and how many tests passed in the whole-commit run, with the name of each that failed and why."
     },
     "scope": [
      "bin/**",
      "src/**",
      "test/**",
      "tools/**",
      "sample-inputs/**",
      "template/**",
      "catalog/**",
      "docs/approval.md",
      "docs/render.md"
     ]
    },
    {
     "key": "layers",
     "vars": {
      "task": "Copy every file of the commit under layers/ to the same path here, byte for byte: 91 files, the 80 layer PNGs (each 2048x2560 RGBA) and 11 others (painter scripts, a README, review images).",
      "detail": "Change, add and omit nothing.",
      "more": "Compare each copy's sha256 with the commit's file.",
      "result": "the commit you copied from; how many PNGs and how many other files you wrote, and their total bytes; every file that is missing or whose bytes differ from the commit's, or that there is none; and any PNG that is not 2048x2560."
     },
     "scope": [
      "layers/**"
     ]
    },
    {
     "key": "style-guide",
     "vars": {
      "task": "Write style-guide.md for v2. Start from the commit's style-guide.md and keep its master grid, frame and crop, landmarks, reserved areas and palette tables with every number unchanged, and its link to template/bust.svg, the bust template (code and tests depend on them). Replace the medieval look by the Tudor court oil style of the locked prompt, identical on every layer and portrait. Add a section 'Locked prompt' with exactly these two blocks, each the one line after its label below, label left out, each in its own code fence, and the rule that every painter sends the locked prompt unchanged, then that layer's description, with the negative prompt unchanged.",
      "detail": "LOCKED PROMPT: Hand-painted 16th-century Tudor court oil portrait on oak panel of an original anthropomorphic frog noble, half-length, three-quarter view facing left. Large heavy-lidded eyes with clear irises, a wide mouth with full muted-red lips, smooth green skin, a very expressive face of its own design. Visible brushstrokes, impasto on jewels and gold thread, glazed shadows, soft light from the upper left, warm varnish, fine craquelure. Brocade and damask doublet, slashed sleeves, fur trim, pearl and gem chains, velvet hat. Deep greens, oxblood, black, ochre, cream and gold leaf. Dark damask backdrop with a heraldic banner. 4:5 format.",
      "more": "NEGATIVE PROMPT: Pepe the Frog, Matt Furie, Pepelangelo, meme, cartoon, comic, anime, vector art, flat colour, cel shading, digital painting, 3D render, CGI, photograph, airbrush, plastic sheen, neon or saturated colour, blue or purple cast, modern clothing, text, letters, signature, watermark, copy of any known historical painting or sitter, human face, extra limbs, frontal view, facing right, blur, low detail\nThen add Court black #16120F and Cream #E9DFC6 to the palette. Say the face is Pepe-like but its own design and that nothing may copy Matt Furie's Pepe, Pepelangelo's paintings or any specific historical painting. Point to docs/painting.md, the layer contract, and to template/master-reference.png and template/master-reference.json: the painted moss master that layers are inpainted on, and its measured boxes.",
      "result": "the section headings of the guide; the locked and negative prompts as you stored them; which tables you kept and that their numbers equal the commit's; and what you changed or removed from the old guide."
     },
     "scope": [
      "style-guide.md"
     ]
    },
    {
     "key": "painting-contract",
     "vars": {
      "task": "Write docs/painting.md, the contract every v2 layer painter follows, each rule with a short reason, and a checklist to run before delivering. Rules: (1) An image model paints every layer PNG from style-guide.md's locked prompt plus the layer's description; code only registers, masks, cuts out, resamples and colour-matches that paint. (2) Every layer stays a full-canvas 2048x2560 straight-alpha RGBA PNG on the guide's grid and landmarks, under 8,000,000 bytes. (3) layers/skins/moss.png is the master bust: head, neck and shoulders, large open eye sockets painted as opaque dark umber beds on the registered eye centres, a smooth muzzle without lips. template/master-reference.png shows it with eyes and a calm face on a plain dark ground; template/master-reference.json gives its measured boxes.",
      "detail": "(4) Eyes, expressions, attire, headwear, regalia and props are painted onto master-reference.png by inpainting or image edit so edges and light match, registered back to the grid, then cut out to transparent with soft painted edges and no halo. (5) Every other skin is an image-model repaint of the master with the same silhouette and sockets; its catalog entry carries `tone`, 12 numbers, a 3x4 affine RGB map fitted from moss to it. (6) An eyes layer fills both sockets: large eyeball, clear iris, pupil, catchlight upper left, no lids. (7) Each expression paints both pairs of lids and the whole mouth with full muted-red lips. Its skin-coloured paint (lids, cheeks, brow, chin) goes in `<name>.skin.png` in moss colours, which the compositor passes through the chosen skin's `tone`; lips, mouth interior, teeth, tears and shadow glazes go in `<name>.png`; the catalog field `skinPaint` names the first.",
      "more": "(8) Hands are gloved, never bare skin. (9) Glaze, varnish, brush texture, craquelure and frame shadow are laid once by the compositor: no frame, vignette, strong crackle, text or signature in a layer. (10) Both shield reserves stay quiet. (11) Catalog files keep schema kekborn-assets@1, the five accepted rarities and every ID sample-inputs names; each entry's description names model, prompt suffix and cutout method.",
      "result": "the document's headings; each of the eleven rules as you worded it in one line; and the checklist's items."
     },
     "scope": [
      "docs/painting.md"
     ]
    }
   ],
   "minutes": 90
  },
  {
   "name": "paint-foundation",
   "mode": "code",
   "brief": "Kekborn portraits v2, one piece of a wave on this repository: its layers were drawn by code and are being repainted by an image model in Tudor court oil style. Read style-guide.md and docs/painting.md first and follow them: locked prompt, negative prompt, palette, grid and the layer contract. If either is missing, or src/compositor/index.cjs is, the baseline has not landed: change nothing and say so. Paint only with an image model: if none answers, draw nothing by code, leave the files as they are and say what it answered. Write only inside your scope; add no dependency or configuration file. Deploy, mint and spend nothing.\n\nYour piece: {{task}}\n{{detail}}\n\nYour result must contain: {{result}} Also each path you wrote or removed with its byte size and sha256, and each test of `node --test test/*/*.test.cjs` that fails, by name, with its cause in your words.",
   "items": [
    {
     "key": "master",
     "vars": {
      "task": "the moss master bust. Use the present layers/skins/moss.png only as the geometry reference (pose, silhouette, landmarks); its code-drawn look must go. With an image model working from that reference, on the locked prompt plus 'bare head, bare neck and shoulders, no clothes, plain dark umber ground', paint the frog noble's head, neck and shoulders: Pepe-like but its own design, large heavy-lidded eyes with clear irises, wide mouth with full muted-red lips, smooth green skin. Register it to the grid: eye centres (680,936) and (1040,912), and the snout, throat and shoulder landmarks of the guide, within a few pixels.",
      "detail": "Deliver three files. template/master-reference.png: the whole bust with eyes and a calm neutral face on the plain ground, opaque, 2048x2560, no frame, no finish. layers/skins/moss.png: the same bust cut out to transparent, the eyeballs replaced by opaque dark umber socket beds and the lips painted out to a smooth muzzle, as docs/painting.md says; it must meet every pixel check of test/raster/foundation.test.cjs (that test's sha256 comparison fails until the next wave updates catalog/foundation.json, which is expected). template/master-reference.json: the measured socket ellipses, mouth box, neck opening, crown band and shoulder line, in grid pixels.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; each landmark's measured position beside its target; whether the foundation pixel checks pass; and what you saw at preview size when you rendered a sample input with the new master."
     },
     "scope": [
      "layers/skins/moss.png",
      "template/master-reference.png",
      "template/master-reference.json"
     ]
    },
    {
     "key": "frames-wood",
     "vars": {
      "task": "two frames: common, plain wood, and uncommon, carved oak. Paint each with an image model as an empty picture frame seen square-on (locked prompt plus the frame's description), then fit it to the grid without visibly stretched ornament: opaque rails 144 px left, right and top and 192 px at the bottom, a transparent aperture (144,144)-(1904,2368), quiet opaque wood under the rail arms reserve and its clear space.",
      "detail": "The inner edge is painted, not a hard cut. The common frame must meet the frame pixel checks of test/raster/foundation.test.cjs (its sha256 comparison fails until the next wave updates catalog/foundation.json, which is expected). Keep the asset IDs and paths; put model, prompt suffix and method in the uncommon entry's description.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; the measured rail widths and aperture of each frame; whether the frame pixel checks pass; and how each frame read around a rendered sample at preview size."
     },
     "scope": [
      "layers/frames/common.png",
      "layers/frames/uncommon.png",
      "catalog/frame-uncommon.json"
     ]
    },
    {
     "key": "frames-metal",
     "vars": {
      "task": "three frames: rare, chased silver; epic, gilded gold; legendary, jewelled gold with an engraved blank name plaque in the box (640,2420)-(940,2508). Each tier must read at a glance as richer than the one before. Paint each with an image model as an empty picture frame seen square-on (locked prompt plus the frame's description, impasto on jewels and gilding), then fit it to the grid without visibly stretched ornament: opaque rails 144 px left, right and top and 192 px at the bottom, a transparent aperture (144,144)-(1904,2368), quiet opaque metal with no ornament or jewel inside the rail arms clear space (962,2392)-(1086,2536).",
      "detail": "The inner edge is painted, not a hard cut. Keep the asset IDs, tiers and paths; put model, prompt suffix and method in each entry's description.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; the measured rail widths and aperture of each frame; that the rail arms clear space is opaque and quiet in each; and how each frame read around a rendered sample of its tier at preview size."
     },
     "scope": [
      "layers/frames/rare.png",
      "layers/frames/epic.png",
      "layers/frames/legendary.png",
      "catalog/frame-rare.json",
      "catalog/frame-epic.json",
      "catalog/frame-legendary.json"
     ]
    },
    {
     "key": "backdrops",
     "vars": {
      "task": "the five backdrops green-arras, oak-gallery, oxblood-chamber, stone-apse and umber-hall. Paint each with an image model (locked prompt plus 'the empty backdrop alone, no figure, no banner, no frame' and its description): a dark damask wall hanging in that backdrop's colour or setting, a woven damask pattern that reads as cloth, lit softly from the upper left and falling into glazed shadow lower right, quiet behind the head and where the banner hangs upper right. Each PNG is opaque over the whole aperture (144,144)-(1904,2368) and the five differ clearly from one another at preview size while staying dark enough for a green sitter to stand out.",
      "detail": "Keep the asset IDs and paths; put model, prompt suffix and method in each entry's description. Remove a painter script in your scope whose output you replaced.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; the mean brightness of each backdrop inside the aperture; and how each read behind a rendered sample at preview size."
     },
     "scope": [
      "layers/backgrounds/**",
      "catalog/backgrounds.json"
     ]
    },
    {
     "key": "banners",
     "vars": {
      "task": "the three banners ochre-gonfalon, oxblood-standard and vert-pennon. Paint each with an image model (locked prompt plus 'a heraldic cloth banner alone, hanging from a rod' and its description) as painted damask or silk with gold-thread fringe, lit from the upper left, in the same place and size as the present layer, upper right of the aperture. The cloth is plain, opaque and quiet across the banner arms clear space (1476,316)-(1764,652), because the compositor paints the coat of arms there: paint no charge, shield or letter yourself.",
      "detail": "Cut each out to transparent with soft painted edges and no halo. The three differ in shape as well as colour. Keep the asset IDs and paths; put model, prompt suffix and method in each entry's description.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; that the arms clear space is opaque and quiet in each; and how each banner and the arms on it read in a rendered sample at preview size."
     },
     "scope": [
      "layers/banners/**",
      "catalog/banners.json"
     ]
    },
    {
     "key": "heraldry",
     "vars": {
      "task": "the 18 heraldry parts under layers/heraldry/ (fields, divisions, ordinaries, charges with their keylines and fimbriations), which src/heraldry/index.cjs tints and stacks into the coat of arms. Keep every part's alpha silhouette exactly as it is, so arms stay registered and legible at banner and rail size, and replace the tone inside it with image-model paint: have the model paint heraldic enamel and gold-leaf brushwork with impasto ridges (locked prompt plus that description, neutral in hue because parts are tinted at render time), and map that paint through each silhouette at a tonal range the tinting code keeps legible.",
      "detail": "Every test under test/heraldry/ must pass.",
      "result": "the image model, its settings and seed and the prompt suffix; how you mapped the paint into the parts; that every alpha channel is unchanged; and how arms from three different seeds read at banner and at rail size."
     },
     "scope": [
      "layers/heraldry/**"
     ]
    },
    {
     "key": "finish",
     "vars": {
      "task": "the finishing pass, code only. Extend finish(image, seed) in src/raster/index.cjs so separately painted layers read as one painting: a unifying glaze (warm translucent umber deepening the shadows, stronger toward the lower right, away from the upper-left light), the varnish, a brush-texture overlay (fine directional bristle relief that modulates light and dark across layer boundaries), craquelure, and the frame's shadow on the aperture.",
      "detail": "Keep it deterministic from the seed, pure Node, applied once after the last layer, with the present signature and exports, the frame rails free of aperture shadow as now, and the arms still legible. Each of the five effects gets a test showing it changes pixels where it should and leaves alpha alone, and one test shows identical input gives identical bytes. Write docs/finish.md: each effect, its strength and its order.",
      "result": "each of the five effects, its strength and order; the tests you added; and how one rendered sample looked before and after the new pass at preview size."
     },
     "scope": [
      "src/raster/**",
      "test/raster/core.test.cjs",
      "test/raster/finish.test.cjs",
      "docs/finish.md"
     ]
    },
    {
     "key": "compositor",
     "vars": {
      "task": "skin-matched face paint in the compositor, code only. A skin asset may carry `tone`: 12 finite numbers, a 3x4 affine map of straight RGB (rows r, g, b; columns r, g, b, constant), results rounded and clamped to 0-255; absent means identity. Any asset may carry `skinPaint`: a root-relative path to a full-canvas PNG that is drawn immediately before that asset's own PNG with its RGB passed through the chosen skin's `tone`, alpha unchanged. A malformed `tone` or `skinPaint` stops the load with E_CATALOG; a missing or wrong-sized file fails as any layer does. The layer record names the skin paint's path, sha256 and the tone applied.",
      "detail": "Everything else stays as it is: catalog schema, IDs, draws, stack order, byte-identical output for identical input. Add fixture tests for both fields and extend the real-catalog test so that every path and skinPaint a catalog file names exists. Document both fields in docs/render.md.",
      "result": "how `tone` and `skinPaint` are read, checked and recorded; the tests you added; and that the twelve sample inputs still render."
     },
     "scope": [
      "src/compositor/**",
      "test/compositor/**",
      "bin/render.cjs",
      "docs/render.md"
     ]
    },
    {
     "key": "harmonise",
     "vars": {
      "task": "the optional harmonisation pass, code only: a low-strength image-to-image pass with a fixed seed over a finished composite, which normal offline rendering never needs. `node bin/harmonise.cjs request plain.png request.json` writes what to ask any image-to-image model: style-guide.md's locked prompt plus a short harmonising suffix, the negative prompt, one fixed strength no higher than 0.3, one fixed seed, the size.",
      "detail": "`node bin/harmonise.cjs apply plain.png model.png out.png` takes the model's answer as a PNG, resamples it to 2048x2560, blends it into the plain composite at a fixed weight inside the frame aperture only, keeps the frame rails and both coat-of-arms boxes exactly as in the plain composite, and writes the harmonised PNG and a record beside it: model name, prompt, strength, seed, blend weight and the sha256 of all three images. Same inputs give the same bytes. Tests run offline on a synthetic model image. Then try it once for real on a rendered sample with an image-to-image model, twice with the same seed. Write docs/harmonise.md.",
      "result": "the fixed strength, seed and blend weight and why; the tests you added; and, for the real trial, the model, whether the two runs matched, and what the pass changed at preview size, or what the model answered if none ran."
     },
     "scope": [
      "src/harmonise/**",
      "bin/harmonise.cjs",
      "test/harmonise/**",
      "docs/harmonise.md"
     ]
    },
    {
     "key": "approval",
     "vars": {
      "task": "the approval tooling, code only, in tools/approval.cjs with a pure-Node baseline JPEG encoder under src/jpeg/. Masters are no longer committed: 2048x2560 PNGs are rendered into out/ as out/NN-plain.png and out/NN-harmonised.png with their records. `previews` writes, for NN 01 to 12, samples/NN-plain.jpg and samples/NN-harmonised.jpg, 1024x1280 at JPEG quality 90, and samples/NN.json holding the input, the render record and the harmonisation record. `sheet` writes contact-sheet.jpg: twelve numbered cells in a 4x3 grid, each showing plain left and harmonised right.",
      "detail": "`manifest` writes manifest.json with the sha256 of every committed file but itself, and refuses when a preview or the sheet is missing or 4,000,000 bytes or more, or any file is 8,000,000 bytes or more; out/ is never listed. `verify` checks a package against its manifest. Keep the fixture tests' coverage, adapted to these paths, and keep the real sample-inputs test passing. Rewrite docs/approval.md to match.",
      "result": "each operation, its inputs, outputs and refusals; how the encoder was checked (a decoder that read its files, and their sizes at quality 90); and the tests you changed or added."
     },
     "scope": [
      "tools/**",
      "test/approval/**",
      "docs/approval.md",
      "src/jpeg/**"
     ]
    }
   ]
  },
  {
   "name": "paint-probe",
   "mode": "code",
   "brief": "Kekborn portraits v2, one piece of a wave on this repository: its layers were drawn by code and are being repainted by an image model in Tudor court oil style. Read style-guide.md and docs/painting.md first and follow them: locked prompt, negative prompt, palette, grid and the layer contract. If either is missing, or src/compositor/index.cjs is, the baseline has not landed: change nothing and say so. Paint only with an image model: if none answers, draw nothing by code, leave the files as they are and say what it answered. Write only inside your scope; add no dependency or configuration file. Deploy, mint and spend nothing.\n\nYour piece: {{task}}\n\nYour result must contain: {{result}} Also each path you wrote or removed with its byte size and sha256, and each test of `node --test test/*/*.test.cjs` that fails, by name, with its cause in your words.",
   "items": [
    {
     "key": "foundation-record",
     "vars": {
      "task": "the foundation record, no painting. In catalog/foundation.json set the sha256 of layers/skins/moss.png and layers/frames/common.png to the bytes now in the checkout, and reword each layer's notes to say it is an image-model painting if its bytes differ from the baseline's. Keep the assets array, the registration numbers, the reserves and every other field as they are, so template/bust.svg and the tests still agree with it. Then run the whole suite and render the twelve sample inputs into test/scratch/.",
      "result": "the two hashes before and after; whether each layer changed from the baseline; and for each sample input whether it rendered, with the reason where it did not."
     },
     "scope": [
      "catalog/foundation.json"
     ]
    },
    {
     "key": "skin-ivory",
     "vars": {
      "task": "First: if template/master-reference.png is absent, the master has not landed: change nothing and say so. The rare ivory skin: an image-model repaint of the master (edit template/master-reference.png on the locked prompt plus 'pale ivory-cream skin with faint ochre mottling and warm bone highlights'), keeping the master's silhouette, sockets, muzzle and landmarks so every face and attire layer fits it unchanged. Export it as layers/skins/moss.png is built: transparent outside the bust, opaque dark umber socket beds, smooth muzzle without lips. Fit its `tone` from moss as docs/painting.md says and store it in the catalog entry with rarity rare, model, prompt suffix and method; keep the ID and path.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; the twelve `tone` numbers and the fit's mean error; how closely its alpha matches the moss master's; and how it read in a rendered sample at preview size."
     },
     "scope": [
      "layers/skins/ivory.png",
      "catalog/skin-ivory.json"
     ]
    },
    {
     "key": "eyes-amber-side",
     "vars": {
      "task": "First: if template/master-reference.png is absent, the master has not landed: change nothing and say so. Two eyes layers, amber and side-eye. Paint the eyeballs into the master's sockets with an image model (inpaint template/master-reference.png, locked prompt plus the eye's description): large, glassy, clear irises with a horizontal-oval pupil and a catchlight from the upper left, filling each socket bed and feathered under its rim, no lids. amber looks ahead to the viewer's left; side-eye has both irises slid hard toward the near corner, watching the viewer, with more white showing. Cut out to transparent.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; each iris centre and width in grid pixels; and how each read over the master at preview size."
     },
     "scope": [
      "layers/eyes/amber.png",
      "layers/eyes/side-eye.png"
     ]
    },
    {
     "key": "expr-melancholy-smug",
     "vars": {
      "task": "First: if template/master-reference.png is absent, the master has not landed: change nothing and say so. Two expressions, melancholy and smug, strongly different at preview size. For each, inpaint template/master-reference.png with an image model (locked prompt plus the expression): melancholy has drooping half-closed lids, raised inner brows and a long downturned mouth; smug has low lazy lids, one cheek pushed up and a closed lopsided smirk. Split each as docs/painting.md says: `<name>.skin.png` holds lids, brow, cheeks and chin in moss colours, `<name>.png` holds the full muted-red lips, mouth and shadow glazes; both transparent elsewhere, feathered into the skin, covering the muzzle's mouth area fully. Leave the catalog alone; check the pair over moss and over another skin with a scratch copy of the catalog.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; how you split skin paint from lip paint; and how each expression read over moss and over one other skin at preview size, and whether the two are unmistakably different."
     },
     "scope": [
      "layers/expressions/melancholy.png",
      "layers/expressions/melancholy.skin.png",
      "layers/expressions/smug.png",
      "layers/expressions/smug.skin.png"
     ]
    },
    {
     "key": "attire-scholar",
     "vars": {
      "task": "First: if template/master-reference.png is absent, the master has not landed: change nothing and say so. The scholar's attire, the three layers catalog/attire-scholar.json names: the gown (attire-front), the folded hood behind the shoulders (attire-back) and the spectacles (accessory). Paint them onto template/master-reference.png with an image model (inpainting, locked prompt plus each description): a Tudor scholar's black damask gown with brown fur collar, slashed oxblood sleeves and a cream linen shirt band closing over the neck opening; a matching hood; round gilt-rimmed spectacles sitting on the sockets. Register and cut each out to transparent so edges and light match the bust. Keep the asset IDs, slots and paths; put model, prompt suffix and method in each entry's description. Remove the painter script in your scope.",
      "result": "the image model, its settings and seed, and the prompt suffix of each layer; how you registered and cut each one out; how the collar closes over the neck opening and the hood sits behind the shoulders; and how the three read together in a rendered scholar sample at preview size."
     },
     "scope": [
      "layers/attire/scholar/**",
      "catalog/attire-scholar.json"
     ]
    }
   ]
  }
 ],
 "read": [
  "baseline-import/code-catalog",
  "baseline-import/layers",
  "baseline-import/style-guide",
  "baseline-import/painting-contract",
  "paint-foundation/master",
  "paint-foundation/frames-wood",
  "paint-foundation/frames-metal",
  "paint-foundation/backdrops",
  "paint-foundation/banners",
  "paint-foundation/heraldry",
  "paint-foundation/finish",
  "paint-foundation/compositor",
  "paint-foundation/harmonise",
  "paint-foundation/approval",
  "paint-probe/foundation-record",
  "paint-probe/skin-ivory",
  "paint-probe/eyes-amber-side",
  "paint-probe/expr-melancholy-smug",
  "paint-probe/attire-scholar"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "paint-probe"
  ],
  "afterMinutes": 900
 },
 "finish": false
}