-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
change-proposalProposal for a new changeProposal for a new changeenhancementNew feature or requestNew feature or request
Description
Objective
Implement intelligent spec-to-bundle assignment with confidence scoring and user confirmation to prevent mis-bundled specs. This addresses the current manual or heuristic-based bundle assignment that leads to specs landing in wrong bundles and makes conflict detection unreliable.
This change implements Plan C from the SpecFact Backlog & OpenSpec Implementation Roadmap (2026-01-18), providing intelligent bundle mapping with three confidence signals (explicit labels, historical patterns, content similarity) and interactive review for ambiguous mappings.
Technical Approach
- NEW:
BundleMapperengine (src/specfact_cli/backlog/bundle_mapper.py) - Confidence-based mapping with three signals - NEW:
BundleMappingmodel (src/specfact_cli/models/bundle_mapping.py) - Result model with bundle_id, confidence, candidates, explanation - NEW: Mapping history persistence (
.specfact/config.yaml) - Auto-learned rules from user confirmations - NEW: Interactive mapping UI (
src/specfact_cli/cli/backlog_commands.py) - User prompts with confidence visualization - EXTEND:
--auto-bundleflag forbacklog refineandbacklog importcommands - EXTEND:
SourceTrackingmodel - Add mapping metadata fields (bundle_id, mapping_confidence, mapping_method, mapping_timestamp) - EXTEND: OpenSpec generation pipeline - Accept
BundleMappingparameter and record mapping decisions
Success Criteria
- Bundle mapping uses three confidence signals (explicit labels, historical patterns, content similarity)
- Interactive review for ambiguous mappings
- Auto-learned rules from user confirmations
- Integration with Plan A (Template-Driven Refinement) and Plan B (Generic Backlog Abstraction)
- OpenSpec generation pipeline records mapping decisions in source tracking
Dependencies
- Plan A (Template-Driven Refinement) - Uses mapping for
--auto-bundleflag - Plan B (Generic Backlog Abstraction) - Works with any adapter output
- OpenSpec generation pipeline - Records mapping decisions in source tracking
Risks
- Mapping accuracy depends on quality of historical data
- User confirmation workflow may slow down batch operations
OpenSpec Change Proposal: add-bundle-mapping-strategy
Metadata
Metadata
Assignees
Labels
change-proposalProposal for a new changeProposal for a new changeenhancementNew feature or requestNew feature or request
Type
Projects
Status
Todo