{
  "notes": "Episode 1 began with 50 item slots, ten workers, no trunk, results, orders or requester notes. No children or purchased deployment/site/media budget appears in goal.json. Build durable source on the trunk and check actual release capabilities at the next wake. The foundation wave has ten disjoint pieces and the research batches have three items, leaving 37 slots if accepted. No mainnet transaction or publication is part of this episode.\n\nThe shared interfaces are game/engine.mjs at 60 fixed ticks per second, a static practice client in web/, a transactional SQLite session store, six editable media packs under media/, and the EIP-712 RunVerifier contract. Wallet skin IDs are Classic 0, permanent 1–20, Royal 21. Proposed competition rule: Royal is labeled and ranks in the same paid competition, with one automatic revive per paid session, distance preserved. Its entitlement and the session both end at the Sunday boundary. Practice ranks separately and needs no wallet.\n\nEpisode 2: inspect the merged commit, six actual media packs and tests. Repair failed items before integration. Read all three research results. Use the verified unit scale and burn semantics for RunArcade, the second and only other deployable contract. Chain 1 IMD 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7, developer 0x83027AD9d0D5374335086c539dADD1db983441B0. One transaction charges exactly 1/5/10 IMD with immutable 50/25/25 distribution for every purchase, rolls back on failure, and emits auditable events. Confirm balance and destruction deltas. Keep sales closed if any prerequisite is unverified. Implement non-transferable permanent inventory, week-specific Royal, single-use entries, admission on every paid entry point and an independent two-signature score path bound to the real ledger. Constrain role provisioning and prevent changes to funded rounds, arbitrary winner selection and administrative withdrawals. No new token or NFT.\n\nDefine seven-day UTC epochs as [Sunday 20:00, next Sunday 20:00). Publish a paid-entry cutoff before close and accept verified scores on chain strictly before close. Show the remaining window before charging. Highest integer meters wins. For equal distances the lower immutable on-chain entry ID wins. Freeze eligibility at purchase, protect disconnects against lost acknowledgments and seed rerolls. Permissionless, idempotently retried settlement pays the entire closed pot directly to the winner. If there is no verified finisher, roll the entire balance forward exactly once, including after several missed settlements. New weeks open by time. Add an automated caller, event indexing with confirmation/reorg recovery, gas and accounting invariants, Sunday edge cases and direct-call eligibility tests.\n\nIn parallel build the authoritative fixed-tick service, fair per-entry seed commitment/future entropy, bounded input timing and bot detection, an independently operated replay verifier and protected wallet-bound admission. Sign only validated replay outcomes. Integrate RPC, database, remote services and wallet UI through documented production settings. The client needs EIP-6963 MetaMask/Rabby, chain switch, IMD balance, exact allowance, confirmations, jackpot/countdown, separate practice/paid ranks, labeled Royal, shop, inventory, Hall of Fame, profiles, achievements, shareable scores, burn tracker, verified swap and FAQ. Keep unavailable live data explicit. Document service hosting, restore, monitoring and payout automation. Paid mode requires evidence of jurisdiction/age eligibility, rights, independent security review and working services. Reserve later waves for integrated tests, independent audits, fixes/retest and release evidence. If a release door becomes available after the contracts merge, use one workflow.open from trunk with deployments=2, evm_contracts on chain 1 and its frontend for peperun.imd.site. Supply the six asset references and actual backend handoff. Verify deployed bytecode, explorer source, live API and public site before claiming delivery. Record unresolved release authority or hosting in the final report.",
  "spawn": [
    {
      "name": "foundation",
      "mode": "code",
      "minutes": 85,
      "brief": "{{assignment}} {{details}} Land the named files within this item's scope. In the result identify the entry point or asset path, the check exercised, its measured result and any verification that needs the merged tree. Each parallel item starts from the initial checkout.",
      "items": [
        {
          "key": "physics",
          "vars": {
            "assignment": "Build game/engine.mjs, the deterministic PEPE RUN simulation used by practice, the authoritative server and independent replay. Also establish a dependency-free root package.json for Node 22.13+ ESM with a test command. Export createRun(seed,royal=false) and stepRun(state,buttons), where seed is uint32, buttons is a held-input mask (1 jump, 2 duck), and one call returns the next state at exactly 60 ticks/sec. State exposes tick, distanceMm, speedMmPerSec, heightPx (feet above ground), ducking, alive, livesLeft, and obstacles [{id,kind,xPx,widthPx,bottomPx,heightPx}] with x relative to the player's leading edge.",
            "details": "Use integer simulation, a specified seeded generator, jump edges, duck transitions, increasing bounded speed and generated sequences with a reachable path and a readable reaction window. Use ground and overhead obstacle kinds. Classic and skins 1–20 share collision geometry. Royal automatically survives the first lethal contact, keeps distance and consumes the life once. Deliver headless replay fixtures, generated-sequence reachability checks across speeds and many seeds, and tests for scoring, identical replay, hitboxes and two Royal collisions. Document units, serialization, rules version and exact input order for other implementations."
          },
          "scope": [
            "game/**",
            "package.json"
          ]
        },
        {
          "key": "practice",
          "vars": {
            "assignment": "Build the playable free-practice view for PEPE RUN. Deliver web/index.html, mobile-first CSS, browser modules and tests for controls and HUD state. Use the headline PEPE RUN and the slogan RUN. SURVIVE. WIN. Put Play practice and the playfield on the first phone screen. Black, neon green and gold pixel arcade. Import ../game/engine.mjs and call createRun(seed,royal=false) to start. stepRun(state,buttons) returns the next state per 60 Hz tick. Mask 1 jumps and 2 ducks. Render tick, distanceMm in meters, speedMmPerSec in m/s, heightPx (feet), ducking, alive and obstacles with {id,kind,xPx,widthPx,bottomPx,heightPx} relative to the runner's front foot.",
            "details": "Implement responsive canvas interpolation, keyboard/touch controls, death score, local personal best, practice ranking, one-tap replay and opt-in audio. Pause practice fairly on visibility loss. Integrate ../media/characters/characters.png (64px cells, Classic in row 0, 4 run, 2 duck, rise, fall), ../media/obstacles/obstacles.png (64px rows ground/overhead), ../media/backgrounds/backgrounds.png (320x128 cells, world rows, far/mid/near columns), ../media/logo/logo.png, ../media/music/run.ogg and ../media/sfx/cues.wav with cues.json mapping names to [startMs,endMs]. Build the source with working practice controls and accessible states, reserving paid actions for later integration. Document how to serve the merged tree, measure frames and exercise touch and desktop play."
          },
          "scope": [
            "web/**"
          ]
        },
        {
          "key": "score-verifier",
          "vars": {
            "assignment": "Implement RunVerifier, the first of two Ethereum mainnet contracts, as a stateless signature verifier used by the future RunArcade ledger. Establish a root offline Foundry build with Solidity 0.8.26, optimizer 200, Cancun and metadata disabled. Use EIP-712 with chain id and the calling ledger as domain verifyingContract. Define separate typed messages for purchase admission and verified score. Bind admission to wallet, action/SKU, epoch, nonce and expiry. Bind score to wallet, session ID, epoch, integer distance in meters, Royal flag, seed commitment, rules hash, replay hash and expiry.",
            "details": "Require valid signatures from distinct configured authority and independent replay verifier for scores. Reject zero roles, malleable/noncanonical signatures, wrong domain and role confusion. The ledger supplies trusted role addresses and consumes nonces/sessions. Make this trust boundary explicit. Deliver deployment-ready source, ABI-level method and type descriptions, digest vectors and meaningful offline Foundry tests (including fuzz, wrong chain/ledger, swapped signatures and modified fields). The verifier moves no funds and selects no winners. Keep dependencies local."
          },
          "scope": [
            "foundry.toml",
            "src/RunVerifier.sol",
            "test/RunVerifier.t.sol",
            "docs/verification.md"
          ]
        },
        {
          "key": "session-store",
          "vars": {
            "assignment": "Build the durable session store for a server-authoritative paid runner under backend/store using Node 22.13+ node:sqlite. Deliver migrations, a documented module API and restart/concurrency tests using temporary databases. Persist chain-1 confirmed purchase identifiers (block hash, transaction and log index), wallet, paid session/epoch, Royal snapshot, seed commitment, rules version, acknowledged tick and input sequence, ordered inputs, terminal state, replay digest and independent attestation status.",
            "details": "Enforce unique use per entry and transactional state transitions. Reconnect to the same run within one bounded grace window with monotonic input order and no rewind. Duplicate deliveries and retries must be idempotent. Define finality/reorg handling, separation of practice data and retention of evidence for disputed outcomes. Demonstrate restart, two concurrent claims, duplicate inputs and disconnect expiry. This module will be called by the authoritative service in wave two."
          },
          "scope": [
            "backend/store/**"
          ]
        },
        {
          "key": "logo",
          "vars": {
            "assignment": "Make the PEPE RUN logo pack. Deliver media/logo/logo.png as an original square opaque 512px PNG icon, a legible running green frog silhouette turned to the right with a gold speed accent on ink black. Use an expressive face that reads at 32px in a circle.",
            "details": "Provide editable drawing source, a small-size readability check and provenance in this folder. Match the game palette of near-black, leaf green, neon lime and warm gold."
          },
          "scope": [
            "media/logo/**"
          ]
        },
        {
          "key": "characters",
          "vars": {
            "assignment": "Make one production character atlas for PEPE RUN. Deliver media/characters/characters.png with transparent 64x64 cells, 8 columns and 22 rows, aligned at the same foot anchor. Columns are four run phases, two duck phases, jump rise, jump fall. Row 0 Classic green Pepe, rows 1–4 Ninja, Cyber, Illuminati, Dragon, rows 5–20 sixteen individually named and visibly distinct permanent skins, row 21 Royal with gold crown and cape. Faces read from the side, all facing right. Share silhouette scale and contact poses, animate legs, arms and fabric, and keep cosmetic extensions visually clear of collision cues. Use ink shadows, green/lime and restrained gold for the arcade.",
            "details": "Deliver original editable source and atlas JSON with names, IDs, rectangles, timing, anchor, license/provenance and a check proving all frames exist and animate. The canvas client indexes rows by these IDs."
          },
          "scope": [
            "media/characters/**"
          ]
        },
        {
          "key": "obstacles",
          "vars": {
            "assignment": "Make one obstacle atlas that signals jump versus duck in PEPE RUN. Deliver media/obstacles/obstacles.png with transparent 64x64 cells, four animation columns and two rows (ground, overhead). Use a ground hazard with a solid jumpable outline and a hovering low gate with a clearly visible underside and safe gap beneath. Animate accents while keeping the collision silhouette stable and contrasting against black, green and gold worlds.",
            "details": "Deliver editable original source and atlas JSON listing the solid artwork bounds, anchors and frame durations so the renderer can align them to simulation rectangles. Check cells and transparent margins and document provenance."
          },
          "scope": [
            "media/obstacles/**"
          ]
        },
        {
          "key": "backgrounds",
          "vars": {
            "assignment": "Make one seamless parallax background atlas for PEPE RUN. Deliver media/backgrounds/backgrounds.png, a 3x3 atlas of 320x128 cells. Rows progress from lily marsh to neon rooftops to a gold-lit ruined observatory, columns are far opaque sky, mid transparent skyline and near transparent scenery. Horizontally looping pixel art, consistent ground horizon and strong value separation behind the runner and hazards.",
            "details": "Deliver editable original source, the JSON cell map with scroll ratios and suggested distance transitions, and a seam/alpha check. Include provenance."
          },
          "scope": [
            "media/backgrounds/**"
          ]
        },
        {
          "key": "music",
          "vars": {
            "assignment": "Compose the original looping PEPE RUN music asset. Deliver media/music/run.ogg, a 32–60 second stereo Ogg Vorbis chiptune with a driving pulse, a memorable short melody and a clean return to the downbeat. Leave headroom around gameplay cues.",
            "details": "Supply editable score/synthesis source, tempo and exact loop duration. Measure decode duration, peaks and the loop join. Include the findings and provenance in this folder."
          },
          "scope": [
            "media/music/**"
          ]
        },
        {
          "key": "sound-effects",
          "vars": {
            "assignment": "Synthesize one PEPE RUN sound-effects sprite. Deliver media/sfx/cues.wav as PCM WAV and cues.json as a map from cue name to [startMs,endMs] with exclusive ends. Include jump, duck, landing, milestone, revive, death and menu. Use short distinct attacks with fades, headroom and quiet guard intervals for independent playback.",
            "details": "Deliver editable synthesis source, provenance and checks that all named slices decode, stay within duration, have audible content and avoid clipping. Make death and revive immediately distinguishable."
          },
          "scope": [
            "media/sfx/**"
          ]
        }
      ]
    },
    {
      "name": "imd-mechanics",
      "minutes": 40,
      "chain": {
        "chainId": 1,
        "pin": "head",
        "tokens": [
          "0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7"
        ]
      },
      "brief": "Determine whether the existing Ethereum IMD at 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7 can support PEPE RUN's exact atomic purchases. Use the supplied safe block/hash for read-only calls and the matching verified contract source, following any publicly disclosed proxy implementation. Identify decimals, transfer behavior, deductions/restrictions and the callable permanent burn mechanism available to a contract holding IMD. Distinguish actual supply destruction from a transfer to a sink. For prices 1, 5 and 10 IMD compute base units and exact 50% jackpot, 25% burn, 25% payout to 0x83027AD9d0D5374335086c539dADD1db983441B0. Give function signatures, expected balance and totalSupply deltas, and a reproducible block-pinned test for each. Cite the chain, block/hash, verified source and evidence for each conclusion. Return JSON with status (supported, blocked or unknown), evidence, decimals, burnMethod, priceSplits (decimal strings for amounts), restrictions and unresolved. Mark uncertainty if evidence is unavailable and identify what resolves it. This is evidence gathering only.",
      "items": [
        {
          "key": "burn-and-units"
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 12000
      }
    },
    {
      "name": "release-evidence",
      "minutes": 40,
      "brief": "{{question}} Deliver a concise Markdown evidence memo with a dated conclusion, first-party source URLs alongside each claim, the exact evidence still missing and the production decision it affects.",
      "items": [
        {
          "key": "swap-route",
          "vars": {
            "question": "Identify a verified user-facing swap route for chain 1 IMD 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7. Confirm token identity, official swap frontend, venue/pair and existence of usable mainnet liquidity from official publications and public on-chain state. Record checked block, token pair and reproducible read. Provide the token-specific HTTPS link and expected network only if verified. Explain the site's unavailable state when the route cannot be verified. Make no trade."
          }
        },
        {
          "key": "paid-eligibility",
          "vars": {
            "question": "Define the release criteria for a paid skill contest charging 1 IMD per attempt with a weekly pooled prize, 5 IMD permanent cosmetics and a 10 IMD weekly Royal extra life eligible in the same paid ranking. Operator and intended player jurisdictions are unspecified. Use regulator or statute sources to identify what a qualified reviewer needs to assess about consideration, skill/chance, the paid advantage, age and location, sanctions, consumer disclosures, promotion rules, privacy and rights to use Pepe branding. Distinguish jurisdiction-specific examples from unknowns. Return a launch-gate matrix with owner inputs, required sign-off and enforceable admission checks, including what practice can offer while approvals are outstanding. Do not infer clearance."
          }
        }
      ],
      "output": {
        "format": "markdown",
        "maxBytes": 12000
      }
    }
  ],
  "read": [
    "imd-mechanics/burn-and-units",
    "release-evidence/swap-route",
    "release-evidence/paid-eligibility"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "foundation",
      "imd-mechanics",
      "release-evidence"
    ],
    "afterMinutes": 110
  },
  "finish": false
}
