Implement Roadmap-First Retrieval and Enhance Planning AI Features
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m26s
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m26s
- Introduced a roadmap-first approach for retrieval, allowing for structured exercise suggestions based on stage specifications and major steps. - Added functionality to generate gap-fill offers for unfilled roadmap stages, improving the relevance of exercise recommendations. - Updated the `ExerciseProgressionPathBuilder` to support the new roadmap-first feature, enhancing user experience with clearer exercise paths. - Incremented application version to 0.8.206 and updated the database schema version to reflect these changes.
This commit is contained in:
1 parent
7411543a97
commit
d4e9bded23
10 files changed
+431
-52
No files matched your search
@@ -1,5 +1,10 @@
|
||||
"""Tests Planungs-KI Phase C3/E — Pfad-Vorschläge."""
|
||||
from planning_exercise_path_builder import _pick_best_path_hit, _hit_to_path_step
|
||||
"""Tests Planungs-KI Phase C3/E/F — Pfad-Vorschläge."""
|
||||
from planning_exercise_path_builder import (
|
||||
_annotate_roadmap_step,
|
||||
_hit_to_path_step,
|
||||
_pick_best_path_hit,
|
||||
)
|
||||
from planning_progression_roadmap import MajorStep, StageSpecArtifact
|
||||
|
||||
|
||||
def test_pick_next_path_hit_skips_used():
|
||||
@@ -23,3 +28,17 @@ def test_hit_to_path_step_maps_variant():
|
||||
assert step["exercise_id"] == 10
|
||||
assert step["variant_id"] == 7
|
||||
assert step["suggested_variant_name"] == "Leicht"
|
||||
|
||||
|
||||
def test_annotate_roadmap_step_adds_metadata():
|
||||
spec = StageSpecArtifact(major_step_index=1, learning_goal="Grundstellung Mae Geri")
|
||||
major = MajorStep(index=1, phase="grundlage", learning_goal=spec.learning_goal, consolidates=["m1"])
|
||||
step = _annotate_roadmap_step(
|
||||
{"exercise_id": 5, "title": "Test", "reasons": ["Bibliothek"]},
|
||||
stage_spec=spec,
|
||||
major_step=major,
|
||||
)
|
||||
assert step["roadmap_major_step_index"] == 1
|
||||
assert step["roadmap_phase"] == "grundlage"
|
||||
assert step["roadmap_match_source"] == "stage_spec"
|
||||
assert any("Roadmap:" in r for r in step["reasons"])
|
||||
Reference in new issue
Block a user