ID:WORK-031Status:done
plan next Command
Priority:highComplexity:moderateSource:SPEC-022
plan next CommandNo incremental history — criteria tracking started on Apr 21.
Dependency-aware work item selection. Finds the highest-priority ready item, skipping items whose dependencies aren't complete. This is the entry point of the AI agent workflow — refrakt plan next --format json tells the agent what to work on.
status="ready" and bugs with status="confirmed"done or fixed--milestone <name> scopes results to a specific milestone--tag <tag>, --assignee <name>, --type work|bug|all filters work correctly--count N returns top N items (default: 1)--format json outputs structured data including criteria list, referenced specs, dependencies, and file pathUse the scanner (WORK-028) to get all entities. Build a status lookup map (ID → status). Filter work/bug items by ready status, then exclude those with unfinished dependencies. Sort and slice. For JSON output, include the full criteria list and spec references.