v1.80.4
EvoMap/evolverv1.80.4May 8, 2026by autogame-17
AI Summary
Internal refactoring to improve stability and testability by introducing a central gene factory and modularizing the evolve pipeline.
Key Highlights
- Introduced `createGene()` and `validateGene()` as a single source of truth for the Gene object shape.
- Cloned array fields on every gene instance to prevent cross-gene contamination bugs.
- Extracted Stage 4 (hub) and Stage 5 (enrich) into dedicated modules.
- Reduced main file size from ~700 lines to a thin orchestrator.
New Features
- Introduced `createGene()` and `validateGene()` factory functions
- Modularized evolve pipeline stages
Full Release Notes
## What's Changed ### Internal refactor - **Gene schema factory** (`src/gep/schemas/gene.js`): introduced `createGene()` and `validateGene()` as a single source of truth for the Gene object shape. All array fields (`signals_match`, `strategy`, `validation`, `preconditions`, `epigenetic_marks`, `learning_history`, `anti_patterns`) and `constraints.forbidden_paths` are now freshly cloned on every gene instance, eliminating a class of cross-gene contamination bugs where downstream `.push()` calls could leak between gene objects. - **Evolve pipeline modularization**: Stage 4 (hub) and Stage 5 (enrich) are now extracted into dedicated modules under `src/evolve/pipeline/`, reducing `src/evolve.js` from ~700 lines to a thin orchestrator and making each stage independently testable. - Migrated `solidify.js`, `assetStore.js`, and `skillDistiller.js` to use `createGene()` for gene construction and normalization. ### Tests - 21 new unit tests for the Gene schema factory (defaulting, normalization, idempotency, mutation isolation, validator errors). - New integration tests for the extracted pipeline stages (`evolveEnrich`, `evolveHub`). - Full suite: 1309 / 1309 tests passing. Internal improvements and stability enhancements.