Repository navigation
Bench: co-evolving harness and strategy on GLM 5.3 proposals (2025 search -> 2026 test) - #59
Merged
OnePunchMonk merged 2 commits intoDec 3, 2026
Conversation
…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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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:
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_searchfalse; run manifest recordstool_calls: 0.0), but disabling retrieval does not remove memorised knowledge —zai-glm-5-3is absent fromsrc/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, andbench/coevolve_dual_ma.py(reproduce withpython -m bench.coevolve_dual_ma --fetch --out bench/bench_coevolution_report.json).Generated by Mistral Vibe.