sublime_pkg_tools 0.0.1

Package and version management toolkit for Node.js projects with changeset support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
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
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
# sublime_pkg_tools - Development Story Map

**Version**: 1.0  
**Based on**: PLAN.md v1.0  
**Last Updated**: 2024-01-15  
**Status**: 📋 Ready for Development

---

## Table of Contents

1. [Story Map Overview]#story-map-overview
2. [Effort Metrics Definition]#effort-metrics-definition
3. [Epic 1: Project Foundation]#epic-1-project-foundation
4. [Epic 2: Configuration System]#epic-2-configuration-system
5. [Epic 3: Error Handling]#epic-3-error-handling
6. [Epic 4: Core Types]#epic-4-core-types
7. [Epic 5: Versioning Engine]#epic-5-versioning-engine
8. [Epic 6: Changeset Management]#epic-6-changeset-management
9. [Epic 7: Changes Analysis]#epic-7-changes-analysis
10. [Epic 8: Changelog Generation]#epic-8-changelog-generation
11. [Epic 9: Dependency Upgrades]#epic-9-dependency-upgrades
12. [Epic 10: Audit & Health Checks]#epic-10-audit--health-checks
13. [Epic 11: Integration & Documentation]#epic-11-integration--documentation

---

## Story Map Overview

### Epic Breakdown

```
Phase 1: Foundation (Weeks 1-3)
├── Epic 1: Project Foundation
├── Epic 2: Configuration System
├── Epic 3: Error Handling
└── Epic 4: Core Types

Phase 2: Core Functionality (Weeks 4-7)
├── Epic 5: Versioning Engine
├── Epic 6: Changeset Management
└── Epic 7: Changes Analysis

Phase 3: Advanced Features (Weeks 8-10)
├── Epic 8: Changelog Generation
└── Epic 9: Dependency Upgrades

Phase 4: Integration & Polish (Weeks 11-12)
├── Epic 10: Audit & Health Checks
└── Epic 11: Integration & Documentation
```

### Total Story Count
- **Epics**: 11
- **User Stories**: 67
- **Tasks**: 342+

---

## Effort Metrics Definition

### Effort Levels

| Level | Time Estimate | Complexity | Examples |
|-------|--------------|------------|----------|
| **Minimal** | 1-2 hours | Trivial | Simple struct, basic export, straightforward test |
| **Low** | 3-6 hours | Simple | Single function implementation, basic error type, simple validation |
| **Medium** | 1-2 days | Moderate | Complex algorithm, multiple integration points, comprehensive testing |
| **High** | 3-5 days | Complex | Core module implementation, advanced logic, extensive edge cases |
| **Massive** | 1-2 weeks | Very Complex | Complete subsystem, multiple dependencies, full integration |

### Estimation Guidelines

**Minimal (1-2h)**:
- Creating simple data structures
- Adding basic exports
- Writing straightforward tests
- Simple documentation updates

**Low (3-6h)**:
- Implementing single functions with clear logic
- Creating basic error types
- Writing unit tests for simple functions
- Adding module-level documentation

**Medium (1-2d)**:
- Implementing algorithms with moderate complexity
- Creating trait implementations
- Writing comprehensive test suites
- Integration with external crates

**High (3-5d)**:
- Implementing core business logic modules
- Complex algorithm implementations (e.g., circular dependency detection)
- Full test coverage with edge cases
- API design and documentation

**Massive (1-2w)**:
- Complete subsystem implementation
- Multiple module integration
- Performance optimization
- Comprehensive documentation and examples

---

## Epic 1: Project Foundation

**Phase**: 1  
**Total Effort**: Medium  
**Dependencies**: None  
**Goal**: Establish the basic project structure and development environment

### Story 1.1: Initialize Crate Structure
**Effort**: Low  
**Priority**: Critical

**As a** developer  
**I want** the basic crate structure initialized  
**So that** I can start implementing modules following the standard patterns

**Description**:
Set up the foundational project structure following `sublime_standard_tools` patterns. This includes directory structure, Cargo.toml configuration, and basic file scaffolding.

**Tasks**:
1. Create `Cargo.toml` with all dependencies
   - Add internal crates (standard, git)
   - Add external dependencies (tokio, serde, etc.)
   - Configure features and metadata
   - **Effort**: Minimal

2. Create `src/lib.rs` with crate documentation
   - Add clippy rules
   - Add crate-level documentation
   - Implement `version()` function
   - Include CONCEPT.md in docs
   - **Effort**: Low

3. Create module directory structure
   - Create all module directories
   - Add empty `mod.rs` files
   - Setup proper module exports
   - **Effort**: Minimal

4. Configure development tools
   - Setup `.cargo/config.toml`
   - Add `rustfmt.toml`
   - Configure clippy settings
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] `Cargo.toml` contains all required dependencies
- [ ] Project compiles without errors
- [ ] `cargo fmt` runs successfully
- [ ] `cargo clippy` runs successfully (may have warnings at this stage)
- [ ] `lib.rs` has crate-level documentation
- [ ] `version()` function returns correct version
- [ ] All module directories created
- [ ] Module structure follows `sublime_standard_tools` patterns

**Definition of Done**:
- [ ] Code compiles
- [ ] Clippy passes (allowing some warnings for empty modules)
- [ ] Basic documentation in place
- [ ] PR approved and merged

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 1.2: Setup CI/CD Pipeline
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** automated CI/CD pipelines configured  
**So that** code quality is enforced automatically

**Description**:
Configure GitHub Actions (or equivalent) to run automated checks on every commit and PR. This ensures consistent code quality and prevents regressions.

**Tasks**:
1. Create CI workflow for tests
   - Setup matrix for OS (Ubuntu, macOS, Windows)
   - Setup matrix for Rust versions (stable, nightly)
   - Configure test execution
   - **Effort**: Low

2. Create CI workflow for code quality
   - Add `cargo fmt` check
   - Add `cargo clippy` check
   - Add `cargo doc` check
   - **Effort**: Minimal

3. Setup code coverage pipeline
   - Install and configure tarpaulin
   - Upload coverage to codecov
   - Add coverage badge
   - Add 100% coverage requirement check
   - **Effort**: Medium

4. Create PR templates and guidelines
   - Add PR template
   - Add contributing guidelines
   - Document commit message format
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] CI runs on push and PR
- [ ] Tests run on all platforms (Ubuntu, macOS, Windows)
- [ ] Tests run on stable and nightly Rust
- [ ] `cargo fmt --check` enforced
- [ ] `cargo clippy -- -D warnings` enforced
- [ ] Coverage report generated and uploaded
- [ ] PR template available
- [ ] All checks must pass before merge

**Definition of Done**:
- [ ] CI pipeline executes successfully
- [ ] All quality checks pass
- [ ] Coverage reporting works
- [ ] Documentation updated

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 1.3: Setup Testing Infrastructure
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** testing infrastructure and helpers in place  
**So that** I can write comprehensive tests efficiently

**Description**:
Create reusable test utilities, mock implementations, and test fixtures that will be used across all modules.

**Tasks**:
1. Create test helpers module
   - Create `tests/common/mod.rs`
   - Add filesystem mock utilities
   - Add git mock utilities
   - Add assertion helpers
   - **Effort**: Medium

2. Create test fixtures
   - Create sample monorepo structure
   - Create sample single-package structure
   - Add sample package.json files
   - Add sample config files
   - **Effort**: Low

3. Setup mock implementations
   - Create `MockFileSystem` struct
   - Create `MockGitRepository` struct
   - Create `MockRegistry` struct
   - Implement required traits
   - **Effort**: High

4. Add property-based testing setup
   - Add proptest dependency
   - Create version property generators
   - Create commit message generators
   - Add example property tests
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Test helpers module accessible from all tests
- [ ] Mock implementations available
- [ ] Test fixtures in `tests/fixtures/`
- [ ] Proptest generators working
- [ ] Example tests using helpers pass
- [ ] Documentation for test utilities complete

**Definition of Done**:
- [ ] Test infrastructure compiles
- [ ] Example tests pass
- [ ] Documentation complete
- [ ] Ready for use in module tests

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 2: Configuration System

**Phase**: 1  
**Total Effort**: High  
**Dependencies**: Epic 1  
**Goal**: Implement complete configuration system with validation and defaults

### Story 2.1: Define Configuration Structure
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** all configuration structures defined  
**So that** modules can access their configuration consistently

**Description**:
Define all configuration structs, enums, and types that will be used across the crate. This includes the main `PackageToolsConfig` and all sub-configurations.

**Tasks**:
1. Create `src/config/types.rs`
   - Define `PackageToolsConfig` struct
   - Add all configuration fields
   - Implement `Default` trait
   - Add serde derives
   - **Effort**: Low

2. Create `src/config/changeset.rs`
   - Define `ChangesetConfig` struct
   - Add path, history_path, environments
   - Implement `Default` with sensible values
   - Add documentation
   - **Effort**: Minimal

