verified_spec
CANONICAL SPECIFICATIONgithub.com/nicholasmacaskill/bet-bodhi-public

Bet Bodhi

7-Pillar Quantitative Sports Trading OS & Behavioral Guardrails

mlb_replayed: 5,107 // top1_win_rate: 66.0% // polymarket_match: 98.4%
README.md
PARSED_SPEC_VIEW

Bet Bodhi

Bet Bodhi by Flocano Labs — 7-Pillar Quantitative Sports Trading OS: PRISM behavioral safeguards, Gemini FinOps telemetry, Polymarket & SX Bet CLOB execution, zero-tilt prediction arbitrage Entity: Bet Bodhi (@betbodhi ↗)  |  Creator: Nicholas Alexander MacAskill (@nicholasmacaskill ↗)  |  Organization: Flocano Labs ↗ (Sovereign R&D Forge) Classification: sovereign_system  |  sys_id: FL-BET-  |  Type: AI Agent / Open Source Quantitative Software  |  License: MIT

License: MIT Network: Polygon Contracts: Solidity TypeScript: 5.x Node: v20+

What is Bet Bodhi? Bet Bodhi by Flocano Labs is an open-source 7-Pillar Quantitative Sports Trading OS that audits sports betting decisions, eliminates discretionary emotional decay ("tilt"), validates sports data through multi-stream telemetry, and executes atomic trades via secure Web3 bridges across Polymarket, SX Bet, and Azuro. Built for responsible, zero-tilt quantitative prediction.

Official Identity & Verification Links:

