fix: feat: evolution-daemon.sh — perpetual evolution loop on DO box (#748)
- Add tools/push3-evolution/evolution-daemon.sh: single-command daemon that
runs git-pull → apply-patch → clean-tmpdirs → evolve.sh → summary →
notify → revert-patch → loop, handling SIGINT/SIGTERM cleanly.
- Add tools/push3-evolution/evolution.conf: config file (EVAL_MODE, BASE_RPC_URL,
POPULATION=20, GENERATIONS=30, MUTATION_RATE=1, ELITES=2, DIVERSE_SEEDS=true,
GAS_LIMIT=500000, ANCHOR_WIDTH_UNBOUNDED=true).
- Add tools/push3-evolution/evolution.patch: overrides CALCULATE_PARAMS_GAS_LIMIT
200k→500k in Optimizer.sol + FitnessEvaluator.t.sol, and removes
MAX_ANCHOR_WIDTH=100 cap in LiquidityManager.sol for unbounded AW exploration.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 17:21:51 +00:00
|
|
|
# evolution.conf — configuration for evolution-daemon.sh
|
|
|
|
|
#
|
|
|
|
|
# All parameters here override the defaults in evolve.sh.
|
|
|
|
|
# Set BASE_RPC_URL to a Base network RPC endpoint before starting the daemon.
|
|
|
|
|
|
|
|
|
|
# ── Fitness backend ─────────────────────────────────────────────────────────────
|
|
|
|
|
EVAL_MODE=revm
|
|
|
|
|
|
|
|
|
|
# Base network RPC endpoint (required for EVAL_MODE=revm).
|
|
|
|
|
# Export in your shell or set here (do NOT commit credentials).
|
|
|
|
|
# BASE_RPC_URL=https://mainnet.base.org
|
|
|
|
|
|
|
|
|
|
# ── Population & selection ──────────────────────────────────────────────────────
|
|
|
|
|
POPULATION=20
|
|
|
|
|
GENERATIONS=30
|
|
|
|
|
MUTATION_RATE=1
|
|
|
|
|
ELITES=2
|
|
|
|
|
DIVERSE_SEEDS=true
|
|
|
|
|
|
2026-03-14 17:39:20 +00:00
|
|
|
# ── Evolution-specific overrides — DOCUMENTATION ONLY ──────────────────────────
|
|
|
|
|
# These two variables are NOT read by evolution-daemon.sh at runtime.
|
|
|
|
|
# They document the semantic intent of evolution.patch, which is the actual
|
|
|
|
|
# mechanism that changes the compiled Solidity constants before each run.
|
|
|
|
|
# Editing these values here has NO runtime effect; to change the overrides,
|
|
|
|
|
# regenerate evolution.patch (see the patch file for instructions).
|
|
|
|
|
#
|
|
|
|
|
# GAS_LIMIT=500000 (patch raises CALCULATE_PARAMS_GAS_LIMIT 200k→500k)
|
|
|
|
|
# ANCHOR_WIDTH_UNBOUNDED=true (patch sets MAX_ANCHOR_WIDTH to type(uint24).max)
|
fix: feat: evolution-daemon.sh — perpetual evolution loop on DO box (#748)
- Add tools/push3-evolution/evolution-daemon.sh: single-command daemon that
runs git-pull → apply-patch → clean-tmpdirs → evolve.sh → summary →
notify → revert-patch → loop, handling SIGINT/SIGTERM cleanly.
- Add tools/push3-evolution/evolution.conf: config file (EVAL_MODE, BASE_RPC_URL,
POPULATION=20, GENERATIONS=30, MUTATION_RATE=1, ELITES=2, DIVERSE_SEEDS=true,
GAS_LIMIT=500000, ANCHOR_WIDTH_UNBOUNDED=true).
- Add tools/push3-evolution/evolution.patch: overrides CALCULATE_PARAMS_GAS_LIMIT
200k→500k in Optimizer.sol + FitnessEvaluator.t.sol, and removes
MAX_ANCHOR_WIDTH=100 cap in LiquidityManager.sol for unbounded AW exploration.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 17:21:51 +00:00
|
|
|
|
|
|
|
|
# ── Notification (openclaw) ─────────────────────────────────────────────────────
|
|
|
|
|
# SSH target for `openclaw system event` notifications.
|
|
|
|
|
# Leave empty to disable notifications.
|
|
|
|
|
OPENCLAW_SSH_TARGET=
|
|
|
|
|
|
|
|
|
|
# ── Seed ────────────────────────────────────────────────────────────────────────
|
|
|
|
|
# Path to the primary seed file, relative to the repo root.
|
|
|
|
|
SEED=tools/push3-evolution/seeds/optimizer_v3.push3
|