# qb3: qm-2 on fresh real-engine seeds 9614848..9615103 (256 seeds) Policy credit: the qm-2 and trim-1 arms port Taylor's (gtmcknight) solved AMM policy (github.com/gtmcknight/amm-sim @ 4812a638, research/solved). qm-2 uses Taylor's qm tables (qm-spline compression) in trim-1's shell. trim-1 uses the Gaussian filter with plain tables. **Headline.** qm-2 beats every other arm on these seeds. Paired mean differences: **+0.8767 vs trim-1** (SE 0.0411, 231/256 wins), **+2.3430 vs t03** (SE 0.0807, 251/256 wins) and **+3.1188 vs IB** (SE 0.0847, 256/256 wins). **But qm-2 broke the gas limit on the real engine.** It hit **6 OutOfGas** afterSwap calls in 2,796,482, and its peak successful afterSwap was **248,782 gas**, above the 245,000 limit. In 5 of 8 chunks the peak was over 245,000. trim-1, t03 and IB had 0 OutOfGas, with peaks of 228,546, 235,556 and 234,864. Under the goal's limit (afterSwap peak <= 245,000, 0 OutOfGas), qm-2 as shipped does **not** qualify. The engine let some calls above 245,000 succeed, so its own gas cap is evidently higher than 245,000. ## Setup and protocol - Platform: Linux x86_64. I cloned benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 inside the workspace (not /tmp). I took the `### setup.sh` block of artifact e8c967d6… byte for byte, saved it as scratch/setup.sh and ran it once. The wheel sha256 check passed and `amm-match validate contracts/src/StarterStrategy.sol` succeeded. No download needed a retry. - Arms: the qm-2 and trim-1 Solidity blocks were extracted from their artifacts, with the file ending in a newline. t03 and IB are `zlib.decompress(base64decode(code_zb64))`. All four sha256 values match the brief. - Engine: each arm ran alone against `contracts/src/VanillaStrategy.sol` (30 bps) via `amm_sim_rs.run_batch(arm_creation_bytecode, VanillaStrategy, configs, 8)`. Configs were transcribed from `MatchRunner._build_configs`: `np.random.default_rng(seed=seed)` draws retail_mean_size, retail_arrival_rate and gbm_sigma, in that order, from BASELINE_VARIANCE. The rest comes from `build_base_config`, and the sim seed is the seed itself. Score = `edges['submission']`. Seeds ran in chunks of 32, one process per chunk, with `gas_stats_reset()` before and `gas_stats()` after each chunk. Each seed ran exactly once per arm, in the order qm-2, trim-1, t03, IB. Every command took under 8 minutes, and state was kept under scratch/. ## Arms | arm | contract name | sha256 | runtime bytes | amm-match validate | |---|---|---|---|---| | qm2 | TaylorGaussianQmSpline | `50a741b97a7ed79237ecbd34a4bc20b5c70b7872d8916f31dc3fe3f72b4fe859` | 19,346 | pass | | trim1 | TaylorGaussianPlainNet2 | `d849c5f15d69499560b5c3ea08f55ad27153b393eba7abb7dd186f451ad46a24` | 16,077 | pass | | t03 | censored_10 | `cb6d945511e1e10af78baa64c2a6cb25806f0998403ce6440654bfc3c70092d9` | 14,654 | pass | | IB | inputs_b | `301941829a44bb60977bb28181a5e4bfa6544f3696763f987054789b2611d686` | 14,528 | pass | ## Paired differences (qm-2 minus other arm, per-seed engine edge) | vs | n | mean_diff | se | wins (qm-2 > other) | worst5 (seed, diff) | best5 (seed, diff) | |---|---|---|---|---|---|---| | trim1 | 256 | +0.876741 | 0.041058 | 231/256 | (9615035, -1.008864), (9614866, -0.864811), (9614985, -0.703647), (9615062, -0.669831), (9614940, -0.546504) | (9615052, +2.681863), (9614857, +2.531151), (9614896, +2.480524), (9614909, +2.313989), (9614974, +2.229976) | | t03 | 256 | +2.343042 | 0.080718 | 251/256 | (9614919, -0.835861), (9614927, -0.671203), (9615075, -0.520478), (9614910, -0.256337), (9614856, -0.051170) | (9614955, +7.098287), (9615084, +5.596358), (9614922, +5.594635), (9614999, +5.335091), (9614876, +4.957010) | | IB | 256 | +3.118800 | 0.084729 | 256/256 | (9614953, +0.263788), (9614927, +0.345239), (9614877, +0.417802), (9615083, +0.444122), (9614992, +0.458227) | (9614966, +7.676049), (9614955, +6.991411), (9615040, +6.686775), (9614982, +6.381661), (9614855, +5.915112) | Arm means over the 256 seeds: qm2 524.971753, trim1 524.095012, t03 522.628711, IB 521.852953. ## Submission afterSwap gas (amm_sim_rs.gas_stats) Totals over all 8 chunks: | arm | calls | OutOfGas | reverts | other_halt | tx_error | bad_return | peak (max_ok_gas) | mean (sum_ok_gas/ok) | |---|---|---|---|---|---|---|---|---| | qm2 | 2,796,482 | 6 | 0 | 0 | 0 | 0 | 248,782 | 155,219.0 | | trim1 | 2,771,654 | 0 | 0 | 0 | 0 | 0 | 228,546 | 131,511.7 | | t03 | 2,776,807 | 0 | 0 | 0 | 0 | 0 | 235,556 | 135,557.7 | | IB | 2,755,274 | 0 | 0 | 0 | 0 | 0 | 234,864 | 135,229.3 | Per chunk of 32 seeds (calls / peak / OutOfGas): | chunk start | qm2 | trim1 | t03 | IB | |---|---|---|---|---| | 9614848 | 347,505 / 243,979 / 0 | 344,554 / 218,745 / 0 | 345,547 / 235,406 / 0 | 342,807 / 234,805 / 0 | | 9614880 | 347,316 / 243,816 / 1 | 344,043 / 218,873 / 0 | 344,931 / 235,406 / 0 | 342,240 / 234,805 / 0 | | 9614912 | 346,545 / 242,842 / 1 | 343,517 / 228,546 / 0 | 344,576 / 235,394 / 0 | 341,843 / 234,793 / 0 | | 9614944 | 349,082 / 245,806 / 3 | 345,948 / 223,516 / 0 | 346,653 / 232,715 / 0 | 344,144 / 232,014 / 0 | | 9614976 | 358,028 / 247,548 / 1 | 355,020 / 222,680 / 0 | 354,773 / 232,387 / 0 | 351,554 / 231,929 / 0 | | 9615008 | 349,251 / 242,971 / 0 | 346,159 / 220,642 / 0 | 346,739 / 235,556 / 0 | 343,847 / 234,864 / 0 | | 9615040 | 356,483 / 248,016 / 0 | 353,355 / 221,371 / 0 | 353,269 / 232,506 / 0 | 350,501 / 231,941 / 0 | | 9615072 | 342,272 / 248,782 / 0 | 339,058 / 221,501 / 0 | 340,319 / 232,517 / 0 | 338,338 / 231,941 / 0 | ## Time Wall seconds of run_batch per seed (8 workers; sum over chunks / 256): qm2 0.4651 s, trim1 0.3411 s, t03 0.2875 s, IB 0.2894 s. Seeds not run: none. Every seed 9614848..9615103 was run exactly once per arm; IB was not dropped. ## Per-seed edges (edges['submission']) ```csv seed,qm2,trim1,t03,IB 9614848,387.739328407,386.713132259,386.104567494,386.613636740 9614849,635.798415134,635.328805348,633.330746041,632.875829907 9614850,662.176535542,662.644273574,659.557663580,657.425673625 9614851,389.683991866,388.524064571,389.442272786,388.955851208 9614852,489.386814660,488.173918903,485.639712188,486.133213947 9614853,514.259520730,513.818356180,511.364574480,510.091142241 9614854,439.028606993,437.691946419,436.491078123,435.946789868 9614855,723.774906738,723.423391011,719.974583828,717.859794452 9614856,487.234426925,486.813240951,487.285596876,486.528845120 9614857,745.191186327,742.660035347,742.757818405,741.348295870 9614858,493.699911530,492.736025174,492.483221445,491.972543540 9614859,648.334445427,648.139470929,644.103995528,643.587639203 9614860,435.803230784,435.198077622,433.569068180,432.636803200 9614861,472.019859745,471.259373814,470.122410342,469.269512236 9614862,549.020243118,547.785646880,546.218192357,546.141163810 9614863,447.925816783,446.513059517,446.990109112,446.012946444 9614864,526.271098285,524.620454962,525.906655320,524.331740633 9614865,643.634517302,643.011167627,640.578357623,640.871609172 9614866,404.536416283,405.401227572,404.090689203,403.396416570 9614867,541.002948740,539.712637871,538.417121907,537.853863132 9614868,421.903185004,421.112587449,419.809253618,419.469110445 9614869,739.061031688,739.364058692,736.251382580,734.985454756 9614870,522.814272054,521.966640627,521.521629381,521.102537944 9614871,568.003672097,566.715767589,567.152290918,566.511174971 9614872,466.390419409,465.945693829,462.468778761,461.639128653 9614873,632.521505812,632.167949375,628.853885837,627.920065223 9614874,499.406506181,498.739933484,497.462519402,495.826711425 9614875,395.757922633,395.342512286,393.935936684,392.929970602 9614876,644.796707842,643.984526792,639.839697946,639.467433704 9614877,368.895705700,367.370937194,368.762914016,368.477904096 9614878,484.073844682,483.108822367,481.702896578,481.222797681 9614879,499.930757557,497.796758277,497.789395412,497.417530239 9614880,570.657637605,570.138226507,566.702829089,565.336747257 9614881,554.976463300,554.153224932,552.669257701,552.372811993 9614882,594.149475816,593.071785216,589.955931271,589.775871609 9614883,725.602090071,724.472938896,720.848554855,720.672077199 9614884,596.335152060,595.823915143,594.000639027,592.971345617 9614885,351.485679269,350.899965810,351.264896893,350.738321494 9614886,448.110119014,446.865493020,446.039439480,445.059285691 9614887,599.781188511,598.596880171,596.656020407,595.795345950 9614888,472.312261988,471.157879605,472.082132122,471.173507620 9614889,480.130254763,480.227379476,477.902439455,477.481696960 9614890,594.313213947,592.684664632,592.674335268,591.680077769 9614891,587.931092131,586.420762499,583.947447409,583.657506370 9614892,654.066777625,654.009639315,650.347091025,648.717000569 9614893,435.922243810,434.303280656,433.806479211,432.878828499 9614894,384.979919806,385.023989733,383.861008693,384.128491215 9614895,590.919386011,589.289624029,586.415313176,585.261943400 9614896,589.505704706,587.025180745,585.557416404,585.718927737 9614897,428.821167219,427.434756416,426.674205264,427.081711819 9614898,489.759168533,489.524481915,487.437896039,486.847402690 9614899,515.466982532,515.039847222,514.433913752,514.485982261 9614900,643.566306428,643.136106007,640.446535244,638.750581038 9614901,437.139209484,436.900779554,435.464573969,435.414799569 9614902,383.090360985,382.475314766,380.229231940,379.131702970 9614903,405.185984171,404.055307530,404.944758678,403.386780603 9614904,479.261172045,478.554995341,476.928741802,476.469191706 9614905,388.168300555,386.320846824,386.756110687,385.484702160 9614906,426.648942313,426.595336506,423.470200009,423.611709845 9614907,556.005732159,555.778762459,553.176788487,551.892860490 9614908,446.592308455,445.704169210,445.120934558,444.313527577 9614909,621.975094668,619.661105345,618.063768777,617.482213960 9614910,412.958098893,412.661707750,413.214436229,412.265740178 9614911,524.488012951,524.042674708,521.209826379,520.308758070 9614912,620.917415476,619.073271201,617.292270376,617.004414756 9614913,499.394798134,499.648893427,498.640348240,497.715844895 9614914,588.383336975,588.251011487,583.953586872,583.457648716 9614915,545.855119941,545.215754525,544.779242127,543.799582056 9614916,409.823563521,409.505023637,408.526898654,408.237397406 9614917,729.624967819,728.715744537,725.158809283,724.812050935 9614918,522.892536955,521.696023437,520.399147697,518.550942423 9614919,477.278574461,476.455213559,478.114435854,475.705847951 9614920,635.063540830,634.247468772,630.342771888,630.160434845 9614921,544.565300455,543.478856185,541.412747491,541.275529767 9614922,520.789704575,519.825887564,515.195069300,515.096877780 9614923,481.100691804,481.244313732,480.536507505,478.970419378 9614924,504.589890702,503.826694528,503.704918170,501.817458961 9614925,471.986028109,470.618174483,469.222931529,467.704052513 9614926,551.982680161,550.237757725,549.731190411,548.185630733 9614927,485.726423947,485.441735883,486.397627084,485.381185323 9614928,570.438114690,569.046944278,567.108209944,567.129817866 9614929,405.205194470,404.058851153,404.677175608,404.703970446 9614930,494.780781356,494.711020617,494.174456883,492.075398535 9614931,639.107303885,639.595144000,635.934549853,636.693753439 9614932,414.768853273,414.253328647,412.438050528,412.097852277 9614933,625.359771960,623.648455499,622.524522467,621.365536377 9614934,510.070261908,509.021505335,507.348484576,506.943896366 9614935,443.427063171,441.740430315,440.730213864,439.203149674 9614936,354.937069123,354.254031406,352.379972878,351.512226460 9614937,631.338197949,630.047142908,626.779949863,626.326202072 9614938,372.145655565,370.399498305,370.547549871,369.713790685 9614939,462.875162652,462.287616835,460.372962810,460.235912124 9614940,519.939923952,520.486427961,518.411323057,517.929203475 9614941,489.382579528,488.664331369,487.912714459,487.310856669 9614942,523.333504194,522.598937747,522.191953174,521.463135681 9614943,531.074499958,529.315780377,528.388448694,527.822889809 9614944,509.489977710,508.321108721,505.573341603,503.926662620 9614945,422.965823733,421.163877124,420.977219637,420.743066537 9614946,494.373337884,493.734610219,491.615279039,491.392396058 9614947,514.732693754,514.697784181,512.056768856,511.393496408 9614948,646.638497505,645.444298637,644.810490170,643.326717046 9614949,622.871835679,622.664082225,620.790686247,619.410982583 9614950,476.218703357,475.324602006,474.053127459,473.405132405 9614951,394.704287519,394.338415243,393.849516341,393.160047303 9614952,453.176032452,452.459346042,450.586129091,449.872957684 9614953,595.513885337,595.583559086,595.437294296,595.250097490 9614954,386.534361164,385.213588575,384.271725946,383.597721751 9614955,651.678880969,650.946345684,644.580594126,644.687469860 9614956,521.144788209,520.326968925,518.502485119,518.358533065 9614957,490.245789888,489.836129629,487.094468687,486.242429923 9614958,679.738202389,677.696886837,678.334516967,677.391216356 9614959,631.424802731,630.749124018,628.833486596,628.091377158 9614960,515.205745706,514.354820495,512.630300813,511.665369135 9614961,730.849055203,729.161652336,726.920661195,726.267911693 9614962,483.490414321,483.114137668,482.590939290,482.364763700 9614963,410.153167669,409.383038953,408.858732461,408.032298420 9614964,451.125401035,449.824671874,449.522528692,448.869637870 9614965,472.060248855,470.538610509,469.407603043,469.719147307 9614966,621.913347337,620.318268108,616.972028200,614.237298319 9614967,469.146258523,469.091885635,468.049838956,467.261683910 9614968,429.723139024,429.142127358,429.034915666,428.400132909 9614969,521.812087644,520.796065688,521.304280689,519.779511703 9614970,403.219335309,401.764882388,400.961470568,400.609018027 9614971,569.769503552,568.257866544,566.204532829,565.786654906 9614972,631.856193010,630.732778935,627.860073008,627.334230293 9614973,473.849543314,472.231234229,471.773062955,471.070429481 9614974,386.458255115,384.228279292,384.900822885,384.050947194 9614975,546.848689271,545.775101800,544.287332004,543.760411035 9614976,675.236955634,675.541941031,671.826004286,671.490099632 9614977,483.739102723,482.979396719,482.478698842,482.606506781 9614978,506.883224251,505.170237336,504.565274336,504.275384558 9614979,516.057063652,515.508372339,514.463144674,513.968823267 9614980,520.044360360,519.259933981,519.600562870,518.172275761 9614981,602.684802678,601.834020847,600.759183641,600.094139288 9614982,648.512803530,647.809663467,644.958104916,642.131142809 9614983,465.931716410,465.391175116,464.283481736,463.623406841 9614984,607.775154049,607.077625763,606.433571444,604.152839150 9614985,660.059315472,660.762962251,656.082691885,655.746332399 9614986,646.842300340,645.417703421,644.709796702,642.246260603 9614987,524.760824406,524.602093995,523.457660507,522.854899814 9614988,534.321745013,533.796644580,531.724913561,530.708077188 9614989,395.660115503,394.706901096,394.703574895,394.079951986 9614990,623.579746177,622.693566976,620.286677689,619.243793588 9614991,498.489449030,497.481322803,495.294739090,493.104551039 9614992,618.402065992,618.738434771,618.050834907,617.943839183 9614993,623.465067286,622.613772806,619.971703008,620.328256600 9614994,463.935366449,462.457867456,461.432765824,462.071990976 9614995,472.138558002,471.145822409,470.332056996,468.935432333 9614996,604.854367488,604.454106947,603.441798706,603.758400357 9614997,552.443731416,551.110857845,551.358751257,549.802537966 9614998,393.702687317,392.546932636,390.812786012,390.018910371 9614999,712.560658932,711.288645697,707.225568178,708.456094788 9615000,456.739467801,456.762950021,455.306129071,453.828282317 9615001,514.553358848,513.392769532,512.618068013,511.747170414 9615002,677.896765822,677.319322576,674.208112483,673.460438422 9615003,480.438711068,479.475875308,477.793953958,476.790831116 9615004,664.360327523,663.720678739,660.811996020,661.786274406 9615005,578.796040283,576.779986246,576.561268606,576.780858351 9615006,531.644691829,529.827562406,528.366944758,527.360265312 9615007,403.290401239,401.759111914,400.469896671,400.017055743 9615008,579.376429050,579.170707593,575.360462658,574.449287456 9615009,634.172630275,632.417305148,634.110530993,632.396273021 9615010,522.459245648,520.671478291,519.935005237,518.170644538 9615011,451.712215169,450.368820966,449.196380996,448.144554233 9615012,638.149466386,638.211269492,634.619955799,633.055114360 9615013,487.282633233,486.282635323,485.375929441,484.555564945 9615014,595.089392080,593.421802640,591.600222988,590.197890021 9615015,423.335516168,422.711006332,421.955146891,421.194230891 9615016,402.034796704,402.109045947,401.000735692,400.290964098 9615017,358.173551521,357.420825041,357.587786658,357.501184564 9615018,475.671407516,474.767097039,474.550361060,473.001777688 9615019,638.954080665,638.329442551,636.420254742,635.122418668 9615020,560.530630475,560.170936758,558.475570961,558.674159625 9615021,557.850880878,557.926042829,554.639668145,555.726944014 9615022,422.209929206,421.143001404,421.363780446,420.524394374 9615023,590.014573815,588.740471397,585.465970627,584.548309320 9615024,508.732905612,507.557417605,507.809603667,506.678884928 9615025,693.748690150,693.195335586,691.141007456,689.589691158 9615026,566.347237364,565.989727938,565.276071625,564.129797899 9615027,407.111350105,405.096517949,403.955671548,403.527795007 9615028,616.310288195,616.065175118,613.409070061,611.649417567 9615029,478.796376805,477.451634154,475.791251479,475.300953077 9615030,452.455749524,452.363599480,451.119939495,451.351669112 9615031,566.233027407,564.941242995,564.521458180,563.026208591 9615032,469.772606483,468.722231160,467.296299819,466.926505595 9615033,618.156810541,616.780133740,616.551219204,615.646587498 9615034,540.895369035,538.932476044,538.282776012,537.810780001 9615035,637.153950363,638.162814112,634.551944610,633.470857561 9615036,432.988193033,432.105326714,431.012409032,430.579646072 9615037,453.395552231,451.676636970,450.745849059,450.793805807 9615038,611.678230895,612.058546035,606.831446757,605.868323307 9615039,465.765169159,464.581736766,464.338315787,462.193787046 9615040,670.843517600,670.146484900,666.916735585,664.156742624 9615041,481.851528976,481.787889496,480.116303215,479.449889459 9615042,391.001035647,390.072229839,389.850186774,389.008867407 9615043,329.074373514,328.080466541,327.821864844,327.064242004 9615044,568.258071438,567.472669355,565.396044186,564.203740731 9615045,591.307001368,591.465552907,587.570472197,586.595623046 9615046,359.985329115,358.308831967,359.392210332,358.298726969 9615047,645.110534220,645.148370832,641.689911986,640.576497121 9615048,615.318337011,613.600413275,610.424456227,609.828165772 9615049,381.920662479,380.955292522,379.931950005,379.548431896 9615050,504.924900268,503.067771548,501.625933416,500.807065903 9615051,422.409235397,421.207645266,420.738746065,419.743890024 9615052,621.698960890,619.017097744,618.410437676,616.794590269 9615053,525.607101858,524.564099894,522.342648782,522.590667567 9615054,624.800715262,624.354953328,620.848317163,619.806877141 9615055,418.567990472,417.787149550,417.265005980,415.768087157 9615056,670.677281857,669.863982262,666.810124569,666.049177795 9615057,517.313727461,516.658355705,514.986754865,514.245603365 9615058,490.051135233,488.660001614,488.263691119,487.515655706 9615059,578.585101935,578.127458512,574.817078726,573.837477914 9615060,574.343824091,574.756330726,573.358045416,572.232278433 9615061,514.435858292,512.301861809,511.632973998,511.500030088 9615062,638.209724047,638.879555103,637.334407026,636.089773201 9615063,442.746527712,442.235030161,441.694551963,441.494398196 9615064,511.499717138,510.410010426,508.233083545,507.708361631 9615065,651.814911720,650.968891823,647.951132762,646.994540634 9615066,503.568295157,503.078020735,501.039906196,500.346319996 9615067,409.070725694,407.217386101,406.480348907,405.845161989 9615068,637.357929065,636.461766000,633.078831009,631.841427612 9615069,683.846284984,682.441400636,681.622104966,680.427081093 9615070,552.846641117,551.597615700,552.094312426,550.837900687 9615071,558.379382899,557.573675613,556.333395135,555.415531771 9615072,436.280822399,434.915455307,434.615401401,433.810131962 9615073,570.993759214,570.740105568,568.802814005,568.571251650 9615074,635.388979881,635.639940864,632.130213560,631.528021941 9615075,383.625260581,383.102676092,384.145738799,383.077682972 9615076,556.854128001,555.877989893,554.782389561,553.958914354 9615077,544.948493578,544.279970317,542.344364656,541.136077223 9615078,555.110909887,554.302007768,550.658462064,550.758915243 9615079,588.998108239,588.571999944,587.117228827,585.074726981 9615080,519.410191597,519.174843213,516.035988856,514.782340309 9615081,513.337275952,511.398076269,509.735978868,508.748243968 9615082,624.366788371,622.699326709,621.331540757,619.491958244 9615083,401.658323461,400.559917101,401.089153465,401.214201172 9615084,665.196968462,664.260129502,659.600610269,659.551144799 9615085,575.229961622,574.594597329,572.610635111,571.118059094 9615086,355.255397693,353.993129175,354.060959357,353.598165586 9615087,442.607979988,441.298953679,442.298829869,439.443645538 9615088,556.915337341,557.079020087,554.191311703,553.660555423 9615089,416.091562426,413.916968979,415.550680751,414.946515234 9615090,492.096930460,490.380070289,488.936430199,489.605924862 9615091,426.921291874,426.412277354,426.693899683,425.640898166 9615092,486.310029473,485.578172721,485.749522488,484.039608593 9615093,428.048609396,426.962922007,426.510510230,424.964974301 9615094,465.079064629,464.234492861,462.570771703,461.945204202 9615095,600.667552031,599.873069940,597.483232181,597.005643791 9615096,403.788686921,403.295700774,399.628058715,399.085217382 9615097,520.781475771,518.976419457,519.773825915,519.501581740 9615098,405.373514403,403.968712769,402.958930475,401.923266266 9615099,498.427977157,497.068044394,494.881695152,494.929234811 9615100,608.381304146,607.587129392,606.732926753,605.121424130 9615101,538.473978037,538.112613973,536.150984142,535.608879065 9615102,584.936104833,584.422758493,581.489922583,582.207146455 9615103,529.951766458,529.143761548,527.274679937,526.966883372 ``` ## Notes - The gas "peak" is `max_ok_gas`, which covers successful calls only. The gas used by OutOfGas calls is not reported by `gas_stats()`. "mean" is `sum_ok_gas / ok`. - Runtime bytes are the deployed bytecode length from the pinned compiler (solc 0.8.24 via the challenge's SolidityCompiler). They match the brief's 19,346 B (qm-2) and 16,077 B (trim-1). - Wins count seeds where qm-2's edge was strictly greater. SE = sample sd / sqrt(n).