{"openapi":"3.1.0","info":{"title":"Linesman API","version":"0.1.0","description":"Linesman is an autonomous market-observation agent: it watches the sharp de-vigged line against the prediction-market crowd across venues, anchors every observation on Solana before kickoff, grades it after settlement, and publishes the verifiable record here. Aggregated public market data for informational purposes only — not investment, trading, or gambling advice. Cross-venue mappings are heuristic; verify resolution criteria before relying on any comparison. Every JSON route carries a top-level `disclaimer`."},"servers":[{"url":"https://linesman.tidyquill.workers.dev"}],"paths":{"/health":{"get":{"summary":"Pipeline health: mode, TxLINE token status, per-venue freshness, coverage, latest proof.","description":"Liveness + freshness of the whole pipeline, read from the KV snapshot (0 upstream calls). Returns 503 with `status:\"down\"` when no snapshot exists yet (warming up). `phase` is `report_card` once the tournament has no upcoming fixtures — a quiet feed and aged proofs are EXPECTED then, not breakage.","responses":{"200":{"description":"health report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthReport"},"example":{"status":"ok","phase":"live","mode":"live","txline":{"ok":true,"last_fetch_age_seconds":42,"token":"active"},"venues":{"polymarket":{"ok":true,"markets":18,"last_fetch_age_seconds":51},"kalshi":{"ok":true,"markets":12,"last_fetch_age_seconds":63},"limitless":{"ok":false,"markets":0,"last_fetch_age_seconds":null,"error":"fetch timeout"}},"coverage":{"fixtures_total":16,"fixtures_live_remaining":4,"fixtures_mapped":16,"fixtures_with_two_prediction_venues":11},"agent":{"sweeps_completed":1287,"observations_anchored":43,"uptime_days":9},"latest_proof":{"snapshot_id":"snap_por_esp","age_seconds":176,"tier":"B"}}}}},"503":{"description":"no snapshot yet — status:\"down\" (same HealthReport shape)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthReport"}}}}}}},"/fixtures":{"get":{"summary":"Canonical fixtures with per-venue market links, equivalence classes, and a coverage summary.","parameters":[{"name":"min_prediction_venues","in":"query","required":false,"schema":{"type":"integer"}},{"name":"stage","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"{count, coverage, fixtures: CanonicalFixture[], disclaimer}","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CanonicalFixture"}}}}}}}},"/divergences":{"get":{"summary":"Cross-venue divergences (sharp de-vigged line vs the crowd), ranked by the headline gap (largest |gap| across home/draw/away). Stale rows excluded by default.","description":"Each row pairs the de-vigged TxLINE line (`txline`) against the proxy-weighted crowd `consensus`, reports the home-leg `divergence.signed_gap_pp` plus the full `by_outcome` picture, and surfaces the board `headline_outcome`/`headline_gap_pp` (the outcome carrying the largest absolute gap, so a big draw/away disagreement is not hidden behind a small home leg). Every row is anchored pre-kickoff (`snapshot_id`, `onchain_ref`). Each price's `as_of`/`age_seconds` reflect our last successful fetch of that source, not necessarily the source's own quote-update time. Observation only — no signal, edge, or advice.","parameters":[{"name":"market_type","in":"query","required":false,"schema":{"type":"string"},"description":"filter to one MarketClass, e.g. EXACT_MATCH_WINNER_3WAY"},{"name":"include_stale","in":"query","required":false,"schema":{"type":"boolean"},"description":"include rows whose txline line is stale (default false)"},{"name":"min_gap_pp","in":"query","required":false,"schema":{"type":"number"},"description":"minimum |headline gap| (largest leg across home/draw/away) in percentage points"}],"responses":{"200":{"description":"divergence rows (object wrapper)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DivergencesResponse"},"example":{"count":1,"mode":"live","divergences":[{"fixture_id":"txline:900001","market_type":"EXACT_MATCH_WINNER_3WAY","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","txline":{"prob_home":0.412,"prob_draw":0.27,"prob_away":0.318,"devig_method":"proportional","as_of":"2026-07-12T18:31:04Z","age_seconds":88,"is_stale":false,"proof_ref":"txodds:odds-validation:msg_8842193:1752345064000","message_id":"msg_8842193","ts_ms":1752345064000,"in_running":false,"game_state":null},"venues":[{"venue":"polymarket","market_id":"0x9f2c8a1b4d7e5f6a3c2b9d8e7f6a5b4c","prob_home":0.45,"prob_draw":0.27,"prob_away":0.28,"price_source":"midpoint","liquidity_usd":184320,"liquidity_source":"volume_24h","criteria_match":"EXACT","as_of":"2026-07-12T18:30:51Z","age_seconds":189,"is_stale":false},{"venue":"kalshi","market_id":"WORLDCUP-POR-ESP-WINNER","prob_home":0.44,"prob_draw":null,"prob_away":0.31,"price_source":"last_trade","liquidity_usd":52110,"liquidity_source":"open_interest","criteria_match":"NORMALIZED","as_of":"2026-07-12T18:29:40Z","age_seconds":260,"is_stale":false}],"consensus":{"crowd_prob_home":0.446,"crowd_prob_draw":0.271,"crowd_prob_away":0.283,"method":"liquidity_weighted","venues_used":2},"divergence":{"signed_gap_pp":3.4,"direction":"crowd_above_txline","confidence":0.92,"by_outcome":{"home":3.4,"draw":0.1,"away":3.5},"headline_outcome":"away","headline_gap_pp":-3.5},"provenance":"observed_live_anchored","snapshot_id":"snap_por_esp","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true}}],"disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}}}}}}},"/decisions":{"get":{"summary":"The observation agent's decision log — Autonomous-Operation evidence.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"description":"{count, decisions: DecisionLogEntry[], disclaimer}","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DecisionLogEntry"}}}}}}}},"/clv":{"get":{"summary":"Graded observations: pre-kickoff snapshot vs closing line vs settlement, with provenance labels.","description":"The Verified Knockout Ledger as JSON. For each anchored fixture: the frozen pre-kickoff `observed` snapshot, the `closing` line, the `settlement`, and `who_was_closer` — decided by `brier` (a proper Brier score over the FULL 1X2 distribution of both the sharp line and the crowd). `who_was_closer` and `brier` are PROVENANCE over two on-chain records, not an accuracy or significance claim; both are null when the crowd distribution is partial (binary market / legacy record). `registry_pda` (when present) is the durable program account that outlives the prunable memo tx.","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer"},"description":"max rows (default 50)"}],"responses":{"200":{"description":"graded record (object wrapper)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClvResponse"},"example":{"count":1,"clv":[{"fixture_id":"txline:900001","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","observed":{"txline_prob_home":0.412,"crowd_prob_home":0.446,"signed_gap_pp":3.4,"snapshot_id":"snap_por_esp"},"closing":{"txline_prob_home":0.421,"crowd_prob_home":0.437},"settlement":{"home_score":2,"away_score":1,"result":"home"},"who_was_closer":"txline","brier":{"txline":0.5123,"crowd":0.5471},"provenance":"observed_live_anchored","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"settlement_hash":"9b1e0d7c4a2f6e8b1d3c5a7f9e2b4d6c8a0f1e3d5c7b9a1f3e5d7c9b1a3f5e7d","settlement_onchain_ref":{"cluster":"devnet","tx":"7mNpQ2rB8vC4yE1sD9jT3kL6aH5wX2fU7gZ4tR1nMcW9pJ8sK3vB6yE2dU5rKpQ8","slot":300987654,"anchored_before_kickoff":false},"registry_pda":"Fk9Zt2rXpQ8sD6jL3vB7yE1nMcW4aH5wX2fU9gK"}],"disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}}}}}}},"/verify":{"get":{"summary":"Verify a snapshot: recompute the canonical hash, check the on-chain tx, and revalidate the TxLINE input (Tier B). Every JSON response carries the top-level `disclaimer` field.","description":"Recomputes the canonical hash from the frozen snapshot and compares it to the recorded one (`match`), checks the on-chain memo (`onchain_confirmed`), and — in live mode — replays TxODDS's own `validate_odds` over the odds INPUT (`txline_input_validation`) and, once settled, `validate_stat` over the graded SCORE (`stat_validation`). Fixtures that went through the deployed linesman_registry program also carry a `registry` block (program-enforced pre-kickoff anchor + TxODDS-validated grade). The `disclaimer` is a top-level sibling and never part of any hash.","parameters":[{"name":"snapshot_id","in":"query","required":true,"schema":{"type":"string","maxLength":128}},{"name":"raw","in":"query","required":false,"schema":{"type":"string","enum":["true","1"]},"description":"raw=true (or raw=1) returns the exact frozen hashed object for independent re-derivation: {snapshot_id, object, canonical_hash, canonicalization: 'RFC-8785-flavored; see util/canonical.ts', onchain, disclaimer}. Hash re-derivation uses ONLY the `object` subtree (with onchain_ref nulled) — top-level siblings such as `disclaimer` are response metadata, never part of the hash."}],"responses":{"200":{"description":"verification result (VerifyResult plus a top-level `disclaimer`), or the raw frozen object {snapshot_id, object, canonical_hash, canonicalization, onchain, disclaimer} when raw=true|1","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/VerifyResult"},{"$ref":"#/components/schemas/VerifyRawObject"}]},"example":{"snapshot_id":"snap_por_esp","canonical_hash":"b3d0f14a9c7e2b6d8f1a3c5e7d9b1f3a5c7e9d1b3f5a7c9e1d3b5f7a9c1e3d5f","recomputed_hash":"b3d0f14a9c7e2b6d8f1a3c5e7d9b1f3a5c7e9d1b3f5a7c9e1d3b5f7a9c1e3d5f","match":true,"onchain":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"onchain_confirmed":true,"txline_proof":{"present":true,"revalidates":true,"expected_root":"a19c4f7b2e5d8a1c3f6b9e2d5a8c1f4b7e0d3a6c9f2b5e8d1a4c7f0b3e6d9a2c","recomputed_root":"a19c4f7b2e5d8a1c3f6b9e2d5a8c1f4b7e0d3a6c9f2b5e8d1a4c7f0b3e6d9a2c"},"txline_input_validation":{"status":"validated_by_txoracle","validated":true,"method":"validate_odds_simulate","program_id":"TxoRac1eVa1idateOdds1111111111111111111111","batch_roots_pda":"BatR00ts1111111111111111111111111111111111","odds_message_id":"msg_8842193","odds_ts":1752345064},"stat_validation":{"status":"validated_by_txoracle","validated":true,"program_id":"TxoRac1eVa1idateStat1111111111111111111111","scores_roots_pda":"ScrR00ts1111111111111111111111111111111111","fixture_id":900001,"ts":1752352200,"proven":{"participant1":2,"participant2":1},"predicate":{"op":"Subtract","comparison":"GreaterThan","threshold":0}},"registry":{"program_id":"L1nesmanReg1stry11111111111111111111111111","pda":"Fk9Zt2rXpQ8sD6jL3vB7yE1nMcW4aH5wX2fU9gK","anchor_tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","anchored_unix":1752345100,"cluster":"devnet","grade":{"tx":"7mNpQ2rB8vC4yE1sD9jT3kL6aH5wX2fU7gZ4tR1nMcW9pJ8sK3vB6yE2dU5rKpQ8","result":1,"result_label":"participant1","outcome":"home"}},"validation_cached":false,"tier":"B","disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}}}},"400":{"description":"invalid snapshot_id (oversized)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"snapshot not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/timeline":{"get":{"summary":"In-play divergence timeline for a fixture (observation-only): the sharp line vs the crowd, sample by sample.","parameters":[{"name":"fixture_id","in":"query","required":true,"schema":{"type":"string","maxLength":128}}],"responses":{"200":{"description":"fixture timeline {fixture_id, home, away, kickoff_utc, samples[{at, txline_prob_home, crowd_prob_home, signed_gap_pp, in_running, game_state, score, venues_used}], disclaimer}"}}}},"/leadlag":{"get":{"summary":"In-play lead–lag measurement (observation, not a signal): per-goal sharp-reprice + crowd-convergence durations, exclusions counted, and NO aggregate number below 3 measured goals.","description":"A market-microstructure OBSERVATION. For each goal it measures two durations: how fast the sharp line repriced (`sharp_reprice`) and how long the crowd took to converge back to it (`crowd_convergence`). Excluded goals are COUNTED, never hidden. The `aggregate` block withholds (nulls) each median unless its own sample count reaches 3, and reports no aggregate at all below 3 cleanly-measured goals (small-N honesty); the per-stat counts (`sharp_reprice_n`, `crowd_convergence_n`) are always present so a null median is explainable. Makes no significance claim and implies no edge.","responses":{"200":{"description":"leadlag {aggregate{goals_measured, goals_excluded, reportable, sharp_reprice_median_seconds, crowd_convergence_median_seconds, sharp_reprice_n, crowd_convergence_n, min_goals_for_aggregate, note?}, goals[GoalMeasurement], exclusions[LeadLagExclusion], disclaimer}. Each median is null unless its own n ≥ 3; each goal row carries home, away and t0_utc (the goal sample time, ISO 8601).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadLagResponse"},"example":{"aggregate":{"goals_measured":5,"goals_excluded":2,"sharp_repriced_within_one_sample":3,"sharp_reprice_median_seconds":60,"crowd_convergence_median_seconds":180,"crowd_no_convergence":1,"sharp_reprice_n":4,"crowd_convergence_n":4,"reportable":true,"min_goals_for_aggregate":3},"goals":[{"fixture_id":"txline:900001","home":"Portugal","away":"Spain","t0":1752349860000,"t0_utc":"2026-07-12T19:31:00Z","score_before":"0-0","score_after":"1-0","sharp_reprice":{"status":"within_one_sample","seconds":60},"crowd_convergence":{"status":"converged","seconds":180,"threshold_pp":2}}],"exclusions":[{"fixture_id":"txline:900001","t0":1752351600000,"reason":"confounded_second_goal"}],"disclaimer":"Observational market-microstructure measurement, not a signal or advice. 60-second sampling floor (durations are lower-bounded at one sample); books may pause during goal review; minute resolution; small N stated explicitly; measurement windows are truncated at the next goal. No significance is claimed and no exploitable edge is implied."}}}}}}},"/status":{"get":{"summary":"HTML status panel: feed/token freshness, per-venue health, days since first sweep, latest proof (JSON equivalent is /health).","description":"The same HealthReport rendered for humans — overall state, mode, TxLINE feed + token, sweeps run, observations anchored, days since first sweep, latest proof age, and a per-venue health dot. `/health` remains the machine-readable JSON; this page never invents a metric it does not measure.","responses":{"200":{"description":"text/html"}}}},"/ledger":{"get":{"summary":"HTML \"Verified Knockout Ledger\" (the report-card page; JSON equivalent is /clv).","responses":{"200":{"description":"text/html"}}}},"/matches":{"get":{"summary":"HTML index of fixtures with an in-play chart.","responses":{"200":{"description":"text/html"}}}},"/match":{"get":{"summary":"HTML in-play divergence chart for a fixture (the primary chart view; JSON is /timeline).","parameters":[{"name":"fixture_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"text/html"}}}},"/docs":{"get":{"summary":"This spec. Content-negotiated: a readable API reference for browsers, raw OpenAPI 3.1 JSON for machines.","description":"Send `Accept: text/html` (any browser) for the reference page; anything else — or `?format=json` — returns this OpenAPI 3.1 document.","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OpenAPI 3.1 JSON, or text/html for a browser"}}}},"/mcp":{"post":{"summary":"Remote MCP (stateless streamable-HTTP JSON-RPC): top_divergences, graded_ledger, fixture_lookup, verify_snapshot, coverage.","description":"JSON-RPC 2.0 over POST (64KB body cap). Supported methods: `initialize` (returns protocolVersion, capabilities, serverInfo), `notifications/initialized` (202, no body), `tools/list` (the five tool definitions), `tools/call` (invoke a tool; the result is wrapped as {content:[{type:\"text\", text:<JSON string>}]}), and `ping`. The five tools: `top_divergences` (biggest comparable divergences, args limit/market_type/min_gap_pp), `graded_ledger` (settled receipts with grades, args limit/min_gap_pp), `fixture_lookup` (by team or fixture_id), `verify_snapshot` (args snapshot_id, required), and `coverage` (what Linesman compares and what it does not). Every tool result carries the neutral disclaimer.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpRequest"},"examples":{"initialize":{"summary":"initialize","value":{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2025-03-26"}}},"tools_list":{"summary":"tools/list","value":{"jsonrpc":"2.0","id":1,"method":"tools/list"}},"tools_call":{"summary":"tools/call → top_divergences","value":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"top_divergences","arguments":{"limit":5,"min_gap_pp":3}}}},"verify":{"summary":"tools/call → verify_snapshot","value":{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"verify_snapshot","arguments":{"snapshot_id":"snap_por_esp"}}}}}}}},"responses":{"200":{"description":"JSON-RPC result envelope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"},"example":{"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{\n  \"mode\": \"live\",\n  \"count\": 1,\n  \"divergences\": [ /* Divergence[] — see the /divergences schema */ ],\n  \"disclaimer\": \"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. …\"\n}"}]}}}}},"202":{"description":"accepted with no body (for notifications/initialized)"},"400":{"description":"parse error (malformed JSON)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}},"413":{"description":"request too large (>64KB)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpResponse"}}}}}}}},"components":{"schemas":{"Mode":{"type":"string","enum":["mock","live","replay"],"description":"never `mock` in production; `replay` = previously-captured LIVE data (served post-tournament)."},"MarketClass":{"type":"string","enum":["EXACT_MATCH_WINNER_3WAY","EXACT_MATCH_WINNER_BINARY","ADVANCEMENT","GROUP_OUTRIGHT","TOURNAMENT_OUTRIGHT","RELATED_NOT_COMPARABLE"],"description":"market-equivalence taxonomy. Only the two EXACT_MATCH_WINNER_* classes are compared on match-winner math (fail closed)."},"Outcome":{"type":"string","enum":["home","draw","away"]},"ProofTier":{"type":"string","enum":["A","B","C"]},"Provenance":{"type":"string","enum":["observed_live_anchored","backfilled_historical"]},"CriteriaMatch":{"type":"string","enum":["EXACT","NORMALIZED","RELATED_NOT_COMPARABLE"],"description":"how a venue market maps onto the canonical fixture claim."},"OnchainRef":{"type":"object","description":"a Solana anchor reference (memo tx). null until anchored.","required":["cluster","tx","anchored_before_kickoff"],"properties":{"cluster":{"type":"string","example":"devnet"},"tx":{"type":"string","description":"transaction signature (base58)"},"slot":{"type":["integer","null"]},"anchored_before_kickoff":{"type":"boolean"}}},"CoverageSummary":{"type":"object","required":["fixtures_total","fixtures_live_remaining","fixtures_mapped","fixtures_with_two_prediction_venues"],"properties":{"fixtures_total":{"type":"integer"},"fixtures_live_remaining":{"type":"integer"},"fixtures_mapped":{"type":"integer"},"fixtures_with_two_prediction_venues":{"type":"integer"}}},"TxlineLine":{"type":"object","description":"the sharp de-vigged line for a fixture (the `txline` block in API rows).","required":["prob_home","prob_draw","prob_away","devig_method","as_of","age_seconds","is_stale","proof_ref"],"properties":{"prob_home":{"type":"number"},"prob_draw":{"type":"number"},"prob_away":{"type":"number"},"devig_method":{"type":"string","enum":["proportional","shin","power"],"description":"the de-vig method actually used (deployment setting, not a query param)."},"as_of":{"type":"string","format":"date-time"},"age_seconds":{"type":"number"},"is_stale":{"type":"boolean"},"proof_ref":{"type":["string","null"],"description":"Tier-B TxLINE odds-validation ref (Merkle proof of the input); null in mock."},"message_id":{"type":["string","null"],"description":"the de-vigged odds record's id (live)."},"ts_ms":{"type":["integer","null"]},"in_running":{"type":"boolean","description":"live-match state from the odds record."},"game_state":{"type":["string","null"]}}},"VenueQuote":{"type":"object","description":"one venue's line for a fixture, as served in a Divergence row's `venues[]`.","required":["venue","market_id","prob_home","price_source","liquidity_usd","liquidity_source","criteria_match","as_of","age_seconds","is_stale"],"properties":{"venue":{"type":"string","example":"polymarket"},"market_id":{"type":"string"},"prob_home":{"type":["number","null"]},"prob_draw":{"type":["number","null"]},"prob_away":{"type":["number","null"]},"price_source":{"type":"string","enum":["midpoint","last_trade","best_bid","oracle_mark"]},"liquidity_usd":{"type":["number","null"]},"liquidity_source":{"type":"string","enum":["reported_liquidity","volume_24h","open_interest","unknown"]},"criteria_match":{"$ref":"#/components/schemas/CriteriaMatch"},"as_of":{"type":"string","format":"date-time"},"age_seconds":{"type":"number"},"is_stale":{"type":"boolean"}}},"Consensus":{"type":"object","description":"the proxy-weighted crowd consensus (unknown-liquidity venues excluded).","required":["crowd_prob_home","method","venues_used"],"properties":{"crowd_prob_home":{"type":"number"},"crowd_prob_draw":{"type":["number","null"]},"crowd_prob_away":{"type":["number","null"]},"method":{"type":"string","enum":["liquidity_weighted","simple_average","mid"]},"venues_used":{"type":"integer","description":"venues actually included in the weighted average."}}},"DivergenceMeasure":{"type":"object","required":["signed_gap_pp","direction","confidence"],"properties":{"signed_gap_pp":{"type":"number","description":"HOME-leg gap in pp: (crowd_home − txline_home)·100. Positive = crowd above the sharp line. Kept home-leg for API stability."},"direction":{"type":"string","enum":["crowd_above_txline","crowd_below_txline","flat"]},"confidence":{"type":"number","description":"fixture-MAPPING confidence from the matcher/adjudicator — NOT P(divergence is real)."},"by_outcome":{"type":"object","description":"per-outcome |gap| in pp (3-way markets), the defensible full picture.","required":["home","draw","away"],"properties":{"home":{"type":"number"},"draw":{"type":"number"},"away":{"type":"number"}}},"headline_outcome":{"type":"string","enum":["home","draw","away"],"description":"the outcome carrying the LARGEST absolute gap (the board headline). Binary markets stay `home`."},"headline_gap_pp":{"type":"number","description":"the SIGNED gap in pp for `headline_outcome` (crowd − txline). Equals signed_gap_pp for binary."}}},"Divergence":{"type":"object","description":"a /divergences row — served verbatim in this shape.","required":["fixture_id","market_type","home","away","kickoff_utc","txline","venues","consensus","divergence","provenance","snapshot_id","onchain_ref"],"properties":{"fixture_id":{"type":"string","description":"`txline:<id>` once the token is live; `linesman:<slug>` pre-token.","example":"txline:900001"},"market_type":{"$ref":"#/components/schemas/MarketClass"},"home":{"type":"string"},"away":{"type":"string"},"kickoff_utc":{"type":"string","format":"date-time"},"txline":{"$ref":"#/components/schemas/TxlineLine"},"venues":{"type":"array","items":{"$ref":"#/components/schemas/VenueQuote"}},"consensus":{"$ref":"#/components/schemas/Consensus"},"divergence":{"$ref":"#/components/schemas/DivergenceMeasure"},"provenance":{"$ref":"#/components/schemas/Provenance"},"snapshot_id":{"type":"string","example":"snap_por_esp"},"onchain_ref":{"anyOf":[{"$ref":"#/components/schemas/OnchainRef"},{"type":"null"}],"description":"the pre-kickoff anchor; null pre-anchor."},"normalization_note":{"type":["string","null"],"description":"binary→3way normalization note when market_type is binary."}},"example":{"fixture_id":"txline:900001","market_type":"EXACT_MATCH_WINNER_3WAY","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","txline":{"prob_home":0.412,"prob_draw":0.27,"prob_away":0.318,"devig_method":"proportional","as_of":"2026-07-12T18:31:04Z","age_seconds":88,"is_stale":false,"proof_ref":"txodds:odds-validation:msg_8842193:1752345064000","message_id":"msg_8842193","ts_ms":1752345064000,"in_running":false,"game_state":null},"venues":[{"venue":"polymarket","market_id":"0x9f2c8a1b4d7e5f6a3c2b9d8e7f6a5b4c","prob_home":0.45,"prob_draw":0.27,"prob_away":0.28,"price_source":"midpoint","liquidity_usd":184320,"liquidity_source":"volume_24h","criteria_match":"EXACT","as_of":"2026-07-12T18:30:51Z","age_seconds":189,"is_stale":false},{"venue":"kalshi","market_id":"WORLDCUP-POR-ESP-WINNER","prob_home":0.44,"prob_draw":null,"prob_away":0.31,"price_source":"last_trade","liquidity_usd":52110,"liquidity_source":"open_interest","criteria_match":"NORMALIZED","as_of":"2026-07-12T18:29:40Z","age_seconds":260,"is_stale":false}],"consensus":{"crowd_prob_home":0.446,"crowd_prob_draw":0.271,"crowd_prob_away":0.283,"method":"liquidity_weighted","venues_used":2},"divergence":{"signed_gap_pp":3.4,"direction":"crowd_above_txline","confidence":0.92,"by_outcome":{"home":3.4,"draw":0.1,"away":3.5},"headline_outcome":"away","headline_gap_pp":-3.5},"provenance":"observed_live_anchored","snapshot_id":"snap_por_esp","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true}}},"HealthReport":{"type":"object","description":"the /health report.","required":["status","mode","txline","venues","coverage","agent","latest_proof"],"properties":{"status":{"type":"string","enum":["ok","degraded","down"]},"phase":{"type":"string","enum":["live","report_card"],"description":"`live` during the tournament; `report_card` after the final, when a quiet feed + aged proofs are EXPECTED. Absent while warming up."},"mode":{"$ref":"#/components/schemas/Mode"},"txline":{"type":"object","required":["ok","last_fetch_age_seconds","token"],"properties":{"ok":{"type":"boolean"},"last_fetch_age_seconds":{"type":["integer","null"]},"token":{"type":"string","enum":["active","missing","expired"]}}},"venues":{"type":"object","description":"per-venue status, keyed by venue id.","additionalProperties":{"type":"object","required":["ok","markets","last_fetch_age_seconds"],"properties":{"ok":{"type":"boolean"},"markets":{"type":"integer"},"last_fetch_age_seconds":{"type":["integer","null"]},"error":{"type":"string"}}}},"coverage":{"$ref":"#/components/schemas/CoverageSummary"},"agent":{"type":"object","required":["sweeps_completed","observations_anchored","uptime_days"],"properties":{"sweeps_completed":{"type":"integer"},"observations_anchored":{"type":"integer"},"uptime_days":{"type":"integer"}}},"latest_proof":{"anyOf":[{"type":"object","required":["snapshot_id","age_seconds","tier"],"properties":{"snapshot_id":{"type":"string"},"age_seconds":{"type":"integer"},"tier":{"$ref":"#/components/schemas/ProofTier"}}},{"type":"null"}]}},"example":{"status":"ok","phase":"live","mode":"live","txline":{"ok":true,"last_fetch_age_seconds":42,"token":"active"},"venues":{"polymarket":{"ok":true,"markets":18,"last_fetch_age_seconds":51},"kalshi":{"ok":true,"markets":12,"last_fetch_age_seconds":63},"limitless":{"ok":false,"markets":0,"last_fetch_age_seconds":null,"error":"fetch timeout"}},"coverage":{"fixtures_total":16,"fixtures_live_remaining":4,"fixtures_mapped":16,"fixtures_with_two_prediction_venues":11},"agent":{"sweeps_completed":1287,"observations_anchored":43,"uptime_days":9},"latest_proof":{"snapshot_id":"snap_por_esp","age_seconds":176,"tier":"B"}}},"ClvRow":{"type":"object","description":"a graded /clv row: frozen pre-kickoff observation, closing line, settlement, and Brier-based provenance.","required":["fixture_id","home","away","kickoff_utc","observed","provenance","onchain_ref"],"properties":{"fixture_id":{"type":"string","example":"txline:900001"},"home":{"type":"string"},"away":{"type":"string"},"kickoff_utc":{"type":"string","format":"date-time"},"observed":{"type":"object","description":"the anchored pre-kickoff divergence snapshot (trimmed).","required":["txline_prob_home","crowd_prob_home","signed_gap_pp","snapshot_id"],"properties":{"txline_prob_home":{"type":"number"},"crowd_prob_home":{"type":"number"},"signed_gap_pp":{"type":"number"},"snapshot_id":{"type":"string"}}},"closing":{"anyOf":[{"type":"object","properties":{"txline_prob_home":{"type":["number","null"]},"crowd_prob_home":{"type":["number","null"]}}},{"type":"null"}],"description":"closing line at/near kickoff."},"settlement":{"anyOf":[{"type":"object","required":["home_score","away_score","result"],"properties":{"home_score":{"type":"integer"},"away_score":{"type":"integer"},"result":{"$ref":"#/components/schemas/Outcome"}}},{"type":"null"}]},"who_was_closer":{"type":["string","null"],"enum":["txline","crowd","tie",null],"description":"who priced the settled outcome closer by BRIER over the full 1X2 (PROVENANCE, not a significance/accuracy claim). null when the full distribution is unavailable."},"brier":{"anyOf":[{"type":"object","required":["txline","crowd"],"properties":{"txline":{"type":"number"},"crowd":{"type":"number"}}},{"type":"null"}],"description":"the Brier scores behind who_was_closer (lower = closer to the realized 1X2); null when who_was_closer is null."},"provenance":{"$ref":"#/components/schemas/Provenance"},"onchain_ref":{"anyOf":[{"$ref":"#/components/schemas/OnchainRef"},{"type":"null"}]},"settlement_hash":{"type":["string","null"]},"settlement_onchain_ref":{"anyOf":[{"$ref":"#/components/schemas/OnchainRef"},{"type":"null"}],"description":"the settled grade sealed after FT."},"registry_pda":{"type":["string","null"],"description":"the durable linesman_registry PROGRAM account (PDA); null for memo-only rows."}},"example":{"fixture_id":"txline:900001","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","observed":{"txline_prob_home":0.412,"crowd_prob_home":0.446,"signed_gap_pp":3.4,"snapshot_id":"snap_por_esp"},"closing":{"txline_prob_home":0.421,"crowd_prob_home":0.437},"settlement":{"home_score":2,"away_score":1,"result":"home"},"who_was_closer":"txline","brier":{"txline":0.5123,"crowd":0.5471},"provenance":"observed_live_anchored","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"settlement_hash":"9b1e0d7c4a2f6e8b1d3c5a7f9e2b4d6c8a0f1e3d5c7b9a1f3e5d7c9b1a3f5e7d","settlement_onchain_ref":{"cluster":"devnet","tx":"7mNpQ2rB8vC4yE1sD9jT3kL6aH5wX2fU7gZ4tR1nMcW9pJ8sK3vB6yE2dU5rKpQ8","slot":300987654,"anchored_before_kickoff":false},"registry_pda":"Fk9Zt2rXpQ8sD6jL3vB7yE1nMcW4aH5wX2fU9gK"}},"VerifyResult":{"type":"object","description":"verification result. /verify appends a top-level `disclaimer` (response metadata, never part of any hash).","required":["snapshot_id","canonical_hash","onchain","recomputed_hash","match","txline_proof","tier"],"properties":{"snapshot_id":{"type":"string"},"canonical_hash":{"type":"string","description":"SHA-256 (hex) recorded for the canonicalized snapshot bytes."},"recomputed_hash":{"type":"string","description":"the hash recomputed now from the frozen object."},"match":{"type":"boolean","description":"authoritative check: the observation reproduces (hash + Tier-B revalidation)."},"onchain":{"anyOf":[{"$ref":"#/components/schemas/OnchainRef"},{"type":"null"}]},"onchain_confirmed":{"type":["boolean","null"],"description":"advisory: did the RPC confirm the memo carries the hash? null = RPC could not check."},"txline_proof":{"type":"object","required":["present","revalidates"],"properties":{"present":{"type":"boolean"},"revalidates":{"type":["boolean","null"],"description":"null when there is no proof to check (mock/pre-token)."},"expected_root":{"type":"string"},"recomputed_root":{"type":"string"}}},"txline_input_validation":{"type":"object","description":"LIVE Tier-B: TxODDS's own `validate_odds` simulated against its on-chain batch roots (the odds INPUT).","required":["status","validated"],"properties":{"status":{"type":"string","enum":["validated_by_txoracle","rejected","pending_root","rpc_unavailable","not_applicable"]},"validated":{"type":["boolean","null"]},"method":{"type":"string"},"program_id":{"type":"string"},"batch_roots_pda":{"type":"string"},"odds_message_id":{"type":"string"},"odds_ts":{"type":"integer"}}},"stat_validation":{"type":"object","description":"LIVE TxODDS-VALIDATED GRADE: TxODDS's own `validate_stat` simulated against its on-chain scores roots (the graded SCORE). Present once settled.","required":["status","validated"],"properties":{"status":{"type":"string","enum":["validated_by_txoracle","rejected","pending_root","rpc_unavailable","score_mismatch","not_applicable"]},"validated":{"type":["boolean","null"]},"program_id":{"type":"string"},"scores_roots_pda":{"type":"string"},"fixture_id":{"type":"integer"},"ts":{"type":"integer"},"proven":{"anyOf":[{"type":"object","required":["participant1","participant2"],"properties":{"participant1":{"type":"integer"},"participant2":{"type":"integer"}}},{"type":"null"}]},"predicate":{"anyOf":[{"type":"object","required":["op","comparison","threshold"],"properties":{"op":{"type":"string","enum":["Subtract"]},"comparison":{"type":"string","enum":["GreaterThan","LessThan","EqualTo"]},"threshold":{"type":"integer"}}},{"type":"null"}]}}},"registry":{"type":"object","description":"the deployed linesman_registry record: program-enforced pre-registration (+ grade once settled). Present ONLY for fixtures that went through the program; its absence never implies a registration happened.","required":["program_id","pda","anchor_tx","anchored_unix","cluster","grade"],"properties":{"program_id":{"type":"string"},"pda":{"type":"string"},"anchor_tx":{"type":["string","null"],"description":"anchor tx signature, or null when reconciled from the on-chain account (see anchor_tx_note)."},"anchor_tx_note":{"type":"string","description":"present when anchor_tx is null: how the record was recovered."},"anchored_unix":{"type":"integer"},"cluster":{"type":"string"},"grade":{"anyOf":[{"type":"object","description":"the TxODDS-validated grade, once settled: a tx whose validate_stat CPI TxODDS's program accepted. result/result_label are PARTICIPANT-RELATIVE (what the oracle proved); outcome is the home/away label derived off-chain.","required":["tx","result","result_label","outcome"],"properties":{"tx":{"type":["string","null"]},"tx_note":{"type":"string"},"result":{"type":"integer","enum":[0,1,2,3]},"result_label":{"type":"string","enum":["ungraded","participant1","participant2","draw"]},"outcome":{"type":["string","null"],"enum":["home","away","draw",null]}}},{"type":"null"}]}}},"validation_cached":{"type":"boolean","description":"true when the upstream validation blocks were served from KV cache (the hash recompute is always fresh)."},"tier":{"$ref":"#/components/schemas/ProofTier"},"disclaimer":{"type":"string","description":"top-level response metadata (added by /verify); never part of any hash."}},"example":{"snapshot_id":"snap_por_esp","canonical_hash":"b3d0f14a9c7e2b6d8f1a3c5e7d9b1f3a5c7e9d1b3f5a7c9e1d3b5f7a9c1e3d5f","recomputed_hash":"b3d0f14a9c7e2b6d8f1a3c5e7d9b1f3a5c7e9d1b3f5a7c9e1d3b5f7a9c1e3d5f","match":true,"onchain":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"onchain_confirmed":true,"txline_proof":{"present":true,"revalidates":true,"expected_root":"a19c4f7b2e5d8a1c3f6b9e2d5a8c1f4b7e0d3a6c9f2b5e8d1a4c7f0b3e6d9a2c","recomputed_root":"a19c4f7b2e5d8a1c3f6b9e2d5a8c1f4b7e0d3a6c9f2b5e8d1a4c7f0b3e6d9a2c"},"txline_input_validation":{"status":"validated_by_txoracle","validated":true,"method":"validate_odds_simulate","program_id":"TxoRac1eVa1idateOdds1111111111111111111111","batch_roots_pda":"BatR00ts1111111111111111111111111111111111","odds_message_id":"msg_8842193","odds_ts":1752345064},"stat_validation":{"status":"validated_by_txoracle","validated":true,"program_id":"TxoRac1eVa1idateStat1111111111111111111111","scores_roots_pda":"ScrR00ts1111111111111111111111111111111111","fixture_id":900001,"ts":1752352200,"proven":{"participant1":2,"participant2":1},"predicate":{"op":"Subtract","comparison":"GreaterThan","threshold":0}},"registry":{"program_id":"L1nesmanReg1stry11111111111111111111111111","pda":"Fk9Zt2rXpQ8sD6jL3vB7yE1nMcW4aH5wX2fU9gK","anchor_tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","anchored_unix":1752345100,"cluster":"devnet","grade":{"tx":"7mNpQ2rB8vC4yE1sD9jT3kL6aH5wX2fU7gZ4tR1nMcW9pJ8sK3vB6yE2dU5rKpQ8","result":1,"result_label":"participant1","outcome":"home"}},"validation_cached":false,"tier":"B","disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}},"VerifyRawObject":{"type":"object","description":"the exact frozen hashed object (returned by /verify?raw=true|1) for independent hash re-derivation.","required":["snapshot_id","object","canonical_hash","canonicalization","onchain","disclaimer"],"properties":{"snapshot_id":{"type":"string"},"object":{"$ref":"#/components/schemas/Divergence"},"canonical_hash":{"type":"string"},"canonicalization":{"type":"string","enum":["RFC-8785-flavored; see util/canonical.ts"]},"onchain":{"anyOf":[{"$ref":"#/components/schemas/OnchainRef"},{"type":"null"}]},"disclaimer":{"type":"string"}},"example":{"snapshot_id":"snap_por_esp","object":{"fixture_id":"txline:900001","market_type":"EXACT_MATCH_WINNER_3WAY","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","txline":{"prob_home":0.412,"prob_draw":0.27,"prob_away":0.318,"devig_method":"proportional","as_of":"2026-07-12T18:31:04Z","age_seconds":88,"is_stale":false,"proof_ref":"txodds:odds-validation:msg_8842193:1752345064000","message_id":"msg_8842193","ts_ms":1752345064000,"in_running":false,"game_state":null},"venues":[{"venue":"polymarket","market_id":"0x9f2c8a1b4d7e5f6a3c2b9d8e7f6a5b4c","prob_home":0.45,"prob_draw":0.27,"prob_away":0.28,"price_source":"midpoint","liquidity_usd":184320,"liquidity_source":"volume_24h","criteria_match":"EXACT","as_of":"2026-07-12T18:30:51Z","age_seconds":189,"is_stale":false},{"venue":"kalshi","market_id":"WORLDCUP-POR-ESP-WINNER","prob_home":0.44,"prob_draw":null,"prob_away":0.31,"price_source":"last_trade","liquidity_usd":52110,"liquidity_source":"open_interest","criteria_match":"NORMALIZED","as_of":"2026-07-12T18:29:40Z","age_seconds":260,"is_stale":false}],"consensus":{"crowd_prob_home":0.446,"crowd_prob_draw":0.271,"crowd_prob_away":0.283,"method":"liquidity_weighted","venues_used":2},"divergence":{"signed_gap_pp":3.4,"direction":"crowd_above_txline","confidence":0.92,"by_outcome":{"home":3.4,"draw":0.1,"away":3.5},"headline_outcome":"away","headline_gap_pp":-3.5},"provenance":"observed_live_anchored","snapshot_id":"snap_por_esp","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true}},"canonical_hash":"b3d0f14a9c7e2b6d8f1a3c5e7d9b1f3a5c7e9d1b3f5a7c9e1d3b5f7a9c1e3d5f","canonicalization":"RFC-8785-flavored; see util/canonical.ts","onchain":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}},"LeadLagAggregate":{"type":"object","description":"lead-lag aggregate. Below `min_goals_for_aggregate` cleanly-measured goals, `reportable` is false and every derived statistic is WITHHELD (null); a per-stat median is additionally null unless its own n reaches the bar.","required":["goals_measured","goals_excluded","sharp_reprice_n","crowd_convergence_n","reportable","min_goals_for_aggregate"],"properties":{"goals_measured":{"type":"integer"},"goals_excluded":{"type":"integer"},"sharp_repriced_within_one_sample":{"type":["integer","null"]},"sharp_reprice_median_seconds":{"type":["number","null"]},"crowd_convergence_median_seconds":{"type":["number","null"]},"crowd_no_convergence":{"type":["integer","null"]},"sharp_reprice_n":{"type":"integer","description":"per-stat sample count — ALWAYS present, so a null median is explainable."},"crowd_convergence_n":{"type":"integer"},"reportable":{"type":"boolean"},"min_goals_for_aggregate":{"type":"integer"},"note":{"type":"string","description":"present only when not reportable: why no aggregate number is shown (small-N honesty)."}}},"GoalMeasurement":{"type":"object","required":["fixture_id","home","away","t0","t0_utc","score_before","score_after","sharp_reprice","crowd_convergence"],"properties":{"fixture_id":{"type":"string"},"home":{"type":"string"},"away":{"type":"string"},"t0":{"type":"integer","description":"goal time (epoch ms) — machine twin of t0_utc."},"t0_utc":{"type":"string","format":"date-time"},"score_before":{"type":"string","example":"0-0"},"score_after":{"type":"string","example":"1-0"},"sharp_reprice":{"type":"object","required":["status","seconds"],"properties":{"status":{"type":"string","enum":["within_one_sample","repriced","no_reprice"]},"seconds":{"type":["integer","null"],"description":"duration; null for no_reprice. Lower-bounded by the 60s sampling cadence."}}},"crowd_convergence":{"type":"object","required":["status","seconds","threshold_pp"],"properties":{"status":{"type":"string","enum":["converged","no_convergence"]},"seconds":{"type":["integer","null"]},"threshold_pp":{"type":"number","description":"convergence threshold = max(2pp, median pre-goal gap over the prior 5 min)."}}}}},"LeadLagExclusion":{"type":"object","description":"a goal excluded from measurement — counted, never hidden.","required":["fixture_id","reason"],"properties":{"fixture_id":{"type":"string"},"t0":{"type":"integer"},"reason":{"type":"string","enum":["confounded_second_goal","missing_crowd_side","no_pre_goal_sample","stale_gap"]}}},"DivergencesResponse":{"type":"object","required":["count","mode","divergences","disclaimer"],"properties":{"count":{"type":"integer"},"mode":{"$ref":"#/components/schemas/Mode"},"divergences":{"type":"array","items":{"$ref":"#/components/schemas/Divergence"}},"graded_history":{"type":"string","description":"present only when 0 rows: pointer to the graded ledger (/clv)."},"note":{"type":"string","description":"present only when 0 rows."},"disclaimer":{"type":"string"}},"example":{"count":1,"mode":"live","divergences":[{"fixture_id":"txline:900001","market_type":"EXACT_MATCH_WINNER_3WAY","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","txline":{"prob_home":0.412,"prob_draw":0.27,"prob_away":0.318,"devig_method":"proportional","as_of":"2026-07-12T18:31:04Z","age_seconds":88,"is_stale":false,"proof_ref":"txodds:odds-validation:msg_8842193:1752345064000","message_id":"msg_8842193","ts_ms":1752345064000,"in_running":false,"game_state":null},"venues":[{"venue":"polymarket","market_id":"0x9f2c8a1b4d7e5f6a3c2b9d8e7f6a5b4c","prob_home":0.45,"prob_draw":0.27,"prob_away":0.28,"price_source":"midpoint","liquidity_usd":184320,"liquidity_source":"volume_24h","criteria_match":"EXACT","as_of":"2026-07-12T18:30:51Z","age_seconds":189,"is_stale":false},{"venue":"kalshi","market_id":"WORLDCUP-POR-ESP-WINNER","prob_home":0.44,"prob_draw":null,"prob_away":0.31,"price_source":"last_trade","liquidity_usd":52110,"liquidity_source":"open_interest","criteria_match":"NORMALIZED","as_of":"2026-07-12T18:29:40Z","age_seconds":260,"is_stale":false}],"consensus":{"crowd_prob_home":0.446,"crowd_prob_draw":0.271,"crowd_prob_away":0.283,"method":"liquidity_weighted","venues_used":2},"divergence":{"signed_gap_pp":3.4,"direction":"crowd_above_txline","confidence":0.92,"by_outcome":{"home":3.4,"draw":0.1,"away":3.5},"headline_outcome":"away","headline_gap_pp":-3.5},"provenance":"observed_live_anchored","snapshot_id":"snap_por_esp","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true}}],"disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}},"ClvResponse":{"type":"object","required":["count","clv","disclaimer"],"properties":{"count":{"type":"integer"},"clv":{"type":"array","items":{"$ref":"#/components/schemas/ClvRow"}},"disclaimer":{"type":"string"}},"example":{"count":1,"clv":[{"fixture_id":"txline:900001","home":"Portugal","away":"Spain","kickoff_utc":"2026-07-12T19:00:00Z","observed":{"txline_prob_home":0.412,"crowd_prob_home":0.446,"signed_gap_pp":3.4,"snapshot_id":"snap_por_esp"},"closing":{"txline_prob_home":0.421,"crowd_prob_home":0.437},"settlement":{"home_score":2,"away_score":1,"result":"home"},"who_was_closer":"txline","brier":{"txline":0.5123,"crowd":0.5471},"provenance":"observed_live_anchored","onchain_ref":{"cluster":"devnet","tx":"5xQm5V8s7cQF3s1kY2R9pJ4Zt7wLbN6aH2dU9gX3rKpQ8fT1nMcW4vB7yE2sD6jT","slot":300123456,"anchored_before_kickoff":true},"settlement_hash":"9b1e0d7c4a2f6e8b1d3c5a7f9e2b4d6c8a0f1e3d5c7b9a1f3e5d7c9b1a3f5e7d","settlement_onchain_ref":{"cluster":"devnet","tx":"7mNpQ2rB8vC4yE1sD9jT3kL6aH5wX2fU7gZ4tR1nMcW9pJ8sK3vB6yE2dU5rKpQ8","slot":300987654,"anchored_before_kickoff":false},"registry_pda":"Fk9Zt2rXpQ8sD6jL3vB7yE1nMcW4aH5wX2fU9gK"}],"disclaimer":"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. Cross-venue comparisons are like-for-like only where resolution criteria match."}},"LeadLagResponse":{"type":"object","required":["aggregate","goals","exclusions","disclaimer"],"properties":{"aggregate":{"$ref":"#/components/schemas/LeadLagAggregate"},"goals":{"type":"array","items":{"$ref":"#/components/schemas/GoalMeasurement"}},"exclusions":{"type":"array","items":{"$ref":"#/components/schemas/LeadLagExclusion"}},"disclaimer":{"type":"string","description":"the mandatory lead-lag caveat block."}},"example":{"aggregate":{"goals_measured":5,"goals_excluded":2,"sharp_repriced_within_one_sample":3,"sharp_reprice_median_seconds":60,"crowd_convergence_median_seconds":180,"crowd_no_convergence":1,"sharp_reprice_n":4,"crowd_convergence_n":4,"reportable":true,"min_goals_for_aggregate":3},"goals":[{"fixture_id":"txline:900001","home":"Portugal","away":"Spain","t0":1752349860000,"t0_utc":"2026-07-12T19:31:00Z","score_before":"0-0","score_after":"1-0","sharp_reprice":{"status":"within_one_sample","seconds":60},"crowd_convergence":{"status":"converged","seconds":180,"threshold_pp":2}}],"exclusions":[{"fixture_id":"txline:900001","t0":1752351600000,"reason":"confounded_second_goal"}],"disclaimer":"Observational market-microstructure measurement, not a signal or advice. 60-second sampling floor (durations are lower-bounded at one sample); books may pause during goal review; minute resolution; small N stated explicitly; measurement windows are truncated at the next goal. No significance is claimed and no exploitable edge is implied."}},"McpRequest":{"type":"object","description":"a JSON-RPC 2.0 request envelope.","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","integer","null"]},"method":{"type":"string","enum":["initialize","notifications/initialized","tools/list","tools/call","ping"]},"params":{"type":"object","description":"method params. For tools/call: {name, arguments}. Tools: top_divergences{limit?,market_type?,min_gap_pp?}, graded_ledger{limit?,min_gap_pp?}, fixture_lookup{team?,fixture_id?}, verify_snapshot{snapshot_id!}, coverage{}.","properties":{"protocolVersion":{"type":"string","description":"initialize only."},"name":{"type":"string","enum":["top_divergences","graded_ledger","fixture_lookup","verify_snapshot","coverage"],"description":"tools/call only."},"arguments":{"type":"object","additionalProperties":true,"description":"tools/call only — the tool arguments."}},"additionalProperties":true}},"example":{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"top_divergences","arguments":{"limit":5,"min_gap_pp":3}}}},"McpResponse":{"type":"object","description":"a JSON-RPC 2.0 response envelope. `result` shape depends on method (tools/call wraps a JSON text block); `error` is present instead on failure.","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"type":["string","integer","null"]},"result":{"description":"method result (present on success). For tools/call: {content:[{type:\"text\", text:<JSON string>}]}."},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}},"example":{"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{\n  \"mode\": \"live\",\n  \"count\": 1,\n  \"divergences\": [ /* Divergence[] — see the /divergences schema */ ],\n  \"disclaimer\": \"Linesman publishes aggregated public market observations for informational purposes only — not investment, trading, or gambling advice. …\"\n}"}]}}},"ErrorResponse":{"type":"object","description":"a JSON error body (never a stack trace).","required":["error"],"properties":{"error":{"type":"string"},"snapshot_id":{"type":"string"},"disclaimer":{"type":"string"}}},"CanonicalFixture":{"type":"object","additionalProperties":true,"description":"fixture_id, txline_fixture_id, home, away, kickoff_utc, stage, venues[{venue,market_id,market_type,criteria_match}], coverage{prediction_venues,has_txline,comparable_now}"},"DecisionLogEntry":{"type":"object","additionalProperties":true,"description":"sweep_id, at, observed, significant, rule_fired, anchored_tx (null unless that sweep anchored), fixture_ids"}}}}