Skip to content

Bench: co-evolving harness and strategy on GLM 5.3 proposals (2025 search -> 2026 test) - #59

Merged
OnePunchMonk merged 2 commits into
OnePunchMonk:mainfrom
avayaaggarwal:bench/coevolution-glm53-2526
Dec 3, 2026
Merged

OnePunchMonk merged 2 commits into
OnePunchMonk:mainfrom
avayaaggarwal:bench/coevolution-glm53-2526

Conversation

@avayaaggarwal

Copy link
Copy Markdown
Contributor

Asks one thing: if the harness and the strategy hunt co-evolve at the same time, does it find something that survives a regime change?

Data: ten NASDAQ large caps — AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA, AVGO, COST, NFLX — daily adjusted OHLC from yfinance.
Split: search 2025-01-02 → 2025-12-31 (250 bars); test 2026-01-02 → 2026-12-01 (231 bars), scored once at the very end.

Proposer: zai-glm-5-3, text-only, retrieval disabled, given only 2025 statistics and a fixed grid → 20/50 (0.80), 15/30 (0.70), 30/80 (0.65), 10/20 (0.50), 40/100 (0.40).

Co-evolution: harness genome (holding horizon, SMA200 filter, DD gate, selection rule) × strategy genome (the 31 fast/slow pairs, seeded with GLM's five), 15 generations. Fitness strictly inside 2025; harnesses scored on one common yardstick so selection rules are comparable.

Result

The search works — it converges to 50/80, 5-bar hold, DD gate 0.25, fitness 1.1164, and exhaustive enumeration confirms that is the exact global optimum. It then transfers to nothing:

Candidate 2026 mean Sharpe Mean max DD Names ≥0.3
Co-evolved winner −0.371 25.6% 2/10
GLM top pick (20/50) −0.470 23.1% 1/10
Buy and hold +0.310 30.8% —

Why: an oracle over the same 93 configs scored on 2026 finds only 4 positive, best +0.159 (15/20, 3-bar hold). Even with hindsight no dual-MA config on this universe approaches buy-and-hold in 2026. The strategy family failed, not the proposer — 2026 chopped (NVDA −47.5% peak-to-trough, NFLX −32.9%, GOOGL −4.6%) with drawdowns but no direction to ride.

Two findings worth flagging:

  • The evolved harness drifted to its most permissive genes (widest 0.25 DD gate, slowest 5-bar hold) — the signature of fitting a risk gate to in-sample drawdowns that 2026 ignored. In fact all five GLM proposals breach the 0.20 gate in 2025 (21.5%–31.1%), so the comparison above only exists because the gate was loosened.
  • GLM's confidence pointed the wrong way: its 0.80 pick (20/50) was the worst of the five out of sample, its 0.70 pick (15/30) the best.

Caveats

GLM 5.3 cannot be called in-process (create_planner() → FallbackPlanner, no credentials, no GLM provider), so it proposed through a pinned session while the harness ran its own grid search. Web search was off (use_web_search false; run manifest records tool_calls: 0.0), but disabling retrieval does not remove memorised knowledge — zai-glm-5-3 is absent from src/agent/knowledge_cutoffs.py, so the harness's own contamination check flags any 2026 eval window. The 2026 oracle is in-sample and diagnostic only. One split, one seed, no multiplicity correction across 93 configs and two candidates — nothing here is a validated score.

Files: bench/BENCH_COEVOLUTION_GLM53_2025_2026.md, bench/bench_coevolution_report.json, and bench/coevolve_dual_ma.py (reproduce with python -m bench.coevolve_dual_ma --fetch --out bench/bench_coevolution_report.json).

Generated by Mistral Vibe.

avayaaggarwal and others added 2 commits December 3, 2026 16:59
…5->2026

Ten NASDAQ large caps, daily 2025-01-02..2026-12-01 from yfinance. GLM 5.3
proposes text-only with retrieval disabled on the 2025 window; harness and
strategy genomes then co-evolve with fitness strictly inside 2025, and 2026 is
scored once at the end.

The search works: 15 generations converge to 50/80, 5-bar hold, DD gate 0.25 at
2025 fitness 1.1164, which exhaustive enumeration confirms is the exact optimum.
It transfers to nothing. On 2026 the co-evolved pair scores -0.371 mean Sharpe
(2/10 names over 0.3) and GLM's top pick -0.470, while buy-and-hold earns +0.310.

Diagnostic: an oracle over the same 93 configs scored on 2026 finds only 4
positive, best +0.159. The strategy family failed in 2026, not the proposer, and
the co-evolution drifted to its most permissive genes (widest DD gate, slowest
hold) - the signature of fitting a gate that 2026 did not respect.

Includes bench/coevolve_dual_ma.py so the report is reproducible.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- coevolve_dual_ma.py: warm 2026 indicators on 2025 prices (was a cold start
  that flattered results); buy-and-hold uses the same Sharpe/drawdown
  convention; GLM proposals always seeded; strategy pool selected by fitness;
  oracle includes trend filter; per-proposal 2026 scores, fixed-harness
  control, --seed/--seed-sweep; guards for empty population and short windows
- bench_coevolution_report.json and the markdown regenerated; winner scores
  -0.589 on 2026 (was -0.371), still below buy-and-hold (+0.278)
@OnePunchMonk
OnePunchMonk merged commit e7dc9df into OnePunchMonk:main Dec 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants