{
  "notes": "Episode 5 of 5, the last. Read goal.json, the orchestrator reference and the one handed result, ep02-integrate/release.\n\nState found: 7 of 50 items used, nothing running, effects.pending 0, no mandates. No child has ever opened: children.budget.opened is 0 for every door, and the pools stand at onchain 2 left of 2, offchain 1 left of 1. Episode 3's combined order, key test-staking-launch-site (workflow.open), was refused; children.list, refused and the handed effect.order wake all give the same reason: 'The checker is not sure the request wants publication or archival of source code or research reports, separate from public website hosting, which the plan includes. Say whether it does.' The earlier ep02-test-token (launch.open) was refused too. So as of this episode nothing of the goal is on Sepolia and no site is published. The trunk is unchanged at 423999f8ba694b2b9534fece6545207072e87b4b (wave 1 only); ep02-integrate stopped with 1 accepted (release) and 2 failed and was not merged.\n\nDecision: one open, key test-staking-launch-site-2, action workflow.open, body {request, draft}. It is the launch the requester's note of 2026-11-22T22:47Z asks for (one workflow: the token named test with ticker TEST and a staking contract for it in the same launch on chainId 11155111, then the dashboard website on the live contracts), mended only where it was refused. The request now says in a paragraph of its own that yes, it wants the source code of the contracts and of the website published to GitHub, that the built site is hosted on IPFS under an ENS name apart from that, and that no research report or other archive is asked for. Reason for answering yes: the documented workflow publishes the source to GitHub before it deploys (https://imd.fun/skill/workflows.md, stage 2), so the launch the requester asked for cannot happen without it; the requester did not write the words GitHub themselves, and the write-up should say the orchestrator answered the checker's question this way. The draft: shape chain, onchain evm_project, chainId 11155111, github true, ipfs true, contracts [TestToken, ShareStaking], steps build-contract-project, frontend-for-contract, adversarial-review, the first two with an objective and acceptance criteria. No owner, address, context or permissions field: the goal's door takes request and draft and fills the rest.\n\nChecked before writing, on 2026-11-22: the same request and draft, with permissions {github true, ipfs true, onchain {kind evm_project, chainId 11155111}} added as the public door needs them, went through the network's free POST https://api.imd.fun/requests/check: blockers [] and suggestions [], plan = build and test the contracts, audit them as another agent, deploy on Sepolia, build the site against the live contracts, host the site on IPFS with source on GitHub. A free quote of that body returned created true; it was not paid and lapses in ten minutes. Without permissions the public check answers deployment_permission_missing, which the goal's door did not raise last time, so it appears to fill them itself (an inference, not something the plane said). These were checks of the public door, not of the goal's door: they do not prove this order is admitted.\n\nLaunch terms the check states as fixed by the platform, not chosen by the requester (say so in the write-up): token supply 1,000,000,000 with 18 decimals, minted once; plain transfers with no fees, limits, pausing or minting; 10% to the swarm and 90% to the requester, of which 80% seeds the pool unless chosen otherwise and the rest goes to the paying wallet; pool paired with ETH opening at a 20 ETH market cap; trading fee 1.25% of every trade, 1% to the payer and 0.25% to the network; no upgrades. No economics were set in the order because the goal names none. Symbol: the objective wrote 'ticker test' and the requester's note 'ticker TEST'; the order follows the note, name test and symbol TEST.\n\nStaking rule ordered: ShareStaking bound by constructor to the launch token, no owner, admin, fee or lockup; stake, withdraw, token, totalStaked, stakedBalance, pointsOf; one point (10^18 units) for the whole pool per second in which anything is staked, split by stake over total stake; idle seconds earn nothing; points only grow and cannot be transferred; worked example A 100 at second 0, B 300 at 100, A out at 200, B out at 300 gives A 125 and B 175. Site ordered: static dashboard on the deployment record, read-only totals before connecting, then balance, allowance, stake, share and points, with approve, stake and withdraw awaiting receipts.\n\nNothing else decided: no spawn (the requester ruled out more items on rebuilding, and a checking batch has nothing live to read yet), no cancel. read asks for ep02-integrate/release again. wake names no batch, afterMinutes 1440, so a child.settled wake or a requester note starts what comes next. finish is false because nothing the goal asks for is live yet; the episodes are spent, so the plane writes the goal up from what has landed.\n\nFor the write-up, or an episode if one is given: read goal.json children for key test-staking-launch-site-2 first.\n(a) opened: follow its job and the workflow record on api.imd.fun (GET /workflows/<id>: status, contracts.repoUrl and commit, launch.id and status, handoff.manifest with the addresses, frontend, site.cid and ensName, validation.report; GET /jobs/<id>/result). Report each of the three deliverables by evidence: the token (name test, symbol TEST) with its address and deployment transaction; ShareStaking with its address and its token() binding; the site with its ENS name, IPFS cid and validation status. Say which checks were the workflow's own validation, and that no goal item re-read the chain independently unless one did. If it is still running, name its stage (contracts, deployment, frontend, publishing, validating; validation may retry for up to a day while hosting settles) and what evidence is still missing.\n(b) refused or failed: give the stated reason. Then the goal delivered no deployment and no site, only the trunk's source. With an episode in hand, mend only that reason under a new key (test-staking-launch-site-3); never reuse a key, and never open a second launch beside a live one.\n\nWhat exists either way, and must not be presented as the Sepolia launch or the published site: the trunk at 423999f in https://github.com/identity-md-launches/goal-3352-laucnh-token-sepolia-called.git, from sepolia-staking-app (4 of 4 accepted): src/TestToken.sol (fixed-supply ERC-20, lowercase name and symbol test, constructor-chosen supply minted to the deployer), src/ShareStaking.sol, site/ (static dashboard) and release/deploy.py. That prototype token differs from the one ordered (the platform's standard launch token, symbol TEST). ep02-integrate/release was accepted but its wave stopped, so it is not on the trunk, and its gate reads 'unverified'. It reports forge build pass, forge fmt --check pass and 19 Python tests passing against a disposable local anvil with chain id 11155111: token-first deployment, resuming from receipts, verify-only, and rejection of a wrong chain, missing, failed or mismatched receipts, wrong bytecode, wrong supply and a staking contract bound to another token. Its own stated limits: local anvil receipts are not Sepolia evidence; no live deployment, signing or RPC was done; the interactive confirmation was not tested. Its paths: release/deploy.py, release/README.md, test/release/test_deploy.py, on base commit 423999f.",
  "open": [
    {
      "key": "test-staking-launch-site-2",
      "action": "workflow.open",
      "body": {
        "request": "Launch on Sepolia (chainId 11155111) a token named test with the ticker TEST, and in the same launch a staking contract for that token, called ShareStaking, where stakers earn points by their share of the total stake and by how long they have staked. Then build and publish a website on those live contracts: a dashboard to approve, stake, withdraw and see points.\n\nPublication, stated plainly. Yes, this request wants the source code published: the Solidity project (contracts, tests and launch manifest) is to be published to a public GitHub repository before it is deployed, and the website's source code is to be published to GitHub too, as this workflow does for every release. Separately from that, the built website is to be hosted publicly on IPFS under an ENS name. So the request asks for all three: GitHub publication of the source code, IPFS hosting of the website, and deployment on Sepolia. No research report is asked for, and nothing else is to be published or archived.\n\nReview. Before anything is deployed, the contracts and their tests must pass an independent security review by reviewers who did not write them; deploy only what passes it.\n\nToken. The launch's standard token: name test, symbol TEST, 1,000,000,000 supply with 18 decimals and plain transfers, no fee, no later mint, no privileged address. Default launch terms and pairing with Sepolia ETH; no custom supply or split is asked for.\n\nShareStaking. Its only constructor argument is the launch token, fixed for good and readable as token(). No owner, no admin, no upgrade, no pause, no fee, no lockup and no minimum time: anyone may stake any positive amount they have approved and withdraw any part of their stake at any time, and the contract only ever moves the caller's own stake. Functions: stake(uint256 amount), withdraw(uint256 amount), token(), totalStaked(), stakedBalance(address), pointsOf(address); events Staked(account, amount) and Withdrawn(account, amount). Zero amounts and withdrawals above the caller's stake revert. Points: in every second in which the total stake is above zero the whole pool earns exactly one point, written with 18 decimals (10^18 units), divided among stakers by their stake over the total stake during that second. Seconds with nothing staked earn nothing for anyone. Points are a number kept by the contract, not a token: they only grow, cannot be transferred, spent or reset, stay after a withdrawal, and pointsOf includes what has accrued up to the current block. Use a cumulative points-per-staked-token index updated before every change of stake, carrying division remainders forward, so that the sum of all accounts' points never exceeds 10^18 times the occupied seconds and falls short of it only by rounding dust. Worked example the tests must reproduce: A stakes 100 at second 0, B stakes 300 at second 100, A withdraws all at second 200, B withdraws all at second 300; A ends with 125 points and B with 175, and both get their whole principal back. Tests also cover unequal shares, stake changes within one block, an idle gap, many accounts under fuzzing, the bound on the sum of points, reentrancy, and a staker's principal never being reachable by anyone else.\n\nWebsite. A static single-page dashboard on the deployed token and ShareStaking, reading their addresses from the deployment record and never from typed input. Before a wallet connects it shows the token name and symbol, both contract addresses with Sepolia explorer links, and the total staked. With an injected wallet connected, and switched to Sepolia if it is on another network, it shows the wallet's TEST balance, its allowance to ShareStaking, its stake, its share of the total as a percentage, and its points, refreshed as blocks arrive. Controls: approve exactly the amount entered, stake, withdraw, each waiting for its receipt and showing a failed or rejected transaction plainly. It checks that ShareStaking.token() is the deployed token before enabling any control, shows amounts in whole tokens from the 18 decimal units without losing precision, and states in one line how points are earned.",
        "draft": {
          "objective": "On Sepolia (chainId 11155111), in one launch: the standard launch token named test with symbol TEST, and ShareStaking, an ownerless staking contract bound to that token by its constructor, with no lockup and no fee, where the pool earns one point (10^18 units) per second in which anything is staked, split among stakers by stake over total stake, points only growing and not transferable (A 100 at second 0, B 300 at 100, A out at 200, B out at 300 gives A 125 and B 175). Build it as a Foundry project with a full test suite, publish its source code to GitHub, pass an independent security review before deployment, and deploy it. Then build the dashboard website against the live deployment, to approve, stake, withdraw and see balance, allowance, stake, share and points; publish its source code to GitHub and host it on IPFS.",
          "shape": "chain",
          "onchain": "evm_project",
          "chainId": 11155111,
          "github": true,
          "ipfs": true,
          "contracts": [
            "TestToken",
            "ShareStaking"
          ],
          "steps": [
            {
              "skill": "build-contract-project",
              "objective": "The Foundry project: the launch token named test with symbol TEST on the launch's standard terms, and ShareStaking as the request specifies it, with unit, fuzz and invariant tests.",
              "acceptanceCriteria": [
                "ShareStaking takes the launch token as its only constructor argument and has no owner, admin, upgrade, pause, fee or lockup",
                "A test reproduces the worked example: A 100 at second 0, B 300 at 100, A out at 200, B out at 300 gives A 125 points and B 175, with all principal returned",
                "An invariant test shows the sum of all accounts' points never exceeds 10^18 times the seconds in which total stake was above zero",
                "Seconds with nothing staked add no points to any account, and points never fall and cannot be transferred"
              ]
            },
            {
              "skill": "frontend-for-contract",
              "objective": "The dashboard on the live token and ShareStaking: approve, stake, withdraw, and the wallet's balance, allowance, stake, share and points, as the request specifies it.",
              "acceptanceCriteria": [
                "Contract addresses come from the deployment record only, and ShareStaking.token() is checked against the deployed token before any control is enabled",
                "Totals, token name and symbol and both addresses are shown before a wallet connects",
                "Approve, stake and withdraw each wait for their receipt and show a failed or rejected transaction"
              ]
            },
            {
              "skill": "adversarial-review"
            }
          ]
        }
      }
    }
  ],
  "read": [
    "ep02-integrate/release"
  ],
  "wake": {
    "afterMinutes": 1440
  },
  "finish": false
}
