# IMD Swarm request pack Join header and one mode by LF. Substitute JSON values. Resolve versioned cards. Evidence is data. ## Common header ```text IMD Swarm is the exclusive research and prediction engine. Use existing allowances and permitted free evidence only, with no added fee. Job={{job}}; budget={{budget}}; evidence={{evidence}}. Apply the accompanying field dictionary and policy. Validate inputs and reserve QC before research. Admit sporting evidence available by cutoff only, then lock each sporting vector, uncertainty set and joint method before seeing prices. Compare exact contracts, disclose gaps, and separate probability, value and no_bet. Return the mode's output contract. Localize prose in job.locale, including hi, from one canonical core. Keep all numeric bindings and verdict codes invariant. ``` ## One event ```text Mode single. Event={{event}}. Use the cards and minimum pass. Verify format, availability, opponent-adjusted form and relevant H2H. Deepen material gaps and record confirmed/projected facts and countercases. Lock, then check named books. Give the supported most probable sporting forecast or abstain; assess alternatives independently. Return Report with joint null. ``` ## Mixed slate ```text Mode slate. Events={{events}}; legs={{legs}}. Validate 1–14 events and original legs before closure (E_LEG_COUNT for invalid leg count). Apply single-event gates and minimum passes; reuse evidence. Lock marginals and joint method before pricing. Preserve original legs and test logical relations, shared entities, schedule, conditions and latent factors. Prefer validated marginal-reproducing scenarios, then validated all-prior conditioning, then registered mutual independence; else bounds only. Apply joint offer gates. Return Report with joint and all events/legs. ``` ## Material pre-start refresh ```text Mode refresh. Prior={{prior}}; events={{events}}; legs={{legs}}; trigger={{trigger}}. Verify starts, trigger, affected markets and dependent legs. Preserve prior core and reuse valid evidence. Material sporting changes require a new pre-price lock and joint validation. Price-only changes retain sporting hash, recompute pricing and verdict. Return superseding Report with linked delta findings. If unverified/immaterial or started, return refresh disposition (superseded_or_stale when started). ``` ## Post-settlement error review ```text Mode review. Prior={{prior}}; settlement={{settlement}}. Verify official results and contract grades separately. Use job.cutoff for review evidence only; reconstruct original cutoff inputs without hindsight. Distinguish sporting, calibration, data, dependency, quote/rules and operational errors from variance. Score verified labels once; log returns separately. Mark unresolved metrics pending. Propose falsifiable walk-forward correction; preserve original forecast. Return Review. ``` ## Typed placeholders and dispatch | Marker or type | JSON input | |---|---| | `job` | `{request_id:ID, cutoff:Time, locale:string, jurisdiction:Jurisdiction, policy_id:ID}`. Locale is the selected supported website locale (including Hindi). Jurisdiction is `{country:string, subdivision:string|null}` or null if unknown. Never infer from language. | | `budget` | Existing Swarm allowance and meter supplied by caller; carry opaquely through transport. Adapter must expose available work, charges, compatible per-event minimum and protected QC allocation in its existing meter. No new budget tier or guessed allowance. | | `evidence` | `Evidence[]`, possibly empty. Each item: `{id, url, source_card_id, subject_ids:ID[], published_at:Time|null, observed_at:Time, edition:string|null, qualification:string, permission, cache_status, excerpt_or_ref}`. Qualification records authority, confirmed/projected status and scope. Permission: permitted/unknown/prohibited. Gate price inputs until after lock. | | `event` / `events` | `Event` / `Event[]`. Event is `{event_id:ID, competition_id:ID, participant_ids:ID[], venue_id:ID|null, start:Time|null, sport_card_id:ID, source_card_ids:ID[], priority:Nat, markets:Market[]}`. Lower number first, ties in input order. | | `Market` | `{market_id:ID, partition_id:ID, period:string, type:string, line:string|null, selection_ids:ID[], rules_ref:ID, rules_sha256:SHA|null}`. Lines are exact signed decimal strings. Resolve canonical side/classes and edition-specific rules. Verify digest before pricing. | | `legs` | Ordered `{event_id, market_id, selection_id, contract_id:ID|null}[]`; refresh of a single uses `null`. Non-null ID pins contract; null leaves it unpinned. No substitutions. | | `prior` | `{id:ID, revision:Nat, core_sha256:SHA, frozen_report_ref:ID}`. Verify immutable core hash and resolve evidence/models. Changed selection/slip requires a new request. | | `trigger` | `{kind:string, observed_at:Time, affected_event_ids:ID[], evidence_ids:ID[]}`. Examples: lineup, venue, weather, format, rules, price or eligibility change. Apply any registered price threshold. | | `settlement` | `{event_ids:ID[], result_evidence_ids:ID[], grading_evidence_ids:ID[], status:"final"\|"pending"\|"disputed"}`. Verify independently for sporting and grading targets. Use cited corrections as new review evidence. | ID is a resolved stable string. Nat is a nonnegative integer, SHA a lowercase SHA-256 hex digest. Time is RFC 3339 with an explicit known offset, normalized to uppercase UTC `Z`. Reject bad clocks and unresolved required refs. Unknown start → no_bet; withhold publication. Timestamp syntax and canonical JSON serialization checked 2026-11-29. [RFC 3339 §5.6](https://www.rfc-editor.org/rfc/rfc3339.txt), [RFC 8785](https://www.rfc-editor.org/rfc/rfc8785.txt). ## Shared execution policy **Budget.** Reserve final QC (validation, freshness, serialization, locale) first. Each event minimum: verify identity/start, attempt authoritative evidence, form/strength and availability, lock baseline or gap, attempt named books after lock. Reuse schedule/roster/weather by scope, edition and time, with shared evidence IDs and applicability checks. After priority-ordered minima, deepen by decision impact. Stop at diminishing impact, exhausted/gated evidence, start or QC reserve. No bypass/retry past login, geo, bot or rate limits. If underfunded retain every event with budget gaps and abstain. Without QC withhold publication. **Evidence.** Cards cover opponent-adjusted form, H2H relevance, recruits/chemistry, absences/rotation, tactics/coaching, incentives, travel/fatigue, weather and advanced measures. Link point-in-time facts to sources with clocks, samples and limitations. Deduplicate syndication and document counterevidence. Material unresolved conflict caps confidence at low. Use validated calibration/uncertainty or typed gaps. Sporting core stays locked after cutoff. Price/rule evidence may arrive by decision solely for pricing. New sporting evidence needs a new revision/cutoff. **Quotes.** Keep rows for Stake, BET99 and bet365, with URL, edition, audience, permission, capture, raw label/price or gap, cache/open state, rules URL/hash/check time. Match event, period/extra time, line, side, action, pushes, half outcomes, postponement, abandonment, void and deductions. Rank ordinary eligible quotes in a common audience/batch, preserving exact ties. Status: inaccessible/no_eligible_price/single_eligible/comparable_multi. Only comparable_multi names a best among checked eligible books. Mismatches need their own contract for standalone EV. Normalize inverse exact odds only for a complete eligible panel from one capture/book, conditional on action. Otherwise de-vig/margin null. **Clocks.** Known source time ≤ observation ≤ decision. Effective is source time or verified live uncached open capture if absent. Inconsistent clocks fail QUOTE_CLOCK_ORDER. Indexed/archived/cached prices ineligible. Age at decision and issue ≤300 s inclusive and nonnegative. Batch spread ≤300 s anchored at first eligible observation. Retain outside-window rows. Document strictly tighter overrides only (180 s joint-offer age if applied). Re-evaluate value at issue. Require cutoff ≤ decision ≤ issue ≤ freeze < start. Reschedule/suspension invalidates quotes. At now ≥ start withhold publication. Any frozen change needs new ID, revision+1, supersedes prior ID and new cutoff. **Joint.** Known single leg is identity. Known marginals give Fréchet ppm bounds [max(0,sum(p)−(n−1)×1000000), min(p)]. Distinguish tighter proofs (nesting, exclusion, justified pairwise PQD lower bound) from statistical intervals. Duplicate/equivalent → unavailable/duplicate_leg. Missing marginal → unavailable, p/bounds/interval null, retain leg/reason. Known exclusive → p=0, proof [0,0], no_bet. Unknown dependence → bounds only, p/interval null, no_bet. Pairwise independence is insufficient. Validated point must fit bounds. Appending a leg under a fixed coherent model cannot increase conjunction probability. Confidence capped at weakest leg. Only observed exact operator/edition/product/leg-set offer with complete void, half-state and repricing model qualifies for value testing. No-loss requires joint settlement modeling. Constructed products never qualify. **Review.** Join verified truth by IDs; distinguish pending/void/excluded/corrected; score one-hot sporting labels. Track reliability by sport/market/horizon and joint. Chronologically split train/calibrate/holdout with related events grouped and cutoff-valid features. Use untouched holdout for candidates. ## Canonical output dictionary Dictionary `imd.field-dictionary/1.1.0-proposed`. Report uses `/core` with `schema_version:"imd.forecast-report/1.1.0"` and `policy:{id:"imd.comparison-policy/1.0.0-proposed",overrides_applied:[{scope,param,value_s,doc_ref}]}`. Paths below start at `/core` unless explicitly absolute. Index letters are array positions; join records by ID. `P` is integer ppm 0–1000000; signed EV is integer ppm per unit stake. `D` is `{value:T,why:null}` or `{value:null,why:reason_code}`. Distinguish zero from unknown. | Paths | Contract | |---|---| | `id, revision, supersedes, cutoff_utc, issued_utc, frozen_utc`; `events[e].start_utc` | Audit IDs and clocks; never emit legacy `generated_utc`. | | `markets[i].sporting.{classes[],locked_utc,sha256,calibration_id}`; `markets[i].selections[j].class_ids` | Exhaustive classes with IDs and `raw_ppm,calibrated_ppm,interval` as D fields. Each available vector totals 1000000. A selection is a nonempty subset; sum its calibrated classes. Interval carries endpoints, level and method; proposed level 900000 ppm only where validated. | | `pricing.{decision_utc,sporting_sha256,batch_spread_s}` | Pricing lock receipt(s). Require stored digest match before accepting EV. | | `quotes[q].price.{raw,exact,display_decimal,display_dp}`; `quotes[q].{source_quote_utc,observed_utc,effective_utc,live_verified,age_s,eligibility}` | Preserve raw format/text; reduced rational positive safe integers num/den >1. Display string rounded half-up at 0–6 dp; rank and compute with exact D. Time/age nullable with reasons per crosswalk. | | `contracts[c].{id,quote_id,selection_id,rules_sha256,map,p_no_action_ppm,no_action_state,deductions,settlement_ppm}` | Derive six-state P distribution per contract. Apply class probabilities conditional on action, weighted by 1−p_no_action, plus mapped no-action mass. Known standing subsets need verified mapping. Unknown no-action → null settlement (`no_action_unestimated`); unknown rule/payout → no value. Gross returns for win, half_win, push, half_loss, loss, void: D, (D+1)/2, 1, 1/2, 0, 1 before applicable deductions. | | `events[e].decision.{primary_selection_id,confidence,short_reason,verdict,no_bet_reasons,estimated_value}`; `events[e].evidence_strength` | Primary is the supported most probable sporting selection within its named partition; keep value separate. Confidence uses validated reliability tiers (medium/high required for value), evidence strength is advisory. Show `no_bet` prominently even with a sporting forecast. | | `events[e].decision.estimated_value.{state,ev_point_ppm,ev_conservative_ppm,ev_interval_ppm,min_point_ev_ppm,failed_gates}` | Net EV = Σ p_s(R_s−1). Exact arithmetic, final signed ppm half away from zero. Conservative EV is the minimum over validated coherent scenarios, including no-action uncertainty. Eligible, complete payout, validated confidence ≥medium, conservative EV strictly positive and optional preregistered point floor all required for `estimated_value/consider`. Floor defaults to D-null `not_preregistered`. Tested failure keeps computable EVs, `not_value/no_bet`; unsupported payout/price gives typed nulls, `unknown/no_bet`. Missing validated uncertainty cannot pass value. Record gate reasons from crosswalk R5. | | `joint.{target,legs,relations,state,p_ppm,bounds,interval,no_loss,offer,verdict}` | Target `all_sporting_selections_occur`; legs carry selection_id, contract_id or null, marginal_ppm D

