fix: address review findings for #752 — regex and STATE.md cleanup

- 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 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-14 11:27:53 +00:00
parent 280253b498
commit 266500fde1
2 changed files with 2 additions and 2 deletions

View file

@ -21,4 +21,4 @@
- [2026-03-12] VWAPTracker for price oracle - [2026-03-12] VWAPTracker for price oracle
- [2026-03-12] Harberger tax staking mechanism - [2026-03-12] Harberger tax staking mechanism
- [2026-03-13] LLM seed — Momentum Follower optimizer (#695) - [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)

View file

@ -130,7 +130,7 @@ base = sys.argv[1]
max_n = 0 max_n = 0
if os.path.isdir(base): if os.path.isdir(base):
for name in os.listdir(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)): if m and os.path.isdir(os.path.join(base, name)):
max_n = max(max_n, int(m.group(1))) max_n = max(max_n, int(m.group(1)))
print(f"{max_n + 1:03d}") print(f"{max_n + 1:03d}")