feat: Add task generation from Tech Spec#1
Merged
MujahidAbbas merged 3 commits intomainfrom Dec 31, 2025
Merged
Conversation
Implement AI-powered task generation that creates Kanban-ready tasks from Technical Specification documents using Prism structured output. Core Features: - TaskSet model for tracking task generation batches with source version traceability - GenerateTasksFromTechSpec action to orchestrate the generation flow - GenerateTasksJob for async AI task generation with rate limiting and retries - TasksSchema for Prism structured output (title, description, category, priority, estimate) - Stale detection when Tech Spec is updated after task generation Database Changes: - create_task_sets_table migration linking tasks to source tech/prd versions - add_task_generation_fields_to_tasks_table migration (task_set_id, category, priority, source_refs) - TaskCategory enum (backend, frontend, db, infra, tests, docs) - TaskPriority enum (low, med, high) UI Improvements: - "Generate Tasks" button on Tech Spec tab - "Regenerate Tasks" button on Kanban with stale warning badge - Improved card design with priority left border colors (red/amber/gray) - Inline category and estimate badges - Custom task-badges Blade component - Published Flowforge views for card customization Technical Details: - Uses Flowforge lexicographic ranking (Rank service) for drag-and-drop positions - 12 feature tests covering action, stale detection, status, and relationships - AI prompts in resources/views/prompts/tasks/
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
TaskSetmodel to track which Tech Spec version tasks were generated from (traceability)Changes
Database
task_setstable linking task batches to source document versionstask_set_id,category,priority,source_refsfields to tasksModels & Enums
TaskSetmodel withisStale()detectionTaskCategoryenum (backend, frontend, db, infra, tests, docs)TaskPriorityenum (low, med, high)AI Generation
TasksSchemafor Prism structured output with dependency resolutionGenerateTasksJobwith rate limiting and retry logicGenerateTasksFromTechSpecaction orchestrating the generationUI
Testing
Test plan
./vendor/bin/pest tests/Feature/TaskGenerationTest.php- all 12 tests pass