Enhance Stage Specification Refinement and Rematch Logic
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m22s

- Updated `max_rematch_rounds` in `ProgressionPathSuggestRequest` to allow for a maximum of 3 rounds, improving flexibility in rematch processes.
- Introduced `_track_rejected` function to track rejected exercises by major step index, enhancing the rematch logic to account for previously rejected exercises.
- Enhanced `_run_roadmap_rematch_loop` to utilize the new rejection tracking, ensuring better handling of off-topic steps during rematching.
- Improved `detect_off_topic_steps` to incorporate refined scoring and reasoning for stage fit, enhancing the accuracy of off-topic detection.
- Updated `refine_stage_spec_artifact` to merge stage exclusion phrases more effectively, improving the clarity of anti-pattern handling.
- Bumped version to 0.8.228 to reflect the new features and improvements.
This commit is contained in:
Lars committed 2026-06-11 22:11:31 +02:00
1 parent f36a747efa
commit a49987408b
9 files changed
+269 -74

No files matched your search

+4 -1
View File
@@ -113,7 +113,10 @@ export function formatRefineLogEntry(entry) {
}
export function hasRematchSlotHints(pathQa) {
return (pathQa?.optimization_hints || []).some((h) => h?.action === 'rematch_slot')
return (pathQa?.optimization_hints || []).some((h) => {
const action = h?.action
return action === 'rematch_slot' || action === 'refine_stage_spec'
})
}
function createEmptySlot(index) {