{
 "notes": "EPISODE 3. Woken by requester note 2 while round 1 still ran (e2-ha-round1: 4 of 9 accepted, 5 running; leg1 cancelled: 2 accepted, 3 running). Note 2 asked for round 2 now, from inputs-a, without waiting; done.\n\nREAD: 6 results. Each file's sha256 equals its id, and https://api.imd.fun/artifacts/<id> answered 200 with the same bytes for the five I name in briefs. I did NOT decode the embedded sources (this machine's guard refuses base64 work), so code and port hashes below are the items' own reports. Real = 512 fresh seeds, paired vs HA; [..] = replica holdout 40000000..40008191 vs HA.\n- inputs-a = IA, id df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df, code sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2. 19-8-2 head: HA's 13 inputs plus raw_size, step_trade_count, prev_bid_fee, prev_ask_fee, steps_since_arb_like_print, router_implied_vanilla_spot_dev; 178 weights; CMA pop 16, 128 markets/generation, 210 generations in 21 min on 4 CPUs (440 markets/s), still rising. Real +0.335 se 0.025 vs HA (retail +0.565, arb -0.230), +1.513 se 0.041 vs T, seeds 7116384..7116895 [+0.365 se 0.007]. afterSwap peak 238,486 (HA 234,449 on the same seeds), init 243,237, 0 OOG. Gates A 7.6e-5 bps, B 1.141 vs 1.257, C 6.5e-5 bps. Fields: code_zb64, port_zb64, params (new_input_scaling), restart.weights_vector_after_W0_mult_off, restart.settings (sigma0 1.0 on CMA_stds = 0.1 x rms per block; sigma_final 0.52).\n- continue-a, id 4142df461b23b434d70d7c7b3bd165a76af62d53b8a0ebfc46896529a72d0f29: HA's 130 weights, 424 generations in 45 min: +0.194 se 0.021 [+0.185]; peak 231,484.\n- leg1/gated-a, id fda159013a534fad3c3cca8ca4ab74c64a5520fda828f8d5f66598b76c43afc8: two 13-8-2 nets chosen by firstInStep, 370 generations in 46 min: +0.192 se 0.019 [+0.181]; peak 232,419. No better than plain continuation.\n- leg1/wide-a: 16 units, 16 min of search: +0.073 se 0.016 [+0.083]; peak 236,627.\n- gas-a, id 19160955248c44ac54623ad40112d2b6c3b1c6f6745d9101a5e9b278f512192a: DIET (diet_code_zb64, sha256 269c03a4f7758b2ec15ee9f4ae74d64c59d0aacfa00b6d40c9dde87d4aec1e31) has HA's fees exactly (100 full traces equal on seeds 0..99) on 8 storage words instead of 16: afterSwap peak 233,608 -> 127,354, init 243,147 -> 176,807. Its 12-unit head (packed weights, loop) peaks 156,924: +0.016 se 0.022 [+0.055] after 41 min. So once the diet is applied gas no longer binds (about 118k free); wider heads have not paid yet.\n- kit, id 0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: sim.py, port.py (RS2, T, HA by TH_*), harness.py (speed, replica, train, freeze, holdout, real, aggregate, emit_solidity; 130 weights only), diff_test.py, tests, HA.sol, T.sol; three gates passed; needs the goal SETUP runtime; 412 markets/s.\n- Replica vs real, gain over HA: within 0.01-0.03 in every item. HA minus T real on six fresh blocks: 1.08-1.18 (the pilot's 1.257 was a high block; the replica says 1.12-1.14).\n- Machines: 300-680 markets/s. Items have about 114 minutes in all; round-1 searches got 16-46 of them, the rest went on building ports.\n\nWHERE THE GOAL STANDS. Best is IA at +0.335 over HA; the target is +3.1. A 45-minute search has bought about +0.2 (weights) or +0.35 (new inputs). At that rate seven more rounds do not reach +3.1: stack what adds (inputs, constants, long training) and say in the write-up how far it got. IA meets the requester's bar to submit (>= +0.3 over HA) if r2-confirm holds it on 2,048 seeds.\n\nDECIDED: round 2, 25 items in 7 batches of at most 5 (none is held for a canary). Every brief carries the requester's three FILE definitions word for word (left out: only the sentence 'Pilot items built T-port...', which tells items to build from source, against note 2), KIT and IA by URL, IA's gates (A IA port vs IA code; B replica IA minus T on 7116384..7116895 within 0.15 of +1.513; C), monitor 30000000..30002047, holdout 40000000..40008191 once after freezing, and real = candidate and IA on 512 seeds. The HA arm was dropped to save 7 minutes: candidate vs HA = candidate vs IA + IA vs HA from r2-confirm.\n- r2-confirm: confirm-a 7200000..7201023, confirm-b 7204096..7205119: IA, HA, T; paired with sum, sumsq and the 1,024 per-seed differences.\n- r2-continue (continue-a..e) and r2-continue-x (continue-f, g, h): CMA from IA's restart weights, sigma0 0.5 on its CMA_stds, at least 45 min. a, b, c, f: pop 16, 128 markets/generation; d, e: 256 markets; g: pop 32; h: pop 32 separable.\n- r2-gated (gated-a, b, c): two 19-8-2 nets chosen by firstInStep, started from the better of IA twice or gated-a's nets with IA's new columns.\n- r2-diet-wide (wide-a 12 units, wide-b and wide-c 16): IAD = IA's fees on the diet (regression on seeds 0..99), then wider; returns iad_code_zb64.\n- r2-joint (joint-a, joint-b: IA's weights and T's constants together; const-a: constants only).\n- r2-kit (kit-b): IAD plus a harness general in inputs, units and gating, for round 3.\n- r2-inputs2 (my addition, since inputs paid most in round 1): inputs-clock, inputs-path, inputs-flow, inputs-fees, inputs-cross: one new input family each on IA, new weights 0, gas probed before training.\nSEEDS. Item i in the order confirm-a, confirm-b, continue-a..h, gated-a..c, wide-a..c, joint-a, joint-b, const-a, kit-b, inputs-clock, -path, -flow, -fees, -cross has real block 7200000 + 4096*i (first 512 used, confirms 1,024; last block starts 7298304) and replica train block 500000000 + 1000000*i. Used before: real 7000000..7017511 (leg1), 7100000..7136863 (round 1); train 100000000-279999999 and 400000000-489999999. NEXT: real from 7400000, train from 600000000. Monitor and holdout never change.\n\nNEXT EPISODE\n1. Reads asked (30, the limit): the 25 round-2 items and e2-ha-round1 continue-b, joint-a, joint-b, gas-b, inputs-b. leg1's net8-a, th-a and feat-a were not asked for; use requester notes for them if given.\n2. If woken early by a note with items still running, do not respawn what runs: decide only what the note asks and keep the wake.\n3. Pool r2-confirm: mean = (sum_a + sum_b)/2048, se from the pooled sumsq, never an average of two se. IA minus HA > 2 se promotes IA (round 2 already trains from it). If it is also >= +0.3, write IA's code sha256 and URL in the notes for the requester; the complete code is `code_zb64` of IA's artifact and goes into the write-up. Check gas on all 2,048: 0 OOG, afterSwap peak <= 245,000. IA's margin is thin (238.5k of 245k): once kit-b or a wide item delivers IAD with zero per-seed difference, IAD is the safer file with the same fees.\n4. Rank valid round-2 candidates by real vs_IA (se about 0.02) with holdout vs_IA (se about 0.007) as the finer yardstick; drop any with a failed gate, an OOG, a peak over 245,000 or a replica-real gap over 0.15. Read which line won: input families that each helped are to be combined on IAD in round 3 (the diet pays for their state); constants if joint or const-a beat the continue copies; drop gating and width if they again add nothing over continuing.\n5. Round 3, about 25-30 items (30 reads a round is what sizes it): two confirm items for the round-2 winner, 1,024 fresh seeds each, against IA and HA; the rest train from the winner, named by its artifact URL (the sha256 of its result file: check it answers 200), with kit-b if it passed all gates, else KIT. Keep 45 minutes of search; an item that also builds something gets less.\n6. A brief that failed the same way in several items is mended before more items are spent on it.\nBUDGET: 39 of 400 items used after this. Episodes 4-9 are rounds, each confirming the last winner; episode 10 is the write-up: best confirmed file with its complete code and sha256, its gain over HA and T on 2,048 seeds, gas, and how far from +3.1 it is. Wake: the seven batches settled, 480 minutes as the backstop.",
 "spawn": [
  {
   "name": "r2-confirm",
   "brief": "One item of round 2: confirm IA against HA on fresh real seeds. No search, no change to code or weights.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`; its `harness.py real` runs the engine and splits retail and arb edge. IA = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64` is its Solidity, sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2. A download's sha256sum is its id; check each decoded sha256.\nDO: goal SETUP; decode the kit and run its tests. Compile IA's code, HA's `code` and T's `code`, each sha256 checked. Per the goal's REAL ENGINE rules run each alone against the 30 bps VanillaStrategy on seeds {{start}}..{{end}} (1,024), the same configs for all three, in chunks of 64 seeds, reading amm_sim_rs.gas_stats() per arm. IA and HA must cover all 1,024; if the clock cannot fit T, run T on the first 512 and say so.\nRESULT (JSON): hashes; seeds; IA_vs_HA, IA_vs_T and HA_vs_T, each paired{n,mean_diff,se,worst5 as [seed,diff]} with sum and sumsq of the per-seed differences, retail_delta and arb_delta; mean edge per arm; gas per arm (afterSwap and afterInitialize peak, calls, oog, reverts); valid (0 OOG, afterSwap peak <= 245,000); diffs_IA_minus_HA, the 1,024 per-seed differences in seed order to 4 decimals; commands; notes. A failed step: blocked={step,error} plus what you measured.",
   "items": [
    {
     "key": "confirm-a",
     "vars": {
      "start": "7200000",
      "end": "7201023"
     }
    },
    {
     "key": "confirm-b",
     "vars": {
      "start": "7204096",
      "end": "7205119"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-continue",
   "brief": "One item of round 2: long training of IA's 19-8-2 head from its saved weights.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64` (sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2), `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then CMA-ES (pycma) over the 178 weights from IA's `restart.weights_vector_after_W0_mult_off` with the CMA_stds of its `restart.settings`: sigma0 {{sigma}}, population {{pop}}, {{markets}} replica markets per generation shared by all proposals, ES seed {{es}}{{extra}}; fitness mean replica edge; at least 45 minutes of search. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Under 200 markets/s do not search: run IA, HA and T on your first 1,024 real seeds instead. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured.",
   "items": [
    {
     "key": "continue-a",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "128",
      "es": "20260301",
      "extra": "",
      "train": "502000000",
      "real": "7208192"
     }
    },
    {
     "key": "continue-b",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "128",
      "es": "20260302",
      "extra": "",
      "train": "503000000",
      "real": "7212288"
     }
    },
    {
     "key": "continue-c",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "128",
      "es": "20260303",
      "extra": "",
      "train": "504000000",
      "real": "7216384"
     }
    },
    {
     "key": "continue-d",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "256",
      "es": "20260304",
      "extra": "",
      "train": "505000000",
      "real": "7220480"
     }
    },
    {
     "key": "continue-e",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "256",
      "es": "20260305",
      "extra": "",
      "train": "506000000",
      "real": "7224576"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-continue-x",
   "brief": "One item of round 2: long training of IA's 19-8-2 head from its saved weights.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64` (sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2), `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then CMA-ES (pycma) over the 178 weights from IA's `restart.weights_vector_after_W0_mult_off` with the CMA_stds of its `restart.settings`: sigma0 {{sigma}}, population {{pop}}, {{markets}} replica markets per generation shared by all proposals, ES seed {{es}}{{extra}}; fitness mean replica edge; at least 45 minutes of search. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Under 200 markets/s do not search: run IA, HA and T on your first 1,024 real seeds instead. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured.",
   "items": [
    {
     "key": "continue-f",
     "vars": {
      "sigma": "0.5",
      "pop": "16",
      "markets": "128",
      "es": "20260306",
      "extra": "",
      "train": "507000000",
      "real": "7228672"
     }
    },
    {
     "key": "continue-g",
     "vars": {
      "sigma": "0.5",
      "pop": "32",
      "markets": "128",
      "es": "20260307",
      "extra": "",
      "train": "508000000",
      "real": "7232768"
     }
    },
    {
     "key": "continue-h",
     "vars": {
      "sigma": "0.5",
      "pop": "32",
      "markets": "128",
      "es": "20260308",
      "extra": ", CMA_diagonal=True (separable)",
      "train": "509000000",
      "real": "7236864"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-gated",
   "brief": "One item of round 2: gated-a's gating on IA's 19-input head.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64`, `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nGATED = https://api.imd.fun/artifacts/fda159013a534fad3c3cca8ca4ab74c64a5520fda828f8d5f66598b76c43afc8: `code`, `port_zb64`, `params.net_first` and `net_later` (two 13-8-2 heads, one used when firstInStep).\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then two 19-8-2 nets chosen by firstInStep, 380 weights. Score two starts on the monitor and train from the better: both nets = IA (fees equal IA's: check); or GATED's nets for the 13 old inputs, biases and outputs, plus IA's six new input columns. First probe gas on 16 real markets: afterSwap peak <= 245,000. CMA-ES, population 16, {{opt}}, ES seed {{es}}, at least 40 minutes. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured.",
   "items": [
    {
     "key": "gated-a",
     "vars": {
      "opt": "full covariance",
      "es": "20260311",
      "train": "510000000",
      "real": "7240960"
     }
    },
    {
     "key": "gated-b",
     "vars": {
      "opt": "CMA_diagonal=True",
      "es": "20260312",
      "train": "511000000",
      "real": "7245056"
     }
    },
    {
     "key": "gated-c",
     "vars": {
      "opt": "full covariance",
      "es": "20260313",
      "train": "512000000",
      "real": "7249152"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-diet-wide",
   "brief": "One item of round 2: IA on gas-a's diet, then a wider head.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64`, `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDIET = `diet_code_zb64` of https://api.imd.fun/artifacts/19160955248c44ac54623ad40112d2b6c3b1c6f6745d9101a5e9b278f512192a, sha256 269c03a4f7758b2ec15ee9f4ae74d64c59d0aacfa00b6d40c9dde87d4aec1e31: HA's fees on half the storage words (packing in its `notes`).\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then IAD.sol = IA's fees exactly on DIET's storage; regression only: IAD vs IA code on real seeds 0..99, every seed's edge identical, gas before and after. Widen to {{units}} units in functions of at most 8 (more does not compile): IA's 8 copied, new W1 rows normal(0, 0.1), new b1 and W2 0, so fees start at IA's (check). CMA-ES, population 16, ES seed {{es}}, at least 35 minutes. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured. Add iad_code_zb64, iad_sha256, regression.",
   "items": [
    {
     "key": "wide-a",
     "vars": {
      "units": "12",
      "es": "20260321",
      "train": "513000000",
      "real": "7253248"
     }
    },
    {
     "key": "wide-b",
     "vars": {
      "units": "16",
      "es": "20260322",
      "train": "514000000",
      "real": "7257344"
     }
    },
    {
     "key": "wide-c",
     "vars": {
      "units": "16",
      "es": "20260323",
      "train": "515000000",
      "real": "7261440"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-joint",
   "brief": "One item of round 2: IA's head and T's constants searched together.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64` (sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2), `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then CMA-ES, population 16, ES seed {{es}}, over {{what}}. Constants are T's declared constants (the RS2 port's `th_convention` says which TH entries are real) and the three anchor values: search each in log scale, sigma 0.05, integers and caps fixed, from T's values, so fees start at IA's (check). The frozen Solidity carries the new constants. At least 40 minutes. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Under 200 markets/s do not search: run IA, HA and T on your first 1,024 real seeds instead. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured. Add constants{name: [T value, frozen value]}.",
   "items": [
    {
     "key": "joint-a",
     "vars": {
      "what": "IA's 178 weights (its `restart` values and CMA_stds) and the constants",
      "es": "20260331",
      "train": "516000000",
      "real": "7265536"
     }
    },
    {
     "key": "joint-b",
     "vars": {
      "what": "IA's 178 weights (its `restart` values and CMA_stds) and the constants",
      "es": "20260332",
      "train": "517000000",
      "real": "7269632"
     }
    },
    {
     "key": "const-a",
     "vars": {
      "what": "the constants only, IA's 178 weights fixed",
      "es": "20260333",
      "train": "518000000",
      "real": "7273728"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-kit",
   "brief": "One item of round 2: the round-3 kit: IA on gas-a's diet and a harness general in inputs, units and gating. No search.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64` (sha256 956566e95f46dc1ed5980fae5e550de7b9da10f9b3ad8eed62f265682cfcecf2), `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDIET = `diet_code_zb64` of https://api.imd.fun/artifacts/19160955248c44ac54623ad40112d2b6c3b1c6f6745d9101a5e9b278f512192a, sha256 269c03a4f7758b2ec15ee9f4ae74d64c59d0aacfa00b6d40c9dde87d4aec1e31: HA's fees on half the storage words (packing in its `notes`).\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Write IAD.sol = IA's fees exactly on DIET's storage; regression only: IAD vs IA code on real seeds 0..99, every seed's edge identical, gas before and after. Generalise harness.py and the port: n inputs, h units (functions of at most 8 units, more does not compile), optional two nets chosen by firstInStep, Solidity and port from one weights file; unit tests; Gate C for IAD and for a 19-16-2 head with IA's units copied and new output weights 0. Real engine per the goal: IAD and IA on seeds {{real}}..+511; every seed's difference must be 0.\nRESULT, JSON under 64,000 bytes (leave out HA.sol and T.sol): each file as <name>_zb64 with <name>_sha256 (sim, port, harness, diff_test, tests, IAD.sol) and decode_instructions; api and commands for train, freeze, holdout and real; hashes; speed; gates A B C with numbers; regression{n,identical,gas}; real IAD_vs_IA paired{n,mean_diff,se,worst5}; gas per arm (afterSwap and afterInitialize peak, oog); valid; seeds; notes. On failure: blocked={step,error} and what you measured.",
   "items": [
    {
     "key": "kit-b",
     "vars": {
      "real": "7277824"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  },
  {
   "name": "r2-inputs2",
   "brief": "One item of round 2: more inputs for IA's head.\nT = `code` of https://api.imd.fun/artifacts/6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, sha256 ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Replica = `replica_source` of https://api.imd.fun/artifacts/e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, sha256 1e4c44b4bffbdeed65872ee15d46dbde209bf5aa11014329d13d100507b4040c. RS2 port = `port_source` of https://api.imd.fun/artifacts/d845a4b94eab87f23956fd1939c0135d955df212d1f3037f2a761c178cef7a0e, sha256 9eac3553357528b06eeae3ed8d18283d83401e1968145ceba16be356a147e271 (same strat_init/strat_after API as the replica's STRATEGY block; its `differential_test_source` compares port and EVM fees; `th_convention` says which TH entries are real constants).\nKIT = https://api.imd.fun/artifacts/0d8194e9f6e0017dc4e515cdb04c048efc292935bb1d18e3336091fe81154786: decode per its `decode_instructions`, run its tests and gate commands, then use its `harness.py`; build no port from source. IA, the base = https://api.imd.fun/artifacts/df0ddfdf122c88641513dd179980fce475f42a912a184f812d213f27db7c14df: `code_zb64`, `port_zb64`, `params` (19-8-2 head, scaling), `restart` (178 weights, ES settings). A download's sha256sum is its id; check each decoded sha256. The harness assumes HA's 130 weights: adapt it to IA's port.\nDO: goal SETUP, kit tests, replica speed. Gate A: IA port vs IA code. Gate B: replica IA minus T on seeds 7116384..7116895 within 0.15 of real +1.513. Then add this input family, from TradeInfo and the strategy's own state only (no fair price, nothing from the future): {{family}}. Scale as IA did (`params.new_input_scaling`); new weights 0, so fees start at IA's (check). Keep new state in spare bits of words IA already writes. Before training probe gas on 16 real markets with nonzero new weights; drop inputs until the afterSwap peak is under 243,000. CMA-ES from IA's `restart` weights and CMA_stds, population 16, ES seed {{es}}, at least 35 minutes. Train seeds from {{train}}; monitor 30000000..30002047 every 10 generations; end the search 30 min before your clock does. Freeze the best monitor weights, emit Solidity, Gate C. Once, after freezing: replica holdout 40000000..40008191. Real engine per the goal: candidate and IA on seeds {{real}}..+511.\nRESULT, JSON under 64,000 bytes: hashes; speed; gates A B C; search minutes, generations, settings; curve (<= 30 rows); holdout vs_T, vs_HA, vs_IA {n,mean,se}; real vs_IA paired{n,mean_diff,se,worst5,sum,sumsq}, retail and arb deltas; gas per arm (afterSwap and afterInitialize peak, oog); valid; code_zb64, code_sha256, port_zb64, port_sha256; params; restart (best weights, sigma, settings); seeds; notes. On failure: blocked={step,error} and what you measured. Add new_input_formulas, dropped_inputs.",
   "items": [
    {
     "key": "inputs-clock",
     "vars": {
      "family": "clock: timestamp/10000; anchor sample count/674; steps since the previous callback, capped 32; trades in the previous step; was the previous callback arb-like",
      "es": "20260341",
      "train": "520000000",
      "real": "7281920"
     }
    },
    {
     "key": "inputs-path",
     "vars": {
      "family": "price path: log(spot/initial spot); spot/pHat-1; spot/fastHat-1; last first-in-step move over sigmaHat; sign product of the last two first-in-step moves",
      "es": "20260342",
      "train": "521000000",
      "real": "7286016"
     }
    },
    {
     "key": "inputs-flow",
     "vars": {
      "family": "flow memory: signed retail flow EMAs at decays 0.5 and 0.95; raw size/sizeHat; the previous trade's size and side; run length of same-side trades, capped 8",
      "es": "20260343",
      "train": "522000000",
      "real": "7290112"
     }
    },
    {
     "key": "inputs-fees",
     "vars": {
      "family": "fee state: T's bid and ask fee for this callback before the head's correction; their difference; the head's previous bid and ask outputs",
      "es": "20260344",
      "train": "523000000",
      "real": "7294208"
     }
    },
    {
     "key": "inputs-cross",
     "vars": {
      "family": "products of IA's scaled inputs: arb_probability*raw_size, first_in_step*stale deviation, sigmaHat*toxEma, direction*signed_trade_ratio, first_in_step*silent",
      "es": "20260345",
      "train": "524000000",
      "real": "7298304"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 25,
    "brief": "One table, one row per item: key, valid, replica holdout gain over IA and its se, real paired mean_diff and se over IA, afterSwap peak, OOG calls, search minutes, code_sha256. Copy numbers as given; name the best valid item."
   }
  }
 ],
 "read": [
  "e2-ha-round1/continue-b",
  "e2-ha-round1/joint-a",
  "e2-ha-round1/joint-b",
  "e2-ha-round1/gas-b",
  "e2-ha-round1/inputs-b",
  "r2-confirm/confirm-a",
  "r2-confirm/confirm-b",
  "r2-continue/continue-a",
  "r2-continue/continue-b",
  "r2-continue/continue-c",
  "r2-continue/continue-d",
  "r2-continue/continue-e",
  "r2-continue-x/continue-f",
  "r2-continue-x/continue-g",
  "r2-continue-x/continue-h",
  "r2-gated/gated-a",
  "r2-gated/gated-b",
  "r2-gated/gated-c",
  "r2-diet-wide/wide-a",
  "r2-diet-wide/wide-b",
  "r2-diet-wide/wide-c",
  "r2-joint/joint-a",
  "r2-joint/joint-b",
  "r2-joint/const-a",
  "r2-kit/kit-b",
  "r2-inputs2/inputs-clock",
  "r2-inputs2/inputs-path",
  "r2-inputs2/inputs-flow",
  "r2-inputs2/inputs-fees",
  "r2-inputs2/inputs-cross"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "r2-confirm",
   "r2-continue",
   "r2-continue-x",
   "r2-gated",
   "r2-diet-wide",
   "r2-joint",
   "r2-kit",
   "r2-inputs2"
  ],
  "afterMinutes": 480
 },
 "finish": false
}
