feat(research): Add research module with manual retry, resume, and lifecycle states#186
Open
dakshmhatre434-ops wants to merge 3 commits into
Open
Conversation
- Add distinct 'cancelled' terminal state (was conflated with 'completed') - Add resumeSession() for cancelled/failed sessions - Add manual retryTask() with UI button (replaces automatic retry) - Add POST /tasks/:taskId/retry endpoint - Fix agent adapter type: 'claude' -> 'claude_local' with command config - Add migration 0095 for cancelled/cancelling enum values - Fix migration 0094 IF NOT EXISTS for idempotent installs
…fecycle states - Add research sessions, tasks, findings, sources, and memory tables - Add research engine with plan generation, task execution, and report generation - Add manual retryTask() with UI button - Add resumeSession() for cancelled/failed sessions - Add distinct cancelled/cancelling terminal states - Add POST /tasks/:taskId/retry endpoint - Add research routes and services - Add DB schema exports and shared validators - Fix migration journal for 0094 and 0095
…fecycle states - Add research sessions, tasks, findings, sources, and memory tables - Add research engine with LLM integration and search providers - Add research routes and service layer - Add shared validators for research schemas - Add research config properties (search provider, LLM model, API keys) - Support mock search provider for development - Include migration journal entries for research tables
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
This PR adds a comprehensive research module to Levi, enabling AI-powered research sessions with manual retry/resume capabilities and full lifecycle state management.
Features
Technical Changes
Configuration
New environment variables:
Testing
Notes