Feat/goal scoped recommendations#40
Merged
Merged
Conversation
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
Completes the Module 2 → Module 3 pipeline by connecting goal-scoped activity signals to the LangGraph recommendation engine. The AI now evaluates only the signals belonging to a specific goal and generates SMILE phase advancement recommendations.
store.list_signals()insrc/lpi/store.pyto support optionalgoal_idfiltering while preserving existing behavior for all current callers.src/lpi/langgraph_agent.pyso the LLM analyzes activity signals for a single goal instead of the user's entire portfolio and recommends SMILE phase advancement when appropriate.POST /api/v1/recommendations/{user_id}/by-goal/{goal_id}insrc/lpi/routers/recommendations.py. Validates goal ownership, fetches goal-specific signals, runs LangGraph, and returns up to three prioritized recommendations.sync_github_eventsinsrc/lpi/routers/signals.pyto prevent users from syncing GitHub activity to goals they do not own.Type
Checklist
Tests passing
tests/test_recommendations_goal_scoped.py(8 new tests)tests/test_recommendations.py(28 passed)tests/test_activity_signals.py(21 passed)tests/test_scoring.py(48 passed)tests/test_smoke.py(3 passed)Context.docx