<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 唐轩</title>
    <description>The latest articles on DEV Community by 唐轩 (@_90bc3148fe563751b55123).</description>
    <link>https://dev.to/_90bc3148fe563751b55123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4281844%2F7157e990-a779-46cc-95d9-260d205a0244.jpg</url>
      <title>DEV Community: 唐轩</title>
      <link>https://dev.to/_90bc3148fe563751b55123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_90bc3148fe563751b55123"/>
    <language>en</language>
    <item>
      <title>How Contract-First AI Guardrails in PyCharm 2026.1.1 Turned 745 Messy GRID Esports Feeds into a 0.688-AUC Hard Fearless Draft Engine</title>
      <dc:creator>唐轩</dc:creator>
      <pubDate>Fri, 04 Dec 2026 13:06:43 +0000</pubDate>
      <link>https://dev.to/_90bc3148fe563751b55123/how-contract-first-ai-guardrails-in-pycharm-202611-turned-745-messy-grid-esports-feeds-into-a-1n21</link>
      <guid>https://dev.to/_90bc3148fe563751b55123/how-contract-first-ai-guardrails-in-pycharm-202611-turned-745-messy-grid-esports-feeds-into-a-1n21</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Project:&lt;/strong&gt; &lt;a href="https://github.com/dagou1028/c9-chronodraft" rel="noopener noreferrer"&gt;C9 ChronoDraft&lt;/a&gt; · &lt;strong&gt;Live Demo:&lt;/strong&gt; &lt;a href="https://dagou1028.github.io/c9-chronodraft/" rel="noopener noreferrer"&gt;dagou1028.github.io/c9-chronodraft&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;strong&gt;Event:&lt;/strong&gt; Cloud9 × JetBrains: Sky's The Limit Hackathon 2026 (Category 2 + &lt;em&gt;Best AI-Powered Workflow Story&lt;/em&gt;)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;When League of Legends adopted &lt;strong&gt;Hard Fearless Draft&lt;/strong&gt; in Best-of-3 and Best-of-5 series, every champion played in Game 1 through Game 4 became permanently locked out for &lt;em&gt;both&lt;/em&gt; teams for the rest of the series. By Game 3, coach spreadsheets collapse—not because coaches lack tier lists, but because tracking &lt;strong&gt;individual player comfort-pool exhaustion&lt;/strong&gt;, &lt;strong&gt;Flex-pick ambiguity&lt;/strong&gt;, and &lt;strong&gt;first-14-minute macro trade-offs&lt;/strong&gt; across 20+ burned champions exceeds what manual tables can compute inside a 30-second draft clock.&lt;/p&gt;

&lt;p&gt;To build &lt;strong&gt;C9 ChronoDraft&lt;/strong&gt;, I had to process &lt;strong&gt;745 compressed GRID &lt;code&gt;.jsonl.zst&lt;/code&gt; esports series&lt;/strong&gt; across LCS, LCK, LEC, and LTA (&lt;code&gt;2025–2026&lt;/code&gt;), train a calibrated win-probability model with zero future leakage, and ship a &lt;code&gt;&amp;lt;8ms&lt;/code&gt; client-side 2-Ply Minimax War Room on GitHub Pages—all while obeying a strict license redline forbidding raw GRID files from ever entering Git.&lt;/p&gt;

&lt;p&gt;Treating an AI coding assistant as a blind autocomplete box on raw esports telemetry fails fast. Here is the exact &lt;strong&gt;contract-first workflow—combining shared &lt;code&gt;.junie/guidelines.md&lt;/code&gt; + &lt;code&gt;AGENTS.md&lt;/code&gt; rules with PyCharm 2026.1.1 Run Configurations and automated CI verification&lt;/strong&gt;—and the &lt;strong&gt;Before vs. After&lt;/strong&gt; quantitative evidence that prevented silent data corruption at every layer.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Contract-First Guardrails: Why &lt;code&gt;.junie/guidelines.md&lt;/code&gt; Came Before Code
&lt;/h2&gt;