3. Create `src/config/version.rs`
   - Define `VersionConfig` struct
   - Define `VersioningStrategy` enum
   - Define `DependencyConfig` struct
   - Add all propagation settings
   - Implement defaults
   - **Effort**: Low

4. Create `src/config/git.rs`
   - Define `GitConfig` struct
   - Add merge commit templates
   - Add breaking warning templates
   - Implement defaults
   - **Effort**: Minimal

5. Create `src/config/changelog.rs`
   - Define `ChangelogConfig` struct
   - Define `ConventionalConfig` struct
   - Define format enums
   - Implement defaults
   - **Effort**: Low

6. Create `src/config/upgrade.rs`
   - Define `UpgradeConfig` struct
   - Define `RegistryConfig` struct
   - Define `BackupConfig` struct
   - Implement defaults
   - **Effort**: Low

7. Create `src/config/audit.rs`
   - Define `AuditConfig` struct
   - Define all audit section configs
   - Implement defaults
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] All config structs defined
- [ ] All configs implement `Default`
- [ ] All configs implement `Serialize` and `Deserialize`
- [ ] All configs have field documentation
- [ ] Default values match CONCEPT.md specifications
- [ ] Structs use `pub(crate)` for internal fields appropriately
- [ ] Clippy passes without warnings
- [ ] All configs accessible via `PackageToolsConfig`

**Definition of Done**:
- [ ] All config files compile
- [ ] Defaults instantiate correctly
- [ ] Serialization/deserialization works
- [ ] Documentation complete
- [ ] Tests written and passing

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 2.2: Implement Configuration Loading
**Effort**: High  
**Priority**: Critical

**As a** user of the library  
**I want** to load configuration from files  
**So that** I can customize behavior without code changes

**Description**:
Implement configuration loading from TOML/YAML/JSON files using the `sublime_standard_tools` ConfigManager. Support environment variable overrides and validation.

**Tasks**:
1. Implement `Configurable` trait
   - Implement for `PackageToolsConfig`
   - Add validation logic
   - Add merge logic
   - **Effort**: Medium

2. Create configuration loader
   - Integrate with `ConfigManager`
   - Support multiple file formats
   - Add file path resolution
   - **Effort**: Medium

3. Implement environment variable overrides
   - Parse env vars with `SUBLIME_PKG_` prefix
   - Map to config fields
   - Apply overrides correctly
   - **Effort**: Medium

4. Add configuration validation
   - Create `src/config/validation.rs`
   - Validate paths exist
   - Validate enum values
   - Validate dependencies between settings
   - Return detailed errors
   - **Effort**: High

5. Write comprehensive tests
   - Test file loading (TOML, YAML, JSON)
   - Test defaults
   - Test env var overrides
   - Test validation logic
   - Test error cases
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Can load config from TOML file
- [ ] Can load config from YAML file
- [ ] Can load config from JSON file
- [ ] Environment variables override file config
- [ ] Invalid config returns detailed error
- [ ] Default config passes validation
- [ ] Validation errors are clear and actionable
- [ ] 100% test coverage on config loading
- [ ] Clippy passes
- [ ] Documentation includes examples

**Definition of Done**:
- [ ] All loading scenarios work
- [ ] Validation comprehensive
- [ ] Tests pass with 100% coverage
- [ ] Documentation complete
- [ ] Integration with standard tools verified

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 2.3: Configuration Documentation and Examples
**Effort**: Low  
**Priority**: High

**As a** user  
**I want** clear documentation on configuration options  
**So that** I can configure the library correctly

**Description**:
Create comprehensive documentation for all configuration options, including examples, default values, and best practices.

**Tasks**:
1. Document configuration structure
   - Add module-level docs
   - Document each config field
   - Add examples for common scenarios
   - **Effort**: Medium

2. Create configuration examples
   - Add example TOML configs
   - Add example with env vars
   - Add monorepo example
   - Add single-package example
   - **Effort**: Low

3. Add configuration guide
   - Create `docs/guides/configuration.md`
   - Explain each section
   - Show migration examples
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Every config option documented
- [ ] Examples compile and work
- [ ] Configuration guide complete
- [ ] Examples in `examples/` directory
- [ ] README mentions configuration

**Definition of Done**:
- [ ] Documentation complete
- [ ] Examples working
- [ ] Guide published

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 3: Error Handling

**Phase**: 1  
**Total Effort**: Medium  
**Dependencies**: Epic 1  
**Goal**: Implement comprehensive error handling system

### Story 3.1: Define Error Types
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** all error types defined upfront  
**So that** I can use them consistently across modules

**Description**:
Define all domain-specific error types using thiserror. Each module gets its own error type, and all errors implement `AsRef<str>` as required.

**Tasks**:
1. Create main error enum in `src/error/mod.rs`
   - Define `Error` enum with variants
   - Implement `From` for all domain errors
   - Implement `AsRef<str>`
   - Add display implementations
   - **Effort**: Low

2. Create `src/error/config.rs`
   - Define `ConfigError` enum
   - Add variants for validation, parsing, file errors
   - Implement `AsRef<str>`
   - Add context fields
   - **Effort**: Minimal

3. Create `src/error/version.rs`
   - Define `VersionError` enum
   - Add variants for parsing, resolution, propagation
   - Implement `AsRef<str>`
   - **Effort**: Minimal

4. Create `src/error/changeset.rs`
   - Define `ChangesetError` enum
   - Add variants for storage, validation, git
   - Implement `AsRef<str>`
   - **Effort**: Minimal

5. Create `src/error/changes.rs`
   - Define `ChangesError` enum
   - Add variants for git, mapping, analysis
   - Implement `AsRef<str>`
   - **Effort**: Minimal

6. Create `src/error/changelog.rs`
   - Define `ChangelogError` enum
   - Add variants for parsing, generation, formatting
   - Implement `AsRef<str>`
   - **Effort**: Minimal

7. Create `src/error/upgrade.rs`
   - Define `UpgradeError` enum
   - Add variants for registry, backup, rollback
   - Implement `AsRef<str>`
   - **Effort**: Minimal

8. Create `src/error/audit.rs`
   - Define `AuditError` enum
   - Add variants for analysis, reporting
   - Implement `AsRef<str>`
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] All error types defined
- [ ] All errors use `thiserror::Error`
- [ ] All errors implement `AsRef<str>`
- [ ] Error messages are clear and actionable
- [ ] Error variants cover all failure scenarios
- [ ] Type aliases defined (e.g., `ConfigResult<T>`)
- [ ] Clippy passes
- [ ] Documentation complete

**Definition of Done**:
- [ ] All error files compile
- [ ] Error conversions work
- [ ] Tests verify `AsRef<str>` implementation
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 3.2: Error Context and Recovery
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** rich error context and recovery strategies  
**So that** I can provide helpful error messages to users

**Description**:
Add error context helpers and optional recovery strategies following patterns from `sublime_standard_tools`.

**Tasks**:
1. Create error context trait
   - Define `ErrorContext` trait
   - Add context attachment methods
   - **Effort**: Low

2. Implement error recovery patterns
   - Add recovery strategy enum
   - Implement for common errors
   - **Effort**: Medium

3. Add error tests
   - Test error creation
   - Test error conversion
   - Test `AsRef<str>` implementation
   - Test error messages
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Error context can be attached
- [ ] Recovery strategies available
- [ ] Tests cover all error types
- [ ] Error messages tested
- [ ] 100% test coverage

**Definition of Done**:
- [ ] Context system works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 4: Core Types

**Phase**: 1  
**Total Effort**: Medium  
**Dependencies**: Epic 1, Epic 3  
**Goal**: Define all core data structures used across modules

### Story 4.1: Version Types
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** version types defined  
**So that** I can handle semantic versioning correctly

**Description**:
Define Version struct with parsing, comparison, and bumping capabilities using the `semver` crate.

**Tasks**:
1. Create `src/types/version.rs`
   - Define `Version` struct
   - Wrap `semver::Version`
   - Add `parse()` method
   - Add `bump()` method for each bump type
   - **Effort**: Low

2. Define `VersionBump` enum
   - Add Major, Minor, Patch, None variants
   - Implement Display
   - Add serialization
   - **Effort**: Minimal

3. Define `VersioningStrategy` enum
   - Add Independent, Unified variants
   - Add documentation
   - **Effort**: Minimal

4. Implement version operations
   - Implement comparison (PartialOrd, Ord)
   - Add increment methods
   - Add snapshot version generation
   - **Effort**: Low

5. Write comprehensive tests
   - Test parsing valid versions
   - Test parsing invalid versions
   - Test bumping (all types)
   - Test comparisons
   - Property-based tests for parsing
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] `Version` parses semver strings correctly
- [ ] Bumping works for all types
- [ ] Comparisons work correctly
- [ ] Invalid versions return errors (not panic)
- [ ] Serialization/deserialization works
- [ ] 100% test coverage
- [ ] Property tests pass
- [ ] Clippy passes