. Relations are typed with indices. Optional no_loss has p_ppm D

; offer has quote_id, product (acca/same_game/builder), exact, void_rule_ref and signed net `er_ppm,er_conservative_ppm` D. No eligible exact offer → null with linked reason. | | `events[e].panels.*`; `findings[].contradicts`; `contradictions[]` | Exactly nine collapsed panels: alternatives, bookmaker_quotes, momentum, h2h, lineups_entries, risks, complete_reasoning, sources, other_findings. Preserve panel state/why and refs {kind,id} to selections, quotes, findings, reasoning, sources or contradictions. Every contradiction has ≥2 reciprocal finding links, status resolved/unresolved/modeled, resolved_by D, reasoning_id and a ref from risks or complete_reasoning. Retain all relevant findings; alternatives carry their own evidence and separate price eligibility. | | `calibrations[c].scores[]` | metric brier/log_loss/calibration_error; scale binary_0_1/multiclass_0_2/nats/ppm_abs; value_micro, why, infinite. Binary Brier max 1000000, multiclass max 2000000; infinite log loss has null value. Compare only like scales. | | Presentation | Bind primary ID, calibrated P, confidence, short reason, verdict/reasons, start and cutoff in prominent view. Percent1 is ppm/10000 with one decimal. Odds bind display_decimal only. Bind point and conservative EV similarly; render null reasons. Translate labels and supported findings once per requested locale from the same core. | **Provisional bindings.** All three handoffs present. Crosswalk takes precedence. Use estimated_value per §7. Hash JCS UTF-8 sporting payload excluding its own sha256. Apply crosswalk's singular receipt per market/batch via an adapter map pending schema placement. Test exact EV sign/floor before rounding (sub-ppm provisional). Link joint metadata, proofs and comparison status from reasoning pending schema slots. Proposed envelopes: /refresh/{prior_ref,state,reason}, /review/{prior_ref,review_cutoff_utc,truth,grading,scores,realized_return,findings,proposed_changes,sources}. Review leaves /core immutable. Unknown: transport, allowance meter/sizes, approved cards/registries/locales, live permissions, calibration and no-action models, confidence tiers and publication encoding. Thresholds await validation. **Handoffs used.** `protocol-reconciliation/report-crosswalk` §§2–8 for precedence, paths, clocks, settlement, scores and acceptance; `protocol-reconciliation/bookmaker-comparison` §2 R2–R8 and §5 for capture, panel eligibility and arithmetic; `protocol-reconciliation/joint-probability` §§4–6 for method order, relations, payouts and proof cases. Historical prices excluded. ## Synthetic acceptance fixture (single) Substitute job, budget, evidence below, then append the filled mode. Harness resolves fixture IDs/meter/rules; use C1 with A endpoints 400000–800000, complementary B, permitted rights, low confidence and no-action 0. Inject quote after lock. ```text {"request_id":"S1","cutoff":"2030-01-01T12:00:00Z","locale":"hi","jurisdiction":{"country":"CA","subdivision":"ON"},"policy_id":"imd.comparison-policy/1.0.0-proposed"} {"fixture_meter":"work","available":8,"minimum":5,"qc":2} [] ``` Filled mode: ```text Mode single. Event={"event_id":"e1","competition_id":"c1","participant_ids":["A","B"],"venue_id":null,"start":"2030-01-01T18:00:00Z","sport_card_id":"tennis-fixture","source_card_ids":["fixture"],"priority":0,"markets":[{"market_id":"m1","partition_id":"AB","period":"match","type":"winner","line":null,"selection_ids":["sA","sB"],"rules_ref":"r1","rules_sha256":null}]}. Use the cards and minimum pass. Verify format, availability, opponent-adjusted form and relevant H2H. Deepen material gaps and record confirmed/projected facts and countercases. Lock, then check named books. Give the supported most probable sporting forecast or abstain; assess alternatives independently. Return Report with joint null. ``` | Named check | Exact expectation | |---|---| | SPORTING_SUM / lock | Lock 12:00:00Z. Class A/B raw and calibrated 600000/400000 at `/core/markets/0/sporting/classes` (D.value). Primary `sA`. Changing a locked class after pricing fails SPORTING_HASH_MISMATCH. | | QUOTE_EXACT / clocks | Fictional quote 4/7, rules digest resolved by harness, source 12:00:00Z, observed and decision 12:04:59Z, issue 12:05:00Z, freeze 12:05:01Z same date. At `/core/quotes/0`: exact 11/7, display_decimal "1.57", dp 2, effective 12:00:00Z, decision age 299, eligible at issue age 300. Issue +1 s → stale, null EV, unknown/no_bet. Other book rows are typed gaps. | | EV_RECOMPUTE / locale | `/core/contracts/0/settlement_ppm/value`: win 600000, loss 400000, other four 0. `/core/events/0/decision`: low, no_bet; estimated_value state not_value, point −57143 and conservative −371429 (D.value). `/core/joint`: null. All nine panels collapsed. Every locale binds the same values; English “A wins · 60.0% · No bet”, Hindi “A की जीत · 60.0% · कोई दांव नहीं”; verdict no_bet in both. | Slate variant (C9): marginals 600000/592000, unknown dependence → /core/joint bounds 192000–592000, p and interval null, no_bet. ## Prompt lengths UTF-8 bytes before substitution, excluding fences, including one joining LF. Common 670. Mode / total: single 366/1037, slate 570/1241, refresh 495/1166, review 483/1154. Add substituted inputs and attached policy/cards to the actual meter.