{"assessments":[],"deployments":[],"fuzz":[],"identity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"interpretation":"Records acceptance and evidence. Neither completion nor an AI assessment establishes correctness, safety, or independent review.","jobId":"0b400c87-be30-43ac-9f04-ee10d1e81f19","kind":"skill:build-website","nodes":[{"acceptedSubmissionHash":"8f10fd4ad25bbd76c3508e17456444a5a2687f17017bf9eb2b0cdda43a3de88c","dependsOn":[],"execution":{"mustProduce":["dist/index.html"],"network":true,"optionalTools":["browser"],"profile":"none","requires":["network"],"skillHash":"a60bc8b42446c13d993341179fe13c712a5addb118fc532fb2d15e71f912efc8","skillId":"build-website","tools":[]},"key":"build_website","kind":"code","role":"implement","skillHash":"a60bc8b42446c13d993341179fe13c712a5addb118fc532fb2d15e71f912efc8","skillId":"build-website","state":"accepted"},{"acceptedSubmissionHash":"2332fe2444f7b2dd5d43a1d56c1c37cbcd70bdb31d19d7cd540c9bc27ba8b381","dependsOn":["build_website"],"execution":{"network":true,"optionalTools":["browser"],"profile":"none","requires":["network"],"skillHash":"fd33b6741366d364a55a4c0ba2bc4f5d329cec0b62f27a83289dc5b30ab03575","skillId":"design-critic","tools":[]},"key":"design_critic","kind":"code","role":"review","skillHash":"fd33b6741366d364a55a4c0ba2bc4f5d329cec0b62f27a83289dc5b30ab03575","skillId":"design-critic","state":"accepted"}],"objective":"# IMD PICKS V8\n\nContinue from V7 job 159c62f6-b015-4241-b051-cbefccab7d8c.\nWebsite: https://imd-picks-you-select-the-ga-e617.imd.site/\n\nPreserve existing design, domain, branding, features, reports, predictions and integrations. No new website or contract deployment.\n\n**1. PAYMENT SECURITY**\n\nFix V7 late-delivery refund bug and settlement/refund races. Make delivery, settlement and refunds consistent, idempotent and auditable. Protect refund reserve; enforce eligibility, deadlines and verified artifacts. Never charge twice. Disclose partial/full refund eligibility and reserve funding. Test failures, timeouts, late reports, outages, replay, reentrancy and unauthorized access.\n\nEthereum Mainnet, chain 1. Verify IMD token, decimals, Intake and burn behavior.\n\nToken: 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7\n\nExactly 1 IMD per analysis of 1–14 events plus gas. Successful settlement:\n- 0.500 IMD genuine Swarm funding.\n- 0.250 IMD verified permanent burn.\n- 0.125 IMD to each developer:\n\n0x83027AD9d0D5374335086c539dADD1db983441B0\n\n0xA02c46e76283677Ca4cB7cf152474477C0f40A88\n\nAutomatic 50/50 developer rewards, immutable recipients, exact accounting. No hidden fees, backdoors or unauthorized withdrawals. Verify research affordability. Preserve MetaMask/Rabby EIP-6963, exact approvals and noncustodial ETH/IMD/USDC/USDT swap. Customer sees price and required disclosures; private accounting shows both wallets, rewards, burns, funding, refunds and transactions.\n\n**2. REMOVE THREE-HOUR CUTOFF**\n\nReplace fixed 3h restriction everywhere (games, checkout, backend, tutorials, translations) with dynamic deadlines using measured Swarm latency, queue and event count. Initial targets: 1–3 events 20min, 4–7 30min, 8–14 45min before start, only if validated. Display estimated delivery, local start times and countdowns. Recheck before charging; exclude ineligible events. Refresh lineups, injuries, goalies and odds before finalizing. Handle missed deadlines with recovery/refunds; never label late predictions pre-event.\n\n**3. SPORTS KNOWLEDGE ENGINE**\n\nBuild persistent databases and scheduled ingestion for UFC/NHL/NBA/NFL/MLB/football/tennis. Collect schedules, historical/current statistics, rankings, injuries, lineups, odds, results, news and performances. Use verified permitted sources; track timestamps, freshness, provenance, conflicts and stable participant IDs. Deduplicate, cache, retry, monitor and flag missing/stale data. Provide storage, migrations, API, scheduler and hosting instructions.\n\n**4. INDEPENDENT SWARM INTELLIGENCE**\n\nUse real specialist agents, sport-specific models, independent research, opposing arguments, critical review and final consensus within budget. Analyze form, opponent quality, tactics, health, fatigue, recovery, coaching, motivation, weather, travel and overlooked factors. UFC: striking, wrestling, grappling, cardio, durability, fight IQ, defense and stylistic matchups. Never blindly follow bookmakers or favor veterans, newcomers, favorites or underdogs. Document assumptions, evidence and actual agent participation.\n\n**5. MULTI-MARKET RESEARCH**\n\nEvaluate reliable available markets, not only winners:\n\nUFC: winner, rounds, totals, KO/TKO, submission, decision, distance.\nNHL: winner, puck line, goals, scorers, assists, shots, saves.\nNBA: winner, spread, totals, points, rebounds, assists, threes.\nNFL: winner, spread, totals, touchdowns, passing/rushing/receiving yards.\nMLB: winner, run line, totals, hits, strikeouts, home runs.\nFootball: winner/draw, goals, BTTS, scorers, assists, corners.\nTennis: winner, sets, games, handicaps, aces, double faults.\n\nSeparate highest probability from best estimated value, confidence and no-pick verdict. Never force recommendations or invent markets/prices. Communicate uncertainty and risk; no guaranteed wins.\n\n**6. STRUCTURED REPORTS**\n\nVersioned JSON: event/participant IDs, complete market outcomes, likely winner, probabilities, uncertainty intervals, odds, sportsbook, observation time, break-even and valid same-market no-vig probabilities, EV/edge, confidence, evidence quality, supporting/opposing arguments, risks, sources, model version, agent participation and verdict. Validate sums, calculations, settlement rules and labels. Preserve original reports/predictions. Deliver genuine new multi-market sample reports, not reconstructed examples.\n\n**7. CONTINUOUS LEARNING & TRACK RECORD**\n\nPersist immutable pre-event predictions; automatically register and settle using verified results. Track wins/losses/voids, accuracy by sport/market, hypothetical ROI, Brier score, log loss and calibration. Learn from errors via versioned model updates, chronological backtesting and out-of-sample validation. Prevent future-data leakage; compare against prior models and market baselines before promotion. Record model changes and sample sizes. Never hide losses or fake learning.\n\n**8. CUSTOMER EXPERIENCE**\n\nPreserve premium navy/mint design, improve desktop/mobile accessibility. Interactive matchup comparisons, form, head-to-head, injuries, lineups, market comparisons, charts, expandable reasoning, confidence, sources, saved selections, favorites, notifications, personal dashboard and tutorials. Correlation-aware combined probabilities where valid, follow-ups with disclosed costs, sharing and report/JSON downloads. Fix truncated names and market labels.\n\nTranslate full UI and reports into English, French, Spanish, Russian, Japanese, Simplified Chinese, Portuguese, Italian, Thai, Nigerian English and Nigerian Pidgin. Preserve numbers/sources; localize dates/times/odds.\n\n**9. PRODUCTION INTEGRATION**\n\nReal Intake submission, durable order/task IDs, genuine progress, persistent report archive, verified hashes, automatic retrieval/settlement, wallet recovery and free retrieval retries. Provide keeper/indexer, backend, monitoring, SDK/ABI, deployment scripts and exact configuration/hosting requirements. Investigate shorter domain alias imdpicksai.imd.site or imdpicks.imd.site without rebuilding; report unsupported permissions. Keep payments paused until authorized deployment and verified live delivery.\n\n**10. ACCEPTANCE & DELIVERY**\n\nTest seven sports, 1/5/14-event requests, alternative markets, 11 languages, mobile/desktop, dynamic deadlines, payment allocations, burns, refund races, report recovery, data refresh, settlement and leakage prevention. Run Foundry unit/fuzz/invariant/fork tests where available; independent review and fix critical/high findings.\n\nDeliver working source changes, reproducible tests, actual sample outputs, security report, setup and activation checklist. List completed/partial/blocked requirements with evidence and exact missing APIs, permissions, costs or infrastructure.\n\nPrioritize payment safety and deadline fix, then data and intelligence. No mockups, fabricated data, tests, agent counts or functionality. Do not deploy contracts, execute live transactions or activate payments in this follow-up.","parentJobId":"159c62f6-b015-4241-b051-cbefccab7d8c","planHash":"828e7886a0f06500acaa3e238a1c87d751e3160b0369d0c7de0436a9ce0f54bd","previousHash":"39f3146015816774a3967809fbbe89e1194193010b8730f04b3c38904de1aa24","projectId":"e6174a1e-e3ce-418c-8881-78938415976c","publication":{"commit":"a956120fa11d49f6f8c20ba34d8c50f43bf79b1e","deliveredAt":"2026-11-28T21:49:47.715Z","repoUrl":"https://github.com/identity-md-launches/launch-3500-imd-picks-complete"},"receiptIdentity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"registry":"0xb6d0a187b050fa5bb0b87033a203f37becf4a775","research":[],"schema":"identitymd-work-v1","signals":[],"site":{"cid":"bafybeibhcmiwzczv7tzl6gmtna75oeziai624w75nah4zzmledzdzeznlu","ensName":"imd-picks-you-select-the-ga-e617.identitymd.eth","namingTransaction":"0xf9a593d37cd6ed377fed6be98bd9c417a8c07034d030de84d8198735d7811244"},"snapshotHash":"1f2955bc023ab32aa3b5d5c7cbac261d27f1013b64e474244c318bc86f4260ea","state":"completed","submissions":[{"artifacts":[],"attempt":1,"bundleHash":null,"device":"fa99051b60a858d6","findings":[],"hash":"2332fe2444f7b2dd5d43a1d56c1c37cbcd70bdb31d19d7cd540c9bc27ba8b381","nodeId":"5e4250f9-ffa6-4445-a6cb-a624dad850ed","outcome":"completed","summary":"All 12 findings from last round are fixed, and I found nothing new I could reproduce. `.imd-findings.json` holds `{\"findings\":[]}`.\n\n| Area | Last round | This round |\n|---|---|---|\n| Re-checked findings still open (12 raised) | 12 high | 0 |\n| Broken features | 12 | 0 |\n| Product on the first screen at 390 | yes | yes |\n| taste@1 checks passed | earlier run | not re-run (scope was re-checking findings) |\n| Copy findings | 0 | 0 |\n| Share card | present | unchanged |\n| New findings | — | 0 |\n\nI didn't rebuild the full requirement list this round. It's the same as last round, with the 12 items below now marked met. The one-sentence idea is also unchanged: a navy/mint picks desk where you choose games and pay 1 IMD for a Swarm analysis, carried by the matchup card.\n\n**How I checked:** I ran the offline tests in a temp copy of `web/`: 30 passed, 0 failed (`server/indexer.test.mjs`, `tests/knowledge.test.mjs`, `tests/engine.test.mjs`). I repeated my own reproductions in Node, and checked the built `dist/` in Chromium (Playwright, with missing system libraries fetched into a temp folder). I didn't modify any repository file apart from the findings file.\n\n1. **The keeper settles before it verifies a report.** Fixed. The contract now refuses to `settle` an order until the verifier has attested it (`NotVerified`). Only the verifier can call `verifyDelivery` or `rejectDelivery`. A delivery nobody verifies becomes refundable after `VERIFY_WINDOW` (6 h). The keeper only attests once every file has been retrieved and `report.json` validates as `imd-picks.report/3` (`indexer.ts:324-343`).\n2. **The checkout preview teaches the old payment flow.** Fixed. With payments paused, the 390 preview now shows one 1 IMD payment plus gas, \"Report due by\" a local time, the 0.5 IMD escrow refund, the 6 h verification rule and the separately funded reserve. The How It Works page no longer contains \"three days\" or \"four payment\".\n3. **Payment reuses eligibility from the last render.** Fixed. The Pay button now calls `recheckForPayment`. That re-reads latency and the schedule, re-runs the eligibility check, and stops with a \"selection changed\" alert if any start time or price moved. It then rebuilds the deadline, event count and job body from the revised selection.\n4. **Failed jobs can validate the short cutoffs.** Fixed. My reproduction (20 failed orders, 60 s each) now gives 0 samples, 20 failures, `validated:false` and the 60 min fallback. A feed older than 10 minutes counts as no measurement, and the browser re-reads the feed every 60 s.\n5. **Late escrow reports can enter the pre-event record.** Fixed. The Track Record and the report timeline now read the escrow order. An order marked Late, holding a late result, or reported after its own deadline is labelled late and kept out of the pre-event record.\n6. **ESPN team IDs merge NBA and NFL teams.** Fixed. Aliases are now scoped by sport (migration 002), and that migration also splits participants that were already merged. Tests \"ESPN team id 1 in NBA and NFL stays two participants\" and \"migration 002 splits…\" pass.\n7. **The scheduler drops ATP and WTA matches.** Fixed. Tennis matches nested inside tournament groupings are now parsed and deduplicated, and unsupported feed shapes are flagged; the test for this passes.\n8. **A refresh with unchanged odds leaves them stale.** Fixed. A repeated odds payload is stored once, keeps its first fetch time, and updates its last-confirmed time; the test for this passes.\n9. **Orders still use report schema v2.** Fixed. New orders request `imd-picks.report/3`, the indexer validates it, and the report page reads and downloads v3. The v2 readers stay for older orders.\n10. **Prediction tables have no production writer.** Fixed. `knowledge/track.ts` registers verified on-time reports as immutable predictions, settles them from ingested results and evaluates them. The indexer calls it through `KNOWLEDGE_DB`, and the test for this passes.\n11. **Russian text clips at 320.** Fi","treeHash":null,"usage":{"cachedInputTokens":1312473,"cost":{"source":"runtime","usdMicros":1036502},"inputTokens":48,"model":"claude-opus-5-5","outputTokens":13464,"runtime":"claude","turns":25,"wallClockMs":355804}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"95e219c7eba8a53f","findings":[{"citation":"resolved","description":"Now: Report verification can be pending or can fail and schedule a retry, but the keeper still finalizes a Delivered order immediately. A recognized callback hash and URI do not establish that the customer can retrieve verified bytes.\nChange to: Keep settlement pending until all required report artifacts are retrieved and their hashes and schema verify. Enforce this gate in the escrow settlement lifecycle as well as in the keeper, and make an unverifiable delivery refundable at a defined deadline.\nWhy: The brief requires verified artifacts before successful settlement and recovery or refunds during outages.","line":283,"path":"web/server/indexer.ts","reproduction":"Any width, including 390px. Run the existing offline check from web/: node --test --test-name-pattern 'keeper refunds a FAILED order' server/indexer.test.mjs. Its Delivered order has no completion entry or report bytes in the test input. Expected for a verification gate: the fake keeper refunds the failed order and makes no settlement call for the unverified order. Actual: the passing test asserts exactly ['refund','settle'] and verifies that the latter order ends Settled. The earlier archive tests separately confirm missing report files can remain pending.","severity":"high","snippet":"        if (o.status === \"Delivered\") { r.settledTx = await settle(ctx.pc, ctx.keeper as never, ctx.escrow, r.orderId); log(`settled ${r.orderId}`); }","title":"bug: the keeper settles before it verifies a retrievable report"},{"citation":"resolved","description":"Now: The shipped export opens the legacy dialog when ESCROW is unset. It shows four payment confirmations and omits the V8 delivery deadline, 0.5 IMD refund, and separate reserve. The escrow version of How It Works also still says refunds open after three days.\nChange to: Render the V8 disclosures in paused preview without requiring a deployed address. Show one 1 IMD payment plus gas, the selected local deadline, the 0.5 IMD escrow refund and the separately funded 0.5 IMD top-up conditions. Keep the four-payment wording on historical receipts and make How It Works use the same deadline and refund terms.\nWhy: Customers must see the amount, refund eligibility and reserve funding before paying, and the brief replaces fixed cutoff disclosures across checkout and tutorials.","line":200,"path":"web/src/main.tsx","reproduction":"390×844, Chromium, local V8 export with no wallet. Select the Tampa Bay Lightning at Florida Panthers matchup, open My Picks, then Preview checkout. My Picks displays a countdown and a 53 min estimate. The dialog presents 'Open the Swarm research job (payment 1 of 4)' plus three separate transfer steps and has zero deadline or reserve lines. For configured escrow, web/src/pages.tsx:933 still renders 'within three days'. No wallet, deployment or payment is needed to test the paused preview.","severity":"high","snippet":"      {pay && (ESCROW ? <EscrowCheckout onClose={() => setPay(false)} /> : <Checkout onClose={() => setPay(false)} onPaid={(id) => { setPay(false); location.hash = `#/research/${id}`; }} />)}","title":"fidelity: the V8 checkout preview teaches the legacy payment flow"},{"citation":"resolved","description":"Now: Checkout filters the selection during render. The Pay handler uses those same events and body, then only checks the contract’s much shorter minimum report window. It never verifies their current schedules, eligibility or odds before submission.\nChange to: Refresh the inputs and rerun the current selection through recheck at the payment action. If a timestamp, price or included event changed, show the revised selection and ask for confirmation before constructing a new quote, order key and job body.\nWhy: The brief requires an eligibility check at the charge boundary and current event data before finalization.","line":131,"path":"web/src/escrow.tsx","reproduction":"Any width, including 390px. With the 60 min fallback, take a single event starting at 12:59 UTC. Eligibility is true at 11:58 UTC. At 12:00 UTC, call recheck on that same event and it returns 0 eligible. Call deliverByFor on the last rendered selection at 12:00 and it still returns 12:57 UTC, a 57 min window. The payment handler at this line reads the old slip, length and job body and uses the latter check only. The review exercised the two predicates locally and payments stayed paused.","severity":"high","snippet":"              : <button className=\"btn primary block\" disabled={!canPay || !!busy} onClick={() => client && found && act(\"pay\", async () => { const deliverBy = deliverByFor(slip); if (!deliverBy) throw new Error(t(\"This event is past its research deadline for a selection of this size.\")); const p = await sdk.pay(publicClient, client, escrow, { clientOrderId: found.nextClientOrderId, events: slip.length, deliverBy, body: job.body }); setReqAt({ requestId: p.requestId, block: p.block }); })}>{t(busy === \"pay\" ? \"Waiting for your wallet…\" : \"Pay 1 IMD and start the Swarm\")}</button>}","title":"bug: escrow payment reuses eligibility from the last render"},{"citation":"resolved","description":"Now: The latency feed treats all callbacks as deliveries, including failures and refusals. Twenty fast failures can unlock the 20-minute target with no successful report. The browser also reads the queue only once for the life of the tab.\nChange to: Validate each tier using recent verified report deliveries, track failures and timeouts separately, and refresh the timestamped queue on a timer and during the pre-payment check. Revert to the unvalidated window when the feed is stale.\nWhy: The brief permits 20/30/45-minute targets only when measured Swarm delivery latency and queue validate them.","line":75,"path":"web/server/indexer.ts","reproduction":"Any width, including 390px. In Node, call latencyOf with 20 current one-event orders, all status Failed, latencySec=60, and reportedAt values two minutes apart. Pass its output to leadFor(1, stats, now). Expected: zero verified deliveries and the 60 min fallback. Actual: it returns 20 samples, validated=true, leadMin=20 and estimatedDeliveryMin=6. web/src/games.tsx:30–33 has one module-load fetch and no refresh.","severity":"high","snippet":"export function latencyOf(s: State) {","title":"bug: failed jobs can validate the short research cutoffs"},{"citation":"resolved","description":"Now: The Track Record uses the Intake completion time and scheduled start only. It does not check the V8 order deadline or Late outcome, and the public report shows the ordinary Report delivered step.\nChange to: Resolve escrow orders by request ID and apply their on-chain deadline and late status to the public report, immutable registration and all performance calculations. Use the historical start-time rule for earlier orders without an escrow deadline.\nWhy: The brief requires late predictions to be flagged and kept out of the pre-event record.","line":481,"path":"web/src/pages.tsx","reproduction":"Any width, including 390px. Compare an escrow order due at 14:58 UTC, with a valid completion at 14:59 and the event starting at 15:00. The contract’s tested deadline rule produces Late, since 14:59 is after 14:58. At this line the same inputs yield before=true, since 14:59 is before 15:00. The Report delivered timeline at web/src/pages.tsx:161 and the performance filter have no escrow timing input. Expected: the public report says Late and the result remains outside pre-event performance.","severity":"high","snippet":"      out.push({ g, result: res[i].result, winner: win[i], market: marketName(g.pick?.market), sport: g.league ?? \"Other\", before: Number.isFinite(start) && recordedAt ? recordedAt < start : null, requestId: a.requestId, block: a.block, at: recordedAt, start: Number.isFinite(start) ? start : undefined, odds: priceOf(g) });","title":"bug: reports marked Late by escrow can enter the pre-event record"},{"citation":"resolved","description":"Now: The alias lookup keys on source and numeric ID alone. ESPN’s Atlanta Hawks and Atlanta Falcons both have team ID 1. Ingesting both stores the Falcons name on the NBA record.\nChange to: Scope provider aliases by sport and entity kind as well as provider and ID. Migrate the alias key and rebuild any participant links that already merged.\nWhy: Matchups, history and settlement need stable participant identities across sports.","line":39,"path":"web/server/knowledge/store.ts","reproduction":"Any width, including 390px. Open the ESPN team endpoints /apis/site/v2/sports/basketball/nba/teams/1 and /apis/site/v2/sports/football/nfl/teams/1. Both return id 1 for different teams. In a fresh in-memory knowledge DB, call upsertParticipant with source='espn', key='1', kind='team', first for nba/Atlanta Hawks and then nfl/Atlanta Falcons. Expected: two rows and IDs. Actual: both return nba:espn:1 and the single stored row reads sport=nba, name=Atlanta Falcons.","severity":"high","snippet":"  const alias = db.prepare(\"SELECT participant_id FROM participant_aliases WHERE source_id = ? AND source_key = ?\").get(p.source, p.key) as { participant_id: string } | undefined;","title":"bug: ESPN team IDs merge NBA and NFL participants"},{"citation":"resolved","description":"Now: The server adapter reads event.competitions and falls back to the tournament envelope. ESPN puts these ATP and WTA matches in event.groupings[].competitions, so the scheduler records zero tennis matches and reports success.\nChange to: Read the top-level competitions and every grouping’s competitions, and deduplicate by provider, tournament and competition ID before writing. Distinguish a real empty scoreboard from an unsupported shape in ingestion health.\nWhy: The brief requires persistent ingestion for tennis as well as the other six sports.","line":35,"path":"web/server/knowledge/sources.ts","reproduction":"Any width, including 390px. Fetch the ESPN ATP and WTA scoreboard endpoints with ?dates=20261101-20261122&limit=300 and pass each unchanged JSON response to parseEspn from web/server/knowledge/sources.ts. ATP returned 5 tournament envelopes with 309 grouped competitions and WTA returned 15 with 625. Both return zero normalized events. Expected: populated match records for grouped competitions with valid dates and competitors. The browser supports the same grouping in web/src/games.tsx:84.","severity":"high","snippet":"    const comps = ev.competitions?.length ? ev.competitions : [ev];","title":"bug: the knowledge scheduler drops live ATP and WTA matches"},{"citation":"resolved","description":"Now: Duplicate payloads are discarded along with the time at which the source last confirmed them. The freshness endpoint then treats repeatedly confirmed odds as stale.\nChange to: Keep the first observation timestamp for history, record the most recent successful confirmation for the current value, and have freshness use that confirmation without adding duplicate payload rows.\nWhy: The brief requires both deduplication and accurate freshness when markets are refreshed.","line":58,"path":"web/server/knowledge/store.ts","reproduction":"Any width, including 390px. In an in-memory knowledge DB insert one upcoming event, then call observe twice for its odds with the same source and payload {total:218.5}, 16 minutes apart. Call freshness at the second fetch time. Expected: one deduplicated odds payload, current confirmation time, no stale odds. Actual: observe returns true then false, latest.odds remains at the original time and stale contains odds immediately after the second fetch.","severity":"high","snippet":"  const r = db.prepare(\"INSERT OR IGNORE INTO observations (kind, event_id, participant_id, source_id, source_url, observed_at, fetched_at, stale_after, payload, hash) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\")","title":"bug: a successful odds refresh leaves unchanged prices stale"},{"citation":"resolved","description":"Now: The actual Intake job asks for imd-picks.prediction/2.0.0. The V8 validator has no callers outside its own test. The report screen exports the v2 conversion.\nChange to: Request imd-picks.report/3 for new orders and validate that version in the indexer and browser against the confirmed delivery time. Export its complete market records and retain the v2 readers and original files for existing orders.\nWhy: The brief calls for production validation of market outcomes, calculations, settlement rules, timing labels and evidence in new versioned reports.","line":88,"path":"web/src/orders.ts","reproduction":"Any width, including 390px. From the repository root run rg -n 'engine/report|imd-picks[.](report|prediction)/' web/src web/server web/tests. Then follow the report page’s JSON download in web/src/pages.tsx. Expected: the Intake job, indexer and customer download consume the v3 schema. Actual: the only import of engine/report is in web/tests/engine.test.mjs, the order uses the v2 constant in predict.ts and the download uses toV2().","severity":"high","snippet":"    `Deliver report.md and report.json in schema ${SCHEMA}: {schema:\"${SCHEMA}\", briefVersion:\"${BRIEF_VERSION}\", modelVersion, generatedAt, agents:{reported:true, count, roles[]}, events:[{eventId:\"espn:<league path>:<espn id>\", espnId, league, label, start, participants:[{id, name, role:\"home\"|\"away\"|\"side-a\"|\"side-b\"}], likelyWinner:{participantId, name, probability}, verdict:\"pick\"|\"no-pick\"|\"insufficient-evidence\", confidence, uncertainty, evidenceQuality, supporting[], opposing[], risks[], sources:[{url, title, accessedAt}], markets:[{id, type:\"moneyline\"|\"1x2\"|\"spread\"|\"total\"|\"team-total\"|\"btts\"|\"method\"|\"round\"|\"distance\"|\"player\"|\"other\", label, line, outcomes:[{id, label, participantId, line, probability, interval:[low, high], odds:{decimal, american, sportsbook, observedAt}, recommended}]}]}], parlay:{legs, probability, correlationNote}, followUp}. List EVERY outcome of each market (both fighters, home/draw/away, over and under) with your probability, so the outcomes of one","title":"fidelity: the order, archive and downloads still use report schema v2"},{"citation":"resolved","description":"Now: The knowledge DB defines predictions, settlements and model versions, but its scheduler only has a sports-feed ingestion path. The verified report indexer archives files and the browser backtest stores its snapshots in localStorage.\nChange to: Register each verified, on-time report outcome from the indexer using its chain delivery timestamp and a stable prediction ID, settle it against a provenance-stamped final result, and persist model evaluations and promotions in the database with sample sizes and the cutoff.\nWhy: The brief calls for automatic, immutable registration, settlement and continuous learning across visitors.","line":52,"path":"web/server/knowledge/migrations/001_init.sql","reproduction":"Any width, including 390px. From the repository root run rg -ni 'insert.*(predictions|settlements|model_versions)' web/server web/src web/tests. Expected: a production writer from a verified report and a settlement writer. Actual: only two test INSERTs appear, both in web/tests/engine.test.mjs. Running the knowledge pass produced 61 events across six sports, 61 schedule observations, 28 odds and 18 results, with no prediction or settlement writer.","severity":"high","snippet":"CREATE TABLE IF NOT EXISTS predictions (\n  id TEXT PRIMARY KEY, event_id TEXT NOT NULL, market TEXT NOT NULL, outcome TEXT NOT NULL,\n  probability REAL NOT NULL, model_version TEXT NOT NULL, report_hash TEXT NOT NULL,\n  recorded_at INTEGER NOT NULL, event_start INTEGER NOT NULL,\n  CHECK (recorded_at < event_start)  -- only pre-event predictions can be stored\n);","title":"fidelity: immutable prediction tables have no production writer"},{"citation":"resolved","description":"Now: A nowrap button, the header flex row, the hero’s intrinsic grid minimum and the selection dock all exceed the space for Russian text. The headline and explanatory copy are clipped through the middle of words.\nChange to: Allow long translated action labels to wrap while retaining their minimum height, set the hero grid track to minmax(0, 1fr) and .hero-copy to min-width:0, and let the dock actions wrap onto a second row at narrow widths.\nWhy: The brief requires 11 accessible translations and readable mobile controls and labels.","line":51,"path":"web/src/styles.css","reproduction":"320×700 in Chromium. Open Home, set the language picker to Russian, then add one available event. The document is 341px wide for a 320px viewport. The Connect button ends at x=341, .hero-copy at x=401 behind the hero clip, and the Preview checkout dock button at x=348. The screenshot shows clipped words in the title and pay/pause copy. The page is 320px wide in English with the same selection.","severity":"high","snippet":".btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:44px;padding:0 var(--s4);border-radius:var(--r-s);border:1px solid transparent;font:600 var(--t-s)/1 var(--font-body);color:var(--text);background:var(--card-2);cursor:pointer;text-decoration:none;white-space:nowrap;transition:background-color .15s var(--ease),color .15s var(--ease),border-color .15s var(--ease),transform .1s var(--ease)}","title":"accessibility: Russian text clips and controls overflow at 320px"},{"citation":"resolved","description":"Now: The language picker translates the report interface. The delivered Markdown continues to render with its original language and text. The page discloses the missing translation.\nChange to: Offer a separately labelled localized report body in each supported language, with the verified original still available. Preserve exact prices, probabilities, source URLs and source timestamps in the localized view and downloads.\nWhy: The brief asks for full UI and report translation in all eleven languages.","line":341,"path":"web/src/pages.tsx","reproduction":"390×844 in Chromium. Open #/r/0x8d807277a9e0548416d5f6c18b45cf1bb603404ca747f9e777cee130a29fba2c/26510890, then change English to French or Japanese. The original mainnet logs and artifact hashes verify. The page heading changes to 'Analyse de 14 événements' or '14 件の分析', but .report-text [lang] stays lang=en and its complete text is byte-for-byte identical across all 11 picker choices. Expected: a localized report view and the unchanged verified original.","severity":"high","snippet":"      {f.artifacts ? (f.textOk && f.text && <div className=\"card report-text\"><h2>{t(\"Report\")}</h2>{foreign && <OriginalNote l={reportLang} />}<div lang={reportLang}><Markdown text={f.text.slice(0, 200_000)} /></div></div>)","title":"fidelity: switching languages leaves the report body untranslated"}],"hash":"29a650be022827370aa9b6d6fb46122e9b47d67af7480141a65fa4f0b9c1290a","nodeId":"5e4250f9-ffa6-4445-a6cb-a624dad850ed","outcome":"completed","summary":"| Area | V7 baseline | V8 review |\n|---|---|---|\n| Requirements | Unreported | **90** · 48 met, 24 missing, 1 faked, 1 after review, 16 need the requester |\n| Broken features | Unreported | **7 bugs** · 12 findings total, including 4 fidelity findings and 1 accessibility finding |\n| Product on the first screen at 390px | Yes | **Yes** · “Select events” at y=418px, first selectable matchup fully visible at y=622–790px |\n| taste@1 | 16/16 recorded | **16/16**, including a run with live ESPN schedules |\n| Copy findings | Unreported | **1** · the paused checkout describes the legacy payment flow |\n| Share card | Present | **Present** · 1200×630 site preview and downloadable report PNG |\n\n**Keep payments paused.** The keeper can settle before verifying a retrievable report, checkout can reuse eligibility from its previous render, and failed jobs can qualify a tier for shorter deadlines. The public Track Record can also count a report the escrow classified as late. The [findings file](/root/.identitymd/work/0b400c87-be30-43ac-9f04-ee10d1e81f19/5e4250f9-ffa6-4445-a6cb-a624dad850ed/.imd-findings.json) contains the exact source snippets, reproductions and requested changes.\n\nThe named domain served the V7 export, so I tested the checked-in V8 build locally. Chromium and WebKit completed selection, comparison, saving and paused checkout. I verified 1-, 5- and 14-event previews, all 11 language choices, and the historical UFC report against its original mainnet logs and artifact hashes. Foundry passed 61 local checks and 8 mainnet-fork checks. The 12 indexer tests, 10 engine tests, translation dictionary check and byte-for-byte export rebuild also passed. Application source and the export were untouched.\n\n**Design idea.** IMD PICKS is a sports research desk that uses mint to mark choices and countdowns against a navy, arena-backed interface.\n\n## Requirement audit\n\n### Continuity and release\n\n- **Met** · Continue from V7 job `159c62f6-b015-4241-b051-cbefccab7d8c`. The checkout history and `docs/V8_REPORT.md` establish continuity.\n- **Met** · Preserve the existing design, domain, branding, features and integrations. The canonical domain, navy/mint system, routes, wallet integration and historical report reader carry forward in `web/index.html`, `styles.css` and `main.tsx`.\n- **Met** · No new website or contract deployment, live transaction or payment activation. The checked-in export has the payment gate closed. `web/src/config.ts:93–100`\n- **After review** · Publish the V8 export under the existing domain. The [named site](https://imd-picks-you-select-the-ga-e617.imd.site/) served HTML matching the V7 commit.\n\n### 1. Payment security\n\n- **Met** · Fix the V7 late-delivery refund race and make the on-chain outcome idempotent and auditable. V8 uses a per-order deadline and records delivery, refund and finalization timestamps. The boundary, replay and settle-or-refund tests passed. `contracts/src/ImdPicksEscrow.sol`, `contracts/test/ImdPicksEscrow.t.sol`\n- **Met** · Protect the reserve and enforce eligibility and deadlines. The reserve pays the original payer once and checks refusal, late delivery, grace period and Intake completion. `contracts/src/ImdPicksRefundReserve.sol:92–129`\n- **Missing** · Enforce verified artifacts before settlement. The keeper can settle while artifact retrieval or verification is pending. `web/server/indexer.ts:269–285`\n- **Met** · Never charge the same V8 order twice. The order ID binds the payer, chain, escrow and client ID. An existing ID reverts, and the SDK offers another attempt after refund. `ImdPicksEscrow.sol:163–203`, `engine/sdk.ts:96–110`\n- **Met** · Test failures, timeouts, late reports, replay, reentrancy and unauthorized access. The existing Foundry unit, fuzz, invariant and fork suites passed.\n- **Missing** · End-to-end outage safety. Archive retry and callback-outage tests passed, but the keeper regression test expects settlement even with no report bytes. `web/server/indexer.test.mjs:294–306`\n- **","treeHash":null,"usage":{"cachedInputTokens":8309888,"chain":[{"calls":54,"chainId":1,"failed":0,"own":52,"public":0,"refused":2}],"cost":{"source":"estimated","usdMicros":1782677},"inputTokens":250019,"model":"gpt-6.2-sol","outputTokens":45165,"runtime":"codex","turns":6,"wallClockMs":1032177}},{"artifacts":[],"attempt":1,"bundleHash":"eaf6ed73762a1d66a8670d0da4bf9269c4b094ba00eaeeed1a017ca2d2b63e46","device":"de319b702da6aa2e","findings":[],"hash":"62bce3cbe2b1a1655b7ba3ae543db656e10a1d0c4281bbf0d752029622a34990","nodeId":"ca00b9bc-bc56-4717-95a4-1d1110cf8ba3","outcome":"completed","summary":"I've fixed the V7 late-delivery refund bug in the contract source, replaced the fixed three-hour cutoff with dynamic deadlines across the site, and added a sports data store with live ingestion. Nothing was deployed, no transaction was sent, and payments stay paused. Contract, indexer, engine and translation tests pass and the production build succeeds, but nothing was checked in a browser this round: the design probe couldn't start Chromium here (`libnspr4.so` missing).\n\n**Payment security (`contracts/src/ImdPicksEscrow.sol`, now version 8)**\n- **The bug:** in V7, a report that arrived after the 3-day timeout but before anyone claimed a refund was still settled. The customer paid the burn and both developer rewards for a late report, and the outcome depended on which transaction landed first.\n- **The fix:** each order now carries its own deadline, `deliverBy`, set just before the earliest event starts. The contract only accepts deadlines between 10 minutes and 3 days after payment.\n  - A verified report on time settles: 0.25 IMD burned, 0.125 IMD to each developer wallet.\n  - A report after the deadline is marked Late. It refunds 0.5 IMD and never settles.\n  - Settle and refund can never both happen for the same order, whatever the transaction order.\n- **Bad reports:** a report with no hash or no link counts as a Swarm failure and is refundable.\n- **Refund reserve:** it pays the second 0.5 IMD only for Swarm failures, unverifiable reports, or no report at all. The no-report case waits one day and requires the Intake to still show the job unfinished. Late reports and refusals get no top-up.\n- **Tests:** 69/69 Foundry tests pass, including 8 against the real IMD token and Intake on a mainnet fork. That fork run confirms IMD has 18 decimals. The SDK, ABI, deploy script and indexer are updated to match; the indexer's keeper now refunds Late orders.\n\n**Three-hour cutoff removed** (`web/src/engine/deadline.ts`)\n- **Where it changed:** Sports, Home, follow-ups, the selection panel, checkout and tutorials.\n- **What each event shows:** its research deadline in local time with a live countdown. The checkout also shows an estimated delivery time.\n- **Recheck:** the selection is rechecked before paying, and events past their deadline are named and left out.\n- **New texts:** translated into all 11 languages.\n- **How deadlines are set:** from measured Swarm delivery times, which the indexer now serves at `/latency`. The 20/30/45-minute targets apply only once a tier has at least 20 measured deliveries that fit inside the target.\n- **Current values:** no V8 escrow is live to measure anything, so the site shows conservative defaults of 60/75/90 minutes and says so.\n\n**Data, reports and learning**\n- **Sports database** (`web/server/knowledge/`):\n  - built on SQLite, with migrations and stable participant IDs;\n  - every record keeps its source and timestamps and has a freshness limit;\n  - duplicates are skipped and conflicts between sources are logged;\n  - includes retries, a scheduler, a read-only API, and a predictions table that refuses edits, deletions and anything recorded after the start.\n- **Live run:** two passes over 9 leagues: 61 events and 86 participants stored, and no duplicates on the second pass. ATP/WTA returned no events at that moment.\n- **Report schema v3** (`web/src/engine/report.ts`) checks multi-market maths: probability sums, intervals, break-even, no-vig from the same market only, and EV. It also refuses forced picks, blocks combining correlated same-event legs, and requires late reports to be labelled late. Scoring (Brier, log loss, calibration, ROI) and a check against using future data are included.\n\n**Not done, and what each needs**\n\n| Item | Status | What's missing |\n|---|---|---|\n| Real Swarm agents and new multi-market sample reports | Blocked | A paid Swarm job, which is a live transaction this job forbids. No samples or agent counts were made up. |\n| Stats, rankings, injuries, lineups, news | Partial | A licens","treeHash":"883b47239fe373fb11a01f286b362806e74881e9","usage":{"cachedInputTokens":5415380,"chain":[{"calls":40,"chainId":1,"failed":0,"own":38,"public":0,"refused":2}],"cost":{"source":"runtime","usdMicros":4086470},"inputTokens":94,"model":"claude-opus-5-5","outputTokens":84503,"runtime":"claude","turns":49,"wallClockMs":843052}},{"artifacts":[],"attempt":1,"bundleHash":"e86bbbdd91a805acc290d5d7ee7160c9e11fddf2a620ca4952addcbffbd66188","device":"0e3b71e2ffcd200b","findings":[],"hash":"8f10fd4ad25bbd76c3508e17456444a5a2687f17017bf9eb2b0cdda43a3de88c","nodeId":"ca00b9bc-bc56-4717-95a4-1d1110cf8ba3","outcome":"completed","summary":"","treeHash":"ea0aab15f47e1c2f2b23b162570be6d2ef7b3860","usage":{"cachedInputTokens":6667032,"chain":[{"calls":56,"chainId":1,"failed":0,"own":54,"public":0,"refused":2}],"cost":{"source":"runtime","usdMicros":4480576},"inputTokens":99,"model":"claude-opus-5-5","outputTokens":78391,"runtime":"claude","turns":53,"wallClockMs":852485}}],"verification":[{"checks":[],"detail":"paths and tree verified; no suite was run for this kind of work","evaluation":"structural","profile":"none","status":"accepted","submissionHash":"62bce3cbe2b1a1655b7ba3ae543db656e10a1d0c4281bbf0d752029622a34990","verifiedTreeHash":"883b47239fe373fb11a01f286b362806e74881e9","verifierVersion":"0.1.0+0ce771de"},{"checks":[],"detail":"paths and tree verified; no suite was run for this kind of work","evaluation":"structural","profile":"none","status":"accepted","submissionHash":"8f10fd4ad25bbd76c3508e17456444a5a2687f17017bf9eb2b0cdda43a3de88c","verifiedTreeHash":"ea0aab15f47e1c2f2b23b162570be6d2ef7b3860","verifierVersion":"0.1.0+0ce771de"}]}