**Definition of Done**:
- [ ] Version types complete
- [ ] Tests pass with 100% coverage
- [ ] Documentation with examples
- [ ] No unwrap/expect used

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 4.2: Package Types
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** package information structures  
**So that** I can work with package metadata consistently

**Description**:
Define `PackageInfo` struct that aggregates package.json data and workspace information.

**Tasks**:
1. Create `src/types/package.rs`
   - Define `PackageInfo` struct
   - Add package_json field (from package-json crate)
   - Add workspace field
   - Add path field
   - **Effort**: Low

2. Implement package methods
   - Add `name()` accessor
   - Add `version()` accessor
   - Add `all_dependencies()` method
   - Add `is_internal()` check
   - **Effort**: Low

3. Add dependency helpers
   - Filter workspace protocols
   - Filter local protocols
   - Get internal vs external deps
   - **Effort**: Medium

4. Write tests
   - Test with real package.json
   - Test dependency filtering
   - Test internal detection
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] `PackageInfo` contains all needed data
- [ ] Accessors work correctly
- [ ] Dependency filtering accurate
- [ ] Works with package-json crate
- [ ] 100% test coverage
- [ ] Clippy passes

**Definition of Done**:
- [ ] PackageInfo complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 4.3: Changeset Types
**Effort**: Low  
**Priority**: Critical

**As a** developer  
**I want** changeset data structures defined  
**So that** I can store and manipulate changesets

**Description**:
Define the `Changeset` struct and related types for storing release information.

**Tasks**:
1. Create `src/types/changeset.rs`
   - Define `Changeset` struct
   - Add all fields (branch, bump, environments, packages, changes)
   - Add timestamps
   - Implement serialization
   - **Effort**: Low

2. Define `ArchivedChangeset` struct
   - Add changeset field
   - Add `ReleaseInfo` struct
   - Add applied_at, applied_by, git_commit, versions
   - **Effort**: Minimal

3. Add changeset methods
   - Validation helpers
   - Update helpers
   - **Effort**: Low

4. Write tests
   - Test serialization/deserialization
   - Test JSON format matches spec
   - Test validation
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Changeset matches CONCEPT.md specification
- [ ] Serializes to clean JSON
- [ ] All fields accessible
- [ ] Validation works
- [ ] Tests pass 100%
- [ ] Clippy passes

**Definition of Done**:
- [ ] Changeset types complete
- [ ] JSON format verified
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 4.4: Dependency Types
**Effort**: Minimal  
**Priority**: High

**As a** developer  
**I want** dependency-related types defined  
**So that** I can categorize and work with dependencies

**Description**:
Define enums and structs for dependency classification and management.

**Tasks**:
1. Create `src/types/dependency.rs`
   - Define `DependencyType` enum (Regular, Dev, Peer, Optional)
   - Define protocol enums (Workspace, File, Link, Portal)
   - Add helper functions
   - **Effort**: Minimal

2. Write tests
   - Test enum variants
   - Test serialization
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] All dependency types defined
- [ ] Serialization works
- [ ] Tests pass
- [ ] Documentation complete

**Definition of Done**:
- [ ] Types complete
- [ ] Tests pass
- [ ] Ready for use

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 5: Versioning Engine

**Phase**: 2  
**Total Effort**: Massive  
**Dependencies**: Epic 2, Epic 3, Epic 4  
**Goal**: Implement complete version resolution and propagation system

### Story 5.1: Version Resolver Foundation
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** the VersionResolver structure implemented  
**So that** I can resolve versions for packages

**Description**:
Implement the main `VersionResolver` struct with project detection and initialization logic.

**Tasks**:
1. Create `src/version/resolver.rs`
   - Define `VersionResolver` struct
   - Add workspace_root, strategy, fs fields
   - Implement `new()` constructor
   - Add monorepo/single-package detection
   - **Effort**: Medium

2. Implement project detection
   - Use `MonorepoDetector` from standard tools
   - Detect if monorepo or single package
   - Load package information
   - **Effort**: Medium

3. Add package discovery
   - Find all packages in workspace
   - Load package.json for each
   - Create `PackageInfo` instances
   - **Effort**: Medium

4. Write initialization tests
   - Test with monorepo fixture
   - Test with single-package fixture
   - Test error cases
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] `VersionResolver::new()` works
- [ ] Detects monorepo correctly
- [ ] Detects single-package correctly
- [ ] Loads all packages
- [ ] Returns errors for invalid projects
- [ ] Tests pass 100%
- [ ] Clippy passes
- [ ] No unwrap/expect

**Definition of Done**:
- [ ] Resolver initializes correctly
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.2: Dependency Graph Construction
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to build a dependency graph  
**So that** I can detect relationships between packages

**Description**:
Implement `DependencyGraph` that represents internal package dependencies.

**Tasks**:
1. Create `src/version/graph.rs`
   - Define `DependencyGraph` struct
   - Use petgraph or custom implementation
   - Add node_map for package lookup
   - **Effort**: Medium

2. Implement graph construction
   - Parse dependencies from package.json
   - Filter internal vs external
   - Add edges for dependencies
   - **Effort**: High

3. Add graph queries
   - Get dependents of a package
   - Get dependencies of a package
   - Check if package exists
   - **Effort**: Low

4. Write tests
   - Test graph construction
   - Test with various dependency structures
   - Test queries
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Graph builds from packages
- [ ] Internal dependencies identified
- [ ] External dependencies filtered out
- [ ] Queries work correctly
- [ ] Tests pass 100%
- [ ] Handles workspace:* protocols
- [ ] Clippy passes

**Definition of Done**:
- [ ] Graph construction works
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.3: Circular Dependency Detection
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to detect circular dependencies  
**So that** I can prevent infinite propagation loops

**Description**:
Implement Tarjan's algorithm or similar to detect cycles in the dependency graph.

