@codemcp/workflows-core 5.2.2 → 5.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-core",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -23,20 +23,27 @@ states:
23
23
  context:
24
24
  description: 'Define the architectural problem or decision that needs to be made'
25
25
  default_instructions: |
26
- You are starting an Architecture Decision Record (ADR) workflow.
26
+ **STEP 1:** Determine ADR storage location
27
+ - If `$ARCHITECTURE_DOC` exists: Use it to determine ADR storage location
28
+ - Otherwise: Document ADR decisions in the plan file
27
29
 
28
- **Your tasks:**
29
- 1. Check if $ARCHITECTURE_DOC exists to determine ADR storage location
30
- 2. Look for existing ADRs to understand current format/numbering
31
- 3. Help user clearly define the architectural problem or decision needed
32
- 4. Identify key stakeholders who should be involved
33
- 5. IMPORTANT: Gather information about the quality attributes (non-functional requirements)
34
- that are relevant to this decision (e.g., performance, security, maintainability)
35
- 6. Document the context and problem statement
36
- 7. Create initial ADR structure using existing format or template above
30
+ **STEP 2:** Look for existing ADRs to understand current format and numbering
37
31
 
38
- Focus on understanding WHAT decision needs to be made and WHY it's important.
39
- Don't evaluate technical options or make the decision yet - that happens in the decide phase.
32
+ **STEP 3:** Help user clearly define the architectural problem or decision needed
33
+
34
+ **STEP 4:** Identify key stakeholders who should be involved
35
+
36
+ **STEP 5:** Gather information about quality attributes (non-functional requirements) relevant to this decision
37
+ - Performance implications
38
+ - Security requirements
39
+ - Maintainability concerns
40
+ - Other relevant attributes
41
+
42
+ **STEP 6:** Document the context and problem statement
43
+
44
+ **STEP 7:** Create initial ADR structure using existing format or provided template
45
+
46
+ Focus on understanding WHAT decision needs to be made and WHY it's important. Do not evaluate technical options yet—that happens in the decide phase.
40
47
 
41
48
  additional_instructions: |
42
49
  **ADR Template (use if no existing ADRs found):**
@@ -71,20 +78,21 @@ states:
71
78
  research:
72
79
  description: 'Investigate options, gather information, and analyze alternatives'
73
80
  default_instructions: |
74
- You are in the research phase for the ADR. This is the most important phase of the workflow.
81
+ **STEP 1:** Research available options and alternatives for the decision
82
+
83
+ **STEP 2:** Gather technical information, constraints, and requirements
75
84
 
76
- **Your tasks:**
77
- 1. Research available options and alternatives for the decision
78
- 2. Gather technical information, constraints, and requirements
79
- 3. Analyze trade-offs between different approaches:
80
- - Evaluate each option based on the defined quality attributes
81
- - Many solutions will require knowledge about a particular technology. Query the user about his experience with it.
82
- - Don't jump to judgments: Consider the user's perspective on the decision-making process
83
- 4. Document findings in the "Alternatives Considered" section
84
- 5. Identify pros and cons for each option
85
+ **STEP 3:** Analyze trade-offs between different approaches
86
+ - Evaluate each option based on defined quality attributes
87
+ - Query user about experience with specific technologies
88
+ - Consider user's perspective on the decision-making process
89
+ - Avoid premature judgments
85
90
 
86
- Work with the user to thoroughly understand all viable options before making a decision.
87
- Update the ADR with research findings but don't make the final decision yet.
91
+ **STEP 4:** Document findings in the "Alternatives Considered" section
92
+
93
+ **STEP 5:** Identify pros and cons for each option
94
+
95
+ Work with the user to thoroughly understand all viable options before making a decision. Update the ADR with research findings but do not make the final decision yet.
88
96
 
89
97
  transitions:
90
98
  - trigger: research_complete
@@ -94,19 +102,21 @@ states:
94
102
  decide:
95
103
  description: 'Make the architectural decision and document the rationale'
96
104
  default_instructions: |
97
- You are in the decide phase for the ADR.
105
+ **STEP 1:** Help user make the final architectural decision based on research conducted
106
+
107
+ **STEP 2:** Document the chosen option in the "Decision" section
108
+
109
+ **STEP 3:** Provide clear rationale for why this option was selected
110
+
111
+ **STEP 4:** Document positive consequences (benefits) of the decision
98
112
 
99
- **Your tasks:**
100
- 1. Help user make the final architectural decision based on research
101
- 2. Document the chosen option in the "Decision" section
102
- 3. Provide clear rationale for why this option was selected
103
- 4. Document positive consequences (benefits) of the decision
104
- 5. Document negative consequences (drawbacks/risks) of the decision
105
- 6. Ensure the decision is specific and actionable
106
- 7. Update ADR status to "Accepted" (or "Proposed" if needs approval)
113
+ **STEP 5:** Document negative consequences (drawbacks and risks) of the decision
107
114
 
108
- Focus on making a clear, well-reasoned decision with documented rationale.
109
- The decision should be based on the research conducted in the previous phase.
115
+ **STEP 6:** Ensure the decision is specific and actionable
116
+
117
+ **STEP 7:** Update ADR status to "Accepted" (or "Proposed" if approval is needed)
118
+
119
+ Focus on making a clear, well-reasoned decision with documented rationale based on the research conducted in the previous phase.
110
120
 
111
121
  transitions:
112
122
  - trigger: decision_complete
@@ -123,19 +133,23 @@ states:
123
133
  commit:
124
134
  description: 'Finalize the ADR with validation and cleanup'
125
135
  default_instructions: |
126
- You are in the commit phase for the ADR.
127
-
128
- **Your tasks:**
129
- 1. Review ADR completeness and quality
130
- 2. Ensure proper formatting and structure
131
- 3. Verify all sections are filled appropriately
132
- 4. Check that consequences (positive and negative) are documented
133
- 5. Ensure alternatives considered are listed
134
- 6. Finalize ADR numbering if needed
135
- 7. Update ADR status to final state (Accepted/Approved)
136
- 8. Save/integrate ADR into $ARCHITECTURE_DOC or appropriate location
137
-
138
- This is the final validation and cleanup phase before the ADR is complete.
136
+ **STEP 1:** Review ADR completeness and quality
137
+
138
+ **STEP 2:** Ensure proper formatting and structure
139
+
140
+ **STEP 3:** Verify all sections are filled appropriately
141
+
142
+ **STEP 4:** Check that consequences (positive and negative) are documented
143
+
144
+ **STEP 5:** Ensure alternatives considered are listed
145
+
146
+ **STEP 6:** Finalize ADR numbering if needed
147
+
148
+ **STEP 7:** Update ADR status to final state (Accepted or Approved)
149
+
150
+ **STEP 8:** Save and integrate ADR into `$ARCHITECTURE_DOC` or appropriate location
151
+
152
+ Complete final validation and cleanup before the ADR is finalized.
139
153
 
140
154
  transitions:
141
155
  - trigger: need_decision_changes
