awc-zns-mtd 2.0.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 (130) hide show
  1. package/.editorconfig +21 -0
  2. package/CHANGELOG.md +210 -0
  3. package/LICENSE +21 -0
  4. package/README.md +439 -0
  5. package/docs/examples/example-feature.md +94 -0
  6. package/docs/getting-started/quick-start.md +85 -0
  7. package/docs/guides/agent-guide.md +56 -0
  8. package/docs/guides/workflow-guide.md +49 -0
  9. package/docs/reference/commands-reference.md +93 -0
  10. package/docs/reference/methodology-design.md +193 -0
  11. package/package.json +66 -0
  12. package/src/modules/awc-zns-mtd/agents/architect-senior.agent.yaml +159 -0
  13. package/src/modules/awc-zns-mtd/agents/developer-pro.agent.yaml +197 -0
  14. package/src/modules/awc-zns-mtd/agents/qa-specialist.agent.yaml +225 -0
  15. package/src/modules/awc-zns-mtd/agents/zen-master.agent.yaml +142 -0
  16. package/src/modules/awc-zns-mtd/config.yaml +412 -0
  17. package/src/modules/awc-zns-mtd/templates/PRD-template.md +490 -0
  18. package/src/modules/awc-zns-mtd/templates/arquitectura-conceptual.md +431 -0
  19. package/src/modules/awc-zns-mtd/templates/cotizacion.md +333 -0
  20. package/src/modules/awc-zns-mtd/templates/discovery-notes.md +205 -0
  21. package/src/modules/awc-zns-mtd/templates/kickoff-agenda.md +297 -0
  22. package/src/modules/awc-zns-mtd/templates/oferta-comercial.md +279 -0
  23. package/src/modules/awc-zns-mtd/templates/viabilidad.md +281 -0
  24. package/src/modules/awc-zns-mtd/workflows/analisis-flow/workflow.yaml +500 -0
  25. package/src/modules/awc-zns-mtd/workflows/comercial-flow/workflow.yaml +444 -0
  26. package/src/modules/awc-zns-mtd/workflows/deployment-flow/workflow.yaml +395 -0
  27. package/src/modules/awc-zns-mtd/workflows/development-flow/workflow.yaml +321 -0
  28. package/src/modules/awc-zns-mtd/workflows/enterprise-flow/workflow.yaml +276 -0
  29. package/src/modules/awc-zns-mtd/workflows/inception-flow/workflow.yaml +588 -0
  30. package/src/modules/awc-zns-mtd/workflows/planificacion-flow/workflow.yaml +526 -0
  31. package/src/modules/awc-zns-mtd/workflows/qa-flow/workflow.yaml +291 -0
  32. package/src/modules/awc-zns-mtd/workflows/quick-flow/workflow.yaml +121 -0
  33. package/src/modules/awc-zns-mtd/workflows/standard-flow/workflow.yaml +181 -0
  34. package/src/modules/awc-zns-mtd/workflows/support-flow/workflow.yaml +438 -0
  35. package/src/modules/custom-agents/ARCHITECTURE.md +566 -0
  36. package/src/modules/custom-agents/CONVERSION_SUMMARY.md +315 -0
  37. package/src/modules/custom-agents/FINAL_SUMMARY.md +296 -0
  38. package/src/modules/custom-agents/README.md +628 -0
  39. package/src/modules/custom-agents/USAGE_GUIDE.md +306 -0
  40. package/src/modules/custom-agents/agents/aspnet-core-architect-senior.agent.yaml +368 -0
  41. package/src/modules/custom-agents/agents/backend-audit-master.agent.yaml +376 -0
  42. package/src/modules/custom-agents/agents/backend-java-senior.agent.yaml +606 -0
  43. package/src/modules/custom-agents/agents/c4-diagram-specialist.agent.yaml +345 -0
  44. package/src/modules/custom-agents/agents/consolidation-context-master.agent.yaml +318 -0
  45. package/src/modules/custom-agents/agents/cost-estimator-senior.agent.yaml +369 -0
  46. package/src/modules/custom-agents/agents/database-engineer-senior.agent.yaml +331 -0
  47. package/src/modules/custom-agents/agents/devsecops-onpremise-senior.agent.yaml +370 -0
  48. package/src/modules/custom-agents/agents/document-export-specialist.agent.yaml +355 -0
  49. package/src/modules/custom-agents/agents/dotnet-core-senior.agent.yaml +258 -0
  50. package/src/modules/custom-agents/agents/frontend-audit-master.agent.yaml +356 -0
  51. package/src/modules/custom-agents/agents/frontend-react-senior.agent.yaml +470 -0
  52. package/src/modules/custom-agents/agents/obsolescence-analyst-senior.agent.yaml +339 -0
  53. package/src/modules/custom-agents/agents/php-senior.agent.yaml +277 -0
  54. package/src/modules/custom-agents/agents/product-owner-business-analyst.agent.yaml +315 -0
  55. package/src/modules/custom-agents/agents/prompt-architect-senior.agent.yaml +398 -0
  56. package/src/modules/custom-agents/agents/prompt-engineer-senior.agent.yaml +431 -0
  57. package/src/modules/custom-agents/agents/python-senior.agent.yaml +347 -0
  58. package/src/modules/custom-agents/agents/react-native-senior.agent.yaml +292 -0
  59. package/src/modules/custom-agents/agents/solution-architect-senior.agent.yaml +496 -0
  60. package/src/modules/custom-agents/agents/technical-stories-architect.agent.yaml +402 -0
  61. package/src/modules/custom-agents/agents/validation-quality-master.agent.yaml +377 -0
  62. package/src/modules/custom-agents/cli/.awc-agents/aspnet-core-architect-senior.agent.yaml +368 -0
  63. package/src/modules/custom-agents/cli/.awc-agents/backend-audit-master.agent.yaml +376 -0
  64. package/src/modules/custom-agents/cli/.awc-agents/backend-java-senior.agent.yaml +606 -0
  65. package/src/modules/custom-agents/cli/.awc-agents/c4-diagram-specialist.agent.yaml +345 -0
  66. package/src/modules/custom-agents/cli/.awc-agents/consolidation-context-master.agent.yaml +318 -0
  67. package/src/modules/custom-agents/cli/.awc-agents/cost-estimator-senior.agent.yaml +369 -0
  68. package/src/modules/custom-agents/cli/.awc-agents/database-engineer-senior.agent.yaml +331 -0
  69. package/src/modules/custom-agents/cli/.awc-agents/devsecops-onpremise-senior.agent.yaml +370 -0
  70. package/src/modules/custom-agents/cli/.awc-agents/document-export-specialist.agent.yaml +355 -0
  71. package/src/modules/custom-agents/cli/.awc-agents/dotnet-core-senior.agent.yaml +258 -0
  72. package/src/modules/custom-agents/cli/.awc-agents/frontend-audit-master.agent.yaml +356 -0
  73. package/src/modules/custom-agents/cli/.awc-agents/frontend-react-senior.agent.yaml +470 -0
  74. package/src/modules/custom-agents/cli/.awc-agents/obsolescence-analyst-senior.agent.yaml +339 -0
  75. package/src/modules/custom-agents/cli/.awc-agents/php-senior.agent.yaml +277 -0
  76. package/src/modules/custom-agents/cli/.awc-agents/product-owner-business-analyst.agent.yaml +315 -0
  77. package/src/modules/custom-agents/cli/.awc-agents/prompt-architect-senior.agent.yaml +398 -0
  78. package/src/modules/custom-agents/cli/.awc-agents/prompt-engineer-senior.agent.yaml +431 -0
  79. package/src/modules/custom-agents/cli/.awc-agents/python-senior.agent.yaml +347 -0
  80. package/src/modules/custom-agents/cli/.awc-agents/react-native-senior.agent.yaml +292 -0
  81. package/src/modules/custom-agents/cli/.awc-agents/solution-architect-senior.agent.yaml +496 -0
  82. package/src/modules/custom-agents/cli/.awc-agents/technical-stories-architect.agent.yaml +402 -0
  83. package/src/modules/custom-agents/cli/.awc-agents/validation-quality-master.agent.yaml +377 -0
  84. package/src/modules/custom-agents/cli/CHANGELOG.md +77 -0
  85. package/src/modules/custom-agents/cli/LICENSE +21 -0
  86. package/src/modules/custom-agents/cli/PUBLISH.md +292 -0
  87. package/src/modules/custom-agents/cli/README.md +333 -0
  88. package/src/modules/custom-agents/cli/agents-data/aspnet-core-architect-senior.agent.yaml +368 -0
  89. package/src/modules/custom-agents/cli/agents-data/backend-audit-master.agent.yaml +376 -0
  90. package/src/modules/custom-agents/cli/agents-data/backend-java-senior.agent.yaml +606 -0
  91. package/src/modules/custom-agents/cli/agents-data/c4-diagram-specialist.agent.yaml +345 -0
  92. package/src/modules/custom-agents/cli/agents-data/consolidation-context-master.agent.yaml +318 -0
  93. package/src/modules/custom-agents/cli/agents-data/cost-estimator-senior.agent.yaml +369 -0
  94. package/src/modules/custom-agents/cli/agents-data/database-engineer-senior.agent.yaml +331 -0
  95. package/src/modules/custom-agents/cli/agents-data/devsecops-onpremise-senior.agent.yaml +370 -0
  96. package/src/modules/custom-agents/cli/agents-data/document-export-specialist.agent.yaml +355 -0
  97. package/src/modules/custom-agents/cli/agents-data/dotnet-core-senior.agent.yaml +258 -0
  98. package/src/modules/custom-agents/cli/agents-data/frontend-audit-master.agent.yaml +356 -0
  99. package/src/modules/custom-agents/cli/agents-data/frontend-react-senior.agent.yaml +470 -0
  100. package/src/modules/custom-agents/cli/agents-data/obsolescence-analyst-senior.agent.yaml +339 -0
  101. package/src/modules/custom-agents/cli/agents-data/php-senior.agent.yaml +277 -0
  102. package/src/modules/custom-agents/cli/agents-data/product-owner-business-analyst.agent.yaml +315 -0
  103. package/src/modules/custom-agents/cli/agents-data/prompt-architect-senior.agent.yaml +398 -0
  104. package/src/modules/custom-agents/cli/agents-data/prompt-engineer-senior.agent.yaml +431 -0
  105. package/src/modules/custom-agents/cli/agents-data/python-senior.agent.yaml +347 -0
  106. package/src/modules/custom-agents/cli/agents-data/react-native-senior.agent.yaml +292 -0
  107. package/src/modules/custom-agents/cli/agents-data/solution-architect-senior.agent.yaml +496 -0
  108. package/src/modules/custom-agents/cli/agents-data/technical-stories-architect.agent.yaml +402 -0
  109. package/src/modules/custom-agents/cli/agents-data/validation-quality-master.agent.yaml +377 -0
  110. package/src/modules/custom-agents/cli/awc-agent.js +372 -0
  111. package/src/modules/custom-agents/cli/config.yaml +478 -0
  112. package/src/modules/custom-agents/cli/package.json +63 -0
  113. package/src/modules/custom-agents/config.yaml +478 -0
  114. package/templates/.github/copilot-instructions.md +120 -0
  115. package/tools/cli/awc-cli.js +137 -0
  116. package/tools/cli/commands/config.js +148 -0
  117. package/tools/cli/commands/init.js +147 -0
  118. package/tools/cli/commands/install.js +188 -0
  119. package/tools/cli/commands/status.js +128 -0
  120. package/tools/cli/commands/validate.js +147 -0
  121. package/tools/cli/commands/version.js +49 -0
  122. package/tools/cli/utils/console-logger.js +153 -0
  123. package/tools/cli/utils/file-utils.js +178 -0
  124. package/tools/cli/utils/project-analyzer.js +280 -0
  125. package/tools/cli/utils/version.js +126 -0
  126. package/tools/version/README.md +272 -0
  127. package/tools/version/changelog-manager.js +288 -0
  128. package/tools/version/update-checker.js +234 -0
  129. package/tools/version/version-bump.js +90 -0
  130. package/tools/version/version-manager.js +224 -0