**Tasks**:
1. Implement cycle detection algorithm
   - Choose algorithm (Tarjan's or DFS-based)
   - Implement in `graph.rs`
   - Return all cycles found
   - **Effort**: High

2. Create `CircularDependency` type
   - Store cycle path
   - Add helpful error messages
   - **Effort**: Low

3. Add detection to graph
   - Add `detect_cycles()` method
   - Return `Vec<CircularDependency>`
   - **Effort**: Low

4. Write comprehensive tests
   - Test with no cycles
   - Test with single cycle
   - Test with multiple cycles
   - Test with nested cycles
   - Property-based tests
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Detects all circular dependencies
- [ ] Returns clear cycle paths
- [ ] No false positives
- [ ] No false negatives
- [ ] Performance acceptable (< 1s for 100 packages)
- [ ] Tests cover all cases
- [ ] 100% test coverage
- [ ] Clippy passes

**Definition of Done**:
- [ ] Algorithm correct and tested
- [ ] Performance verified
- [ ] Documentation with examples
- [ ] Property tests pass

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.4: Version Resolution Logic
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to resolve versions for changed packages  
**So that** I can determine what version each package should become

**Description**:
Implement the core version resolution logic that calculates next versions based on changeset bump type.

**Tasks**:
1. Create `src/version/resolution.rs`
   - Define `VersionResolution` struct
   - Define `PackageUpdate` struct
   - Add resolution logic
   - **Effort**: Medium

2. Implement direct resolution
   - For packages in changeset, apply bump
   - Calculate next version
   - Create `PackageUpdate` entries
   - **Effort**: Medium

3. Add resolution validation
   - Verify all packages exist
   - Check versions are valid
   - Validate bump types
   - **Effort**: Low

4. Write resolution tests
   - Test with different bump types
   - Test with various current versions
   - Test error cases
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Resolves versions correctly
- [ ] Handles Major, Minor, Patch bumps
- [ ] Works with unified strategy
- [ ] Works with independent strategy
- [ ] Validates inputs
- [ ] Returns clear errors
- [ ] Tests pass 100%
- [ ] Clippy passes

**Definition of Done**:
- [ ] Resolution logic complete
- [ ] All strategies work
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.5: Dependency Propagation
**Effort**: Massive  
**Priority**: Critical

**As a** developer  
**I want** dependency updates to propagate through the graph  
**So that** dependent packages are updated automatically

**Description**:
Implement the dependency propagation algorithm that updates all packages that depend on changed packages.

**Tasks**:
1. Create `src/version/propagation.rs`
   - Define propagation algorithm
   - Use BFS or topological sort
   - Track propagation depth
   - **Effort**: High

2. Implement propagation logic
   - For each updated package, find dependents
   - Apply propagation bump to dependents
   - Update dependency specs in package.json
   - Recurse until no more updates
   - **Effort**: High

3. Add propagation configuration
   - Respect max_depth setting
   - Respect propagation_bump setting
   - Filter by dependency types
   - Skip workspace/local protocols
   - **Effort**: Medium

4. Handle circular dependencies
   - Detect during propagation
   - Skip or report (based on config)
   - Ensure termination
   - **Effort**: Medium

5. Write extensive tests
   - Test simple propagation (A->B, A changes)
   - Test chain propagation (A->B->C, A changes)
   - Test diamond dependency (A->B, A->C, B->D, C->D)
   - Test circular dependencies
   - Test max_depth limits
   - Test different propagation bumps
   - **Effort**: Massive

**Acceptance Criteria**:
- [ ] Propagation reaches all dependents
- [ ] Respects configuration settings
- [ ] Terminates with circular deps
- [ ] Updates dependency specs correctly
- [ ] Skips workspace:* and file: protocols
- [ ] Performance acceptable
- [ ] Tests cover all scenarios
- [ ] 100% test coverage
- [ ] Clippy passes
- [ ] No infinite loops

**Definition of Done**:
- [ ] Propagation algorithm complete
- [ ] All edge cases handled
- [ ] Tests comprehensive
- [ ] Performance verified
- [ ] Documentation with diagrams

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.6: Snapshot Version Generation
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** to generate snapshot versions  
**So that** I can deploy branch builds

**Description**:
Implement snapshot version generation with configurable format.

**Tasks**:
1. Create `src/version/snapshot.rs`
   - Parse snapshot format template
   - Replace variables ({version}, {branch}, {commit})
   - Generate snapshot version string
   - **Effort**: Low

2. Add snapshot validation
   - Ensure valid semver format
   - Check branch name safety
   - **Effort**: Low

3. Write tests
   - Test with different formats
   - Test variable replacement
   - Test validation
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Generates valid snapshot versions
- [ ] Format configurable
- [ ] All variables replaced
- [ ] Validation works
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Snapshot generation works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.7: Apply Versions with Dry-Run
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to apply versions to package.json files  
**So that** I can update package versions

**Description**:
Implement version application logic that writes updated versions to package.json files, with dry-run support.

**Tasks**:
1. Implement package.json reading
   - Use `FileSystemManager` from standard tools
   - Parse with package-json crate
   - Handle errors gracefully
   - **Effort**: Low

2. Implement package.json writing
   - Update version field
   - Update dependency specs
   - Preserve formatting
   - Use atomic writes
   - **Effort**: Medium

3. Implement dry-run mode
   - Skip writes when dry_run=true
   - Return what would be written
   - **Effort**: Low

4. Add rollback support
   - Backup files before writing
   - Restore on error
   - Clean up on success
   - **Effort**: Medium

5. Write tests
   - Test dry-run (no files changed)
   - Test actual writing
   - Test rollback on error
   - Test atomic writes
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Writes versions correctly
- [ ] Dry-run doesn't modify files
- [ ] Rollback works on failure
- [ ] Preserves JSON formatting
- [ ] Uses atomic writes
- [ ] Tests pass 100%
- [ ] Works cross-platform
- [ ] Clippy passes

**Definition of Done**:
- [ ] Apply versions works
- [ ] Dry-run verified
- [ ] Rollback tested
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 5.8: Version Resolution Integration Tests
**Effort**: High  
**Priority**: High

**As a** developer  
**I want** end-to-end integration tests for versioning  
**So that** I can verify the complete workflow

**Description**:
Write comprehensive integration tests that verify the entire version resolution and application workflow.

**Tasks**:
1. Create integration test fixtures
   - Setup test monorepo
   - Create various dependency structures
   - **Effort**: Medium

2. Write workflow tests
   - Test complete resolution workflow
   - Test propagation in real project
   - Test dry-run then apply
   - **Effort**: High

3. Write edge case tests
   - Test with circular deps
   - Test with max depth
   - Test with different strategies
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Full workflow tested
- [ ] Edge cases covered
- [ ] Tests run in CI
- [ ] 100% of resolution logic covered

**Definition of Done**:
- [ ] Integration tests pass
- [ ] Coverage verified
- [ ] CI integration complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 6: Changeset Management

**Phase**: 2  
**Total Effort**: High  
**Dependencies**: Epic 2, Epic 3, Epic 4  
**Goal**: Implement complete changeset CRUD and storage

### Story 6.1: Changeset Storage Trait
**Effort**: Low  
**Priority**: Critical

**As a** developer  
**I want** a storage abstraction  
**So that** I can swap storage implementations

**Description**:
Define the `ChangesetStorage` trait that abstracts changeset persistence.

**Tasks**:
1. Create `src/changeset/storage.rs`
   - Define `ChangesetStorage` trait
   - Add async methods (save, load, exists, delete, list, archive)
   - Add documentation
   - **Effort**: Low

2. Define storage types
   - Define result types
   - Add storage errors
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] Trait defined with all methods
- [ ] Methods are async
- [ ] Error types appropriate
- [ ] Documentation complete
- [ ] Ready for implementation

**Definition of Done**:
- [ ] Trait compiles
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 6.2: File-Based Storage Implementation
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** file-based changeset storage  
**So that** changesets persist to disk

**Description**:
Implement `FileBasedChangesetStorage` that stores changesets as JSON files.

**Tasks**:
1. Implement FileBasedChangesetStorage struct
   - Add root_path, changeset_dir, history_dir fields
   - Use `FileSystemManager` from standard tools
   - **Effort**: Low

2. Implement save method
   - Serialize changeset to JSON
   - Write to file atomically
   - Create directories if needed
   - **Effort**: Medium

3. Implement load method
   - Read file
   - Deserialize JSON
   - Handle missing files
   - **Effort**: Low

4. Implement exists method
   - Check file existence
   - **Effort**: Minimal

5. Implement delete method
   - Delete changeset file
   - Handle errors
   - **Effort**: Minimal

6. Implement list_pending method
   - List all changeset files
   - Parse and return
   - **Effort**: Low

7. Implement archive method
   - Move changeset to history
   - Add release info
   - **Effort**: Medium

8. Implement load_archived method
   - Load from history directory
   - Parse archived format
   - **Effort**: Low

9. Write comprehensive tests
   - Test all methods
   - Test with mock filesystem
   - Test error cases
   - Test concurrent access
   - **Effort**: High

**Acceptance Criteria**:
- [ ] All trait methods implemented
- [ ] Uses atomic file operations
- [ ] Handles concurrent access
- [ ] Error messages clear
- [ ] Tests pass 100%
- [ ] Works cross-platform
- [ ] Clippy passes

**Definition of Done**:
- [ ] Implementation complete
- [ ] Tests comprehensive
- [ ] Documentation complete
- [ ] Concurrent access tested

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 6.3: Changeset Manager
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** a high-level changeset manager  
**So that** I can create and manage changesets easily

**Description**:
Implement `ChangesetManager` that provides a high-level API for changeset operations.

**Tasks**:
1. Create `src/changeset/manager.rs`
   - Define `ChangesetManager` struct
   - Add storage and git_repo fields
   - Implement `new()` constructor
   - **Effort**: Low

2. Implement create method
   - Validate branch name
   - Create new changeset
   - Save to storage
   - **Effort**: Medium

3. Implement load method
   - Load from storage
   - Return error if not found
   - **Effort**: Low

4. Implement update method
   - Load existing changeset
   - Apply updates
   - Validate changes
   - Save back to storage
   - **Effort**: Medium

5. Implement delete method
   - Delete from storage
   - **Effort**: Minimal

6. Implement list_pending method
   - Get all pending changesets
   - **Effort**: Low

7. Write tests
   - Test create
   - Test load
   - Test update
   - Test delete
   - Test list
   - Test error cases
   - **Effort**: High

**Acceptance Criteria**:
- [ ] All CRUD operations work
- [ ] Validation prevents invalid data
- [ ] Errors clear and actionable
- [ ] Tests pass 100%
- [ ] Clippy passes
- [ ] Documentation complete

**Definition of Done**:
- [ ] Manager complete
- [ ] Tests pass
- [ ] Documentation with examples

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 6.4: Git Integration for Commits
**Effort**: High  
**Priority**: High

**As a** developer  
**I want** to detect affected packages from git commits  
**So that** I can automatically populate changesets

**Description**:
Implement git integration that detects which packages are affected by commits.

**Tasks**:
1. Create `src/changeset/git_integration.rs`
   - Use `sublime_git_tools` crate
   - Implement package detection from diffs
   - **Effort**: Medium

2. Implement add_commits_from_git
   - Parse commit range
   - Get commits from git
   - Detect affected packages for each commit
   - Update changeset
   - **Effort**: High

3. Add package detection logic
   - Map changed files to packages
   - Use monorepo detection
   - Handle root files
   - **Effort**: Medium