@@ -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
- You are in the conversion planning phase for big-bang conversion workflow.
31
-
32
- **Your Tasks:**
33
- 1. **Reference Architecture Documentation**: Check if $ARCHITECTURE_DOC exists and reference it for system understanding
34
- 2. **Search for Architecture**: If $ARCHITECTURE_DOC is not available, search the project for architecture documentation (README.md, docs/, ARCHITECTURE.md, etc.). Enhance the existing $ARCHITECTURE_DOC with your findings
35
- 3. **Reference Existing Tests**: If available, reference existing boundary tests and system baselines
36
- 4. **Analyze Current System**: Examine the codebase to understand system architecture and functionality
37
- 5. **Define Conversion Scope**: Establish what will be replaced and what will remain
38
- 6. **Plan Conversion Strategy**: Design the approach for complete system replacement
39
- 7. **Risk Assessment**: Identify risks and mitigation strategies for big-bang approach
40
- 8. **Timeline Planning**: Establish realistic timeline for conversion execution
41
-
42
- **Interview the User (Business & Operational Context):**
43
- - "What business constraints or deadlines do we need to consider for this conversion?"
44
- - "What is the acceptable downtime window for this conversion?"
45
- - "What are the rollback criteria if the conversion encounters issues?"
46
-
47
- **Best Practices to Apply:**
48
- - **Comprehensive Planning**: Plan every aspect of the conversion thoroughly
49
- - **Risk Mitigation**: Identify and plan for potential failure scenarios
50
- - **Rollback Strategy**: Always have a plan to revert if conversion fails
51
- - **Stakeholder Communication**: Keep all stakeholders informed of the plan
52
- - **Incremental Validation**: Plan validation checkpoints throughout conversion
53
- - **Resource Planning**: Ensure adequate resources for conversion execution
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
- You are in the target architecture design phase. Design the new system architecture in the target technology stack.
69
-
70
- **Your Tasks:**
71
- 1. **Reference Architecture Documentation**: Check if $ARCHITECTURE_DOC exists and reference it for current system understanding
72
- 2. **Create/Update Design Documentation**: Check if $DESIGN_DOC exists and reference it. If not available, create or enhance $DESIGN_DOC with your design decisions
73
- 3. **Analyze Current Architecture**: Examine the existing system architecture and patterns
74
- 4. **Technology Stack Selection**: Finalize the target technology stack and frameworks
75
- 5. **Architecture Pattern Design**: Choose appropriate architectural patterns for the new system
76
- 6. **Component Design**: Design how current components will be reimplemented
77
- 7. **Integration Design**: Plan how the new system will integrate with external systems
78
- 8. **Data Architecture**: Design data storage and management for the new system
79
- 9. **Deployment Architecture**: Plan how the new system will be deployed and operated
80
-
81
- **Interview the User (Requirements & Constraints):**
82
- - "What are the performance requirements for the new system?"
83
- - "Are there any scalability requirements we need to design for?"
84
- - "Are there any budget constraints that affect technology choices?"
85
-
86
- **Best Practices to Apply:**
87
- - **Modern Architecture Patterns**: Leverage modern architectural approaches
88
- - **Scalability Design**: Design for future growth and scalability
89
- - **Maintainability**: Choose patterns that improve long-term maintainability
90
- - **Technology Alignment**: Align with organizational technology standards
91
- - **Performance Optimization**: Design for optimal performance characteristics
92
- - **Security by Design**: Incorporate security considerations from the start
93
-
94
- **Architecture Design Framework:**
95
- - **Functional Preservation**: Ensure new architecture supports all current functionality
96
- - **Modern Patterns**: Apply microservices, event-driven, or other modern patterns as appropriate
97
- - **Technology Best Practices**: Follow best practices for the target technology stack
98
- - **Integration Strategy**: Design clean integration patterns with external systems
99
- - **Data Migration**: Plan how current data will be migrated to new system
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
- You are in the behavioral comparison setup phase. Design and implement mechanisms to validate functional equivalence.
120
-
121
- **Your Tasks:**
122
- 1. **Comparison Strategy Design**: Design approach for comparing current and new system behavior
123
- 2. **Mechanism Selection**: Choose appropriate comparison mechanisms for your infrastructure
124
- 3. **Implementation Planning**: Plan how to implement the chosen comparison approach
125
- 4. **Data Capture Design**: Design how to capture and compare system behavior
126
- 5. **Validation Criteria**: Define what constitutes successful behavioral equivalence
127
- 6. **Automation Planning**: Plan automated comparison and validation processes
128
-
129
- **Interview the User (Infrastructure & Operational Context):**
130
- - "What level of traffic or load do you need to validate against?"
131
- - "Are there any operational constraints for running parallel systems?"
132
-
133
- **Best Practice Mechanisms to Suggest:**
134
- - **Sidecar Pattern**: Deploy comparison logic alongside applications
135
- - **Proxy/Gateway**: Route traffic through comparison proxy
136
- - **Shadow Traffic**: Send duplicate traffic to both systems
137
- - **Event Streaming**: Compare system events and state changes
138
- - **API Response Comparison**: Compare API responses between systems
139
- - **Database State Comparison**: Compare database states after operations
140
- - **Log Analysis**: Compare system logs and behavior patterns
141
- - **Synthetic Testing**: Use automated tests to compare behavior
142
-
143
- **Implementation Approaches:**
144
- - **Traffic Mirroring**: Mirror production traffic to new system
145
- - **Parallel Execution**: Run both systems in parallel with comparison
146
- - **Staged Rollout**: Gradually shift traffic while comparing
147
- - **A/B Testing**: Compare systems with controlled traffic splits
148
- - **Canary Deployment**: Test new system with small traffic percentage
149
-
150
- Interview the user about their infrastructure and suggest appropriate mechanisms.
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
- You are in the implementation strategy phase. Plan the systematic approach for building the new system.
170
-
171
- **Your Tasks:**
172
- 1. **Reference Design Documentation**: Check $DESIGN_DOC for target architecture and design decisions
173
- 2. **Implementation Phases**: Break down implementation into manageable phases
174
- 3. **Development Approach**: Plan development methodology and practices
175
- 4. **Quality Assurance**: Plan testing and quality assurance throughout implementation
176
- 5. **Integration Strategy**: Plan how to integrate new components as they're built
177
- 6. **Validation Checkpoints**: Plan regular validation against functional equivalence
178
- 7. **Team Coordination**: Plan how development team will coordinate work
179
- 8. **Risk Management**: Plan how to manage implementation risks
180
-
181
- **Interview the User (Team & Process):**
182
- - "What development methodology does your team prefer (Agile, Scrum, etc.)?"
183
- - "How large is the development team for this conversion?"
184
-
185
- **Best Practices to Apply:**
186
- - **Iterative Development**: Build and validate incrementally
187
- - **Continuous Integration**: Integrate and test frequently
188
- - **Test-Driven Development**: Write tests before implementation
189
- - **Code Quality**: Maintain high code quality standards
190
- - **Documentation**: Document decisions and implementation details
191
- - **Regular Validation**: Validate against legacy system frequently
192
-
193
- **Implementation Strategy Framework:**
194
- - **Phase Planning**: Logical phases that deliver business value
195
- - **Validation Gates**: Regular checkpoints to validate functional equivalence
196
- - **Quality Assurance**: Comprehensive testing at each phase
197
- - **Risk Mitigation**: Address highest risks first
198
- - **Team Coordination**: Clear communication and coordination processes
199
- - **Progress Tracking**: Measurable progress indicators
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
- You are in the parallel implementation phase. Build the new system systematically with regular validation.
220
-
221
- **Your Tasks:**
222
- 1. **Follow Design Documentation**: Reference $DESIGN_DOC for implementation guidance and architectural decisions
223
- 2. **Systematic Implementation**: Build new system components according to implementation strategy
224
- 3. **Test Compatibility**: Ensure new system passes existing functional equivalence tests
225
- 4. **Regular Validation**: Validate new system behavior against legacy system regularly
226
- 5. **Quality Assurance**: Maintain high code quality and testing standards
227
- 6. **Integration Testing**: Test integration between new components as they're built
228
- 7. **Performance Validation**: Ensure new system meets performance requirements
229
- 8. **Documentation**: Document implementation decisions and system behavior
230
-
231
- **Interview the User (Implementation Priorities):**
232
- - "Which components or business domains should we implement first?"
233
-
234
- **Best Practices to Apply:**
235
- - **Incremental Development**: Build and validate one component at a time
236
- - **Continuous Testing**: Run tests continuously as implementation progresses
237
- - **Regular Integration**: Integrate new components frequently
238
- - **Performance Monitoring**: Monitor performance throughout implementation
239
- - **Code Reviews**: Maintain code quality through regular reviews
240
- - **Documentation**: Keep implementation documentation current
241
-
242
- **Implementation Guidelines:**
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
- You are in the conversion readiness phase. The CONVERSION_PLAN.md file has been created at .vibe/CONVERSION_PLAN.md.
479
-
480
- **Your Tasks:**
481
- 1. **Final System Validation**: Validate that new system passes all functional equivalence tests
482
- 2. **Behavioral Comparison Validation**: Confirm behavioral comparison mechanisms work correctly
483
- 3. **Performance Validation**: Ensure new system meets performance requirements
484
- 4. **Integration Validation**: Validate all external system integrations work correctly
485
- 5. **Conversion Plan Review**: Review and customize the CONVERSION_PLAN.md for your specific environment
486
- 6. **Team Readiness**: Ensure operations team is ready for production conversion
487
- 7. **Final Go/No-Go Assessment**: Make final assessment of conversion readiness
488
-
489
- **Review and Present to User:**
490
- - Review new system functional equivalence test results and present findings
491
- - Present behavioral comparison mechanism status and validation results
492
- - Review CONVERSION_PLAN.md completeness and present customization needs
493
- - Present final conversion readiness assessment and any remaining concerns
494
-
495
- **Best Practices to Apply:**
496
- - **Comprehensive Validation**: Validate every aspect of system readiness
497
- - **Risk Assessment**: Assess and mitigate all identified risks
498
- - **Team Preparation**: Ensure all teams are prepared for conversion
499
- - **Documentation Review**: Ensure all documentation is complete and accurate
500
- - **Contingency Planning**: Have backup plans for all scenarios
501
- - **Stakeholder Communication**: Keep stakeholders informed of readiness status
502
-
503
- **Conversion Readiness Checklist:**
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