Epic 5.5: Extract evolution engines to loop.py + strategies.py#43
Merged
Conversation
Extract 6 methods (~670 lines) from evolver.py into evolution/ package: evolution/loop.py (~300 lines): - run_evolution_loop: token-driven LLM agent loop - parse_evolution_output: extract edit content or failure reason - apply_with_retry: apply edit with retry + validation + recording - Constants: _MAX_EVOLUTION_ITERATIONS, _MAX_EVOLUTION_ATTEMPTS evolution/strategies.py (~340 lines): - evolve_fix: in-place fix (same dir, new version) - evolve_derived: enhanced version (new dir, merge support) - evolve_captured: brand-new skill from pattern evolver.py: 1022 -> 370 lines (thin delegates, MRO preserved) All internal calls go through evolver._method() for subclass compat. Unused imports cleaned up (copy, json, re, shutil, uuid, etc.) EvolutionTrigger re-exported for backward compat. 45 new tests (29 loop + 16 strategies); 1,562 total pass, 127 skipped. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
8eyes-impl R1: removed SkillEnginePrompts, _RECORDING_MAX_CHARS, _SKILL_CONTENT_MAX_CHARS, _truncate unused imports from evolver.py. GPT-5.4 R1: added SkillRecord field assertions to evolve_fix test (origin, generation, parent_ids, source_task_id, tool_deps). 1,562 total pass, 127 skipped. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
🔒 Phase Gate Enforcement — 🚫 FAIL
Verdict: FAIL
|
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.
Epic 5.5 - Extract Evolution Engines
The largest extraction in P5: 670 lines from evolver.py into 2 new modules.
New Modules
evolver.py
Tests
Review: /8eyes + /collab (4 agents)