4. Write tests
   - Test with mock git repo
   - Test package detection
   - Test commit addition
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Detects affected packages correctly
- [ ] Works in monorepo
- [ ] Works in single-package
- [ ] Handles various commit ranges
- [ ] Tests pass 100%
- [ ] Uses git tools correctly

**Definition of Done**:
- [ ] Git integration works
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 6.5: Changeset History and Archiving
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to archive and query changesets  
**So that** I can track release history

**Description**:
Implement changeset archiving and history query functionality.

**Tasks**:
1. Create `src/changeset/history.rs`
   - Define `ChangesetHistory` struct
   - Implement query methods
   - **Effort**: Medium

2. Implement archive method
   - Create `ArchivedChangeset`
   - Add release info
   - Save to history
   - **Effort**: Low

3. Implement query methods
   - Query by date range
   - Query by package
   - Query by environment
   - Query by bump type
   - **Effort**: Medium

4. Write tests
   - Test archiving
   - Test queries
   - Test with multiple archives
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Archiving works correctly
- [ ] Queries return correct results
- [ ] History is queryable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] History and archiving complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 7: Changes Analysis

**Phase**: 2  
**Total Effort**: High  
**Dependencies**: Epic 2, Epic 3, Epic 4, Epic 6  
**Goal**: Implement git-based changes analysis system

### Story 7.1: Changes Analyzer Foundation
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** a changes analyzer structure  
**So that** I can analyze git changes

**Description**:
Implement the main `ChangesAnalyzer` struct with git and monorepo integration.

**Tasks**:
1. Create `src/changes/analyzer.rs`
   - Define `ChangesAnalyzer` struct
   - Add workspace_root, git_repo, monorepo_detector, fs
   - Implement constructor
   - **Effort**: Low

2. Setup git integration
   - Initialize `GitRepository` from git tools
   - Validate git repo
   - **Effort**: Low

3. Setup monorepo integration
   - Initialize `MonorepoDetector`
   - Detect project type
   - **Effort**: Low

4. Write initialization tests
   - Test with valid repo
   - Test with invalid repo
   - Test error cases
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Analyzer initializes correctly
- [ ] Git integration works
- [ ] Monorepo detection works
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Foundation complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 7.2: File-to-Package Mapping
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to map changed files to packages  
**So that** I know which packages were affected

**Description**:
Implement logic to map file paths to their owning packages in a monorepo.

**Tasks**:
1. Create `src/changes/mapping.rs`
   - Implement mapping algorithm
   - Handle monorepo packages
   - Handle single-package
   - **Effort**: High

2. Implement package ownership detection
   - Check if file is under package path
   - Handle root files
   - Handle shared files
   - **Effort**: Medium

3. Add caching for performance
   - Cache package paths
   - Cache mapping results
   - **Effort**: Low

4. Write tests
   - Test with various file paths
   - Test in monorepo
   - Test in single-package
   - Test edge cases
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Maps files correctly
- [ ] Works in monorepo
- [ ] Works in single-package
- [ ] Handles edge cases
- [ ] Performance acceptable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Mapping logic complete
- [ ] Tests comprehensive
- [ ] Performance verified

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 7.3: Working Directory Analysis
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to analyze uncommitted changes  
**So that** I can see what's changed before committing

**Description**:
Implement analysis of working directory changes (staged and unstaged).

**Tasks**:
1. Implement working directory analysis
   - Use git status from git tools
   - Get all changed files
   - Map to packages
   - **Effort**: Medium

2. Create ChangesReport
   - Aggregate by package
   - Calculate statistics
   - **Effort**: Low

3. Write tests
   - Test with staged changes
   - Test with unstaged changes
   - Test with both
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Detects working directory changes
- [ ] Maps to packages correctly
- [ ] Report accurate
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Working directory analysis works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 7.4: Commit Range Analysis
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to analyze commit ranges  
**So that** I can see changes between branches/tags

**Description**:
Implement analysis of changes between two git references (commits, branches, tags).

**Tasks**:
1. Implement commit range analysis
   - Parse git references
   - Get commits in range using git tools
   - Get file changes for each commit
   - **Effort**: High

2. Implement commit-to-package association
   - For each commit, find affected packages
   - Associate commits with packages
   - Handle multi-package commits
   - **Effort**: Medium

3. Create detailed report
   - Group by package
   - Include commit details
   - Calculate statistics
   - **Effort**: Low

4. Write tests
   - Test various commit ranges
   - Test branch comparison
   - Test tag comparison
   - Test multi-package commits
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Analyzes commit ranges correctly
- [ ] Associates commits with packages
- [ ] Handles multi-package commits
- [ ] Report detailed and accurate
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Commit range analysis works
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 7.5: Version Preview Calculation
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to see current and next versions  
**So that** I can preview version changes

**Description**:
Add version preview calculation based on changeset bump type.

**Tasks**:
1. Implement version calculation
   - Get current version from package.json
   - Apply changeset bump
   - Calculate next version
   - **Effort**: Low

2. Add to analysis report
   - Include current_version
   - Include next_version
   - Include bump_type
   - **Effort**: Low

3. Integrate with version resolver
   - Use version bumping logic
   - Ensure consistency
   - **Effort**: Low

4. Write tests
   - Test with different bumps
   - Test with various current versions
   - Test version calculation accuracy
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Calculates versions correctly
- [ ] Shows in report
- [ ] Consistent with version resolver
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Version preview works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 7.6: Changes Statistics
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** statistics on changes  
**So that** I can understand the scope of changes

**Description**:
Add comprehensive statistics calculation for changes.

**Tasks**:
1. Create `src/changes/stats.rs`
   - Implement statistics calculation
   - Count files by change type
   - Count lines changed
   - Count commits
   - **Effort**: Low

2. Add to report structures
   - Add stats to `PackageChanges`
   - Add stats to `ChangesReport`
   - **Effort**: Minimal

3. Write tests
   - Test stat calculation
   - Test with various changes
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Statistics accurate
- [ ] All metrics calculated
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Statistics complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 8: Changelog Generation

**Phase**: 3  
**Total Effort**: Massive  
**Dependencies**: Epic 2, Epic 3, Epic 4, Epic 6, Epic 7  
**Goal**: Implement complete changelog generation system

### Story 8.1: Conventional Commit Parser
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to parse conventional commits  
**So that** I can group changes by type

**Description**:
Implement a parser for conventional commit messages following the specification.

**Tasks**:
1. Create `src/changelog/conventional.rs`
   - Define `ConventionalCommit` struct
   - Implement parser with regex
   - Extract type, scope, description
   - **Effort**: Medium

2. Implement breaking change detection
   - Check for `!` after type/scope
   - Check for `BREAKING CHANGE:` in footer
   - **Effort**: Low

