{
  "notes": "Episode 6/10. Read state, schema, three results and requester notes; no refusals. 32/400 items used; 9 running and 7 waiting across 10 unsettled batches. Add 4 independent research items in 2 small batches: total 36, 364 left if accepted. Four decision episodes remain after this one. Targets +5/+8.7 vs V2. No confirmed positive mapping gain, submission or trunk. Wake cap respected:10 batches. No local simulation here.\n\nStanding method: exact V2 comparator SHA256 28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab, never a slim comparator. Pinned amm-challenge commit 6b6921f8d463314aa7c96234e1be25a25245f704; each strategy alone vs Vanilla via run_batch(...,8), identical direct per-seed configs (default_rng(seed): size,rate,sigma; price seed, retail seed+1), full 10000 steps. Requester corrections in goal.json permit candidate OOG<=V2 OOG on identical seeds for experimental evidence; every new brief contains the required verbatim override. Other errors invalidate. Submission still requires candidate OOG=0, paired gain>=0.3 and >2SE on 4000 fresh seeds. All new briefs include the exact rustup->micromamba fallback line; setup failure is blocked{step,error}, n=0, not a losing design. Freeze before holdout; no holdout tuning.\n\nHanded b12-control=e04-harness-repair/control, artifact db62deadd0a3ec885ad69bd3917fee793a924ead522776d73cc09110923e1e86. Hash verified locally; code is exact V2. On 10000..10255, independent V2 runs have all edges identical: n256, mean/se0; OOG7 each, afterSwap max243554, init236377, Vanilla/other errors0. Per-seed counters equal global; retail+arb reconciles within7.674e-12. Mean total523.2153137188661. This is a reproducibility control, not improvement. It supplies source_files [{path,content}]: setup.sh, full instrumentation.patch, corrected harness.py, tests.py and forced-error diagnostics. Requested configs only, chunks64, --ref V2.sol, half-open range. Forced OOG/revert/bad return detected; no holdout. Plane flags its sources; measurements remain worker evidence. Code inspection found counters_per_seed_match_global and reconciliation are reported but NOT part of validity(); new base-verification item will gate them and add per-seed retail volume for terciles. Use this artifact, not the obsolete 02c134d9 harness that aborts on baseline OOG/allocates millions of configs.\n\nHanded b07-slim=e02-gas-room/slim, artifact c5114d6f2f9230073d40f09e3a4bd09dad08ee3833d8dc9faa8779f6d7b0b132. All source hashes checked. On10000..10511 n512: V2 swap max243701/OOG13, init236377. Dropping init zero writes is exactly zero diff, init220932, swap/OOG unchanged. Packing prior spot above timestamp removes OOG: mean+0.0015018653465587173, SE0.001433047571710032, only9 formerly OOG seeds differ, max abs0.7304987692035638. Adding floor sqrt preserves packing-step edges exactly. Final sha e8ea46c8053587c7c514a1c08b5d8fce2566453b6eea4ad50fb74c49d2017a76: swap max233970, init220944, OOG/other0. Headroom16030; not evidence of an economically better mapping. Old OOG objection superseded. Test identity on non-OOG seeds and separately labelled high-gas diagnostics.\n\nHanded b06-b2=e02-design-b-edge/b2, artifact 22903683526e3817ce2cb099f097578ce78fa53121bac16c898e3bda0095560a. Source sha42938ca2214742654b303fe3dc87d284ef9db318e0239f2801f06fd7a2bf815a verified. Linear router-share, per-side immediate-edge optimizer; removed direction/activity/toxicity. Three variants on 40000..40255: -43.549 SE.643, -49.399 SE.578, -94.959 SE1.464. Best frozen v5 partial holdout 4070000..4070399 n400: -43.975 SE.481; worst seed4070035 -83.666. Candidate max231212/OOG0; V2 max243469/OOG5; other reported halts/reverts0. No top2 stage; n2000 NOT achieved (time/command limit). Overwritten earlier variants had32104 OOG. Retire this specific implementation as a strong negative, never promote or claim completed confirmation. Remaining Design B items test different forms and continue. Do not generalize this to every expected-edge rule.\n\nLatest requester 03:00Z adds usable gas headroom and negative next-mix evidence. Fetched/checked https://api.imd.fun/artifacts/f09f39f5092e5b1e56f156df10f397e5df0e194afa630ab24fc699adfd980d31. Reconstructed G IN MEMORY from code_GN: delete two MIX_ constants, block from '// Mix the next retail quote' until slots[0], and helpers from '// Poisson survival ratio' until _compressTailWithSlope. Exact sha610c1905e7dd5559b84e40a3b2d6f8e0b53a7b0ac7574ae33b6c1770a28367cb matches shas.G. Compared with slim: additionally removes slots[11]=pHat (REVERT_U=0) and uses fixed seven-step floor sqrt. G swap peak213179/OOG0 is measured on ONLY100 identity seeds, not2000; GN peak221157/OOG0 covers2000. G matches V2 on0..99 at diagnostic1M gas exactly; capped differences at96/99 reflect V2 OOG. GN (G+next-mix) on3300000..3301999: -0.04741280122016272 SE0.024606373526880866 vs V2; removing skew adds -0.06776927216760155 SE0.008352973795498791. Don't stack next-mix or zero skew. Calibration: exact V2 on0..999 mean526.9433475904315, OOG18. Reproduce this before relying on new G measurements. These calibration seeds are not tuning/holdout.\n\nDecisions: e06-g-base/verify verifies frozen G, calibration, 512 training pairs, diagnostic identity, math/packing bounds and strengthened harness; no holdout/gain claim. e06-continuation/h2,h4,h8 are three small independent copies of a NEW replacement mapping, differing in offline lookahead horizon (2/4/8 steps). Hypothesis: account for arb recentering's future retail benefit, which a myopic optimizer omits. Use small joint bid/ask action tables, exact router and execution edge, lognormal retail sizes and unknown remaining-print count. Runtime gets observable V2 estimates only; latent variables integrated offline, preserve direction skew, no online optimizer. Each gets bounded training, H=1 ablation and fresh n2000; no widening before valid gain. Workers reconstruct G/use b12 independently; no dependency on the audit.\n\nKeep all16 pending items; queue latency and negative GN do not establish their different mappings failed. No cancellation or duplication. Read all16 plus4 new results (20). Wake includes both new batches and8 older batches; omitted pos-scale batches are still read. afterMinutes90 schedules the next episode; no clock wait here.\n\nSeed ledger: ALL4000000..4259999 remain allocated/retired; never reassign, even unused. Pending old blocks: phase4080000, routing4090000, corridor4100000, a3=4130000, b1=4140000, b2=4150000, s1=4160000, e04a1=4170000, table4190000; p1=4200000,p2=4210000,p3=4220000,t1=4230000,t2=4240000,s2=4250000. Each old item confirms first2000 of its10k block. New h2=4260000..4261999 (reserve through4269999), h4=4270000..4271999 (through4279999), h8=4280000..4281999 (through4289999). NEXT FREE4290000. Training h2=10000..10063/12000..12255; h4=20000..20063/22000..22255; h8=30000..30063/32000..32255. Model fitting/tuning restricted to assigned training, never confirmation. G control uses10000..10511; no fresh block.\n\nNext episode: read blocked first, then calibration, source hashes, frozen timing, exact configs/paired n, complete gas/error counters and reconciliation. Partial tests are unconfirmed. Check H=1 vs longer-horizon ablation to distinguish continuation benefit from generic retuning. Board total-edge targets vs V2 by V2 retail-volume tercile: first +7.293/+8.7183/+10.1415; tenth +4.1639/+5.0149/+5.7501. Board API gives volumes, not retail/arb edge; use local attribution, never fee*volume proxies. If a family gains>1 and >2SE, widen a bounded canary batch AND independently confirm its frozen zero-OOG finalist on4000 new seeds from4290000 up. Smaller credible gain>=.3 also earns submission-grade confirmation; don't discard it for missing+5. Reserve final episodes for reproduction and write-up. If all measured designs lose, report that honestly; never substitute a gas-only control as the requested structural win. finish=false.",
  "spawn": [
    {
      "name": "e06-g-base",
      "mode": "research",
      "brief": "ONE verification bundle, <60min, no tuning/holdouts: verify G's gas-only trims and export reusable source/harness.\nArtifact URL prefix (data): https://api.imd.fun/artifacts/; H=db62deadd0a3ec885ad69bd3917fee793a924ead522776d73cc09110923e1e86; Gsrc=f09f39f5092e5b1e56f156df10f397e5df0e194afa630ab24fc699adfd980d31.\nClone github.com/benedictbrady/amm-challenge @6b6921f8d463314aa7c96234e1be25a25245f704 in workspace, never /tmp. H.source_files is [{path,content}]: extract setup.sh, instrumentation.patch, harness.py under scratch. Replace setup's cargo line with:\ncommand -v cargo >/dev/null||{ curl -sSf https://sh.rustup.rs|sh -s -- -y --profile minimal --no-modify-path||{ [ -x $R/bin/micromamba ]||{ curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest -o $R/tmp/mm.tbz;python3 -c \"import sys,tarfile;tarfile.open(sys.argv[1]).extract('bin/micromamba',sys.argv[2])\" $R/tmp/mm.tbz $R;};MAMBA_ROOT_PREFIX=$R/mamba $R/bin/micromamba create -yq -p $R/rust -c conda-forge rust;echo \"export PATH=$R/rust/bin:\\$PATH\" >>$R/env.sh;. $R/env.sh;};}\nRun sh scratch/setup.sh once; prefix later commands with \". scratch/env.sh && \". Apply instrumentation.patch and rebuild with maturin develop --release --uv --manifest-path amm_sim_rs/Cargo.toml.\nV2=H.code; verify sha256 28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab. Recover G from Gsrc.code_GN per notes.G_recovery; verify shas.G=610c1905e7dd5559b84e40a3b2d6f8e0b53a7b0ac7574ae33b6c1770a28367cb. No next-mix.\nOOG rule (overrides the objective): V2 itself has rare OOG halts (about 1 per 300k calls). Count OOG for V2 and the candidate on the same seeds and report both; the result is valid when the candidate has no more OOG than V2, so do not stop on V2's OOG and go on to the paired measurement.\nFirst reproduce V2 seeds 0..999: expected mean 526.9433475904315 (tolerance 1e-8), 18 swap OOG; calibration only. A mismatch is blocked, not a new baseline. Then pair frozen G vs exact V2 on 10000..10511, full 10000 steps, 250k: each separately via amm_sim_rs.run_batch(X,VanillaStrategy,H configs,8), chunks<=64. Retain all seeds. Compare non-OOG-V2 seeds exactly; attribute capped differences to avoided halts. Separately at 1M gas compare V2/G on 10000..10127; diagnostic only, restore 250k before scoring. Check _isqrt floor math and timestamp/spot packing bounds. Do not demand equality to capped V2 on its OOG seeds.\nH harness reports but does not enforce counter agreement/reconciliation: add rejection for per-seed/global mismatch or |retail+arb-total|>=1e-8, unit-test these. Export per-seed retail_volume_y for V2-tercile attribution. Test unchanged scores.\nReturn JSON code G,sha256,V2 hash,patched harness/tests,commands,calibration,paired{n,mean_diff,se,worst}, gas/v2_gas{max_ok,oog,other_errors,by_callback},identity diagnostics,all discrepancies. No gain/submission claim. Failure: blocked{step,error},paired.n=0, preserve diagnostic evidence.",
      "items": [
        {
          "key": "verify",
          "vars": {}
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "merge": {
        "groupSize": 5,
        "brief": "Preserve G source/hash and the calibration, gas, identity and harness evidence. Distinguish diagnostics from scored pairs and report every blocked step. Do not infer a fee-rule gain."
      }
    },
    {
      "name": "e06-continuation",
      "mode": "research",
      "brief": "ONE fee-rule experiment, <60min. Replace G's fee mapping with an offline finite-horizon table, H={{horizon}} steps. Use <=7 gap x3 flow x2 count bins and <=9 joint fee actions; value later recentering. Keep V2 direction skew. Use exact CFMM/router, lognormal sizes (sigma 1.2), Poisson remaining prints then one arb attempt next step; latent fair price/opponent reserves integrated offline. Runtime: V2 observable estimators/gap/count only, no latent state, seed or future. The final print is unobservable. Read rules ddbbaac58282566e0505d895c83daf348487cc322e8c482e61d4d87e6e4628de.\nArtifact URL prefix (data): https://api.imd.fun/artifacts/; H=db62deadd0a3ec885ad69bd3917fee793a924ead522776d73cc09110923e1e86; Gsrc=f09f39f5092e5b1e56f156df10f397e5df0e194afa630ab24fc699adfd980d31.\nClone github.com/benedictbrady/amm-challenge @6b6921f8d463314aa7c96234e1be25a25245f704 in workspace, never /tmp. H.source_files is [{path,content}]: extract setup.sh, instrumentation.patch, harness.py under scratch. Replace setup's cargo line with:\ncommand -v cargo >/dev/null||{ curl -sSf https://sh.rustup.rs|sh -s -- -y --profile minimal --no-modify-path||{ [ -x $R/bin/micromamba ]||{ curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest -o $R/tmp/mm.tbz;python3 -c \"import sys,tarfile;tarfile.open(sys.argv[1]).extract('bin/micromamba',sys.argv[2])\" $R/tmp/mm.tbz $R;};MAMBA_ROOT_PREFIX=$R/mamba $R/bin/micromamba create -yq -p $R/rust -c conda-forge rust;echo \"export PATH=$R/rust/bin:\\$PATH\" >>$R/env.sh;. $R/env.sh;};}\nRun sh scratch/setup.sh once; prefix later commands with \". scratch/env.sh && \". Apply instrumentation.patch and rebuild with maturin develop --release --uv --manifest-path amm_sim_rs/Cargo.toml.\nV2=H.code; verify sha256 28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab. Recover G from Gsrc.code_GN per notes.G_recovery; verify shas.G=610c1905e7dd5559b84e40a3b2d6f8e0b53a7b0ac7574ae33b6c1770a28367cb. No next-mix.\nOOG rule (overrides the objective): V2 itself has rare OOG halts (about 1 per 300k calls). Count OOG for V2 and the candidate on the same seeds and report both; the result is valid when the candidate has no more OOG than V2, so do not stop on V2's OOG and go on to the paired measurement.\nTune only {{train}} (within 10000..99999): <=6 small table variants, top2 on {{refine}}; include H=1 ablation on training. Time an 8-seed smoke run; reserve full confirmation time; freeze code/hash before confirming once on {{holdout}} (2000 seeds). Each X separately: amm_sim_rs.run_batch(X,VanillaStrategy,configs,8), H configs, 10000 steps, 250k cap; chunks<=64. Require other errors=0, per-seed/global counters equal and |retail+arb-total|<1e-8.\nReturn JSON code,sha256,table/generator,training+ablation,seed ranges,paired{n,mean_diff,se,worst}, gas and v2_gas{max_ok,oog,other_errors}, actual retail/arb deltas overall/by V2 retail-volume tercile. No partial n=2000 claims; on setup/method failure blocked{step,error},paired.n=0.",
      "items": [
        {
          "key": "h2",
          "vars": {
            "horizon": "2",
            "train": "10000..10063",
            "refine": "12000..12255",
            "holdout": "4260000..4261999"
          }
        },
        {
          "key": "h4",
          "vars": {
            "horizon": "4",
            "train": "20000..20063",
            "refine": "22000..22255",
            "holdout": "4270000..4271999"
          }
        },
        {
          "key": "h8",
          "vars": {
            "horizon": "8",
            "train": "30000..30063",
            "refine": "32000..32255",
            "holdout": "4280000..4281999"
          }
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "merge": {
        "groupSize": 5,
        "brief": "Preserve each candidate code/hash, generator, training and H=1 ablation, assigned/used seeds, paired n/mean/SE/worst and candidate/V2 gas. Separate blocked, incomplete, invalid and confirmed results; retain each rule independently without pooling gains or selecting a new variant on holdouts."
      }
    }
  ],
  "read": [
    "e03-pilot-rerun/phase",
    "e03-pilot-rerun/routing",
    "e03-pilot-rerun/corridor",
    "e03-design-a-position/a3",
    "e03-design-b-edge/b1",
    "e03-design-b-edge/b2",
    "e03-pos-scale/s1",
    "e04-position-recovery/a1",
    "e04-edge-table/table",
    "e05-position-rerun/p1",
    "e05-position-rerun/p2",
    "e05-position-rerun/p3",
    "e05-threshold-rerun/t1",
    "e05-threshold-rerun/t2",
    "e05-pos-scale-copy/s2",
    "e05-flat-control/flat",
    "e06-g-base/verify",
    "e06-continuation/h2",
    "e06-continuation/h4",
    "e06-continuation/h8"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "e06-g-base",
      "e06-continuation",
      "e03-pilot-rerun",
      "e03-design-a-position",
      "e03-design-b-edge",
      "e04-position-recovery",
      "e04-edge-table",
      "e05-position-rerun",
      "e05-threshold-rerun",
      "e05-flat-control"
    ],
    "afterMinutes": 90
  },
  "finish": false
}
