{
  "notes": "Episode 1 starts from an empty trunk, with 0 of 50 items used, five episodes total and no child budget, results or requester amendments listed. Build one deployable contract on the goal trunk. The two middle targets can work independently after the Intake binding lands. The last target checks the integrated behavior. A passing target does not constitute independent security sign-off.\n\nNext episode, inspect the merged commit, target results and any stuck targets. Commission an independent contract security review on that exact revision. Record the reviewed commit, reviewer independence, severity, affected code, impact and disposition. Fix every high and medium, add regression coverage and have independent review confirm closure on the release revision. Record checks that need a live deployment in the README and continue. Never require a paid live rehearsal.\n\nRelease path once reviewed: use the network's available workflow.open from the merged trunk, source trunk, onchain evm_contracts, chainId 1, deployments 1, ipfs true, for the contract and dependent frontend. The initial state lists no bought children. Check the next goal state for door availability. If release is unavailable, preserve the reviewed trunk and report the exact release blocker. Deployment belongs to the network. Never buy or submit a rebuild during testing, deployment, verification or frontend setup. The requester runs round one.\n\nFrontend brief for the release: build changeme.imd.site only after the deployment handoff, against its actual mainnet address, ABI and deployment block. Use the spare typography and layout of fivewords.imd.site with #BFE3FF replacing yellow. Let the built page fill the viewport under a small, visually distinct changeme bar and a chat drawer. Keep the first screen useful on mobile. Offer a welcoming empty canvas before round one, a wish input with a character count, live IMD quote, send-now and batch controls, batch progress, status and a link to each minted CHANGE receipt. Show the wishes behind the selected version and a simple version switcher. Make eligible retry and skip actions available after one day. Only the trusted bar connects wallets and requests signatures, with exact user approvals. Historical versions must use their own immutable CIDs. Resolve the live CID from the ENS contenthash of made-by-chat.identitymd.eth via public HTTPS RPC. Frame only https://imd-ipfs.xyz/ipfs/{CID}/ with a sandbox that omits allow-same-origin, wallet bridges, forms, popups and top navigation. Render wishes as text. Each generated page excludes wallet connections, signing prompts and key/password forms. No paid order from the site on startup.\n\nCheck the child workflow's terminal status, deployment receipt, live contract address and published site before reporting delivery. Confirm read-only that the bar targets that address and that the empty first-round experience works. Cite the actual release and review results. Distinguish checks that await the requester's first round.",
  "spawn": [
    {
      "name": "changeme-contract",
      "mode": "code",
      "targets": {
        "attempts": 3
      },
      "brief": "Build {{piece}} for changeme on the goal trunk. {{assignment}} {{acceptance}}\n\nWork only in your target scope. The only production deployment is the changeme ERC-721 on Ethereum mainnet. All transaction tests use local doubles and run offline. Leave mainnet transactions and paid orders to the designated release and the requester respectively. Return the changed paths, the interface the next target consumes, the checks run and their outcomes, and any concrete unresolved issue.",
      "items": [
        {
          "key": "intake-binding",
          "vars": {
            "piece": "the mainnet Intake binding and its offline test fixture",
            "assignment": "Initialize a minimal root Foundry project. From publicly verified contract sources or official protocol artifacts, establish the deployed Intake 0xa43e6F75ee006411F79Ac1C84120606C2330DE82 and IMD 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7 integration. Cover the live price read, exact approval and pull, request submission, callback caller and wire format, request-to-job ID mapping, terminal states and how to identify the project's newest job for continuation. Include the supported source of per-version publication identity and how it relates to the ENS contenthash of made-by-chat.identitymd.eth. Keep the Solidity surface minimal, reusable internally, and free of any second deployment.",
            "acceptance": "Supply an offline Intake/IMD double matching the verified signatures and test the encodings and payment path. Put interface evidence, source links, and any facts observable only after deployment in docs/intake.md. Accept the requester's tested job payloads, iframe behavior and 200,000 callback gas budget as given. No paid probe."
          },
          "scope": [
            "foundry.toml",
            ".gitignore",
            "src/protocol/**",
            "test/doubles/**",
            "test/IntakeBinding.t.sol",
            "docs/intake.md"
          ],
          "needs": [],
          "check": "forge test --offline --match-path test/IntakeBinding.t.sol"
        },
        {
          "key": "wish-orders",
          "vars": {
            "piece": "the fixed rebuild request encoder",
            "assignment": "Implement internal Solidity helpers that encode the tested first order as job.open with {\"skill\":\"build-website\",\"objective\":\"...\",\"ipfs\":\"made-by-chat\"}, and later orders as job.continue with \"ipfs\":true and \"parentJobId\" equal to the project’s newest job. Use the landed protocol binding for wire types. Bound each wish to 1–140 bytes, require meaningful content, and allow only lowercase ASCII letters, digits, spaces and explicitly listed basic punctuation. Keep operation, publication target, parent, skill and safety constraints outside user control. Encode wishes as delimited and escaped data within a fixed creative brief. That brief gives the swarm a playful visual design task, treats wishes solely as suggestions for page content, and excludes wallet connections, signing prompts and key/password forms from every generated page.",
            "acceptance": "Test the exact first and continuation payloads, multiple wishes, invalid characters, escaping and length boundaries. Document the helper interface and bounds for the round controller."
          },
          "scope": [
            "src/orders/**",
            "test/WishOrders.t.sol"
          ],
          "needs": [
            "intake-binding"
          ],
          "check": "forge test --offline --match-path test/WishOrders.t.sol"
        },
        {
          "key": "change-nft",
          "vars": {
            "piece": "the ERC-721 contribution receipt",
            "assignment": "Implement a standard, transferable ERC-721 named changeme with symbol CHANGE as an abstract base used by the single deployed contract. Provide an internal receipt mint tied to the contributor, their original wish and round. Let holders read a compact keepsake reflecting the wish even after transfer. No public free mint, supply cap, royalties, owner role, pause, fee or upgrade path. Include required ERC-721 and metadata queries, approvals, transfers and safe receiver behavior. Use an offline-compatible, tested implementation with any necessary library sources kept in scope.",
            "acceptance": "Test a concrete harness locally for interface support, minting, transfers, approvals and original attribution."
          },
          "scope": [
            "src/receipt/**",
            "test/ChangeReceipt.t.sol"
          ],
          "needs": [
            "intake-binding"
          ],
          "check": "forge test --offline --match-path test/ChangeReceipt.t.sol"
        },
        {
          "key": "round-controller",
          "vars": {
            "piece": "the contribution and rebuild lifecycle in src/Changeme.sol",
            "assignment": "Integrate the landed protocol, order and receipt modules into one immutable ownerless Ethereum contract, the ERC-721 itself. The contract places its own rebuild requests. Pull IMD only from the contributing caller. A full live quote sends a wish now when idle. Batch entries start at 0.1 IMD and the threshold-crossing payment dispatches at the current quote. Show deterministic treatment of concurrent sends, changed prices and surplus. Protect the payer's stated maximum and account for every unit. Allowance to Intake equals exactly the purchase and clears after spending. Mint one receipt per accepted contribution. Keep funds for future batches separate from spent attempts. Serialize project builds so continuations name the newest job.",
            "acceptance": "Authenticate callbacks, match the active attempt, and keep callback work bounded under 200,000 gas. Provide permissionless retry or skip at one day for failed or silent attempts, with explicit retry funding and no duplicate charge to contributors. A stale result cannot change the selected version. Preserve the last good build while waiting or recovering. Provide an immutable history linking round, wishes, NFT IDs, attempts, jobs and published content; if CID resolution is separate, bind it verifiably to the corresponding version. Never archive a mutable latest pointer as historical content. Bound payload growth and avoid an unserviceable batch. Write core success-path offline tests and a README describing the public ABI, price/batch/recovery rules, archive reads and post-deployment checks. No ERC-20 deployment, pool, proxy or privileged override. Keep deployment free of orders."
          },
          "scope": [
            "src/Changeme.sol",
            "test/Changeme.t.sol",
            "README.md"
          ],
          "needs": [
            "intake-binding",
            "wish-orders",
            "change-nft"
          ],
          "check": "forge test --offline --match-path test/Changeme.t.sol"
        },
        {
          "key": "lifecycle-tests",
          "vars": {
            "piece": "the integrated offline Foundry regression suite",
            "assignment": "Exercise the merged contract through its public interface and the verified Intake/IMD fixture. Cover first instant build, minimum batch and exact threshold crossing, live price changes, surplus and allowance cleanup, one NFT per accepted wish, newest-job continuation, and durable links between two historical versions and their respective messages. Check callbacks with a 200,000 gas stipend, caller and attempt matching, duplicate/delayed reports, late success after skip, failed and silent rounds at one day minus one second and exactly one day, independently funded retry, preservation of the last published site, and the next round after recovery.",
            "acceptance": "Use fuzz or stateful invariants for IMD accounting and receipt uniqueness. Exercise chain 1 behavior locally. Record the tested revision, coverage, test commands, pass/fail counts and remaining contract defects in the result. A failing expectation belongs in the result with its observed and expected behavior."
          },
          "scope": [
            "test/lifecycle/**"
          ],
          "needs": [
            "round-controller"
          ],
          "check": "forge test --offline --match-path 'test/lifecycle/*.t.sol'"
        }
      ],
      "output": {
        "format": "markdown",
        "maxBytes": 9000
      }
    }
  ],
  "read": [
    "changeme-contract/intake-binding",
    "changeme-contract/wish-orders",
    "changeme-contract/change-nft",
    "changeme-contract/round-controller",
    "changeme-contract/lifecycle-tests"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "changeme-contract"
    ],
    "afterMinutes": 1440
  },
  "finish": false
}
