From 266500fde12bb376846e464c6a5bbd01d177d833 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 11:27:53 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20address=20review=20findings=20for=20#752?= =?UTF-8?q?=20=E2=80=94=20regex=20and=20STATE.md=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix run_NNN scan regex: r'run(\d+)' → r'run_(\d+)' so it correctly matches the underscore-separated directory names the script creates (previously always resolved to 001, overwriting the same dir each run) - Remove [in-progress] tag from STATE.md entry for #752 Co-Authored-By: Claude Sonnet 4.6 --- STATE.md | 2 +- tools/push3-evolution/evolve.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/STATE.md b/STATE.md index 95b8d87..a81b2d9 100644 --- a/STATE.md +++ b/STATE.md @@ -21,4 +21,4 @@ - [2026-03-12] VWAPTracker for price oracle - [2026-03-12] Harberger tax staking mechanism - [2026-03-13] LLM seed — Momentum Follower optimizer (#695) -- [2026-03-14] [in-progress] evolve.sh auto-incrementing per-run results directory (#752) +- [2026-03-14] evolve.sh auto-incrementing per-run results directory (#752) diff --git a/tools/push3-evolution/evolve.sh b/tools/push3-evolution/evolve.sh index 0011778..ea0a96b 100755 --- a/tools/push3-evolution/evolve.sh +++ b/tools/push3-evolution/evolve.sh @@ -130,7 +130,7 @@ base = sys.argv[1] max_n = 0 if os.path.isdir(base): for name in os.listdir(base): - m = re.fullmatch(r'run(\d+)', name) + m = re.fullmatch(r'run_(\d+)', name) if m and os.path.isdir(os.path.join(base, name)): max_n = max(max_n, int(m.group(1))) print(f"{max_n + 1:03d}")