{
  "notes": "Episode 1 started with 50 items available, no prior results and no deployment record. Request one combined launch and site through test-staking-release. The token name and ticker are both lowercase test. Interpret the points rule as one point per second shared among active stakers in proportion to their balances during that second. Users can withdraw at any time and keep earned points. The accounting-vectors item supplies independent expected values for checking the implementation. In episode 2 inspect the child state and any returned job, launch and site records. If it is running, let it settle. If the order was refused, use the stated reason to correct it under a fresh key. If the child door is unavailable, start a scoped code wave for the token, staking contract and site, reserve a wave for integration tests, and identify the available deployment and hosting handoff. If one stage has already shipped, reuse its deployment for the remaining stages. Before finishing, verify successful Sepolia deployment transactions, code at both addresses, the token metadata, the staking contract's token binding, and a reachable published site configured for that same chain and pair. Use the independent cases to check the contracts. Record the addresses, transaction links and working site URL, and identify any outstanding stage.",
  "open": [
    {
      "key": "test-staking-release",
      "action": "workflow.open",
      "body": {
        "request": "Launch an ERC-20 on Ethereum Sepolia with name test and ticker test, both exactly lowercase. Deploy a staking contract for that token. Award one non-transferable point per elapsed second across the pool, split by each user's share during that interval. Support partial and full withdrawals at any time and retain earned points. Independently review the contracts before deployment. Then publish a staking website built against the confirmed deployment so users can connect, approve, stake, withdraw and read their points.",
        "draft": {
          "objective": "Launch the standard fixed-supply ERC-20 named test with symbol test on Ethereum Sepolia (11155111). Deploy LaunchToken first and bind TestStaking immutably to that token. Let each user deposit test and withdraw their own principal at any time. During a nonempty interval, a user's earned points increase by elapsed seconds times their deposited balance divided by total deposited. Empty intervals earn zero. Use a precise cumulative index and settle balances before each change. Preserve non-transferable points through partial exits, full exits and restaking. Test token metadata, custody and rounding across changing shares, then obtain an independent security review before deployment. Publish a mobile-friendly staking website using the confirmed addresses and ABIs from the deployment handoff. Show wallet balance, deposit, pool share and earned points. Support connecting a wallet, switching to Sepolia, approving the entered amount, staking and withdrawing. Show transaction status and refresh after confirmation. Deliver both contract addresses, deployment transaction references and the published site URL.",
          "shape": "chain",
          "onchain": "evm_project",
          "chainId": 11155111,
          "pairWith": "eth",
          "contracts": ["LaunchToken", "TestStaking"],
          "ipfs": true,
          "steps": [
            { "skill": "build-contract-project" },
            { "skill": "write-foundry-tests" },
            { "skill": "adversarial-review" },
            { "skill": "frontend-for-contract" }
          ]
        }
      }
    }
  ],
  "spawn": [
    {
      "name": "accounting-vectors",
      "mode": "research",
      "minutes": 20,
      "brief": "Calculate one deterministic acceptance fixture for the Sepolia test staking contract. One point per second is split by the active deposited token balances, and an empty pool earns zero. Withdrawals preserve earned points. Start with an empty pool at second 0. At second 10 Alice stakes 30 test. At 20 Bob stakes 10. At 32 Alice withdraws 20. At 42 Bob withdraws all 10. At 52 Alice withdraws her remaining 10. At 60 Bob restakes 5 and at the same timestamp Alice stakes 10. Read the final state at 61. Write one JSON object with units, a checkpoints array in event order (including both events at 60), and a conservation check. For each checkpoint give its timestamp, action, both post-action stakes, total staked and both cumulative point balances. Express points exactly as fraction strings or whole-number strings. In the conservation check give total occupied seconds, the exact sum of final points and how to compare fractional results to a fixed-point implementation with documented rounding. This is an independent arithmetic fixture computed from these events.",
      "items": [
        { "key": "two-stakers", "vars": {} }
      ],
      "output": { "format": "json", "maxBytes": 8000 }
    }
  ],
  "read": ["accounting-vectors/two-stakers"],
  "cancel": [],
  "wake": { "batches": ["accounting-vectors"], "afterMinutes": 720 },
  "finish": false
}
