{
  "notes": "EPISODE 3 STATE: changeme-core never spawned. The plane refused target spec at 8,171 characters once goal, brief, scope and check were filled (limit 8,000); its fifteen read requests and wake then referred to nonexistent work. Only changeme-build exists; it is cancelled, settled, and all ten board entries are stopped. Trunk remains 76e981b6179d4d3e97ff428d7eca3459d92227c6 at https://github.com/identity-md-launches/goal-3579-build-changeme-website-nobody.git. One accepted cards item is used, 49 of 50 items remain, and episodes 4 and 5 remain after this one. No results, requester notes or child jobs were handed over. The toolchain cure in episode 2 was only an experiment, not merged work.\n\nEVIDENCE: I read the pinned trunk's public ChangemeCards.sol and foundry.toml. Cards is abstract, pragma 0.8.28, with _mintCard(to,round,slot,message) and virtual roundCid(uint256); foundry.toml pins solc 0.8.28 and offline=true. The publisher's https://binaries.soliditylang.org/linux-amd64/list.json identifies solc-linux-amd64-v0.8.28+commit.7893614a with SHA256 9a0fb7e0db2c0641dbae1c5cc645dc686820c83af516226abb1c0a2f76636f25. This wave commits that compiler outside protected configuration and requires linux-x64, eliminating the original offline-compiler blocker for both workers and repeated checks. No new configuration or lib/ changes are requested.\n\nRELEASE PREFLIGHT: Both purchased pools are unused: one deployment and one website. The three budget.left doors are alternatives, not three purchases. I tested an unsubmitted workflow.open from words with the full goal, explicit evm_contracts/chainId 1, changeme site label and build/tests/frontend/adversarial-review steps at the public https://api.imd.fun/requests/check. It returned HTTP 200 but blockers, plan []. After making the uncapped ERC-721 name/symbol and initial zero supply explicit and trying the reference's three-step shape, the missing token facts disappeared but recheck_failed and requirement_uncovered remained for frontend, hosting, publication and audit. No order was submitted. Do not present these as passed checks or as a refused paid child. This is why I kept the purchase for a reviewed-trunk release instead of submitting a known-blocked words-only order. The public docs still list evm_contracts on mainnet and a trunk release is explicitly supported by the pinned goal reference; verify the actual door response next time.\n\nDECISION: One new target batch changeme-recovery-e3, 18 items, attempts 3, requires linux-x64. Small filled briefs rely on each worker's supplied goal instead of duplicating its 2,993 characters. No spec target is needed. All variable values stay below 1,000 characters and filled briefs are kept far below 3,000, with additional headroom for the full 8,000-character task envelope. No cancelled or nonexistent batch is named in cancel. Read only this new batch's 18 item results and wake after it settles (24-hour fallback). The new batch uses 18 of the 49 available items; 31 remain if all are reserved, subject to the next plane count.\n\nPIPELINE: toolchain first; Intake/mocks, body generation/validation, proof parser and ENS/CID modules; engine; four rule-test-and-fix targets; three independent audit reports in parallel; repair; independent recheck; follow-up repair; final independent review; gated release handoff. The four rule targets may repair src/** and are deliberately ordered so their scopes never race and a failing integration test can be repaired immediately rather than blocking downstream fixes. Audit targets accept honest reports with open findings, so discoveries reach remediation. No audit artifact check is a security pass. Repair targets cannot independently close their own findings. Re-review preserves original evidence and appends independent closure; final reports/ledger distinguish current status from historical findings. The release gate fails on open findings, missing body evidence, skipped/missing rule tests, missing independence or a sourceHash mismatch. Reports identify both the reviewed commit and deterministic source content hash so documentation-only commits do not imply an unreviewed code change. Original reviewer independence must be checked, not assumed from separate target names.\n\nIMPORTANT INVARIANTS: All original contract requirements remain binding. Do not propagate episode 2 choices if tests or reviewers show they alter the goal. Document price-change/rounding and timestamp semantics. An override retry parent is never stored. The raw result proof is parsed outside callbacks. The body module must reproduce the exact objective and correct job.open/job.continue and ipfs variants; fabricated parent ids or a blocker disguised as schema success are not acceptable receipts. Require explicit evidence of actual API blockers. ENS work and callback work have separate 60,000/200,000 gas bounds. A test per rule includes failure paths. The site is not built on the goal trunk: only its ABI/integration handoff is prepared. The future workflow builds the outer changeme UI on the real deployment; contract-paid requests build the distinct inner made-by-chat site.\n\nNEXT EPISODE 4: Read the board, all 18 requested results, latest trunk and audit/LEDGER.md, audit/final/findings.json, RULES.md files, body receipts and docs/DEPLOY.md. An accepted audit target may still report findings. Require the handoff gate and independent review evidence on the current source before opening a release. If a target is stuck, read its exact failure and use a narrowly scoped fix with needed re-review; do not treat dependencies as completed. If no compatible machine is available, address that scheduling issue rather than assuming code failed. If the batch is still running at fallback, preserve its work and wait, rather than creating another wave or spending a release.\n\nWHEN READY: Open one workflow.open under a fresh key with source:trunk and deployments:1, draft onchain:evm_contracts, chainId:1, ipfs:true, github:true and a concise objective. A trunk draft has no shape, steps, contracts, repoUrl or baseCommit. Its request must carry the full SITE section, the requirement to use the actual Changeme ABI/address, the outer/inner separation, independent review of the released revision and no deployment with any open finding. It consumes both remaining pools. This episode opens no child. If that door is refused, read the concrete refusal and mend under a new key; the words-only API preflight problem is recorded above, not a reason to guess missing facts or reduce security. Leave episode 5 to read the real workflow result and verify both parts.\n\nCOMPLETION: A child.settled wake supplies the actual workflow/job ids. Read workflow.url and the actual contract and frontend job results; a contracts job completed state alone does not prove website completion. Verify mainnet address/transaction and source, independent closure of all findings, rule/gas tests, body-check receipts, ABI integration, site URL/CID, frame restrictions, wallet approvals and dynamic versions. Cite all evidence and the deployed/reviewed revisions in the write-up. Never label the partial trunk or a blocked release as live. Keep finish false until the work answers the goal or no supported recovery remains, and report any remaining blocker explicitly.\n\nLOCAL CHECKS: The pinned check-decisions.mjs passed. Additional checks passed for JSON shape, budgets, field sizes, acyclic dependencies, ordered overlapping scopes, protected-path exclusion and planned read/wake names. Longest filled brief: 1,117 characters. Goal plus brief/scope/check plus a conservative 3,200-character allowance peaked at 7,437; the exact plane envelope is not locally exposed. Only the named decisions output was written and it remains untracked.",
  "spawn": [
    {
      "name": "changeme-recovery-e3",
      "mode": "code",
      "brief": "Complete one target: {{work}}\n\n{{detail}}\n\nResult JSON must identify files, checks with commands and outcomes, and every unresolved rule or finding. Keep the original goal binding.",
      "targets": {
        "attempts": 3
      },
      "requires": {
        "platform": [
          "linux-x64"
        ]
      },
      "output": {
        "format": "json",
        "maxBytes": 16000
      },
      "items": [
        {
          "key": "toolchain",
          "vars": {
            "work": "Provide the reproducible test toolchain without changing configuration or lib/. Commit Linux x64 solc 0.8.28 from https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.28+commit.7893614a in tools/solc/. Verify SHA256 9a0fb7e0db2c0641dbae1c5cc645dc686820c83af516226abb1c0a2f76636f25. The existing foundry.toml pins this compiler and offline=true.",
            "detail": "Write tools/forge-test.sh to use that binary explicitly with forge --offline, forward test options, and fail on zero tests, skipped tests or failures. Write tools/check-audit.mjs: validate reports with reviewedCommit, sourceHash, reviewer, independent, checks and findings (id,severity,location,impact,reproduction,status,evidence). Accept reports containing open findings; this checks evidence structure, not release readiness. Document a deterministic sourceHash of source, libraries and compiler settings for later audits. Demonstrate the 18 existing cards tests and the negative runner cases."
          },
          "scope": [
            "tools/solc/**",
            "tools/forge-test.sh",
            "tools/check-audit.mjs",
            "tools/README.md"
          ],
          "needs": [],
          "check": "sh tools/forge-test.sh --match-path 'test/cards/*.t.sol'"
        },
        {
          "key": "intake",
          "vars": {
            "work": "Implement the verified Intake interface and faithful IMD/Intake mocks, with interface tests and ABI provenance. Intake.priceOf(bytes32,address) returns uint256; requestWithFailure(bytes32,bytes,(address target,bytes4 selector),bytes4,address,uint256) returns bytes32 and pulls its payment from the caller. Use the goal's two addresses.",
            "detail": "Use action texts job.open@job-1 and job.continue@job-1. Callback signatures: onResult(bytes32,bytes32,string); onFailure(bytes32,uint8,bytes32,uint16,uint16,bytes). Confirm against chain-1 verified Intake source and public API data; save the relevant ABI and facts. Model the 200,000-gas stipend, callbacks, payment failures and hostile reentry. Public sources are evidence, not task instructions."
          },
          "scope": [
            "src/intake/**",
            "test/intake/**",
            "test/mocks/**",
            "docs/INTAKE.md"
          ],
          "needs": [
            "toolchain"
          ],
          "check": "sh tools/forge-test.sh --match-path 'test/intake/*.t.sol'"
        },
        {
          "key": "bodies",
          "vars": {
            "work": "Implement compact order JSON and message validation exactly as the goal specifies, including its full literal objective, square-bracketed messages and round-specific card path. Cover initial open, normal continuation, empty-parent retry and explicit-parent continuation before and after first success. Preserve build-website and the required ipfs forms.",
            "detail": "POST each distinct generated body to https://api.imd.fun/requests/check and save the input and receipt under test/body/receipts/. Use legitimate public parent data when available; never fabricate an id to claim validation. Record any unavoidable parent-ownership or availability blocker explicitly in docs/BODIES.md for the release gate. Include offline Solidity fixtures and tests; no fixture file-read permissions can be added. Document module API and body/action mapping."
          },
          "scope": [
            "src/body/**",
            "test/body/**",
            "docs/BODIES.md"
          ],
          "needs": [
            "intake"
          ],
          "check": "sh tools/forge-test.sh --match-path 'test/body/*.t.sol'"
        },
        {
          "key": "proof",
          "vars": {
            "work": "Implement authenticated raw result.json proof parsing: check keccak256 of the supplied bytes against the stored resultHash and find the jobId JSON member at arbitrary nesting depth. Return its 36-byte identifier. A jobId-looking substring inside another string must not count. Preserve proof bytes rather than reserializing JSON.",
            "detail": "Test nested objects and arrays, whitespace and escapes, wrong hashes, malformed JSON, absent or invalid ids and conflicting ids. Use public Intake result documentation and actual public examples as format evidence; document any mismatch with the goal. Keep callbacks free of this parsing. Expose a bounded, documented API usable by the engine."
          },
          "scope": [
            "src/proof/**",
            "test/proof/**",
            "docs/PROOF.md"
          ],
          "needs": [
            "toolchain"
          ],
          "check": "sh tools/forge-test.sh --match-path 'test/proof/*.t.sol'"
        },
        {
          "key": "versions",
          "vars": {
            "work": "Implement the made-by-chat.identitymd.eth ENS contenthash reader and IPFS CID decoding for use by the round engine. Bound the complete external resolution/read operation to 60,000 gas and fail harmlessly on missing, reverting, malformed or gas-exhausting responses. Verify and document the mainnet ENS lookup constants from public evidence.",
            "detail": "Test supported CID encodings, invalid varints and multicodecs, oversized returns and unavailable resolvers. Document how the engine saves the last successfully built round at ordering time and through save(), without overwriting a historical version with a later one. No externally linked deployment: the final launch remains one contract."
          },
          "scope": [
            "src/version/**",
            "test/version/**",
            "docs/VERSIONS.md"
          ],
          "needs": [
            "toolchain"
          ],
          "check": "sh tools/forge-test.sh --match-path 'test/version/*.t.sol'"
        },
        {
          "key": "engine",
          "vars": {
            "work": "Integrate the complete round engine as Changeme, inheriting ChangemeCards and ReentrancyGuard. The existing card hooks are _mintCard(to,round,slot,message) and roundCid(uint256). Implement every contract rule in the goal using the landed modules, the fixed IMD/Intake addresses and no privileged function. Deploy one contract with no constructor arguments.",
            "detail": "Provide add, retry, skip, save, authenticated callbacks and the views/events needed by the outer site. Include basic full-round integration tests. Document rounding and changing-price accounting, timeout and skip clocks, late-callback supersession, proof consumption and retry-parent handling in docs/DESIGN.md. The explicit override parent must never be retained. Avoid parsing proofs or ENS calls inside callbacks. No deployment in this target."
          },
          "scope": [
            "src/Changeme.sol",
            "src/engine/**",
            "test/engine/**",
            "docs/DESIGN.md"
          ],
          "needs": [
            "bodies",
            "proof",
            "versions"
          ],
          "check": "sh tools/forge-test.sh --match-path 'test/engine/*.t.sol'"
        },
        {
          "key": "rules-add",
          "vars": {
            "work": "Complete the paid-message rule tests and repair only source defects those tests expose. Test every allowed/disallowed byte, lengths 0/1/80/81, one sender per round, exact ceil(price/5) dues, fifth-message and early-push top-ups, changing prices and rounding, failed transfers and requests, atomic mint/payment/state behavior, card fields and uncapped issuance.",
            "detail": "Save test/rules-add/RULES.md mapping each rule and boundary to test names and results. Preserve earlier tests; run the entire suite. Source changes must keep the original goal behavior. No skipped tests, weakened assertions or treating an expected failure as a pass. State unresolved requirements in the item result."
          },
          "scope": [
            "src/**",
            "test/rules-add/**"
          ],
          "needs": [
            "engine"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "rules-callbacks",
          "vars": {
            "work": "Complete callback and build-lock rule tests, repairing only source defects exposed. Cover Intake authentication, unknown ids, duplicate/stale/superseded callbacks, nonzero success versus zero-hash failure, failure storage/events, add during a build, no callback at one day, and a late callback before versus after retry or skip.",
            "detail": "Measure both callbacks through a 200,000-gas stipend with cold storage and URI cases at and beyond 128 bytes, including huge inputs. Assert truncation and completion below the bound, without callback proof parsing or ENS resolution. Save test/rules-callbacks/RULES.md. Preserve prior tests and run the whole suite; do not skip or weaken failing rules."
          },
          "scope": [
            "src/**",
            "test/rules-callbacks/**"
          ],
          "needs": [
            "rules-add"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "rules-recovery",
          "vars": {
            "work": "Complete recovery and proof lifecycle tests, repairing only source defects exposed. Cover full-price retry, empty-parent repeating the failed order, a 36-byte override continuation without storing that parent, both first-success ipfs modes, invalid parent lengths, callback/timeout failures, skip timing at each boundary and advancing after skip.",
            "detail": "Exercise proof-hash authentication on the next order, nested job ids, retries after a successful round and preventing an old callback from mutating a replacement request. Check accounting and exact approvals throughout. Save test/rules-recovery/RULES.md and the chosen timestamp semantics. Run all tests, preserving existing requirements and assertions."
          },
          "scope": [
            "src/**",
            "test/rules-recovery/**"
          ],
          "needs": [
            "rules-callbacks"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "rules-hostile",
          "vars": {
            "work": "Complete adversarial and metadata rule tests, repairing only exposed source defects. Attack reentrancy through token, Intake, resolver and ERC-721 receiver paths across public state-changing methods; fuzz payment conservation and round/request isolation. Cover successful and failing ENS saves, the last-built-round selection and immutable historical CIDs.",
            "detail": "Check SVG fallback, CID-based tokenURI, minted card immutability, transfers, no royalties, no cap and absence of owner, pause, proxy or upgrade paths. Bound external work and returndata. Save test/rules-hostile/RULES.md and run the full suite without skipped cases. The scope is this security test set and necessary source fixes, not a new design."
          },
          "scope": [
            "src/**",
            "test/rules-hostile/**"
          ],
          "needs": [
            "rules-recovery"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "audit-money",
          "vars": {
            "work": "Independently review the integrated contract for IMD accounting, ceil and remainder arithmetic, exact approvals, price changes, transfers, reentrancy and transaction atomicity. Do not change production source. Save audit/money/REPORT.md and findings.json using tools/check-audit.mjs's schema, and reproductions under test/audit-money/.",
            "detail": "Record the reviewed revision/sourceHash, reviewer and whether independent of implementation authors, precise findings at every severity, rule coverage and reproducible checks. Audit reports must land even with findings: open means open, including unavailable validation. Record reproductions as passing tests demonstrating the current defect so repair can convert them into regression assertions. An audit artifact check is not permission to deploy."
          },
          "scope": [
            "audit/money/**",
            "test/audit-money/**"
          ],
          "needs": [
            "rules-hostile"
          ],
          "check": "node tools/check-audit.mjs audit/money/findings.json"
        },
        {
          "key": "audit-lifecycle",
          "vars": {
            "work": "Independently review the integrated contract for request identity, callback authentication and gas, timeout and late-callback races, recovery, proof parsing and override-parent storage. Do not change production source. Save audit/lifecycle/REPORT.md and findings.json using tools/check-audit.mjs's schema, and reproductions under test/audit-lifecycle/.",
            "detail": "Record the reviewed revision/sourceHash, reviewer and whether independent of implementation authors, precise findings at every severity, rule coverage and reproducible checks. Audit reports must land even with findings: open means open, including unavailable validation. Record reproductions as passing tests demonstrating the current defect so repair can convert them into regression assertions. An audit artifact check is not permission to deploy."
          },
          "scope": [
            "audit/lifecycle/**",
            "test/audit-lifecycle/**"
          ],
          "needs": [
            "rules-hostile"
          ],
          "check": "node tools/check-audit.mjs audit/lifecycle/findings.json"
        },
        {
          "key": "audit-conformance",
          "vars": {
            "work": "Independently review the integrated contract for every original contract rule, exact JSON body variants and validation receipts, ENS gas/CID history, ERC-721 metadata and absence of privileged controls. Do not change production source. Save audit/conformance/REPORT.md and findings.json using tools/check-audit.mjs's schema, and reproductions under test/audit-conformance/.",
            "detail": "Record the reviewed revision/sourceHash, reviewer and whether independent of implementation authors, precise findings at every severity, rule coverage and reproducible checks. Audit reports must land even with findings: open means open, including unavailable validation. Record reproductions as passing tests demonstrating the current defect so repair can convert them into regression assertions. An audit artifact check is not permission to deploy."
          },
          "scope": [
            "audit/conformance/**",
            "test/audit-conformance/**"
          ],
          "needs": [
            "rules-hostile"
          ],
          "check": "node tools/check-audit.mjs audit/conformance/findings.json"
        },
        {
          "key": "repair",
          "vars": {
            "work": "Remediate all findings in the three initial independent audits and every documented unmet contract requirement. Preserve findings as historical evidence; save audit/repairs/REPORT.md mapping each id to a concrete fix and regression test. Preserve the original goal and request-body semantics; rerun body checks if generated bytes change.",
            "detail": "Convert vulnerability-demonstrating tests into regression tests without removing coverage. Run all tests and record exact outcomes. Do not self-certify independent closure: mark fixes pending independent retest. If nothing needs repair, record that with sourceHash and successful checks. Never deploy; any unresolved issue must remain explicit."
          },
          "scope": [
            "src/**",
            "test/**",
            "docs/**",
            "audit/repairs/**"
          ],
          "needs": [
            "audit-money",
            "audit-lifecycle",
            "audit-conformance"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "audit-recheck",
          "vars": {
            "work": "Independently re-review the repaired integrated contract, distinct from its implementation and repair authors. Save audit/recheck/REPORT.md and findings.json with current revision/sourceHash. Retest each initial finding and inspect fixes for regressions; rerun the full rule suite, gas bounds and body-validation coverage.",
            "detail": "Preserve original finding text and append independently evidenced dispositions to its record. Maintain audit/LEDGER.md with every id, severity, source location, original review, repair, retest and remaining status. Add any new finding and keep failures explicit. Land the report even if blocked; this artifact check does not certify deployment readiness."
          },
          "scope": [
            "audit/**",
            "test/audit-recheck/**"
          ],
          "needs": [
            "repair"
          ],
          "check": "node tools/check-audit.mjs audit/recheck/findings.json"
        },
        {
          "key": "followup",
          "vars": {
            "work": "Repair only the remaining findings or unmet rules identified by audit/recheck and audit/LEDGER.md. Save audit/followup/REPORT.md with id-to-fix and regression-test mapping. Preserve all existing security tests and update changed body-validation receipts. Do not change audit verdicts or claim independent closure.",
            "detail": "Run the entire suite with no skipped tests. If already clean, leave production source unchanged and record the verified no-op with checks. Record any irreducible blocker faithfully. The next independent review decides final closure; this target performs no deployment."
          },
          "scope": [
            "src/**",
            "test/**",
            "docs/**",
            "audit/followup/**"
          ],
          "needs": [
            "audit-recheck"
          ],
          "check": "sh tools/forge-test.sh"
        },
        {
          "key": "audit-final",
          "vars": {
            "work": "Perform the final independent security and conformance review, distinct from implementation and repair authors, of the exact integrated sourceHash. Save audit/final/REPORT.md and findings.json; reconcile audit/LEDGER.md and all finding dispositions without erasing original findings. Rerun the complete rule suite, callback/ENS bounds and body-validation coverage.",
            "detail": "Independently retest every fix. All severities and unverified requirements block readiness until resolved with evidence, never accepted-risk waivers. Record reviewer independence and source revision. Report any open finding even if that blocks deployment; the target succeeds by delivering an honest review, not by declaring the contract safe."
          },
          "scope": [
            "audit/**",
            "test/audit-final/**"
          ],
          "needs": [
            "followup"
          ],
          "check": "node tools/check-audit.mjs audit/final/findings.json"
        },
        {
          "key": "handoff",
          "vars": {
            "work": "Prepare the gated release handoff, not a deployment: script/Deploy.s.sol for one no-argument Changeme on chain 1; docs/ABI.json and docs/DEPLOY.md with views/events, fees, proof acquisition, timeout/retry/skip and full outer-site requirements. Include the outer/inner-site distinction and an honest empty state before any inner build.",
            "detail": "Write tools/check-release.mjs to fail unless the full suite passes with nonzero tests and no skips, every rule has coverage, every generated body variant has valid evidence, all findings are independently closed, reviewer independence is documented, and final reviewed sourceHash matches release source. Check deployable size and one-contract manifest assumptions. Return releaseReady plus the exact reviewed revision and remaining blockers. Never publish or deploy in this target."
          },
          "scope": [
            "script/Deploy.s.sol",
            "docs/DEPLOY.md",
            "docs/ABI.json",
            "tools/check-release.mjs"
          ],
          "needs": [
            "audit-final"
          ],
          "check": "node tools/check-release.mjs"
        }
      ]
    }
  ],
  "read": [
    "changeme-recovery-e3/toolchain",
    "changeme-recovery-e3/intake",
    "changeme-recovery-e3/bodies",
    "changeme-recovery-e3/proof",
    "changeme-recovery-e3/versions",
    "changeme-recovery-e3/engine",
    "changeme-recovery-e3/rules-add",
    "changeme-recovery-e3/rules-callbacks",
    "changeme-recovery-e3/rules-recovery",
    "changeme-recovery-e3/rules-hostile",
    "changeme-recovery-e3/audit-money",
    "changeme-recovery-e3/audit-lifecycle",
    "changeme-recovery-e3/audit-conformance",
    "changeme-recovery-e3/repair",
    "changeme-recovery-e3/audit-recheck",
    "changeme-recovery-e3/followup",
    "changeme-recovery-e3/audit-final",
    "changeme-recovery-e3/handoff"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "changeme-recovery-e3"
    ],
    "afterMinutes": 1440
  },
  "finish": false
}