&lt;p&gt;Before writing a single line of ETL or React UI, I codified the non-negotiable data and domain invariants inside &lt;a href="https://github.com/dagou1028/c9-chronodraft/blob/main/.junie/guidelines.md" rel="noopener noreferrer"&gt;&lt;code&gt;.junie/guidelines.md&lt;/code&gt;&lt;/a&gt; (paired with &lt;code&gt;AGENTS.md&lt;/code&gt;) and wired three one-click Run Configurations under &lt;code&gt;.idea/runConfigurations/&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Build_LoL_Aggregates.xml&lt;/code&gt; — 16-core streaming &lt;code&gt;.jsonl.zst&lt;/code&gt; ETL + causal L2 model calibration&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Pytest_Suite.xml&lt;/code&gt; — synthetic GRID edge-case &amp;amp; compliance unit tests (&lt;code&gt;tests/test_etl_and_compliance.py&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Verify_No_Data_Leak.xml&lt;/code&gt; — pre-commit Git guardrail scanning tracked, staged, &lt;em&gt;and&lt;/em&gt; untracked files (&lt;code&gt;scripts/verify_no_data_leak.py&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By encoding explicit GRID stream invariants up front—for AI coding agents during implementation and inside &lt;strong&gt;PyCharm 2026.1.1&lt;/strong&gt; during IDE verification (keeping the repository natively Junie-ready via &lt;code&gt;.junie/guidelines.md&lt;/code&gt;)—every generated and reviewed function respected GRID's stream semantics from the start:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Excerpt from .junie/guidelines.md
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Stream .zst files line-by-line via zstandard.open(..., "rt", encoding="utf-8"). Never decompress to disk.
&lt;span class="k"&gt;- &lt;/span&gt;Check session_valid / final seriesState.valid before including match results (18 LoL series are marked invalid).
&lt;span class="k"&gt;- &lt;/span&gt;Handle multi-session files (e.g., series 2885343) where sequenceNumber resets at grid-started-feed.
&lt;span class="k"&gt;- &lt;/span&gt;Honor !-prefixed rollback events (e.g., series-!started-game, team-!picked-character).
&lt;span class="k"&gt;- &lt;/span&gt;NEVER commit stl-hackathon-2026-grid-starter/, *.zst, *.jsonl, meta/*.csv, or *.duckdb.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr7h5jbe9jura3rh5k68w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr7h5jbe9jura3rh5k68w.png" alt="PyCharm Pytest ETL and Analytics Suite with seven passing tests" width="799" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fywqohm97f5eqq27myhu0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fywqohm97f5eqq27myhu0.png" alt="PyCharm Verify Zero GRID Data Leak run configuration with a passing result" width="799" height="499"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Five Real GRID Data &amp;amp; Modeling Traps (Before vs. After)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Trap 1: Unordered &lt;code&gt;team.players&lt;/code&gt; Arrays, Trailing Whitespace &amp;amp; Stage Test Accounts (&lt;code&gt;LECTest1&lt;/code&gt;)
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before (Naive Prototype):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Assuming &lt;code&gt;game.teams[0].players[0..4]&lt;/code&gt; maps to &lt;code&gt;[TOP, JUNGLE, MID, BOT, SUPPORT]&lt;/code&gt;. In real GRID feeds—such as LCS 2026 Playoffs series &lt;code&gt;3000374&lt;/code&gt;—the Support player sits at index &lt;code&gt;0&lt;/code&gt; and Top sits at index &lt;code&gt;3&lt;/code&gt;, player names contain trailing whitespace (e.g., &lt;code&gt;"Loki "&lt;/code&gt;), and an emergency Riot tournament-realm test account (&lt;code&gt;"LECTest1"&lt;/code&gt;, &lt;code&gt;pid=123346&lt;/code&gt;) even evicted G2 Esports's starter &lt;code&gt;BrokenBlade&lt;/code&gt; during naive recency roster resolution!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After (3-Stage Telemetry Classifier + Placeholder Starter Guard in &lt;code&gt;etl/grid_parser.py&lt;/code&gt; &amp;amp; &lt;code&gt;etl/analytics.py&lt;/code&gt;):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Guided by our &lt;code&gt;.junie/guidelines.md&lt;/code&gt; contract against inspected Cloud9 Kia and LEC feeds, &lt;code&gt;infer_team_roles()&lt;/code&gt; classifies every player strictly from in-game telemetry (&lt;code&gt;neutralMinion&lt;/code&gt; kills, &lt;code&gt;minion&lt;/code&gt; kills, &lt;code&gt;visionScore&lt;/code&gt;, and &lt;code&gt;0–9m&lt;/code&gt; map coordinates from &lt;code&gt;player-completed-increaseLevel&lt;/code&gt;), stabilized by cross-game player majority vote, while &lt;code&gt;_is_placeholder_player()&lt;/code&gt; filters out tournament-realm test accounts (&lt;code&gt;LECTest1&lt;/code&gt;) during active starter selection—restoring &lt;code&gt;BrokenBlade&lt;/code&gt; (&lt;code&gt;32&lt;/code&gt; unique champs, &lt;code&gt;22&lt;/code&gt; comfort depth) on G2 Esports:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Jungle&lt;/strong&gt;: Highest &lt;code&gt;neutralMinion&lt;/code&gt; kills (&lt;code&gt;230+&lt;/code&gt; vs &lt;code&gt;0–5&lt;/code&gt; for laners).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Support&lt;/strong&gt;: Lowest &lt;code&gt;minion&lt;/code&gt; kills among the remaining four players, tie-broken by highest &lt;code&gt;visionScore&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Top / Mid / Bot&lt;/strong&gt;: Sorted by descending median &lt;code&gt;(y - x)&lt;/code&gt; on Summoner's Rift (&lt;code&gt;TOP&lt;/code&gt; in the upper-left corner has the largest &lt;code&gt;y - x&lt;/code&gt;, &lt;code&gt;MID&lt;/code&gt; clusters near the diagonal &lt;code&gt;0&lt;/code&gt;, &lt;code&gt;BOT&lt;/code&gt; sits at the lowest &lt;code&gt;y - x&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every edge case—including a shuffled &lt;code&gt;[SUPPORT, BOT, JUNGLE, MID, TOP]&lt;/code&gt; array, &lt;code&gt;"Loki "&lt;/code&gt; whitespace trimming, and &lt;code&gt;LECTest1&lt;/code&gt; filtering—is locked down in &lt;code&gt;test_role_inference_handles_arbitrary_slot_order()&lt;/code&gt; and &lt;code&gt;test_placeholder_stage_account_filter()&lt;/code&gt;.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 2: Abandoned Game Rollbacks, Multi-Session Resets &amp;amp; Invalid Tails
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before (Naive Prototype):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Reading every &lt;code&gt;series-ended-game&lt;/code&gt; or &lt;code&gt;game-state-tick&lt;/code&gt; blindly without session boundary tracking. Across the &lt;code&gt;745&lt;/code&gt; LoL &lt;code&gt;.jsonl.zst&lt;/code&gt; files (&lt;code&gt;1,741&lt;/code&gt; game rows in &lt;code&gt;meta/games.csv&lt;/code&gt;: &lt;code&gt;1,697&lt;/code&gt; &lt;code&gt;session_valid=True&lt;/code&gt; and &lt;code&gt;44&lt;/code&gt; &lt;code&gt;session_valid=False&lt;/code&gt;), remakes emit &lt;code&gt;series-!started-game&lt;/code&gt;, multi-session series (like &lt;code&gt;2885343&lt;/code&gt;) reset &lt;code&gt;sequenceNumber&lt;/code&gt; on a second &lt;code&gt;grid-started-feed&lt;/code&gt;, and &lt;code&gt;18&lt;/code&gt; LoL series include invalid sessions (&lt;code&gt;728&lt;/code&gt; valid series, &lt;code&gt;1&lt;/code&gt; multi-session overlap). Naive aggregation yields inflated or phantom match counts instead of the true corpus count.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After (&lt;code&gt;parse_envelopes()&lt;/code&gt; in &lt;code&gt;etl/grid_parser.py&lt;/code&gt;):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;code&gt;parse_envelopes()&lt;/code&gt; splits every file into explicit &lt;code&gt;grid-started-feed&lt;/code&gt; sessions, merges partial &lt;code&gt;seriesState&lt;/code&gt; snapshots only against the latest &lt;code&gt;includesFullState: true&lt;/code&gt; frame, discards rolled-back &lt;code&gt;!&lt;/code&gt; targets, and enforces &lt;code&gt;session_valid&lt;/code&gt;. Across all &lt;strong&gt;745 &lt;code&gt;.jsonl.zst&lt;/code&gt; series&lt;/strong&gt; streamed in parallel across 16 CPU cores (&lt;code&gt;29.5s&lt;/code&gt;, &lt;code&gt;0&lt;/code&gt; errors), the parser converges to the exact &lt;strong&gt;728 valid series / 1,697 validated games / 44 teams / 156 champions&lt;/strong&gt; verified in &lt;code&gt;meta_summary.json&lt;/code&gt;—and &lt;code&gt;test_parse_envelopes_handles_rollback_multisession_and_invalid()&lt;/code&gt; reproduces the rollback + invalid-tail pattern in &lt;code&gt;0.01s&lt;/code&gt; without needing the 1.4 GB raw dataset on CI.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 3: Small-Sample &lt;code&gt;1-0&lt;/code&gt; Win-Rate Illusions, Un-Decayed Team Strength &amp;amp; Non-Causal Leakage
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before (Naive Prototype):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Ranking picks by raw player win rate (&lt;code&gt;1-0 = 100% WR&lt;/code&gt;), using un-decayed team win rates that treat beating a bottom-tier squad the same as beating Gen.G, and fitting draft weights on full-dataset averages (leaking future tournament outcomes into earlier games).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After (Causal Online Elo + Empirical Bayes + Strictly Causal L2 Logistic &amp;amp; Pro Alignment Backtest in &lt;code&gt;etl/analytics.py&lt;/code&gt;):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
First, &lt;code&gt;empirical_bayes_rate(wins, games, prior_mean, prior_strength)&lt;/code&gt; shrinks small-sample champion and player records toward the Beta-Binomial prior (&lt;code&gt;k = 12.0&lt;/code&gt; global, &lt;code&gt;k = 8.0&lt;/code&gt; player comfort). Second, &lt;code&gt;calibrate_draft_win_model()&lt;/code&gt; sorts all games chronologically by &lt;code&gt;(scheduled_start, series_id, game_number)&lt;/code&gt;, accumulates &lt;strong&gt;Causal Online Elo&lt;/strong&gt; (with off-season mean reversion and &lt;code&gt;+25 Elo&lt;/code&gt; Blue-side expected edge), &lt;strong&gt;exponentially decayed 14m Gold Diff (&lt;code&gt;decay=0.90&lt;/code&gt;)&lt;/strong&gt;, side priors, champion EB, player mastery, synergy, and &lt;strong&gt;role-aware same-lane counters (&lt;code&gt;1.45×&lt;/code&gt;)&lt;/strong&gt; &lt;strong&gt;strictly before&lt;/strong&gt; observing each match—matching browser inference 1-to-1 with &lt;strong&gt;zero train–serve skew&lt;/strong&gt;. L2 regularization (&lt;code&gt;L2=0.04&lt;/code&gt;) is selected via an internal chronological split of the 1,229-game training set only, then evaluated strictly out-of-sample on the final &lt;strong&gt;308 future pro games&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strictly Causal OOS Ablation (&lt;code&gt;308&lt;/code&gt; Future Pro Games)&lt;/th&gt;
&lt;th&gt;Accuracy&lt;/th&gt;
&lt;th&gt;ROC-AUC&lt;/th&gt;
&lt;th&gt;Brier Score&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Blue-Side Base Rate&lt;/td&gt;
&lt;td&gt;55.8%&lt;/td&gt;
&lt;td&gt;0.500&lt;/td&gt;
&lt;td&gt;0.2485&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team WR + Side (v1 Prior)&lt;/td&gt;
&lt;td&gt;62.0%&lt;/td&gt;
&lt;td&gt;0.651&lt;/td&gt;
&lt;td&gt;0.2308&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;+ Causal Elo &amp;amp; Decayed 14m Macro&lt;/td&gt;
&lt;td&gt;64.6%&lt;/td&gt;
&lt;td&gt;0.686&lt;/td&gt;
&lt;td&gt;0.2203&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;+ Full Draft (EB + Mastery + Syn + Lane Counter)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;66.2%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.688&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;0.2198&lt;/strong&gt; (&lt;code&gt;-11.5%&lt;/code&gt; error, ECE &lt;code&gt;0.0335&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To verify &lt;strong&gt;recommendation fidelity&lt;/strong&gt; (not just outcome prediction), we also ran a strictly causal &lt;strong&gt;Pro Coach Pick Alignment Backtest&lt;/strong&gt; across all &lt;strong&gt;3,080 real pro picks&lt;/strong&gt; inside those 308 future holdout games under live Hard Fearless burnouts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pro Pick Alignment (&lt;code&gt;3,080&lt;/code&gt; Future Pro Picks)&lt;/th&gt;
&lt;th&gt;Meta-Only Baseline&lt;/th&gt;
&lt;th&gt;C9 ChronoDraft Causal Engine&lt;/th&gt;
&lt;th&gt;Gain&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Top-5 Recall (All Games)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;35.0%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;46.8%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+11.8 pp (&lt;code&gt;+33.7%&lt;/code&gt; rel)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Top-10 Recall (All Games)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;54.7%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;65.8%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+11.1 pp&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mean Reciprocal Rank (MRR)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.210&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.294&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+40.0% rel&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Game 3+ Hard Fearless Top-5 (&lt;code&gt;900&lt;/code&gt; picks)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;36.9%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;50.1%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;+13.2 pp&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The fitted weights (&lt;code&gt;eloDiff: 0.3194&lt;/code&gt;, &lt;code&gt;earlyMacro: 0.0552&lt;/code&gt;, &lt;code&gt;champStrength: 0.0147&lt;/code&gt;, &lt;code&gt;sidePrior: 0.0122&lt;/code&gt;, &lt;code&gt;mastery: 0.0071&lt;/code&gt;, &lt;code&gt;counter: 0.0006&lt;/code&gt;, &lt;code&gt;synergy: 0.0005&lt;/code&gt;) ship inside &lt;code&gt;web/public/data/meta_summary.json&lt;/code&gt; (~1.4 KB) and power the live War Room's &lt;strong&gt;Calibrated Win Probability Meter&lt;/strong&gt; and per-card &lt;code&gt;+X.X% WP&lt;/code&gt; shift pills.&lt;/p&gt;


&lt;h3&gt;
  
  
  Trap 4 &amp;amp; 5: Greedy Flex-Pick Trapping, 1-Ply Myopia &amp;amp; Score-Blind Series Regret
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Before (v1 Greedy Heuristic):&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Assigning roles greedily in pick order (&lt;code&gt;Aurora&lt;/code&gt; locks &lt;code&gt;MID&lt;/code&gt; and traps &lt;code&gt;Orianna&lt;/code&gt;), leaving Bans #2–#6 without a counterfactual &lt;code&gt;ΔWP&lt;/code&gt;, ignoring consecutive Snake Double-Pick turns (&lt;code&gt;R1+R2&lt;/code&gt;, &lt;code&gt;B2+B3&lt;/code&gt;, &lt;code&gt;B4+B5&lt;/code&gt;), and treating Bo5 Game 3 identically whether the series is &lt;code&gt;1-1&lt;/code&gt; or &lt;code&gt;2-0&lt;/code&gt; match point.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;After (&lt;code&gt;solveOptimalRoles&lt;/code&gt; + &lt;code&gt;recommendDraftOptions&lt;/code&gt; + Markov &lt;code&gt;expectedFutureGames&lt;/code&gt; in &lt;code&gt;web/src/engine/fearlessEngine.ts&lt;/code&gt;):&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Exact Maximum-Weight Bipartite Role Assignment (&lt;code&gt;solveOptimalRoles&lt;/code&gt;):&lt;/strong&gt; Exhaustively evaluates up to &lt;code&gt;5! = 120&lt;/code&gt; role permutations in &lt;code&gt;&amp;lt;0.05ms&lt;/code&gt;, sliding &lt;code&gt;Aurora&lt;/code&gt; cleanly to &lt;code&gt;TOP&lt;/code&gt; when &lt;code&gt;Orianna&lt;/code&gt; locks &lt;code&gt;MID&lt;/code&gt;, while tracking &lt;code&gt;flexOptions&lt;/code&gt; (lane disguise).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;True 2-Ply Adversarial Minimax + Softmax/VORP Ban &lt;code&gt;ΔWP&lt;/code&gt; + Snake Double-Pick Lookahead:&lt;/strong&gt; Simulates the opponent's optimal counter-reply across the top 14 candidates in &lt;code&gt;&amp;lt;8ms&lt;/code&gt; client-side, computes counterfactual &lt;strong&gt;Softmax + Role-VORP &lt;code&gt;+X.X% WP&lt;/code&gt;&lt;/strong&gt; across every threatening Ban card, and previews &lt;strong&gt;Snake Pair combos&lt;/strong&gt; on &lt;code&gt;R1&lt;/code&gt;, &lt;code&gt;B2&lt;/code&gt;, and &lt;code&gt;B4&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Score-Aware Markov Hard Fearless Series Regret:&lt;/strong&gt; Computes exact recursive &lt;code&gt;E[rem | wB, wR]&lt;/code&gt;—so Bo5 Game 3 at &lt;strong&gt;&lt;code&gt;1-1&lt;/code&gt; (&lt;code&gt;E[rem] = 1.50g&lt;/code&gt;)&lt;/strong&gt; applies twice the future depth protection of &lt;strong&gt;&lt;code&gt;2-0&lt;/code&gt; match point (&lt;code&gt;E[rem] = 0.75g&lt;/code&gt;)&lt;/strong&gt;, decaying to &lt;code&gt;0&lt;/code&gt; on Map 5!&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;10/10 &lt;code&gt;Vitest&lt;/code&gt; Proofs (&lt;code&gt;web/src/engine/fearlessEngine.test.ts&lt;/code&gt;):&lt;/strong&gt; Every invariant—from &lt;code&gt;Aurora + Orianna&lt;/code&gt; bipartite reassignment to Ban Phase 2 wasted-ban penalties, &lt;code&gt;1-1 vs 2-0&lt;/code&gt; Markov regret, Softmax Ban &lt;code&gt;ΔWP&lt;/code&gt;, and &lt;code&gt;R1&lt;/code&gt; Snake Pairs—runs in &lt;strong&gt;~23ms&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  3. Zero-Data-Leak CI Pipeline: Structural Trust
&lt;/h2&gt;

&lt;p&gt;Instead of relying on manual pre-push discipline, &lt;strong&gt;PyCharm Run Configurations&lt;/strong&gt; and &lt;strong&gt;GitHub Actions&lt;/strong&gt; (&lt;code&gt;.github/workflows/deploy-pages.yml&lt;/code&gt;) share the exact same enforcement chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python scripts/verify_no_data_leak.py   &lt;span class="c"&gt;# [PASS] Checked 38 candidate/tracked files. Zero GRID data leaks.&lt;/span&gt;
python -m pytest -v                    &lt;span class="c"&gt;# 7 passed in 0.36s&lt;/span&gt;
&lt;span class="nb"&gt;cd&lt;/span&gt; web &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm run build    &lt;span class="c"&gt;# 10 passed in 23ms · vite build -&amp;gt; GitHub Pages&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Even if a developer accidentally drops a &lt;code&gt;.zst&lt;/code&gt;, &lt;code&gt;.jsonl&lt;/code&gt;, &lt;code&gt;meta/*.csv&lt;/code&gt;, &lt;code&gt;.sqlite&lt;/code&gt;, &lt;code&gt;.parquet&lt;/code&gt;, or &lt;code&gt;.duckdb&lt;/code&gt; file into the working tree without staging it, &lt;code&gt;verify_no_data_leak.py&lt;/code&gt; inspects &lt;code&gt;git ls-files&lt;/code&gt;, &lt;code&gt;git diff --cached&lt;/code&gt;, and &lt;code&gt;git ls-files --others --exclude-standard&lt;/code&gt; and aborts the build before any commit or Pages deployment can succeed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flcyt1o1kcg9tput0ykty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flcyt1o1kcg9tput0ykty.png" alt="Side-by-side screenshots of the passing verification log open in PyCharm and the live ChronoDraft War Room in Chrome with Stage Mode on" width="800" height="250"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It Live
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Interactive War Room (Zero Installs, Zero API Keys):&lt;/strong&gt; &lt;a href="https://dagou1028.github.io/c9-chronodraft/" rel="noopener noreferrer"&gt;https://dagou1028.github.io/c9-chronodraft/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MIT Open-Source Repository:&lt;/strong&gt; &lt;a href="https://github.com/dagou1028/c9-chronodraft" rel="noopener noreferrer"&gt;https://github.com/dagou1028/c9-chronodraft&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Built with PyCharm 2026.1.1, &lt;code&gt;.junie/guidelines.md&lt;/code&gt;, Python 3.13, React 19, TypeScript, Vite, pytest, and Vitest for the Cloud9 × JetBrains: Sky's The Limit Hackathon 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>jetbrains</category>
      <category>pycharm</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
