Problem
The discovery system — which enables adaptive workflow branching when agents find new work — has no integration tests:
DiscoveryService — Core discovery tracking and task spawning
DiscoveryAnalyzerService — LLM-powered pattern analysis and blocker prediction
What to do
Create backend/tests/integration/test_discovery_integration.py:
- Test discovery creation during task execution
- Test discovery-based task spawning (branch tasks bypass normal phase order)
- Test the Hephaestus pattern: Phase 3 agent spawns Phase 1 investigation tasks
- Test
DiscoveryAnalyzerService pattern recognition with mock LLM
Reference: docs/architecture/03-discovery-system.md
Difficulty: Medium | Skill: Python (pytest, async)
Problem
The discovery system — which enables adaptive workflow branching when agents find new work — has no integration tests:
DiscoveryService— Core discovery tracking and task spawningDiscoveryAnalyzerService— LLM-powered pattern analysis and blocker predictionWhat to do
Create
backend/tests/integration/test_discovery_integration.py:DiscoveryAnalyzerServicepattern recognition with mock LLMReference:
docs/architecture/03-discovery-system.mdDifficulty: Medium | Skill: Python (pytest, async)