Commit Graph
10 Commits
Author SHA1 Message Date
Renn F 16dda8134b Task sequence and RAG LLM improvements 2026-01-01 22:15:23 +01:00
Renn F 3c439d4673 Added tasks sequence 2025-12-31 21:42:58 +01:00
Renn F 22d1401020 First git integration implementation + KB fixes and upgrades 2025-12-30 18:55:32 +01:00
Renn F 0a5988a18f Added serious RAG capabilties 2025-12-30 02:35:58 +01:00
Renn F afde0d5441 Fixed issues reported by agents 2025-12-24 04:23:16 +01:00
Renn F 1753f5c9e6 Improved workflow. Ready for git, figma, etc; AND BIGGER TESTS 2025-12-23 04:39:46 +01:00
Renn F b7611c24fc feat(sessions): Session-Task linking with scoped context management
Major feature: Sessions are now linked to tasks with smart routing and context loading, ensuring agents have proper discussion context.

## Session-Task Relationship (Many-to-Many)
  - Added SessionTaskTable junction table linking sessions to tasks
  - Sessions can link to multiple tasks, tasks can have multiple sessions
  - is_primary flag marks the main discussion session for a task
  - relationship_type: discussion, planning, review, retrospective
  - Subtasks auto-inherit parent task's session

## BACKLOG Status + Activation Flow
  - Tasks now created with BACKLOG status (not PENDING)
  - PMs must create session BEFORE activating task
  - roboco_task_activate() transitions BACKLOG → PENDING
  - Prevents race condition where dev starts before session exists
  - Flow: CREATE (backlog) → SESSION → ACTIVATE (pending) → spawn

## Session Scopes
  - SessionScope enum: initiative, cell, task
  - initiative: Cross-cell coordination (Main PM, #dev-all)
  - cell: Cell-specific work (Cell PM default)
  - task: Individual task execution (dev level)
  - Enables future smart context loading by scope

## Message Routing to Task Sessions
  - When task_id provided in roboco_message_send(), routes to task's primary session instead of channel's active session
  - New API endpoint: GET /sessions/for-task/{task_id}
  - TaskResponse now includes linked sessions array

## Dev Session Access
  - New tool: roboco_session_history_for_task(task_id)
  - Devs can now see their task's discussion history
  - Messages tagged with task_id for filtering

## Communication Guidelines
  - Added "When to Post / When NOT to Post" to all 9 agent blueprints
  - Devs/QA/Doc should use task tools for status, journal for reasoning
  - Sessions reserved for coordination that needs response
  - Reduces noise: no "Starting work" or "Made progress" chat messages

Files changed:
  - DB: SessionTaskTable, SessionScope column
  - Services: messaging.py (linking), task.py (activation)
  - MCP: 5 new session tools, message routing update
  - API: session-task endpoints, TaskResponse sessions
  - Blueprints: All 13 updated with session/activation workflow
2025-12-22 18:04:31 +01:00
Renn F d570334e04 Linting: Check 2025-12-12 02:45:47 +01:00
Renn F 7f5bc4b8b8 Checkpoint before cleanup + best practices + code quality 2025-12-10 17:35:43 +01:00
Renn F 0c5dac4d16 Initial implementation 2025-12-10 02:49:54 +01:00