Skip to content

Add integration tests for discovery system #85

@kivo360

Description

@kivo360

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:

  1. Test discovery creation during task execution
  2. Test discovery-based task spawning (branch tasks bypass normal phase order)
  3. Test the Hephaestus pattern: Phase 3 agent spawns Phase 1 investigation tasks
  4. Test DiscoveryAnalyzerService pattern recognition with mock LLM

Reference: docs/architecture/03-discovery-system.md

Difficulty: Medium | Skill: Python (pytest, async)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions