Skip to content

feat(twin): add AlphaEvolve-style ensemble runner, subprocess verifier, and DPO trace exporter - #46

Merged
saariuslystoned merged 4 commits into
mainfrom
feat/alphaevolve-runner
Nov 30, 2026
Merged

saariuslystoned merged 4 commits into
mainfrom
feat/alphaevolve-runner

Conversation

@saariuslystoned

Copy link
Copy Markdown
Contributor

Summary

  • Add clean-room AlphaEvolve-style evolutionary runner (python/freesilicon_twin/evolve_runner.py) layered over MapElitesArchive:
    • SubprocessEvaluator: runs deterministic verifier/benchmark scripts inside isolated temporary directories with timeout enforcement and structured JSON verdict parsing.
    • EnsembleMutator + OpenAICompatDiffMutator + apply_diff_blocks: cheap/breadth mutations by default with automatic frontier crossover escalation only when an island emits stagnation_escalate (using its top-2 diverse niche parents).
    • DpoTraceExporter: optional verified JSONL trace writer emitting (prompt, chosen, rejected, fitness_delta, niche) only when a child passes all checks and strictly beats its parent.
  • Wire freesilicon-twin evolve-run CLI subcommand (python/freesilicon_twin/cli.py) and SDK exports (python/freesilicon_twin/__init__.py).

Verification

  • python3 -m unittest discover -s tests -v: 41 tests ran in 1.157s (38 passed, 3 skipped for optional unbuilt C++ binaries).
  • ./scripts/clean-room-audit.sh: PASSED across 115 files (0 errors).
  • ./twin/freesilicon-twin evolve-run --target iq9075 --budget 28 --islands 4: verified end-to-end fitness lift, stagnation crossover escalation, and DPO export.

@saariuslystoned
saariuslystoned merged commit c9025d5 into main Nov 30, 2026
5 checks passed
@saariuslystoned
saariuslystoned deleted the feat/alphaevolve-runner branch November 30, 2026 03:35
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.

1 participant