fix: update GEPA construction for DSPy 3#56
Closed
steezkelly wants to merge 1 commit into
Closed
Conversation
Author
|
Closing this PR in favor of consolidated PR #68. Local integration found real helper-block overlap in evolution/skills/evolve_skill.py across the stack, and #68 preserves local test evidence: targeted stack tests 41 passed; full suite 164 passed; GitHub checks were absent on the split PRs. Review #68 instead. |
This was referenced May 9, 2026
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.
Summary
Fixes DSPy 3.x GEPA construction for skill evolution:
max_stepsargument fromdspy.GEPA(...)optimizer_modelparametermax_metric_callsas the DSPy 3.x optimization budget_create_gepa_optimizer(...)so future DSPy API drift is easier to testmax_stepsis not passed,reflection_lmis set, and zero iterations clamp to at least one metric callRoot cause
DSPy >=3.1 removed
max_stepsfrom GEPA and requires a reflection LM or instruction proposer. The previous code always raised during GEPA construction and silently fell back to MIPROv2.Test Plan
pytest tests/skills/test_evolve_skill_gepa.py -qpytest -qinspect.signature(dspy.GEPA)confirmsmax_stepsis absent andmax_metric_calls/reflection_lmare presentResult: 141 passed, 11 warnings (DSPy deprecation warnings only).
Closes #10