-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
When using specfact import from-code --enrichment, stories from LLM enrichment reports are not being correctly merged into existing features. The enrichment parser only adds stories when creating new features, but fails to merge stories when updating existing features that were already present in the plan bundle.
Steps to Reproduce
- Run
specfact import from-codeto create an initial plan bundle with features - Generate an LLM enrichment report that includes stories for existing features
- Run
specfact import from-code --enrichment <enrichment-report.md> - Observe that stories from the enrichment report are not added to existing features
Expected Behavior
Stories from enrichment reports should be merged into existing features:
- New stories (by key) should be added to existing features
- Existing stories should be preserved
- Feature titles should be updated if they were empty
Actual Behavior
- Stories are only added when creating new features
- Existing features do not receive stories from enrichment reports
- This breaks the dual-stack enrichment workflow (CLI grounding → LLM enrichment → CLI artifact creation)
Impact
- User Impact: High - Breaks core enrichment workflow
- Severity: Critical - Prevents proper feature enrichment
- Workflow: Blocks dual-stack enrichment pattern for brownfield analysis
Example
With DjangoGoat validation:
- Initial CLI import: 1 feature, 2 stories
- LLM enrichment report: 8 features with 24 stories total
- After applying enrichment: Stories not merged into existing features
- Expected: 8 features with 24 stories correctly populated
Related
This affects the dual-stack enrichment workflow documented in docs/guides/dual-stack-enrichment.md.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done