{
  "notes": "EPISODE 2: CONTINUE the actual PEPE RUN project. Do not rebuild. State: import merged at 6b08ee0eb30dd055faa189e243810913fa3e1680 in https://github.com/identity-md-launches/goal-3513-continue-complete-existing-pepe.git. All 3 import and 5 review items accepted. All eight input hashes verified. Prior notes claiming core was queued are wrong: spawn core was refused because import still ran/merged; core does not exist, so its reads/wake were also refused. Nothing is currently running/pending; cancel=[].\n\nDECISION: one CODE TARGET batch complete-e2, 26 components, attempts=3, with explicit needs and executable checks. One wave only; the previous goal used targets too. The DAG orders rules/contracts, backend, services, browser/media, composition, then reviews. Review targets change only reports/PoCs, never production source. A review check validates evidence and reproductions: exit0 does NOT mean release approval; report.json verdict is authoritative evidence to assess. Require another reviewer for declared authorship conflicts. Target board can split a genuinely oversized component within scope. Starting used8 + planned26 =34/50, leaving16 items for target splits, repairs and independent retests. Three ordinary episodes remain after this one. wake is complete-e2 settled or1440 minutes, not a request to sleep here. No asks (max0), mandates/actions or new child orders.\n\nBASELINE: import/config reports87 Node passes; import/contracts44 offline passes+1skip and a real-IMD fork at26511406 covering sink purchases, score,8 IMD payout and Royal expiry. Worker reports are not independent audit or live Sepolia. Sink authorization already landed. Old audits address6083f1b5db4c14344351876ca9d2d057b768ad85, not current patches.\n\nAUDIT PRIORITIES: colluding signers/arbitrary winners, admission key reused for score, withholding/equivocation, recovered32-bit seed, rewritable DB input evidence, plaintext seeds/tokens, crash/reconnect/finality losses, DoS, unbounded persistence, schema/replay/state validation. Web collision/art mismatch, viewport unfairness, Classic-only rendering, worlds/animation/audio/CSP/accessibility. All original findings remain in triage; bot play is demonstrated, not hypothetical.\n\nSECURITY CHOICES: version full256-bit PRF rules with matching JS/Solidity vectors; retain movement/collision geometry and economic rules. Separate immutable admission/score/replay roles; independent live witnessed input chain, sign-once digest records and replay from initial state. Conservative finality/readiness gates, encrypted seed custody, authenticated bounded transport, monotonic runtime and durable canonical indexer/outbox. Preserve direct highest-score full-pot payouts, lower-entry-ID ties, Sunday20:00 UTC close, existing cutoff windows,20 permanent skins, Royal nonstacking extra life/weekly expiry; no new token/NFT/admin veto/withdrawal or silent refunds/tie changes. A score bound and separate roles DO NOT solve all-signer collusion, bot winners or selective withholding. Keep those honest release blockers pending independent security evidence and requester/counsel decisions; do not add a discretionary challenge administrator that can choose winners. Paid play stays closed server-side and UI-side without actual security, infrastructure, legal/eligibility and rights evidence. Owner-only settings null, no invented integrations or signer addresses. Free practice must remain functional.\n\nREUSE DISCOVERY (public task sources checked2026-11-28): https://api.imd.fun/goals/e11da06c-d65f-41cc-9d25-ef3934ce5a75/children lists all7 prior offchain children. Previous episode006 notes/report were stale about pending site/SFX. Each /jobs/<id>/result plus GitHub tree at its returned commit was read. Completed reusable deliveries:\nlogo b46d4b32-f528-477c-865b-9df7fd7a1b48 -> identity-md-launches/launch-3503-deliver-one-production-pepe @66548953dc1c1c3469826ecbfe225acf0a6105cc;\nbackgrounds 8d432742-6d5b-4b4b-a977-e3b66fe324a3 -> launch-3506-deliver-one-production-parallax-world @a3f782e55ce88e390dbecf70fda55f819b0e6121;\nmusic 04ee3159-9e64-4d01-bf0c-0cb280e0d7a1 -> launch-3507-deliver-one-original-production @95e58fe7d05acd08f47986e6b64f19c7050fc73d (source+vendored encoder, export still needs reproduction);\nSFX f88fabdf-6cf5-4bb2-92ce-384132477c04 -> launch-3509-create-sound-effects-asset-pepe @edb0971dd449c8ddebdc08aeebdb4b5f5f260d0f;\nwebsite 9b0e19e1-070e-4cbb-9958-1d394c25efb7 -> launch-3510-build-publish-pepe-run @5930cdb4bbcfe4f0df50da439d01818785e42cfc.\nAll repositories are https://github.com/identity-md-launches/<name>. Website job has site:null: source delivery does not establish peperun.imd.site publication. Reuse its source UI while replacing obsolete burn/no-liquidity copy and preserving current rules. Child completion does not establish asset quality/licences.\n\nBLOCKED PRIOR MEDIA: characters16ded40b-e21e-4b37-aeba-3049166e43dd and obstacles3eff63b4-ac65-42a0-af2c-1e96d2124a99 each report state blocked, no delivered commit, blockedReason 'node create_image: runtime_error' from public /jobs/<id>. Their editable packs are imported. Scoped targets repair those sources; never mark the blocked children completed. All6 packs have recovery/reuse/check targets.\n\nCOST/CHILD ACCOUNTING: current children.budget bought2 onchain+7 offchain, used0, current child list empty. Unlike episode1's inference, budget exists. open=[] deliberately: four completed media jobs and the website source are reused; two runtime-failed packs repaired from existing source instead of paying for duplicate jobs. Current six media units stay unused unless a demonstrated gap justifies a disclosed additional order. Reserve one offchain unit for incremental free-site publication after integrated build/audits; first check whether the prior website publication can be reused through an available existing job path. No child-resume door is described. If a new job.open build-website is necessary, disclose that it consumes one currently prepaid site unit and updates existing code, pin exact integrated source commit and require actual peperun.imd.site validation. Do not open workflow.open just to publish free play: it would also deploy gated contracts. Both onchain units remain unspent deliberately. Prepare source/ABI/bytecode/wallet-signed paths now; actual real-address Sepolia rehearsal must precede mainnet. Never invent deployment inputs or create a replacement token.\n\nMARKET: review/imd-market is source-flagged. Its historical v4 hookless ETH/IMD lead is not approved live pricing; swap target must independently verify official ABI/deployments, pool key, current quote and capped router simulation/fork. \n\nNEXT EPISODE: read all26 results/target board. If still active, do not spawn a second wave; inspect stuck targets and respect existing dependencies. Once settled, prioritize minimal fixes from independent reviews with fresh retests of changed surfaces; do not merely mark findings accepted. Preserve enough16-item reserve for repairs. Verify source hashes, pack licences, actual browser/touch/audio evidence and distinguish physical devices from emulation. Complete publication through a supported child only from tested integrated source, then verify live content. Real signer operators, hosting/domain access, custody/RPC/eligibility services, legal/IP approvals and live Sepolia remain unprovided until evidenced; docs must say exactly what is missing, and nothing fabricated. Do not mark finish=true merely because tests/reports exist; goal remains incomplete.",
  "spawn": [
    {
      "name": "complete-e2",
      "mode": "code",
      "targets": {
        "attempts": 3
      },
      "brief": "Continue PEPE RUN from this goal's imported trunk (6b08ee0eb30dd055faa189e243810913fa3e1680); extend its existing modules. One item implements only the component below, within scope, after its needs land. Preserve 1/5/10 IMD prices, 50% jackpot/25% sink/25% developer (0x83027AD9d0D5374335086c539dADD1db983441B0); sink 0x000000000000000000000000000000000000dEaD removes circulation with totalSupply unchanged; Sunday weeks, full-pot highest-score payout, lower-entry-ID ties, rollover, 20 permanent skins and one weekly Royal revive. No NFT, new token, admin payout veto or withdrawal. Paid operations remain unavailable without real approvals and services. No invented data or addresses. Keep root configuration unchanged; required dependencies must be scoped ordinary files usable offline, no submodules. Keep delivered assets compact, total under 8 MiB. Build and run the named check; do not convert a failed check to a pass. Result must identify changed files, interfaces, test commands/outcomes, audit findings fixed or still open, and exact missing inputs. {{work}} {{details}}",
      "items": [
        {
          "key": "rules",
          "scope": [
            "game/**",
            "backend/protocol/**",
            "src/RunVerifier.sol",
            "test/RunVerifier.t.sol",
            "docs/protocol.md",
            "docs/verification.md"
          ],
          "needs": [],
          "check": "node game/check.mjs",
          "vars": {
            "work": "Component: versioned deterministic rules/protocol repair. Backend F1 recovers the current 32-bit mulberry seed from eight visible obstacles. Replace paid-course randomness with a synchronous keyed PRF over the full 256-bit derivation mix using the existing vetted hash library. Preserve movement, obstacle geometry, Royal behavior and cosmetic IDs; bump rulesVersion/hash and seed-derivation version consistently in engine, JS protocol and RunVerifier, with regenerated fixtures and JS/Solidity vectors. Retain explicitly versioned old fixture verification; no silent reinterpretation. Define migration and seed representation for downstream consumers. Fix game E-03..06: canonical bounded replay decoding, strict checkpoint field/range checks and bounded replay from initial state. Align schemas with {seq,action,clientTick}, runtime start response, max16 events/2048 bytes and length limits.",
            "details": "Publish the live-witness interface: assigned tick/sequence and canonical input hash chain, witness ACK before client ACK, terminal root and one immutable score digest per session. Separate admission, score-authority and replay-verifier role adapters; never combine both score signing authorities in one service. Add game/check.mjs for determinism, canonicalization, entropy non-truncation, malicious state rejection and matching Solidity vectors. Result includes compatibility exports, new rulesHash and migration evidence."
          }
        },
        {
          "key": "ledger",
          "scope": [
            "src/RunArcade.sol",
            "src/arcade/**",
            "test/arcade/**",
            "docs/arcade.md"
          ],
          "needs": [
            "rules"
          ],
          "check": "node test/arcade/check.mjs",
          "vars": {
            "work": "Component: finish RunArcade security hardening against the landed rules. The sink transfer and exact deltas already landed; retain them, mainnet token pin and unchanged totalSupply assertions. Fix contract F-09 by an immutable SCORE_AUTHORITY distinct from ADMISSION_AUTHORITY and REPLAY_VERIFIER; require distinct valid nondeveloper signer addresses. Bind accepted rules to the deployed rules hash. Add a score ceiling computed from the actual runtime tick cap and engine maximum speed, with reproducible derivation, rather than accepting uint256.max. F-01 remains a collusion risk even with that ceiling; explicitly document it. Preserve full direct winner payment, settlement timing and all economic constants: no discretionary veto, challenge administrator, pull-payment redesign or tie change.",
            "details": "F-11: use sink terminology, document legacy Distributed.burned ABI name if kept, and track only arcade events. Cover F-00/04/05/06/07/12/15 with regression tests, role/domain separation, caller-dependent seed helper documentation, exact supply/delta tests, no-admin tests and stateful liability conservation. Maintain an explicit fork test that cannot report success when skipped. Add check.mjs invoking offline contract tests and report fork separately. Constructor, ABI and immutable assumptions must be documented for indexer, wallet and deploy targets; no deployment."
          }
        },
        {
          "key": "admission",
          "scope": [
            "backend/admission/**"
          ],
          "needs": [
            "rules"
          ],
          "check": "node backend/admission/check.mjs",
          "vars": {
            "work": "Component: harden the existing admission boundary. Fix backend F4/6/7/8/9/12/15: conservative finality-plus-play-time budget, stop issuing quotes when finalized head is stale/disputed, cap all quote expiries before epoch end; bounded challenge storage with expiry cleanup, global/per-client/per-wallet/per-challenge rate limits, nonce/challenge validation before curve recovery, bounded failed-signature attempts. Move insecure signDigestForTestOnly out of production exports into tests; use vetted vendored projective secp256k1 with licence if replacing recovery. Store seed ciphertext and key references through a real authenticated encryption/custody adapter, never plaintext seed columns; unavailable custody blocks paid quotes. Implement wallet-bound expiring sessions with hashed bearer tokens and SIWE domain/origin/nonce/chain/expiry checks.",
            "details": "Keep eligibility assessment and independent verification mandatory and fail closed without approved rights/legal/security policy. Document public adapter contracts for HTTP, indexer and runtime. Test forged/replayed challenges, TTL, cleanup, policy denial, boundary quotes and ciphertext/key mismatch; retain no real key material. API transport comes in another target."
          }
        },
        {
          "key": "store",
          "scope": [
            "backend/store/**"
          ],
          "needs": [
            "rules"
          ],
          "check": "node backend/store/check.mjs",
          "vars": {
            "work": "Component: durable database and evidence integrity. Continue SessionStore and migrations; fix F-04 duplicate attestations with an atomic unique session+signer-role score-digest reservation, allowing idempotent identical retries but rejecting equivocation under concurrent writers. Persist hash-chained inputs, independent witness receipts and terminal manifest/root from the protocol contract. Separate infrastructure recovery from the player's reconnect allowance, keep generation fencing, and never promote fabricated/orphaned purchases. Use minimal checkpoint idempotency receipts instead of duplicating full engine state; add bounded retention/archival APIs that preserve evidence needed for unsettled weeks. Provide consistent indexed reads for terminal runs, weekly rankings and attestations, without accepting client scores.",
            "details": "Migrations must preserve existing data or explicitly reject incompatible legacy paid sessions before admitting play; no silent reset. Add check.mjs covering migration/restart, sign-once race, corrupt evidence, reorg invalidation, recovery entitlement and checkpoint growth. Result gives schema/API compatibility and retention trade-offs."
          }
        },
        {
          "key": "runtime",
          "scope": [
            "backend/runtime/**"
          ],
          "needs": [
            "rules",
            "admission",
            "store"
          ],
          "check": "node backend/runtime/check.mjs",
          "vars": {
            "work": "Component: repair the server-authoritative runtime using landed protocol/store/admission. Fix F5/6/10/11/16: hashed expiring wallet-bound bearer tokens; no plaintext seed at rest; independent infrastructure recovery; caught timer/SQLite errors; monotonic tick timing; eviction of terminal in-memory sessions. Keep simulation advancing through a client disconnect, record it in evidence, and recover from durable inputs without granting extra Royal lives or moving the clock backward. Reject oversized/out-of-order/backdated inputs. Implement the protocol witness hook: persist tick-assigned hash chain, obtain independently durable ACK, then ACK client; halt paid admission on witness outage. Keep one seed from finalized entryBlock+2, exact rules and only visible obstacles in snapshots. Publish authenticated terminal replay/seed evidence and a terminal-session index, never live secrets.",
            "details": "Preserve weekly run cutoff and measured relay slack; do not silently qualify expired runs. Check crash-after-reconnect, witness disagreement/outage, stale generation, seed redaction, replay equality, timer faults and clock steps. Report real benchmark timings and unresolved bot/withholding risks."
          }
        },
        {
          "key": "indexer",
          "scope": [
            "services/indexer/**"
          ],
          "needs": [
            "ledger",
            "admission",
            "store"
          ],
          "check": "node services/indexer/check.mjs",
          "vars": {
            "work": "Component: implement the real Ethereum chain indexer and finality adapter. Derive ABI/events from landed RunArcade/RunVerifier, pin chain1 IMD, and require configured deployed addresses rather than guesses. Use JSON-RPC reads at a finalized block, with two independent configured providers agreeing on block hashes before seed release or purchase eligibility. Persist log cursor, block hashes and idempotency keys; bound pagination, resume on restart, roll back/rebuild affected projections on canonical mismatch and markReorg. Decode EntryPurchased/AdmissionConsumed plus skin/Royal, Distributed, score and settlement events; register finalized purchases and consumed admissions. resolveEntry must recheck entryOf at the same canonical block and return actual wallet, nonce, epoch, Royal, rulesHash and seed commitment. Expose read models to projections without inventing zero balances for outages.",
            "details": "Include JSON-RPC client, ABIs, migrations, check.mjs and tests for duplicate logs, reorgs, missed pages, wrong chain, RPC disagreement and restart. Document interface and operator-supplied endpoint/address settings."
          }
        },
        {
          "key": "verifier",
          "scope": [
            "services/verifier/**"
          ],
          "needs": [
            "runtime",
            "indexer"
          ],
          "check": "node services/verifier/check.mjs",
          "vars": {
            "work": "Component: independent replay verifier and live witness service. It must collect and durably ACK its own ordered input stream, enforce real-time tick/sequence bounds, and compare its terminal root with runtime evidence; never trust only a runtime database export. Re-fetch canonical entry and finalized seed-block evidence independently, verify commitment/rules, reconstruct from createRun and canonical inputs, compare distance, Royal use, checkpoints and replay hash, and reserve exactly one digest per session before signing. Provide executable role-separated verifier/score-authority entry points with one signing adapter each; verify returned signer addresses and signatures. Neither service holds or invokes the other's signing authority. Expose public terminal evidence/digest and withheld/incomplete status without live secrets.",
            "details": "Implement real transport adapters for configured endpoints and authenticated peer identity; absent providers return unavailable. check.mjs tests forged distance/seed, modified checkpoint, missing witness chain, accelerated inputs, duplicate conflicting signatures and reorgs, plus valid end-to-end evidence. Quantify a maximum-length replay duration. State honestly that valid bots and colluding signers are not eliminated."
          }
        },
        {
          "key": "api",
          "scope": [
            "services/api/**"
          ],
          "needs": [
            "runtime",
            "indexer",
            "verifier"
          ],
          "check": "node services/api/check.mjs",
          "vars": {
            "work": "Component: HTTP/WebSocket API around the existing admission and paid runtime. Implement SIWE challenge/login/logout, admission quotes, start/input/snapshot/disconnect/reconnect/finish/result and authenticated verifier/witness routes. Browser sessions are expiring, wallet-bound and protected by origin/CSRF rules; tokens never appear in URLs or logs. Validate schemas before work, cap input bodies at2048 bytes and16 events, enforce global/per-client/request rate limits before signature recovery, limit connections/backpressure and clean up on disconnect. Map typed failures without leaking seed/custody data. Use actual runtime/indexer/verifier methods with acknowledgement ordering intact. Keep free play/readiness available when paid dependencies or approvals are missing, expose structured disabled reasons, and deny paid actions server-side.",
            "details": "Provide a real Node HTTP server and standards-compliant WS transport with any dependency vendored, plus injectable handler tests. check.mjs covers unauthorized/wrong wallet, origin attacks, rate limits, huge frames, bad JSON, reconnect, witness failure and paid-gate bypass. Document routes and response contracts for wallet and composition."
          }
        },
        {
          "key": "settlement",
          "scope": [
            "services/settlement/**"
          ],
          "needs": [
            "verifier",
            "indexer"
          ],
          "check": "node services/settlement/check.mjs",
          "vars": {
            "work": "Component: permissionless score relay and automated weekly settlement. Implement a durable transaction outbox and real JSON-RPC transaction/receipt adapter using an explicitly supplied external signer. Revalidate canonical finalized entry, terminal witnessed evidence, both independent signatures, eligibility, deadlines, chain and contract before queueing submitScore. Any party may relay a valid score; queue all eligible runs without discretionary winner selection. Handle nonce/replacement/receipt/reorg/restart idempotently and record censored/late/unsubmitted runs publicly. Call settle sequentially only after the contract's deadline; simulate calls first and verify emitted winner/pot/rollover against contract state. No key or wallet fallback, fake receipts, admin withdrawals or automatic mainnet broadcast in checks.",
            "details": "Use shortened simulated clocks for tests of close boundaries, zero-score winner, no-winner rollover, retries, outage and recovery. check.mjs must test the real encode/decode/outbox path. Result includes operating procedure, exact signer/funding requirements and measured deadline margin."
          }
        },
        {
          "key": "projections",
          "scope": [
            "services/projections/**",
            "shared/achievements/**"
          ],
          "needs": [
            "store",
            "indexer",
            "verifier",
            "api"
          ],
          "check": "node services/projections/check.mjs",
          "vars": {
            "work": "Component: query/read models for leaderboards, jackpot, Hall of Fame, profiles and achievements. Use canonical indexed contract events and verified terminal evidence; distinguish pending/finalized, practice/paid and Royal labels. Preserve highest metres then lower entryId tie ordering, return paginated weekly rankings, full-pot winner/rollover history, current pot/UTC boundaries, skin ownership and arcade-only sink contribution summed from Distributed events. Never substitute global sink balance or synthetic winners. Add pure idempotent achievement rules for actual run events with no token/skin/life grants; practice awards stay local and labelled. Provide public read handlers mounted through the API contract, bounded queries and explicit unavailable/stale states.",
            "details": "check.mjs covers reorg removal, duplicated events, tied and zero scores, week boundaries, Royal expiry, permanent inventory and achievement idempotency. Report the schema and endpoints consumed by the browser."
          }
        },
        {
          "key": "wallet",
          "scope": [
            "web/js/chain/**"
          ],
          "needs": [
            "ledger",
            "api"
          ],
          "check": "node web/js/chain/check.mjs",
          "vars": {
            "work": "Component: browser wallet/contract/API client. Implement EIP-6963 provider selection for MetaMask/Rabby, user-initiated connect, chain1 validation/switch, account/chain changes and disconnect. Read ABI, immutable values, token identity/decimals, actual balance/allowance and finalized inventory from configured contract; refuse missing deployment, code/hash/role/rules mismatch or failed readiness. Implement SIWE login, typed admission validation, exact 1/5/10 IMD approvals and purchase simulation, explicit wallet confirmations, receipt status/replacement/revert and finalized-entry polling. Do not auto-prompt, approve unlimited allowances or accept client-supplied success. Implement real paid runtime session/input/snapshot client with reconnect and witness ACK semantics, distinct from practice state. No transaction path while the server's security/infrastructure/legal gates are closed.",
            "details": "check.mjs tests provider spoofing surface, account change mid-purchase, wrong chain/domain/nonce/price, rejected signatures, absent configuration and successful fixture lifecycle through the same encoding code. Document exports for app integration."
          }
        },
        {
          "key": "swap",
          "scope": [
            "web/js/swap/**",
            "docs/swap.md"
          ],
          "needs": [
            "wallet"
          ],
          "check": "node web/js/swap/check.mjs",
          "vars": {
            "work": "Component: usable, verified ETH-to-IMD swap client. The review/imd-market report is source-flagged: treat its hookless Uniswap v4 native-ETH/IMD candidate (LP fee10000, spacing200) as a lead only. Independently obtain current official deployments and ABI/source from developers.uniswap.org/deployments.json and Uniswap v4-periphery/Universal Router repositories; prove pool key/ID, token address and live code/state via chain1 RPC. Mainnet IMD is pinned in RunArcade. Implement exact-output quote, wallet/recipient validation, maximum ETH/slippage/deadline, simulate the complete router call, wallet-confirmed submission and unused-ETH refund; never present a static historical price as live. Reject stale quote, chain/account changes, unknown hooks/targets, missing simulation or output mismatch. Avoid bridge scope.",
            "details": "Gate transactions behind explicit readiness and eligibility policy; missing access shows unavailable, no invented amounts. check.mjs runs offline ABI/math/guard tests; also execute a mainnet-fork swap and state/balance assertions where RPC is available and distinguish unavailable from pass. docs/swap.md records verified sources, block/hash, route and residual risks."
          }
        },
        {
          "key": "renderer",
          "scope": [
            "web/js/render.mjs",
            "web/js/audio.mjs",
            "web/js/session.mjs",
            "web/js/controls.mjs",
            "web/js/perf.mjs",
            "web/tests/render/**"
          ],
          "needs": [
            "rules",
            "characters",
            "obstacles",
            "backgrounds",
            "sfx"
          ],
          "check": "node web/tests/render/check.mjs",
          "vars": {
            "work": "Component: repair rendering/audio against the current engine and imported media metadata. Keep physics authoritative. Fix web F-01..09: obstacle art fills each engine rectangle (especially overhead bottom30px), crop solid bounds, character anchor(32,60), choose actual skin row, Royal is an overlay/status without a new owned skin; metadata timings/bob and vyQ8 pose; animated obstacle frames. If an existing frame cannot match geometry, record the exact asset correction for the media handoff rather than shrinking collision boxes. Fix logical look-ahead to800px ahead on every aspect ratio with letterboxing/scaling, including portrait; render metadata worlds at0/400/1000m and retain final world, scroll ratios and horizon alignment. Map every emitted event to available cues with audible death then best, landing/revive/menu hooks, user-gesture audio unlock/mute and reduced-motion support.",
            "details": "Accept snapshots from paid runtime as well as practice without exposing paid seeds. check.mjs asserts transforms/visual bounds, viewport parity, pose/frame timing, worlds and cue coverage. Result names media expectations for later replacements."
          }
        },
        {
          "key": "web",
          "scope": [
            "web/index.html",
            "web/css/**",
            "web/js/main.mjs",
            "web/js/storage.mjs",
            "web/js/app/**",
            "web/tests/app/**",
            "web/tests/practice.test.mjs",
            "web/README.md"
          ],
          "needs": [
            "renderer",
            "wallet",
            "swap",
            "projections",
            "logo",
            "backgrounds",
            "music",
            "sfx"
          ],
          "check": "node web/tests/app/check.mjs",
          "vars": {
            "work": "Component: complete the existing browser application. Reuse previous paid website job source at https://github.com/identity-md-launches/launch-3510-build-publish-pepe-run commit5930cdb4bbcfe4f0df50da439d01818785e42cfc, particularly gallery/profile/share/achievement UI; adapt into this trunk's web paths without copying its package configuration or reverting landed rules. Preserve black/lime/gold design and free play. Wire actual wallet/API/renderer modules to shop20 permanent skins, Royal one-life weekly expiry/nonretroactivity, inventory, paid run, local practice ranking, verified rankings, jackpot/countdown, Hall of Fame, achievements, profile/share and swap. Missing connections show not connected, no fabricated figures. Keep paid gates enforced in both UI and service.",
            "details": "Update obsolete burn/swap-unavailable copy with truthful live status and '25% leaves circulation; totalSupply unchanged'; disclose bots, signers, finality/deadlines and Royal advantage. Fix contrast, stored-record validation, reduced motion, accessible live status and explicit allowlisted CSP compatible with built paths. check.mjs verifies wiring, no auto-wallet prompt, tampered storage, free play without configuration and disabled gated controls. This target does not publish."
          }
        },
        {
          "key": "logo",
          "scope": [
            "media/logo/**"
          ],
          "needs": [],
          "check": "node media/logo/check.mjs",
          "vars": {
            "work": "Component: reuse and finish the completed logo pack, not a new commission. Prior job b46d4b32-f528-477c-865b-9df7fd7a1b48 delivered https://github.com/identity-md-launches/launch-3503-deliver-one-production-pepe commit66548953dc1c1c3469826ecbfe225acf0a6105cc. Inspect deliverables/manifest.json and PNG/SVG, reuse the actual editable logo under existing media/logo paths, retain provenance and compare hashes. Add favicon16/32/ICO, apple-touch/manifest icons and social card using that artwork; preserve visual identity and keep the pack below512KiB. Port the existing generator/check into dependency-complete scoped files; do not copy large concept intermediates. check.mjs validates dimensions, alpha, SVG safety, hashes, paths and offline regeneration. Record what reused assets cost in prior work and what was added here; a completion record is not proof of branding rights.",
            "details": "Document actual licence text/evidence or unresolved rights explicitly."
          }
        },
        {
          "key": "backgrounds",
          "scope": [
            "media/backgrounds/**"
          ],
          "needs": [],
          "check": "node media/backgrounds/check.mjs",
          "vars": {
            "work": "Component: reuse and finish the completed background pack. Prior job8d432742-6d5b-4b4b-a977-e3b66fe324a3 delivered https://github.com/identity-md-launches/launch-3506-deliver-one-production-parallax-world commita3f782e55ce88e390dbecf70fda55f819b0e6121. Reuse its artifacts/backgrounds.png/json, editable source and build/check scripts in media/backgrounds with original-path compatibility; verify actual files/hashes. Preserve Lily Marsh0m, Neon Rooftops400m, Ruined Observatory1000m, final-world retention, ratios0.12/0.38/0.72 and horizonY104. Complete coherent ground/foreground strips and transitions without changing engine geometry, document metadata and keep pixel alignment/tiling. Omit concept images and duplicate renders; target under700KiB. check.mjs validates all seams/alpha/rectangles, horizon, threshold selection and offline regeneration.",
            "details": "Include provenance, reuse/change inventory and actual or unresolved licence evidence."
          }
        },
        {
          "key": "music",
          "scope": [
            "media/music/**"
          ],
          "needs": [],
          "check": "node media/music/check.mjs",
          "vars": {
            "work": "Component: reuse and finish the completed music pack. Prior job04ee3159-9e64-4d01-bf0c-0cb280e0d7a1 delivered https://github.com/identity-md-launches/launch-3507-deliver-one-original-production commit95e58fe7d05acd08f47986e6b64f19c7050fc73d. It contains src/music/run-score.mjs/check-loop.mjs and an already vendored encoder, not proof of an exported audio file. Reuse this composition/source, reproduce and verify the run loop, and supply compact menu, game-over, jackpot cues and per-world variations derived from it. Preserve existing run.ogg path, add a manifest of durations/loops/levels and editable source. Resolve current missing decoder/encoder dependencies as scoped vendored ordinary files with licences; choose compact exports so the entire music pack including dependencies is at most2.5MiB.",
            "details": "check.mjs must run offline, measure actual decoded audio/loop joins/clipping and verify generation consistency. Record listening checks actually performed; never claim a hearing test from metadata. Preserve provenance and unresolved asset-rights status."
          }
        },
        {
          "key": "sfx",
          "scope": [
            "media/sfx/**"
          ],
          "needs": [],
          "check": "node media/sfx/check.mjs",
          "vars": {
            "work": "Component: reuse and finish the completed sound-effects pack. Prior jobf88fabdf-6cf5-4bb2-92ce-384132477c04 delivered https://github.com/identity-md-launches/launch-3509-create-sound-effects-asset-pepe commitedb0971dd449c8ddebdc08aeebdb4b5f5f260d0f. Reuse media/sfx/cues.wav,cues.json,synthesize.py and provenance, verifying content. Retain the original seven cue names, add start,best,pause,resume,countdown,UI click,purchase/unlock,Royal purchase,jackpot/settlement cues required by the app, with compact sprite metadata. Fix ESM/CommonJS runner incompatibility, ship offline reproducible source and real exports, and keep pack under600KiB. check.mjs validates cue boundaries/durations, silent guards, nonclipping levels, channel/sample format and all advertised cues.",
            "details": "Record listening evidence separately from waveform checks and licence status without claiming third-party rights."
          }
        },
        {
          "key": "deployment",
          "scope": [
            "script/**",
            "deployments/**",
            "docs/deployment.md"
          ],
          "needs": [
            "ledger"
          ],
          "check": "node script/check.mjs",
          "vars": {
            "work": "Component: prepare both existing contracts for reproducible deployment, without deploying. Export compiled ABI/creation/runtime bytecode, immutable constructor schema, compiler settings, source hashes and wallet-signed deployment/verification commands for RunVerifier then RunArcade. Include chain1 and11155111 configuration with unavailable operator addresses/endpoints/test-token address as null, never stand-in keys/addresses. Mainnet token must be the pinned IMD. Generate the current rules hash from actual source. Validate distinct independently operated signer roles and contract source/bytecode before proceeding. Sepolia rehearsal must precede production; use a real requester-designated existing Sepolia test ERC20, no new production token or silently substituted address.",
            "details": "Provide a scripted full purchase/score/settle/rollover rehearsal and mainnet-fork test with explicit skipped/error status, actual receipts when supplied, and no broadcast by default. script/check.mjs tests schema/guard/encoding and verifies generated artifacts match build. docs/deployment.md lists exactly which inputs/evidence are absent and how operators use their own wallets. Neither live Sepolia nor mainnet success may be claimed from a fork."
          }
        },
        {
          "key": "integration",
          "scope": [
            "services/main/**",
            "tools/**",
            "test/integration/**",
            "docs/integration/**"
          ],
          "needs": [
            "api",
            "settlement",
            "projections",
            "web",
            "deployment"
          ],
          "check": "node test/integration/check.mjs",
          "vars": {
            "work": "Component: runnable composition and complete offline build of the landed modules. Wire real admission/store/runtime/indexer/API/projection/relay adapters with separately launched independent verifier/score-authority services; no single process may acquire both scoring authorities. Expose one documented startup and shutdown path, health/readiness gates and public nonsecret configuration. Guest/free play must work with owner-only settings null; paid paths must fail closed. Integrate landed web, media, shared/protocol hashing dependencies and any assets into tools/build-site.mjs by explicit public dependency closure; never expose private database/custody state. Correct CSP/base paths, serving/security headers and startup commands without editing root configuration.",
            "details": "Add check.mjs for actual module integration, bounded queues, migrations/restart, witness ACK and two independent services, a complete signed fixture purchase-to-settlement lifecycle, Royal expiry/skin persistence and every missing-gate denial. Also exercise the chain transaction lifecycle on a mainnet fork where available and state that separately. Ensure aggregate checks cannot recursively invoke themselves. Test both source and final built-site resource graph, size under8MiB, no missing assets or network dependency at build. No live signing or publication."
          }
        },
        {
          "key": "operations",
          "scope": [
            "docs/operations/**",
            "docs/audit/triage/**",
            "README.md"
          ],
          "needs": [
            "integration"
          ],
          "check": "node docs/operations/check.mjs",
          "vars": {
            "work": "Component: operational handoff and auditable release-gate ledger. Document startup/build/test/restore, SQLite single-writer backup drill, capacity limits/alerts, finalized RPC disagreement, independent witness/signing operations and key-loss response, permissionless keeper funding/latency, incident/reorg recovery and evidence retention. Require named separate signer operators, actual public addresses, hosting/domain control, RPC providers, custody/signing services, eligibility provider, operator/markets, age/location/sanctions policy, terms/privacy hashes, IP/asset licences and legal approvals. Supply machine-readable readiness entries with evidence refs and null/unapproved where absent; do not fabricate identities or legal clearance.",
            "details": "Track every audit ID from contract F-00..15, backend F1..16 and game/web F-01..15/E-02..07, fixed/tested versus residual, including collusion, bot-winning, withholding, cutoff losses and immutable payout legal limits. Preserve direct payout/ties; no discretionary veto. Include current+previous job reuse/cost ledger, four completed reused packs/site source, two blocked packs recovered from existing source and publication/deployment prerequisites. List notices for sink totalSupply unchanged, Royal timing, non-IMD funds and bridged-token trust. check.mjs validates completeness/links and that absent evidence cannot enable paid release; no checkbox alone is approval."
          }
        },
        {
          "key": "contract-review",
          "scope": [
            "docs/audit/contracts/**",
            "test/audit-contracts/**"
          ],
          "needs": [
            "integration",
            "operations"
          ],
          "check": "node docs/audit/contracts/check.mjs",
          "vars": {
            "work": "Component: fresh independent audit of the final landed RunVerifier and RunArcade. Audit exact commit/source hashes and constructor/ABI against preserved economics, sink accounting, signature/domain/role separation, seed/rules binding, score bounds, single-use nonces, Royal persistence/expiry, UTC cutoffs/ties/rollovers, permissionless direct settlement, liabilities, reentrancy and absence of admin/withdrawal/backdoor. Reproduce original F-00..15 on current code, including arbitrary-winner collusion and signature withholding; a score ceiling or role split is not proof those are solved. Write actionable findings, severity, reproducible tests and release verdict, citing actual runs and token/fork block evidence; do not infer mainnet safety from fixtures. Run offline suites plus real-IMD fork purchases/score/settlement where available; explicitly distinguish skips.",
            "details": "Write report.json/report.md with status per finding, reviewer independence/any authorship conflict, evidence and untested areas. check.mjs validates report/evidence and runs committed offline PoCs; it may exit0 for a well-evidenced FAIL verdict and must never translate that into release PASS. Do not modify production source; later work fixes findings."
          }
        },
        {
          "key": "system-review",
          "scope": [
            "docs/audit/system/**",
            "test/audit-system/**"
          ],
          "needs": [
            "integration",
            "operations"
          ],
          "check": "node docs/audit/system/check.mjs",
          "vars": {
            "work": "Component: independent adversarial audit of the entire integrated paid pipeline and gates, pinned to actual source hashes. Trace wallet admission/payment to finality/seed/runtime/live independent witness/replay signatures/indexed ranking/relay/payout. Try DB input rewrite, fabricated or omitted terminal runs, copied witness receipts, accelerated/bot inputs, token theft, nonce/signature replay, two-role compromise, seed grinding/foresight, malformed input/DoS, schema drift, crash/reconnect, reorg, cutoff starvation and frontend/API gate bypass. Review cross-service authentication/custody, vendored dependencies, RPC assumptions and score fairness. Demonstrate that valid automated play and colluding score signers remain risks if so; never certify their elimination through replay or heuristics.",
            "details": "Document exact integration failures, minimal fixes and an honest security/infrastructure/legal eligibility gate matrix with evidence. Include proof scripts/tests and report.json/report.md; actual external-service/physical-device/Sepolia absence is NOT TESTED. Record reviewer authorship conflicts. check.mjs validates report and offline reproductions; report verdict remains independent of that command's exit status. Do not change production code."
          }
        },
        {
          "key": "browser-review",
          "scope": [
            "docs/audit/browser/**",
            "test/browser-review/**"
          ],
          "needs": [
            "integration",
            "operations"
          ],
          "check": "node docs/audit/browser/check.mjs",
          "vars": {
            "work": "Component: independent integrated browser/gameplay and publication-readiness test. Use actual built site in real browser engines with keyboard and touch at desktop and portrait/landscape phone sizes. Play start/jump/duck/collision/restart, PB reload, each skin/Royal display, viewport fairness, 0/400/1000m transitions, obstacle/character animation and collision overlays, audio gesture/mute/death/best/landing/revive, accessibility/CSP, wallet reject/change, shop/leaderboard/jackpot/swap unavailable and configured fixture flows. Capture concise screenshots and measured frame times/console/request failures; distinguish emulated viewports from physical iOS/Android and actual listening. Physical device checks are required for the goal: if unavailable, list the exact remaining test without inventing results.",
            "details": "Check https://peperun.imd.site/ and whether its deployed content matches this source; a completed prior website job alone proves no publication. Deliver report.json/report.md, reproducible scripts and bounded evidence, not browser binaries. Record reviewer independence. check.mjs validates the report/evidence structure; NOT TESTED/FAIL is preserved and cannot count as release approval. Do not change app source or publish."
          }
        },
        {
          "key": "characters",
          "scope": [
            "media/characters/**"
          ],
          "needs": [
            "rules"
          ],
          "check": "node media/characters/check.mjs",
          "vars": {
            "work": "Component: recover and finish the existing animated character pack from its imported editable source. Previous purchased child16ded40b-e21e-4b37-aeba-3049166e43dd is blocked with node create_image: runtime_error and no delivered commit; use the real media/characters generator already on this trunk. Preserve Classic0 and permanent skin IDs1..20, shared movement/collision geometry and anchor(32,60); Royal row21 is a cosmetic display state with one nonstacking game-life advantage, not a new token/owned permanent skin. Keep compatible original frame IDs, add hit/death/revive animation and shop thumbnails/owned-locked treatments with separate effect sheets if necessary. Re-rig visible bodies to engine32px width and44/24px stand/duck boxes without changing physics; make all skins equal. Deliver actual compact PNG atlases, frame metadata, editable generator and previews, under650KiB.",
            "details": "check.mjs must verify all frames/alpha/anchors/timings, identical physics geometry, decoded visible collision alignment and offline regeneration. Record recovery of the previous purchase, no new image order, provenance and unresolved rights; never mark the blocked child itself completed."
          }
        },
        {
          "key": "obstacles",
          "scope": [
            "media/obstacles/**"
          ],
          "needs": [
            "rules"
          ],
          "check": "node media/obstacles/check.mjs",
          "vars": {
            "work": "Component: recover and finish the existing obstacle pack from its imported editable generator. Previous purchased child3eff63b4-ac65-42a0-af2c-1e96d2124a99 is blocked with node create_image: runtime_error and no delivered commit. Extend media/obstacles source into four actual engine kinds with animated per-world variants: ground_small24x30, ground_tall22x46, ground_wide56x28, overhead64x120 with bottom30px. Confirm exact dimensions from landed engine; do not alter physics. Use compatible metadata plus explicit source rectangles, solid bounds, anchors and frame timing so art fills the collision silhouette, especially overhead safe-gap boundary. Preserve useful original artwork and edit generator; do not repeat a failed external image dependency. Deliver compact PNG/JSON/editable source/preview under400KiB.",
            "details": "check.mjs must decode pixels and test every frame's visual bounds, transparency, animation and regeneration against engine geometry. Include reuse/provenance/rights status and the child's actual blocked state. The renderer consumes these outputs through its declared dependency."
          }
        }
      ],
      "output": {
        "format": "markdown",
        "maxBytes": 16000
      }
    }
  ],
  "read": [
    "complete-e2/rules",
    "complete-e2/ledger",
    "complete-e2/admission",
    "complete-e2/store",
    "complete-e2/runtime",
    "complete-e2/indexer",
    "complete-e2/verifier",
    "complete-e2/api",
    "complete-e2/settlement",
    "complete-e2/projections",
    "complete-e2/wallet",
    "complete-e2/swap",
    "complete-e2/renderer",
    "complete-e2/web",
    "complete-e2/logo",
    "complete-e2/backgrounds",
    "complete-e2/music",
    "complete-e2/sfx",
    "complete-e2/deployment",
    "complete-e2/integration",
    "complete-e2/operations",
    "complete-e2/contract-review",
    "complete-e2/system-review",
    "complete-e2/browser-review",
    "complete-e2/characters",
    "complete-e2/obstacles"
  ],
  "cancel": [],
  "open": [],
  "wake": {
    "batches": [
      "complete-e2"
    ],
    "afterMinutes": 1440
  },
  "finish": false
}