@@ -0,0 +1,395 @@
1
+ workflow:
2
+ name: "Deployment Flow - CI/CD y Lanzamiento"
3
+ id: "deployment-flow"
4
+ version: "1.0.0"
5
+ description: "Workflow de deployment automatizado desde staging hasta producción"
6
+
7
+ metadata:
8
+ duration: "30 min - 2 horas (según estrategia)"
9
+ complexity: "high"
10
+ team_size: "DevOps + Tech Lead"
11
+
12
+ phases:
13
+ - id: "pre-deployment"
14
+ name: "Pre-Deployment Preparation"
15
+
16
+ - id: "staging-deploy"
17
+ name: "Staging Deployment"
18
+
19
+ - id: "production-deploy"
20
+ name: "Production Deployment"
21
+
22
+ - id: "post-deployment"
23
+ name: "Post-Deployment Verification"
24
+
25
+ agents:
26
+ primary:
27
+ - "devops-cloud-engineer"
28
+ - "tech-lead-full-stack"
29
+
30
+ supporting:
31
+ - "qa-test-automation-engineer"
32
+ - "database-specialist"
33
+
34
+ steps:
35
+ - id: "deploy-01"
36
+ name: "Pre-Deployment Checklist"
37
+ phase: "pre-deployment"
38
+ agent: "devops-cloud-engineer"
39
+ duration: "30 minutos"
40
+
41
+ actions:
42
+ - type: "verify"
43
+ description: "Verificar que todos los criterios de deployment se cumplen"
44
+ checklist:
45
+ - "[ ] QA sign-off obtenido"
46
+ - "[ ] UAT completado"
47
+ - "[ ] 0 critical bugs abiertos"
48
+ - "[ ] Code freeze activado (no más merges a release branch)"
49
+ - "[ ] Backup de base de datos realizado"
50
+ - "[ ] Rollback plan documentado"
51
+ - "[ ] Stakeholders notificados de la ventana de deployment"
52
+
53
+ - type: "communicate"
54
+ description: "Notificar deployment a stakeholders"
55
+ channels:
56
+ - "Email a stakeholders"
57
+ - "Slack/Teams announcement"
58
+ - "Status page update (si aplica)"
59
+
60
+ deliverables:
61
+ - "Pre-deployment checklist completo"
62
+ - "Comunicación enviada"
63
+
64
+ - id: "deploy-02"
65
+ name: "Database Migrations (si aplica)"
66
+ phase: "pre-deployment"
67
+ agent: "database-specialist"
68
+ duration: "15-60 minutos"
69
+ when: "Cuando hay cambios de schema"
70
+
71
+ actions:
72
+ - type: "backup"
73
+ description: "Backup completo de base de datos"
74
+ verification: "Verificar que backup es restaurable"
75
+
76
+ - type: "test"
77
+ description: "Probar migrations en staging"
78
+
79
+ - type: "prepare"
80
+ description: "Preparar scripts de rollback"
81
+
82
+ deliverables:
83
+ - "Database backup"
84
+ - "Migration scripts ready"
85
+ - "Rollback scripts ready"
86
+
87
+ - id: "deploy-03"
88
+ name: "Build & Package"
89
+ phase: "pre-deployment"
90
+ agent: "devops-cloud-engineer"
91
+ duration: "Automático (5-15 min)"
92
+
93
+ actions:
94
+ - type: "build"
95
+ description: "CI/CD pipeline ejecuta build"
96
+ steps:
97
+ - "Compilar código"
98
+ - "Ejecutar tests"
99
+ - "Build Docker image"
100
+ - "Push a container registry"
101
+
102
+ - type: "tag"
103
+ description: "Taggear imagen con versión"
104
+ format: "v{major}.{minor}.{patch} (SemVer)"
105
+ example: "v1.2.3"
106
+
107
+ deliverables:
108
+ - "Docker image tagged y pusheada"
109
+ - "Build artifacts"
110
+
111
+ - id: "deploy-04"
112
+ name: "Deploy to Staging"
113
+ phase: "staging-deploy"
114
+ agent: "devops-cloud-engineer"
115
+ duration: "10-20 minutos"
116
+
117
+ actions:
118
+ - type: "deploy"
119
+ description: "Deploy automático a staging"
120
+ method: "Blue-Green | Rolling | Canary"
121
+
122
+ - type: "verify"
123
+ description: "Smoke tests automáticos"
124
+ checks:
125
+ - "Health check endpoint responde 200"
126
+ - "Database connectivity OK"
127
+ - "Critical API endpoints funcionan"
128
+
129
+ deliverables:
130
+ - "Aplicación desplegada en staging"
131
+ - "Smoke tests pasados"
132
+
133
+ - id: "deploy-05"
134
+ name: "Staging Validation"
135
+ phase: "staging-deploy"
136
+ agent: "qa-test-automation-engineer"
137
+ duration: "30-60 minutos"
138
+
139
+ actions:
140
+ - type: "test"
141
+ description: "Ejecutar regression test suite en staging"
142
+
143
+ - type: "validate"
144
+ description: "Validar manualmente flujos críticos"
145
+
146
+ - type: "approve"
147
+ description: "Sign-off para producción"
148
+
149
+ deliverables:
150
+ - "Staging validation report"
151
+ - "Go/No-Go para producción"
152
+
153
+ - id: "deploy-06"
154
+ name: "Production Deployment"
155
+ phase: "production-deploy"
156
+ agent: "devops-cloud-engineer"
157
+ duration: "20-60 minutos"
158
+
159
+ deployment_strategies:
160
+ blue_green:
161
+ description: "Deploy a ambiente 'green', switch traffic cuando esté listo"
162
+ downtime: "~0 segundos"
163
+ rollback_time: "< 1 minuto (switch back to blue)"
164
+
165
+ rolling:
166
+ description: "Deploy gradual a instancias, una a la vez"
167
+ downtime: "0 (rolling update)"
168
+ rollback_time: "5-10 minutos"
169
+
170
+ canary:
171
+ description: "Deploy a subset pequeño (5-10%), monitorear, luego full rollout"
172
+ downtime: "0"
173
+ rollback_time: "< 5 minutos"
174
+ stages:
175
+ - "5% de tráfico → 15 min monitoring"
176
+ - "25% de tráfico → 30 min monitoring"
177
+ - "50% de tráfico → 30 min monitoring"
178
+ - "100% de tráfico"
179
+
180
+ actions:
181
+ - type: "deploy"
182
+ description: "Ejecutar deployment strategy elegida"
183
+ preferred: "Blue-Green para releases grandes, Canary para cambios críticos"
184
+
185
+ - type: "monitor"
186
+ description: "Monitorear métricas durante deployment"
187
+ watch:
188
+ - "Error rate"
189
+ - "Response time (P95)"
190
+ - "CPU/Memory usage"
191
+ - "Request rate"
192
+
193
+ deliverables:
194
+ - "Aplicación desplegada en producción"
195
+
196
+ - id: "deploy-07"
197
+ name: "Post-Deployment Verification"
198
+ phase: "post-deployment"
199
+ agent: "devops-cloud-engineer"
200
+ duration: "30 minutos"
201
+
202
+ actions:
203
+ - type: "verify"
204
+ description: "Verificación post-deployment"
205
+ checks:
206
+ - "[ ] Health checks OK (all instances)"
207
+ - "[ ] Smoke tests pasados en producción"
208
+ - "[ ] Error rate < baseline"
209
+ - "[ ] P95 latency < baseline + 20%"
210
+ - "[ ] Critical features funcionando"
211
+
212
+ - type: "monitor"
213
+ description: "Monitoreo intensivo por 2-4 horas"
214
+ alerts: "Configurar alertas temporales más sensibles"
215
+
216
+ deliverables:
217
+ - "Post-deployment verification report"
218
+
219
+ - id: "deploy-08"
220
+ name: "Rollback (si es necesario)"
221
+ phase: "post-deployment"
222
+ agent: "devops-cloud-engineer"
223
+ duration: "5-15 minutos"
224
+ when: "Si hay problemas críticos detectados"
225
+
226
+ trigger_conditions:
227
+ - "Error rate > 5% por más de 5 minutos"
228
+ - "P95 latency > 5 segundos"
229
+ - "Critical feature no funciona"
230
+ - "Database corruption detectada"
231
+
232
+ actions:
233
+ - type: "rollback"
234
+ description: "Ejecutar rollback strategy"
235
+ methods:
236
+ - "Blue-Green: Switch back to blue environment"
237
+ - "Rolling: Deploy previous version"
238
+ - "Canary: Stop rollout, revert canary instances"
239
+
240
+ - type: "investigate"
241
+ description: "Post-mortem inmediato"
242
+
243
+ - type: "communicate"
244
+ description: "Notificar rollback a stakeholders"
245
+
246
+ deliverables:
247
+ - "Rollback completado"
248
+ - "Post-mortem report"
249
+
250
+ - id: "deploy-09"
251
+ name: "Post-Deployment Communication"
252
+ phase: "post-deployment"
253
+ agent: "tech-lead-full-stack"
254
+ duration: "15 minutos"
255
+
256
+ actions:
257
+ - type: "announce"
258
+ description: "Anunciar deployment exitoso"
259
+ channels:
260
+ - "Email a stakeholders"
261
+ - "Slack/Teams announcement"
262
+ - "Status page update"
263
+ - "Changelog/Release notes publicados"
264
+
265
+ - type: "document"
266
+ description: "Documentar deployment"
267
+ include:
268
+ - "Versión desplegada"
269
+ - "Features nuevas incluidas"
270
+ - "Bugs corregidos"
271
+ - "Known issues (si aplica)"
272
+
273
+ deliverables:
274
+ - "Deployment announcement"
275
+ - "Release notes publicadas"
276
+
277
+ deliverables:
278
+ - "Aplicación desplegada en producción"
279
+ - "Database migrations ejecutadas"
280
+ - "Smoke tests pasados"
281
+ - "Post-deployment verification report"
282
+ - "Release notes publicadas"
283
+ - "Rollback plan documentado"
284
+
285
+ metrics:
286
+ - name: "Deployment Frequency"
287
+ target: "> 1 por semana (ideal: daily)"
288
+
289
+ - name: "Lead Time for Changes"
290
+ description: "Tiempo desde commit hasta producción"
291
+ target: "< 1 día"
292
+
293
+ - name: "Change Failure Rate"
294
+ description: "% de deployments que requieren rollback"
295
+ target: "< 5%"
296
+
297
+ - name: "Mean Time to Recovery (MTTR)"
298
+ description: "Tiempo promedio para rollback/fix en caso de falla"
299
+ target: "< 1 hora"
300
+
301
+ - name: "Deployment Success Rate"
302
+ target: "> 95%"
303
+
304
+ best_practices:
305
+ - "Automatizar todo el proceso de deployment"
306
+ - "Zero-downtime deployments (Blue-Green o Rolling)"
307
+ - "Canary releases para cambios de alto riesgo"
308
+ - "Feature flags para controlar rollout de features"
309
+ - "Database migrations backward-compatible"
310
+ - "Rollback plan siempre listo"
311
+ - "Monitoreo intensivo post-deployment (2-4 horas)"
312
+ - "Deployments durante horario de baja actividad (si es posible)"
313
+
314
+ tools:
315
+ ci_cd:
316
+ - "GitHub Actions"
317
+ - "GitLab CI/CD"
318
+ - "Jenkins"
319
+ - "CircleCI"
320
+
321
+ orchestration:
322
+ - "Kubernetes"
323
+ - "Docker Swarm"
324
+ - "AWS ECS/Fargate"
325
+ - "Azure Container Apps"
326
+
327
+ infrastructure:
328
+ - "Terraform"
329
+ - "AWS CloudFormation"
330
+ - "Azure Bicep"
331
+ - "Pulumi"
332
+
333
+ monitoring:
334
+ - "Datadog"
335
+ - "New Relic"
336
+ - "Prometheus + Grafana"
337
+ - "CloudWatch"
338
+
339
+ feature_flags:
340
+ - "LaunchDarkly"
341
+ - "Split.io"
342
+ - "Unleash"
343
+
344
+ deployment_patterns:
345
+ blue_green:
346
+ pros:
347
+ - "Rollback instantáneo"
348
+ - "Zero downtime"
349
+ - "Testing completo antes de switch"
350
+ cons:
351
+ - "Requiere doble infraestructura (costoso)"
352
+ - "Database migrations complejas"
353
+
354
+ rolling:
355
+ pros:
356
+ - "No requiere doble infraestructura"
357
+ - "Zero downtime"
358
+ cons:
359
+ - "Rollback más lento"
360
+ - "Múltiples versiones corriendo simultáneamente"
361
+
362
+ canary:
363
+ pros:
364
+ - "Riesgo reducido (gradual)"
365
+ - "Detección temprana de issues"
366
+ cons:
367
+ - "Proceso más largo"
368
+ - "Requiere routing inteligente"
369
+ - "Más complejo de implementar"
370
+
371
+ rollback_plan:
372
+ preparation:
373
+ - "Backup de database antes de deployment"
374
+ - "Previous version tagged y disponible"
375
+ - "Rollback scripts testeados en staging"
376
+
377
+ triggers:
378
+ - "Error rate > 5% sostenido"
379
+ - "Critical feature broken"
380
+ - "P95 latency > 2x baseline"
381
+ - "Customer complaints spike"
382
+
383
+ execution:
384
+ - "Stop deployment inmediatamente"
385
+ - "Switch back to previous version"
386
+ - "Verify rollback successful"
387
+ - "Incident post-mortem"
388
+
389
+ success_criteria:
390
+ - "Deployment completado en ventana de tiempo planificada"
391
+ - "0 downtime para usuarios"
392
+ - "Error rate < baseline + 10%"
393
+ - "P95 latency < baseline + 20%"
394
+ - "Critical features funcionando correctamente"
395
+ - "No rollback necesario"