# IMD Picks — Integration & Acceptance-Test Checklist Binds to `imd.field-dictionary/1.1.0-proposed`, `policy.id="imd.comparison-policy/1.0.0-proposed"`, `schema_version="imd.forecast-report/1.1.0"`, modes `single/slate/refresh/review` (IMD Swarm request pack), and the locale/rendering contract. All paths are relative to `/core` unless absolute. `P`=ppm (0–1,000,000). Units: EV in signed integer ppm per unit stake; odds as `display_decimal` (half-up, `display_dp`); clocks RFC 3339 `Z`. All tests assume IMD Swarm as sole engine, existing allowance, no added fee. ## 1. Synthetic fixture catalog (reusable, exact arithmetic) - **F-S1** — single tennis event `e1` (A="Mira Sen"/B), market `m1`, partition `AB`, selections `sA`(k1)/`sB`(k2); classes k1=600000, k2=400000 ppm. `cutoff=2030-01-01T12:00:00Z`, `start=2030-01-01T18:00:00Z`, lock=cutoff. Quote `q1` fractional `4/7` = exact `11/7` = `display_decimal "1.57"` dp2. - **F-S1-CLK** — F-S1 clocks: source `12:00:00Z`, decision `12:04:59Z` (age 299 s), issue `12:05:00Z` (age 300 s), freeze `12:05:01Z`. - **F-S1-REN** — F-S1 render clocks: decision `12:00:20Z`, issued `12:00:30Z`, frozen `12:00:40Z`, observed `12:00:05Z` (age 15 s at observe, 25 s at issue). Settlement vector (win/half_win/push/half_loss/loss/void)=[600000,0,0,0,400000,0]. EV point = round(1e6×(0.6×11/7−1)) = **−57143**; conservative (k1 floor 400000 from uncertainty scenario) = **−371429**. - **F-SLATE2** — e1(sA,600000) + e9(sC,592000), unknown dependence, n=2. - **F-SLATE14** — e1..e14, 14 independent-looking legs, each marginal 950000 ppm, dependence unregistered, n=14. - **F-IND2** — e1(sA,600000) + e15(sC,500000), registered mutual independence. - **F-COND2** — e1(sA,600000 marginal) + e16(sD, p(D)=500000 marginal, p(D|A)=400000), validated all-prior conditioning. - **F-PQD2** — e1(sA,500000) + e17(sE,500000), justified pairwise PQD lower bound only (no independence/conditioning proof). - **F-NEST** — e1 leg `sA` (600000) + leg `sA-straight` (subset class k1a⊂k1, 350000), same event, nesting proof. - **F-EXCL** — e1 leg `sA` + e1 leg `sB` (same partition, complementary), exclusion proof. - **F-DUP** — leg(e1,m1,sA,null) + leg(e1,m1,sA,null) repeated, identity duplicate. - **F-MISS** — e1(sA,600000) + e18(unresolved class, marginal unavailable). - **F-SAMEMKT** — e1 leg `sA` (m1) + e1 leg on `m2` (totals, different market, same event), unvalidated shared-entity dependence. - **F-REFRESH-M** — prior `{id:r-S1, revision:1, core_sha256:}`, trigger `{kind:"lineup", observed_at:2030-01-01T15:00:00Z, affected_event_ids:[e1]}` (confirmed absence, material), pre-start. - **F-REFRESH-P** — same prior, trigger `{kind:"price"}` only, no sporting change. - **F-REFRESH-STALE** — same prior, trigger observed after `start_utc` (2030-01-01T18:00:01Z). - **F-REVIEW** — prior r-S1 rev1, settlement `{status:"final"}`, result evidence: B wins (k1 false, k2 true). - **F-BUDGET-OK** — meter `{available:8, minimum:5, qc:2}` (matches request-pack S1 meter) on F-S1. - **F-BUDGET-GAP** — meter `{available:3, minimum:5, qc:2}` on F-S1. - **F-EMBARGO** — evidence item `permission:"prohibited"` (paywalled injury note) attached to e1 pre-lock. - **F-SHARED** — e1 and e19 (same competition/venue/day) both citing evidence id `ev-weather-1`. - **F-LABELREV** — F-S1-REN report, `report_pack_version` bumped, `core_sha256` unchanged, `revision` unchanged. - **F-SPARSE** — calibration bucket (sport×market×horizon) with sample count below any validated minimum. ## 2. Test cases | ID | Fixture / cutoff | Operation | Expected value / null+reason | Pass condition | Deliverable | |---|---|---|---|---|---| | IT-01 | F-S1, cutoff T0 | Mode single | `/core/markets/0/sporting/classes` k1=600000/600000, k2=400000/400000 (D.value); primary `sA`; `locked_utc=T0` | Lock at cutoff; class sum=1,000,000; post-lock class edit ⇒ `SPORTING_HASH_MISMATCH` | Schema (5), Protocol (1) | | IT-02 | F-S1-CLK | Mode single, quote injected post-lock | decision age=299 (eligible), issue age=300 (eligible, inclusive), `+1s` ⇒ age 301 (stale, null EV, `unknown/no_bet`) | 300 s boundary inclusive both sides; stale quote never priced | Protocol (1), Schema (5) | | IT-03 | F-S1-REN | Mode single | `/core/contracts/0/settlement_ppm`=[600000,0,0,0,400000,0]; `decision`={low,no_bet,point=−57143,conservative=−371429}; `/core/joint`=null | Exact integer EV match; verdict `no_bet` despite priced primary (`not_value`) | Schema (5) | | IT-04 | F-SLATE2, T0 | Mode slate, legs=2 | bounds=[192000,592000]; p/interval=null; verdict no_bet | bounds = max(0,Σp−(n−1)·1e6)..min(p) exactly; no point emitted | Protocol (1) | | IT-05 | F-SLATE14, T0 | Mode slate, legs=14 | bounds=[300000,950000] (Σ=13,300,000; (n−1)e6=13,000,000) | 14 accepted as valid count (1–14); unknown dependence ⇒ bounds only, no point | Protocol (1), Schema (5) | | IT-06 | F-SLATE with legs=0 | Mode slate | `E_LEG_COUNT`, request rejected pre-closure | Validation fires before any evidence gathering/charge | Protocol (1) | | IT-07 | F-SLATE with legs=15 | Mode slate | `E_LEG_COUNT`, request rejected | Same as IT-06 at upper bound | Protocol (1) | | IT-08 | F-DUP, T0 | Mode slate, legs=2 | leg 2 status `unavailable/duplicate_leg`; leg retained with reason; joint cannot use it as independent info | Both legs visible; no silent drop; no double-counting | Protocol (1) | | IT-09 | F-EXCL, T0 | Mode slate, legs=2 | p=0, proof bounds=[0,0], verdict no_bet | Exclusivity proof overrides Fréchet; p exact zero, not merely low | Protocol (1) | | IT-10 | F-NEST, T0 | Mode slate, legs=2 | p=350000 (subset ppm), proof=nesting, no bounds needed | Nested conjunction = subset's own marginal exactly | Protocol (1) | | IT-11 | F-SAMEMKT, T0 | Mode slate, legs=2 | unvalidated dependence ⇒ bounds (Fréchet) only; p/interval null | Same-event cross-market pair without a registered method falls back to bounds, not independence | Protocol (1) | | IT-12 | F-IND2, T0 | Mode slate, legs=2, registered independence | p=300000 (600000×500000/1e6); fits bounds [100000,500000] | Validated point must lie within Fréchet bounds; method label = mutual_independence | Protocol (1) | | IT-13 | F-COND2, T0 | Mode slate, legs=2, registered conditioning | p=240000 (600000×400000/1e6); fits bounds [100000,500000] (marginal p(D)=500000) | Method label = all_prior_conditioning; appending a leg under this fixed model cannot raise p above the unconditioned product | Protocol (1) | | IT-14 | F-PQD2, T0 | Mode slate, legs=2, justified pairwise PQD | lower=250000 (500000×500000/1e6), upper=min(p)=500000; p=null (bound only) | PQD lower bound ≥ naive Fréchet lower (0); pairwise independence claim alone is rejected as insufficient | Protocol (1) | | IT-15 | F-MISS, T0 | Mode slate, legs=2 | joint state `unavailable`; p/bounds/interval=null; both legs retained, e18 leg carries `missing_marginal` reason | Missing marginal blocks any bound, not just the point | Protocol (1) | | IT-16 | F-S1-REN joint | Mode single/slate | joint statistical `interval` (if any) carries level/method distinct from `bounds` (proof) field | Bounds (proof-typed) never conflated with confidence interval (statistical) in schema or copy | Schema (5) | | IT-17 | F-S1-REN, offer test | Mode slate with exact combined-offer quote (same operator/edition/product/leg-set, complete void/half-state model) | `joint.offer`={quote_id,product,er_ppm,er_conservative_ppm} computed; no_loss requires joint settlement modeling | Only an observed exact matching offer prices value; a constructed/synthesized product never qualifies | Protocol (1), Schema (5) | | IT-18 | F-S1-REN, 3 books, matching rules | 3 quote rows, identical market/line/edition | `comparable_multi`; best among eligible ranked by exact rational, ties preserved | Ranking uses exact `price.exact`, not rounded `display_decimal` | Protocol (1) | | IT-19 | F-S1-REN, 3 books, one different line/edition | 3 quote rows, one with different `rules_ref`/line | mismatched row gets own standalone contract, excluded from the comparable set; status `single_eligible` for the matching pair or `comparable_multi` only among truly matching rows | Books compared only on identical contracts; no cross-line averaging | Protocol (1) | | IT-20 | F-S1-CLK, stale/unknown clock | 1 quote with `source_quote_utc=null`, no live-verified flag | `QUOTE_CLOCK_ORDER` fail or `effective_utc` fallback with `why` set; ineligible if unresolved | Inconsistent/missing clock never silently treated as fresh | Protocol (1) | | IT-21 | F-S1-REN, absent book vs absent market | book=bet365 has no quote at all vs. book=BET99 offers the market but no matching selection line | Both render as typed gap rows but with distinct reason codes (`no_quote` vs `no_eligible_price`) | Absent-book and absent-market reasons are never merged into one generic "unavailable" | Protocol (1), Schema (5) | | IT-22 | F-S1-REN | Mode single | primary `sA` supported (confidence low... wait medium+ required for value) renders with explicit `no_bet` even though a sporting primary exists | `no_bet` must be shown prominently alongside a supported primary, never suppressed because a pick exists | Schema (5) | | IT-23 | F-S1-REN panels | Mode single, render | `alternatives` panel shows `sB` with price `unavailable`, no independent EV computed for it | Alternative market with no eligible price is listed but excluded from value testing (status stays `unknown/no_bet`, not silently dropped) | Schema (5) | | IT-24 | F-LINEUP-conflict (projected "X starts" superseded by confirmed "X out" before lock) | Mode single | final sporting evidence uses confirmed state only; projected version retained in `complete_reasoning`/`risks` as countercase; confidence capped if material conflict unresolved | Confirmed evidence wins at lock; superseded projection is preserved, not deleted | Protocol (1) | | IT-25 | F-REFRESH-M, trigger at 15:00Z (pre-start) | Mode refresh | new revision 2, `supersedes=r-S1`, new `cutoff`, new sporting lock + joint re-validation, linked delta findings | Material sporting trigger forces a brand-new pre-price lock, not a patch | Protocol (1) | | IT-26 | F-REFRESH-P, price-only trigger | Mode refresh | `sporting_sha256` unchanged from r-S1; pricing + verdict recomputed only | Price-only trigger never re-opens the sporting lock | Protocol (1) | | IT-27 | F-REFRESH-STALE, trigger after `start_utc` | Mode refresh | disposition `superseded_or_stale`; no new pre-event report issued | At/after start, publication of a new pre-event report is blocked | Protocol (1) | | IT-28 | F-REFRESH-M replayed via frozen r-S1 historical view | Mode single (historical read) | r-S1 rev1 still renders with its own frozen hash/verdict unchanged; rev2 is a separate record | Frozen report is immutable and replayable byte-for-byte after a later revision exists | Schema (5) | | IT-29 | F-EMBARGO | Mode single, pre-lock | embargoed item excluded from sporting classes/pricing inputs; panel shows permitted excerpt/summary + `access_reason`, full text withheld | Prohibited-permission evidence never enters the locked sporting payload; only disclosed with a reason, never silently used | Protocol (1) | | IT-30 | F-EMBARGO, permission revoked after capture | Mode refresh (re-check) | item purged from reasoning inputs on next revision; replaced with reason `permission_revoked` | A later permission revocation is honored in the next cutoff/revision, not retroactively hidden in a frozen one | Protocol (1) | | IT-31 | F-LABELREV | Mode single (view only) | `core_sha256`, `id`, `revision` unchanged; `report_pack_version` increments; cache key `(id,revision,core_sha256,locale,catalog_version,report_pack_version)` changes | A copy-only correction never creates a new analytical revision | Rendering contract | | IT-32 | F-REVIEW | Mode review | Brier (binary_0_1, scale max 1,000,000) = (0.6−0)²×1e6 = **360000**; log loss (nats) = −ln(1−0.6) ≈ **916291** micro-nats; realized return logged separately from the score | Scores computed only from verified settlement truth joined by ID; original forecast fields in `/core` stay untouched | Calibration/QC (6) | | IT-33 | F-REVIEW, reconstruction step | Mode review | "reconstructed original cutoff inputs" use only evidence with `observed_at ≤ cutoff_utc` of r-S1 | Any evidence with `observed_at` after original cutoff used in the reconstruction ⇒ `HINDSIGHT_LEAK` failure | Calibration/QC (6) | | IT-34 | F-SPARSE | Mode review / calibration | `calibrations[].scores[]` entry has `value=null`, `why="insufficient_sample"` (or equivalent typed gap); confidence tier capped, no 900000 ppm interval emitted | Sparse/unvalidated strata never receive a numeric calibration score or a validated interval | Calibration/QC (6) | | IT-35 | F-SHARED | Mode slate, legs over e1+e19 | `ev-weather-1` appears once with `subject_ids` covering both events; not fetched/charged twice | Shared lookup reused by scope/edition/time; meter shows one charge, not two | Protocol (1) | | IT-36 | F-BUDGET-OK | Mode single | QC 2 units reserved first; research proceeds (8−2=6≥5 minimum); normal report issued | QC reservation always precedes research spend | Protocol (1) | | IT-37 | F-BUDGET-GAP | Mode single | QC 2 reserved first (leaves 1 < minimum 5); event retained with `budget_gap` note; verdict `unknown/no_bet`; publication withheld if QC itself unmet | Underfunded event is never dropped silently and never bypasses the QC floor | Protocol (1) | | IT-38 | F-S1-REN, dangling ref injected into `panels.sources.refs` | Mode single, render | integrity check fails, publication blocked | Fail-closed on any dangling panel reference or incomplete snapshot | Rendering contract | | IT-39 | F-S1-REN, all locales | Render (en, fr, es, ru, ja, zh, pt, it, th, en-NG, pcm, hi) | identical `core_sha256`, `id/revision`, 600000 ppm, `11/7`/`1.57`, `no_bet` in every locale; numbers/verdict codes invariant | Prose differs, all bound numerics and codes identical across every configured locale including hi | Rendering contract | | IT-40 | F-S1-REN, unregistered locale id `xx` | Render | falls back to `en` per site alias resolution | Blank/unknown locale never renders untranslated or blank | Rendering contract | | IT-41 | F-S1-REN, missing critical copy (no_bet_reasons blanked) | Render | locale either shows a complete, permitted, explicitly-labelled English view, or is withheld with a logged key/locale/core-id/outcome | Critical copy (headline/confidence/timing/verdict/reason/odds-state/risk) is never shown partially translated or silently blank | Rendering contract | | IT-42 | F-S1-REN, missing optional copy | Render | shows reviewed English segment tagged `lang="en"` with partial-translation flag, not withheld | Optional copy degrades gracefully; only critical copy can trigger full withholding | Rendering contract | | IT-43 | F-S1-REN panels, fresh load / locale switch | Render | exactly 9 panels (`alternatives, bookmaker_quotes, momentum, h2h, lineups_entries, risks, complete_reasoning, sources, other_findings`), all closed, `aria-expanded=false` | Panel key set and closed-by-default state exact on load and after any locale/revision change | Rendering contract | | IT-44 | F-S1-REN, contradiction (risk "injury unconfirmed" vs a finding asserting fitness) | Render, expand risks/sources | contradiction entry with ≥2 reciprocal finding links, `status` one of resolved/unresolved/modeled, `resolved_by` D-field, reachable from risks or complete_reasoning | Every contradiction is bidirectionally linked and reachable from a panel; none orphaned | Rendering contract | | IT-45 | F-S1-REN, panel expand/collapse/locale switch | Render, instrumented | research/pricing call counters stay at 0 through all interaction | Browsing a frozen report never triggers new Swarm research or pricing | Protocol (1), Rendering | | IT-46 | F-S1-REN, `605500` ppm / `−57500` ppm substituted | Render, en+hi | `60.6%` / `−5.8%` in both locales | Rounding (`percent1`, ties away from zero) identical across locales | Rendering contract | | IT-47 | F-S1-REN, 11 non-hi + hi, source text `lang=es` | Render | source stays byte-identical `"No se ha confirmado una lesión."`; translated glosses neither assert injury nor assert no injury | Original-language evidence is preserved verbatim; translation only paraphrases neutrally | Rendering contract | ## 3. Untestable requirements — missing evidence - **Per-sport source-directory evidence** ("publisher evidence and permitted free access for each enabled sport/source field" across all 20 sports): this item's inputs are the request-pack and locale-contract results only; the verified free data-source directory (batch deliverable 3) is a separate, not-yet-handed item. Without it, only the generic `Evidence` shape (`permission`, `qualification`, `cache_status`, `source_card_id`) can be schema-tested (covered implicitly by IT-01/IT-24/IT-29); no per-sport/per-field access check can be written here. **Missing:** the source-directory item's result. - **Multi-event / slate allowance sizing**: the request pack marks `budget` transport, allowance meter and sizes as explicitly "Unknown." IT-36/IT-37 are written against the one concrete meter given (`available:8, minimum:5, qc:2`, single event). No equivalent meter exists for a 14-leg slate, so exhaustion behavior at slate scale cannot be bound to an exact number. **Missing:** a published per-event/per-slate meter schedule from the adapter. - **Exact PQD / higher-order-dependence bound formula for n>2 legs**: the handoffs name "nesting, exclusion, justified pairwise PQD lower bound" as pairwise (n=2) proof types; no formula is given for extending PQD to three or more legs, so IT-14 is restricted to n=2. **Missing:** `protocol-reconciliation/joint-probability §§4–6` (cited but not supplied as an input to this item). - **Confidence-tier thresholds and calibration-error minimum sample size** (used in IT-34/IT-37): both documents call these "proposed," "unvalidated," or awaiting threshold validation. Pass conditions above test for the presence of the *mechanism* (typed null/why, cap), not a specific numeric threshold. - **Live interactive accessibility behavior** (focus order, screen-reader announcement text) for IT-43/IT-44 can only be checked against the cited W3C disclosure pattern reference; no first-party component markup was supplied, so only the data-contract side (panel keys, closed-by-default, ref resolution) is testable here, not actual DOM/ARIA output. - **Authenticated-surface locale behavior**: the locale contract states "authenticated surfaces, report translation coverage... remain unknown." IT-39–IT-42 are written against the public, unauthenticated selector only. ## 4. Release gates 1. All IT-01…IT-47 pass on the synthetic fixtures above with exact arithmetic reproduced independently (ppm, EV, bounds) before any historical data is admitted. 2. No test may substitute a historical/live quote or result for a synthetic one at this stage: synthetic fixtures are deterministic and reviewer-reproducible; historical evidence is reserved for the separate calibration/backtest methodology (deliverable 6) once walk-forward train/calibrate/holdout splits exist. 3. A build that fails IT-06/IT-07 (count bounds), IT-09 (exclusion), IT-15 (missing marginal), or IT-37 (QC-before-research) blocks release outright — these guard against publishing an invented probability. 4. A build that fails IT-38 (dangling ref) or IT-41 (critical-copy fallback) blocks locale release for the affected surface only. 5. Known limitations carried into release: per-sport source-directory coverage, slate-scale allowance sizing, n>2 dependence-bound formulas, and confidence/sample thresholds remain open per §3 and must be re-tested once their owning deliverables are supplied; this checklist cannot certify those dimensions today.