{
  "notes": "Episode 5 (last of five). State on arrival: 34 of 50 items used, both earlier code waves merged (portrait-foundation at dd6e10f, kekborn-library-e3 at 0a19b24168e7358f0b4b4c2111f9d89436543b5c), 0 failed items, no requester notes, no children. Episode 4 carried nothing out: its one spawn, kekborn-approval-edition, was refused because a variable of its first item asked for a command's wording to be copied back, so its 15 reads and its wake fell with it. Nothing ran between episodes 4 and 5. The trunk therefore still had no samples/, no contact-sheet.png and no manifest.json.\n\nWhat I checked myself this episode. Both handed merges match their SHA-256 (07361bdc..., c64936b4...); they restate the workers' own claims and certify nothing. I read the public trunk at 0a19b24: 140 files, 72 layer PNGs, 27 catalog files, 12 sample inputs, raster/heraldry/compositor/approval sources with 7 test files. Three faults confirmed in the source, as episode 4 found: (1) catalog/foundation.json has no schema/assets, so every render stops with E_CATALOG and skin.moss and frame.common are not selectable; (2) skin-lichen, skin-peat and skin-slate carry rarity \"standard\", which catalog.cjs rejects; (3) tools/approval.cjs does not look for inputs at sample-inputs/NN.json. In a throwaway copy with (1) and (2) mended, studies 05 and 12 rendered in about five seconds each, 6,681,273 and 4,619,963 bytes. So rendering is cheap; the limit is the roughly 8 MiB an item can carry, which is why each study is its own item. Seen in those two renders: the tower charge is invisible on the cross at banner and rail size because ordinary and charge share one metal, and a gules shield has no edge against the oxblood banner; the gaze expressions (smug, serene, dim-grin, and by construction scowl and paranoid-side-eye) put a flat olive lid cap on the eyes that looks stuck on ivory and oxblood, while the court set (resolute checked) sits well; the seer's open hood reads as a green arch behind the head.\n\nDecision: three ordinary code waves, spawned together and named so they sort in run order. The skill says one wave runs at a time and each starts from the newest merged trunk, so they should run 1, 2, 3 with no episode between. I chose ordinary waves over a target batch because ordinary waves are the only kind this goal has seen admitted (34 of 34 items accepted), and a refusal now would end the goal with nothing. All briefs ask for the worker's own account, never for copied command text. A limit met while writing this file: one item variable holds at most 1,000 characters, so the three repair items carry their assignment in three variables (work, detail, proof).\n- kekborn-e5-1-fit (3 items): pipeline-fit mends the three faults above and adds tests on the real catalog; shield-legibility gives the charge its own tincture and the shield an edge, recorded in choices; gaze-lids repaints the five gaze eyelids as neutral shadow.\n- kekborn-e5-2-studies (12 items, study-01 to study-12): each renders sample-inputs/NN.json to samples/NN.png and samples/NN.json, repeats it in a second process, checks the record, and reports what it saw. Matrix: 01 common scholar moss; 02 uncommon antiquary lichen (side-eye with paranoid); 03 rare knight slate; 04 epic artisan peat; 05 legendary seer ivory; 06 common council moss; 07 uncommon scholar peat; 08 rare antiquary oxblood; 09 epic knight lichen; 10 legendary artisan ivory; 11 rare seer slate; 12 epic council oxblood. That is five tiers, six categories twice, six skins (ivory and oxblood rare), eight eyes, ten expressions, five backgrounds, three banners. Wallets are labels such as kekborn-study-05 with artSeed sitting-05, not addresses.\n- kekborn-e5-3-package (1 item, approval-package): re-renders all twelve and compares, may replace one missing or stale study, makes contact-sheet.png (twelve across, 01 at left), writes manifest.json last, verifies it, rehashes independently, runs every test file and reports coverage.\nThis uses the last 16 items: 50 of 50. Nothing is held in reserve; I judged the eyelid repair on both rare skins worth more than a spare item, because the samples exist to win approval of the style.\n\nFor whoever reads this next (a further episode if the plane grants one, otherwise the write-up). Read kekborn-e5-3-package/approval-package first, then the three repair results and the twelve study results, and goal.json's trunk commit.\n- If the package item was accepted: set finish true. Check that manifest.json names only files of the repository (the approval tool walks the folder it runs in, and the brief asks the worker to keep stray hidden folders out). The write-up should cite the final trunk commit, the package result (sheet size and hash, manifest hash and entry count, per-study hashes and reproduction, test counts, coverage) and the study results for what each portrait shows. Present it for the owner's decision; do not claim approval.\n- If pipeline-fit failed, the studies cannot render and the package cannot be made: say so plainly. No items are left to repair it.\n- If shield-legibility or gaze-lids failed, the studies were rendered with the old shield or lids: deliver them and disclose it.\n- If the waves ran out of order (studies before repairs), every study will report E_CATALOG; say so.\n- If one or two studies failed, the package item may have replaced one; any other gap must be named, and the sheet and manifest will then be missing.\nDisclose in any case, unless a result shows it was fixed: the seer hood was not repaired this episode (two hood ends flank the head, seen on 05 and expected on 11); a sliver of skin at the seer's far shoulder; the eye layers keep a green rim that was painted for moss; shield parts show regular diagonal hatching; heraldry has 3 divisions with plain, 2 ordinaries, 3 charges; the Legendary plaque carries ornament and no text; sRGB tagging of layer PNGs is mixed; the knight painter needs Python packages that are not in the repository; several layer families were only ever checked on moss by their painters; manifest.json cannot list its own hash. The twelve masters total about 65 MB.\n\nChildren: goal.json shows ten prepaid media orders unopened. I opened none, as in episodes 2 to 4. The goal's portraits must come from its own deterministic compositor and registered layer library, which a separate image order cannot produce or reproduce, and the objective says deploy, mint and spend nothing. If a budget.unspent wake comes, set finish again and give this reason.",
  "spawn": [
    {
      "name": "kekborn-e5-1-fit",
      "mode": "code",
      "brief": "Repair one part of the Kekborn approval collection on the goal trunk, inside your assigned paths only.\n\n{{work}}\n\n{{detail}}\n\n{{proof}}\n\nFollow style-guide.md and the files already merged. Keep the master grid of 2048×2560, every existing file name and asset ID, and the rule that no layer carries varnish, craquelure or frame shadow of its own: those belong to the one shared finishing pass. Write trial files under test/scratch/ only. Deploy, mint and spend nothing. Write the result as your own short account in plain sentences, with the facts asked for above.",
      "items": [
        {
          "key": "pipeline-fit",
          "scope": [
            "catalog/foundation.json",
            "catalog/skin-lichen.json",
            "catalog/skin-peat.json",
            "catalog/skin-slate.json",
            "src/compositor/**",
            "test/compositor/**",
            "tools/approval.cjs",
            "test/approval/**",
            "docs/approval.md",
            "docs/render.md"
          ],
          "vars": {
            "work": "Your part: make the offline renderer and the approval tool accept the real library. Three faults stop them on the trunk today. (1) catalog/foundation.json is a registration document without the schema field kekborn-assets@1 and the assets array that src/compositor/catalog.cjs requires of every catalog file, so every render stops with E_CATALOG and the moss skin and Common frame are unknown to the selector. (2) catalog/skin-lichen.json, skin-peat.json and skin-slate.json give rarity standard, which the loader rejects. (3) tools/approval.cjs looks for each study's input at samples/inputs/NN.json, samples/NN.input.json or inputs/NN.json, but the twelve inputs are at sample-inputs/NN.json.",
            "detail": "The mends. (1) Keep the registration content of catalog/foundation.json (test/raster/foundation.test.cjs reads it and must still pass), and add the schema field and an assets array holding skin.moss (slot skin, layers/skins/moss.png, rarity common) and frame.common (slot frame, layers/frames/common.png, tier common). (2) The three skins must draw with the common weight: change the value to common, or teach loader and selector that standard weighs as common. (3) Accept sample-inputs/NN.json and say so in docs/approval.md. Add tests that load the real catalog folder and select layers for all twelve sample inputs, so a fault of this kind fails a test. Leave sample-inputs, every PNG, the draw algorithm, the stack order and the sidecar fields as they are, and create nothing under samples/.",
            "proof": "Check your work: render each of the twelve sample inputs with node bin/render.cjs into test/scratch/ and confirm each gives a 2048×2560 PNG with its JSON beside it, and that one study rendered twice in separate processes gives identical bytes. Run the test files under test/compositor and test/approval. Your result must contain: each file you changed and what changed in it; how you fixed each of the three faults; whether all twelve inputs now render; whether the repeat render was identical; how many compositor and approval tests there are and whether all pass; and anything that still fails."
          }
        },
        {
          "key": "shield-legibility",
          "scope": [
            "src/heraldry/**",
            "test/heraldry/**",
            "layers/heraldry/**"
          ],
          "vars": {
            "work": "Your part: make the procedural coat of arms legible. In src/heraldry/index.cjs the ordinary and the charge are both tinted with the one metal drawn from the seed, so the charge vanishes where it lies on the ordinary: a tower in or on a cross in or cannot be seen on the 240×288 banner shield or on the 100×120 rail shield. Give the charge a tincture that reads against the ordinary under it and against the field around it, for instance the other metal or a colour chosen by its own labelled seed draw, with a thin dark keyline. Give the shield a thin painted edge too, so a gules field does not merge into an oxblood banner cloth.",
            "detail": "Tincture, division, ordinary and charge all still come from the portrait seed. Record the charge's tincture in choices beside the existing fields. Keep buildArms(seedBytes, {root}) and what it returns (image 240×288, choices, usedLayers with path and sha256), the existing choice names, the palette of the style guide and the registration of the parts at (1500,340). Add or repaint parts under layers/heraldry/ only where needed, as full-canvas RGBA value maps like the existing ten. The same seed must still give the same bytes. The full renderer cannot run on this checkout yet (another item of this wave repairs its catalog); buildArms runs on its own.",
            "proof": "Check your work: build every pairing of division, ordinary and charge, look at each at 240×288 and reduced to 100×120, and measure the contrast between the charge and what lies under it. Add that measure as a test under test/heraldry/. Your result must contain: the tincture rule you chose, in words; each file changed or added; for each ordinary and charge pairing, whether the charge reads at both sizes; whether the shield edge reads on a cloth of the field's own colour; how many heraldry tests there are and whether all pass; whether two builds from one seed were identical; and any pairing that is still weak."
          }
        },
        {
          "key": "gaze-lids",
          "scope": [
            "layers/expressions/smug.png",
            "layers/expressions/paranoid-side-eye.png",
            "layers/expressions/serene.png",
            "layers/expressions/scowl.png",
            "layers/expressions/dim-grin.png",
            "catalog/expressions-gaze.json",
            "layers/expressions/paint-gaze.cjs"
          ],
          "vars": {
            "work": "Your part: repaint the eyelids of the five gaze expressions so they sit on every skin. layers/expressions/smug.png, paranoid-side-eye.png, serene.png, scowl.png and dim-grin.png each lay a flat olive-umber lid over the top of both eyes at about 0.6 to 0.7 opacity. On the moss skin it passes; on the rare ivory and oxblood skins it reads as a hard-edged moss-coloured cap stuck on each eye. The five court expressions (resolute, dubious, startled, wistful, amused) use thin neutral lid lines and sit well on every skin: follow their approach. Make each lid a neutral translucent shadow and line that takes its colour from the skin under it, with a soft painted edge and brushwork like the skin's, and no olive or green of its own.",
            "detail": "Keep each expression's lid shape and mood, its mouth and cheek accents, the mouth corners, the eye centres (680,936) and (1040,912), the straight-RGBA 2048×2560 canvas, the five file names and IDs, and requiresEyes on paranoid-side-eye. Leave the other five expression files and every other layer as they are. If you keep a painter script, it goes at layers/expressions/paint-gaze.cjs. The full renderer cannot run on this checkout yet (another item of this wave repairs its catalog): composite with src/raster/index.cjs directly.",
            "proof": "Check your work: composite each of the five over all six skins (moss, lichen, peat, slate, ivory, oxblood) with an eye layer, paranoid-side-eye with eyes.side-eye, and look at each at full size and at one eighth. Your result must contain: the five files' new byte sizes and SHA-256; what you changed in the lid treatment; for each expression, whether the lid reads as part of the head on ivory and on oxblood, and whether the pupils stay clear of it; whether all paint stays out of the banner-arms box (1476,316)-(1764,652) and the rail-arms box (962,2392)-(1086,2536); and any expression still weak on a skin."
          }
        }
      ],
      "minutes": 75
    },
    {
      "name": "kekborn-e5-2-studies",
      "mode": "code",
      "brief": "Render study {{nn}} of the twelve Kekborn approval portraits on the goal trunk, and deliver it. One item renders one study.\n\nFrom the repository root, render sample-inputs/{{nn}}.json to samples/{{nn}}.png with the offline renderer, node bin/render.cjs (docs/render.md explains it). It writes the record samples/{{nn}}.json beside the PNG. This study is {{what}}. Deliver exactly those two files as the renderer wrote them: do not edit, resample, recompress or rename either, and change nothing else in the repository. The PNG should be between 4 and 7 MB; an item can carry about 8 MiB, so deliver nothing else of size.\n\nThe trunk you start from should hold this episode's repairs: the catalog loads, the shield's charge has its own tincture, and the gaze eyelids are neutral. If the renderer stops on the catalog, patch nothing outside your paths and deliver no render made from altered files: say what stopped it instead.\n\nCheck before you deliver. Render the same input once more into test/scratch/ in a separate process: PNG and JSON must be byte-identical with the pair you deliver. The PNG is 2048×2560. In the JSON, input equals sample-inputs/{{nn}}.json; seed is the SHA-256 of the wallet string immediately followed by artSeed; the layer list holds the {{tier}} frame, the {{category}} attire and the skin, eyes, expression, background and banner the input names; one finishing pass is recorded; the one shield is placed on the banner at (1500,340) at 240×288 and on the frame rail at (974,2404) at 100×120; and pngSha256 is the PNG's SHA-256. Then look at the portrait at full size and at one eighth. The style every study shares: a painted court portrait of an original frog noble, head and shoulders, three-quarter view facing left, oil brushwork, soft light from the upper left, warm varnish, fine craquelure, a dark backdrop with a heraldic banner, inside its frame. Look closely at this: {{look}}\n\nDeploy, mint and spend nothing. Write the result as your own account in plain sentences. It must contain: the two paths; the PNG's byte size and SHA-256; the seed; the layer IDs in stack order; the arms chosen (tinctures, division, ordinary, charge); whether the repeat render was identical; and what you saw of the frame, attire, headwear and regalia, eyelids and both shields, with every visible defect named plainly.",
      "items": [
        {
          "key": "study-01",
          "scope": [
            "samples/01.png",
            "samples/01.json"
          ],
          "vars": {
            "nn": "01",
            "what": "a Common-tier scholar on the moss skin, with amber eyes, the smug expression, the umber hall backdrop and the vert pennon banner",
            "tier": "Common",
            "category": "scholar",
            "look": "the plain wood frame, the robe and gold spectacles over the eyes and snout ridge, the wool cap, and the repainted smug eyelids on a standard skin."
          }
        },
        {
          "key": "study-02",
          "scope": [
            "samples/02.png",
            "samples/02.json"
          ],
          "vars": {
            "nn": "02",
            "what": "an Uncommon-tier antiquary on the lichen skin, with side-eye eyes, the paranoid side eye expression, the green arras backdrop and the oxblood standard banner",
            "tier": "Uncommon",
            "category": "antiquary",
            "look": "the carved oak frame, the monocle on the near eye with its chain, the scroll at the lower left against the collar ribbon and roundel, and whether the side-eye pupils and the paranoid lids look the same way."
          }
        },
        {
          "key": "study-03",
          "scope": [
            "samples/03.png",
            "samples/03.json"
          ],
          "vars": {
            "nn": "03",
            "what": "a Rare-tier knight on the slate skin, with hazel eyes, the serene expression, the oxblood chamber backdrop and the ochre gonfalon banner",
            "tier": "Rare",
            "category": "knight",
            "look": "the silver frame and its plain seat under the rail shield, the plate armour and gauntlet, the silver circlet on the dome, the chain over the gorget, and the serene eyelids."
          }
        },
        {
          "key": "study-04",
          "scope": [
            "samples/04.png",
            "samples/04.json"
          ],
          "vars": {
            "nn": "04",
            "what": "an Epic-tier artisan on the peat skin, with olive eyes, the scowl expression, the stone apse backdrop and the vert pennon banner",
            "tier": "Epic",
            "category": "artisan",
            "look": "the gilded frame after varnish, the apron and brushes under the heavy gold chain, the leaf coronet, and the scowl on the darkest standard skin."
          }
        },
        {
          "key": "study-05",
          "scope": [
            "samples/05.png",
            "samples/05.json"
          ],
          "vars": {
            "nn": "05",
            "what": "a Legendary-tier seer on the rare ivory skin, with brass eyes, the dim grin expression, the oak gallery backdrop and the oxblood standard banner",
            "tier": "Legendary",
            "category": "seer",
            "look": "the eyelids on the rare ivory skin, the open seer hood behind the head under the gold crown, the orb and its hand, the mantle clasp, and the gems and plaque of the ornate frame."
          }
        },
        {
          "key": "study-06",
          "scope": [
            "samples/06.png",
            "samples/06.json"
          ],
          "vars": {
            "nn": "06",
            "what": "a Common-tier council on the moss skin, with silver eyes, the resolute expression, the umber hall backdrop and the ochre gonfalon banner",
            "tier": "Common",
            "category": "council",
            "look": "the plain wood frame, the velvet coat and green sash, the wool cap, the flax cord across the sash, and the face against the dark hall."
          }
        },
        {
          "key": "study-07",
          "scope": [
            "samples/07.png",
            "samples/07.json"
          ],
          "vars": {
            "nn": "07",
            "what": "an Uncommon-tier scholar on the peat skin, with sienna eyes, the dubious expression, the green arras backdrop and the vert pennon banner",
            "tier": "Uncommon",
            "category": "scholar",
            "look": "the carved oak frame, the felt bonnet over the scholar's folded hood, the spectacles on a dark skin, and the collar ribbon against the robe's collar."
          }
        },
        {
          "key": "study-08",
          "scope": [
            "samples/08.png",
            "samples/08.json"
          ],
          "vars": {
            "nn": "08",
            "what": "a Rare-tier antiquary on the rare oxblood skin, with umber eyes, the startled expression, the oxblood chamber backdrop and the oxblood standard banner",
            "tier": "Rare",
            "category": "antiquary",
            "look": "the rare oxblood skin against an oxblood room and banner (does the head separate from the backdrop, does the shield separate from the cloth), the monocle and scroll, and the silver circlet and chain."
          }
        },
        {
          "key": "study-09",
          "scope": [
            "samples/09.png",
            "samples/09.json"
          ],
          "vars": {
            "nn": "09",
            "what": "an Epic-tier knight on the lichen skin, with amber eyes, the wistful expression, the stone apse backdrop and the ochre gonfalon banner",
            "tier": "Epic",
            "category": "knight",
            "look": "the gilded frame, the armour under the heavy gold chain and seal, the leaf coronet, and the pale lichen colonies under the finish."
          }
        },
        {
          "key": "study-10",
          "scope": [
            "samples/10.png",
            "samples/10.json"
          ],
          "vars": {
            "nn": "10",
            "what": "a Legendary-tier artisan on the rare ivory skin, with silver eyes, the amused expression, the oak gallery backdrop and the vert pennon banner",
            "tier": "Legendary",
            "category": "artisan",
            "look": "the rare ivory skin with the gold crown and gilt clasp over workshop garb, the brushes, and the ornate frame's gems, plaque and rail shield."
          }
        },
        {
          "key": "study-11",
          "scope": [
            "samples/11.png",
            "samples/11.json"
          ],
          "vars": {
            "nn": "11",
            "what": "a Rare-tier seer on the slate skin, with hazel eyes, the serene expression, the umber hall backdrop and the oxblood standard banner",
            "tier": "Rare",
            "category": "seer",
            "look": "the open seer hood behind the head with only a slim silver circlet above it (do its two ends read as one hood or as loose panels), the orb, the far shoulder edge, and the serene eyelids."
          }
        },
        {
          "key": "study-12",
          "scope": [
            "samples/12.png",
            "samples/12.json"
          ],
          "vars": {
            "nn": "12",
            "what": "an Epic-tier council on the rare oxblood skin, with olive eyes, the smug expression, the green arras backdrop and the ochre gonfalon banner",
            "tier": "Epic",
            "category": "council",
            "look": "the repainted smug eyelids on the rare oxblood skin, the gold chain and seal over the sash and badge, the leaf coronet, and the gilded frame."
          }
        }
      ],
      "minutes": 60
    },
    {
      "name": "kekborn-e5-3-package",
      "mode": "code",
      "brief": "Assemble the {{name}} on the goal trunk: the contact sheet and the manifest over the twelve finished studies. One item does this one job.\n\n1. Studies. samples/01.png to samples/12.png and their records samples/01.json to samples/12.json should all be on the trunk. Render each sample-inputs/NN.json again into test/scratch/ in a separate process and compare PNG and JSON with the pair on the trunk. A study whose pair is missing, or no longer reproduces, you render into samples/ yourself, exactly as the renderer writes it. Your item can carry about 8 MiB, which is one master of 4 to 7 MB: if more than one study needs replacing, replace the lowest-numbered one. Carry on to the sheet and manifest only when all twelve are present and reproduce; otherwise deliver what is sound and name the studies that are missing or stale.\n\n2. Contact sheet. Make contact-sheet.png with node tools/approval.cjs sheet: all twelve complete framed portraits side by side in one row in numeric order, 01 at the left, each thumbnail the whole master.\n\n3. Manifest. Write manifest.json last with node tools/approval.cjs manifest, then run its verify. It lists every delivered file with its sha256, sorted by path: style-guide.md, the template, the catalogs, the whole layer library, the raster, heraldry and compositor sources with their tests, the tools and docs, the twelve inputs, the twelve PNGs and their JSON records, and the sheet. It leaves out only itself, because a file cannot hold its own hash; docs/approval.md must say so. It names only files that belong to the repository, the ones Git tracks plus the ones you add: if the tool's walk picks up anything else, such as a hidden folder, make the tool skip it. If the tool refuses the real layout, for instance inputs at sample-inputs/NN.json, mend tools/approval.cjs, its test and docs/approval.md rather than moving files.\n\n4. Checks. Run each test file under test/ on its own. Hash every path of the manifest again without the tool and compare. Confirm what the twelve inputs cover: five tiers, each of six categories twice, six skins with ivory and oxblood rare, eight eyes, ten expressions, five backgrounds, three banners. Look at the sheet: the same bust, left-facing three-quarter pose, eye line, light and finish in all twelve, and five frame materials that read apart.\n\nChange nothing outside your paths. Deploy, mint and spend nothing. Write the result as your own account in plain sentences. It must contain: the sheet's pixel size, byte size and SHA-256; the manifest's SHA-256 and its number of entries; for each study, its PNG's SHA-256 and whether the fresh render matched; how many layer PNGs each slot has; how many tests each suite has and whether all pass; the coverage counts; any study you replaced and any tool change; and everything missing or defective, plainly.",
      "items": [
        {
          "key": "approval-package",
          "scope": [
            "contact-sheet.png",
            "manifest.json",
            "samples/**",
            "tools/approval.cjs",
            "test/approval/**",
            "docs/approval.md"
          ],
          "vars": {
            "name": "Kekborn approval package"
          }
        }
      ],
      "minutes": 90
    }
  ],
  "read": [
    "kekborn-e5-3-package/approval-package",
    "kekborn-e5-1-fit/pipeline-fit",
    "kekborn-e5-1-fit/shield-legibility",
    "kekborn-e5-1-fit/gaze-lids",
    "kekborn-e5-2-studies/study-01",
    "kekborn-e5-2-studies/study-02",
    "kekborn-e5-2-studies/study-03",
    "kekborn-e5-2-studies/study-04",
    "kekborn-e5-2-studies/study-05",
    "kekborn-e5-2-studies/study-06",
    "kekborn-e5-2-studies/study-07",
    "kekborn-e5-2-studies/study-08",
    "kekborn-e5-2-studies/study-09",
    "kekborn-e5-2-studies/study-10",
    "kekborn-e5-2-studies/study-11",
    "kekborn-e5-2-studies/study-12"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "kekborn-e5-3-package"
    ],
    "afterMinutes": 480
  },
  "finish": false
}
