{"credit":"Taylor (gtmcknight) authored the replica, Gaussian/lattice filters, solved dynamic program, and qm tables. This item builds on that work and the supplied qt1, TC, COMBO, QMS1 artifacts.","item":"posterior-b","status":"blocked","blocked":{"step":"Q.choose","error":"The full paired choose evaluation did not complete: command exit 124, with 30 of 1024 choose seeds checkpointed. Full choose and report coverage are missing; Q does not pass. No report performance or policy improvement is claimed."},"hashes":{"repository_commit":"4812a6382311624e1506aca131ca35c378f930d9","commit_verification":"git checkout of the requested commit followed by git rev-parse HEAD returned that exact commit.","inputs":{"README.md":{"sha256":"02d2b51f17adbb5411a2a67f7a37255143ba381a73ff10abba557d7d23c0cef2","bytes":10483,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/README.md"},"gates.py":{"sha256":"603280c1f595ca163ffaf2ba1ebdc7945fdb08dabae67fc53c922d39e1cce604","bytes":792,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/gates.py"},"replica2.py":{"sha256":"6e37b4e61e1ffa5ffb1e43912ddb8659105989aa986eb48fcd1d7608f8dca685","bytes":7503,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/replica2.py"},"evalpol.py":{"sha256":"6e67667bfed7798bdd3384652a6efc6ba0b1fce653740d0f9af2bcbcb8e6a27c","bytes":4610,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/evalpol.py"},"real.py":{"sha256":"1305b5333731c046c3e6736cc2578eff4635c88132a39c22f5780d78aef2c81e","bytes":9586,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/real.py"},"latt.py":{"sha256":"925c0fe996b19fd51fb79a85d5e4dba4bc2f5453d0a156cc1e480f65a6a00cc8","bytes":8893,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/latt.py"},"dp.py":{"sha256":"ca4e7c378d23c46c7def4716611135c471a831d15234b984fe30d58d9eec5734","bytes":15595,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/dp.py"},"qmdp.py":{"sha256":"63b8c35048718c37eb0a5dae9e70849fa3af257c335e4a2e3a625c833f1dc1eb","bytes":8609,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/qmdp.py"},"pol_mid.json":{"sha256":"efbb5ee102db4d312f64565d9bf7232b6becbe02b624164f744a402bbbf2983b","bytes":780061,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/pol_mid.json"},"qm_k1e-5.json":{"sha256":"5ff53e42ca87390e5f65d1caa3f7a480e67a8212fb0670274dfd562b05ba1afd","bytes":7892018,"source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/qm_k1e-5.json"},"qt1":{"sha256":"8a6e303b662e1a5ea9bb47f31acedd3988ef65b3ddb66d074517aa59ad41ca40","bytes":62223,"source_url":"https://api.imdnotdead.fun/artifacts/8a6e303b662e1a5ea9bb47f31acedd3988ef65b3ddb66d074517aa59ad41ca40"},"TC":{"sha256":"d3c849db2ac31e567b57e52b80b86e8c24c842e5b4125b9d75c78e3cb07115b9","bytes":23156,"source_url":"https://api.imdnotdead.fun/artifacts/d3c849db2ac31e567b57e52b80b86e8c24c842e5b4125b9d75c78e3cb07115b9"},"COMBO":{"sha256":"d360bea6c8c982717b7b43a8069a87013169c89ee3e4da25622db4d880b936d4","bytes":25626,"source_url":"https://api.imdnotdead.fun/artifacts/d360bea6c8c982717b7b43a8069a87013169c89ee3e4da25622db4d880b936d4"},"QMS1":{"sha256":"17d249ab0c33fc44931d9b105cf3f9e3846a560bd518b67310c2a56defacdecc","bytes":29486,"source_url":"https://api.imdnotdead.fun/artifacts/17d249ab0c33fc44931d9b105cf3f9e3846a560bd518b67310c2a56defacdecc"},"qmref.py":{"sha256":"1dfc9b7a3c2237ff7a93dd9f0af54b9bdab16f2ce0a7eb00784cb4432598db92","bytes":7739,"source_url":"https://api.imdnotdead.fun/artifacts/8a6e303b662e1a5ea9bb47f31acedd3988ef65b3ddb66d074517aa59ad41ca40"},"twocomp.py":{"sha256":"9d3c1833321493fb51bbde4e1b4dabc2f8978bd6d774ee2af8dc8aed13f0f0af","bytes":11202,"source_url":"https://api.imdnotdead.fun/artifacts/d3c849db2ac31e567b57e52b80b86e8c24c842e5b4125b9d75c78e3cb07115b9"},"combo.py":{"sha256":"c5b711a0b4fb4783e8879a484bf87a427171f4a11aa5eb5ec3513c24ead1a796","bytes":5929,"source_url":"https://api.imdnotdead.fun/artifacts/d360bea6c8c982717b7b43a8069a87013169c89ee3e4da25622db4d880b936d4"},"blob.bin":{"sha256":"3ac7cb8811ecfb6a17f499aa4e9b70dd55f7fb6432b3aec3b904e11a3dece38e","bytes":10167,"source_url":"https://api.imdnotdead.fun/artifacts/17d249ab0c33fc44931d9b105cf3f9e3846a560bd518b67310c2a56defacdecc"},"Strategy.sol":{"sha256":"c68887cff61180e12ba2b1ceb333edf76a830f91f63b5d775a8806fb9ec08aca","bytes":42990,"source_url":"https://api.imdnotdead.fun/artifacts/8a6e303b662e1a5ea9bb47f31acedd3988ef65b3ddb66d074517aa59ad41ca40"}},"artifact_url_suffix_hashes_all_match":true,"published_extracted_hashes_all_match":true,"frozen_choose_sources":{"objective.py":"67af0971e7c05e1752a304245465ba926735b9c6a0d59c782fd2efa13f276b4b","candidate.py":"12b1ea7bc0ae32bad0b6952737c51b08e4c2e77f4016c2d6ec9036220c4b3441","joint_latt.py":"30148b6571bb6b87d3074bceecbd322201d87851437038155b079e1b757f5834","evaluate.py":"a52dd3b6fa134eec9fb21e9e89179fecfb19f8dd21434fd8c8c5df44ca6cb341","solve_driver.py":"47be5d1b623a1f0fd174a60bd5ceadfe5565f5683fd08ee50f90859025407366","check_objective.py":"17b9a21f393034eb63757967df2806479e766df75e4cc53033492d9ee593de11","check_vn.py":"2199c5c8f47d53e6187ac4dc905ef4715332f2e892f5c00858b6d7e16c85b6f5","pilot.py":"ba1124580f87ff9422359fc8bcc36478b66392a0b4b020f4a39a7c0761fa85f0","pilot_aux.py":"f3e55ba0a4177d03d575672df5e22c9abcdca314a432cd8aac5ec3de1ff839d0","check_flag.py":"5eac3b01d19b28d48f68f6250ca0b94e9fd0c23facd55bf33951892ba0b8d16d","check_invariance.py":"704048e7afa380d989353b1deafc14ca9ae02beffe046b21f0649f1b445c6a74"}},"P":{"gates_output_matches_readme_6dp":true,"qt1_reference":"QMRef; not RealPolicy","qt1_rows":[{"seed":10000,"edge_6dp":"443.101741"},{"seed":10001,"edge_6dp":"571.454483"},{"seed":10002,"edge_6dp":"525.908441"}],"qt1_formatted_rows_sha256":"027a3067347c36f3192dbe8e7dc28ff79bc1c1be864aa143a3a1065d8d3a3459","report_policy_selection":false,"note":"Only mandatory Gate P diagnostics touched seeds 10000..10002; no candidate was evaluated on report seeds.","gates_stdout":"seed   perfect-info      gaussian+plain    gaussian+qm       lattice+qm\n10000  448.261189  443.455598  443.522608  443.663520\n10001  576.779199  571.463409  571.623551  571.977293\n10002  531.886497  525.168028  525.865859  526.411631\n","qt1_stdout":"10000 443.101741\n10001 571.454483\n10002 525.908441\n","status":"pass"},"objective":{"credit":"Taylor (gtmcknight): replica, lattice filter, solved dynamic program and qm tables.","coordinate_system":"All quantities below are in log-price units of 5 bps, relative to posterior reference m.","objective":"J(a,b)=sum_i P_i VN_phase(w-delta_i,r-delta_i,a-delta_i,b+delta_i) / sum_i P_i; delta_i=(log p_i-m)/(5e-4).","physical_quote":"ask=exp(m+5e-4*a); bid=exp(m-5e-4*b). Nonnegative fees require a>=w,b>=-w. Those inequalities are identical at every hypothesis after shifting.","warning":"Prototype clamps state and action coordinates to represented table bounds. Clamping and finite feasible fee grid are approximations and are not a rigorous upper bound.","independence":"Argmax is taken after summing candidate action values; optimal per-hypothesis quotes are never averaged.","counterexample":{"posterior":[0.5,0.5],"hypothesis_action_values":[[10,0,9],[0,10,9]],"expected_action_values":[5,5,9],"argmax_action":2,"average_of_hypothesis_argmax_indices":0.5},"remaining_model_issues":["Interpolation across zero-fee aliases and off-grid state/action shifts require broader validation.","The belief-death fallback needs a separately specified oracle intervention.","Synthetic tests alone do not validate general replica behavior."],"implementation_update":"C evaluates separate arb (phase 0) and retail (phase 1) branches at an ambiguous first call, with branch-specific COMBO rival estimates and the lattice retail posterior. Later callbacks use the carried inferred phase and rival state."},"numerical_tests":{"synthetic":{"posterior_affine_cross_term_abs_error":1.7763568394002505e-15,"point_mass_abs_error":0.0,"normalized_mass_abs_error":0.0,"joint_point_mass_arb_value_abs_error":0.0,"joint_point_mass_arb_quote_max_abs_error":0.0},"real_VN_point_mass":[{"w_lattice":0,"r_lattice":0,"a_lattice":6.0,"b_lattice":6.0,"objective":0.0,"dp_discrete_max":0.0,"abs_error":0.0,"seconds":2.6686272399965674},{"w_lattice":3,"r_lattice":-2,"a_lattice":6.0,"b_lattice":7.0,"objective":0.00041288702050223947,"dp_discrete_max":0.00041288702050223947,"abs_error":0.0,"seconds":0.0002135949907824397},{"w_lattice":-3,"r_lattice":2,"a_lattice":7.0,"b_lattice":6.0,"objective":0.00041288702050223947,"dp_discrete_max":0.00041288702050223947,"abs_error":0.0,"seconds":0.0002047949965344742}],"scope":"Synthetic interpolation tests and three actual VN0 lattice states. These do not prove full interpolation accuracy or a rigorous bound."},"controls":{"definition":"moment_control uses the same 121-cell filter, init, carried rival state, and callback phase rules as C, then feeds posterior mean/sd into the decoded QMS1 qm tables. C instead optimizes common physical fees against posterior-weighted VN, retaining the COMBO ambiguous first-call phase/rival branches.","paired_gain_C_minus_moment_control":{"n":30,"mean_diff":-121.81805190871724,"se":7.753284629401118,"worst5":[[64019,-231.6668306334971],[64024,-195.69337418409287],[64006,-177.4344434521235],[64003,-176.69927539869428],[64017,-169.29128186653776]]},"qualification":"Incomplete choose coverage. Closed-loop posterior realizations differ as the policies quote differently; no same-callback shadow fee comparison was completed.","COMBO_hidden_input_invariance":{"policy":"unmodified COMBO only; candidate not covered","seed":64000,"steps":10000,"callbacks":9656,"max_abs_fee_difference":0.0,"hidden_init_and_callback_fields_changed":true},"candidate_hidden_input_invariance":{"callbacks":16,"max_abs_fee_error":0.0,"seed":64000,"scope":"First 16 callbacks of the pilot only; altered init sigma/lam/size and callback arb/p/s2/j. True arb and p affect diagnostics only in live C."}},"choose":{"status":"incomplete","required_seed_range":[64000,65023],"paired":{"C-COMBO":{"n":30,"mean_diff":-121.95328087786956,"se":7.768201867785101,"worst5":[[64019,-231.1260750394983],[64024,-197.72758995827002],[64003,-177.8632046559274],[64006,-177.72581104766067],[64017,-168.99059581751277]]},"C-qt1":{"n":30,"mean_diff":-121.35946020748096,"se":7.7626179641035025,"worst5":[[64019,-231.42006141369944],[64024,-196.60256328274141],[64006,-177.1200662208301],[64003,-175.30524542525592],[64017,-168.68499175827418]]},"Cflag-Flag":{"n":30,"mean_diff":-133.5957756759172,"se":8.226313151517239,"worst5":[[64019,-252.72463334371616],[64024,-208.98905111527012],[64003,-197.91659728222544],[64006,-192.35021753362042],[64017,-187.96785537382135]]},"Cflag-COMBO":{"n":30,"mean_diff":-131.26559621185754,"se":8.21054238702329,"worst5":[[64019,-250.0305173116535],[64024,-205.35084602151568],[64003,-199.07591738938288],[64006,-189.56284561216086],[64017,-184.2882479400709]]},"Cflag-qt1":{"n":30,"mean_diff":-130.67177554146895,"se":8.204754516963783,"worst5":[[64019,-250.32450368585467],[64024,-204.22581934598708],[64003,-196.5179581587114],[64006,-188.95710078533028],[64017,-183.9826438808323]]},"C-moment_control":{"n":30,"mean_diff":-121.81805190871724,"se":7.753284629401118,"worst5":[[64019,-231.6668306334971],[64024,-195.69337418409287],[64006,-177.4344434521235],[64003,-176.69927539869428],[64017,-169.29128186653776]]}},"rows":[{"seed":64000,"steps":10000,"edges":{"C":330.6821971955818,"COMBO":437.7100000860294,"Cflag":324.0469991406983,"Flag":439.38939781550437,"moment_control":437.3594013941284,"qt1":436.4087645205474},"first_call_errors":{"C":{"total":6395,"wrong":1007},"Cflag":{"total":6320,"wrong":0},"moment_control":{"total":6556,"wrong":1020}}},{"seed":64001,"steps":10000,"edges":{"C":387.74830730280746,"COMBO":475.6813016193902,"Cflag":380.83918250038516,"Flag":478.1486768455938,"moment_control":475.9300319963259,"qt1":475.0196696634642},"first_call_errors":{"C":{"total":6847,"wrong":1272},"Cflag":{"total":6768,"wrong":0},"moment_control":{"total":6921,"wrong":1273}}},{"seed":64002,"steps":10000,"edges":{"C":355.57919669244376,"COMBO":434.7537585084392,"Cflag":352.7545348300482,"Flag":438.6480835183074,"moment_control":435.0374186704567,"qt1":434.70319883280774},"first_call_errors":{"C":{"total":6782,"wrong":1199},"Cflag":{"total":6702,"wrong":0},"moment_control":{"total":6844,"wrong":1177}}},{"seed":64003,"steps":10000,"edges":{"C":397.3563222477947,"COMBO":575.2195269037221,"Cflag":376.14360951433923,"Flag":574.0602067965647,"moment_control":574.055597646489,"qt1":572.6615676730506},"first_call_errors":{"C":{"total":6763,"wrong":1053},"Cflag":{"total":6680,"wrong":0},"moment_control":{"total":6959,"wrong":1048}}},{"seed":64004,"steps":10000,"edges":{"C":331.5284541876289,"COMBO":387.35706735852324,"Cflag":321.38848337286765,"Flag":389.2245409703908,"moment_control":386.383925558013,"qt1":385.9561691162032},"first_call_errors":{"C":{"total":6277,"wrong":1034},"Cflag":{"total":6203,"wrong":0},"moment_control":{"total":6375,"wrong":1092}}},{"seed":64005,"steps":10000,"edges":{"C":475.0892805471157,"COMBO":586.1986025092096,"Cflag":467.7100248896684,"Flag":590.060326419082,"moment_control":586.4197309641958,"qt1":586.200919862482},"first_call_errors":{"C":{"total":7358,"wrong":1141},"Cflag":{"total":7349,"wrong":0},"moment_control":{"total":7450,"wrong":1162}}},{"seed":64006,"steps":10000,"edges":{"C":493.13225623614125,"COMBO":670.8580672838019,"Cflag":481.29522167164106,"Flag":673.6454392052615,"moment_control":670.5666996882647,"qt1":670.2523224569713},"first_call_errors":{"C":{"total":7446,"wrong":1199},"Cflag":{"total":7467,"wrong":0},"moment_control":{"total":7521,"wrong":1203}}},{"seed":64007,"steps":10000,"edges":{"C":479.90775163808195,"COMBO":607.149555719579,"Cflag":461.15370722028644,"Flag":611.7118923945305,"moment_control":607.2287127417602,"qt1":607.0970682194097},"first_call_errors":{"C":{"total":7414,"wrong":1302},"Cflag":{"total":7383,"wrong":0},"moment_control":{"total":7512,"wrong":1263}}},{"seed":64008,"steps":10000,"edges":{"C":465.2425726602992,"COMBO":627.1092081824977,"Cflag":451.1636850964963,"Flag":629.3295272260893,"moment_control":626.4603674869196,"qt1":626.3877295981666},"first_call_errors":{"C":{"total":7133,"wrong":1187},"Cflag":{"total":7090,"wrong":0},"moment_control":{"total":7260,"wrong":1180}}},{"seed":64009,"steps":10000,"edges":{"C":376.34157245583737,"COMBO":474.4703133634669,"Cflag":359.58794286386694,"Flag":476.2216932373411,"moment_control":474.36487621866405,"qt1":474.20273499843734},"first_call_errors":{"C":{"total":6697,"wrong":1008},"Cflag":{"total":6568,"wrong":0},"moment_control":{"total":6797,"wrong":1025}}},{"seed":64010,"steps":10000,"edges":{"C":395.27050418161485,"COMBO":470.1217320788333,"Cflag":385.5914670531418,"Flag":471.38000862625864,"moment_control":469.14749728619097,"qt1":468.8503643275019},"first_call_errors":{"C":{"total":6954,"wrong":1082},"Cflag":{"total":6921,"wrong":0},"moment_control":{"total":7037,"wrong":1103}}},{"seed":64011,"steps":10000,"edges":{"C":414.00904752957524,"COMBO":529.5162323106625,"Cflag":404.0574627743522,"Flag":532.2200922827374,"moment_control":529.9997259037879,"qt1":529.6865130842639},"first_call_errors":{"C":{"total":6926,"wrong":1251},"Cflag":{"total":6823,"wrong":0},"moment_control":{"total":7049,"wrong":1242}}},{"seed":64012,"steps":10000,"edges":{"C":341.5567237465561,"COMBO":428.4939732495061,"Cflag":336.75922874984957,"Flag":430.1674109454943,"moment_control":427.42503740080406,"qt1":427.3984151396222},"first_call_errors":{"C":{"total":6583,"wrong":1162},"Cflag":{"total":6459,"wrong":0},"moment_control":{"total":6662,"wrong":1125}}},{"seed":64013,"steps":10000,"edges":{"C":329.8487481254318,"COMBO":427.0354769645065,"Cflag":321.96498668025373,"Flag":429.40685024802553,"moment_control":427.360321617923,"qt1":427.1007092611942},"first_call_errors":{"C":{"total":6536,"wrong":1126},"Cflag":{"total":6418,"wrong":0},"moment_control":{"total":6681,"wrong":1145}}},{"seed":64014,"steps":10000,"edges":{"C":424.83002288423177,"COMBO":564.5658406075592,"Cflag":420.7097421466486,"Flag":566.0791592566069,"moment_control":565.1380365338852,"qt1":564.0674479336698},"first_call_errors":{"C":{"total":7086,"wrong":1166},"Cflag":{"total":6979,"wrong":0},"moment_control":{"total":7194,"wrong":1176}}},{"seed":64015,"steps":10000,"edges":{"C":333.0603758202995,"COMBO":404.5748566771753,"Cflag":329.5877914050388,"Flag":406.774654139222,"moment_control":405.13237603998164,"qt1":404.21013182497103},"first_call_errors":{"C":{"total":6398,"wrong":1051},"Cflag":{"total":6296,"wrong":0},"moment_control":{"total":6481,"wrong":1108}}},{"seed":64016,"steps":10000,"edges":{"C":382.6430950744475,"COMBO":535.970074530172,"Cflag":375.9313654980207,"Flag":537.8155038045865,"moment_control":535.3951295091294,"qt1":535.1569615966882},"first_call_errors":{"C":{"total":6606,"wrong":1015},"Cflag":{"total":6570,"wrong":0},"moment_control":{"total":6730,"wrong":1010}}},{"seed":64017,"steps":10000,"edges":{"C":441.9568322226184,"COMBO":610.9474280401312,"Cflag":426.65918010006027,"Flag":614.6270354738816,"moment_control":611.2481140891562,"qt1":610.6418239808926},"first_call_errors":{"C":{"total":7018,"wrong":1062},"Cflag":{"total":6970,"wrong":0},"moment_control":{"total":7151,"wrong":1092}}},{"seed":64018,"steps":10000,"edges":{"C":371.19834637275864,"COMBO":489.88956532564185,"Cflag":359.90056150588504,"Flag":492.14491315135734,"moment_control":489.66526200561265,"qt1":489.3881956300237},"first_call_errors":{"C":{"total":6550,"wrong":1026},"Cflag":{"total":6436,"wrong":0},"moment_control":{"total":6650,"wrong":1023}}},{"seed":64019,"steps":10000,"edges":{"C":485.21554442521364,"COMBO":716.3416194647119,"Cflag":466.3111021530584,"Flag":719.0357354967746,"moment_control":716.8823750587107,"qt1":716.6356058389131},"first_call_errors":{"C":{"total":7269,"wrong":1103},"Cflag":{"total":7222,"wrong":0},"moment_control":{"total":7354,"wrong":1089}}},{"seed":64020,"steps":10000,"edges":{"C":347.56350199600024,"COMBO":457.34879952019315,"Cflag":337.3965064789554,"Flag":458.3486053460465,"moment_control":457.5850869278089,"qt1":457.2814205029174},"first_call_errors":{"C":{"total":6302,"wrong":1001},"Cflag":{"total":6209,"wrong":0},"moment_control":{"total":6446,"wrong":1006}}},{"seed":64021,"steps":10000,"edges":{"C":466.6452613170484,"COMBO":583.683869514362,"Cflag":457.5130947126803,"Flag":587.2477458670418,"moment_control":584.665065764778,"qt1":583.8897045445577},"first_call_errors":{"C":{"total":7298,"wrong":1235},"Cflag":{"total":7268,"wrong":0},"moment_control":{"total":7414,"wrong":1265}}},{"seed":64022,"steps":10000,"edges":{"C":412.57541124535896,"COMBO":564.2546635288771,"Cflag":408.01110097571274,"Flag":567.2562493950736,"moment_control":564.4204418723577,"qt1":564.5429872872418},"first_call_errors":{"C":{"total":6839,"wrong":1166},"Cflag":{"total":6805,"wrong":0},"moment_control":{"total":6960,"wrong":1114}}},{"seed":64023,"steps":10000,"edges":{"C":316.97404675906,"COMBO":463.4327320840948,"Cflag":311.37388183632044,"Flag":465.01610940279215,"moment_control":463.2171658690017,"qt1":461.8662938621322},"first_call_errors":{"C":{"total":6230,"wrong":1051},"Cflag":{"total":6167,"wrong":0},"moment_control":{"total":6338,"wrong":1034}}},{"seed":64024,"steps":10000,"edges":{"C":412.63321336573887,"COMBO":610.3608033240089,"Cflag":405.0099573024932,"Flag":613.9990084177633,"moment_control":608.3265875498317,"qt1":609.2357766484803},"first_call_errors":{"C":{"total":6798,"wrong":1183},"Cflag":{"total":6821,"wrong":0},"moment_control":{"total":6934,"wrong":1204}}},{"seed":64025,"steps":10000,"edges":{"C":474.38064022361937,"COMBO":605.0601733192472,"Cflag":463.9488375901214,"Flag":607.991071449978,"moment_control":605.330533402203,"qt1":604.3190318966541},"first_call_errors":{"C":{"total":7341,"wrong":1265},"Cflag":{"total":7256,"wrong":0},"moment_control":{"total":7436,"wrong":1265}}},{"seed":64026,"steps":10000,"edges":{"C":357.34101168356045,"COMBO":449.595345492386,"Cflag":351.64508370465455,"Flag":452.16796363797675,"moment_control":449.51658208645927,"qt1":448.6345545198713},"first_call_errors":{"C":{"total":6526,"wrong":969},"Cflag":{"total":6480,"wrong":0},"moment_control":{"total":6662,"wrong":1014}}},{"seed":64027,"steps":10000,"edges":{"C":380.52356980512866,"COMBO":506.95979859301747,"Cflag":376.8064337392861,"Flag":508.50570471461316,"moment_control":506.14658690781386,"qt1":505.71443532818495},"first_call_errors":{"C":{"total":6720,"wrong":1163},"Cflag":{"total":6672,"wrong":0},"moment_control":{"total":6811,"wrong":1158}}},{"seed":64028,"steps":10000,"edges":{"C":394.0240146714502,"COMBO":488.75273666445605,"Cflag":389.0901526506132,"Flag":491.0635944092411,"moment_control":489.10589198733277,"qt1":488.09941082648896},"first_call_errors":{"C":{"total":7044,"wrong":1240},"Cflag":{"total":6975,"wrong":0},"moment_control":{"total":7170,"wrong":1219}}},{"seed":64029,"steps":10000,"edges":{"C":307.7835811742791,"COMBO":357.82670729960887,"Cflag":298.92061561064054,"Flag":359.45801355146364,"moment_control":357.6683808712549,"qt1":357.81528103634315},"first_call_errors":{"C":{"total":6126,"wrong":981},"Cflag":{"total":6001,"wrong":0},"moment_control":{"total":6203,"wrong":953}}}],"selection":"No completed choose-set selection. Latest prototype was fixed before this checkpoint evaluation; report seeds were never used to choose it."},"report":{"status":"not_run","required_seed_range":[10000,12047],"paired":{"C-COMBO":{"n":0,"mean_diff":null,"se":null,"worst5":[]},"C-qt1":{"n":0,"mean_diff":null,"se":null,"worst5":[]},"Cflag-Flag":{"n":0,"mean_diff":null,"se":null,"worst5":[]},"Cflag-COMBO":{"n":0,"mean_diff":null,"se":null,"worst5":[]},"Cflag-qt1":{"n":0,"mean_diff":null,"se":null,"worst5":[]},"C-moment_control":{"n":0,"mean_diff":null,"se":null,"worst5":[]}}},"seed_coverage":{"choose_completed":[64000,64001,64002,64003,64004,64005,64006,64007,64008,64009,64010,64011,64012,64013,64014,64015,64016,64017,64018,64019,64020,64021,64022,64023,64024,64025,64026,64027,64028,64029],"choose_completed_count":30,"choose_required":1024,"choose_rows_sha256":"f39b2f61a86ecc94ef1295902d23544fcb357e3325ad8fac35d43906ac7e79fa","choose_row_hash_definition":"SHA256 of UTF-8 JSON, sort_keys=True, separators=(comma,colon), for the published choose.rows array in ascending seed order.","choose_per_seed_hashes":{"64000":"1a074ecc4f043a2f9df9f8b994a0ea181ee1bdf39b9f7e4495e1071d82f713dc","64001":"b07ca4906e6ab7c8c88c4edd09288472932b335e0ebc3c645f1be7f10192247c","64002":"71c52cee2ab41b21aa8d0145113cb7b57d21d09181ecf071c229a768ffb3cadd","64003":"4264621885ccf654088eaafa5ab425ecbdbcc18fe03862974fa0db4804a33f74","64004":"ea760fdcb7c16adc0b733c0c4ccc0ce306d7aaebb1d2ebb11d188529d9ca5efc","64005":"f43f55562b19959f65b96ee77b68635dd7df887574c9d18de1d7fca61fbacd56","64006":"314845391900a2f70d30ccc3228746dea9c85faa822bba316c4cc7263e7d6988","64007":"9b8c9f1ad496904b1b246c6e1d3e16307ea5a4c06663c6a8d99062033364fe8a","64008":"956c8a03f66f3c85d7086cd53f65f6e8f8b94bc2e9af693a024959aecbb24084","64009":"e32d65683f21a69848862207783e293e045f7dac158768cdd991423ffe390bd2","64010":"049fb5c148f89523bcf2b40994ff4e99c14da17f9f22d130bc72febdaa89a354","64011":"2a314d99f6f89a0f07d86ec3fc40773793b1a78a1a509acc6f10727fdf2924f1","64012":"b896b2b7eff9a64ec04fb2ae9c3e6f90587a27d705180dc6070917ba63ae6e8a","64013":"00efc65d478bcd713115a6e6e477ba2c5c089626cd72965b6739211ddf999900","64014":"de42347e95d80ec6f6b5a4a5ec404358128ca075c2ada2c58400fc4543874d08","64015":"fda021551fc64fc11e3d00cea78fb26c8d91abbff99c17f728c732a34e6a7998","64016":"57e80c833789f46a212417d7016627bce69804986712697681963ad985525ea2","64017":"36ea1b388be612d90968e2575762ea1e988d2a96010331ee0e4dcd6179fc682f","64018":"afc867fc48823a76ec2b20751ec7a346b5c450ac70022a62d97d2b05456af2e3","64019":"b9b4d38c06a977b2afc9f40365cbf029483c04da3aae1b0fe87b5eae73a6cb1a","64020":"712cfef74dacddb2ec22426fb4a4bea97f5771336a9a2cef38d83e79a3c6f387","64021":"1666439e9c97156972224d9e786c33b2ebcfc1aaa00174fd137d1ebe6da90f08","64022":"958e96ec953fde9fb9519e611d026ba3461fd23d81a56b52563e180593ba1e28","64023":"da7081fb23bd24b31c3f3ed04f335c0b94e00e46a8a5df46dea42333ebd6accb","64024":"b1d66d16c4c019becf95c37dd1332a8763b7d07b34975eb34b9d22c332916c1b","64025":"443dace3216307c2fab149833107c7401ad8e90b655dc2d97b9c1a11657365d1","64026":"2d30c4ea4a3a8fd543b7dfe3614bff06035f19e94c85cf718224c68e7d74c5e8","64027":"703640bc47c7b029030ab47341a7eeb3413642552ac1b3f7587c621414b03c3b","64028":"c0ba67b9e3864206a235ad912de73c65d672e7cfa2ae4d1bc87376f9e703694d","64029":"3c7261b77c845dc5ceb12b956788c9124b097f8e629ac17dc42e7589241d9cd4"},"report_candidate_completed":[],"report_required":2048,"mandatory_P_seeds":[10000,10001,10002],"debug_only_seeds":[64000,64001],"debug_notes":"64000 pilots were 10000 steps. 64001 trace used 100 steps. Neither is included twice in choose paired estimates."},"first_call_errors":{"C":{"wrong":33700,"total":204262,"coverage":"completed choose seeds only"},"Cflag":{"wrong":0,"total":202278,"coverage":"completed choose seeds only"},"moment_control":{"wrong":33788,"total":207558,"coverage":"completed choose seeds only"}},"diagnostics":{"baseline_64000":{"credit":"Taylor (gtmcknight)","rows":{"COMBO":{"seed":64000,"steps":10000,"edge":437.7100000860294,"seconds":4.779938617008156,"first_call_errors":{"wrong":1011,"total":6615}},"Flag":{"seed":64000,"steps":10000,"edge":439.38939781550437,"seconds":0.42979990399908274},"qt1":{"seed":64000,"steps":10000,"edge":436.4087645205474,"seconds":4.525256112989155}},"oracle_only":["Flag"],"flag_patch":"Insert pi = float(bool(arb)) immediately before is_arb = pi > .5 in combo.py, after the likelihood calculation and before all posterior/rival/phase/quote updates.","live_source_sha256":"120f4384ca4b91c5b4526a0fc62bd0e631d4f1169c263076e31ed14b4e632a4f","flag_source_sha256":"496fe214574c521f7a46adead5fe48ce66868b5f4a651fa73e854ed24f2e2241"},"prototype_v1_C":{"seed":64000,"steps":10000,"edge":331.13005171866,"seconds":32.3984650499915,"objective_calls":9336,"first_call_errors":{"wrong":992,"total":6384},"qualification":"prototype pilot only; no full Gate Q coverage","hidden_invariance_checked_callbacks":16,"hidden_invariance_max_abs_error":0.0},"prototype_v1_Cflag":{"policy":"Cflag","seed":64000,"steps":10000,"edge":323.28969428713833,"seconds":16.993024419003632,"first_call_errors":{"wrong":0,"total":6301},"oracle_only":true,"qualification":"one-seed pilot; not Gate Q"},"prototype_v2_C":{"seed":64000,"steps":10000,"edge":330.6821971955818,"seconds":33.949068581991014,"objective_calls":9348,"first_call_errors":{"wrong":1007,"total":6395},"qualification":"prototype pilot only; no full Gate Q coverage","hidden_invariance_checked_callbacks":16,"hidden_invariance_max_abs_error":0.0},"prototype_v1_objective_sha256":"0c0f8caac54ae2f5f94dd3dc69191d3ccc23a9ad0f1fad6439b788f0dfee5ca5","prototype_v1_objective_encoding":"zlib+base64","prototype_v1_objective_source":"eNqlVU1v4zYQvftXEOlFsigt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jYuqgah9YtfeW6THp1S6novzPfXlhB1U8fA/Z3LcpHUI2LCRTTZlnYF/hoHGL+6cXHZbTkuAlxUZ29z4xW2Ewvw6FYWuHf7Cf0ig+YlBckid+ypu4pIyV53YkoR/HqNnkZXqGRh3OK0yutpudloDeyv1ch+u9WBo5P7AEVpCR8fxg/1+F/gYYFqRf","oracle_only":["Flag","Cflag"]},"params":{"model":{"lambda":0.8,"sigma_bps":9.45,"size_mean":20.0,"H_bps":5.0,"DP_AMINL":-12,"DP_NA":43,"physics":"Unmodified pinned dp.py defaults; 62-node size quadrature."},"filter":{"price_cells":121,"cell_bps":2.5,"sigma_bps":9.45,"rho":0.26,"hard":0.995,"silent_step_cap":30,"source":"Pinned latt.py with branch-context instrumentation. COMBO carried rival and retail-count update rules."},"quote":{"physical_log_fee_grid_bps":[0,150,5],"subgrid":"One parabolic coordinate probe per ask/bid, at most half a 5bps grid cell; accepted only when the interpolated posterior objective improves.","hypothesis_state_action_shifts":"w-delta,r-delta,a-delta,b+delta","no_average_of_optimal_quotes":true,"table_domain":"4D multilinear interpolation with clipping to represented state/action domain."},"paired_statistics":"mean of same-seed differences; SE=sample_sd(differences)/sqrt(n); worst5=lowest [seed,diff], ties by seed."},"source_patch":{"credit":"Taylor (gtmcknight), base model/filter/replica.","files":{"objective.py":{"sha256":"67af0971e7c05e1752a304245465ba926735b9c6a0d59c782fd2efa13f276b4b","text":"\"\"\"Credit: Taylor (gtmcknight), dp.py solved VN and latt.py posterior.\nPosterior objective for a common physical quote; independent of simulator hidden inputs.\n\"\"\"\nimport math\nimport numpy as np\nfrom numba import njit\n\n@njit\ndef pos2(x,W):\n    if x<=W[0]:return 0.\n    if x>=W[-1]:return float(len(W)-1)\n    k=np.searchsorted(W,x)-1\n    return k+(x-W[k])/(W[k+1]-W[k])\n\n@njit\ndef interp(V,w,r,a,b,W,phase):\n    # Indices are in 5bps lattice units. Clamp to represented table domain.\n    z0=min(V.shape[0]-1.,max(0.,160.+w))\n    z1=min(12.,max(0.,r+6.)) if phase==0 else pos2(r,W)\n    z2=min(42.,max(0.,a+12.));z3=min(42.,max(0.,b+12.))\n    i0=min(int(z0),V.shape[0]-2);i1=min(int(z1),V.shape[1]-2)\n    i2=min(int(z2),V.shape[2]-2);i3=min(int(z3),V.shape[3]-2)\n    f0=z0-i0;f1=z1-i1;f2=z2-i2;f3=z3-i3\n    out=0.\n    for d0 in range(2):\n        for d1 in range(2):\n            wt=(f0 if d0 else 1-f0)*(f1 if d1 else 1-f1)\n            v00=V[i0+d0,i1+d1,i2,i3]*(1-f3)+V[i0+d0,i1+d1,i2,i3+1]*f3\n            v10=V[i0+d0,i1+d1,i2+1,i3]*(1-f3)+V[i0+d0,i1+d1,i2+1,i3+1]*f3\n            out+=wt*(v00*(1-f2)+v10*f2)\n    return out\n\n@njit\ndef objective(V,probs,deltas,w,r,a,b,W,phase):\n    # delta=(hypothesis log price - reference log price)/(5bps).\n    # One physical ask moves down by delta; one physical bid offset moves up.\n    out=0.;mass=0.\n    for k in range(len(probs)):\n        q=probs[k]\n        if q<=0.:continue\n        d=deltas[k]\n        out+=q*interp(V,w-d,r-d,a-d,b+d,W,phase)\n        mass+=q\n    return out/mass\n\n@njit\ndef maximize(V,probs,deltas,w,r,W,phase):\n    # Common feasible nonnegative log fees, 0..150bps in increments of 5bps.\n    best=-1e300;aa=0.;bb=0.\n    for ask_fee in range(31):\n        a=w+ask_fee\n        for bid_fee in range(31):\n            b=-w+bid_fee\n            v=objective(V,probs,deltas,w,r,a,b,W,phase)\n            if v>best:best=v;aa=a;bb=b\n    for axis in range(2):\n        fee=aa-w if axis==0 else bb+w\n        if fee>=1. and fee<=29.:\n            vm=objective(V,probs,deltas,w,r,aa-(1. if axis==0 else 0.),bb-(1. if axis==1 else 0.),W,phase)\n            vp=objective(V,probs,deltas,w,r,aa+(1. if axis==0 else 0.),bb+(1. if axis==1 else 0.),W,phase)\n            den=vm-2*best+vp\n            if den<0.:\n                shift=max(-.5,min(.5,.5*(vm-vp)/den))\n                at=aa+(shift if axis==0 else 0.);bt=bb+(shift if axis==1 else 0.)\n                v=objective(V,probs,deltas,w,r,at,bt,W,phase)\n                if v>best:aa=at;bb=bt;best=v\n    return aa,bb,best\n\n@njit\ndef joint_value(V0,V1,pi,delta_arb,retprobs,deltas,w,ra,rr,a,b,W):\n    return pi*interp(V0,w-delta_arb,ra-delta_arb,a-delta_arb,b+delta_arb,W,0)+(1-pi)*objective(V1,retprobs,deltas,w,rr,a,b,W,1)\n\n@njit\ndef maximize_joint(V0,V1,pi,delta_arb,retprobs,deltas,w,ra,rr,W):\n    best=-1e300;aa=0.;bb=0.\n    for af in range(31):\n        a=w+af\n        for bf in range(31):\n            b=-w+bf\n            va=interp(V0,w-delta_arb,ra-delta_arb,a-delta_arb,b+delta_arb,W,0)\n            vr=objective(V1,retprobs,deltas,w,rr,a,b,W,1)\n            v=pi*va+(1-pi)*vr\n            if v>best:best=v;aa=a;bb=b\n    for axis in range(2):\n        fee=aa-w if axis==0 else bb+w\n        if fee>=1. and fee<=29.:\n            vm=joint_value(V0,V1,pi,delta_arb,retprobs,deltas,w,ra,rr,aa-(1. if axis==0 else 0.),bb-(1. if axis==1 else 0.),W)\n            vp=joint_value(V0,V1,pi,delta_arb,retprobs,deltas,w,ra,rr,aa+(1. if axis==0 else 0.),bb+(1. if axis==1 else 0.),W)\n            den=vm-2*best+vp\n            if den<0.:\n                shift=max(-.5,min(.5,.5*(vm-vp)/den))\n                at=aa+(shift if axis==0 else 0.);bt=bb+(shift if axis==1 else 0.)\n                v=joint_value(V0,V1,pi,delta_arb,retprobs,deltas,w,ra,rr,at,bt,W)\n                if v>best:aa=at;bb=bt;best=v\n    return aa,bb,best\n"},"candidate.py":{"sha256":"12b1ea7bc0ae32bad0b6952737c51b08e4c2e77f4016c2d6ec9036220c4b3441","text":"\"\"\"Credit: Taylor (gtmcknight), lattice filter, solved values and qm tables.\nExperimental full-posterior quotes; not qualified by full choose/report coverage.\n\"\"\"\nimport pathlib,math\nimport numpy as np\nimport joint_latt as latt\nfrom combo import Combo\nfrom qmref import INIT\nfrom objective import maximize, maximize_joint\nclass Candidate(latt.LatticePolicy):\n    def __init__(self,T,root,flag=False,control=False):\n        super().__init__(T,{'hard':.995,'oraclearb':int(flag)})\n        self.control=control\n        root=pathlib.Path(root)\n        self.ref=Combo(str(root/'blob.bin'))\n        self.values=[np.load(root/f'regenerated_VN{ph}.npy',mmap_mode='r') for ph in range(3)]\n        self.W=np.array(self.ref.W2L,dtype=float)\n        self.objective_calls=0\n    def init(self,*ignored):\n        self.fb=self.fa=INIT\n        return INIT,INIT\n    def lookup(self,w,w2,phs,sd):\n        if self.control:\n            a,b=self.ref.lookup_offsets(w,w2,phs,sd,self.synced)\n            return 1-math.exp(-max(0.,b+w)*1e-4),1-math.exp(-max(0.,a-w)*1e-4)\n        probs=np.array(self.P)\n        deltas=np.array([(self.c+(i-latt.N0)*latt.HC-self.m)/5e-4 for i in range(latt.NC)])\n        if self.quote_branch is None:\n            a,b,val=maximize(self.values[phs],probs,deltas,w/5,w2/5,self.W,phs)\n        else:\n            pi,lp,logs,retprobs,sa,sr=self.quote_branch\n            ds=np.array([(v-self.m)/5e-4 for v in logs])\n            a,b,val=maximize_joint(self.values[0],self.values[1],pi,(lp-self.m)/5e-4,np.array(retprobs),ds,w/5,(math.log(sa)-self.m)/5e-4,(math.log(sr)-self.m)/5e-4,self.W)\n        self.objective_calls+=1\n        return 1-math.exp(-max(0.,b+w/5)*5e-4),1-math.exp(-max(0.,a-w/5)*5e-4)\n"},"evaluate.py":{"sha256":"a52dd3b6fa134eec9fb21e9e89179fecfb19f8dd21434fd8c8c5df44ca6cb341","text":"\"\"\"Credit: Taylor (gtmcknight): replica, dp.py, qm tables, Gaussian and lattice filters.\nCheckpointed paired evaluator. Choose only; no report seed is read by this program.\n\"\"\"\nimport pathlib,sys,json,time,hashlib,multiprocessing\nROOT=pathlib.Path(__file__).resolve().parent\nsys.path[:0]=[str(ROOT),str(ROOT/'deps')]\nimport replica2\nfrom evalpol import load\nfrom qmref import QMRef\nfrom combo import Combo\nfrom candidate import Candidate\nT=load(str(ROOT/'pol_mid.json'));BLOB=str(ROOT/'blob.bin')\nsource=(ROOT/'combo.py').read_text();anchor='            is_arb = pi > .5\\n'\nassert source.count(anchor)==1\nflag_source=source.replace(anchor,'            pi = float(bool(arb))\\n'+anchor)\nns={};exec(compile(flag_source,'ComboFlag','exec'),ns);Flag=ns['Combo']\n\ndef one(seed):\n    started=time.monotonic();out={'seed':seed,'steps':10000,'policies':{}}\n    for name in ['COMBO','qt1','Flag','moment_control','C','Cflag']:\n        if name=='COMBO':pol=Combo(BLOB)\n        elif name=='qt1':pol=QMRef(BLOB)\n        elif name=='Flag':pol=Flag(BLOB)\n        else:pol=Candidate(T,ROOT,flag=name=='Cflag',control=name=='moment_control')\n        t=time.monotonic();r=replica2.run(seed,pol)\n        entry={'edge':r['edge'],'seconds':time.monotonic()-t}\n        if name in ['C','Cflag','moment_control']:entry['first_call_errors']={'wrong':pol.nmis,'total':pol.ncls}\n        out['policies'][name]=entry\n    out['seconds']=time.monotonic()-started\n    return out\n\nif __name__=='__main__':\n    # The file is append-only and every completed seed is independently checkpointed.\n    dest=ROOT/'choose.rows.jsonl'\n    done=set()\n    if dest.exists():\n        for line in dest.read_text().splitlines():done.add(json.loads(line)['seed'])\n    seeds=[s for s in range(64000,65024) if s not in done]\n    with dest.open('a') as f, multiprocessing.Pool(4) as pool:\n        for row in pool.imap_unordered(one,seeds,chunksize=1):\n            f.write(json.dumps(row,sort_keys=True,separators=(',',':'))+'\\n');f.flush()\n            print(json.dumps({'seed':row['seed'],'completed':len(done)+1,'seconds':row['seconds']}),flush=True)\n            done.add(row['seed'])\n"},"solve_driver.py":{"sha256":"47be5d1b623a1f0fd174a60bd5ceadfe5565f5683fd08ee50f90859025407366","text":"\"\"\"Credit: Taylor (gtmcknight); launcher for unmodified pinned dp.py.\"\"\"\nimport sys,pathlib,runpy\np=pathlib.Path(__file__).resolve().parent\nsys.path.insert(0,str(p/'deps'))\nsys.argv=[str(p/'dp.py'),'solve','0.8','9.45','20',str(p/'regenerated.json')]\nrunpy.run_path(str(p/'dp.py'),run_name='__main__')\n"},"check_objective.py":{"sha256":"17b9a21f393034eb63757967df2806479e766df75e4cc53033492d9ee593de11","text":"\"\"\"Credit: Taylor (gtmcknight), underlying solved VN conventions.\"\"\"\nimport sys,pathlib,math,json\np=pathlib.Path(__file__).resolve().parent\nsys.path[:0]=[str(p),str(p/'deps')]\nimport numpy as np\nfrom objective import objective,interp,maximize,maximize_joint\nW=np.array([-160.,-130.,-100.,-80.,-60.,-50.,-40.,-30.,-25.,-20.,-17.,-14.]+list(range(-12,13))+[14.,17.,20.,25.,30.,40.,50.,60.,80.,100.,130.,160.])\n# Deliberately cross-coupled objective distinguishes average values and average optima.\nshape=(321,13,43,43)\ni,j,a,b=np.ogrid[:321,:13,:43,:43]\nV=(.1*(i-160)+.2*(j-6)+.3*(a-12)+.4*(b-12)+.02*(a-12)*(b-12)).astype(float)\nw,r,aa,bb=2.3,.4,5.2,6.1\nprob=np.array([.3,.7]);d=np.array([-1.,2.])\nexpected=sum(q*(.1*(w-h)+.2*(r-h)+.3*(aa-h)+.4*(bb+h)+.02*(aa-h)*(bb+h)) for q,h in zip(prob,d))\ngot=objective(V,prob,d,w,r,aa,bb,W,0)\npoint=objective(V,np.array([1.]),np.array([0.]),w,r,aa,bb,W,0)\nraw=interp(V,w,r,aa,bb,W,0)\nresult={'posterior_affine_cross_term_abs_error':abs(got-expected),'point_mass_abs_error':abs(point-raw),'normalized_mass_abs_error':abs(objective(V,prob*7,d,w,r,aa,bb,W,0)-got)}\na0,b0,v0=maximize(V,np.array([1.]),np.array([0.]),0.,0.,W,0)\naj,bj,vj=maximize_joint(V,V,1.,0.,np.array([1.]),np.array([0.]),0.,0.,0.,W)\nresult['joint_point_mass_arb_value_abs_error']=abs(v0-vj)\nresult['joint_point_mass_arb_quote_max_abs_error']=max(abs(a0-aj),abs(b0-bj))\nassert max(result.values())<1e-12\n(p/'objective-tests.json').write_text(json.dumps(result))\nprint(json.dumps(result))\n"},"check_vn.py":{"sha256":"2199c5c8f47d53e6187ac4dc905ef4715332f2e892f5c00858b6d7e16c85b6f5","text":"\"\"\"Credit: Taylor (gtmcknight), solved VN and dp.py action conventions.\"\"\"\nimport pathlib,sys,json,time\np=pathlib.Path(__file__).resolve().parent;sys.path[:0]=[str(p),str(p/'deps')]\nimport numpy as np\nfrom objective import maximize\nV=np.load(p/'regenerated_VN0.npy',mmap_mode='r')\nW=np.array(json.loads((p/'pol_mid.json').read_text())['W2L'],float)\nrows=[]\nfor w,r in [(0,0),(3,-2),(-3,2)]:\n t=time.monotonic();a,b,v=maximize(V,np.array([1.]),np.array([0.]),float(w),float(r),W,0)\n expected=float(np.max(V[160+w,6+r]));row={'w_lattice':w,'r_lattice':r,'a_lattice':a,'b_lattice':b,'objective':v,'dp_discrete_max':expected,'abs_error':abs(v-expected),'seconds':time.monotonic()-t};rows.append(row)\n assert row['abs_error']<1e-7\n(p/'vn-tests.json').write_text(json.dumps(rows));print(json.dumps(rows))\n"},"check_flag.py":{"sha256":"5eac3b01d19b28d48f68f6250ca0b94e9fd0c23facd55bf33951892ba0b8d16d","text":"\"\"\"Credit: Taylor (gtmcknight), replica and filters; COMBO predecessor baseline.\"\"\"\nimport pathlib,sys,json,time,hashlib\np=pathlib.Path(__file__).resolve().parent;sys.path.insert(0,str(p))\nimport replica2\nfrom qmref import QMRef\nsource=(p/'combo.py').read_text()\n# Instrument the first own callback of each step, after likelihood but before updates.\nanchor='            is_arb = pi > .5\\n'\nassert source.count(anchor)==1\nlive=source.replace(anchor,'            self.first_total = getattr(self, \"first_total\", 0) + 1\\n            self.first_wrong = getattr(self, \"first_wrong\", 0) + int((pi > .5) != bool(arb))\\n'+anchor)\nflag=source.replace(anchor,'            pi = float(bool(arb))\\n'+anchor)\nns={};exec(compile(live,'COMBO-live-diagnostics','exec'),ns);Live=ns['Combo']\nns={};exec(compile(flag,'COMBO-Flag','exec'),ns);Flag=ns['Combo']\nrows={}\nfor name,cls in [('COMBO',Live),('Flag',Flag),('qt1',QMRef)]:\n t=time.monotonic();pol=cls(str(p/'blob.bin'));r=replica2.run(64000,pol)\n rows[name]={'seed':64000,'steps':10000,'edge':r['edge'],'seconds':time.monotonic()-t}\n if name=='COMBO':rows[name]['first_call_errors']={'wrong':pol.first_wrong,'total':pol.first_total}\n print(json.dumps({name:rows[name]}),flush=True)\n(p/'flag-diagnostic.json').write_text(json.dumps({'credit':'Taylor (gtmcknight)','rows':rows,'oracle_only':['Flag'],'flag_patch':\"Insert pi = float(bool(arb)) immediately before is_arb = pi > .5 in combo.py, after the likelihood calculation and before all posterior/rival/phase/quote updates.\",'live_source_sha256':hashlib.sha256(live.encode()).hexdigest(),'flag_source_sha256':hashlib.sha256(flag.encode()).hexdigest()}))\n"},"check_invariance.py":{"sha256":"704048e7afa380d989353b1deafc14ca9ae02beffe046b21f0649f1b445c6a74","text":"\"\"\"Credit: Taylor (gtmcknight), replica and COMBO predecessor conventions.\"\"\"\nimport sys,pathlib,json,copy\np=pathlib.Path(__file__).resolve().parent\nsys.path.insert(0,str(p))\nfrom combo import Combo\nimport replica2\nclass Check:\n wants_j=True\n def __init__(self):\n  self.a=Combo(str(p/'blob.bin'));self.b=Combo(str(p/'blob.bin'));self.n=0;self.error=0.\n def init(self,*args):\n  a=self.a.init(*args);b=self.b.init(123.,456.,789.);assert a==b;return a\n def on_trade(self,buy,ax,ay,t,x,y,arb,price,s2,j):\n  a=self.a.on_trade(buy,ax,ay,t,x,y,arb,price,s2,j)\n  b=self.b.on_trade(buy,ax,ay,t,x,y,not arb,1.234,9876.5,j+100)\n  self.error=max(self.error,max(abs(u-v) for u,v in zip(a,b)));self.n+=1\n  assert a==b\n  return a\npol=Check();replica2.run(64000,pol)\nr={'policy':'unmodified COMBO only; candidate not covered','seed':64000,'steps':10000,'callbacks':pol.n,'max_abs_fee_difference':pol.error,'hidden_init_and_callback_fields_changed':True}\n(p/'invariance.json').write_text(json.dumps(r));print(json.dumps(r))\n"},"pilot.py":{"sha256":"ba1124580f87ff9422359fc8bcc36478b66392a0b4b020f4a39a7c0761fa85f0","text":"\"\"\"Credit: Taylor (gtmcknight), replica, lattice and dynamic program.\nUnqualified prototype performance test, NOT a Gate Q evaluation.\n\"\"\"\nimport pathlib,sys,json,time\np=pathlib.Path(__file__).resolve().parent;sys.path[:0]=[str(p),str(p/'deps')]\nimport replica2\nfrom evalpol import load\nfrom candidate import Candidate\nT=load(str(p/'pol_mid.json'))\nclass CheckedCandidate(Candidate):\n    def __init__(self,T,root):\n        super().__init__(T,root)\n        self.twin=Candidate(T,root)\n        self.checked=0\n        self.hidden_max_error=0.\n    def init(self,*args):\n        a=super().init(*args);b=self.twin.init(100.,200.,300.)\n        assert a==b\n        return a\n    def on_trade(self,is_buy,ax,ay,t,x,y,arb,p,s2,j):\n        a=super().on_trade(is_buy,ax,ay,t,x,y,arb,p,s2,j)\n        if self.checked<16:\n            b=self.twin.on_trade(is_buy,ax,ay,t,x,y,not arb,1.234,9876.5,j+100)\n            self.hidden_max_error=max(self.hidden_max_error,max(abs(u-v) for u,v in zip(a,b)))\n            assert a==b\n            self.checked+=1\n        return a\npol=CheckedCandidate(T,p)\nt=time.monotonic()\nr=replica2.run(64000,pol)\nout={'seed':64000,'steps':10000,'edge':r['edge'],'seconds':time.monotonic()-t,'objective_calls':pol.objective_calls,'first_call_errors':{'wrong':pol.nmis,'total':pol.ncls},'qualification':'prototype pilot only; no full Gate Q coverage','hidden_invariance_checked_callbacks':pol.checked,'hidden_invariance_max_abs_error':pol.hidden_max_error}\n(p/'pilot.json').write_text(json.dumps(out));print(json.dumps(out),flush=True)\n"},"pilot_aux.py":{"sha256":"f3e55ba0a4177d03d575672df5e22c9abcdca314a432cd8aac5ec3de1ff839d0","text":"\"\"\"Credit: Taylor (gtmcknight), replica, lattice, qm tables, and solved VN.\"\"\"\nimport pathlib,sys,json,time\np=pathlib.Path(__file__).resolve().parent;sys.path[:0]=[str(p),str(p/'deps')]\nimport replica2\nfrom evalpol import load\nfrom candidate import Candidate\nname=sys.argv[1]\npol=Candidate(load(str(p/'pol_mid.json')),p,flag=name=='Cflag',control=name=='moment_control')\nt=time.monotonic();r=replica2.run(64000,pol)\nout={'policy':name,'seed':64000,'steps':10000,'edge':r['edge'],'seconds':time.monotonic()-t,'first_call_errors':{'wrong':pol.nmis,'total':pol.ncls},'oracle_only':name=='Cflag','qualification':'one-seed pilot; not Gate Q'}\n(p/(name+'.json')).write_text(json.dumps(out));print(json.dumps(out),flush=True)\n"}},"joint_latt_patch":"--- latt.py\n+++ joint_latt.py\n@@ -1,3 +1,4 @@\n+\"\"\"Credit: Taylor (gtmcknight); lattice filter with COMBO branch context instrumentation.\"\"\"\n \"\"\"Exact Bayes on a price lattice, real observables only.\n \n Belief = probability mass on cells of width HC around a moving centre.  Each elapsed step convolves with the\n@@ -112,6 +113,8 @@\n         if 0 <= i + 1 < NC: self.P[i + 1] += w * f; self.lo_i = min(self.lo_i, i + 1); self.hi_i = max(self.hi_i, i + 1)\n     # ---- callback\n     def on_trade(self, is_buy, ax, ay, t, x, y, arb, p, s2, j):\n+        self.quote_branch = None\n+        old_s2 = self.s2h\n         o = self.o\n         s = y / x\n         dt = t - self.tlast\n@@ -142,6 +145,17 @@\n                 l_ret = Z * o.get('rho', RHO) * phi((math.log(max(d, 1e-9)) - LD_M) / LD_S) / (max(d, 1e-9) * LD_S)\n                 pi = l_arb / (l_arb + l_ret) if (l_arb + l_ret) > 0 else 1.0\n                 if o.get('oraclearb', 0): pi = 1.0 if arb else 0.0\n+                if .005 < pi < .995 and Z > 1e-300:\n+                    logs = [self.c + (i-N0)*HC for i in range(NC)]\n+                    retprobs = [v/Z for v in self.P]\n+                    mt = sum(q*lp for q,lp in zip(retprobs,logs))\n+                    pa = math.exp(lp_arb); pr = math.exp(mt)\n+                    sa = max(pa*.997,min(pa/.997,old_s2))\n+                    sr = max(pr*.997,min(pr/.997,old_s2))\n+                    cand = s*(1-self.fb)/.997 if is_buy else s*.997/(1-self.fa)\n+                    sync = cand < sr if is_buy else cand > sr\n+                    if sync: sr = cand\n+                    self.quote_branch = (pi,lp_arb,logs,retprobs,sa,sr)\n                 hard = o.get('hard', 0.999)\n                 if pi >= hard or Z <= 1e-300:\n                     self.pin(lp_arb)\n","joint_latt_result_sha256":"30148b6571bb6b87d3074bceecbd322201d87851437038155b079e1b757f5834","base_latt_sha256":"925c0fe996b19fd51fb79a85d5e4dba4bc2f5453d0a156cc1e480f65a6a00cc8","dependencies":"Extract and hash-check qmref.py, twocomp.py, combo.py and blob.bin from the supplied artifacts. The pinned replica2.py/evalpol.py/real.py/latt.py and pol_mid.json are also required. numpy and numba are needed for the new quoting kernel and regeneration. This JSON is research source, not a bundled offline executable."},"table_model_regeneration":{"hashes":{"regenerated.json":"fafe2c68faec494c434339f78ae688bd281a3fd23f0921d0d63a39d9bd06ff04","regenerated_vd.npz":"93fa6bd794610259c73aef1cdb07721ca37ac162bfa555d9d7e1d4bd3d0db89d","regenerated_VN0.npy":"dc602095804048829da58040ce5b40dee25b25edaeeba921f45033e9894072b6","regenerated_VN1.npy":"871274b7f2ede9ee9f610c7dfaf7fe450d971259aec3cf4b74245d9cb79be0fd","regenerated_VN2.npy":"7fa4b401dde383b3a37f2ba3f79edb63702ece1f4c059f8a486850cdbb32c086"},"g":0.05368206098114671,"all_six_policy_tables_equal":true,"last_sweep":"110","stdout":"geometry 7.1s  nq 62  h [0.55067104 0.34722702 0.2331101 ]  grid NW 321 N2 49 NA 43\nsweep 1 t 24s gain/step 0.0576476 -> 576.476 per run  diff 3.40e-02\nsweep 2 t 27s gain/step 0.0583772 -> 583.772 per run  diff 3.05e-02\nsweep 3 t 31s gain/step 0.0582014 -> 582.014 per run  diff 2.82e-02\nsweep 10 t 57s gain/step 0.0551817 -> 551.817 per run  diff 2.17e-02\nsweep 20 t 95s gain/step 0.0540383 -> 540.383 per run  diff 2.00e-02\nsweep 30 t 134s gain/step 0.0537958 -> 537.958 per run  diff 1.91e-02\nsweep 40 t 171s gain/step 0.0537190 -> 537.190 per run  diff 1.81e-02\nsweep 50 t 208s gain/step 0.0536884 -> 536.884 per run  diff 1.64e-02\nsweep 60 t 244s gain/step 0.0536821 -> 536.821 per run  diff 3.17e-04\nsweep 70 t 280s gain/step 0.0536821 -> 536.821 per run  diff 1.08e-05\nsweep 80 t 316s gain/step 0.0536821 -> 536.821 per run  diff 2.26e-06\nsweep 90 t 352s gain/step 0.0536821 -> 536.821 per run  diff 7.99e-07\nsweep 100 t 389s gain/step 0.0536821 -> 536.821 per run  diff 3.69e-07\nsweep 110 t 425s gain/step 0.0536821 -> 536.821 per run  diff 1.88e-07\nSOLVED lam 0.8 sigma 9.45 size 20.0: 536.821 per run -> test/scratch/posterior-b/regenerated.json\n","credit":"Taylor (gtmcknight)","command":"DP_SAVEVN=1 DP_AMINL=-12 DP_NA=43 NUMBA_NUM_THREADS=8 timeout 470 python3 -I test/scratch/posterior-b/solve_driver.py","exit_code":0,"policy_table_comparison":"All six A0/B0/A1/B1/A2/B2 arrays equal pinned pol_mid.json, element for element.","source_url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/dp.py","source_sha256":"ca4e7c378d23c46c7def4716611135c471a831d15234b984fe30d58d9eec5734","source_encoding":"zlib+base64; decoded UTF-8 bytes are unmodified pinned dp.py","source_zlib_base64":"eNrNW3lz2kq2/59P0S9Tr5BikIW83AQH1+DEWSqx48S37JlL8SgJGpCtzZIAOy5/9/mdbm2AhPGdOzXPFYjoPn367IvUevXq1em9OYzZ6MEzXXvIgtCfhKbLxn7I4ilnF6c/P56+/7355fzj959n3d+/fD9nl7YbOJx1z87YxHQ5U7g3sT3O/n5oHb41WuM3LJw5PFK1Wu0yNmPOzJiZbMSHdmT7HlNCezLFyDjmIcbj0BxxhnF/FrLA9x21XWP4W+DTYY6n0HgU+DHbZYHKCn/+wmMjOwocc8hd7sVymZEsC+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nWXEs1y0ctbZ2i5HKy//piGPDwisKGOiOVF5/rkyIWpQcpTC+U7VgJ12ACoZC2ToZOuZFLyXbmbIdjwVDa1XoHOXinEq+YLXqpVWi8m2UVMMrY8kdhZIqmd51QT3s0o0R1E9zOp08D8p6M4IU7Rs9WqCDU/eiBKQ7Zp4iLpJyTCCbB3QsAmvUai1apMW8XZBqbL5Mj1aVHq0KPVpVerS21aNVoUcr1WPzZYpsJEu3UWQjofMvUaT17yiy2AqZ4kChOJW8j0BU7IkKM8VojtBKfRGdyR94pssHA0pU9cHARVoZDOpSfvTmD9WEDxHq/8k8jYBYJWewQuT2ei5uuhuUmlK2rhiFZAOGNBL9opuMK5B79A7Byth+ydhB8kYBVerpoAqrOkjfLtDeNNhbbf+AXpXR9Hx7OnNY7AQFIcu9X36Un5jZZQf5WwHFLP3xyz9OP7BHwDxR0mizx7D3avKqv5aBk4Ppyzc5lnaXDw3WhbbGdqV4CoLZzGrOR4ziBxCPT0tJ5ybPOavlCdmMeM1RZOiwV786r/d7N3ARXH/pFq5PxPWyvdJ2vXG9+3jzVCfL7GpSxnuqhoKD3jxCGkqATlKgk3WgJfq1WTAyY64kxQn2ntT79CaS28kb/Y7gHA15h2T9mVrvTuISKLuvO5Sqr/XOtSjCO1Syvzc67w0qSjvopaqfhV0b3zr4ZKRRMaQTEVcfIAC9nxB/qC5BtDKIVglEwdDofTVtNHMDhViFlQScXnCNG6y+qBfgUHRE5pz/Ggx9Nwh5hOKXwDR6P88ccqUuXv6jt3gG85HmBb/qa5Su0iXKuux30X3L7yFcdq9OYQ0rBrNuTymt5fSN64Orc6geND4QjbmJaWZEr58phfOJ6w55+f3bFTyS3k94xNdT8i7jYzR5EurH1a+najcV9TPoeoK//gvZMEqN","source_decode_python":"import base64,zlib; dp_source=zlib.decompress(base64.b64decode(value['source_zlib_base64']))","required_python_dependencies":["numpy","numba"],"array_storage":"VN arrays are not embedded. dp.py plus solve_driver.py regenerates them; array hashes are recorded above.","timing_seconds_last_sweep":425},"commands_timings":[{"command":"git clone https://github.com/gtmcknight/amm-sim test/scratch/posterior-b/repo; git checkout pinned commit; git rev-parse HEAD","status":"success","seconds":null},{"command":"Fetch four artifact URLs with urllib.request; SHA256; extract fenced code and base64 blob.","status":"all hashes match","seconds":null},{"command":"python3 -I test/scratch/posterior-b/gates.py","status":"exact match to README at 6dp","seconds":null},{"command":"python3 -I test/scratch/posterior-b/qtgate.py","status":"exact match to all three requested qt1 values at 6dp","seconds":null},{"command":"DP_SAVEVN=1 DP_AMINL=-12 DP_NA=43 NUMBA_NUM_THREADS=8 timeout 470 python3 -I test/scratch/posterior-b/solve_driver.py","status":"success","seconds_last_sweep":425},{"command":"python3 -I check_objective.py; python3 -I check_vn.py; python3 -I check_invariance.py","status":"pass","seconds":null},{"command":"timeout 470 python3 -I test/scratch/posterior-b/evaluate.py","exit_code":124,"timeout_seconds":470,"completed_seeds":30}],"limitations":["Gate Q does not pass: full 1024 choose and 2048 report seeds were not completed.","The one-seed pilot lost substantially to COMBO; it is not evidence of a useful policy or an upper bound.","The 5bps value/action lattice, 2.5bps posterior cells, finite action search, interpolation, clipping, and sub-grid probes are approximations. No rigorous upper bound is claimed.","Actual VN point-mass equality was tested only at three phase-0 lattice states; off-grid and phase-1/2 numerical errors are not comprehensively bounded.","Cflag follows the exact requested likelihood intervention in the normal likelihood path. The inherited lattice belief-death fallback pins without evaluating a likelihood; this exceptional path is not separately certified against the flag specification.","No contract, submission, engine test, Gate F, or leaderboard-score conversion was attempted.","Execution dependencies and all large model arrays are not bundled as an offline runtime; regeneration source and hashes are included.","Unknown command timings are null rather than inferred."]}