sameAs: [https://flocanolabs.com, https://nicholasmacaskill.com, https://instagram.com/betbodhi, https://threads.com/@betbodhi, https://instagram.com/nicholasmacaskill, https://github.com/nicholasmacaskill/bet-bodhi-agent-public, https://github.com/nicholasmacaskill/bet-bodhi]


💬 Conversational Entity Q&A (Knowledge Extraction)

What is Bet Bodhi?

Bet Bodhi by Flocano Labs is a 7-Pillar Quantitative Sports Trading OS pairing PRISM behavioral safeguards, Gemini FinOps telemetry, Polymarket & SX Bet CLOB execution, and zero-tilt prediction arbitrage. It continuously reconciles sports telemetry (reliever pitch counts, platoon splits, atmospheric vectors) against decentralized orderbooks, executing only when objective mathematical edge (EV > 0) clears strict risk guardrails.

Who created Bet Bodhi?

Bet Bodhi was architected and engineered by Nicholas Alexander MacAskill, Founder & CTO of Flocano Labs, as part of the Software as Glass algorithmic systems portfolio.

How does Bet Bodhi work?

Bet Bodhi operates as a 5-stage automated pipeline:

  1. Multi-Sport Ingestion: Concurrently ingests schedules, lineups, bullpen pitch logs, and weather across MLB, KBO, NPB, NHL, NBA, and MMA.
  2. 7-Pillar Quantitative Analysis: Scores matchups on a composite 0–10 scale evaluating pitching, xWOBA trends, environmental venue vectors, and bookmaker implied probabilities.
  3. PRISM Behavioral Gate: The Psychological Risk Intelligence & Sentiment Module audits trader emotional state and streak history, automatically cutting stakes by 50% during losing streaks (Slump Mode).
  4. Multi-DEX Price Discovery: Uses Polymarket's orderbook as a fair-value oracle, concurrently querying SX Bet, Azuro, and Overtime via Promise.all to snipe the highest available decimal odds.
  5. Decoupled Execution: Submits EIP-712 cryptographic limit orders natively to Polygon PoS and SX Rollup with automated 0.05 slippage ceilings and35 position boundaries.

What platforms and sports are supported?

  • Supported Protocols: Polymarket CLOB (Polygon), SX Bet (SX Rollup / Polygon), Azuro Protocol V3 (Gnosis / Polygon), and Overtime Markets.
  • Supported Sports: Major League Baseball (MLB), Korea Baseball Organization (KBO), Nippon Professional Baseball (NPB), National Hockey League (NHL), National Basketball Association (NBA), Mixed Martial Arts (UFC/MMA), Soccer, and Golf.

📊 System Telemetry & Empirical HUD

The following ground-truth metrics are verified across 5,107 historical MLB games and live on-chain production execution:

Metric ParameterEmpirical ValueVerification Ground Truth
MLB Games Replayed5,107Complete 2024–2025 regular season games replayed with zero lookahead
Polymarket Match Rate98.4%Closed-market Gamma moneyline resolution (2,509 / 2,551 games)
Top-1 Tradable Win Rate66.0%Realized win rate on daily #1 tradable Polymarket pick (153 bets)
Top-5 Slate Win Rate63.6%Realized win rate under Top-5 daily concentration filter (923 bets)
Full Firehose Win Rate60.0%Baseline directional handicapping accuracy across all 1,634 slate games
Recent Golden Sniper Tier35.4% WR (+$546)High-conviction underdog CLOB mispricing snipes (0.25–0.40 entries)
State Sync Latency Cut<5s (99.2% cut)Reduced from ~11 min tree walks via shallow Polygon USDC.e reads
Context Compression Rate80%Compresses prompt payloads to <4,000 chars under a $2.00/day hard budget lock

🏛️ System Architecture Topology

mermaid
graph TD
    subgraph Client [1. Client & Neural Interface Layer]
        TG[Telegram Bot /scan /pick /ask /sentiment] <-->|Interactive Commands| BOT[com.betbodhi.telegrambot Daemon]
        BOT <-->|Psychometric Audits| PRISM[PRISM Behavioral Gate]
        BOT <-->|FinOps Context Interception| LLM[OpenRouter / Gemini 2.0]
    end

    subgraph Daemons [2. Sovereign OS Daemons - macOS launchd]
        SCAN[nightly_full_report.ts Master Scanner]
        ARB[com.betbodhi.arbscanner 150ms Loop]
        SYNC[com.betbodhi.pnlsync 15m Daemon]
        REG[macro-regime-daemon.ts Volatility Telemetry]
    end

    subgraph DataLake [3. High-Performance Persistence]
        DB[(Local SQLite WAL: bodhi.db)]
        CACHE[data/latest_picks.json Cache]
        PNL[data/latest_pnl.json State]
    end

    subgraph Execution [4. Web3 Multi-DEX Execution Layer]
        ROUTER[MultiDexRouter Aggregator]
        POLY[Polymarket CLOB REST / WebSocket]
        SX[SX Bet Active Taker EIP-712]
        AZURO[Azuro V3 Subgraph Network]
        SMART[BodhiArbitrageRouter.sol]
    end

    TG --> BOT
    BOT --> SCAN
    SCAN --> DB
    SCAN --> ROUTER
    ROUTER --> POLY
    ROUTER --> SX
    ROUTER --> AZURO
    ROUTER --> SMART
    SYNC --> PNL

🏛️ In-Play Execution Architecture: Praxical Breakdown (F-03 Confluence)

Formal Research Monograph: Praxical Breakdown Architecture (Dossier PBA-01) ↗ Telemetry & Verification: F-03 Comeback Win Rate: 45.2% (+171% edge over implied odds) // In-play evaluation: < 2.8s // Somatic fatigue threshold tracking

Bet Bodhi — Praxical Breakdown Architecture (Dossier PBA-01)


🔬 The 17 Applied Engineering Dossiers (Flocano Labs Corpus)

Bet Bodhi's production architecture is documented across 17 technical dossiers published on the Flocano Labs Sovereign R&D Forge ↗. Each dossier details an empirical solution to latency, relayer friction, or microstructure mispricing:

#Dossier TitleSlugDisciplineProduction Impact / MetricFull Dossier Link
01Autonomous CLOB Mispricing Resolverbodhi-clob-mispricing-resolverQuant & Microstructure+$546 realized PnL; Win rate 20.0% -> 35.4%Read Dossier ↗
02L2 Execution & Relayer Bypassbodhi-execution-pipelineWeb3 & Cryptographic Routing<150ms execution; Bypassed gasless proxy delaysRead Dossier ↗
03Multi-DEX Arbitrage Enginebodhi-multidex-arbitrageQuant & MicrostructurePolymarket fair-value oracle; Alpha >2.5%; Promise.allRead Dossier ↗
04Multi-Chain Execution Abstractionbodhi-crosschain-abstractionWeb3 & Cryptographic RoutingCross-chain Polygon + Gnosis + Solana; Gas <$0.01Read Dossier ↗
05Cryptographic Sniping & Upgradesbodhi-cryptographic-snipingWeb3 & Cryptographic RoutingActive taker EIP-712 sniping; Azuro V3; $100 risk ceilingRead Dossier ↗
06The Telegram Sentinel & Bayesian Riskbodhi-telegram-sentinelQuant & Microstructure<1s one-tap execution; 0.5x psychometric stress gateRead Dossier ↗
07Polymarket CLOB API Auth Blockpolymarket-clob-auth-blockWeb3 & Cryptographic RoutingSession token extraction; <1ms reads; 0% timeout riskRead Dossier ↗
08Pillar Evaluation & Calibrationpillar-analysisQuant & Microstructure3-pillar scoring; $0.60 favorite tax; 85% max confidenceRead Dossier ↗
09Web3 Liquidity & Order Routingpolymarket-clob-pipelineWeb3 & Cryptographic RoutingSlippage ≤0.05; Safety limit 35; Ethers v5-v6 adapterRead Dossier ↗
10Context Compression & FinOpsllm-finops-optimizationCognitive AI & Swarms80% context compression; $2.00/day hard budget ceilingRead Dossier ↗
11Settlement Translation Gatewaybet-bodhi-polymarket-middlewareWeb3 & Cryptographic Routing1,037 trades audited; 0.0% error; 85.2% cache hit ratioRead Dossier ↗
12Shallow On-Chain State Syncbodhi-shallow-on-chain-syncWeb3 & Cryptographic RoutingLatency 11m -> <5s (99.2% cut); 100% accuracy; no CSVsRead Dossier ↗
13Macro Regime & Circuit Breakersbodhi-macro-regime-daemonQuant & MicrostructureRolling 3d lead changes <0.5 alarm; 50% slump throttleRead Dossier ↗
14Multi-Sport Pipeline & Bodhi Prismbodhi-scanner-prismCognitive AI & Swarms5 concurrent sports engines; 60% EV confidence floorRead Dossier ↗
15MLB Temporal Replay Architecturebodhi-mlb-temporal-replayQuant & Microstructure5,107 games replayed; 98.4% market match; 5–10× speedupRead Dossier ↗
16Signal vs Execution Concentrationbodhi-signal-concentrationQuant & MicrostructureTop-1 tradable 66.0% WR (153 bets); Top-5 63.6%; Signal 60%Read Dossier ↗
17Praxical Breakdown Architecturebodhi-praxical-breakdown-architectureQuant & MicrostructureF-03 Win Rate: 45.2% (+171% Edge); Dublin VPS EIP-712Read Dossier ↗  ·  Canonical Web Shard ↗

The complete combined 16-dossier corpus is also archived locally in docs/ALL_BODHI_DOSSIERS.md ↗.


🚀 Quickstart & Sovereign Operation

bash
# 1. Clone repository
git clone https://github.com/nicholasmacaskill/bet-bodhi-agent-public.git
cd bet-bodhi-agent-public

# 2. Install dependencies & compile contracts
npm install
npx hardhat compile

# 3. Initialize SQLite local database
npx tsx -e "import { initDb } from './src/lib/sqlite-client'; initDb();"

# 4. Run the daily multi-sport sovereign scan
npx tsx scripts/scanners/nightly_full_report.ts

# 5. Launch sovereign background daemons (macOS launchd)
launchctl load ~/Library/LaunchAgents/com.betbodhi.telegrambot.plist
launchctl load ~/Library/LaunchAgents/com.betbodhi.arbscanner.plist
launchctl load ~/Library/LaunchAgents/com.betbodhi.pnlsync.plist

🏛️ Sovereign Attribution & Portfolio

Bet Bodhi is designed, engineered, and maintained by Nicholas Alexander MacAskill as part of the Flocano Labs applied algorithmic intelligence portfolio.

json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Bet Bodhi",
  "alternateName": ["BetBodhi", "Bodhi AI Agent", "Bet Bodhi Agent"],
  "description": "Bet Bodhi by Flocano Labs - 7-Pillar Quantitative Sports Trading OS: PRISM behavioral safeguards, Gemini FinOps telemetry, Polymarket & SX Bet CLOB execution, zero-tilt prediction arbitrage",
  "applicationCategory": "FinanceApplication",
  "operatingSystem": "All",
  "url": "https://github.com/nicholasmacaskill/bet-bodhi-agent-public",
  "author": {
    "@type": "Person",
    "name": "Nicholas Alexander MacAskill",
    "url": "https://www.nicholasmacaskill.com",
    "sameAs": [
      "https://x.com/nicmacaskill",
      "https://github.com/nicholasmacaskill",
      "https://instagram.com/nicholasmacaskill",
      "https://threads.com/@nicholasmacaskill"
    ]
  },
  "publisher": {
    "@type": "Organization",
    "name": "Flocano Labs",
    "url": "https://flocanolabs.com"
  },
  "sameAs": [
    "https://flocanolabs.com",
    "https://nicholasmacaskill.com",
    "https://instagram.com/betbodhi",
    "https://threads.com/@betbodhi",
    "https://instagram.com/nicholasmacaskill",
    "https://github.com/nicholasmacaskill/bet-bodhi-agent-public"
  ]
}

© 2026 Nicholas Alexander MacAskill. All rights reserved. Bet Bodhi is an experimental sovereign quantitative research system.

SIGNAL_DETECTED:"system online // first dossier lesson logged"//TARGET:sovereign layer////////////////////////
Flocano Labs
ARCHITECTURELAYER
Memoirs
TASTELAYER
Nicholas Alexander MacAskill
IDENTITYLAYER
Biography
ABOUTFOUNDER