{
  "notes": "EPISODE 5 / FINAL PLANNING EPISODE, 2026-11-29. Goal INCOMPLETE; finish=false. Read all 23 results; computed SHA-256 values match their pins. No requester purchase evidence. Nothing fabricated.\n\nSTATE AND CORRECTION\ngoal.json trunk https://github.com/identity-md-launches/goal-3534-imdpicks-critical-payment.git at e2ab8e38dee322b36676de932d3e2cbe2d0416db. native-repair merged, 8/8 accepted; all listed batches settled, nothing to cancel. Used=36/50, NOT episode 4's projected 43. native-seams and native-verify were REFUSED because native-repair was running/merging. Their seven items never started; their reads/wakes were refused as nonexistent. No repaired merged-suite/browser/replay/fork result exists. Prior notes proposing finish=true regardless of evidence are superseded. No children owner/budget, mandate or oracle capacity.\n\nDECISION\nONE target code batch native-final-targets, 8 items (44/50 allocated; 6 remain). Explicit needs: integration -> localization -> five independent verification records -> handoff. Target needs avoid the rejected wave-queue assumption. Attempts=2. Repairs must pass regression checks. Evidence records may report failures/not_run; schema/fingerprint checks do not certify behavior. Fingerprints distinguish application changes from docs-only commits. Wake is scheduler-only. No sixth planning episode assumed: write-up reads results after settlement and reports stuck/refused targets as gaps, citing only landed code.\n\nREPAIRS IN e2ab8e3: focused tests in separate 28ff85f worktrees, NOT merged acceptance\n- native-repair/report-reader: preserves probabilities/markets/odds/arguments/risks/confidence/sources; metadata by ESPN ID; no-pick pending; accurate missing/corrupt JSON issues. 12 focused tests pass. Participation count means report entries, not unique agents. Its archive/backend requirement is stale: native/policy.ts uses VITE_PAID_RESEARCH_OPEN alone; archive gate is legacy.\n- report-view: 10 pass; compare without a pick; Markdown links and risks; no no-pick Result row/empty league; honest recovered-Markdown provenance, historical-only spend label, envelope language parsing.\n- tracking: 79 pass; keeps paid/admitted jobId during API/result/completion delays; confirmed refusal needs matching refusal evidence; explicit unrelated/indirect transaction reasons and awaiting-receipt. Indirect payments remain unsupported.\n- status-view: 72 pass; current paid evidence survives absent jobId, not mismatched IDs/unpaid snapshots; replace navigation fixes Back; 45 reasons mapped, disagreements explicit; issue translation calls; no empty/wrong-job report. Full suite: 13 failures (assertion, translations, cleanup).\n- payment: 22 pass; actual gas estimates where available, conservative fallback, 20% margin, maxFeePerGas and pre-send refresh. Fixtures now need eth_estimateGas and eth_maxPriorityFeePerGas. Hashless retry relies on unchanged pending nonce; direct source inspection confirms this. Unchanged public nonce cannot prove no broadcast after an ambiguous transport error. Integration must test delayed visibility, retain unresolved attempts and prevent a second send; original item acknowledged provider visibility limits.\n- checkout-ui: 6 pass; unresolved same-selection disables Pay; quote refresh after approval/error; numeric limit templates translated. \n- guide: historical table/live-price copy; links checked only. page-meta: 8 pass, fixed copy and canonical/OG URL.\nIntegration debt: obsolete native-body/native-ui assertions, language leakage, RPC fixtures, two TODO markers, untranslated strings. t(issue) cannot translate concatenated/interpolated keys. First two targets own these gaps. Never sum focused suites into a merged count.\n\nEARLIER EVIDENCE: retain date, mode and commit\n28ff85f: episode 4 recorded tsc pass, 216 tests/214 pass/2 TODO; i18n 605 strings/nine languages.\nThe following tested 40669c610dc527649625874cc0bca769ae6b1b2e:\n- native-proof/historical-replay, LIVE READ-ONLY: request 0xe881aee29502a10dd88ec2217e5c8b0fbea9a281f2cf68e485b0f77f6fcfa267 -> job 3be0bfc6-0c5d-429d-b70e-1a4c89fe2c2a -> paid/verifying; 44,037-byte report.md; static ReportView 14/14 fights with both probabilities and 109 citation anchors. complete=false: no named report.json. Static rendering only; fallback recovered historical RPC restriction.\n- native-proof/state-census, LIVE: 135 in-scope records in its window, 132 completed/3 admitted; 30 hashes +2 controls: 25 pass/7 fail (six indirect payments, unrelated revert). No real job.open refused/failed sample. Not a current counter.\n- native-proof/fork-payment, SIMULATED real bytecode: exact approval, one request/transfer for 1/5/14 games; 14-game gas underestimation and stuck hashless attempt found. Does not validate repaired estimator.\n- native-proof/body-precheck, LIVE server: six actual 1/5/14 English/Japanese bodies returned 200/blockers []; precheck, not paid admission.\n- native-browser/purchase-to-report, SIMULATED Chromium: 29 pass/7 fail/1 not-run; cards lost report content, so whole flow failed although confirmation gates held.\n- native-browser/failures-and-recovery, SIMULATED Chromium: 11/15 pass; stale approval copy, unresolved Pay invitation, wrong-job verification text and unclear disagreement.\n- native-mend/merged-flow-test: 29 cases/27 pass/2 TODO, real modules/synthetic boundaries. checkout-strings supplied earlier translations.\nNone of these are tests of e2ab8e3 or later target changes.\n\nARCHITECTURE AND RELEASE GAPS\nSelect games -> wallet approves IMD if needed and calls existing Ethereum Intake.request(job.open@job-1) at live price -> save tx hash -> GET api.imd.fun/intake/1/<tx> -> matched admission.result.jobId -> /jobs/<id> and /result -> canonical Completed snapshot Keccak-256 plus file SHA-256/length -> cited report. Paid requires canonical matching request/transfer, three-block depth and IMD paid status. Complete also requires confirmed matching job/completion and verified required outputs; missing JSON stays partial.\nrepo-facts/signing-keys, protocol-facts/intake-contract/status-routes and native-flow/tracking-client support NO IMDPicks backend signing key for native flow. VERIFIER_PRIVATE_KEY belongs only to historical escrow verifyDelivery/rejectDelivery; preserve recovery. No new payment wrapper or burn/developer transfers.\nnative-evidence/body-browser-contract observed OPTIONS check 404 and cross-origin POST 403 origin_not_allowed, while server POST worked. Same-origin precheck needs authorized hosting/API cooperation, no signing key. Local validation cannot exclude every post-payment refusal; no native refund guarantee established.\nnative-evidence/historical-proof corroborates historical chain/hash binding; report.json existed in source bundle, not named artifacts. Integrity proves neither citation truth nor prediction quality/staffing.\nnative-evidence/release-source at 07:18-07:21Z matched apex export to production 741da405 and separate repair export to 835702de; www HTTPS 525/HTTP parked. Dated observations; publishing authority/origin remain unknown. Agents #507/#1113 jobs already completed; #507's separate V14 wrapper is excluded and #1113 reviewed content. No new coordination claimed.\nUnexplained source flags: protocol-facts/job-body,past-orders; repo-facts/live-site; native-evidence/body-browser-contract; native-proof/fork-payment. Later corroboration does not automatically clear them.\nOwner must review landed changes, authorize candidate origin/publication, then document fresh selected-games payment -> admission -> real research -> automatic complete report -> reload recovery, including probabilities/research/citations. Keep public checkout default closed. Exactly 1,999 agents/order remains unmet: earlier panelSize 1999 check rejected it; historical sports job evidenced one report seat. Backlog: sport tiles, duplicate RPC injection, swap review. Handoff must state incomplete workflow, failed/unperformed checks, external requirements and nothing fabricated.",
  "spawn": [
    {
      "name": "native-final-targets",
      "mode": "code",
      "brief": "Complete one target of IMDPicks' final integration and verification on the goal trunk, starting from e2ab8e38dee322b36676de932d3e2cbe2d0416db or its descendant containing this target's needs. Read existing web/ code and docs/IMD_NATIVE_FLOW.md first. Preserve the direct customer-wallet IMD.fun Intake flow, existing confirmation/hash gates, historical recovery, and default-closed release policy. Use existing locked dependencies; do not change package/build configuration, add payment contracts or extra transfers, publish, or send a live payment. Work only in this target's scope. {{task}} {{task2}} {{task3}} Deliver the named files plus one Markdown item result stating the tested commit, production-source fingerprint, commands and exit codes, pass/fail/TODO/not-run counts, changed files, remaining defects and external requirements. Label simulated, live-read-only and unperformed work separately. Keep each run within about an hour. No evidence here alone certifies a fresh paid production workflow.",
      "targets": {
        "attempts": 2
      },
      "items": [
        {
          "key": "integration",
          "vars": {
            "task": "Repair the merged module integration as one patch. Current tests/fixtures/native-merged/edges.mjs lacks eth_estimateGas and eth_maxPriorityFeePerGas; add explicit realistic responses and preserve unexpected-call failures. Turn the two native-merged TODOs into normal assertions: admitted jobId survives result 404/429 or shallow completion; confirmed refusal with matching job/result becomes refused. Update native-body's obsolete missing-agent-count expectation to the delivered entry count; in native-ui replace the obsolete no-paid expectation for a current paid snapshot missing jobId, retain wrong-ID/unpaid/no-ready guards, and reset",
            "task2": "language in cleanup. Strengthen real reader-to-card assertions for both outcomes, probabilities, arguments, risks, five citation links, partial Markdown provenance and wrong-job rejection. Examine native/payment.ts: stable public pending nonce after a generic wallet error cannot prove no broadcast. Preserve a durable unresolved attempt after ambiguous errors; allow retry on explicit rejection or independently established safe reconciliation, and test delayed transaction visibility without a second send. Preserve recovery UX and do not weaken confirmation gates. Add web/scripts/native-final-integration.mjs to run the relevant",
            "task3": "integration/payment/body regression tests with scratch temporary files; its exit must reflect failures and reject TODOs. Add web/scripts/check-native-final-record.mjs: validate a verification JSON with tested commit, hashes of application files (web/src/** and web/index.html), mode, commands/exits, cases, totals, limitations, and livePaidRun='not_run'. It must reject success markers without recorded evidence, inconsistent totals, missing cases or source-fingerprint mismatch; explicit fail/not_run with evidence is valid, not a pass. Record integration checks in docs/native-final/integration.json. Do not claim the full suite passes before localization."
          },
          "scope": [
            "web/src/native/payment.ts",
            "web/src/native/orders.ts",
            "web/src/native/client.ts",
            "web/src/native/view.tsx",
            "web/src/checkout.tsx",
            "web/src/swarm.ts",
            "web/src/pages.tsx",
            "web/tests/native-merged.test.mjs",
            "web/tests/fixtures/native-merged/**",
            "web/tests/native-body.test.mjs",
            "web/tests/native-ui.test.mjs",
            "web/tests/native-checkout.test.mjs",
            "web/tests/native-final-integration.test.mjs",
            "web/scripts/native-final-integration.mjs",
            "web/scripts/check-native-final-record.mjs",
            "docs/native-final/integration.json"
          ],
          "needs": [],
          "check": "node web/scripts/native-final-integration.mjs"
        },
        {
          "key": "localization",
          "vars": {
            "task": "Finish localization of the repaired native customer flow after integration lands. Add i18n-ui/repair.ts and register it in index.ts for fr/es/ru/ja/zh/pt/it/th/pcm, preserving existing translations and placeholders. Cover the 47 new reason/fallback/disagreement sentences in native/view.tsx, three new client reason codes, report-reader diagnostics, and pages.tsx's Risks, historical-spend label and recovered-Markdown provenance. Read the actual merged strings",
            "task2": "rather than copying line numbers. t(issue) on concatenated or interpolated issue text is insufficient: normalize finite templates and values at the reader/view boundary while retaining the exported string-array API, escaped values, partial-report behavior and all hash gates. Translate the known templates and preserve unknown provider errors honestly. Extend native-i18n coverage across nested native files and these report diagnostics; test real translated",
            "task3": "rendering with variable values, nine languages, placeholder multiplicity, English/en-NG fallback and language cleanup. Do not suppress scanner failures or use English as every translation. Add web/scripts/native-final-localization.mjs to run the top-level i18n check and native-ui/native-i18n/new regression tests, with a scratch TMPDIR and failure-propagating exit. Write docs/native-final/localization.json recording results and any wording not independently reviewed."
          },
          "scope": [
            "web/src/i18n-ui/repair.ts",
            "web/src/i18n-ui/index.ts",
            "web/src/native/view.tsx",
            "web/src/swarm.ts",
            "web/tests/native-i18n.test.mjs",
            "web/tests/native-ui.test.mjs",
            "web/tests/native-final-localization.test.mjs",
            "web/tests/fixtures/native-final-localization/**",
            "web/scripts/native-final-localization.mjs",
            "docs/native-final/localization.json"
          ],
          "needs": [
            "integration"
          ],
          "check": "node web/scripts/native-final-localization.mjs"
        },
        {
          "key": "suite",
          "vars": {
            "task": "Produce one independent merged-release verification record; leave application and test sources unchanged. Run tsc --noEmit, node --test tests/*.test.mjs, node scripts/i18n-check.mjs, and a Vite production build from web with output and temporary files in test/scratch. Check both default-closed policy and the explicitly enabled test build without changing the",
            "task2": "committed flag. Use the three repair markers tests/native-cards.test.mjs, tests/native-view.test.mjs and src/i18n-ui/repair.ts; missing markers mean wrong source, not a passing test. Write docs/native-final/suite.json with the exact tested commit/application fingerprint, commands/exits, total/pass/fail/TODO/skipped/cancelled counts and each failed case or",
            "task3": "unexecuted step with reason. Distinguish a process exit 0 with TODO cases from complete regression coverage. Add web/scripts/native-final-suite.mjs as a reproducible runner. A complete failure record is a valid deliverable; never change tests to obtain a pass or describe it as release clearance. The target check validates the record, not product correctness."
          },
          "scope": [
            "docs/native-final/suite.json",
            "web/scripts/native-final-suite.mjs"
          ],
          "needs": [
            "localization"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/suite.json"
        },
        {
          "key": "browser-sale",
          "vars": {
            "task": "Recheck one complete simulated customer sale on the repaired source: select three games, connect an injected wallet, exact approval and one Intake request, persist hash, pending/index delay, confirmed payment/admission, automatic job tracking, confirmed completion and verified report rendering. Run the real application modules together; mock only wallet/RPC/API/artifact/schedule boundaries. Assert within EACH card both outcomes/probabilities, arguments and risks with",
            "task2": "clickable citations, confidence, and no Void for an unplayed no-pick. Test paid-badge continuity during shallow completion/API delay, refresh, storage-empty recovery with tx hash, Back leaving the job route, historical-spend label and default-disabled checkout. Use headless Chromium if available through an existing tool/runtime. If unavailable, record the error and execute the real mounted React flow using the existing minimal DOM harness; label browser-only behaviors",
            "task3": "not_run, never relabel SSR as a browser pass. Keep all wallet and remote responses explicitly synthetic and prevent unmatched external requests. Write a reproducible harness at web/scripts/native-final-browser-sale.mjs, small fixtures in tests/fixtures/native-final-sale/, and docs/native-final/browser-sale.json with each step's expected/observed state, wallet-send counts and source fingerprint. Include run failures honestly. The record checker verifies completeness, not a live sale."
          },
          "scope": [
            "docs/native-final/browser-sale.json",
            "web/scripts/native-final-browser-sale.mjs",
            "web/tests/fixtures/native-final-sale/**"
          ],
          "needs": [
            "localization"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/browser-sale.json"
        },
        {
          "key": "browser-failures",
          "vars": {
            "task": "Recheck one simulated failure/recovery matrix using real mounted checkout, tracker and report renderer with only external boundaries supplied by fixtures. Cover declined approval, mined approval then declined request with refreshed allowance copy, relevant reverted request, unrelated reverted transaction, indirect unsupported payment, confirmed refusal after admission, failed job, stale/conflicting API states, 404/429 with Retry-After, transient outage and recovery, same-selection",
            "task2": "unresolved Pay disabled, ambiguous send error with delayed nonce/receipt visibility and no duplicate payment, wrong-job snapshot, same-length tampered report, missing structured output, UUID without tx hash, and reorg during download. Require no false paid/ready/verified badge, explicit disagreement copy, readable verified partial content only, and no extra wallet writes. Prefer available headless Chromium; otherwise use the existing minimal DOM harness and mark untested browser-specific",
            "task3": "behavior not_run. Deliver web/scripts/native-final-browser-failures.mjs, small fixtures in tests/fixtures/native-final-failures/, and docs/native-final/browser-failures.json containing every case, expected/observed UI, wallet sends, mode, tested commit/source fingerprint, actual failures and limitations. Do not edit production code or replace a failing expected behavior with the observed defect. The check accepts a complete honest evidence record, not a declaration that the workflow passed."
          },
          "scope": [
            "docs/native-final/browser-failures.json",
            "web/scripts/native-final-browser-failures.mjs",
            "web/tests/fixtures/native-final-failures/**"
          ],
          "needs": [
            "localization"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/browser-failures.json"
        },
        {
          "key": "historical-replay",
          "vars": {
            "task": "Produce one read-only historical replay of the repaired reader/view, not a new purchase. Use the known Ethereum request 0xe881aee29502a10dd88ec2217e5c8b0fbea9a281f2cf68e485b0f77f6fcfa267 and admitted job 3be0bfc6-0c5d-429d-b70e-1a4c89fe2c2a. Run actual readNative, fetchNativeReport and ReportView with live RPC/API/artifact bytes; use the supplied chain-1 routing and cite https://ethereum-rpc.publicnode.com as public RPC provenance. Verify canonical request/completion,",
            "task2": "three-block depth, payer/action/payment/job binding, immutable snapshot Keccak-256 and file SHA-256/length. Then verify all 14 games' two probabilities and citation links, league backfill and honest recovered-Markdown provenance. The historical snapshot lacks named report.json: complete must remain false, and no 'Report ready' claim is allowed. Do not substitute API result JSON for the pinned snapshot bytes. Record gateway/RPC errors and public URLs/times, curl retry for",
            "task3": "HTTP 403, and any remaining unverified step rather than fabricating data. Deliver a runnable read-only script web/scripts/native-final-historical.mjs and docs/native-final/historical-replay.json with commit/fingerprint, checked identities/hashes and coverage. Keep runtime shims and static rendering clearly distinguished from browser-origin testing. The record checker permits an evidenced unavailable source; this replay cannot establish fresh admission or a new paid sale."
          },
          "scope": [
            "docs/native-final/historical-replay.json",
            "web/scripts/native-final-historical.mjs"
          ],
          "needs": [
            "localization"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/historical-replay.json"
        },
        {
          "key": "fork-payment",
          "vars": {
            "task": "Recheck the repaired native payment on one isolated Ethereum Mainnet fork using existing real Intake/token bytecode and the actual body/payment modules. All writes are fork simulation only; upstream Mainnet access is read-only through the supplied chain-1 route, with https://ethereum-rpc.publicnode.com named as public provenance. For 1/5/14-game bodies verify the live-at-pinned-block quote, exact approval, one request/Requested event, unchanged body bytes and",
            "task2": "one transfer to payTo; no site splitter or other transfer. Measure gas and fee reservation at the quoted balance, especially 14 games and near the body cap; show refusal before approval when funds are insufficient. Cover rejection retry and an ambiguous lost-response/delayed-visibility case without duplicate payment. Route every application RPC client to the same fork, including orders.ts's duplicate lookup; assert no write can reach upstream. Record fork",
            "task3": "block/hash, body lengths, estimates versus measured costs, exact case outcomes and limits of impersonation. Use an existing Foundry/runtime if available; if unavailable, record the exact failure and leave fork cases not_run rather than substituting fabricated receipts. Deliver web/scripts/native-final-fork.mjs and docs/native-final/fork-payment.json with source fingerprint and reproducible invocation. This tests payment only, not IMD admission, research or delivery."
          },
          "scope": [
            "docs/native-final/fork-payment.json",
            "web/scripts/native-final-fork.mjs"
          ],
          "needs": [
            "localization"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/fork-payment.json"
        },
        {
          "key": "handoff",
          "vars": {
            "task": "Produce one final evidence-based release handoff after the five verification records land. Compare the five post-localization verification records against the final application fingerprint; their commits may differ due to docs/harness files. Earlier integration/localization records are historical checkpoints, not tests of the final source. Update README.md and docs/IMD_NATIVE_FLOW.md and add docs/NATIVE_VERIFICATION.md plus docs/native-final/handoff.json. Report each observed result, every failure/not_run and exact tested commit; do not add counts across independent overlapping suites. Correct inherited blanket archive-URL/backend requirements: native policy uses",
            "task2": "the paid-research build switch alone; legacy escrow operations are separate. Describe selected games -> customer wallet/Intake -> confirmed admission/job ID -> tracked job -> hash-verified cited report. No native backend verifier key is required; preserve existing escrow recovery. Explicitly state goal incomplete: fresh owner-authorized purchase through intended origin to automatically displayed complete report has not run, publishing authorization is absent, and exactly 1,999 agents per job is unsupported by observed protocol evidence. Keep release closed. Provide an owner acceptance checklist with evidence fields for selected games, request tx, requestId, jobId,",
            "task3": "confirmation, files/hashes, rendered probabilities/research/citations and reload recovery, with unperformed fields null. Recheck public hosting/CORS only if needed; date prior observations rather than asserting current deployment identity. Agents #507/#1113 jobs were already completed; their separate checkout/review is not new direct-flow proof. Do not publish or ask for secrets. Handoff JSON must have goalComplete=false, releaseReady=false, livePaidRun='not_run', failures and externalRequirements; nothing fabricated. If a prerequisite is stuck, do not invent its result; the orchestrator notes supply the partial fallback. The check validates this honest handoff."
          },
          "scope": [
            "README.md",
            "docs/IMD_NATIVE_FLOW.md",
            "docs/NATIVE_VERIFICATION.md",
            "docs/native-final/handoff.json"
          ],
          "needs": [
            "suite",
            "browser-sale",
            "browser-failures",
            "historical-replay",
            "fork-payment"
          ],
          "check": "node web/scripts/check-native-final-record.mjs docs/native-final/handoff.json"
        }
      ],
      "output": {
        "format": "markdown",
        "maxBytes": 24000
      }
    }
  ],
  "read": [
    "native-final-targets/integration",
    "native-final-targets/localization",
    "native-final-targets/suite",
    "native-final-targets/browser-sale",
    "native-final-targets/browser-failures",
    "native-final-targets/historical-replay",
    "native-final-targets/fork-payment",
    "native-final-targets/handoff",
    "native-repair/report-reader",
    "native-repair/report-view",
    "native-repair/tracking",
    "native-repair/status-view",
    "native-repair/payment",
    "native-repair/checkout-ui",
    "native-repair/guide",
    "native-repair/page-meta",
    "native-proof/historical-replay",
    "native-proof/state-census",
    "native-proof/fork-payment",
    "native-proof/body-precheck",
    "native-browser/purchase-to-report",
    "native-browser/failures-and-recovery",
    "native-mend/merged-flow-test",
    "native-flow/tracking-client",
    "native-evidence/body-browser-contract",
    "native-evidence/historical-proof",
    "native-evidence/release-source",
    "repo-facts/signing-keys",
    "protocol-facts/status-routes",
    "protocol-facts/intake-contract"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "native-final-targets"
    ],
    "afterMinutes": 1440
  },
  "finish": false
}
