From 83ab1683f5cb663ebbf42b9ca0d7e99c71f08ed5 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 11:56:52 +0000 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20fix:=20EVAL=5FMODE=20defaults=20to?= =?UTF-8?q?=20anvil=20=E2=80=94=20should=20default=20to=20revm=20(#751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- tools/push3-evolution/evolve.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/push3-evolution/evolve.sh b/tools/push3-evolution/evolve.sh index ea0a96b..0dc04e9 100755 --- a/tools/push3-evolution/evolve.sh +++ b/tools/push3-evolution/evolve.sh @@ -66,10 +66,10 @@ MUTATE_CLI="$SCRIPT_DIR/mutate-cli.ts" SEED_GEN_CLI="$SCRIPT_DIR/seed-gen-cli.ts" # EVAL_MODE controls which fitness backend is used: -# anvil (default) — per-candidate Anvil+forge-script pipeline (fitness.sh) -# revm — in-process revm via FitnessEvaluator.t.sol (batch-eval.sh) -# Requires BASE_RPC_URL env var. 10-100× faster at scale. -EVAL_MODE="${EVAL_MODE:-anvil}" +# revm (default) — in-process revm via FitnessEvaluator.t.sol (batch-eval.sh) +# Requires BASE_RPC_URL env var. 10-100× faster at scale. +# anvil — per-candidate Anvil+forge-script pipeline (fitness.sh) +EVAL_MODE="${EVAL_MODE:-revm}" # ============================================================================= # Argument parsing From 21ff729509412d366480643ccaaf6868858ee54a Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 11:56:57 +0000 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20fix:=20EVAL=5FMODE=20defaults=20to?= =?UTF-8?q?=20anvil=20=E2=80=94=20should=20default=20to=20revm=20(#751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- STATE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/STATE.md b/STATE.md index a81b2d9..44fddba 100644 --- a/STATE.md +++ b/STATE.md @@ -22,3 +22,4 @@ - [2026-03-12] Harberger tax staking mechanism - [2026-03-13] LLM seed — Momentum Follower optimizer (#695) - [2026-03-14] evolve.sh auto-incrementing per-run results directory (#752) +- [2026-03-14] [in-progress] EVAL_MODE defaults to anvil — should default to revm (#751) From cd86774ac8e05660b338b004016b71e9ca373ff3 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 12:17:23 +0000 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20address=20review=20findings=20for=20?= =?UTF-8?q?#751=20=E2=80=94=20STATE.md=20and=20script=20header=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- STATE.md | 2 +- tools/push3-evolution/evolve.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/STATE.md b/STATE.md index 44fddba..847c9df 100644 --- a/STATE.md +++ b/STATE.md @@ -22,4 +22,4 @@ - [2026-03-12] Harberger tax staking mechanism - [2026-03-13] LLM seed — Momentum Follower optimizer (#695) - [2026-03-14] evolve.sh auto-incrementing per-run results directory (#752) -- [2026-03-14] [in-progress] EVAL_MODE defaults to anvil — should default to revm (#751) +- [2026-03-14] EVAL_MODE now defaults to revm (#751) diff --git a/tools/push3-evolution/evolve.sh b/tools/push3-evolution/evolve.sh index 0dc04e9..924e3f8 100755 --- a/tools/push3-evolution/evolve.sh +++ b/tools/push3-evolution/evolve.sh @@ -31,7 +31,8 @@ # Algorithm: # 1. Initialize population: N copies of seed, each with M random mutations. # 2. For each generation: -# a. Score all candidates via fitness.sh +# a. Score all candidates via the configured fitness backend +# (batch-eval.sh for revm [default], fitness.sh for anvil) # b. Log generation stats (min/max/mean fitness, best candidate) # c. Select k survivors via tournament selection (k = population/2) # d. Elitism: copy top N candidates unchanged into next generation @@ -49,7 +50,8 @@ # evolution.log full run log # # Environment: -# ANVIL_FORK_URL Passed through to fitness.sh when Anvil is not running. +# BASE_RPC_URL Required when EVAL_MODE=revm (the default). Base network RPC endpoint. +# ANVIL_FORK_URL Passed through to fitness.sh when EVAL_MODE=anvil. # # TSX resolution order: tsx in PATH → node_modules/.bin/tsx → npx tsx. # =============================================================================