Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EvoMap/evolver/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Evolution strategies control the balance between repair, optimize, and innovate intents. They inform the selector logic and adjust the circuit breaker behavior.src/gep/strategy.js
Strategy Presets
balanced (Default)
Normal operation. Steady growth with stability.- 20% repair: Fix critical errors
- 30% optimize: Refactor and improve existing code
- 50% innovate: Add new features
- Circuit breaker: Triggers when >50% of last 8 cycles were failed repairs
- Production systems with moderate error rates
- Continuous improvement workflows
- Default for most use cases
innovate
System is stable. Maximize new features and capabilities.- 5% repair: Minimal firefighting
- 15% optimize: Minor improvements
- 80% innovate: Aggressive feature development
- Circuit breaker: Very sensitive (30% repair ratio triggers innovation)
- After a successful hardening phase
- Low error rate environments
- Rapid prototyping
harden
After a big change. Focus on stability and robustness.- 40% repair: Fix bugs introduced by recent changes
- 40% optimize: Improve reliability and performance
- 20% innovate: Limited new features
- Circuit breaker: Tolerates more repair cycles (70% threshold)
- After major feature releases
- Post-incident recovery
- Before production deployment
repair-only
Emergency. Fix everything before doing anything else.- 80% repair: Focus on fixing errors
- 20% optimize: Refactor broken code
- 0% innovate: NO new features
- Circuit breaker: Never triggers (allows indefinite repair cycles)
- Incident response
- Critical production issues
- High error rate environments (>50% of logs are errors)
early-stabilize
First cycles. Prioritize fixing existing issues before innovating.- 60% repair: Fix initial bugs
- 25% optimize: Improve existing code
- 15% innovate: Small feature additions
- Circuit breaker: High tolerance (80% threshold)
- First 5 evolution cycles (auto-applied)
- New workspace setup
- After major refactoring
src/gep/strategy.js:100-104
steady-state
Evolution saturated. Maintain existing capabilities. Minimal innovation.- 60% repair: Keep system healthy
- 30% optimize: Gradual improvements
- 10% innovate: Rare new features
- Circuit breaker: Very high tolerance (90% threshold)
- Long-running production systems
- After reaching desired feature set
- Low change environments
evolution_saturation or force_steady_state signals.
Location: src/gep/strategy.js:107-111
auto
Adaptive strategy selection based on cycle count and saturation signals.- Cycles 1-5: Apply
early-stabilize - Saturation detected: Apply
steady-state - Otherwise: Use
balanced
force_steady_stateevolution_saturation
src/gep/strategy.js:85-119
Intent Balancing
Strategies inform the selector via intent allocation ratios. The selector scores genes based on category match:Circuit Breaker
The circuit breaker detects repair loops and forces innovation to break the cycle.How it works
- Read last N events from
events.jsonl(default: 3) - Check if all are failed repairs with the same gene
- If true and streak ≥ threshold: set
FORCE_INNOVATION=true - Selector switches to innovation intent
src/evolve.js:787-811
Thresholds by strategy
| Strategy | Repair Loop Threshold |
|---|---|
balanced | 0.50 (50%) |
innovate | 0.30 (30%) |
harden | 0.70 (70%) |
repair-only | 1.00 (never triggers) |
early-stabilize | 0.80 (80%) |
steady-state | 0.90 (90%) |
balanced strategy, if 4 out of last 8 cycles were failed repairs (50%), the circuit breaker forces innovation.
Backward Compatibility
FORCE_INNOVATION
Legacy environment variable. Maps toinnovate strategy.
src/gep/strategy.js:90-93
Usage Examples
Production hardening after release
Emergency incident response
Rapid prototyping
Adaptive long-term operation
Custom Strategies
To define custom strategies, editsrc/gep/strategy.js:
Strategy Selection Flow
Best Practices
- Start with auto: Let the evolver adapt to your workspace lifecycle
- Monitor circuit breaker: Frequent forced innovation indicates gene quality issues
- Use repair-only sparingly: Only for emergencies
- Harden after innovation sprints: Stabilize before returning to balanced
- Review strategy every 50 cycles: Adjust based on outcome success rates
Troubleshooting
Strategy not applied
Check ifFORCE_INNOVATION or circuit breaker is overriding your setting:
Too many repairs
Switch toharden or repair-only:
Stuck in repair loop
Circuit breaker should auto-trigger. If not, checkrepairLoopThreshold: