{"approach":"YQ + constant-only asymmetry tuning. Sequential coordinate search over STALE_DIR_COEF, STALE_ATTRACT_FRAC, TRADE_TOX_BOOST, DIR_COEF, DIR_TOX_COEF, DIR_DECAY, in that order. Pass 1 tests each current-center constant at x0.5, x0.75, x1.25, x1.5; pass 2 tests x0.95 and x1.05 around the selected center. After each coordinate, retain the highest training mean difference, including the incumbent. Every measured variant is compared against the same cached YQ results on seeds 10000..10499. Unlisted params remain exactly YQ; params are decimal strings of raw WAD-scaled integer constants. Global toxicity decays, fair-price estimation, symmetric fees, tail compression and state layout stay fixed. YQ has no separate persistent trade-boost state: it recomputes that boost per swap; DIR_DECAY controls directional-pressure memory. Raw multipliers are not clipped, so DIR_DECAY=1.2 WAD is an amplification trial, not a decay. The code was fixed after pass 2 and evaluated once against YQ on seeds 500000..501999. Training selections are not promotions. Promotion requires heldout mean_diff > 2*se.","tried":[{"id":"p1-STALE_DIR_COEF-50","pass":1,"coordinate":"STALE_DIR_COEF","multiplier":0.5,"params":{"STALE_DIR_COEF":"342500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-31.50477168975379,"se":0.27076323749092607,"worst":[{"seed":10307,"diff":-50.696967297645756},{"seed":10199,"diff":-49.79234534706802},{"seed":10271,"diff":-49.16687275831839},{"seed":10275,"diff":-47.96161470915274},{"seed":10081,"diff":-46.361006183799304}],"code_sha256":"d18f729a86d802642896be7d4dd7cefd7c52994b155510bd970983a4813a292a","mean_edge":491.1502444448932},{"id":"p1-STALE_DIR_COEF-75","pass":1,"coordinate":"STALE_DIR_COEF","multiplier":0.75,"params":{"STALE_DIR_COEF":"513750000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-8.304550424612637,"se":0.11069614148743961,"worst":[{"seed":10307,"diff":-16.85676294838288},{"seed":10271,"diff":-16.039843456621497},{"seed":10199,"diff":-15.085218055727523},{"seed":10275,"diff":-14.96374419887627},{"seed":10485,"diff":-14.921264759889254}],"code_sha256":"744cb75c9888632e4bf84869a17683992755b23a66aeac040766368453a9a7ce","mean_edge":514.3504657100343},{"id":"p1-STALE_DIR_COEF-125","pass":1,"coordinate":"STALE_DIR_COEF","multiplier":1.25,"params":{"STALE_DIR_COEF":"856250000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-39.755332056441375,"se":1.2022086013673856,"worst":[{"seed":10346,"diff":-193.75674633407095},{"seed":10483,"diff":-169.35867207133265},{"seed":10089,"diff":-165.0539723063671},{"seed":10411,"diff":-159.6718647295702},{"seed":10475,"diff":-141.83578547940795}],"code_sha256":"5cac5a7bdd7d9061f2f23887f1087972561119709d549aed215551ee89ef45c3","mean_edge":482.8996840782056},{"id":"p1-STALE_DIR_COEF-150","pass":1,"coordinate":"STALE_DIR_COEF","multiplier":1.5,"params":{"STALE_DIR_COEF":"1027500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-143.11955472242633,"se":2.4121959753494893,"worst":[{"seed":10411,"diff":-355.44569715590876},{"seed":10207,"diff":-354.833905927698},{"seed":10205,"diff":-347.1740682668635},{"seed":10451,"diff":-311.56068403916447},{"seed":10356,"diff":-293.9463840999524}],"code_sha256":"488d6d2e7ce9dcbebf920d31ec8b7454f3e286641280aaa67a84bc00eb9f63e0","mean_edge":379.5354614122207},{"id":"p1-STALE_ATTRACT_FRAC-50","pass":1,"coordinate":"STALE_ATTRACT_FRAC","multiplier":0.5,"params":{"STALE_ATTRACT_FRAC":"562000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-4.500632638982318,"se":0.06498589861737053,"worst":[{"seed":10174,"diff":-8.132325884143711},{"seed":10034,"diff":-8.108236239960831},{"seed":10084,"diff":-8.101801233042579},{"seed":10190,"diff":-7.956744445500931},{"seed":10163,"diff":-7.805259769475015}],"code_sha256":"c254193146a0e291cdcfa3872dc13d25a10db7f78cb0c7875dbd0d141d75d766","mean_edge":518.1543834956647},{"id":"p1-STALE_ATTRACT_FRAC-75","pass":1,"coordinate":"STALE_ATTRACT_FRAC","multiplier":0.75,"params":{"STALE_ATTRACT_FRAC":"843000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.7322818985996395,"se":0.02963321409245504,"worst":[{"seed":10477,"diff":-2.720610913663961},{"seed":10060,"diff":-2.683307321427378},{"seed":10216,"diff":-2.5509978040718124},{"seed":10110,"diff":-2.541775062913757},{"seed":10158,"diff":-2.4955203936632415}],"code_sha256":"d8b08d9748657b754d06416870a22489cbb418a47d1f51461846784e5f4da691","mean_edge":521.9227342360474},{"id":"p1-STALE_ATTRACT_FRAC-125","pass":1,"coordinate":"STALE_ATTRACT_FRAC","multiplier":1.25,"params":{"STALE_ATTRACT_FRAC":"1405000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.5049011731286258,"se":0.023651217292829672,"worst":[{"seed":10048,"diff":-2.2874702146700656},{"seed":10301,"diff":-2.144220316090241},{"seed":10241,"diff":-1.7721750233903322},{"seed":10361,"diff":-1.7411061393366936},{"seed":10345,"diff":-1.7214785205549106}],"code_sha256":"3fd9a8dba75ece4984afb1345a2cb161b301564666dfd94aff8da5f6cce29ac4","mean_edge":522.1501149615183},{"id":"p1-STALE_ATTRACT_FRAC-150","pass":1,"coordinate":"STALE_ATTRACT_FRAC","multiplier":1.5,"params":{"STALE_ATTRACT_FRAC":"1686000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-1.3190064292391672,"se":0.029124172507969722,"worst":[{"seed":10048,"diff":-3.111656596215539},{"seed":10241,"diff":-2.9873629018056818},{"seed":10476,"diff":-2.8206386690278578},{"seed":10198,"diff":-2.7864448309497902},{"seed":10223,"diff":-2.769521335013337}],"code_sha256":"fa6865b10e07af024a44ced9e21104492e133c237f2bbb6a249b70f30600ec51","mean_edge":521.3360097054078},{"id":"p1-TRADE_TOX_BOOST-50","pass":1,"coordinate":"TRADE_TOX_BOOST","multiplier":0.5,"params":{"TRADE_TOX_BOOST":"125000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.0928868779305168,"se":0.027063259435244492,"worst":[{"seed":10345,"diff":-1.4444449669803134},{"seed":10485,"diff":-1.305652314565691},{"seed":10204,"diff":-1.2563498635743144},{"seed":10357,"diff":-1.1504311145783959},{"seed":10304,"diff":-1.1139276838280239}],"code_sha256":"c72dd909443a46eb05827e8d3dfaab64ae8da70c35d30ffaeba937ccecc41066","mean_edge":522.5621292567164},{"id":"p1-TRADE_TOX_BOOST-75","pass":1,"coordinate":"TRADE_TOX_BOOST","multiplier":0.75,"params":{"TRADE_TOX_BOOST":"187500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.019623014337751443,"se":0.0120421142272943,"worst":[{"seed":10304,"diff":-1.0591658136439719},{"seed":10209,"diff":-0.8968098997951301},{"seed":10485,"diff":-0.8705626528764014},{"seed":10064,"diff":-0.8449150932950715},{"seed":10008,"diff":-0.7092340155363672}],"code_sha256":"1fcbe0627566092dedf1d442ba636ed9e05a7e0aee50ba479c69a025ff779670","mean_edge":522.6353931203092},{"id":"p1-TRADE_TOX_BOOST-125","pass":1,"coordinate":"TRADE_TOX_BOOST","multiplier":1.25,"params":{"TRADE_TOX_BOOST":"312500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0015510931574357302,"se":0.011577252175275443,"worst":[{"seed":10366,"diff":-1.095749279791221},{"seed":10409,"diff":-0.8471138909766296},{"seed":10069,"diff":-0.7477175003406273},{"seed":10273,"diff":-0.7039078989714653},{"seed":10128,"diff":-0.6999048363695692}],"code_sha256":"1ec5a67c9a19cf83b1e3c845b1e3097812563ae18db400d1b0aa605ff8b986f7","mean_edge":522.6565672278044},{"id":"p1-TRADE_TOX_BOOST-150","pass":1,"coordinate":"TRADE_TOX_BOOST","multiplier":1.5,"params":{"TRADE_TOX_BOOST":"375000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.05419141160294601,"se":0.01980990919435505,"worst":[{"seed":10054,"diff":-5.100639222989344},{"seed":10366,"diff":-1.4236298144028297},{"seed":10409,"diff":-1.390402358167421},{"seed":10086,"diff":-1.04744512713512},{"seed":10449,"diff":-1.0173389565750313}],"code_sha256":"f5db80f9f9e3fd9e735ef6470ddebd9da719c8b43364326e8b965e714db8f9c1","mean_edge":522.6008247230441},{"id":"p1-DIR_COEF-50","pass":1,"coordinate":"DIR_COEF","multiplier":0.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"1000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.001910916456960308,"se":0.012344791220715187,"worst":[{"seed":10048,"diff":-1.2824899945661627},{"seed":10366,"diff":-1.2246350917529298},{"seed":10409,"diff":-1.0190872617533842},{"seed":10173,"diff":-0.8627466702191668},{"seed":10126,"diff":-0.7908654680469454}],"code_sha256":"6076d2c5eda755779d6a8331c4c37fbacbff1e500fcb9bc439b00675c383a4cd","mean_edge":522.6569270511039},{"id":"p1-DIR_COEF-75","pass":1,"coordinate":"DIR_COEF","multiplier":0.75,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"1500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.0005076253771467236,"se":0.012032323999724941,"worst":[{"seed":10048,"diff":-1.3155902262166705},{"seed":10366,"diff":-1.2310839414581096},{"seed":10409,"diff":-0.864151272922868},{"seed":10128,"diff":-0.7810117087915387},{"seed":10173,"diff":-0.7419816263299026}],"code_sha256":"20970ee38130dc1e86b37b5d1d436059d840efaac4b60b5b4679bb58029fe039","mean_edge":522.6545085092698},{"id":"p1-DIR_COEF-125","pass":1,"coordinate":"DIR_COEF","multiplier":1.25,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0035664816363391765,"se":0.011171109279914947,"worst":[{"seed":10366,"diff":-1.011229088311893},{"seed":10409,"diff":-0.8534656768438253},{"seed":10128,"diff":-0.7762189250792062},{"seed":10043,"diff":-0.7059657461281859},{"seed":10086,"diff":-0.6653994865657751}],"code_sha256":"b565fe8ee54acd6a8ec5345998e31d733599fff8573d0808f5e7eb9b5ee443a2","mean_edge":522.6585826162833},{"id":"p1-DIR_COEF-150","pass":1,"coordinate":"DIR_COEF","multiplier":1.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"3000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0011054925593252847,"se":0.011221186645246949,"worst":[{"seed":10304,"diff":-0.9535967326304444},{"seed":10409,"diff":-0.8025550709994604},{"seed":10043,"diff":-0.7214800961877472},{"seed":10128,"diff":-0.6623868021994213},{"seed":10273,"diff":-0.6542823430052067}],"code_sha256":"5099b181893401211fb3bd16825d312ef7276244cf22b07559c5f795fa5dab4f","mean_edge":522.6561216272063},{"id":"p1-DIR_TOX_COEF-50","pass":1,"coordinate":"DIR_TOX_COEF","multiplier":0.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"5000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.004224939174935571,"se":0.01126860573195588,"worst":[{"seed":10366,"diff":-1.0554561008456176},{"seed":10409,"diff":-0.8540405957224948},{"seed":10273,"diff":-0.7231041533963207},{"seed":10043,"diff":-0.7017104404014844},{"seed":10128,"diff":-0.677158595603828}],"code_sha256":"8ae69febb6b8a8edfb9c4fc9a8280b4c0da3c75af1bbab7b9cedcd98b5227f16","mean_edge":522.6592410738219},{"id":"p1-DIR_TOX_COEF-75","pass":1,"coordinate":"DIR_TOX_COEF","multiplier":0.75,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.005668064038448279,"se":0.01131265952849396,"worst":[{"seed":10366,"diff":-1.0117211503408043},{"seed":10409,"diff":-0.8536353349458068},{"seed":10128,"diff":-0.7740612617345732},{"seed":10273,"diff":-0.724773535873851},{"seed":10043,"diff":-0.703643282691246}],"code_sha256":"80102efc39166ef1eca865b956a6836b0fd4ee79c31165e150cbbe32fb984772","mean_edge":522.6606841986854},{"id":"p1-DIR_TOX_COEF-125","pass":1,"coordinate":"DIR_TOX_COEF","multiplier":1.25,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"12500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0037255325915384672,"se":0.011087271226519363,"worst":[{"seed":10366,"diff":-1.0170884784484997},{"seed":10409,"diff":-0.8533015733531784},{"seed":10043,"diff":-0.7079127290710403},{"seed":10128,"diff":-0.6952061631910738},{"seed":10086,"diff":-0.6661652656092656}],"code_sha256":"2ae24b7f4f6927249e151fadccfea23a3e518acd7d03dcef3ac44f9459dc31ec","mean_edge":522.6587416672385},{"id":"p1-DIR_TOX_COEF-150","pass":1,"coordinate":"DIR_TOX_COEF","multiplier":1.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"15000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.004840293010290111,"se":0.011035281265150514,"worst":[{"seed":10366,"diff":-0.965118223448485},{"seed":10409,"diff":-0.8357668768742315},{"seed":10043,"diff":-0.7100580124925955},{"seed":10128,"diff":-0.6973753068116366},{"seed":10086,"diff":-0.66660975783509}],"code_sha256":"3eec461b0a683ca555efba951accda4767338ac1bf5691d69483215b1c341dbd","mean_edge":522.6598564276572},{"id":"p1-DIR_DECAY-50","pass":1,"coordinate":"DIR_DECAY","multiplier":0.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000","DIR_DECAY":"400000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.02064355828577163,"se":0.012476260626315855,"worst":[{"seed":10366,"diff":-1.2108066445330223},{"seed":10409,"diff":-1.1682146505075934},{"seed":10304,"diff":-1.0812791206317343},{"seed":10223,"diff":-0.9539979208232126},{"seed":10273,"diff":-0.8605794068664636}],"code_sha256":"49c4c0916ba5abaf91bdd85078d0a70d348bfc44e66432a51eafde0a9c0b5f59","mean_edge":522.6343725763612},{"id":"p1-DIR_DECAY-75","pass":1,"coordinate":"DIR_DECAY","multiplier":0.75,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000","DIR_DECAY":"600000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.013113439862458677,"se":0.012086601120378182,"worst":[{"seed":10366,"diff":-1.10676186639148},{"seed":10409,"diff":-1.0567186140092417},{"seed":10223,"diff":-0.9403220837635899},{"seed":10021,"diff":-0.8354704003882034},{"seed":10173,"diff":-0.7841423307634159}],"code_sha256":"7a2ef1b99c4323220a9826f483971f7144cac8e0f4b7bd39e89889d9e412a56e","mean_edge":522.6419026947846},{"id":"p1-DIR_DECAY-125","pass":1,"coordinate":"DIR_DECAY","multiplier":1.25,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000","DIR_DECAY":"1000000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-1.6395337020176213,"se":0.0880242522881358,"worst":[{"seed":10498,"diff":-12.842910129932875},{"seed":10265,"diff":-11.6684858952068},{"seed":10362,"diff":-10.830456148409041},{"seed":10225,"diff":-9.282271665433598},{"seed":10074,"diff":-8.787916297531297}],"code_sha256":"311175f8d5631407e7235437c13439a9c4b106c2def9340887681c1e57caa4c0","mean_edge":521.0154824326294},{"id":"p1-DIR_DECAY-150","pass":1,"coordinate":"DIR_DECAY","multiplier":1.5,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000","DIR_DECAY":"1200000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-185.46180432638974,"se":7.5666843652830105,"worst":[{"seed":10237,"diff":-510.8003089218467},{"seed":10209,"diff":-488.6440963673798},{"seed":10411,"diff":-468.7798802725787},{"seed":10296,"diff":-465.55572464237116},{"seed":10462,"diff":-464.8397067695636}],"code_sha256":"e45f5f9379a6422c3f52fdff953e2b2132622dcf86e8aab585a16e80dede74af","mean_edge":337.1932118082572},{"id":"p2-STALE_DIR_COEF-95","pass":2,"coordinate":"STALE_DIR_COEF","multiplier":0.95,"params":{"STALE_DIR_COEF":"650750000000000000","TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.23076126294076188,"se":0.04288558498588041,"worst":[{"seed":10054,"diff":-5.995792840416584},{"seed":10273,"diff":-2.619026595805849},{"seed":10003,"diff":-2.214830735186183},{"seed":10403,"diff":-1.9825849920386531},{"seed":10034,"diff":-1.972712607750509}],"code_sha256":"921a3c55d2bfa1c3e6c08984d13bf6871909d2d14277190adc07d985f31a025a","mean_edge":522.4242548717062},{"id":"p2-STALE_DIR_COEF-105","pass":2,"coordinate":"STALE_DIR_COEF","multiplier":1.05,"params":{"STALE_DIR_COEF":"719250000000000000","TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.8864950035420182,"se":0.08551598902926094,"worst":[{"seed":10166,"diff":-25.44321817729667},{"seed":10370,"diff":-11.339222340818196},{"seed":10369,"diff":-11.296483269030375},{"seed":10361,"diff":-10.270847848157246},{"seed":10227,"diff":-9.849180230353625}],"code_sha256":"891ce0e074b54c47c7ed65b37db86c06048a676e09002f12f3303e164299ea8a","mean_edge":521.7685211311049},{"id":"p2-STALE_ATTRACT_FRAC-95","pass":2,"coordinate":"STALE_ATTRACT_FRAC","multiplier":0.95,"params":{"STALE_ATTRACT_FRAC":"1067800000000000000","TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.0034988088175936126,"se":0.01454542817108888,"worst":[{"seed":10301,"diff":-2.2724198583475754},{"seed":10273,"diff":-1.09257490351672},{"seed":10304,"diff":-1.0300537700211407},{"seed":10366,"diff":-0.9856087750241613},{"seed":10167,"diff":-0.911781278031981}],"code_sha256":"672437f00b07913a1c89c711b46934c7152f318c2158bfb9e57af2fe2e484630","mean_edge":522.6515173258293},{"id":"p2-STALE_ATTRACT_FRAC-105","pass":2,"coordinate":"STALE_ATTRACT_FRAC","multiplier":1.05,"params":{"STALE_ATTRACT_FRAC":"1180200000000000000","TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.03827423338419169,"se":0.014693627520813287,"worst":[{"seed":10301,"diff":-2.1815570651936014},{"seed":10173,"diff":-0.9736655280044033},{"seed":10409,"diff":-0.9698856786279748},{"seed":10043,"diff":-0.9082612700883601},{"seed":10086,"diff":-0.8056425742023521}],"code_sha256":"20955f1dfff1f2331ac9614ea29e325927974d219d1fbbc2041fbb571a2ce991","mean_edge":522.6167419012628},{"id":"p2-TRADE_TOX_BOOST-95","pass":2,"coordinate":"TRADE_TOX_BOOST","multiplier":0.95,"params":{"TRADE_TOX_BOOST":"296875000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0008261240780873322,"se":0.01006655064997798,"worst":[{"seed":10409,"diff":-0.8433993672821316},{"seed":10366,"diff":-0.8110176177684707},{"seed":10043,"diff":-0.7167161448601291},{"seed":10173,"diff":-0.6565439431464029},{"seed":10086,"diff":-0.631358973743886}],"code_sha256":"7fcc103b948d3dc18b1d1f8432fcb65f7b5ed0335e7acc73adf3da9d636af11d","mean_edge":522.6558422587251},{"id":"p2-TRADE_TOX_BOOST-105","pass":2,"coordinate":"TRADE_TOX_BOOST","multiplier":1.05,"params":{"TRADE_TOX_BOOST":"328125000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.02467248158549421,"se":0.01633289301886568,"worst":[{"seed":10054,"diff":-5.018819000142116},{"seed":10409,"diff":-1.1947647792499083},{"seed":10366,"diff":-1.1894991257336187},{"seed":10003,"diff":-0.8198112434477025},{"seed":10241,"diff":-0.81941128524943}],"code_sha256":"de75e74d2f66f4190977ef564d5d56c15ac497eebc26c62688f84351ee15093b","mean_edge":522.6303436530615},{"id":"p2-DIR_COEF-95","pass":2,"coordinate":"DIR_COEF","multiplier":0.95,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2375000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0036570569405796503,"se":0.01138359658747249,"worst":[{"seed":10366,"diff":-1.0548728930368725},{"seed":10409,"diff":-0.8536577077833272},{"seed":10273,"diff":-0.7213096281286653},{"seed":10043,"diff":-0.6963739086885425},{"seed":10128,"diff":-0.6717565384655018}],"code_sha256":"42f26fea55ee0b8a306e35d7e932b5f1bde5cb4f3db1486599c432923140bc19","mean_edge":522.6586731915876},{"id":"p2-DIR_COEF-105","pass":2,"coordinate":"DIR_COEF","multiplier":1.05,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2625000000000000","DIR_TOX_COEF":"7500000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.004916331217435641,"se":0.011195452378351857,"worst":[{"seed":10366,"diff":-1.015750830714751},{"seed":10409,"diff":-0.8364476027138608},{"seed":10043,"diff":-0.7071581433179972},{"seed":10128,"diff":-0.6951558560476769},{"seed":10003,"diff":-0.6676770204893501}],"code_sha256":"5699a98cd44a62199b1b949b85e71582265c41e76c9877c1bc46746509b9b63a","mean_edge":522.6599324658644},{"id":"p2-DIR_TOX_COEF-95","pass":2,"coordinate":"DIR_TOX_COEF","multiplier":0.95,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7125000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.0046012829113470845,"se":0.011293855401556372,"worst":[{"seed":10366,"diff":-1.0550286354612126},{"seed":10409,"diff":-0.8536612631908156},{"seed":10128,"diff":-0.7737383274292142},{"seed":10273,"diff":-0.7245225229891048},{"seed":10043,"diff":-0.7035155000364739}],"code_sha256":"5775fe06d5c11a5aab9f8bc74deaaa162dc1c098a791547e98571a03936f2fda","mean_edge":522.6596174175583},{"id":"p2-DIR_TOX_COEF-105","pass":2,"coordinate":"DIR_TOX_COEF","multiplier":1.05,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7875000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.006341449251751442,"se":0.011303169876549942,"worst":[{"seed":10366,"diff":-1.0116465471070342},{"seed":10409,"diff":-0.8536095320253025},{"seed":10128,"diff":-0.7743843828250192},{"seed":10273,"diff":-0.7250247623260293},{"seed":10043,"diff":-0.7039625137149415}],"code_sha256":"e402a958632f005a0eb13477a3e36b0bfd742112d387a11f785c73ab0da9bb91","mean_edge":522.6613575838987},{"id":"p2-DIR_DECAY-95","pass":2,"coordinate":"DIR_DECAY","multiplier":0.95,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7875000000000000","DIR_DECAY":"760000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":-0.0029277846833058447,"se":0.01131860908583055,"worst":[{"seed":10366,"diff":-0.9677275162550814},{"seed":10409,"diff":-0.8387507358305584},{"seed":10173,"diff":-0.7509507381797675},{"seed":10273,"diff":-0.7460562250605562},{"seed":10043,"diff":-0.6891983235061616}],"code_sha256":"f9bf2628e8b8b9d391061ccfb32a564faa94f62f20e4a6a075f029a5469bb15a","mean_edge":522.6520883499637},{"id":"p2-DIR_DECAY-105","pass":2,"coordinate":"DIR_DECAY","multiplier":1.05,"params":{"TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7875000000000000","DIR_DECAY":"840000000000000000"},"seeds":[10000,10499],"n":500,"mean_diff":0.007302889720557005,"se":0.011110616379218435,"worst":[{"seed":10366,"diff":-1.0616898393504925},{"seed":10409,"diff":-0.8386170457803246},{"seed":10273,"diff":-0.7756018266669571},{"seed":10128,"diff":-0.7573895943253319},{"seed":10043,"diff":-0.7150800486185744}],"code_sha256":"3c72f6b69cbda2f0af91df4a64dd039b98d37126d02d1fa2a4a497e554c534cd","mean_edge":522.6623190243674}],"next":"Do not promote: retain YQ as the previous best. This fixed pass-2 candidate did not clear the two-SE heldout threshold; do not retune on the reserved seeds.","code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {AMMStrategyBase} from \"./AMMStrategyBase.sol\";\nimport {TradeInfo} from \"./IAMMStrategy.sol\";\n\ncontract Strategy is AMMStrategyBase {\n    // --- decay / update constants ---\n    uint256 constant ELAPSED_CAP = 8;\n    uint256 constant SIGNAL_THRESHOLD = WAD / 500; // ~20 bps of reserve\n    uint256 constant DIR_DECAY = 840000000000000000;\n    uint256 constant ACT_DECAY = 700000000000000000; // 0.70\n    uint256 constant SIZE_DECAY = 700000000000000000; // 0.70\n    uint256 constant TOX_DECAY = 910000000000000000; // 0.91\n    uint256 constant SIGMA_DECAY = 824000000000000000; // 0.824\n    uint256 constant LAMBDA_DECAY = 990000000000000000; // 0.99\n    uint256 constant SIZE_BLEND_DECAY = 818000000000000000; // 0.818\n    uint256 constant TOX_BLEND_DECAY = 51000000000000000; // 0.051\n    uint256 constant ACT_BLEND_DECAY = 985000000000000000; // 0.985\n    uint256 constant PHAT_ALPHA = 260000000000000000; // 0.26\n    uint256 constant PHAT_ALPHA_RETAIL = 50000000000000000; // 0.05\n    uint256 constant DIR_IMPACT_MULT = 2;\n\n    // --- Adaptive Shock Gate ---\n    uint256 constant GATE_SIGMA_MULT = 10 * WAD;\n    uint256 constant MIN_GATE = 30000000000000000; // 0.03 WAD\n\n    // --- Cubic Toxicity ---\n    uint256 constant TOX_CUBIC_COEF = 15000 * BPS;\n\n    // --- Trade-Tox Boost ---\n    uint256 constant TRADE_TOX_BOOST = 312500000000000000;\n\n    // --- Asymmetric Stale Dir ---\n    uint256 constant STALE_ATTRACT_FRAC = 1124000000000000000; // 1.124\n\n    // --- state caps ---\n    uint256 constant RET_CAP = WAD / 10; // 10%\n    uint256 constant TOX_CAP = WAD / 5; // 20%\n    uint256 constant TRADE_RATIO_CAP = WAD / 5; // 20%\n    uint256 constant LAMBDA_CAP = 5 * WAD; // max 5 trades/step estimate\n    uint256 constant STEP_COUNT_CAP = 64; // guardrail\n\n    // --- fee model constants ---\n    uint256 constant BASE_FEE = 3 * BPS;\n    uint256 constant SIGMA_COEF = 200000000000000000; // 0.20\n    uint256 constant LAMBDA_COEF = 12 * BPS;\n    uint256 constant FLOW_SIZE_COEF = 4842 * BPS;\n    uint256 constant TOX_COEF = 250 * BPS;\n    uint256 constant TOX_QUAD_COEF = 11700 * BPS;\n    uint256 constant ACT_COEF = 91843 * BPS;\n    uint256 constant DIR_COEF = 2500000000000000;\n    uint256 constant DIR_TOX_COEF = 7875000000000000;\n    uint256 constant STALE_DIR_COEF = 6850 * BPS;\n    uint256 constant SIGMA_TOX_COEF = 500 * BPS;\n    uint256 constant TAIL_KNEE = 500 * BPS;\n    uint256 constant TAIL_SLOPE_PROTECT = 930000000000000000; // 0.93\n    uint256 constant TAIL_SLOPE_ATTRACT = 955000000000000000; // 0.955\n\n    // slots[0] = bid fee\n    // slots[1] = ask fee\n    // slots[2] = last timestamp\n    // slots[3] = dirState (centered at WAD, [0, 2*WAD])\n    // slots[4] = actEma\n    // slots[5] = pHat\n    // slots[6] = sigmaHat\n    // slots[7] = lambdaHat\n    // slots[8] = sizeHat\n    // slots[9] = toxEma\n    // slots[10] = stepTradeCount (raw integer)\n\n    function afterInitialize(uint256 initialX, uint256 initialY) external override returns (uint256, uint256) {\n        slots[0] = BASE_FEE;\n        slots[1] = BASE_FEE;\n        slots[2] = 0;\n        slots[3] = WAD; // neutral direction\n        slots[4] = 0;\n        slots[5] = initialX > 0 ? wdiv(initialY, initialX) : 100 * WAD;\n        slots[6] = 950000000000000; // 0.095% initial sigma guess\n        slots[7] = 800000000000000000; // 0.8 initial arrival-rate guess\n        slots[8] = 2000000000000000; // 0.2% reserve-size ratio guess\n        slots[9] = 0;\n        slots[10] = 0;\n        return (BASE_FEE, BASE_FEE);\n    }\n\n    function afterSwap(TradeInfo calldata trade) external override returns (uint256, uint256) {\n        uint256 prevBidFee = slots[0];\n        uint256 prevAskFee = slots[1];\n        uint256 lastTs = slots[2];\n        uint256 dirState = slots[3];\n        uint256 actEma = slots[4];\n        uint256 pHat = slots[5];\n        uint256 sigmaHat = slots[6];\n        uint256 lambdaHat = slots[7];\n        uint256 sizeHat = slots[8];\n        uint256 toxEma = slots[9];\n        uint256 stepTradeCount = slots[10];\n\n        bool isNewStep = trade.timestamp > lastTs;\n        if (isNewStep) {\n            uint256 elapsedRaw = trade.timestamp - lastTs;\n            uint256 elapsed = elapsedRaw > ELAPSED_CAP ? ELAPSED_CAP : elapsedRaw;\n\n            dirState = _decayCentered(dirState, DIR_DECAY, elapsed);\n            actEma = wmul(actEma, _powWad(ACT_DECAY, elapsed));\n            sizeHat = wmul(sizeHat, _powWad(SIZE_DECAY, elapsed));\n            toxEma = wmul(toxEma, _powWad(TOX_DECAY, elapsed));\n\n            if (stepTradeCount > 0 && elapsedRaw > 0) {\n                uint256 lambdaInst = (stepTradeCount * WAD) / elapsedRaw;\n                if (lambdaInst > LAMBDA_CAP) lambdaInst = LAMBDA_CAP;\n                lambdaHat = wmul(lambdaHat, LAMBDA_DECAY) + wmul(lambdaInst, WAD - LAMBDA_DECAY);\n            }\n\n            stepTradeCount = 0;\n        }\n\n        bool firstInStep = stepTradeCount == 0;\n\n        uint256 spot = trade.reserveX > 0 ? wdiv(trade.reserveY, trade.reserveX) : pHat;\n        if (pHat == 0) pHat = spot;\n\n        uint256 feeUsed = trade.isBuy ? prevBidFee : prevAskFee;\n        uint256 gamma = feeUsed < WAD ? WAD - feeUsed : 0;\n        uint256 pImplied;\n        if (gamma == 0) {\n            pImplied = spot;\n        } else {\n            pImplied = trade.isBuy ? wmul(spot, gamma) : wdiv(spot, gamma);\n        }\n\n        {\n            uint256 ret = pHat > 0 ? wdiv(absDiff(pImplied, pHat), pHat) : 0;\n            uint256 alpha = firstInStep ? PHAT_ALPHA : PHAT_ALPHA_RETAIL;\n            uint256 adaptiveGate = wmul(sigmaHat, GATE_SIGMA_MULT);\n            if (adaptiveGate < MIN_GATE) adaptiveGate = MIN_GATE;\n            if (ret <= adaptiveGate) {\n                pHat = wmul(pHat, WAD - alpha) + wmul(pImplied, alpha);\n            }\n            if (firstInStep) {\n                if (ret > RET_CAP) ret = RET_CAP;\n                sigmaHat = wmul(sigmaHat, SIGMA_DECAY) + wmul(ret, WAD - SIGMA_DECAY);\n            }\n        }\n\n        uint256 tradeRatio = trade.reserveY > 0 ? wdiv(trade.amountY, trade.reserveY) : 0;\n        if (tradeRatio > TRADE_RATIO_CAP) tradeRatio = TRADE_RATIO_CAP;\n\n        if (tradeRatio > SIGNAL_THRESHOLD) {\n            uint256 push = tradeRatio * DIR_IMPACT_MULT;\n            if (push > WAD / 4) push = WAD / 4;\n\n            if (trade.isBuy) {\n                dirState = dirState + push;\n                if (dirState > 2 * WAD) dirState = 2 * WAD;\n            } else {\n                dirState = dirState > push ? dirState - push : 0;\n            }\n\n            actEma = wmul(actEma, ACT_BLEND_DECAY) + wmul(tradeRatio, WAD - ACT_BLEND_DECAY);\n\n            sizeHat = wmul(sizeHat, SIZE_BLEND_DECAY) + wmul(tradeRatio, WAD - SIZE_BLEND_DECAY);\n            if (sizeHat > WAD) sizeHat = WAD;\n        }\n\n        uint256 tox = pHat > 0 ? wdiv(absDiff(spot, pHat), pHat) : 0;\n        if (tox > TOX_CAP) tox = TOX_CAP;\n        toxEma = wmul(toxEma, TOX_BLEND_DECAY) + wmul(tox, WAD - TOX_BLEND_DECAY);\n        uint256 toxSignal = toxEma;\n\n        stepTradeCount = stepTradeCount + 1;\n        if (stepTradeCount > STEP_COUNT_CAP) stepTradeCount = STEP_COUNT_CAP;\n\n        uint256 flowSize = wmul(lambdaHat, sizeHat);\n        uint256 fBase = BASE_FEE + wmul(SIGMA_COEF, sigmaHat) + wmul(LAMBDA_COEF, lambdaHat) + wmul(FLOW_SIZE_COEF, flowSize);\n        uint256 fMid = fBase + wmul(TOX_COEF, toxSignal) + wmul(TOX_QUAD_COEF, wmul(toxSignal, toxSignal)) + wmul(ACT_COEF, actEma);\n\n        fMid = fMid + wmul(SIGMA_TOX_COEF, wmul(sigmaHat, toxSignal));\n\n        // Cubic toxicity\n        {\n            uint256 toxCubed = wmul(toxSignal, wmul(toxSignal, toxSignal));\n            fMid = fMid + wmul(TOX_CUBIC_COEF, toxCubed);\n        }\n\n        uint256 dirDev;\n        bool sellPressure;\n        if (dirState >= WAD) {\n            dirDev = dirState - WAD;\n            sellPressure = true;\n        } else {\n            dirDev = WAD - dirState;\n            sellPressure = false;\n        }\n\n        uint256 skew = wmul(DIR_COEF, dirDev) + wmul(DIR_TOX_COEF, wmul(dirDev, toxSignal));\n\n        uint256 bidFee;\n        uint256 askFee;\n        if (sellPressure) {\n            bidFee = fMid + skew;\n            askFee = fMid > skew ? fMid - skew : 0;\n        } else {\n            askFee = fMid + skew;\n            bidFee = fMid > skew ? fMid - skew : 0;\n        }\n\n        // Directional protection using stale-price sign\n        {\n            uint256 staleShift = wmul(STALE_DIR_COEF, toxSignal);\n            uint256 attractShift = wmul(staleShift, STALE_ATTRACT_FRAC);\n            if (spot >= pHat) {\n                bidFee = bidFee + staleShift;\n                askFee = askFee > attractShift ? askFee - attractShift : 0;\n            } else {\n                askFee = askFee + staleShift;\n                bidFee = bidFee > attractShift ? bidFee - attractShift : 0;\n            }\n        }\n\n        // Trade-aligned toxicity boost\n        {\n            bool tradeAligned = (trade.isBuy && spot >= pHat) || (!trade.isBuy && spot < pHat);\n            if (tradeAligned) {\n                uint256 tradeBoost = wmul(TRADE_TOX_BOOST, tradeRatio);\n                if (trade.isBuy) {\n                    bidFee = bidFee + tradeBoost;\n                } else {\n                    askFee = askFee + tradeBoost;\n                }\n            }\n        }\n\n        // Asymmetric tail compression\n        if (sellPressure) {\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_PROTECT));\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_ATTRACT));\n        } else {\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_PROTECT));\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_ATTRACT));\n        }\n\n        slots[0] = bidFee;\n        slots[1] = askFee;\n        slots[2] = trade.timestamp;\n        slots[3] = dirState;\n        slots[4] = actEma;\n        slots[5] = pHat;\n        slots[6] = sigmaHat;\n        slots[7] = lambdaHat;\n        slots[8] = sizeHat;\n        slots[9] = toxEma;\n        slots[10] = stepTradeCount;\n\n        return (bidFee, askFee);\n    }\n\n    function _compressTailWithSlope(uint256 fee, uint256 slope) internal pure returns (uint256) {\n        if (fee <= TAIL_KNEE) return fee;\n        return TAIL_KNEE + wmul(fee - TAIL_KNEE, slope);\n    }\n\n    function _powWad(uint256 factor, uint256 exp) internal pure returns (uint256 result) {\n        result = WAD;\n        while (exp > 0) {\n            if (exp & 1 == 1) result = wmul(result, factor);\n            factor = wmul(factor, factor);\n            exp >>= 1;\n        }\n    }\n\n    function _decayCentered(uint256 centered, uint256 decayFactor, uint256 elapsed) internal pure returns (uint256) {\n        uint256 mul = _powWad(decayFactor, elapsed);\n        if (centered >= WAD) {\n            return WAD + wmul(centered - WAD, mul);\n        }\n        uint256 below = wmul(WAD - centered, mul);\n        return below < WAD ? WAD - below : 0;\n    }\n\n    function getName() external pure override returns (string memory) {\n        return \"yq\";\n    }\n}\n","code_sha256":"3c72f6b69cbda2f0af91df4a64dd039b98d37126d02d1fa2a4a497e554c534cd","delta":"--- YQ.sol\n+++ Strategy.sol\n@@ -11 +11 @@\n-    uint256 constant DIR_DECAY = 800000000000000000; // 0.80\n+    uint256 constant DIR_DECAY = 840000000000000000;\n@@ -32 +32 @@\n-    uint256 constant TRADE_TOX_BOOST = 2500 * BPS;\n+    uint256 constant TRADE_TOX_BOOST = 312500000000000000;\n@@ -52,2 +52,2 @@\n-    uint256 constant DIR_COEF = 20 * BPS;\n-    uint256 constant DIR_TOX_COEF = 100 * BPS;\n+    uint256 constant DIR_COEF = 2500000000000000;\n+    uint256 constant DIR_TOX_COEF = 7875000000000000;\n","score":{"seed_start":0,"n":1000,"mean_edge":524.6186657517594,"se":2.784690422347047},"paired":{"reference":"YQ 00fae418","seed_start":500000,"n":2000,"mean_diff":-0.010176176047153832,"se":0.006621948093348964,"worst":[{"seed":501794,"diff":-2.077945017667048},{"seed":500092,"diff":-1.8966461608471263},{"seed":500727,"diff":-1.7392728024509552},{"seed":500391,"diff":-1.6526156011393596},{"seed":501303,"diff":-1.5456007798947553}]},"seconds_per_simulation":0.09561237680904257,"validate_ok":true,"blocked":null,"citations":[{"url":"https://raw.githubusercontent.com/jiayaoqijia/amm-challenge-yq/3e9dc7d5a6192c88b562a0f8d9c172ca566ec94d/contracts/src/Strategy.sol","supports":"YQ reference implementation and asymmetry constants; full file SHA-256 verified locally."},{"url":"https://raw.githubusercontent.com/jiayaoqijia/amm-challenge-yq/3e9dc7d5a6192c88b562a0f8d9c172ca566ec94d/README.md","supports":"Public YQ write-up describes the asymmetric attract-side discount; its reported scores are not used as measurements."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/match.py","supports":"Canonical NumPy seed and parameter-draw ordering, and submission edge extraction."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/config.py","supports":"Canonical simulation settings and randomized parameter ranges."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/simulation/engine.rs","supports":"Unmodified Rust engine, GBM/arb/retail ordering, and retail seed offset."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/evm/strategy.rs","supports":"Engine initialization and swap-call gas limits."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/VanillaStrategy.sol","supports":"Both candidate and YQ separately face the official fixed 30 bps normalizer."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/evm/compiler.py","supports":"Official Solidity compiler settings and enforced storage/opcode restrictions."},{"url":"https://medium.com/@crypto_algebra/amm-fee-challenge-notes-from-our-run-on-optimization-arena-4e980dbbd699","supports":"Public Algebra write-up discusses asymmetric protection and first-trade arbitrage ordering. Read through the web tool; direct curl returned HTTP 403. No reported performance figures were used."},{"url":"https://raw.githubusercontent.com/dipankar/amm-challenge/c588ae6c47fc9af2063c9bb1f2efbeb0dd276dab/ANALYSIS.md","supports":"Public author post-mortem frames the mechanism as hidden-state estimation. Consulted as background after freezing the candidate; no external performance figures were used."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/AMMStrategyBase.sol","supports":"Inherited 32-slot storage array, WAD/BPS arithmetic helpers and final fee clamping."},{"url":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/StarterStrategy.sol","supports":"Pinned 50 bps StarterStrategy used for the additional paired starter comparison."}],"promoted":false,"promotions":[],"scoreboard":{"reference":{"code_sha256":"00fae418c49cd681ad0879c6f96ebed0163fab5a660b38030f11e6947a39afd4","training_seed_start":10000,"training_n":500,"training_mean_edge":522.655016134647,"heldout_seed_start":500000,"heldout_n":2000,"heldout_mean_edge":522.541516491237},"fixed_candidate":{"code_sha256":"3c72f6b69cbda2f0af91df4a64dd039b98d37126d02d1fa2a4a497e554c534cd","training_seed_start":10000,"training_n":500,"training_mean_edge":522.6623190243674,"heldout_seed_start":500000,"heldout_n":2000,"heldout_mean_edge":522.5313403151898},"best_after_holdout_sha256":"00fae418c49cd681ad0879c6f96ebed0163fab5a660b38030f11e6947a39afd4","every_variant_vs_reference":"tried"},"measurement":{"engine_commit":"6b6921f8d463314aa7c96234e1be25a25245f704","engine_source_modified":false,"n_steps":10000,"workers":8,"batch_chunk_size":16,"se_definition":"Sample standard deviation (ddof=1) divided by sqrt(n); paired SE uses per-seed candidate-minus-YQ differences.","pairing":"Separate submission-vs-official-Vanilla_30bps simulations for candidate and YQ; identical market seed and NumPy parameter draws for each pair.","seed_config":"numpy.default_rng(seed) draws mean size U(19,21), arrival rate U(0.6,1.0), sigma U(0.000882,0.001008), in that order. Rust price seed=seed; retail seed=seed+1. Other fields are canonical defaults.","seed_builder_check":"Exact equality with every canonical MatchRunner config field for seeds 0..7.","timing_definition":"Total measured wall seconds for the fixed candidate heldout 2000 and scoring 1000 simulations divided by 3000, using eight workers; excludes compilation.","selection":{"code_sha256":"3c72f6b69cbda2f0af91df4a64dd039b98d37126d02d1fa2a4a497e554c534cd","params":{"STALE_DIR_COEF":"685000000000000000","STALE_ATTRACT_FRAC":"1124000000000000000","TRADE_TOX_BOOST":"312500000000000000","DIR_COEF":"2500000000000000","DIR_TOX_COEF":"7875000000000000","DIR_DECAY":"840000000000000000"},"selected_training_diff":0.007302889720557005,"trials":36,"frozen_before_holdout":true},"toolchain":"Installed uv and minimal Rust locally, uv venv, uv pip install -e . maturin, maturin develop --release --uv --manifest-path amm_sim_rs/Cargo.toml; StarterStrategy and YQ amm-match validate passed.","solc":"0.8.24; official optimizer runs=200, viaIR=true, evmVersion=paris"},"checks":{"cli_validation":{"returncode":0,"stdout":"Validating strategy...\nCompiling strategy...\nStrategy 'yq' validated successfully!\n","stderr":""},"stress":{"code_sha256":"3c72f6b69cbda2f0af91df4a64dd039b98d37126d02d1fa2a4a497e554c534cd","calls":4000,"gas_limit_per_call":250000,"all_calls_succeeded":true,"fees_in_range":true,"minimum_fee_wad":"0","maximum_fee_wad":"100000000000000000","scope":"Synthetic valid TradeInfo inputs; this is not a simulation score or a gas maximum proof."},"static_review":"Only six permitted constant declarations can differ; same two imports, inherited 32-slot array with slots 0..10 used, same final clampFee calls. The only loop is exponentiation by squaring over an elapsed count capped at 8, not a history loop.","delta_characters":499},"limitations":["All edge scores and differences are from this local run; no official leaderboard submission or rank is claimed.","A 500-seed adaptive training search has selection bias; only the reserved 2000-seed result determines promotion.","The Paradigm puzzle page was unavailable through the web tool; simulator details were verified against the pinned repository.","The Algebra article was readable through the web tool but direct curl returned HTTP 403; its source quote is from the web-tool page text."],"paired_starter":{"reference":"StarterStrategy (fixed 50 bps)","reference_code_sha256":"8f2cea337f6736105f58c6758da6c3ebf002951d34492bcd5b7101bef2d1e7f3","seed_start":500000,"n":2000,"mean_diff":154.93769061940284,"se":0.9400364625340967,"worst":[{"seed":501893,"diff":72.06183223903338},{"seed":501525,"diff":78.1548555920175},{"seed":500087,"diff":78.83987993696854},{"seed":501728,"diff":79.30112438468811},{"seed":501858,"diff":79.3532138336164}]},"starter_score":{"seed_start":500000,"n":2000,"mean_edge":367.59364969578695,"se":1.319610400948465},"best_paired_starter":{"code_sha256":"00fae418c49cd681ad0879c6f96ebed0163fab5a660b38030f11e6947a39afd4","reference":"StarterStrategy (fixed 50 bps)","seed_start":500000,"n":2000,"mean_diff":154.94786679545004,"se":0.9398101759682327,"worst":[{"seed":501893,"diff":72.3252152438697},{"seed":501525,"diff":78.08084703687416},{"seed":500087,"diff":79.00669608977887},{"seed":501728,"diff":79.23466598353573},{"seed":501858,"diff":79.72888626938953}]}}