3. Implement footer parsing
   - Parse key-value footers
   - Extract references (#123)
   - **Effort**: Medium

4. Add section type mapping
   - Map commit type to section (feat → Features)
   - Handle unknown types
   - **Effort**: Low

5. Write comprehensive tests
   - Test valid formats
   - Test invalid formats
   - Test breaking changes
   - Test footers
   - Test edge cases
   - Property-based tests
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Parses all valid conventional commits
- [ ] Rejects invalid formats gracefully
- [ ] Detects breaking changes correctly
- [ ] Extracts references (#123, closes #456)
- [ ] Maps to correct sections
- [ ] Tests pass 100%
- [ ] Property tests pass
- [ ] Follows specification exactly

**Definition of Done**:
- [ ] Parser complete
- [ ] All tests pass
- [ ] Documentation with examples
- [ ] Specification compliance verified

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.2: Changelog Generator Foundation
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** a changelog generator structure  
**So that** I can generate changelogs

**Description**:
Implement the main `ChangelogGenerator` struct with git and config integration.

**Tasks**:
1. Create `src/changelog/generator.rs`
   - Define `ChangelogGenerator` struct
   - Add workspace_root, git_repo, fs, config
   - Implement constructor
   - **Effort**: Low

2. Setup git integration
   - Initialize git repository
   - Add tag detection methods
   - **Effort**: Low

3. Setup configuration
   - Load changelog config
   - Validate settings
   - **Effort**: Low

4. Write initialization tests
   - Test construction
   - Test with various configs
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Generator initializes
- [ ] Git integration works
- [ ] Config loaded correctly
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Foundation complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.3: Version Detection from Git Tags
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to detect previous versions from tags  
**So that** I can generate changelogs automatically

**Description**:
Implement logic to detect and parse version tags from git.

**Tasks**:
1. Implement tag detection
   - List all tags using git tools
   - Filter version tags
   - **Effort**: Low

2. Implement tag parsing
   - Parse monorepo tags (@pkg/name@1.0.0)
   - Parse root tags (v1.0.0)
   - Handle custom tag formats
   - **Effort**: Medium

3. Implement previous version detection
   - Find latest tag before current version
   - Handle no previous version
   - **Effort**: Low

4. Write tests
   - Test tag parsing
   - Test version detection
   - Test with various tag formats
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Detects tags correctly
- [ ] Parses monorepo tags
- [ ] Finds previous version
- [ ] Handles missing tags
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Tag detection works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.4: Changelog Data Collection
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to collect changelog data from commits  
**So that** I can build a changelog

**Description**:
Implement logic to collect all data needed for a changelog from git commits.

**Tasks**:
1. Implement commit collection
   - Get commits between versions
   - Filter by package (monorepo)
   - **Effort**: Medium

2. Implement commit parsing
   - Parse each commit message
   - Try conventional commits first
   - Fallback to plain message
   - **Effort**: Low

3. Implement grouping by section
   - Group by commit type
   - Separate breaking changes
   - Sort within groups
   - **Effort**: Medium

4. Add metadata collection
   - Collect commit hashes
   - Collect authors
   - Collect dates
   - Extract references
   - **Effort**: Low

5. Write tests
   - Test commit collection
   - Test parsing
   - Test grouping
   - Test with various commits
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Collects all commits
- [ ] Parses correctly
- [ ] Groups by section
- [ ] Metadata complete
- [ ] Works in monorepo
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Data collection complete
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.5: Keep a Changelog Formatter
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to format changelogs in Keep a Changelog format  
**So that** I follow community standards

**Description**:
Implement formatter for the Keep a Changelog format.

**Tasks**:
1. Create `src/changelog/formatter/keep_a_changelog.rs`
   - Implement formatter
   - Add version header
   - Add sections
   - Format entries
   - **Effort**: Medium

2. Add linking
   - Add commit links
   - Add issue links
   - **Effort**: Low

3. Write tests
   - Test formatting
   - Test with various data
   - Test output format
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Generates valid Keep a Changelog format
- [ ] Includes all sections
- [ ] Links work
- [ ] Tests pass 100%
- [ ] Follows specification

**Definition of Done**:
- [ ] Formatter complete
- [ ] Tests pass
- [ ] Specification compliance verified

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.6: Conventional Commits Formatter
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to format changelogs with conventional grouping  
**So that** changes are organized by type

**Description**:
Implement formatter that groups changes by conventional commit type.

**Tasks**:
1. Create `src/changelog/formatter/conventional.rs`
   - Implement formatter
   - Group by type (feat, fix, etc.)
   - Add breaking changes section first
   - **Effort**: Medium

2. Add section titles
   - Use configured section titles
   - Handle custom types
   - **Effort**: Low

3. Write tests
   - Test grouping
   - Test section order
   - Test with various commits
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Groups by commit type
- [ ] Breaking changes first
- [ ] Titles configurable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Formatter complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.7: Custom Template Formatter
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** custom changelog templates  
**So that** I can match my organization's style

**Description**:
Implement formatter that uses custom templates from configuration.

**Tasks**:
1. Create `src/changelog/formatter/custom.rs`
   - Implement template renderer
   - Replace variables
   - **Effort**: Low

2. Add template variables
   - {version}, {date}, {title}, {description}, etc.
   - **Effort**: Minimal

3. Write tests
   - Test rendering
   - Test with various templates
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Renders templates correctly
- [ ] All variables replaced
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Template formatter complete
- [ ] Tests pass
- [ ] Documentation with examples

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.8: Changelog File Management
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to update CHANGELOG.md files  
**So that** changelogs persist

**Description**:
Implement logic to create, update, and parse CHANGELOG.md files.

**Tasks**:
1. Implement changelog creation
   - Create new CHANGELOG.md
   - Add header
   - Add first version
   - **Effort**: Low

2. Implement changelog updating
   - Parse existing CHANGELOG.md
   - Prepend new version
   - Preserve existing content
   - **Effort**: Medium

3. Implement existing changelog parser
   - Create `src/changelog/parser.rs`
   - Parse version sections
   - Extract dates
   - **Effort**: Medium

4. Add dry-run support
   - Return content without writing
   - **Effort**: Minimal

5. Write tests
   - Test creation
   - Test updating
   - Test parsing
   - Test dry-run
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Creates new changelogs
- [ ] Updates existing changelogs
- [ ] Preserves existing content
- [ ] Parser works correctly
- [ ] Dry-run doesn't write
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] File management complete
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.9: Merge Commit Message Generation
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** to generate merge commit messages  
**So that** releases have consistent commit messages

**Description**:
Implement merge commit message generation using configured templates.

**Tasks**:
1. Implement message generation
   - Load template from config
   - Replace variables
   - Add breaking changes warning if needed
   - **Effort**: Low

2. Add variable replacement
   - {version}, {package_name}, {changelog_summary}, etc.
   - **Effort**: Low

3. Write tests
   - Test generation
   - Test with various templates
   - Test breaking changes
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Generates messages correctly
- [ ] All variables replaced
- [ ] Breaking changes included
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Message generation works
- [ ] Tests pass
- [ ] Documentation with examples

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 8.10: Generate from Changeset
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to generate changelogs from changesets  
**So that** I can automate changelog creation

**Description**:
Implement high-level method to generate changelogs from changeset and version resolution.

**Tasks**:
1. Implement changeset integration
   - Accept changeset and version resolution
   - Generate changelog for each package
   - **Effort**: Medium

2. Handle monorepo and single-package
   - Generate per-package in monorepo
   - Generate root in single-package
   - Respect configuration
   - **Effort**: Low

3. Write integration tests
   - Test with real changeset
   - Test with version resolution
   - Test both project types
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Generates from changeset
- [ ] Works for monorepo
- [ ] Works for single-package
- [ ] Integration tests pass
- [ ] 100% coverage

**Definition of Done**:
- [ ] Integration complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 9: Dependency Upgrades

**Phase**: 3  
**Total Effort**: High  
**Dependencies**: Epic 2, Epic 3, Epic 4, Epic 6  
**Goal**: Implement dependency upgrade detection and application

### Story 9.1: Registry Client Foundation
**Effort**: Medium  
**Priority**: Critical

**As a** developer  
**I want** a registry client  
**So that** I can query package versions

**Description**:
Implement HTTP client for querying npm registry and private registries.

**Tasks**:
1. Create `src/upgrade/registry/client.rs`
   - Define `RegistryClient` struct
   - Setup HTTP client (reqwest)
   - Add retry logic
   - **Effort**: Medium

2. Implement package metadata query
   - GET package info from registry
   - Parse response
   - Extract versions and metadata
   - **Effort**: Medium

3. Add error handling
   - Handle network errors
   - Handle 404s
   - Handle timeouts
   - **Effort**: Low

4. Write tests with mock server
   - Setup mock HTTP server (mockito)
   - Test successful queries
   - Test error cases
   - Test retries
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Client queries registry successfully
- [ ] Handles private registries
- [ ] Retry logic works
- [ ] Error handling comprehensive
- [ ] Tests pass 100%
- [ ] Mock server used for tests

**Definition of Done**:
- [ ] Registry client works
- [ ] Tests comprehensive
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.2: .npmrc Parsing and Configuration
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to read .npmrc files  
**So that** I respect existing registry configuration

**Description**:
Implement .npmrc file parsing to extract registry URLs and authentication tokens.

**Tasks**:
1. Create `src/upgrade/registry/npmrc.rs`
   - Define `NpmrcConfig` struct
   - Implement parser
   - **Effort**: Medium

2. Implement parsing logic
   - Parse registry URLs
   - Parse scoped registries
   - Parse auth tokens
   - Handle comments
   - **Effort**: Medium

3. Implement resolution
   - Resolve registry for package
   - Resolve auth token for registry
   - **Effort**: Low

4. Write tests
   - Test various .npmrc formats
   - Test scoped packages
   - Test auth tokens
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Parses .npmrc correctly
- [ ] Extracts registries and auth
- [ ] Handles scoped packages
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Parser complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.3: Upgrade Detection
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to detect available upgrades  
**So that** I know what can be updated

**Description**:
Implement logic to detect upgrades for all external dependencies.

**Tasks**:
1. Create `src/upgrade/detection.rs`
   - Implement upgrade detection
   - Query registry for each dependency
   - Compare versions
   - **Effort**: High

2. Implement version comparison
   - Determine upgrade type (major, minor, patch)
   - Use semver crate
   - **Effort**: Low

3. Add concurrent queries
   - Query multiple packages in parallel
   - Add configurable concurrency limit
   - **Effort**: Medium

4. Add filtering
   - Filter internal dependencies
   - Filter workspace protocols
   - Filter by dependency type
   - **Effort**: Low

5. Write tests
   - Test detection
   - Test with various dependencies
   - Test filtering
   - Test concurrency
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Detects all external upgrades
- [ ] Classifies upgrade types correctly
- [ ] Concurrent queries work
- [ ] Filtering accurate
- [ ] Performance acceptable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Detection complete
- [ ] Tests comprehensive
- [ ] Performance verified

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.4: Upgrade Application
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** to apply upgrades  
**So that** dependencies are updated

**Description**:
Implement logic to apply selected upgrades to package.json files.

**Tasks**:
1. Create `src/upgrade/apply.rs`
   - Implement apply logic
   - Update package.json files
   - Preserve formatting
   - **Effort**: High

2. Add dry-run support
   - Return changes without writing
   - **Effort**: Low

3. Implement selection filtering
   - Apply only selected upgrades
   - Filter by upgrade type
   - Filter by package
   - **Effort**: Medium

4. Write tests
   - Test application
   - Test dry-run
   - Test filtering
   - Test file preservation
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Applies upgrades correctly
- [ ] Dry-run works
- [ ] Preserves JSON formatting
- [ ] Selection filtering works
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Application complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.5: Backup and Rollback
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** automatic backup and rollback  
**So that** I can recover from failed upgrades

**Description**:
Implement backup system that creates snapshots before applying upgrades.

**Tasks**:
1. Create `src/upgrade/backup.rs`
   - Define backup structure
   - Implement backup creation
   - Store in .sublime/backups/
   - **Effort**: Medium

2. Implement rollback
   - Restore files from backup
   - Handle partial failures
   - **Effort**: Medium

3. Add backup management
   - List backups
   - Clean old backups
   - Respect max_backups config
   - **Effort**: Low

4. Write tests
   - Test backup creation
   - Test rollback
   - Test cleanup
   - Test with failures
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Creates backups before apply
- [ ] Rollback restores correctly
- [ ] Backup management works
- [ ] Tests pass 100%
- [ ] No data loss

**Definition of Done**:
- [ ] Backup system complete
- [ ] Rollback verified
- [ ] Tests comprehensive

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.6: Automatic Changeset Creation
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** changesets created automatically after upgrades  
**So that** upgrades are tracked

**Description**:
Implement automatic changeset creation when upgrades are applied.

**Tasks**:
1. Integrate with changeset manager
   - Create or update changeset after apply
   - Add affected packages
   - Set bump type to patch
   - **Effort**: Low

2. Make it configurable
   - Respect auto_changeset config
   - Allow disabling
   - **Effort**: Minimal

3. Write tests
   - Test changeset creation
   - Test with config disabled
   - Test integration
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Creates changeset automatically
- [ ] Changeset correct (patch bump)
- [ ] Configurable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Auto-creation works
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 9.7: Upgrade Manager Integration
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** a high-level upgrade manager  
**So that** I can use upgrades easily

**Description**:
Implement `UpgradeManager` that ties all upgrade functionality together.

**Tasks**:
1. Create `src/upgrade/manager.rs`
   - Define `UpgradeManager` struct
   - Implement all public methods
   - **Effort**: Medium

2. Write integration tests
   - Test complete upgrade workflow
   - Test with real fixtures
   - Test error recovery
   - **Effort**: High

**Acceptance Criteria**:
- [ ] Manager provides clean API
- [ ] All features work together
- [ ] Integration tests pass
- [ ] Documentation complete

**Definition of Done**:
- [ ] Manager complete
- [ ] Tests pass
- [ ] Ready for use

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 10: Audit & Health Checks

**Phase**: 4  
**Total Effort**: High  
**Dependencies**: All previous epics  
**Goal**: Implement comprehensive repository health checks

### Story 10.1: Audit Manager Foundation
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** an audit manager  
**So that** I can run health checks

**Description**:
Implement the main `AuditManager` struct that coordinates all audit sections.

**Tasks**:
1. Create `src/audit/manager.rs`
   - Define `AuditManager` struct
   - Add all subsystem references
   - Implement constructor
   - **Effort**: Low

2. Setup integrations
   - Initialize upgrade manager
   - Initialize changes analyzer
   - Setup other dependencies
   - **Effort**: Low

3. Write initialization tests
   - Test construction
   - Test with various configs
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Manager initializes
- [ ] All integrations work
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Foundation complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.2: Upgrade Audit Section
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to audit available upgrades  
**So that** I know what needs updating

**Description**:
Implement upgrade audit section using the upgrade manager.

**Tasks**:
1. Create `src/audit/sections/upgrades.rs`
   - Use upgrade manager
   - Collect upgrade information
   - Create audit section
   - **Effort**: Medium

2. Add issue detection
   - Deprecated packages → Critical
   - Major upgrades → Warning
   - Minor/Patch → Info
   - **Effort**: Low

3. Write tests
   - Test with various upgrade scenarios
   - Test issue detection
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Detects upgrades correctly
- [ ] Issues have correct severity
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Upgrade audit complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.3: Dependency Audit Section
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** to audit dependencies  
**So that** I know about circular deps and conflicts

**Description**:
Implement dependency audit section with graph analysis.

**Tasks**:
1. Create `src/audit/sections/dependencies.rs`
   - Use dependency graph
   - Detect circular dependencies
   - Detect version conflicts
   - **Effort**: Medium

2. Add issue detection
   - Circular deps → Critical
   - Version conflicts → Warning
   - **Effort**: Low

3. Write tests
   - Test circular detection
   - Test conflict detection
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Detects circular dependencies
- [ ] Detects version conflicts
- [ ] Issues correct
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Dependency audit complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.4: Dependency Categorization
**Effort**: Medium  
**Priority**: Medium

**As a** developer  
**I want** dependencies categorized  
**So that** I understand my dependency structure

**Description**:
Implement dependency categorization into internal, external, workspace, local.

**Tasks**:
1. Create `src/audit/sections/categorization.rs`
   - Categorize all dependencies
   - List internal packages
   - List external packages
   - List workspace links
   - List local links
   - **Effort**: Medium

2. Add statistics
   - Count each category
   - Calculate percentages
   - **Effort**: Low

3. Write tests
   - Test categorization
   - Test with various projects
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Categorizes correctly
- [ ] All categories covered
- [ ] Statistics accurate
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Categorization complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.5: Breaking Changes Audit
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** to audit breaking changes  
**So that** I'm aware of them

**Description**:
Implement breaking changes audit using conventional commits and changesets.

**Tasks**:
1. Create `src/audit/sections/breaking_changes.rs`
   - Use changes analyzer
   - Detect breaking changes from commits
   - Create audit section
   - **Effort**: Low

2. Write tests
   - Test detection
   - Test with various scenarios
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Detects breaking changes
- [ ] Lists affected packages
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Breaking changes audit complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.6: Version Consistency Audit
**Effort**: Low  
**Priority**: Medium

**As a** developer  
**I want** to audit version consistency  
**So that** I know about inconsistent internal dependencies

**Description**:
Implement version consistency audit for internal dependencies.

**Tasks**:
1. Create `src/audit/sections/version_consistency.rs`
   - Check internal dependency versions
   - Find inconsistencies
   - **Effort**: Low

2. Add recommendations
   - Suggest consistent versions
   - **Effort**: Minimal

3. Write tests
   - Test consistency checking
   - Test recommendations
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Detects inconsistencies
- [ ] Recommendations clear
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Consistency audit complete
- [ ] Tests pass
- [ ] Documentation complete

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.7: Health Score Calculation
**Effort**: Medium  
**Priority**: Medium

**As a** developer  
**I want** a health score  
**So that** I have a single metric for repository health

**Description**:
Implement health score calculation based on all audit findings.

**Tasks**:
1. Create `src/audit/health_score.rs`
   - Define scoring algorithm
   - Weight different issues
   - Calculate 0-100 score
   - **Effort**: Medium

2. Add configurable weights
   - Allow customization
   - Provide sensible defaults
   - **Effort**: Low

3. Write tests
   - Test calculation
   - Test with various scenarios
   - Verify fairness
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Score calculated correctly
- [ ] Range is 0-100
- [ ] Weights configurable
- [ ] Tests pass 100%
- [ ] Algorithm documented

**Definition of Done**:
- [ ] Health score works
- [ ] Tests pass
- [ ] Algorithm explained in docs

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.8: Report Formatting
**Effort**: Medium  
**Priority**: High

**As a** developer  
**I want** formatted audit reports  
**So that** I can read and share them

**Description**:
Implement report formatters for Markdown and JSON.

**Tasks**:
1. Create `src/audit/formatter.rs`
   - Implement Markdown formatter
   - Implement JSON formatter
   - **Effort**: Medium

2. Add formatting options
   - Color support
   - Verbosity levels
   - **Effort**: Low

3. Write tests
   - Test Markdown output
   - Test JSON output
   - Verify formats
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Markdown format readable
- [ ] JSON format valid
- [ ] Tests pass 100%
- [ ] Examples in documentation

**Definition of Done**:
- [ ] Formatters complete
- [ ] Tests pass
- [ ] Documentation with examples

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 10.9: Audit Integration Tests
**Effort**: High  
**Priority**: High

**As a** developer  
**I want** complete audit integration tests  
**So that** I verify the entire audit system

**Description**:
Write comprehensive integration tests for the complete audit workflow.

**Tasks**:
1. Create integration test fixtures
   - Setup test projects
   - Add various issues
   - **Effort**: Medium

2. Write workflow tests
   - Test complete audit
   - Test with real data
   - Test all sections
   - **Effort**: High

3. Write performance tests
   - Verify acceptable performance
   - Test with large monorepos
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] Full audit tested
- [ ] All sections work
- [ ] Performance acceptable
- [ ] Tests pass 100%

