How dobrinsm/darwin works
DARWIN ingests market and sentiment events, mines JSON strategy hypotheses, validates and evaluates them through a walk-forward gauntlet, optionally searches parameters for MUTATE verdicts, and paper-trades promoted strategies in its arena. The orchestrator owns the recurring workflow; the dashboard and daily digest expose results. Several subsystem links are supported by README documentation or the SOURCE INDEX rather than complete excerpts, so unsampled internal details are not expanded.
Main entry points: orchestrator.py Heartbeat orchestrator · gauntlet.py Walk-forward gauntlet · arena.py Paper-trading arena · bus.py Point-in-time event bus
Components 16
Data ingestion
- Feed collectors
darwin/collectors.py - History backfill
darwin/backfill.py - Point-in-time event bus
darwin/bus.py
Strategy research
- Heartbeat orchestrator
orchestrator.py - LLM strategy miner
darwin/miner.py - Strategy spec contract
darwin/spec_schema.py - Strategy population
specs - Backtest engine
darwin/engine.py - Walk-forward gauntlet
darwin/gauntlet.py - Mutation optimizer
darwin/optimizer.py
Paper trading
- Paper-trading arena
darwin/arena.py - Virtual book and trade log
darwin/arena.py
Operations and reporting
- Status dashboard
darwin/dashboard.py - Daily digest
digest.py
Other components
- Market data feeds
- Operator
Connections 22
- Market data feeds → Feed collectors: supply data
README.md - Feed collectors → Point-in-time event bus: publish events
darwin/collectors.py - History backfill → Point-in-time event bus: load history
darwin/backfill.py - Heartbeat orchestrator → Feed collectors: runs collection
orchestrator.py - Heartbeat orchestrator → LLM strategy miner: runs mining
orchestrator.py - Heartbeat orchestrator → Walk-forward gauntlet: runs evaluation
orchestrator.py - Heartbeat orchestrator → Mutation optimizer: runs mutations
orchestrator.py - Heartbeat orchestrator → Paper-trading arena: steps arena
orchestrator.py - LLM strategy miner → Point-in-time event bus: reads snapshot
README.md - LLM strategy miner → Strategy spec contract: validates proposals
README.md - LLM strategy miner → Strategy population: saves specs
README.md - Walk-forward gauntlet → Backtest engine: evaluates specs
darwin/gauntlet.py - Walk-forward gauntlet → Point-in-time event bus: loads market data
darwin/gauntlet.py - Walk-forward gauntlet → Strategy population: judges population
README.md - Mutation optimizer → Walk-forward gauntlet: tests candidates
darwin/optimizer.py - Mutation optimizer → Strategy population: persists children
README.md - Paper-trading arena → Backtest engine: compiles signals
darwin/arena.py - Paper-trading arena → Point-in-time event bus: reads events
darwin/arena.py - Paper-trading arena → Virtual book and trade log: records positions
README.md - Status dashboard → Paper-trading arena: reads live specs
darwin/dashboard.py - Operator → Status dashboard: views status
README.md - Operator → Daily digest: reads summary
README.md