Commit 1a15a27
authored
feat(tasks): richer task generation with recursive decomposition (#420)
## Summary
- Enhanced LLM task generation prompt to populate complexity_score, estimated_hours, uncertainty_level, depends_on, files_to_modify
- Added recursive decomposition engine: classify → decompose → recurse (inspired by tinyagi/fractals)
- New Task fields: parent_id, lineage, is_leaf, hierarchical_id
- ASCII tree display: `cf tasks tree` shows hierarchy with status icons
- Status propagation: children done → parent auto-completes
- Lineage context injected into agent prompts via ContextPackager
- `cf tasks generate --recursive [--max-depth N]` flag
- Backward compatible: `cf tasks generate` (without --recursive) still works
## Validation
- Tests: 51 new tests, 2357 v2 tests passing (0 regressions)
- CI: All checks green (Backend Tests, Code Quality, Security)
- Demo: Tree display, rich metadata, backward compat verified
Closes #4201 parent cf3fa89 commit 1a15a27
File tree
10 files changed
+1673
-32
lines changed- codeframe
- cli
- core
- tests
- cli
- core
10 files changed
+1673
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1550 | 1562 | | |
1551 | 1563 | | |
1552 | 1564 | | |
| |||
1555 | 1567 | | |
1556 | 1568 | | |
1557 | 1569 | | |
| 1570 | + | |
1558 | 1571 | | |
1559 | 1572 | | |
1560 | 1573 | | |
| |||
1585 | 1598 | | |
1586 | 1599 | | |
1587 | 1600 | | |
1588 | | - | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
1589 | 1617 | | |
| 1618 | + | |
1590 | 1619 | | |
1591 | 1620 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
| 1621 | + | |
1595 | 1622 | | |
1596 | 1623 | | |
1597 | 1624 | | |
| |||
1624 | 1651 | | |
1625 | 1652 | | |
1626 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1627 | 1683 | | |
1628 | 1684 | | |
1629 | 1685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
0 commit comments