**Definition of Done**:
- [ ] Integration tests complete
- [ ] Performance verified
- [ ] Ready for production

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Epic 11: Integration & Documentation

**Phase**: 4  
**Total Effort**: High  
**Dependencies**: All previous epics  
**Goal**: Complete integration testing and documentation

### Story 11.1: End-to-End Workflow Tests
**Effort**: High  
**Priority**: Critical

**As a** developer  
**I want** E2E workflow tests  
**So that** I verify complete release workflows

**Description**:
Write comprehensive end-to-end tests that verify complete release workflows from changeset creation to archiving.

**Tasks**:
1. Create E2E test scenarios
   - Complete release workflow
   - Monorepo release
   - Single-package release
   - Upgrade workflow
   - **Effort**: High

2. Write workflow tests
   - Test each scenario
   - Verify all integrations
   - **Effort**: Massive

3. Add CI integration
   - Run E2E tests in CI
   - Add to test suite
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] All workflows tested
- [ ] Tests pass consistently
- [ ] CI integration works
- [ ] Coverage meets requirements

**Definition of Done**:
- [ ] E2E tests complete
- [ ] All passing in CI
- [ ] Documentation updated

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.2: API Documentation
**Effort**: High  
**Priority**: Critical

**As a** user  
**I want** complete API documentation  
**So that** I can use the library effectively

