{
 "notes": "Episode 10/10, the last. Entry: 124/400 items used, all 46 batches settled, no refusals, 30 results read; every handed `code` hash recomputed and matches. DECISION: finish=true. The goal (top 10, about +4.6 board points over RS2) is NOT met; the write-up delivers the best confirmed file and the gap. Five small last batches (15 items, 139 used if admitted) confirm what this episode's reads turned up. The requester reads results as they land and submits under the standing rule; the write-up must not count them unless their results are in.\n\nREFERENCES (https://api.imd.fun/artifacts/<id>; a result's id is the sha256 of its result file): STACK id c33720874aa1285e9dc766540b8a90410118a8e8b840d949ea0dcc211bdb27c1, code sha 2eaafc7960e520b8a7fd322ec8afaff8fa677c730228a961efb509cc30b25719. RS2 (on the board) id 19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5, code sha f24b6ca198b744c380842c3a17964a6dc21f311bb04984b26733afa3fee8eaf2. Harness = harness_source of 26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89. Every confirmation below: frozen first, each arm alone vs Vanilla, CH calibration 525.5258821780834 exact, 0 OOG, 0 halts.\n\nBEST CONFIRMED FILE: T, toxicity run-anchor (a running mean of the toxicity signal in slot 16 beside RS2's EMA), from e07-run-anchor/tox-a id 6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe, code sha ebd9de9bf6af6e55d5e308fd15dbb88edec11fd684891d02a30aec185acd19b3. Fresh 5116000..5117999: +0.3099 se 0.0177 vs RS2 (e09-confirm-tox/a, id f0f9c213c29909def060f273358f517337e73bf3ee082deacd1cba25121dd3a8); 5118000..5119999: +0.2325 se 0.0194 (b, id cedcd5df5201048f2b679cddc6c44379f88db484e9c4c7ee6e3a72be7d1787e6). Pooled n 4,000 from sum_d, sum_d2: +0.2712 se 0.0132 vs RS2 (retail -0.727, arb +0.999); +0.5903 se 0.0143 vs STACK. afterSwap max 226,178, init 243,115. Worst seed -8.39. The two blocks differ by 0.077 (2.9 se of the difference): report both. T passes the requester's bar (>= +0.1 over RS2 on 4,000 fresh seeds): RECOMMEND SUBMITTING T. 26th stood +0.22 above RS2; earlier local gains reached the board at 1.0 and 1.27 of local; no rank is claimed.\nALSO CONFIRMED: S, sigma anchor (source id 9045cab1f8a51e8f1c6a4c2c93daa2b2f0d9bd274a68de064a1167c079c2a8b4, code sha 014ad7bd0e6f...): 5108000 +0.1166 se 0.0131 (id 734526bd5957...), 5110000 +0.1143 se 0.0126 (id da78ef2645aa...); pooled +0.1155 se 0.0091 vs RS2 (retail +0.302, arb -0.186), +0.4366 se 0.0118 vs STACK; gas 205,159. A, activity anchor (code sha 0c3836cd5bb7..., source = the harness artifact): 5112000 +0.0758 se 0.0077 (id d57947fc0468...), 5114000 +0.0947 se 0.0076 (id 41bd9f034cc9...); pooled +0.0853 se 0.0054 (retail -0.511, arb +0.596), +0.4082 vs STACK: under the bar. RS2 minus STACK on 6,000 of these seeds: +0.3233 se 0.0081.\nUNION U = T+A+S (code sha 64a233b9f2f7..., e09-combine-anchors/a id b15a2cd4127f...): only 780 seeds of 5120000 ran (slow machine): +0.199 se 0.037 vs RS2, gas 228,697; item b ran no fresh seed (5122000 untouched, still quarantined). Not better than T alone: not promoted.\n\nNEW AND UNCONFIRMED (512 held-out tuning seeds vs RS2, frozen first, 0 OOG):\nK = e08-arb-skew/a, id 82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c, code sha 9f9c5b4524cc8023de82cc55be34ab64af2c5c2001fa4dfccc0c1a0f00fe401e (a=.25, k=4, gain=32: direction push capped at 4x the cleaned size and weighted by arb probability, DIR coefficients x32): +0.509 se 0.027, retail +0.513, arb -0.005, gas 202,817. arb-skew/b (id d5e1812f8372..., a=0, k=8, gain=64): +0.305 se 0.034 (retail -1.89, arb +2.19).\nV = e08-vanilla-quote/b, id 35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33, code sha f61c0f28d8a55c3030e811777cf451549a075ddf23e1de453edd10309d4a1452 (virtual Vanilla reserves steer the attracting fee): +0.223 se 0.018 (retail +0.179, arb +0.044); +0.551 se 0.014 vs STACK on fresh 5820000..5821999 (no RS2 arm there); gas 231,403, tight.\nsticky-dev: b +0.126 se 0.030, nearly all from an added cubic toxicity term (cubic alone +0.108 se 0.029); a +0.28 se 0.06 on 128 seeds. The peak-hold itself gives nothing.\ndual-anchor: a -0.272 se 0.018, b +0.011 se 0.005. RETIRED.\nLEARNED FEE HEAD (the requester's main bet), trained at EVM speed: a -40.5 se 0.98 and c -19.0 se 0.69 (n 512; distilled heads replacing the mapping, 3-4 CMA generations), b -0.87 se 0.055 (n 128, 8 member evaluations). All lose: at about 1 s a seed an item affords a few dozen evaluations. Head gas: about 200 gas a multiply-add over a 193-199k skeleton; 10-12-2 fits under 235k (227k), 12-16-2 only with Q10 inputs (about 210k).\nASSETS for a successor: five market replicas, all validated (CH mean within 0.4 se of the real 525.53, flat 30 bps matches, three variant deltas within 1.7 se of real); fastest e08-replica/d id e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea, 3,721 markets/s against 1-5/s real. RS2 njit ports with fee error under 4e-9 bps against the EVM: e08-rs2-port/a id 1b8e8ca5d0da1f0071a9ae18505d6cbff902b88b2fbc34e523afbd212a9a26ce (102 constants in TH), d id d845a4b94eab....\n\nSPAWNED NOW (three machines each, 2,000 fresh seeds a machine; results at artifacts/goal/batches/<batch>/items/<key>):\ne10-confirm-skew a/b/c: exact K on 5124000, 5126000, 5128000. e10-confirm-vq a/b/c: exact V on 5130000, 5132000, 5134000. Both: candidate, RS2, STACK.\ne10-skew-tox a/b/c: KT = K's generator applied to T's code, expected sha 072edba3d6b13c0c88560fd58b3ab31a0bf72a7cc095aab8406e03cad284be11, on 5136000, 5138000, 5140000. e10-skew-vq a/b/c: KV = K's generator on V's code, expected sha b9cd1840a2d988399f72b3d78c6a11c26b138402fce90f21914f0b6afb6aa7ee, on 5142000, 5144000, 5146000. Both: candidate and RS2 only (add RS2 minus STACK +0.323 for a STACK figure, and say it is not paired). Both hashes were computed here from K's four text replacements (undoing them in K's code gives RS2's hash exactly). Neither file has been compiled or run yet: each item preflights 32 tuning seeds for gas.\ne10-replica-pilot a/b/c: port a spliced into replica d, transfer check on two RS2 variants, a 20-minute CMA over RS2's 39 named constants in the replica, write-back, 512 held-out real seeds vs RS2. Its file is a tuning result, not a confirmation.\nHOW TO USE THEM: pool one hash only, every block including partial and losing ones, from sum_d and sum_d2. A file at >= +0.1 over RS2, > 2 se, on >= 4,000 fresh seeds with 0 OOG goes to the requester; if K, KT or KV beats T, the best of them is the file to submit. Gains need not add (U did not). If none is in at write-up time, say so and deliver T.\n\nHONEST STATUS: board, the requester's figures, not refetched: STACK 519.71 (29th), V10 519.8458 (28th), RS2 520.0536 (27th); 10th 524.66. Local over STACK on fresh seeds: RS2 +0.32, T +0.59. Ten episodes gave confirmed steps of +0.09 to +0.27 each (V10, RS1, RS2, then S or T); nothing near +4.6. After T the shortfall to 10th is about 4.3 board points if T transfers one for one. What lost: from-scratch rules, quote-moving overlays, public forks (-1.8 to -142 vs RS2, none used), learned heads at EVM speed.\nA NEXT GOAL should: (1) finish confirming K, KT, KV if not landed; (2) train a learned head or all constants jointly in the replica, thousands of evaluations an item, checked in the real simulator; (3) stack the cubic toxicity term.\nLICENCE: no third-party code in T, S, A, K, V, KT, KV: each is a generator applied to RS2, the network's own file (V2/CH/YQ ancestry, credited by the requester). K, V and sticky-dev take ideas from the organiser's prose (benedict.dev/optimization-arena-learnings), not code.\nLEDGER: confirmation seeds [5000000,5148000) spent or reserved; workers also used 5800000..5801999, 5820000..5821999, 6840000..6841999: quarantine [5800000,5900000) and [6840000,6842000). NEXT FREE 5148000. Tuning tails used now: 806100..809911, 816100..819911, 826100..829911 (pilot); 836100, 846100, 856100, 866100, 876100, 886100 (+31, preflights).",
 "spawn": [
  {
   "name": "e10-confirm-skew",
   "brief": "Confirm ONE frozen strategy file, {{label}}, on fresh seeds {{first}}..{{last}} (2,000). No tuning, no source edit, no rerun, no other seed >= 5000000.\nClone github.com/benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 in your workspace (never /tmp). Save the script below as scratch/setup.sh, run `sh scratch/setup.sh` once from the checkout root, prefix later commands with `. scratch/env.sh && `. On failure return blocked={step,error}, n 0.\nset -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx\necho \"export TMPDIR=$R/tmp XDG_CACHE_HOME=$R/xc UV_CACHE_DIR=$R/uvc UV_PYTHON_INSTALL_DIR=$R/uvpy SOLCX_BINARY_PATH=$R/solcx VIRTUAL_ENV=$PWD/.venv PATH=$PWD/.venv/bin:$R/bin:\\$PATH\" >$R/env.sh;. $R/env.sh\ncommand -v uv >/dev/null||{ curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz|tar --no-same-owner -xz -C $R/tmp;cp $R/tmp/uv-*/uv $R/bin/;}\nW=amm_sim_rs-0.1.0.post1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl;curl -LsSf https://github.com/gtmcknight/amm-sim/releases/download/sim-6b6921f8/$W -o $R/$W\necho \"aedb68280aca34c110968f00148387c95885207913fb2cf19a1ab4c5cfd6887a  $R/$W\"|sha256sum -c -\nuv venv --python 3.12 .venv;uv pip install $R/$W numpy py-solc-x==2.1.0 pyrevm==0.3.7;uv pip install --no-deps -e .\npython -c \"import solcx;solcx.install_solc('0.8.24')\"\namm-match validate contracts/src/StarterStrategy.sol\nFetch JSON artifacts https://api.imd.fun/artifacts/<id>: C={{cid}} (candidate = `code`, sha256 {{csha}}), R=19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5 (RS2 = `code`, sha256 f24b6ca198b7...), K=c33720874aa1285e9dc766540b8a90410118a8e8b840d949ea0dcc211bdb27c1 (STACK = `code`, sha256 2eaafc7960e5...), H=26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89 (`harness_source` = scratch/harness.py, unchanged). A code hash that differs is blocked.\nCalibrate: CH (https://raw.githubusercontent.com/ChengHua926/amm-challenge/d34a5199c59a4c44d5336a25f1436b4ae1f21104/contracts/src/Strategy.sol) on seeds 0..999 must give mean edge 525.5258821780834, else blocked.\nRun C, R and K on the fresh seeds, each alone against VanillaStrategy (amm_sim_rs.run_batch(X, Vanilla, configs, 8)), in ascending 20-seed chunks, all three arms on a chunk before the next, gas_stats_reset() before and gas_stats() after each arm, every seed once. After 40 minutes of simulation stop at a chunk boundary and report the seeds done; never skip or pick seeds.\nReturn JSON: code (C), sha256, blocked, valid (false on any OOG or halt of C), seeds{first,last,n}, paired = C minus R {n, mean_diff, se, worst 5 seeds, sum_d, sum_d2}, retail_edge_delta and arb_edge_delta {mean, se} (harness decomposition), vs_stack (same, C minus K), mean edge per arm, gas per arm {max_ok, init_max_ok, oog, other_halts}. Local measurements: claim no board rank.",
   "items": [
    {
     "key": "a",
     "vars": {
      "label": "arb-skew K",
      "cid": "82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c",
      "csha": "9f9c5b4524cc8023de82cc55be34ab64af2c5c2001fa4dfccc0c1a0f00fe401e",
      "first": "5124000",
      "last": "5125999"
     }
    },
    {
     "key": "b",
     "vars": {
      "label": "arb-skew K",
      "cid": "82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c",
      "csha": "9f9c5b4524cc8023de82cc55be34ab64af2c5c2001fa4dfccc0c1a0f00fe401e",
      "first": "5126000",
      "last": "5127999"
     }
    },
    {
     "key": "c",
     "vars": {
      "label": "arb-skew K",
      "cid": "82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c",
      "csha": "9f9c5b4524cc8023de82cc55be34ab64af2c5c2001fa4dfccc0c1a0f00fe401e",
      "first": "5128000",
      "last": "5129999"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 5,
    "brief": "One table, one row per item: sha256, seeds, n, paired mean_diff and se vs RS2 and vs STACK, retail and arb deltas, gas, valid. Pool only rows with the same sha256, from sum_d and sum_d2."
   }
  },
  {
   "name": "e10-confirm-vq",
   "brief": "Confirm ONE frozen strategy file, {{label}}, on fresh seeds {{first}}..{{last}} (2,000). No tuning, no source edit, no rerun, no other seed >= 5000000.\nClone github.com/benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 in your workspace (never /tmp). Save the script below as scratch/setup.sh, run `sh scratch/setup.sh` once from the checkout root, prefix later commands with `. scratch/env.sh && `. On failure return blocked={step,error}, n 0.\nset -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx\necho \"export TMPDIR=$R/tmp XDG_CACHE_HOME=$R/xc UV_CACHE_DIR=$R/uvc UV_PYTHON_INSTALL_DIR=$R/uvpy SOLCX_BINARY_PATH=$R/solcx VIRTUAL_ENV=$PWD/.venv PATH=$PWD/.venv/bin:$R/bin:\\$PATH\" >$R/env.sh;. $R/env.sh\ncommand -v uv >/dev/null||{ curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz|tar --no-same-owner -xz -C $R/tmp;cp $R/tmp/uv-*/uv $R/bin/;}\nW=amm_sim_rs-0.1.0.post1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl;curl -LsSf https://github.com/gtmcknight/amm-sim/releases/download/sim-6b6921f8/$W -o $R/$W\necho \"aedb68280aca34c110968f00148387c95885207913fb2cf19a1ab4c5cfd6887a  $R/$W\"|sha256sum -c -\nuv venv --python 3.12 .venv;uv pip install $R/$W numpy py-solc-x==2.1.0 pyrevm==0.3.7;uv pip install --no-deps -e .\npython -c \"import solcx;solcx.install_solc('0.8.24')\"\namm-match validate contracts/src/StarterStrategy.sol\nFetch JSON artifacts https://api.imd.fun/artifacts/<id>: C={{cid}} (candidate = `code`, sha256 {{csha}}), R=19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5 (RS2 = `code`, sha256 f24b6ca198b7...), K=c33720874aa1285e9dc766540b8a90410118a8e8b840d949ea0dcc211bdb27c1 (STACK = `code`, sha256 2eaafc7960e5...), H=26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89 (`harness_source` = scratch/harness.py, unchanged). A code hash that differs is blocked.\nCalibrate: CH (https://raw.githubusercontent.com/ChengHua926/amm-challenge/d34a5199c59a4c44d5336a25f1436b4ae1f21104/contracts/src/Strategy.sol) on seeds 0..999 must give mean edge 525.5258821780834, else blocked.\nRun C, R and K on the fresh seeds, each alone against VanillaStrategy (amm_sim_rs.run_batch(X, Vanilla, configs, 8)), in ascending 20-seed chunks, all three arms on a chunk before the next, gas_stats_reset() before and gas_stats() after each arm, every seed once. After 40 minutes of simulation stop at a chunk boundary and report the seeds done; never skip or pick seeds.\nReturn JSON: code (C), sha256, blocked, valid (false on any OOG or halt of C), seeds{first,last,n}, paired = C minus R {n, mean_diff, se, worst 5 seeds, sum_d, sum_d2}, retail_edge_delta and arb_edge_delta {mean, se} (harness decomposition), vs_stack (same, C minus K), mean edge per arm, gas per arm {max_ok, init_max_ok, oog, other_halts}. Local measurements: claim no board rank.",
   "items": [
    {
     "key": "a",
     "vars": {
      "label": "vanilla-quote V",
      "cid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "f61c0f28d8a55c3030e811777cf451549a075ddf23e1de453edd10309d4a1452",
      "first": "5130000",
      "last": "5131999"
     }
    },
    {
     "key": "b",
     "vars": {
      "label": "vanilla-quote V",
      "cid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "f61c0f28d8a55c3030e811777cf451549a075ddf23e1de453edd10309d4a1452",
      "first": "5132000",
      "last": "5133999"
     }
    },
    {
     "key": "c",
     "vars": {
      "label": "vanilla-quote V",
      "cid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "f61c0f28d8a55c3030e811777cf451549a075ddf23e1de453edd10309d4a1452",
      "first": "5134000",
      "last": "5135999"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 5,
    "brief": "One table, one row per item: sha256, seeds, n, paired mean_diff and se vs RS2 and vs STACK, retail and arb deltas, gas, valid. Pool only rows with the same sha256, from sum_d and sum_d2."
   }
  },
  {
   "name": "e10-skew-tox",
   "brief": "Build and confirm ONE stacked file, {{label}}, on fresh seeds {{first}}..{{last}} (2,000). No tuning, no other edit, no rerun, no other seed >= 5000000.\nClone github.com/benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 in your workspace (never /tmp). Save the script below as scratch/setup.sh, run `sh scratch/setup.sh` once from the checkout root, prefix later commands with `. scratch/env.sh && `. On failure return blocked={step,error}, n 0.\nset -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx\necho \"export TMPDIR=$R/tmp XDG_CACHE_HOME=$R/xc UV_CACHE_DIR=$R/uvc UV_PYTHON_INSTALL_DIR=$R/uvpy SOLCX_BINARY_PATH=$R/solcx VIRTUAL_ENV=$PWD/.venv PATH=$PWD/.venv/bin:$R/bin:\\$PATH\" >$R/env.sh;. $R/env.sh\ncommand -v uv >/dev/null||{ curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz|tar --no-same-owner -xz -C $R/tmp;cp $R/tmp/uv-*/uv $R/bin/;}\nW=amm_sim_rs-0.1.0.post1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl;curl -LsSf https://github.com/gtmcknight/amm-sim/releases/download/sim-6b6921f8/$W -o $R/$W\necho \"aedb68280aca34c110968f00148387c95885207913fb2cf19a1ab4c5cfd6887a  $R/$W\"|sha256sum -c -\nuv venv --python 3.12 .venv;uv pip install $R/$W numpy py-solc-x==2.1.0 pyrevm==0.3.7;uv pip install --no-deps -e .\npython -c \"import solcx;solcx.install_solc('0.8.24')\"\namm-match validate contracts/src/StarterStrategy.sol\nFetch JSON artifacts https://api.imd.fun/artifacts/<id>: G=82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c, B={{bid}}, R=19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5 (RS2 = `code`), H=26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89 (`harness_source` = scratch/harness.py, unchanged). Candidate C = generate(B.code, a=0.25, k=4, gain=32) from G.generator_source; its sha256 must be {{csha}}, else blocked with your hash.\nPreflight on seeds {{pre}}..{{pre2}}: C needs 0 OOG, 0 halts, afterSwap max gas under 235000; else return valid=false with the gas and run no fresh seed.\nCalibrate: CH (the Solidity file at H.calibration.source) on seeds 0..999 must give mean edge 525.5258821780834, else blocked.\nRun C and R on the fresh seeds, each alone against VanillaStrategy (amm_sim_rs.run_batch(X, Vanilla, configs, 8)), in ascending 20-seed chunks, both arms on a chunk before the next, gas_stats_reset() before and gas_stats() after each arm, every seed once. After 40 minutes of simulation stop at a chunk boundary and report the seeds done; never skip or pick seeds.\nReturn JSON: code (C), sha256, blocked, valid (false on any OOG or halt), seeds{first,last,n}, paired = C minus R {n, mean_diff, se, worst 5 seeds, sum_d, sum_d2}, retail_edge_delta and arb_edge_delta {mean, se} (harness decomposition), gas per arm {max_ok, init_max_ok, oog, other_halts}. Local measurements: claim no board rank.",
   "items": [
    {
     "key": "a",
     "vars": {
      "label": "KT",
      "bid": "6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe",
      "csha": "072edba3d6b13c0c88560fd58b3ab31a0bf72a7cc095aab8406e03cad284be11",
      "first": "5136000",
      "last": "5137999",
      "pre": "836100",
      "pre2": "836131"
     }
    },
    {
     "key": "b",
     "vars": {
      "label": "KT",
      "bid": "6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe",
      "csha": "072edba3d6b13c0c88560fd58b3ab31a0bf72a7cc095aab8406e03cad284be11",
      "first": "5138000",
      "last": "5139999",
      "pre": "846100",
      "pre2": "846131"
     }
    },
    {
     "key": "c",
     "vars": {
      "label": "KT",
      "bid": "6ac5e013b7b1fb4c5e7bdcdfec0aba28b16824e18ccf39500f258533879faffe",
      "csha": "072edba3d6b13c0c88560fd58b3ab31a0bf72a7cc095aab8406e03cad284be11",
      "first": "5140000",
      "last": "5141999",
      "pre": "856100",
      "pre2": "856131"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 5,
    "brief": "One table, one row per item: sha256, seeds, n, paired mean_diff and se vs RS2, retail and arb deltas, gas, valid. Pool only rows with the same sha256, from sum_d and sum_d2."
   }
  },
  {
   "name": "e10-skew-vq",
   "brief": "Build and confirm ONE stacked file, {{label}}, on fresh seeds {{first}}..{{last}} (2,000). No tuning, no other edit, no rerun, no other seed >= 5000000.\nClone github.com/benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 in your workspace (never /tmp). Save the script below as scratch/setup.sh, run `sh scratch/setup.sh` once from the checkout root, prefix later commands with `. scratch/env.sh && `. On failure return blocked={step,error}, n 0.\nset -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx\necho \"export TMPDIR=$R/tmp XDG_CACHE_HOME=$R/xc UV_CACHE_DIR=$R/uvc UV_PYTHON_INSTALL_DIR=$R/uvpy SOLCX_BINARY_PATH=$R/solcx VIRTUAL_ENV=$PWD/.venv PATH=$PWD/.venv/bin:$R/bin:\\$PATH\" >$R/env.sh;. $R/env.sh\ncommand -v uv >/dev/null||{ curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz|tar --no-same-owner -xz -C $R/tmp;cp $R/tmp/uv-*/uv $R/bin/;}\nW=amm_sim_rs-0.1.0.post1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl;curl -LsSf https://github.com/gtmcknight/amm-sim/releases/download/sim-6b6921f8/$W -o $R/$W\necho \"aedb68280aca34c110968f00148387c95885207913fb2cf19a1ab4c5cfd6887a  $R/$W\"|sha256sum -c -\nuv venv --python 3.12 .venv;uv pip install $R/$W numpy py-solc-x==2.1.0 pyrevm==0.3.7;uv pip install --no-deps -e .\npython -c \"import solcx;solcx.install_solc('0.8.24')\"\namm-match validate contracts/src/StarterStrategy.sol\nFetch JSON artifacts https://api.imd.fun/artifacts/<id>: G=82aa583bf73126cb5c1a4e934c3ee4021848b8b15938f7f9dfbbf129ea694c5c, B={{bid}}, R=19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5 (RS2 = `code`), H=26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89 (`harness_source` = scratch/harness.py, unchanged). Candidate C = generate(B.code, a=0.25, k=4, gain=32) from G.generator_source; its sha256 must be {{csha}}, else blocked with your hash.\nPreflight on seeds {{pre}}..{{pre2}}: C needs 0 OOG, 0 halts, afterSwap max gas under 235000; else return valid=false with the gas and run no fresh seed.\nCalibrate: CH (the Solidity file at H.calibration.source) on seeds 0..999 must give mean edge 525.5258821780834, else blocked.\nRun C and R on the fresh seeds, each alone against VanillaStrategy (amm_sim_rs.run_batch(X, Vanilla, configs, 8)), in ascending 20-seed chunks, both arms on a chunk before the next, gas_stats_reset() before and gas_stats() after each arm, every seed once. After 40 minutes of simulation stop at a chunk boundary and report the seeds done; never skip or pick seeds.\nReturn JSON: code (C), sha256, blocked, valid (false on any OOG or halt), seeds{first,last,n}, paired = C minus R {n, mean_diff, se, worst 5 seeds, sum_d, sum_d2}, retail_edge_delta and arb_edge_delta {mean, se} (harness decomposition), gas per arm {max_ok, init_max_ok, oog, other_halts}. Local measurements: claim no board rank.",
   "items": [
    {
     "key": "a",
     "vars": {
      "label": "KV",
      "bid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "b9cd1840a2d988399f72b3d78c6a11c26b138402fce90f21914f0b6afb6aa7ee",
      "first": "5142000",
      "last": "5143999",
      "pre": "866100",
      "pre2": "866131"
     }
    },
    {
     "key": "b",
     "vars": {
      "label": "KV",
      "bid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "b9cd1840a2d988399f72b3d78c6a11c26b138402fce90f21914f0b6afb6aa7ee",
      "first": "5144000",
      "last": "5145999",
      "pre": "876100",
      "pre2": "876131"
     }
    },
    {
     "key": "c",
     "vars": {
      "label": "KV",
      "bid": "35940e07dcccd0ae649abd91bdc5e759537329f5e6992f149c271f8586507e33",
      "csha": "b9cd1840a2d988399f72b3d78c6a11c26b138402fce90f21914f0b6afb6aa7ee",
      "first": "5146000",
      "last": "5147999",
      "pre": "886100",
      "pre2": "886131"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 5,
    "brief": "One table, one row per item: sha256, seeds, n, paired mean_diff and se vs RS2, retail and arb deltas, gas, valid. Pool only rows with the same sha256, from sum_d and sum_d2."
   }
  },
  {
   "name": "e10-replica-pilot",
   "brief": "Replica pilot, CMA seed {{es}}: does a search in the fast market replica carry over to the real simulator? No seed >= 5000000.\nClone github.com/benedictbrady/amm-challenge at 6b6921f8d463314aa7c96234e1be25a25245f704 in your workspace (never /tmp). Save the script below as scratch/setup.sh, run `sh scratch/setup.sh` once from the checkout root, prefix later commands with `. scratch/env.sh && `. On failure return blocked={step,error}.\nset -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx\necho \"export TMPDIR=$R/tmp XDG_CACHE_HOME=$R/xc UV_CACHE_DIR=$R/uvc UV_PYTHON_INSTALL_DIR=$R/uvpy SOLCX_BINARY_PATH=$R/solcx VIRTUAL_ENV=$PWD/.venv PATH=$PWD/.venv/bin:$R/bin:\\$PATH\" >$R/env.sh;. $R/env.sh\ncommand -v uv >/dev/null||{ curl -LsSf https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz|tar --no-same-owner -xz -C $R/tmp;cp $R/tmp/uv-*/uv $R/bin/;}\nW=amm_sim_rs-0.1.0.post1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl;curl -LsSf https://github.com/gtmcknight/amm-sim/releases/download/sim-6b6921f8/$W -o $R/$W\necho \"aedb68280aca34c110968f00148387c95885207913fb2cf19a1ab4c5cfd6887a  $R/$W\"|sha256sum -c -\nuv venv --python 3.12 .venv;uv pip install $R/$W numpy py-solc-x==2.1.0 pyrevm==0.3.7;uv pip install --no-deps -e .\npython -c \"import solcx;solcx.install_solc('0.8.24')\"\namm-match validate contracts/src/StarterStrategy.sol\nThen `uv pip install numba`.\nFetch JSON artifacts https://api.imd.fun/artifacts/<id>: M=e8a7a2af9039c24b8bb2d3b5fa1c9113606cbf5a480ac07d02ca26750f1752ea (`replica_source`: market replica, run_many(TH, seeds, procs); strategy between # STRATEGY BEGIN and # STRATEGY END), P=1b8e8ca5d0da1f0071a9ae18505d6cbff902b88b2fbc34e523afbd212a9a26ce (`port_source`: RS2 on the same interface, TH_VALUES, TH_NAMES), R=19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5 (RS2 = `code`), H=26cb8e86f05170308de2a4b24821ac7fad2a17077f8d94af6e0f31985343fe89 (`harness_source`).\n1 Put P's strategy in M, TH = TH_VALUES.\n2 Transfer: RS2 with BASE_FEE 7 bps; RS2 with STALE_DIR_COEF x0.8: variant minus RS2, paired, in the real simulator on seeds {{t}}..+127 (each strategy alone against VanillaStrategy, amm_sim_rs.run_batch(X, Vanilla, configs, 8)) and in the replica on {{t}}..+4095.\n3 Search in the replica only, 20 minutes: diagonal CMA-ES (seed {{es}}) on multipliers of the first 39 TH entries (RS2's named constants; counts fixed), sigma 0.05, maximising mean paired gain over RS2 on 1,024 seeds redrawn each generation from {{s}}..+2899.\n4 Write the best back as Solidity (RS2 with only those constants changed); run it and RS2 once in the real simulator on held-out {{h}}..+511.\nReturn JSON: blocked, transfer [{variant, real{n,delta,se}, replica{n,delta,se}}], search {evaluations, curve}, th_best, replica_gain {n,mean,se} on 4,096 new replica seeds, code, sha256, held_out vs RS2 {n, mean_diff, se, worst}, gas {max_ok, init_max_ok, oog}. Local measurements: claim no board rank.",
   "items": [
    {
     "key": "a",
     "vars": {
      "es": "1001",
      "t": "806100",
      "s": "806300",
      "h": "809400"
     }
    },
    {
     "key": "b",
     "vars": {
      "es": "1002",
      "t": "816100",
      "s": "816300",
      "h": "819400"
     }
    },
    {
     "key": "c",
     "vars": {
      "es": "1003",
      "t": "826100",
      "s": "826300",
      "h": "829400"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "merge": {
    "groupSize": 5,
    "brief": "One table, one row per item: the transfer rows (variant, real delta, replica delta), replica gain of the frozen vector, real held-out gain and se vs RS2, gas. Say whether replica gains carried over."
   }
  }
 ],
 "read": [
  "e10-confirm-skew/a",
  "e10-confirm-skew/b",
  "e10-confirm-skew/c",
  "e10-confirm-vq/a",
  "e10-confirm-vq/b",
  "e10-confirm-vq/c",
  "e10-skew-tox/a",
  "e10-skew-tox/b",
  "e10-skew-tox/c",
  "e10-skew-vq/a",
  "e10-skew-vq/b",
  "e10-skew-vq/c",
  "e10-replica-pilot/a",
  "e10-replica-pilot/b",
  "e10-replica-pilot/c",
  "e09-confirm-tox/a",
  "e09-confirm-tox/b",
  "e09-confirm-sigma/a",
  "e09-confirm-sigma/b",
  "e09-confirm-act/a",
  "e09-confirm-act/b",
  "e09-combine-anchors/a",
  "e08-arb-skew/a",
  "e08-arb-skew/b",
  "e08-vanilla-quote/b",
  "e08-sticky-dev/b",
  "e09-learn-head/b",
  "e08-replica/d",
  "e08-rs2-port/a"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "e10-confirm-skew",
   "e10-confirm-vq",
   "e10-skew-tox",
   "e10-skew-vq",
   "e10-replica-pilot"
  ],
  "afterMinutes": 240
 },
 "finish": true
}