fix: use LLM judge feedback for skill fitness#57
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 #12 by wiring the existing rubric-based LLM judge into the skill optimization metric:
skill_fitness_metric(...)use the currently configured DSPy LM as the primary judgedspy.Prediction(score=float, feedback=str)so GEPA can use reflective feedback instead of generic score-only feedbackfloat(...)Root cause
The codebase already had
LLMJudge, but the actual optimizer metric still used only keyword overlap. That produced a narrow and easily gamed objective and deprived GEPA of actionable feedback.Test Plan
pytest tests/core/test_fitness.py -qfailed before_score_with_llm_judgeexistedpytest tests/core/test_fitness.py -qpytest -qdspy.Prediction(...),float(prediction)works, and fallback feedback is populatedgit diff --checkResult: 142 passed, 11 warnings (DSPy deprecation warnings only).
Closes #12