**Description**:
Complete all API documentation with examples for every public item.

**Tasks**:
1. Review and complete module docs
   - Ensure What/How/Why for each module
   - Add examples
   - **Effort**: High

2. Complete function documentation
   - Document all parameters
   - Document return values
   - Document errors
   - Add examples
   - **Effort**: Massive

3. Generate and review docs
   - Run `cargo doc`
   - Review generated docs
   - Fix issues
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] 100% documentation coverage
- [ ] All examples compile
- [ ] All examples work
- [ ] `cargo doc` passes without warnings

**Definition of Done**:
- [ ] Documentation complete
- [ ] Examples verified
- [ ] Published to docs.rs

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.3: Usage Examples
**Effort**: Medium  
**Priority**: High

**As a** user  
**I want** runnable examples  
**So that** I can learn by doing

**Description**:
Create runnable examples in the `examples/` directory covering common use cases.

**Tasks**:
1. Create basic examples
   - Basic changeset usage
   - Version resolution
   - Changelog generation
   - **Effort**: Medium

2. Create advanced examples
   - Dependency upgrades
   - Audit reports
   - Complete workflows
   - **Effort**: Medium

3. Test all examples
   - Verify they compile
   - Verify they run
   - Add to CI
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] 6+ examples created
- [ ] All examples compile
- [ ] All examples run successfully
- [ ] Examples documented
- [ ] Examples in CI

**Definition of Done**:
- [ ] Examples complete
- [ ] All working
- [ ] CI integration done

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.4: User Guides
**Effort**: High  
**Priority**: High

**As a** user  
**I want** comprehensive guides  
**So that** I can learn the library

**Description**:
Create user guides covering common scenarios and best practices.

**Tasks**:
1. Create getting started guide
   - Installation
   - Basic usage
   - First changeset
   - **Effort**: Medium

2. Create monorepo guide
   - Monorepo setup
   - Managing multiple packages
   - Best practices
   - **Effort**: High

3. Create CI/CD integration guide
   - GitHub Actions example
   - GitLab CI example
   - Best practices
   - **Effort**: Medium

4. Create troubleshooting guide
   - Common issues
   - Solutions
   - FAQ
   - **Effort**: Medium

**Acceptance Criteria**:
- [ ] All guides complete
- [ ] Examples verified
- [ ] Clear and helpful
- [ ] Published

**Definition of Done**:
- [ ] Guides written
- [ ] Examples tested
- [ ] Published to docs/

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.5: README and Crate Metadata
**Effort**: Low  
**Priority**: High

**As a** user  
**I want** a great README  
**So that** I understand the project quickly

**Description**:
Create comprehensive README and update crate metadata.

**Tasks**:
1. Write README.md
   - Overview
   - Features
   - Quick start
   - Links
   - **Effort**: Medium

2. Update Cargo.toml metadata
   - Description
   - Keywords
   - Categories
   - Links
   - **Effort**: Minimal

3. Create CHANGELOG.md
   - Initial version entry
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] README comprehensive
- [ ] Metadata complete
- [ ] CHANGELOG started
- [ ] Links work

**Definition of Done**:
- [ ] README complete
- [ ] Metadata updated
- [ ] Ready for publication

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.6: Performance Benchmarks
**Effort**: Medium  
**Priority**: Medium

**As a** developer  
**I want** performance benchmarks  
**So that** I can track performance

**Description**:
Create performance benchmarks for critical operations.

**Tasks**:
1. Setup criterion.rs
   - Add dependency
   - Configure benchmarks
   - **Effort**: Low

2. Create benchmarks
   - Version resolution
   - Dependency propagation
   - Changelog generation
   - **Effort**: Medium

3. Add to CI
   - Run benchmarks
   - Track performance
   - **Effort**: Low

**Acceptance Criteria**:
- [ ] Benchmarks created
- [ ] Baseline established
- [ ] CI integration works
- [ ] Performance acceptable

**Definition of Done**:
- [ ] Benchmarks complete
- [ ] CI tracking enabled
- [ ] Performance documented

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

### Story 11.7: Release Preparation
**Effort**: Low  
**Priority**: High

**As a** maintainer  
**I want** the crate ready for release  
**So that** I can publish v1.0.0

**Description**:
Final checks and preparation for v1.0.0 release.

**Tasks**:
1. Final quality checks
   - Run all tests
   - Check clippy
   - Check documentation
   - Check examples
   - **Effort**: Low

2. Version bump to 1.0.0
   - Update Cargo.toml
   - Update CHANGELOG.md
   - Tag release
   - **Effort**: Minimal

3. Pre-publish checks
   - Run `cargo publish --dry-run`
   - Verify package contents
   - **Effort**: Minimal

**Acceptance Criteria**:
- [ ] All tests pass
- [ ] 100% clippy compliance
- [ ] 100% documentation
- [ ] 100% test coverage
- [ ] Examples work
- [ ] Ready for publication

**Definition of Done**:
- [ ] All checks pass
- [ ] Version tagged
- [ ] Ready to publish

- [ ] Verify all the code if needs to be updated with the new implementation, looking for TODOS that are waiting for this implementation
---

## Summary

### Total Story Count
- **Epics**: 11
- **User Stories**: 67
- **Tasks**: 342+

### Effort Distribution

| Epic | Effort | Story Count |
|------|--------|-------------|
| Epic 1: Project Foundation | Medium | 3 |
| Epic 2: Configuration System | High | 3 |
| Epic 3: Error Handling | Medium | 2 |
| Epic 4: Core Types | Medium | 4 |
| Epic 5: Versioning Engine | Massive | 8 |
| Epic 6: Changeset Management | High | 5 |
| Epic 7: Changes Analysis | High | 6 |
| Epic 8: Changelog Generation | Massive | 10 |
| Epic 9: Dependency Upgrades | High | 7 |
| Epic 10: Audit & Health Checks | High | 9 |
| Epic 11: Integration & Documentation | High | 10 |

### Critical Path
1. Epic 1 → Epic 2 → Epic 3 → Epic 4 (Foundation - 3 weeks)
2. Epic 5 → Epic 6 → Epic 7 (Core - 4 weeks)
3. Epic 8 → Epic 9 (Advanced - 3 weeks)
4. Epic 10 → Epic 11 (Polish - 2 weeks)

**Total Timeline**: 12 weeks

---

## How to Use This Story Map

### For Planning
1. Review each epic in sequence
2. Break down stories into sprint-sized chunks
3. Assign stories to developers
4. Track progress using acceptance criteria

### For Development
1. Pick a story from the current epic
2. Review tasks and effort estimate
3. Implement following quality standards
4. Verify all acceptance criteria
5. Complete definition of done

### For Review
1. Check all acceptance criteria met
2. Verify tests pass with 100% coverage
3. Verify clippy passes
4. Verify documentation complete
5. Approve and merge

---

**STORY_MAP.md STATUS**: ✅ **COMPLETE** - Ready for sprint planning