@codemcp/workflows-core 3.1.22 → 3.2.0

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.
Files changed (80) hide show
  1. package/package.json +8 -3
  2. package/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  3. package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  4. package/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  5. package/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  6. package/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  7. package/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  8. package/resources/templates/architecture/c4.md +224 -0
  9. package/resources/templates/architecture/freestyle.md +53 -0
  10. package/resources/templates/architecture/none.md +17 -0
  11. package/resources/templates/design/comprehensive.md +207 -0
  12. package/resources/templates/design/freestyle.md +37 -0
  13. package/resources/templates/design/none.md +17 -0
  14. package/resources/templates/requirements/ears.md +90 -0
  15. package/resources/templates/requirements/freestyle.md +42 -0
  16. package/resources/templates/requirements/none.md +17 -0
  17. package/resources/workflows/big-bang-conversion.yaml +539 -0
  18. package/resources/workflows/boundary-testing.yaml +334 -0
  19. package/resources/workflows/bugfix.yaml +185 -0
  20. package/resources/workflows/business-analysis.yaml +671 -0
  21. package/resources/workflows/c4-analysis.yaml +485 -0
  22. package/resources/workflows/epcc.yaml +161 -0
  23. package/resources/workflows/greenfield.yaml +189 -0
  24. package/resources/workflows/minor.yaml +127 -0
  25. package/resources/workflows/posts.yaml +207 -0
  26. package/resources/workflows/slides.yaml +256 -0
  27. package/resources/workflows/tdd.yaml +157 -0
  28. package/resources/workflows/waterfall.yaml +195 -0
  29. package/.turbo/turbo-build.log +0 -4
  30. package/src/config-manager.ts +0 -96
  31. package/src/conversation-manager.ts +0 -489
  32. package/src/database.ts +0 -427
  33. package/src/file-detection-manager.ts +0 -302
  34. package/src/git-manager.ts +0 -64
  35. package/src/index.ts +0 -28
  36. package/src/instruction-generator.ts +0 -210
  37. package/src/interaction-logger.ts +0 -109
  38. package/src/logger.ts +0 -353
  39. package/src/path-validation-utils.ts +0 -261
  40. package/src/plan-manager.ts +0 -323
  41. package/src/project-docs-manager.ts +0 -523
  42. package/src/state-machine-loader.ts +0 -365
  43. package/src/state-machine-types.ts +0 -72
  44. package/src/state-machine.ts +0 -370
  45. package/src/system-prompt-generator.ts +0 -122
  46. package/src/template-manager.ts +0 -328
  47. package/src/transition-engine.ts +0 -386
  48. package/src/types.ts +0 -60
  49. package/src/workflow-manager.ts +0 -606
  50. package/test/unit/conversation-manager.test.ts +0 -179
  51. package/test/unit/custom-workflow-loading.test.ts +0 -174
  52. package/test/unit/directory-linking-and-extensions.test.ts +0 -338
  53. package/test/unit/file-linking-integration.test.ts +0 -256
  54. package/test/unit/git-commit-integration.test.ts +0 -91
  55. package/test/unit/git-manager.test.ts +0 -86
  56. package/test/unit/install-workflow.test.ts +0 -138
  57. package/test/unit/instruction-generator.test.ts +0 -247
  58. package/test/unit/list-workflows-filtering.test.ts +0 -68
  59. package/test/unit/none-template-functionality.test.ts +0 -224
  60. package/test/unit/project-docs-manager.test.ts +0 -337
  61. package/test/unit/state-machine-loader.test.ts +0 -234
  62. package/test/unit/template-manager.test.ts +0 -217
  63. package/test/unit/validate-workflow-name.test.ts +0 -150
  64. package/test/unit/workflow-domain-filtering.test.ts +0 -75
  65. package/test/unit/workflow-enum-generation.test.ts +0 -92
  66. package/test/unit/workflow-manager-enhanced-path-resolution.test.ts +0 -369
  67. package/test/unit/workflow-manager-path-resolution.test.ts +0 -150
  68. package/test/unit/workflow-migration.test.ts +0 -155
  69. package/test/unit/workflow-override-by-name.test.ts +0 -116
  70. package/test/unit/workflow-prioritization.test.ts +0 -38
  71. package/test/unit/workflow-validation.test.ts +0 -303
  72. package/test/utils/e2e-test-setup.ts +0 -453
  73. package/test/utils/run-server-in-dir.sh +0 -27
  74. package/test/utils/temp-files.ts +0 -308
  75. package/test/utils/test-access.ts +0 -79
  76. package/test/utils/test-helpers.ts +0 -286
  77. package/test/utils/test-setup.ts +0 -78
  78. package/tsconfig.build.json +0 -21
  79. package/tsconfig.json +0 -8
  80. package/vitest.config.ts +0 -18
