Skip to content

[P3] Make sprint number configurable in planning automation #210

Description

@frankbria

Summary

The planning automation currently hardcodes sprint_number=1 when calling LeadAgent.generate_issues(). This should be configurable or derived from project state.

Location

codeframe/ui/routers/discovery.py:193

issues = await asyncio.to_thread(agent.generate_issues, sprint_number=1)

Suggested Solutions

  1. Derive from project state: Query the current/next sprint number from the database
  2. Pass as parameter: Allow sprint number to be specified in the PRD generation request
  3. Auto-increment: Track sprint count per project and auto-increment

Acceptance Criteria

  • Sprint number is no longer hardcoded to 1
  • Multi-sprint projects correctly generate issues for the appropriate sprint
  • Tests cover sprint number selection logic

Context

This was identified during code review of PR #205 (planning phase automation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-post-betaLow priority - can wait until after beta (v2.0)enhancementNew feature or requestv1-legacyV1-specific issue, retained as reference for Phase 3 UI rebuild

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions