Commit b2dec43
committed
feat(workflows): add duplicate detection and update documentation
## Duplicate Detection (Medium Priority Fix)
Added automatic duplicate detection in spec-create.yml:
- Validates that specification directory was actually created
- Checks Claude's comment for duplicate indicators
- Auto-closes issue with 'duplicate' label if duplicate detected
- Removes 'spec-request' label to prevent confusion
- Provides clear error message if creation failed for other reasons
This prevents duplicate issues from staying open with stale labels.
## Documentation Updates (CLAUDE.md)
Updated workflow documentation to reflect recent improvements:
1. **Supporting Workflows** - Added sync-labels.yml to the list
- Documents automatic label synchronization after manual merges
2. **Workflow Data Flow** - Enhanced Flow A (spec creation)
- Added duplicate detection validation step
- Shows when issues are auto-closed for duplicates
3. **Workflow Data Flow** - Enhanced Flow B (implementation)
- Documents atomic commits (implementation + metadata together)
- Shows PR completeness validation in impl-merge.yml
- Prevents partial merges with missing implementation files
4. **Decoupled Architecture** - Added benefits
- Labels auto-synced after manual PR merges
- Spec merge operations serialized to prevent race conditions
All workflow improvements from #3228 are now fully documented.
Related: #32281 parent edc2ac7 commit b2dec43
2 files changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 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 | + | |
278 | 313 | | |
279 | 314 | | |
280 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
| |||
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
| 662 | + | |
661 | 663 | | |
662 | 664 | | |
663 | 665 | | |
| |||
669 | 671 | | |
670 | 672 | | |
671 | 673 | | |
| 674 | + | |
672 | 675 | | |
673 | 676 | | |
674 | 677 | | |
| |||
711 | 714 | | |
712 | 715 | | |
713 | 716 | | |
| 717 | + | |
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
| |||
723 | 727 | | |
724 | 728 | | |
725 | 729 | | |
| 730 | + | |
726 | 731 | | |
727 | 732 | | |
728 | 733 | | |
| |||
731 | 736 | | |
732 | 737 | | |
733 | 738 | | |
| 739 | + | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
| |||
0 commit comments