@@ -0,0 +1,17 @@
1
+ # Requirements Placeholder
2
+
3
+ This is a placeholder document. The user has chosen not to maintain separate requirements documentation for this project.
4
+
5
+ ## INSTRUCTIONS FOR LLM
6
+
7
+ **DO NOT EDIT THIS FILE**
8
+
9
+ - Use the current development plan file to specify requirements for ongoing development
10
+ - Reference requirements from the plan file context when needed
11
+ - Focus requirements discussion in the plan file's "Goal" and relevant task sections
12
+ - When requirements clarification is needed, document them in the plan file rather than here
13
+ - This placeholder ensures the workflow variables work correctly while respecting the user's choice
14
+
15
+ ## User's Choice
16
+
17
+ The user has explicitly chosen not to use dedicated requirements documentation for this project. Please respect this decision and work with the plan file for requirements-related information.
@@ -0,0 +1,539 @@
1
+ # yaml-language-server: $schema=../state-machine-schema.json
2
+ ---
3
+ name: 'big-bang-conversion'
4
+ description: 'A comprehensive workflow for executing test-driven big-bang conversion of legacy systems. Focuses on complete system replacement with behavioral validation and conversion readiness.'
5
+ initial_state: 'conversion_planning'
6
+
7
+ # Enhanced metadata for better discoverability
8
+ metadata:
9
+ domain: 'architecture'
10
+ complexity: 'high'
11
+ bestFor:
12
+ - 'Complete system replacement'
13
+ - 'Big-bang technology migration'
14
+ - 'Test-driven conversion execution'
15
+ - 'Legacy system modernization'
16
+ useCases:
17
+ - 'Convert legacy system to modern technology stack'
18
+ - 'Execute complete system replacement with validation'
19
+ - 'Implement new system with behavioral equivalence'
20
+ examples:
21
+ - 'Convert Smalltalk system to Java with full replacement'
22
+ - 'Migrate monolith to microservices architecture'
23
+ - 'Replace legacy technology with modern stack'
24
+
25
+ # States with default instructions and transitions
26
+ states:
27
+ conversion_planning:
28
+ description: 'Plan the complete system replacement strategy and approach'
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
54
+
55
+ Update the plan file with conversion planning decisions and mark completed tasks.
56
+ transitions:
57
+ - trigger: 'continue_planning'
58
+ to: 'conversion_planning'
59
+ transition_reason: 'Conversion planning needs more refinement and detail'
60
+
61
+ - trigger: 'planning_complete'
62
+ to: 'target_architecture_design'
63
+ additional_instructions: 'Conversion planning complete! ✅ Now transition to target architecture design phase.'
64
+ transition_reason: 'Conversion strategy is planned, ready for target architecture design'
65
+
66
+ target_architecture_design:
67
+ description: 'Design the architecture for the new system in target technology'
68
+ default_instructions: >
69
+ You are in the target architecture design phase. Design the new system architecture in the target technology stack.
70
+
71
+ **Your Tasks:**
72
+ 1. **Reference Architecture Documentation**: Check if $ARCHITECTURE_DOC exists and reference it for current system understanding
73
+ 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
74
+ 3. **Analyze Current Architecture**: Examine the existing system architecture and patterns
75
+ 4. **Technology Stack Selection**: Finalize the target technology stack and frameworks
76
+ 5. **Architecture Pattern Design**: Choose appropriate architectural patterns for the new system
77
+ 6. **Component Design**: Design how current components will be reimplemented
78
+ 7. **Integration Design**: Plan how the new system will integrate with external systems
79
+ 8. **Data Architecture**: Design data storage and management for the new system
80
+ 9. **Deployment Architecture**: Plan how the new system will be deployed and operated
81
+
82
+ **Interview the User (Requirements & Constraints):**
83
+ - "What are the performance requirements for the new system?"
84
+ - "Are there any scalability requirements we need to design for?"
85
+ - "Are there any budget constraints that affect technology choices?"
86
+
87
+ **Best Practices to Apply:**
88
+ - **Modern Architecture Patterns**: Leverage modern architectural approaches
89
+ - **Scalability Design**: Design for future growth and scalability
90
+ - **Maintainability**: Choose patterns that improve long-term maintainability
91
+ - **Technology Alignment**: Align with organizational technology standards
92
+ - **Performance Optimization**: Design for optimal performance characteristics
93
+ - **Security by Design**: Incorporate security considerations from the start
94
+
95
+ **Architecture Design Framework:**
96
+ - **Functional Preservation**: Ensure new architecture supports all current functionality
97
+ - **Modern Patterns**: Apply microservices, event-driven, or other modern patterns as appropriate
98
+ - **Technology Best Practices**: Follow best practices for the target technology stack
99
+ - **Integration Strategy**: Design clean integration patterns with external systems
100
+ - **Data Migration**: Plan how current data will be migrated to new system
101
+
102
+ Update the plan file with architecture design decisions and validate with the user.
103
+ transitions:
104
+ - trigger: 'refine_architecture'
105
+ to: 'target_architecture_design'
106
+ transition_reason: 'Architecture design needs refinement based on user feedback'
107
+
108
+ - trigger: 'need_more_planning'
109
+ to: 'conversion_planning'
110
+ additional_instructions: 'Architecture design revealed issues with conversion planning. Refine the conversion strategy based on architectural insights.'
111
+ transition_reason: 'Architecture work revealed need to refine conversion planning'
112
+
113
+ - trigger: 'architecture_complete'
114
+ to: 'behavioral_comparison_setup'
115
+ additional_instructions: 'Target architecture design complete! ✅ Now transition to behavioral comparison setup phase.'
116
+ transition_reason: 'Target architecture is designed, ready for behavioral comparison setup'
117
+
118
+ behavioral_comparison_setup:
119
+ description: 'Set up mechanisms to compare behavior between current and new systems'
120
+ default_instructions: >
121
+ You are in the behavioral comparison setup phase. Design and implement mechanisms to validate functional equivalence.
122
+
123
+ **Your Tasks:**
124
+ 1. **Comparison Strategy Design**: Design approach for comparing current and new system behavior
125
+ 2. **Mechanism Selection**: Choose appropriate comparison mechanisms for your infrastructure
126
+ 3. **Implementation Planning**: Plan how to implement the chosen comparison approach
127
+ 4. **Data Capture Design**: Design how to capture and compare system behavior
128
+ 5. **Validation Criteria**: Define what constitutes successful behavioral equivalence
129
+ 6. **Automation Planning**: Plan automated comparison and validation processes
130
+
131
+ **Interview the User (Infrastructure & Operational Context):**
132
+ - "What level of traffic or load do you need to validate against?"
133
+ - "Are there any operational constraints for running parallel systems?"
134
+
135
+ **Best Practice Mechanisms to Suggest:**
136
+ - **Sidecar Pattern**: Deploy comparison logic alongside applications
137
+ - **Proxy/Gateway**: Route traffic through comparison proxy
138
+ - **Shadow Traffic**: Send duplicate traffic to both systems
139
+ - **Event Streaming**: Compare system events and state changes
140
+ - **API Response Comparison**: Compare API responses between systems
141
+ - **Database State Comparison**: Compare database states after operations
142
+ - **Log Analysis**: Compare system logs and behavior patterns
143
+ - **Synthetic Testing**: Use automated tests to compare behavior
144
+
145
+ **Implementation Approaches:**
146
+ - **Traffic Mirroring**: Mirror production traffic to new system
147
+ - **Parallel Execution**: Run both systems in parallel with comparison
148
+ - **Staged Rollout**: Gradually shift traffic while comparing
149
+ - **A/B Testing**: Compare systems with controlled traffic splits
150
+ - **Canary Deployment**: Test new system with small traffic percentage
151
+
152
+ Interview the user about their infrastructure and suggest appropriate mechanisms.
153
+ Update the plan file with comparison setup decisions.
154
+ transitions:
155
+ - trigger: 'refine_comparison'
156
+ to: 'behavioral_comparison_setup'
157
+ transition_reason: 'Comparison setup needs refinement based on user feedback'
158
+
159
+ - trigger: 'need_architecture_refinement'
160
+ to: 'target_architecture_design'
161
+ additional_instructions: 'Comparison setup revealed issues with target architecture. Refine the architecture design to better support behavioral comparison.'
162
+ transition_reason: 'Comparison work revealed need to refine target architecture'
163
+
164
+ - trigger: 'comparison_setup_complete'
165
+ to: 'implementation_strategy'
166
+ additional_instructions: 'Behavioral comparison setup complete! ✅ Now transition to implementation strategy phase.'
167
+ transition_reason: 'Comparison mechanisms are designed, ready for implementation strategy'
168
+
169
+ implementation_strategy:
170
+ description: 'Plan detailed implementation approach for the new system'
171
+ default_instructions: >
172
+ You are in the implementation strategy phase. Plan the systematic approach for building the new system.
173
+
174
+ **Your Tasks:**
175
+ 1. **Reference Design Documentation**: Check $DESIGN_DOC for target architecture and design decisions
176
+ 2. **Implementation Phases**: Break down implementation into manageable phases
177
+ 3. **Development Approach**: Plan development methodology and practices
178
+ 4. **Quality Assurance**: Plan testing and quality assurance throughout implementation
179
+ 5. **Integration Strategy**: Plan how to integrate new components as they're built
180
+ 6. **Validation Checkpoints**: Plan regular validation against functional equivalence
181
+ 7. **Team Coordination**: Plan how development team will coordinate work
182
+ 8. **Risk Management**: Plan how to manage implementation risks
183
+
184
+ **Interview the User (Team & Process):**
185
+ - "What development methodology does your team prefer (Agile, Scrum, etc.)?"
186
+ - "How large is the development team for this conversion?"
187
+
188
+ **Best Practices to Apply:**
189
+ - **Iterative Development**: Build and validate incrementally
190
+ - **Continuous Integration**: Integrate and test frequently
191
+ - **Test-Driven Development**: Write tests before implementation
192
+ - **Code Quality**: Maintain high code quality standards
193
+ - **Documentation**: Document decisions and implementation details
194
+ - **Regular Validation**: Validate against legacy system frequently
195
+
196
+ **Implementation Strategy Framework:**
197
+ - **Phase Planning**: Logical phases that deliver business value
198
+ - **Validation Gates**: Regular checkpoints to validate functional equivalence
199
+ - **Quality Assurance**: Comprehensive testing at each phase
200
+ - **Risk Mitigation**: Address highest risks first
201
+ - **Team Coordination**: Clear communication and coordination processes
202
+ - **Progress Tracking**: Measurable progress indicators
203
+
204
+ Update the plan file with implementation strategy and validate with the user.
205
+ transitions:
206
+ - trigger: 'refine_strategy'
207
+ to: 'implementation_strategy'
208
+ transition_reason: 'Implementation strategy needs refinement based on user feedback'
209
+
210
+ - trigger: 'need_comparison_refinement'
211
+ to: 'behavioral_comparison_setup'
212
+ additional_instructions: 'Implementation strategy revealed issues with comparison setup. Refine the behavioral comparison mechanisms based on implementation insights.'
213
+ transition_reason: 'Implementation work revealed need to refine comparison setup'
214
+
215
+ - trigger: 'strategy_complete'
216
+ to: 'parallel_implementation'
217
+ additional_instructions: 'Implementation strategy complete! ✅ Now transition to parallel implementation phase.'
218
+ transition_reason: 'Implementation strategy is complete, ready for parallel implementation'
219
+
220
+ parallel_implementation:
221
+ description: 'Build new system while maintaining test compatibility and validation'
222
+ default_instructions: >
223
+ You are in the parallel implementation phase. Build the new system systematically with regular validation.
224
+
225
+ **Your Tasks:**
226
+ 1. **Follow Design Documentation**: Reference $DESIGN_DOC for implementation guidance and architectural decisions
227
+ 2. **Systematic Implementation**: Build new system components according to implementation strategy
228
+ 3. **Test Compatibility**: Ensure new system passes existing functional equivalence tests
229
+ 4. **Regular Validation**: Validate new system behavior against legacy system regularly
230
+ 5. **Quality Assurance**: Maintain high code quality and testing standards
231
+ 6. **Integration Testing**: Test integration between new components as they're built
232
+ 7. **Performance Validation**: Ensure new system meets performance requirements
233
+ 8. **Documentation**: Document implementation decisions and system behavior
234
+
235
+ **Interview the User (Implementation Priorities):**
236
+ - "Which components or business domains should we implement first?"
237
+
238
+ **Best Practices to Apply:**
239
+ - **Incremental Development**: Build and validate one component at a time
240
+ - **Continuous Testing**: Run tests continuously as implementation progresses
241
+ - **Regular Integration**: Integrate new components frequently
242
+ - **Performance Monitoring**: Monitor performance throughout implementation
243
+ - **Code Reviews**: Maintain code quality through regular reviews
244
+ - **Documentation**: Keep implementation documentation current
245
+
246
+ **Implementation Guidelines:**
247
+ - Start with core business functionality
248
+ - Validate each component against existing tests
249
+ - Maintain backward compatibility during development
250
+ - Use feature flags for gradual rollout
251
+ - Monitor system behavior continuously
252
+ - Address performance issues early
253
+
254
+ Update the plan file with implementation progress and mark completed tasks.
255
+ transitions:
256
+ - trigger: 'continue_implementation'
257
+ to: 'parallel_implementation'
258
+ transition_reason: 'Implementation continues with more components to build'
259
+
260
+ - trigger: 'need_strategy_refinement'
261
+ to: 'implementation_strategy'
262
+ additional_instructions: 'Implementation revealed issues with the strategy. Refine the implementation approach based on development learnings.'
263
+ transition_reason: 'Implementation work revealed need to refine strategy'
264
+
265
+ - trigger: 'implementation_complete'
266
+ to: 'conversion_readiness'
267
+ additional_instructions: >
268
+ Parallel implementation is complete! ✅ Now create the CONVERSION_PLAN.md file and transition to conversion readiness phase.
269
+
270
+ Create the CONVERSION_PLAN.md file at .vibe/CONVERSION_PLAN.md with this exact template content:
271
+
272
+ ```markdown
273
+ # Big-Bang Conversion Plan
274
+
275
+ *This document provides post-completion guidance for executing the big-bang conversion in production. It serves as an actionable checklist for operations teams to execute the conversion outside of the development conversation.*
276
+
277
+ ## Conversion Overview
278
+
279
+ ### System Information
280
+ - **Legacy System**: [Description of current system]
281
+ - **Target System**: [Description of new system]
282
+ - **Technology Migration**: [From X to Y technology stack]
283
+ - **Conversion Date**: [Planned conversion date]
284
+ - **Rollback Deadline**: [Maximum time before rollback decision]
285
+
286
+ ### Conversion Scope
287
+ - **Components Being Replaced**: [List of components]
288
+ - **Components Remaining**: [List of unchanged components]
289
+ - **Data Migration Required**: [Yes/No and details]
290
+ - **External System Updates**: [List of external systems requiring updates]
291
+
292
+ ## Pre-Conversion Checklist
293
+
294
+ ### Test Suite Validation
295
+ - [ ] All boundary tests pass on legacy system (baseline established)
296
+ - [ ] All boundary tests pass on new system (functional equivalence proven)
297
+ - [ ] Performance tests meet requirements on new system
298
+ - [ ] Integration tests with external systems pass
299
+ - [ ] Error handling tests validate identical behavior
300
+ - [ ] Edge case and boundary condition tests pass
301
+
302
+ ### Behavioral Comparison Validation
303
+ - [ ] Behavioral comparison mechanism is operational
304
+ - [ ] Comparison validation shows functional equivalence
305
+ - [ ] Performance comparison meets requirements
306
+ - [ ] Error handling comparison validates identical behavior
307
+ - [ ] Data consistency validation passes
308
+
309
+ ### Infrastructure Readiness
310
+ - [ ] Production environment for new system is ready
311
+ - [ ] Database migration scripts are tested and ready
312
+ - [ ] Network configuration supports new system
313
+ - [ ] Security configurations are validated
314
+ - [ ] Monitoring and alerting are configured
315
+ - [ ] Backup and recovery procedures are tested
316
+
317
+ ### Team Readiness
318
+ - [ ] Operations team trained on new system
319
+ - [ ] Support team has new system documentation
320
+ - [ ] Rollback procedures are documented and understood
321
+ - [ ] Communication plan is ready for stakeholders
322
+ - [ ] Emergency contacts and escalation procedures defined
323
+
324
+ ## Conversion Execution Plan
325
+
326
+ ### Phase 1: Pre-Conversion (T-2 hours)
327
+ - [ ] **Freeze Legacy System**: Stop all non-critical changes to legacy system
328
+ - [ ] **Final Backup**: Create final backup of legacy system and data
329
+ - [ ] **Team Assembly**: Assemble conversion team and establish communication
330
+ - [ ] **Final Validation**: Run final test suite validation on both systems
331
+ - [ ] **Go/No-Go Decision**: Make final decision to proceed with conversion
332
+
333
+ ### Phase 2: Traffic Cutover (T-0)
334
+ - [ ] **Enable Behavioral Comparison**: Start behavioral comparison mechanism
335
+ - [ ] **Traffic Routing**: Route traffic from legacy to new system
336
+ - [ ] **Database Cutover**: Switch database connections to new system
337
+ - [ ] **External System Updates**: Update external systems to use new endpoints
338
+ - [ ] **Legacy System Isolation**: Isolate legacy system from production traffic
339
+
340
+ ### Phase 3: Validation (T+15 minutes)
341
+ - [ ] **Functional Validation**: Verify all critical functions work correctly
342
+ - [ ] **Performance Validation**: Confirm performance meets requirements
343
+ - [ ] **Integration Validation**: Verify external system integrations work
344
+ - [ ] **Error Handling Validation**: Test error scenarios work correctly
345
+ - [ ] **User Acceptance**: Confirm user-facing functionality works
346
+
347
+ ### Phase 4: Monitoring (T+1 hour)
348
+ - [ ] **System Monitoring**: Monitor new system performance and errors
349
+ - [ ] **Behavioral Comparison**: Validate ongoing behavioral equivalence
350
+ - [ ] **User Feedback**: Monitor user feedback and support requests
351
+ - [ ] **Performance Metrics**: Validate performance metrics meet requirements
352
+ - [ ] **Stability Assessment**: Assess overall system stability
353
+
354
+ ## Rollback Procedures
355
+
356
+ ### Rollback Triggers
357
+ - Critical functionality failure in new system
358
+ - Performance degradation beyond acceptable limits
359
+ - Data integrity issues discovered
360
+ - Security vulnerabilities identified
361
+ - User-impacting errors that cannot be quickly resolved
362
+
363
+ ### Rollback Execution (if needed)
364
+ - [ ] **Stop New System**: Immediately stop traffic to new system
365
+ - [ ] **Restore Legacy System**: Restore legacy system to production
366
+ - [ ] **Database Rollback**: Restore database to pre-conversion state
367
+ - [ ] **External System Revert**: Revert external systems to legacy endpoints
368
+ - [ ] **Communication**: Notify stakeholders of rollback execution
369
+ - [ ] **Post-Mortem Planning**: Plan post-mortem analysis of rollback
370
+
371
+ ### Rollback Validation
372
+ - [ ] **Functional Validation**: Verify legacy system functions correctly
373
+ - [ ] **Data Integrity**: Validate data integrity after rollback
374
+ - [ ] **Integration Validation**: Verify external integrations work
375
+ - [ ] **Performance Validation**: Confirm performance is restored
376
+ - [ ] **User Communication**: Communicate status to users
377
+
378
+ ## Post-Conversion Activities
379
+
380
+ ### Success Validation (T+24 hours)
381
+ - [ ] **24-Hour Stability**: Confirm system stability over 24 hours
382
+ - [ ] **Performance Validation**: Validate sustained performance
383
+ - [ ] **User Acceptance**: Confirm user satisfaction with new system
384
+ - [ ] **Support Metrics**: Review support ticket volume and types
385
+ - [ ] **Behavioral Comparison**: Validate continued functional equivalence
386
+
387
+ ### Legacy System Decommission (T+1 week)
388
+ - [ ] **Final Data Backup**: Create final backup of legacy system
389
+ - [ ] **System Shutdown**: Safely shutdown legacy system
390
+ - [ ] **Resource Cleanup**: Clean up legacy system resources
391
+ - [ ] **Documentation Archive**: Archive legacy system documentation
392
+ - [ ] **Team Notification**: Notify teams of successful decommission
393
+
394
+ ### Post-Conversion Review (T+2 weeks)
395
+ - [ ] **Conversion Review**: Conduct post-conversion review meeting
396
+ - [ ] **Lessons Learned**: Document lessons learned from conversion
397
+ - [ ] **Process Improvement**: Identify improvements for future conversions
398
+ - [ ] **Team Recognition**: Recognize team contributions to successful conversion
399
+ - [ ] **Documentation Update**: Update procedures based on experience
400
+
401
+ ## Emergency Contacts
402
+
403
+ ### Conversion Team
404
+ - **Conversion Lead**: [Name, Phone, Email]
405
+ - **Technical Lead**: [Name, Phone, Email]
406
+ - **Operations Lead**: [Name, Phone, Email]
407
+ - **Database Administrator**: [Name, Phone, Email]
408
+
409
+ ### Escalation Contacts
410
+ - **Engineering Manager**: [Name, Phone, Email]
411
+ - **Operations Manager**: [Name, Phone, Email]
412
+ - **Business Stakeholder**: [Name, Phone, Email]
413
+ - **Executive Sponsor**: [Name, Phone, Email]
414
+
415
+ ### External Contacts
416
+ - **Infrastructure Support**: [Contact Information]
417
+ - **Database Support**: [Contact Information]
418
+ - **Network Support**: [Contact Information]
419
+ - **Security Team**: [Contact Information]
420
+
421
+ ## Risk Mitigation
422
+
423
+ ### High-Risk Scenarios
424
+ - **Data Loss**: [Mitigation strategy and recovery procedures]
425
+ - **Extended Downtime**: [Mitigation strategy and communication plan]
426
+ - **Performance Degradation**: [Mitigation strategy and scaling procedures]
427
+ - **Security Breach**: [Mitigation strategy and incident response]
428
+ - **Integration Failure**: [Mitigation strategy and fallback procedures]
429
+
430
+ ### Contingency Plans
431
+ - **Partial Rollback**: [Procedures for rolling back specific components]
432
+ - **Extended Validation**: [Procedures for extended validation period]
433
+ - **Gradual Cutover**: [Procedures for gradual traffic migration]
434
+ - **Emergency Support**: [Procedures for emergency support escalation]
435
+
436
+ ## Success Criteria
437
+
438
+ ### Technical Success Criteria
439
+ - All functional tests pass on new system
440
+ - Performance meets or exceeds legacy system
441
+ - No data integrity issues
442
+ - All integrations function correctly
443
+ - Error rates within acceptable limits
444
+
445
+ ### Business Success Criteria
446
+ - No business disruption during conversion
447
+ - User satisfaction maintained or improved
448
+ - Support ticket volume within normal range
449
+ - All critical business functions operational
450
+ - Stakeholder approval of conversion success
451
+
452
+ ---
453
+
454
+ ## Instructions for Use
455
+
456
+ **Purpose**: This document provides actionable guidance for executing the big-bang conversion in production environments outside of development conversations.
457
+
458
+ **For Operations Teams**:
459
+ - Use this as a checklist during conversion execution
460
+ - Follow phases sequentially and validate each step
461
+ - Have rollback procedures ready at all times
462
+ - Maintain communication throughout the process
463
+
464
+ **For Management**:
465
+ - Use this to understand conversion scope and risks
466
+ - Monitor progress through defined checkpoints
467
+ - Be prepared for go/no-go decisions
468
+ - Support team with necessary resources
469
+
470
+ **Post-Conversion**: This document serves as a record of the conversion process and can be used to improve future conversion procedures.
471
+
472
+ ---
473
+
474
+ *This conversion plan was created during the big-bang-conversion workflow and provides comprehensive guidance for production execution of the system conversion.*
475
+ ```
476
+
477
+ Now validate the new system and prepare for production conversion readiness.
478
+ Update the plan file with conversion readiness tasks and mark completed implementation tasks.
479
+ transition_reason: 'New system implementation complete, ready for conversion readiness validation'
480
+
481
+ conversion_readiness:
482
+ description: 'Validate conversion readiness and finalize preparation for production execution'
483
+ default_instructions: >
484
+ You are in the conversion readiness phase. The CONVERSION_PLAN.md file has been created at .vibe/CONVERSION_PLAN.md.
485
+
486
+ **Your Tasks:**
487
+ 1. **Final System Validation**: Validate that new system passes all functional equivalence tests
488
+ 2. **Behavioral Comparison Validation**: Confirm behavioral comparison mechanisms work correctly
489
+ 3. **Performance Validation**: Ensure new system meets performance requirements
490
+ 4. **Integration Validation**: Validate all external system integrations work correctly
491
+ 5. **Conversion Plan Review**: Review and customize the CONVERSION_PLAN.md for your specific environment
492
+ 6. **Team Readiness**: Ensure operations team is ready for production conversion
493
+ 7. **Final Go/No-Go Assessment**: Make final assessment of conversion readiness
494
+
495
+ **Review and Present to User:**
496
+ - Review new system functional equivalence test results and present findings
497
+ - Present behavioral comparison mechanism status and validation results
498
+ - Review CONVERSION_PLAN.md completeness and present customization needs
499
+ - Present final conversion readiness assessment and any remaining concerns
500
+
501
+ **Best Practices to Apply:**
502
+ - **Comprehensive Validation**: Validate every aspect of system readiness
503
+ - **Risk Assessment**: Assess and mitigate all identified risks
504
+ - **Team Preparation**: Ensure all teams are prepared for conversion
505
+ - **Documentation Review**: Ensure all documentation is complete and accurate
506
+ - **Contingency Planning**: Have backup plans for all scenarios
507
+ - **Stakeholder Communication**: Keep stakeholders informed of readiness status
508
+
509
+ **Conversion Readiness Checklist:**
510
+ - New system passes all boundary tests (functional equivalence proven)
511
+ - Behavioral comparison mechanism validates system equivalence
512
+ - Performance requirements are met or exceeded
513
+ - All external integrations work correctly
514
+ - CONVERSION_PLAN.md is customized for your environment
515
+ - Operations team is trained and ready
516
+ - Rollback procedures are tested and ready
517
+
518
+ **Final Deliverables:**
519
+ - Fully functional new system with proven equivalence
520
+ - Operational behavioral comparison mechanism
521
+ - Comprehensive CONVERSION_PLAN.md for production execution
522
+ - Validated rollback procedures
523
+ - Ready operations team
524
+
525
+ Update the plan file with readiness validation results and mark completed tasks.
526
+ transitions:
527
+ - trigger: 'refine_readiness'
528
+ to: 'conversion_readiness'
529
+ transition_reason: 'Conversion readiness needs additional validation and refinement'
530
+
531
+ - trigger: 'need_more_implementation'
532
+ to: 'parallel_implementation'
533
+ additional_instructions: 'Readiness validation revealed issues requiring additional implementation. Focus on addressing the identified gaps in system functionality.'
534
+ transition_reason: 'Readiness validation revealed need for additional implementation'
535
+
536
+ - trigger: 'conversion_ready'
537
+ to: 'conversion_readiness'
538
+ additional_instructions: 'Big-bang conversion workflow complete! System ready for production conversion using CONVERSION_PLAN.md guidance.'
539
+ transition_reason: 'System conversion readiness validated, ready for production execution'