Skip to content

Conversation

@MujahidAbbas
Copy link
Owner

Summary

  • Adds AI-powered task generation from Tech Spec documents using Prism structured output
  • Creates TaskSet model to track which Tech Spec version tasks were generated from (traceability)
  • Implements stale detection - warns when tasks are outdated (Tech Spec updated since generation)
  • Improves Kanban card UI with priority-based left borders and inline category/estimate badges

Changes

Database

  • New task_sets table linking task batches to source document versions
  • Added task_set_id, category, priority, source_refs fields to tasks

Models & Enums

  • TaskSet model with isStale() detection
  • TaskCategory enum (backend, frontend, db, infra, tests, docs)
  • TaskPriority enum (low, med, high)

AI Generation

  • TasksSchema for Prism structured output with dependency resolution
  • GenerateTasksJob with rate limiting and retry logic
  • GenerateTasksFromTechSpec action orchestrating the generation

UI

  • Tech Spec tab: "Generate Tasks" button
  • Kanban board: Stale badge, regenerate button, improved card design
  • Priority-based left border colors (red=high, amber=med, gray=low)
  • Inline category and estimate badges

Testing

  • 12 tests covering action, stale detection, status, and relationships

Test plan

  • Run ./vendor/bin/pest tests/Feature/TaskGenerationTest.php - all 12 tests pass
  • Manual test: Generate tasks from existing Tech Spec
  • Manual test: Update Tech Spec and verify stale badge appears
  • Manual test: Regenerate tasks from updated Tech Spec

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/
@MujahidAbbas MujahidAbbas merged commit 9a1fc2c into main Dec 31, 2025
2 checks passed
@MujahidAbbas MujahidAbbas deleted the feature/task-generation branch December 31, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants