@codemcp/workflows-core 5.2.1 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/conversation-manager.js +3 -2
- package/dist/conversation-manager.js.map +1 -1
- package/dist/path-validation-utils.d.ts +24 -0
- package/dist/path-validation-utils.js +37 -1
- package/dist/path-validation-utils.js.map +1 -1
- package/dist/plan-manager.js +2 -1
- package/dist/plan-manager.js.map +1 -1
- package/package.json +1 -1
- package/resources/workflows/adr.yaml +62 -48
- package/resources/workflows/big-bang-conversion.yaml +231 -172
- package/resources/workflows/boundary-testing.yaml +137 -95
- package/resources/workflows/bugfix.yaml +33 -38
- package/resources/workflows/business-analysis.yaml +130 -172
- package/resources/workflows/c4-analysis.yaml +120 -114
- package/resources/workflows/epcc.yaml +43 -10
- package/resources/workflows/game-beginner.yaml +113 -103
- package/resources/workflows/greenfield.yaml +61 -38
- package/resources/workflows/minor.yaml +51 -28
- package/resources/workflows/posts.yaml +41 -42
- package/resources/workflows/sdd-bugfix-crowd.yaml +181 -206
- package/resources/workflows/sdd-bugfix.yaml +168 -179
- package/resources/workflows/sdd-feature-crowd.yaml +357 -380
- package/resources/workflows/sdd-feature.yaml +162 -155
- package/resources/workflows/sdd-greenfield-crowd.yaml +82 -74
- package/resources/workflows/sdd-greenfield.yaml +153 -147
- package/resources/workflows/slides.yaml +29 -35
- package/resources/workflows/tdd.yaml +59 -48
- package/resources/workflows/waterfall.yaml +64 -44
|
@@ -27,30 +27,39 @@ states:
|
|
|
27
27
|
conversion_planning:
|
|
28
28
|
description: 'Plan the complete system replacement strategy and approach'
|
|
29
29
|
default_instructions: >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
30
|
+
**STEP 1: Reference Architecture Documentation**
|
|
31
|
+
- Check if `$ARCHITECTURE_DOC` exists
|
|
32
|
+
- Review current system understanding from documentation
|
|
33
|
+
- If unavailable, search for architecture docs (README.md, docs/, ARCHITECTURE.md)
|
|
34
|
+
- Enhance `$ARCHITECTURE_DOC` with your findings
|
|
35
|
+
|
|
36
|
+
**STEP 2: Analyze Current System**
|
|
37
|
+
- Examine codebase to understand system architecture
|
|
38
|
+
- Review existing boundary tests and system baselines if available
|
|
39
|
+
- Document current functionality and constraints
|
|
40
|
+
|
|
41
|
+
**STEP 3: Define Conversion Scope**
|
|
42
|
+
- Establish what will be replaced
|
|
43
|
+
- Identify what will remain unchanged
|
|
44
|
+
- Document scope boundaries clearly
|
|
45
|
+
|
|
46
|
+
**STEP 4: Plan Conversion Strategy**
|
|
47
|
+
- Design the approach for complete system replacement
|
|
48
|
+
- Identify risks and mitigation strategies
|
|
49
|
+
- Establish realistic timeline for conversion execution
|
|
50
|
+
|
|
51
|
+
**STEP 5: Interview the User (Business & Operational Context)**
|
|
52
|
+
- What business constraints or deadlines apply to this conversion?
|
|
53
|
+
- What is the acceptable downtime window?
|
|
54
|
+
- What are the rollback criteria if conversion encounters issues?
|
|
55
|
+
|
|
56
|
+
**STEP 6: Apply Best Practices**
|
|
57
|
+
- Plan every aspect of conversion thoroughly
|
|
58
|
+
- Identify and plan for potential failure scenarios
|
|
59
|
+
- Have a plan to revert if conversion fails
|
|
60
|
+
- Keep all stakeholders informed of the plan
|
|
61
|
+
- Plan validation checkpoints throughout conversion
|
|
62
|
+
- Ensure adequate resources for conversion execution
|
|
54
63
|
|
|
55
64
|
Update the plan file with conversion planning decisions and mark completed tasks.
|
|
56
65
|
transitions:
|
|
@@ -65,38 +74,48 @@ states:
|
|
|
65
74
|
target_architecture_design:
|
|
66
75
|
description: 'Design the architecture for the new system in target technology'
|
|
67
76
|
default_instructions: >
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
2
|
|
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
|
-
-
|
|
77
|
+
**STEP 1: Reference Architecture Documentation**
|
|
78
|
+
- If `$ARCHITECTURE_DOC` exists: Review current system understanding from it
|
|
79
|
+
- Otherwise: Elaborate architectural options and present them to the user
|
|
80
|
+
|
|
81
|
+
**STEP 2: Create/Update Design Documentation**
|
|
82
|
+
- If `$DESIGN_DOC` exists: Reference it for existing design decisions
|
|
83
|
+
- Otherwise: Document design decisions in the plan file
|
|
84
|
+
|
|
85
|
+
**STEP 3: Analyze Current Architecture**
|
|
86
|
+
- Examine existing system architecture and patterns
|
|
87
|
+
- Identify architectural constraints and requirements
|
|
88
|
+
|
|
89
|
+
**STEP 4: Select Technology Stack**
|
|
90
|
+
- Finalize the target technology stack and frameworks
|
|
91
|
+
- Align with organizational technology standards
|
|
92
|
+
|
|
93
|
+
**STEP 5: Design Architecture Patterns**
|
|
94
|
+
- Choose appropriate architectural patterns for new system
|
|
95
|
+
- Design component reimplementation approach
|
|
96
|
+
- Plan external system integration strategy
|
|
97
|
+
- Design data storage and management approach
|
|
98
|
+
- Plan deployment and operational architecture
|
|
99
|
+
|
|
100
|
+
**STEP 6: Interview the User (Requirements & Constraints)**
|
|
101
|
+
- What are the performance requirements for the new system?
|
|
102
|
+
- Are there any scalability requirements we need to design for?
|
|
103
|
+
- Are there any budget constraints that affect technology choices?
|
|
104
|
+
|
|
105
|
+
**STEP 7: Apply Best Practices**
|
|
106
|
+
- Leverage modern architectural approaches
|
|
107
|
+
- Design for future growth and scalability
|
|
108
|
+
- Choose patterns that improve long-term maintainability
|
|
109
|
+
- Align with organizational technology standards
|
|
110
|
+
- Design for optimal performance characteristics
|
|
111
|
+
- Incorporate security considerations from the start
|
|
112
|
+
|
|
113
|
+
**STEP 8: Validate Design Framework**
|
|
114
|
+
- Ensure new architecture supports all current functionality
|
|
115
|
+
- Apply microservices, event-driven, or other modern patterns as appropriate
|
|
116
|
+
- Follow best practices for the target technology stack
|
|
117
|
+
- Design clean integration patterns with external systems
|
|
118
|
+
- Plan data migration from current system to new system
|
|
100
119
|
|
|
101
120
|
Update the plan file with architecture design decisions and validate with the user.
|
|
102
121
|
transitions:
|
|
@@ -116,38 +135,42 @@ states:
|
|
|
116
135
|
behavioral_comparison_setup:
|
|
117
136
|
description: 'Set up mechanisms to compare behavior between current and new systems'
|
|
118
137
|
default_instructions: >
|
|
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
|
-
|
|
138
|
+
**STEP 1: Design Comparison Strategy**
|
|
139
|
+
- Design approach for comparing current and new system behavior
|
|
140
|
+
- Choose appropriate comparison mechanisms for your infrastructure
|
|
141
|
+
- Plan how to implement the chosen comparison approach
|
|
142
|
+
|
|
143
|
+
**STEP 2: Design Data Capture**
|
|
144
|
+
- Design how to capture system behavior
|
|
145
|
+
- Design how to compare behavior between systems
|
|
146
|
+
- Define what constitutes successful behavioral equivalence
|
|
147
|
+
|
|
148
|
+
**STEP 3: Plan Automation**
|
|
149
|
+
- Plan automated comparison processes
|
|
150
|
+
- Plan automated validation processes
|
|
151
|
+
- Define measurement and reporting mechanisms
|
|
152
|
+
|
|
153
|
+
**STEP 4: Suggest Best Practice Mechanisms**
|
|
154
|
+
- Sidecar Pattern: Deploy comparison logic alongside applications
|
|
155
|
+
- Proxy/Gateway: Route traffic through comparison proxy
|
|
156
|
+
- Shadow Traffic: Send duplicate traffic to both systems
|
|
157
|
+
- Event Streaming: Compare system events and state changes
|
|
158
|
+
- API Response Comparison: Compare API responses between systems
|
|
159
|
+
- Database State Comparison: Compare database states after operations
|
|
160
|
+
- Log Analysis: Compare system logs and behavior patterns
|
|
161
|
+
- Synthetic Testing: Use automated tests to compare behavior
|
|
162
|
+
|
|
163
|
+
**STEP 5: Recommend Implementation Approaches**
|
|
164
|
+
- Traffic Mirroring: Mirror production traffic to new system
|
|
165
|
+
- Parallel Execution: Run both systems in parallel with comparison
|
|
166
|
+
- Staged Rollout: Gradually shift traffic while comparing
|
|
167
|
+
- A/B Testing: Compare systems with controlled traffic splits
|
|
168
|
+
- Canary Deployment: Test new system with small traffic percentage
|
|
169
|
+
|
|
170
|
+
**STEP 6: Interview the User (Infrastructure & Operational Context)**
|
|
171
|
+
- What level of traffic or load do you need to validate against?
|
|
172
|
+
- Are there any operational constraints for running parallel systems?
|
|
173
|
+
|
|
151
174
|
Update the plan file with comparison setup decisions.
|
|
152
175
|
transitions:
|
|
153
176
|
- trigger: 'refine_comparison'
|
|
@@ -166,37 +189,50 @@ states:
|
|
|
166
189
|
implementation_strategy:
|
|
167
190
|
description: 'Plan detailed implementation approach for the new system'
|
|
168
191
|
default_instructions: >
|
|
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
|
-
-
|
|
192
|
+
**STEP 1: Reference Design Documentation**
|
|
193
|
+
- If `$DESIGN_DOC` exists: Check it for target architecture and design decisions
|
|
194
|
+
- Otherwise: Elaborate design options and present them to the user
|
|
195
|
+
- Review implementation constraints and requirements
|
|
196
|
+
|
|
197
|
+
**STEP 2: Break Down Implementation**
|
|
198
|
+
- Break implementation into manageable phases
|
|
199
|
+
- Define logical phases that deliver business value
|
|
200
|
+
- Establish sequence and dependencies
|
|
201
|
+
|
|
202
|
+
**STEP 3: Plan Development Approach**
|
|
203
|
+
- Plan development methodology and practices
|
|
204
|
+
- Plan testing and quality assurance throughout implementation
|
|
205
|
+
- Plan how development team will coordinate work
|
|
206
|
+
|
|
207
|
+
**STEP 4: Plan Integration Strategy**
|
|
208
|
+
- Plan how to integrate new components as they're built
|
|
209
|
+
- Plan regular validation against functional equivalence
|
|
210
|
+
- Plan continuous integration and testing practices
|
|
211
|
+
|
|
212
|
+
**STEP 5: Plan Risk Management**
|
|
213
|
+
- Identify highest risks first
|
|
214
|
+
- Address implementation risks systematically
|
|
215
|
+
- Plan contingency approaches for high-risk areas
|
|
216
|
+
|
|
217
|
+
**STEP 6: Interview the User (Team & Process)**
|
|
218
|
+
- What development methodology does your team prefer (Agile, Scrum, etc.)?
|
|
219
|
+
- How large is the development team for this conversion?
|
|
220
|
+
|
|
221
|
+
**STEP 7: Apply Best Practices**
|
|
222
|
+
- Build and validate incrementally
|
|
223
|
+
- Integrate and test frequently
|
|
224
|
+
- Write tests before implementation
|
|
225
|
+
- Maintain high code quality standards
|
|
226
|
+
- Document decisions and implementation details
|
|
227
|
+
- Validate against legacy system frequently
|
|
228
|
+
|
|
229
|
+
**STEP 8: Create Strategy Framework**
|
|
230
|
+
- Define logical phases that deliver business value
|
|
231
|
+
- Establish regular checkpoints to validate functional equivalence
|
|
232
|
+
- Plan comprehensive testing at each phase
|
|
233
|
+
- Address highest risks first
|
|
234
|
+
- Establish clear communication and coordination processes
|
|
235
|
+
- Define measurable progress indicators
|
|
200
236
|
|
|
201
237
|
Update the plan file with implementation strategy and validate with the user.
|
|
202
238
|
transitions:
|
|
@@ -216,30 +252,37 @@ states:
|
|
|
216
252
|
parallel_implementation:
|
|
217
253
|
description: 'Build new system while maintaining test compatibility and validation'
|
|
218
254
|
default_instructions: >
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
255
|
+
**STEP 1: Reference Design Documentation**
|
|
256
|
+
- If `$DESIGN_DOC` exists: Check it for implementation guidance and architectural decisions
|
|
257
|
+
- Otherwise: Elaborate implementation options and present them to the user
|
|
258
|
+
|
|
259
|
+
**STEP 2: Build System Components**
|
|
260
|
+
- Build new system components according to implementation strategy
|
|
261
|
+
- Ensure new system passes existing functional equivalence tests
|
|
262
|
+
- Validate new system behavior against legacy system regularly
|
|
263
|
+
|
|
264
|
+
**STEP 3: Maintain Quality Standards**
|
|
265
|
+
- Maintain high code quality and testing standards
|
|
266
|
+
- Test integration between new components as they're built
|
|
267
|
+
- Ensure new system meets performance requirements
|
|
268
|
+
|
|
269
|
+
**STEP 4: Document Implementation**
|
|
270
|
+
- Document implementation decisions as they're made
|
|
271
|
+
- Document system behavior and design rationale
|
|
272
|
+
- Keep implementation documentation current
|
|
273
|
+
|
|
274
|
+
**STEP 5: Interview the User (Implementation Priorities)**
|
|
275
|
+
- Which components or business domains should we implement first?
|
|
276
|
+
|
|
277
|
+
**STEP 6: Apply Best Practices**
|
|
278
|
+
- Build and validate one component at a time
|
|
279
|
+
- Run tests continuously as implementation progresses
|
|
280
|
+
- Integrate new components frequently
|
|
281
|
+
- Monitor performance throughout implementation
|
|
282
|
+
- Maintain code quality through regular reviews
|
|
283
|
+
- Keep implementation documentation current
|
|
284
|
+
|
|
285
|
+
**STEP 7: Follow Implementation Guidelines**
|
|
243
286
|
- Start with core business functionality
|
|
244
287
|
- Validate each component against existing tests
|
|
245
288
|
- Maintain backward compatibility during development
|
|
@@ -475,44 +518,60 @@ states:
|
|
|
475
518
|
conversion_readiness:
|
|
476
519
|
description: 'Validate conversion readiness and finalize preparation for production execution'
|
|
477
520
|
default_instructions: >
|
|
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
|
-
|
|
521
|
+
The `CONVERSION_PLAN.md` file has been created at `.vibe/CONVERSION_PLAN.md`.
|
|
522
|
+
|
|
523
|
+
**STEP 1: Validate System Functionality**
|
|
524
|
+
- Validate that new system passes all functional equivalence tests
|
|
525
|
+
- Ensure behavioral comparison mechanisms work correctly
|
|
526
|
+
- Verify new system meets performance requirements
|
|
527
|
+
|
|
528
|
+
**STEP 2: Validate Integrations**
|
|
529
|
+
- Validate all external system integrations work correctly
|
|
530
|
+
- Test integration endpoints and data flows
|
|
531
|
+
- Confirm integration error handling works properly
|
|
532
|
+
|
|
533
|
+
**STEP 3: Review Conversion Plan**
|
|
534
|
+
- Review `.vibe/CONVERSION_PLAN.md` for completeness
|
|
535
|
+
- Customize the plan for your specific environment
|
|
536
|
+
- Ensure rollback procedures are documented and tested
|
|
537
|
+
|
|
538
|
+
**STEP 4: Ensure Team Readiness**
|
|
539
|
+
- Confirm operations team is ready for production conversion
|
|
540
|
+
- Verify all teams have necessary documentation
|
|
541
|
+
- Confirm emergency contacts and escalation procedures are defined
|
|
542
|
+
|
|
543
|
+
**STEP 5: Assess Final Readiness**
|
|
544
|
+
- Make final assessment of conversion readiness
|
|
545
|
+
- Identify and address any remaining concerns
|
|
546
|
+
- Validate all risk mitigation strategies are in place
|
|
547
|
+
|
|
548
|
+
**STEP 6: Review and Present Findings to User**
|
|
549
|
+
- Review new system functional equivalence test results
|
|
550
|
+
- Present behavioral comparison mechanism status
|
|
551
|
+
- Review `CONVERSION_PLAN.md` customization needs
|
|
552
|
+
- Present final conversion readiness assessment
|
|
553
|
+
|
|
554
|
+
**STEP 7: Apply Best Practices**
|
|
555
|
+
- Validate every aspect of system readiness
|
|
556
|
+
- Assess and mitigate all identified risks
|
|
557
|
+
- Ensure all teams are prepared for conversion
|
|
558
|
+
- Ensure all documentation is complete and accurate
|
|
559
|
+
- Have backup plans for all scenarios
|
|
560
|
+
- Keep stakeholders informed of readiness status
|
|
561
|
+
|
|
562
|
+
**STEP 8: Verify Conversion Readiness Checklist**
|
|
504
563
|
- New system passes all boundary tests (functional equivalence proven)
|
|
505
564
|
- Behavioral comparison mechanism validates system equivalence
|
|
506
565
|
- Performance requirements are met or exceeded
|
|
507
566
|
- All external integrations work correctly
|
|
508
|
-
- CONVERSION_PLAN.md is customized for your environment
|
|
567
|
+
- `CONVERSION_PLAN.md` is customized for your environment
|
|
509
568
|
- Operations team is trained and ready
|
|
510
569
|
- Rollback procedures are tested and ready
|
|
511
570
|
|
|
512
|
-
**Final Deliverables
|
|
571
|
+
**STEP 9: Confirm Final Deliverables**
|
|
513
572
|
- Fully functional new system with proven equivalence
|
|
514
573
|
- Operational behavioral comparison mechanism
|
|
515
|
-
- Comprehensive CONVERSION_PLAN.md for production execution
|
|
574
|
+
- Comprehensive `CONVERSION_PLAN.md` for production execution
|
|
516
575
|
- Validated rollback procedures
|
|
517
576
|
- Ready operations team
|
|
518
577
|
|