{
 "item": "b",
 "batch": "e08-public-measure",
 "blocked": null,
 "RS2": {
  "sha256": "f24b6ca198b744c380842c3a17964a6dc21f311bb04984b26733afa3fee8eaf2",
  "source": "https://api.imdnotdead.fun/artifacts/19f2ec857df536e8ab62ab1da89ec6623332521ce46849f15bccff402c63e1e5",
  "contract_name": "censored_10",
  "mean_edge_901000_901255": 533.7351592392916,
  "mean_edge_900000_900031": 542.3651755555325,
  "gas_901000_901255": {
   "afterSwap_max_ok": 202386,
   "afterInitialize_max_ok": 243099,
   "afterSwap_calls": 2678625,
   "oog": 0,
   "revert": 0,
   "other_halt": 0,
   "tx_error": 0,
   "bad_return": 0
  }
 },
 "harness": {
  "source": "harness_source of https://api.imdnotdead.fun/artifacts/33f54e81f3372088e9eced52c0174f310ac348af98ef5727b73785c088679194",
  "usage": "python harness.py --start S --n N --out X.json candidate.sol RS2.sol, run unchanged from the amm-challenge checkout at 6b6921f8d463314aa7c96234e1be25a25245f704; each strategy alone vs VanillaStrategy, run_batch(...,8), gas_stats() per 20-seed chunk"
 },
 "files": [
  {
   "owner": "0xniki",
   "repository": "github.com/0xniki/amm-challenge",
   "default_branch": "master",
   "commit": "56ca9d16f1099b42ee498e3af7651187b1971819",
   "path": "my_strategy.sol",
   "raw_url": "https://raw.githubusercontent.com/0xniki/amm-challenge/56ca9d16f1099b42ee498e3af7651187b1971819/my_strategy.sol",
   "contract_name": "L9",
   "sha256": "74229c6535524db0bccc1116edd36e0952eb1ddb2acb4a25ec3da3f15e4806d9",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -3.5852710914576775,
    "se": 0.34382828159383644,
    "retail_edge_delta": -5.357430039461626,
    "arb_edge_delta": 1.7721589480039488
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 137388,
    "afterInitialize_max_ok": 185532,
    "afterSwap_calls": 321763,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  },
  {
   "owner": "lumen-dev-a11y",
   "repository": "github.com/lumen-dev-a11y/amm-challenge-lab",
   "default_branch": "main",
   "commit": "4eae7bd93693b415d06adabb66d8db1e1975ab0b",
   "path": "amm-challenge/my_strategy.sol",
   "raw_url": "https://raw.githubusercontent.com/lumen-dev-a11y/amm-challenge-lab/4eae7bd93693b415d06adabb66d8db1e1975ab0b/amm-challenge/my_strategy.sol",
   "contract_name": "night_7",
   "sha256": "cc30bc7bceaf5afff5371f81bb4bcac1a8e50706a19eccd21ffff94642f1fcde",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -2.873680938946979,
    "se": 0.2411596489177768,
    "retail_edge_delta": -1.1351210940797518,
    "arb_edge_delta": -1.7385598448672293
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 137461,
    "afterInitialize_max_ok": 185532,
    "afterSwap_calls": 331879,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  },
  {
   "owner": "ylintern",
   "repository": "github.com/ylintern/ammchallenge",
   "default_branch": "main",
   "commit": "52875e202d743b54049844c5833f97f27b3f2330",
   "path": "Strategy.sol",
   "raw_url": "https://raw.githubusercontent.com/ylintern/ammchallenge/52875e202d743b54049844c5833f97f27b3f2330/Strategy.sol",
   "contract_name": "taMole_Reverso_milli",
   "sha256": "d6e7ab50ede8f5b8aadbfd69a8f966fb6a7bc50dbb57194c081a3233488d1ae7",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -2.863071084337845,
    "se": 0.24070051467906212,
    "retail_edge_delta": -1.943644381635922,
    "arb_edge_delta": -0.9194267027019157
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 127842,
    "afterInitialize_max_ok": 185532,
    "afterSwap_calls": 329802,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  },
  {
   "owner": "happybigmtn",
   "repository": "github.com/happybigmtn/ammchallenge-lab",
   "default_branch": "main",
   "commit": "d354d0f32f3ec06ec926ae07165e363996eb37bf",
   "path": "amm_submissions/Strategy.sol",
   "raw_url": "https://raw.githubusercontent.com/happybigmtn/ammchallenge-lab/d354d0f32f3ec06ec926ae07165e363996eb37bf/amm_submissions/Strategy.sol",
   "contract_name": "PHatSkewPostSpotToxOnlyV4",
   "sha256": "536d17d72770abfc256708571d34c44919f19215916c0f4a21865c1df7e7011b",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -20.137238918234623,
    "se": 1.43842863045823,
    "retail_edge_delta": -1.190186781233317,
    "arb_edge_delta": -18.947052137001293
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 65587,
    "afterInitialize_max_ok": 112855,
    "afterSwap_calls": 350280,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  },
  {
   "owner": "happybigmtn",
   "repository": "github.com/happybigmtn/ammchallenge-lab",
   "default_branch": "main",
   "commit": "d354d0f32f3ec06ec926ae07165e363996eb37bf",
   "path": "amm_submissions/Strategy_best_494.sol",
   "raw_url": "https://raw.githubusercontent.com/happybigmtn/ammchallenge-lab/d354d0f32f3ec06ec926ae07165e363996eb37bf/amm_submissions/Strategy_best_494.sol",
   "contract_name": "PHatSkewBandInvFracV1",
   "sha256": "3336170920c2b452df304e76fb945421c77bd72e4c406fb14cbb4d590f61da17",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -32.8513132380175,
    "se": 1.870185781453661,
    "retail_edge_delta": 3.211540901997587,
    "arb_edge_delta": -36.06285414001508
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 85580,
    "afterInitialize_max_ok": 112748,
    "afterSwap_calls": 354406,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  },
  {
   "owner": "dipankar",
   "repository": "github.com/dipankar/amm-challenge",
   "default_branch": "main",
   "commit": "c588ae6c47fc9af2063c9bb1f2efbeb0dd276dab",
   "path": "contracts/src/SigmaAdaptiveStrategy.sol",
   "raw_url": "https://raw.githubusercontent.com/dipankar/amm-challenge/c588ae6c47fc9af2063c9bb1f2efbeb0dd276dab/contracts/src/SigmaAdaptiveStrategy.sol",
   "contract_name": "SigmaAdaptive",
   "sha256": "84da373d4ecc47b5ecaa96adfcc432ad62825a0c608e7529404fa8a0184cdf90",
   "valid": true,
   "licence": {
    "repository_LICENSE_file": null,
    "github_api_license": null,
    "spdx": "MIT"
   },
   "d32": {
    "seeds": "900000..900031",
    "n": 32,
    "mean_diff_vs_RS2": -8.01644894093358,
    "se": 0.515870965236206,
    "retail_edge_delta": -0.6837090177994352,
    "arb_edge_delta": -7.332739923134136
   },
   "oog": 0,
   "gas_d32": {
    "afterSwap_max_ok": 148213,
    "afterInitialize_max_ok": 176674,
    "afterSwap_calls": 336304,
    "oog": 0,
    "revert": 0,
    "other_halt": 0,
    "tx_error": 0,
    "bad_return": 0
   }
  }
 ],
 "top3": [
  {
   "owner": "ylintern",
   "path": "Strategy.sol",
   "sha256": "d6e7ab50ede8f5b8aadbfd69a8f966fb6a7bc50dbb57194c081a3233488d1ae7",
   "seeds": "901000..901255",
   "paired": {
    "n": 256,
    "mean_diff": -2.7567846700227694,
    "se": 0.0783656509448794,
    "worst": [
     {
      "seed": 901156,
      "d": -9.459851141519607
     },
     {
      "seed": 901180,
      "d": -8.157706796166167
     },
     {
      "seed": 901133,
      "d": -5.558648385104675
     },
     {
      "seed": 901048,
      "d": -5.525322348238774
     },
     {
      "seed": 901033,
      "d": -5.285546121171365
     }
    ]
   },
   "retail_edge_delta": {
    "mean": -1.7030343312802247,
    "se": 0.0896314473012481
   },
   "arb_edge_delta": {
    "mean": -1.053750338742548,
    "se": 0.046022740791515075
   },
   "reconciliation_max_abs": 1.0658141036401503e-13,
   "gas": {
    "max_ok": 146978,
    "oog": 0,
    "detail": {
     "afterSwap_max_ok": 146978,
     "afterInitialize_max_ok": 185532,
     "afterSwap_calls": 2638491,
     "oog": 0,
     "revert": 0,
     "other_halt": 0,
     "tx_error": 0,
     "bad_return": 0
    }
   },
   "harness_valid": true,
   "mechanism": "Same STACK-family estimator/fee skeleton as RS2 (pHat with sigma-gated EMA, sigma/lambda/size/tox/activity EMAs, directional skew, stale-price shift, trade-aligned boost, tail compression) plus a cubic toxicity term, but with different constants (BASE_FEE 3 bps, TAIL_KNEE 500 bps, TAIL_SLOPE_PROTECT 0.875, GATE_SIGMA_MULT 10). It lacks everything RS2 adds: the silence-based no-trade-interval pHat recentering, the censored assumed-density posterior (fastHat) blended into the stale reference, the arb-probability-weighted retail rate/size flow estimator, the interior-routing pHat correction, and RS2's 30/36 bps caps on the attracting side and 16 bps cap on non-first boosts."
  },
  {
   "owner": "lumen-dev-a11y",
   "path": "amm-challenge/my_strategy.sol",
   "sha256": "cc30bc7bceaf5afff5371f81bb4bcac1a8e50706a19eccd21ffff94642f1fcde",
   "seeds": "901000..901255",
   "paired": {
    "n": 256,
    "mean_diff": -2.7201504047353886,
    "se": 0.07579663996274326,
    "worst": [
     {
      "seed": 901156,
      "d": -8.917681546263339
     },
     {
      "seed": 901180,
      "d": -8.380094279656305
     },
     {
      "seed": 901048,
      "d": -5.73382642851152
     },
     {
      "seed": 901033,
      "d": -5.414684835841854
     },
     {
      "seed": 901034,
      "d": -5.315275729673999
     }
    ]
   },
   "retail_edge_delta": {
    "mean": -0.8755996418930099,
    "se": 0.0842193220327563
   },
   "arb_edge_delta": {
    "mean": -1.8445507628423805,
    "se": 0.04311941841632644
   },
   "reconciliation_max_abs": 1.0658141036401503e-13,
   "gas": {
    "max_ok": 151967,
    "oog": 0,
    "detail": {
     "afterSwap_max_ok": 151967,
     "afterInitialize_max_ok": 185532,
     "afterSwap_calls": 2655261,
     "oog": 0,
     "revert": 0,
     "other_halt": 0,
     "tx_error": 0,
     "bad_return": 0
    }
   },
   "harness_valid": true,
   "mechanism": "Same STACK-family skeleton with cubic toxicity as ylintern (nearly identical constants), with one structural difference: a two-regime base fee, 3 bps when sigmaHat > 0.0011 and 1 bps otherwise. Like the others it omits RS2's censored posterior, silence recentering, arb-weighted flow estimator and attracting-side 30/36 bps caps; its arb loss vs RS2 is the largest of the three (-1.84) while retail loss is smallest (-0.88)."
  },
  {
   "owner": "0xniki",
   "path": "my_strategy.sol",
   "sha256": "74229c6535524db0bccc1116edd36e0952eb1ddb2acb4a25ec3da3f15e4806d9",
   "seeds": "901000..901255",
   "paired": {
    "n": 256,
    "mean_diff": -3.2223675578419018,
    "se": 0.10170860181011195,
    "worst": [
     {
      "seed": 901180,
      "d": -12.650563812459154
     },
     {
      "seed": 901133,
      "d": -10.15245419323719
     },
     {
      "seed": 901156,
      "d": -9.400196168453476
     },
     {
      "seed": 901112,
      "d": -8.185714482026583
     },
     {
      "seed": 901064,
      "d": -8.048719584332162
     }
    ]
   },
   "retail_edge_delta": {
    "mean": -4.860746499002094,
    "se": 0.12760507174644636
   },
   "arb_edge_delta": {
    "mean": 1.6383789411601908,
    "se": 0.06279941229170273
   },
   "reconciliation_max_abs": 1.0302869668521453e-13,
   "gas": {
    "max_ok": 147040,
    "oog": 0,
    "detail": {
     "afterSwap_max_ok": 147040,
     "afterInitialize_max_ok": 185532,
     "afterSwap_calls": 2577611,
     "oog": 0,
     "revert": 0,
     "other_halt": 0,
     "tx_error": 0,
     "bad_return": 0
    }
   },
   "harness_valid": true,
   "mechanism": "Same STACK-family skeleton with cubic toxicity (TOX_CUBE_COEF 15000 bps, STALE_DIR_COEF 7000 bps, GATE_MIN 0.025, PHAT_ALPHA_RETAIL 0.04) and no RS2 posterior/flow/silence/cap additions. It gives up less to arbitrage than RS2 (arb delta +1.64) but loses far more retail edge (-4.86), consistent with fees set too high for retail flow."
  }
 ],
 "notes": [
  "All six files compile and pass amm-match validate unchanged; each file sha256 equals the sha256 of the raw.githubusercontent.com bytes at the recorded commit.",
  "None of the five repositories has a LICENSE/COPYING file anywhere in the tree (find at the default-branch commit), and the GitHub API reports license null for all five; every file carries only an \"SPDX-License-Identifier: MIT\" line. Reuse rests on that SPDX line alone.",
  "No file beats RS2. On 32 seeds: ylintern -2.86, lumen -2.87, 0xniki -3.59, dipankar -8.02, happybigmtn Strategy.sol -20.14, Strategy_best_494.sol -32.85. On 256 seeds the best three stay 2.7 to 3.2 behind RS2 with se under 0.11.",
  "The top three are all members of the same STACK fee family (pHat/sigma/lambda/size/tox EMAs, skew, stale shift, tail compression) with a cubic toxicity term; none contains a new mechanism RS2 lacks except lumen's sigma-regime base fee (1 vs 3 bps). Their combined deficit is roughly the value of RS2's additions (censored posterior, silence recentering, arb-weighted flow estimator, attracting-side caps).",
  "Zero OOG, revert, halt, tx_error or bad_return for every candidate and for RS2 in every run. RS2 afterSwap peaks at 202386 gas on 901000..901255 (limit 250000); its afterInitialize peaks at 243099.",
  "Per the brief, 900000..900031 and 901000..901255 are the only seeds used; nothing was tuned, and no code from the five repositories was run apart from compiling and simulating the six named files."
 ]
}