{
  "notes": "Episode 1 began with 50 available items, five episodes, an empty trunk, no handed results and no purchased children. Four items establish the shared visual and technical references. The guide and two pilot PNGs use identical pixel landmarks so the next painters can overlay their work directly on the accepted moss bust. The fourth item supplies a portable raster core testable before the art library exists. All production runs locally on the goal trunk. Deploy, mint and spend nothing.\n\nEpisode 2 should read all four results and the merged files. Check registration at both eyes, aperture and shield positions, inspect the brushwork at 100% and thumbnail scale, and capture the actual raster API. Correct any failed foundation item. Split the remaining library by disjoint folders or filenames. Complete 6+ visibly distinct skins including two identified rares, 8+ eye sets and 10+ expressions including smug, paranoid side-eye, serene, scowl and dim grin. Give each costume ensemble its own item. Dress the scholar in robe and spectacles, the antiquary with monocle and scroll, the knight in plate armour, the artisan in workshop garb, the seer in a hood with an orb, and the councillor in a sash. Provide separate wearable and prop layers as needed. Allocate tier headwear and regalia, five dark backgrounds, banners, painted heraldic parts, and the remaining carved oak, silver, gilded gold and ornate jewelled gold frames, the last with a plaque. Give each item the merged guide and require actual registered RGBA PNGs. Plan fitting of eyewear, hoods, crowns and props around the face and banner. Keep untouched painting layers free of the final surface finish.\n\nIn the same production wave assign one worker the heraldry generator and matching parts. Select tinctures, division, ordinary and charge using labeled draws derived from the portrait seed. Use the same resolved shield on cloth and on the frame, preserving its colors and geometry at both sizes. Give its callable interface and asset names to the compositor worker in both briefs. Assign another worker the JSON-input rendering CLI, stable layer selection and tests against small fixtures. Freeze tier/category IDs and filenames across the briefs. Take wallet, tier, genetics, traits and artSeed. The seed is SHA-256 of the UTF-8 bytes of wallet immediately followed by artSeed, exactly as supplied. Map genetics and traits to eligible assets, apply tier and category rules, and record input, seed, ordered layer paths and heraldic choices in a JSON sidecar. Render backdrop, banner and arms, bust, facial features, attire and accessories, frame and its arms, then apply the shared finish once. Check independent processes produce byte-identical PNGs.\n\nEpisode 3 should integrate the merged library and CLI, check inventory, and render 12 numbered full-size samples with their adjacent JSON using explicit sample data. Assign one tier/category pair per portrait, each category twice, all five tiers and both rare skins represented. Episode 4 should inspect all 12 for visual quality, registration and coverage, rerender against their recorded inputs, and assemble the approval package. Include a side-by-side contact sheet of all 12 in sample order. Produce manifest.json last with sorted relative paths and SHA-256 of every delivered file except the manifest itself, whose own final bytes cannot be hashed inside it. Rehash independently after packaging. Use the fifth episode for final review and any needed repair. Keep the goal open until the merged files and checks support delivery for owner approval.",
  "spawn": [
    {
      "name": "portrait-foundation",
      "mode": "code",
      "brief": "Build {{piece}} for the Kekborn portrait collection in the goal trunk. {{assignment}}\n\nUse one 2048×2560 master grid with origin at top left, x right and y down. The frame opening spans (144,144) to (1904,2368), with the second corner exclusive. The frog faces the viewer's left in three-quarter view. Far eye centre (680,936), iris about 60 px wide. Near eye centre (1040,912), iris about 90 px wide. Crown seat (969,680), snout tip (422,1120), mouth corners (495,1190) and (1060,1220), throat (978,1536), shoulder peaks (365,1760) and (1575,1712). Reserve (1500,340) to (1740,628) for banner arms and (974,2404) to (1074,2524) for the same shield on the bottom rail.\n\nPaint a medieval court bust of an original frog noble with a broad wedge-shaped snout, asymmetrical eye turrets and a pleated throat. Keep Matt Furie's Pepe out of the design. Model volumes in soft upper-left light with visible oil strokes. Use umber #32251F, forest #253E32, moss #657044, oxblood #682F38, ochre #B48A47, gold leaf #C9A45A and warm bone #D7C7A3 as mixing anchors. The compositor adds the common varnish, fine craquelure and frame shadow once. Work locally with free tools. Deploy, mint and spend nothing.\n\nDeliver the actual files in the assigned scope. In the item result name the files, checks performed and observed results, plus any alignment or integration issue a later worker should inspect.",
      "items": [
        {
          "key": "style-guide",
          "vars": {
            "piece": "the illustrated style guide",
            "assignment": "Write style-guide.md and its linked, viewable template/bust.svg. Draw the head and shoulders, eye sockets, neck opening, shoulder slope and frame aperture on the registered grid. Overlay labeled alignment marks and clear space for both shields. Include the 4:5 crop, hex palette with material roles, original facial anatomy, directional brushwork, edge softness, cloth, metal and skin treatment, and paired do/don’t examples for pose, finish and silhouette. Describe the stack from the backdrop through the frame and shared finish. Illustrate or describe scholar robe and spectacles, antiquary monocle and scroll, knight’s plate, artisan garb, seer hood and orb, and council sash. Map Common to plain wood, Uncommon to carved oak, Rare to silver, Epic to gilded gold, and Legendary to ornate gold with gems and a plaque."
          },
          "scope": [
            "style-guide.md",
            "template/bust.svg"
          ]
        },
        {
          "key": "moss-skin",
          "vars": {
            "piece": "one reusable moss-green frog skin",
            "assignment": "Paint layers/skins/moss.png as a full-canvas straight-alpha RGBA8 PNG. This is the anatomical reference for all skins. Model the complete head, jaw, throat and shoulder bust in warm half-tones and cool shadow. Give the skin mottling, sparse granular ridges, directional strokes and a distinct silhouette readable at thumbnail size. Paint the eye surrounds and resting muzzle planes so separate iris, lid and mouth layers can dock on them. Keep irises, expressive lines, clothing, setting and frame on their own future layers. Leave the exterior transparent. Inspect the image over both light and dark grounds and report the measured alpha bounds and eye coordinates."
          },
          "scope": [
            "layers/skins/moss.png"
          ]
        },
        {
          "key": "wood-frame",
          "vars": {
            "piece": "the Common plain wood frame",
            "assignment": "Paint layers/frames/common.png as one registered straight-alpha RGBA8 PNG, opaque to the outer edges with a transparent opening. Use subdued oiled timber, a narrow bevel and visible mitred joints, wood grain and wear consistent with the portrait light. Leave a quiet field in the specified bottom-rail shield box for the compositor. Preserve the aperture for every tier. Inspect all four edges and verify alpha at the aperture centre and beneath the shield."
          },
          "scope": [
            "layers/frames/common.png"
          ]
        },
        {
          "key": "raster-core",
          "vars": {
            "piece": "the compositor’s offline raster core",
            "assignment": "In src/raster/ implement PNG decoding, ordered straight-alpha source-over compositing, one deterministic shared finishing pass (subtle warm varnish, seed-derived fine craquelure and a soft frame shadow just inside the aperture), and deterministic PNG encoding. Expose a synchronous Node CommonJS API from src/raster/index.cjs for the later selection and heraldry workers. Document the callable signatures and pixel representation in that source and in your result. Support placing a transparent image at a rectangle so one shield can be rendered at both scales. Stream or reuse layer buffers at master size. Use built-ins or bundle needed dependency source and licenses as ordinary files within src/raster/. With node --test test/raster/core.test.cjs verify transparency, overlap order, placement, finish repeatability and byte identity across two fresh processes using generated fixtures. This module accepts already selected layers and seed bytes."
          },
          "scope": [
            "src/raster/**",
            "test/raster/core.test.cjs"
          ]
        }
      ],
      "minutes": 60
    }
  ],
  "read": [
    "portrait-foundation/style-guide",
    "portrait-foundation/moss-skin",
    "portrait-foundation/wood-frame",
    "portrait-foundation/raster-core"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "portrait-foundation"
    ],
    "afterMinutes": 100
  },
  "finish": false
}
