proagents 1.6.16 → 1.6.18

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 (170) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/COMMANDS.md +595 -0
  3. package/README.md +22 -64
  4. package/bin/proagents.js +0 -2
  5. package/lib/commands/init.js +4 -174
  6. package/package.json +2 -7
  7. package/.proagents/ai-models/README.md +0 -141
  8. package/.proagents/ai-models/cost-management.md +0 -362
  9. package/.proagents/ai-models/fallbacks.md +0 -342
  10. package/.proagents/ai-models/model-config.md +0 -318
  11. package/.proagents/ai-models/task-routing.md +0 -503
  12. package/.proagents/ai-training/README.md +0 -155
  13. package/.proagents/ai-training/continuous-learning.md +0 -413
  14. package/.proagents/ai-training/domain-knowledge.md +0 -378
  15. package/.proagents/ai-training/pattern-learning.md +0 -455
  16. package/.proagents/ai-training/training-data.md +0 -337
  17. package/.proagents/ai-training/user-preferences.md +0 -346
  18. package/.proagents/approval-workflows/README.md +0 -146
  19. package/.proagents/approval-workflows/approval-config.md +0 -332
  20. package/.proagents/approval-workflows/approval-stages.md +0 -503
  21. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  22. package/.proagents/approval-workflows/examples.md +0 -859
  23. package/.proagents/approval-workflows/notifications.md +0 -320
  24. package/.proagents/compliance/README.md +0 -206
  25. package/.proagents/compliance/access-control.md +0 -310
  26. package/.proagents/compliance/audit-logging.md +0 -444
  27. package/.proagents/compliance/compliance-frameworks.md +0 -429
  28. package/.proagents/compliance/reports.md +0 -491
  29. package/.proagents/compliance/retention-policies.md +0 -454
  30. package/.proagents/config-versioning/README.md +0 -120
  31. package/.proagents/config-versioning/changelog.md +0 -300
  32. package/.proagents/config-versioning/rollback.md +0 -283
  33. package/.proagents/config-versioning/versioning.md +0 -330
  34. package/.proagents/contract-testing/README.md +0 -223
  35. package/.proagents/contract-testing/contract-testing.md +0 -614
  36. package/.proagents/contract-testing/pact-integration.md +0 -507
  37. package/.proagents/contract-testing/schema-validation.md +0 -565
  38. package/.proagents/dependency-management/README.md +0 -140
  39. package/.proagents/dependency-management/automation.md +0 -363
  40. package/.proagents/dependency-management/compatibility.md +0 -319
  41. package/.proagents/dependency-management/security-scanning.md +0 -413
  42. package/.proagents/dependency-management/update-policies.md +0 -374
  43. package/.proagents/disaster-recovery/README.md +0 -247
  44. package/.proagents/disaster-recovery/automation.md +0 -366
  45. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  46. package/.proagents/disaster-recovery/incident-response.md +0 -565
  47. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  48. package/.proagents/disaster-recovery/runbooks.md +0 -603
  49. package/.proagents/disaster-recovery/scenarios.md +0 -892
  50. package/.proagents/disaster-recovery/testing.md +0 -438
  51. package/.proagents/environments/README.md +0 -244
  52. package/.proagents/environments/configuration.md +0 -437
  53. package/.proagents/environments/promotion.md +0 -434
  54. package/.proagents/environments/setup.md +0 -420
  55. package/.proagents/examples/README.md +0 -55
  56. package/.proagents/examples/backend-nodejs/README.md +0 -188
  57. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  58. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  59. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  60. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  61. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  62. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  63. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  64. package/.proagents/examples/mobile-react-native/README.md +0 -171
  65. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  66. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  67. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  68. package/.proagents/examples/web-frontend-react/README.md +0 -125
  69. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  70. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  71. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  72. package/.proagents/existing-projects/README.md +0 -65
  73. package/.proagents/existing-projects/challenges.md +0 -861
  74. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  75. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  76. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  77. package/.proagents/existing-projects/migration-strategies.md +0 -788
  78. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  79. package/.proagents/existing-projects/team-onboarding.md +0 -617
  80. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  81. package/.proagents/feature-flags/README.md +0 -263
  82. package/.proagents/feature-flags/ab-testing.md +0 -413
  83. package/.proagents/feature-flags/configuration.md +0 -420
  84. package/.proagents/feature-flags/kill-switches.md +0 -444
  85. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  86. package/.proagents/history.log +0 -12
  87. package/.proagents/i18n/README.md +0 -133
  88. package/.proagents/i18n/extraction.md +0 -433
  89. package/.proagents/i18n/tms-integration.md +0 -332
  90. package/.proagents/i18n/translation-workflow.md +0 -413
  91. package/.proagents/i18n/validation.md +0 -355
  92. package/.proagents/logging/README.md +0 -276
  93. package/.proagents/logging/aggregation.md +0 -475
  94. package/.proagents/logging/log-levels.md +0 -376
  95. package/.proagents/logging/sensitive-data.md +0 -423
  96. package/.proagents/logging/structured-logging.md +0 -406
  97. package/.proagents/metrics/README.md +0 -69
  98. package/.proagents/metrics/code-quality-kpis.md +0 -461
  99. package/.proagents/metrics/deployment-metrics.md +0 -517
  100. package/.proagents/metrics/developer-productivity.md +0 -368
  101. package/.proagents/metrics/learning-effectiveness.md +0 -478
  102. package/.proagents/migrations/README.md +0 -77
  103. package/.proagents/migrations/from-claude-projects.md +0 -313
  104. package/.proagents/migrations/from-cursor-rules.md +0 -345
  105. package/.proagents/migrations/from-custom-workflows.md +0 -410
  106. package/.proagents/monitoring/README.md +0 -308
  107. package/.proagents/monitoring/alerting.md +0 -449
  108. package/.proagents/monitoring/dashboards.md +0 -454
  109. package/.proagents/monitoring/health-checks.md +0 -436
  110. package/.proagents/monitoring/metrics.md +0 -434
  111. package/.proagents/multi-project/README.md +0 -170
  112. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  113. package/.proagents/multi-project/cross-project-deps.md +0 -395
  114. package/.proagents/multi-project/unified-changelog.md +0 -477
  115. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  116. package/.proagents/multi-project/workspace-config.md +0 -408
  117. package/.proagents/notifications/README.md +0 -151
  118. package/.proagents/notifications/channels.md +0 -457
  119. package/.proagents/notifications/preferences.md +0 -415
  120. package/.proagents/notifications/routing.md +0 -449
  121. package/.proagents/notifications/scheduling.md +0 -425
  122. package/.proagents/notifications/templates.md +0 -446
  123. package/.proagents/offline-mode/README.md +0 -145
  124. package/.proagents/offline-mode/caching.md +0 -344
  125. package/.proagents/offline-mode/offline-operations.md +0 -312
  126. package/.proagents/offline-mode/queue-specifications.md +0 -679
  127. package/.proagents/offline-mode/sync.md +0 -475
  128. package/.proagents/parallel-features/README.md +0 -85
  129. package/.proagents/parallel-features/conflict-detection.md +0 -226
  130. package/.proagents/parallel-features/dependency-management.md +0 -392
  131. package/.proagents/parallel-features/merge-coordination.md +0 -506
  132. package/.proagents/parallel-features/tracking-system.md +0 -416
  133. package/.proagents/performance/README.md +0 -59
  134. package/.proagents/performance/bundle-analysis.md +0 -375
  135. package/.proagents/performance/load-testing.md +0 -563
  136. package/.proagents/performance/runtime-metrics.md +0 -489
  137. package/.proagents/performance/web-vitals.md +0 -425
  138. package/.proagents/plugins/README.md +0 -139
  139. package/.proagents/plugins/creating-plugins.md +0 -504
  140. package/.proagents/plugins/plugin-api.md +0 -467
  141. package/.proagents/plugins/plugin-registry.md +0 -276
  142. package/.proagents/reporting/README.md +0 -158
  143. package/.proagents/reporting/dashboards.md +0 -366
  144. package/.proagents/reporting/exports.md +0 -524
  145. package/.proagents/reporting/quality-metrics.md +0 -385
  146. package/.proagents/reporting/templates/README.md +0 -56
  147. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  148. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  149. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  150. package/.proagents/reporting/templates/widgets.md +0 -451
  151. package/.proagents/reporting/velocity-metrics.md +0 -340
  152. package/.proagents/reverse-engineering/README.md +0 -151
  153. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  154. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  155. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  156. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  157. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  158. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  159. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  160. package/.proagents/secrets/README.md +0 -278
  161. package/.proagents/secrets/access-control.md +0 -443
  162. package/.proagents/secrets/rotation.md +0 -403
  163. package/.proagents/secrets/scanning.md +0 -487
  164. package/.proagents/secrets/storage.md +0 -394
  165. package/.proagents/webhooks/README.md +0 -126
  166. package/.proagents/webhooks/endpoints.md +0 -298
  167. package/.proagents/webhooks/events.md +0 -316
  168. package/.proagents/webhooks/payloads.md +0 -325
  169. package/.proagents/webhooks/reliability.md +0 -363
  170. package/.proagents/webhooks/security.md +0 -380
@@ -1,374 +0,0 @@
1
- # Update Policies
2
-
3
- Configure how different types of updates are handled.
4
-
5
- ---
6
-
7
- ## Update Types
8
-
9
- ### Semantic Versioning
10
-
11
- ```
12
- Major.Minor.Patch
13
- │ │ │
14
- │ │ └── Bug fixes (safe, auto-merge)
15
- │ └──────── New features (review recommended)
16
- └────────────── Breaking changes (manual review required)
17
- ```
18
-
19
- ### Policy by Update Type
20
-
21
- ```yaml
22
- dependencies:
23
- policies:
24
- # Patch updates (x.x.PATCH)
25
- patch:
26
- description: "Bug fixes and security patches"
27
- auto_merge: true
28
- require_tests: true
29
- require_review: false
30
- max_batch: 10 # Max patches per update
31
-
32
- # Minor updates (x.MINOR.x)
33
- minor:
34
- description: "New features, backwards compatible"
35
- auto_merge: false
36
- require_tests: true
37
- require_review: true
38
- create_pr: true
39
- reviewers: ["@team/dependencies"]
40
-
41
- # Major updates (MAJOR.x.x)
42
- major:
43
- description: "Breaking changes"
44
- auto_merge: false
45
- require_tests: true
46
- require_review: true
47
- require_manual_testing: true
48
- create_pr: true
49
- reviewers: ["@team/tech-leads"]
50
- changelog_review: true
51
- ```
52
-
53
- ---
54
-
55
- ## Package-Specific Policies
56
-
57
- ### Override for Specific Packages
58
-
59
- ```yaml
60
- dependencies:
61
- package_policies:
62
- # TypeScript - allow minor updates
63
- typescript:
64
- minor:
65
- auto_merge: true # Override default
66
-
67
- # React - group with react-dom
68
- react:
69
- group_with: ["react-dom", "@types/react"]
70
- major:
71
- require_migration_guide: true
72
-
73
- # Database drivers - extra caution
74
- pg:
75
- minor:
76
- require_review: true
77
- require_staging_test: true
78
- major:
79
- require_dba_review: true
80
-
81
- # Internal packages - always update
82
- "@company/*":
83
- patch:
84
- auto_merge: true
85
- minor:
86
- auto_merge: true
87
- ```
88
-
89
- ### Lock Specific Versions
90
-
91
- ```yaml
92
- dependencies:
93
- locked:
94
- # Never update these
95
- - package: "legacy-api-client"
96
- version: "2.3.4"
97
- reason: "Breaking changes in 3.x incompatible with our API"
98
- until: "2024-06-01" # Optional expiry
99
-
100
- - package: "node-sass"
101
- version: "7.0.0"
102
- reason: "Migrating to dart-sass, no point updating"
103
- ```
104
-
105
- ---
106
-
107
- ## Update Scheduling
108
-
109
- ### Schedule Configuration
110
-
111
- ```yaml
112
- dependencies:
113
- schedule:
114
- # When to check for updates
115
- check: "0 6 * * 1" # Every Monday at 6am
116
-
117
- # When to apply auto-merged updates
118
- apply: "0 2 * * 2" # Every Tuesday at 2am
119
-
120
- # Security updates
121
- security:
122
- check: "0 */6 * * *" # Every 6 hours
123
- apply: "immediate" # Apply immediately if auto-merge
124
- ```
125
-
126
- ### Time Windows
127
-
128
- ```yaml
129
- dependencies:
130
- schedule:
131
- # Only update during these windows
132
- allowed_windows:
133
- - days: ["monday", "tuesday", "wednesday"]
134
- hours: "02:00-06:00"
135
-
136
- # Never update during
137
- blackout_windows:
138
- - name: "Release freeze"
139
- start: "2024-03-01"
140
- end: "2024-03-15"
141
-
142
- - name: "Holiday"
143
- recurring: "december 20-january 5"
144
- ```
145
-
146
- ---
147
-
148
- ## Update Grouping
149
-
150
- ### Group Related Packages
151
-
152
- ```yaml
153
- dependencies:
154
- groups:
155
- # React ecosystem
156
- - name: "react-ecosystem"
157
- packages:
158
- - "react"
159
- - "react-dom"
160
- - "@types/react"
161
- - "@types/react-dom"
162
- update_together: true
163
- strategy: "latest_compatible"
164
-
165
- # Testing libraries
166
- - name: "testing"
167
- packages:
168
- - "jest"
169
- - "@types/jest"
170
- - "ts-jest"
171
- update_together: true
172
-
173
- # ESLint plugins
174
- - name: "eslint"
175
- pattern: "eslint-*"
176
- update_together: true
177
- max_batch: 5
178
-
179
- # All TypeScript types
180
- - name: "types"
181
- pattern: "@types/*"
182
- update_together: false
183
- auto_merge: true
184
- ```
185
-
186
- ---
187
-
188
- ## Approval Workflows
189
-
190
- ### Review Requirements
191
-
192
- ```yaml
193
- dependencies:
194
- approvals:
195
- # Default reviewers
196
- default_reviewers:
197
- - "@team/developers"
198
-
199
- # By update type
200
- by_type:
201
- major:
202
- required_approvals: 2
203
- reviewers:
204
- - "@team/tech-leads"
205
- - "@team/security"
206
-
207
- minor:
208
- required_approvals: 1
209
- reviewers:
210
- - "@team/developers"
211
-
212
- # By package category
213
- by_category:
214
- security:
215
- required_approvals: 2
216
- reviewers:
217
- - "@team/security"
218
-
219
- database:
220
- reviewers:
221
- - "@team/dba"
222
- ```
223
-
224
- ### Approval Escalation
225
-
226
- ```yaml
227
- dependencies:
228
- approvals:
229
- escalation:
230
- # If not approved within time
231
- timeout: "48h"
232
- action: "escalate"
233
- escalate_to: "@team/tech-leads"
234
-
235
- # Reminder schedule
236
- reminders:
237
- - after: "24h"
238
- message: "Dependency update PR needs review"
239
- - after: "36h"
240
- message: "Urgent: Dependency update blocking"
241
- ```
242
-
243
- ---
244
-
245
- ## Testing Requirements
246
-
247
- ### Test Configuration
248
-
249
- ```yaml
250
- dependencies:
251
- testing:
252
- # Always run these
253
- always_run:
254
- - "npm test"
255
- - "npm run lint"
256
- - "npm run type-check"
257
-
258
- # For minor/major updates
259
- extended:
260
- - "npm run test:integration"
261
- - "npm run test:e2e"
262
-
263
- # For specific packages
264
- package_specific:
265
- react:
266
- - "npm run test:components"
267
- prisma:
268
- - "npm run test:db"
269
- - "npm run migrate:check"
270
-
271
- # Require passing
272
- require_passing:
273
- patch: ["unit"]
274
- minor: ["unit", "integration"]
275
- major: ["unit", "integration", "e2e"]
276
- ```
277
-
278
- ### Staging Deployment
279
-
280
- ```yaml
281
- dependencies:
282
- testing:
283
- staging:
284
- # Deploy to staging for major updates
285
- required_for: ["major"]
286
-
287
- # Staging environment
288
- environment: "staging"
289
-
290
- # Smoke test after deploy
291
- smoke_test: "npm run test:smoke"
292
-
293
- # Manual approval after staging
294
- require_approval: true
295
- approval_timeout: "4h"
296
- ```
297
-
298
- ---
299
-
300
- ## Notification Configuration
301
-
302
- ```yaml
303
- dependencies:
304
- notifications:
305
- # Update available
306
- on_update_available:
307
- channels: ["slack:#dependencies"]
308
- include:
309
- - security_advisories
310
- - changelog_summary
311
-
312
- # Auto-merged
313
- on_auto_merge:
314
- channels: ["slack:#dependencies"]
315
- summary: true
316
-
317
- # PR created
318
- on_pr_created:
319
- channels: ["slack:#pr-reviews"]
320
- mention_reviewers: true
321
-
322
- # Failed update
323
- on_failure:
324
- channels: ["slack:#dev-alerts"]
325
- include:
326
- - error_details
327
- - test_output
328
- - rollback_instructions
329
- ```
330
-
331
- ---
332
-
333
- ## Update Reports
334
-
335
- ### Weekly Summary
336
-
337
- ```
338
- ┌─────────────────────────────────────────────────────────────┐
339
- │ Dependency Update Report - Week 3, January 2024 │
340
- ├─────────────────────────────────────────────────────────────┤
341
- │ │
342
- │ Updates Processed: 23 │
343
- │ ├── Auto-merged: 18 (patches) │
344
- │ ├── PRs Created: 4 (minor) │
345
- │ └── Blocked: 1 (breaking change) │
346
- │ │
347
- │ Security Updates: 2 │
348
- │ ├── lodash: Fixed prototype pollution (auto-merged) │
349
- │ └── axios: Fixed SSRF vulnerability (auto-merged) │
350
- │ │
351
- │ Pending Review: │
352
- │ • react 18.2.0 → 18.3.0 (PR #234) │
353
- │ • typescript 5.2.0 → 5.3.0 (PR #235) │
354
- │ │
355
- │ Failed Updates: │
356
- │ • jest 29.0.0 → 30.0.0 (breaking: test runner API) │
357
- │ Action needed: Review migration guide │
358
- │ │
359
- │ Next Scheduled: Monday, Jan 22 at 6:00 AM │
360
- │ │
361
- └─────────────────────────────────────────────────────────────┘
362
- ```
363
-
364
- ---
365
-
366
- ## Best Practices
367
-
368
- 1. **Start Conservative**: Begin with manual reviews, enable auto-merge gradually
369
- 2. **Group Related Packages**: Update ecosystems together
370
- 3. **Test Thoroughly**: Higher update type = more tests
371
- 4. **Review Changelogs**: Especially for minor/major updates
372
- 5. **Schedule Wisely**: Update during low-traffic periods
373
- 6. **Monitor After Updates**: Watch for issues post-update
374
- 7. **Document Locks**: Explain why packages are locked
@@ -1,247 +0,0 @@
1
- # Disaster Recovery
2
-
3
- Comprehensive disaster recovery procedures and automation for development workflows.
4
-
5
- ---
6
-
7
- ## Overview
8
-
9
- ProAgents provides disaster recovery features to ensure business continuity and rapid recovery from failures.
10
-
11
- ```
12
- ┌─────────────────────────────────────────────────────────────┐
13
- │ Disaster Recovery │
14
- ├─────────────────────────────────────────────────────────────┤
15
- │ │
16
- │ Prevention ───────────────────────────────────────────── │
17
- │ ├── Automated backups │
18
- │ ├── Redundant storage │
19
- │ └── Health monitoring │
20
- │ │
21
- │ Detection ────────────────────────────────────────────── │
22
- │ ├── Automated alerts │
23
- │ ├── Error rate monitoring │
24
- │ └── Performance degradation │
25
- │ │
26
- │ Response ─────────────────────────────────────────────── │
27
- │ ├── Automated rollback │
28
- │ ├── Manual rollback procedures │
29
- │ └── Incident management │
30
- │ │
31
- │ Recovery ─────────────────────────────────────────────── │
32
- │ ├── System restoration │
33
- │ ├── Data recovery │
34
- │ └── Post-incident analysis │
35
- │ │
36
- └─────────────────────────────────────────────────────────────┘
37
- ```
38
-
39
- ---
40
-
41
- ## Quick Start
42
-
43
- ### Enable Disaster Recovery
44
-
45
- ```yaml
46
- # proagents.config.yaml
47
-
48
- disaster_recovery:
49
- enabled: true
50
- auto_rollback: true
51
- backup:
52
- enabled: true
53
- frequency: "daily"
54
- ```
55
-
56
- ### Key Commands
57
-
58
- ```bash
59
- # Check DR status
60
- proagents dr status
61
-
62
- # Create backup
63
- proagents dr backup create
64
-
65
- # Rollback deployment
66
- proagents rollback production
67
-
68
- # Start DR procedure
69
- proagents dr activate
70
- ```
71
-
72
- ---
73
-
74
- ## Recovery Time Objectives
75
-
76
- | Component | RTO | RPO |
77
- |-----------|-----|-----|
78
- | Frontend | < 5 min | < 1 hour |
79
- | Backend API | < 10 min | < 1 hour |
80
- | Database | < 30 min | < 15 min |
81
- | Full System | < 1 hour | < 1 hour |
82
-
83
- **RTO**: Recovery Time Objective (max downtime)
84
- **RPO**: Recovery Point Objective (max data loss)
85
-
86
- ---
87
-
88
- ## Documentation Files
89
-
90
- | File | Description |
91
- |------|-------------|
92
- | [rollback-procedures.md](./rollback-procedures.md) | Deployment rollback procedures |
93
- | [backup-recovery.md](./backup-recovery.md) | Backup and data recovery |
94
- | [incident-response.md](./incident-response.md) | Incident response runbook |
95
- | [automation.md](./automation.md) | Automated DR features |
96
- | [testing.md](./testing.md) | DR testing procedures |
97
-
98
- ---
99
-
100
- ## Recovery Scenarios
101
-
102
- ### Scenario 1: Failed Deployment
103
-
104
- ```
105
- Trigger: Deployment causes errors
106
- Detection: Error rate spike
107
- Response: Automatic rollback
108
- Recovery: Previous version restored
109
- Time: < 5 minutes
110
- ```
111
-
112
- ### Scenario 2: Data Corruption
113
-
114
- ```
115
- Trigger: Data integrity failure
116
- Detection: Validation checks
117
- Response: Alert + manual assessment
118
- Recovery: Point-in-time restore
119
- Time: < 30 minutes
120
- ```
121
-
122
- ### Scenario 3: Security Breach
123
-
124
- ```
125
- Trigger: Security incident detected
126
- Detection: Security monitoring
127
- Response: System isolation
128
- Recovery: Clean restore + patch
129
- Time: Varies based on severity
130
- ```
131
-
132
- ### Scenario 4: Infrastructure Failure
133
-
134
- ```
135
- Trigger: Cloud provider outage
136
- Detection: Health checks fail
137
- Response: Failover to backup region
138
- Recovery: Traffic redirection
139
- Time: < 15 minutes
140
- ```
141
-
142
- ---
143
-
144
- ## Configuration
145
-
146
- ```yaml
147
- # proagents.config.yaml
148
-
149
- disaster_recovery:
150
- enabled: true
151
-
152
- # Automated responses
153
- auto_rollback:
154
- enabled: true
155
- triggers:
156
- error_rate_threshold: 5 # % increase
157
- response_time_threshold: 3 # x baseline
158
- health_check_failures: 3
159
-
160
- # Backup configuration
161
- backup:
162
- enabled: true
163
- frequency: "hourly"
164
- retention_days: 30
165
- encryption: true
166
- destinations:
167
- - type: "s3"
168
- bucket: "company-backups"
169
- region: "us-east-1"
170
- - type: "gcs"
171
- bucket: "company-backups-dr"
172
- region: "us-west1"
173
-
174
- # Monitoring
175
- monitoring:
176
- health_check_interval: 30 # seconds
177
- alerting:
178
- - channel: "pagerduty"
179
- severity: ["critical"]
180
- - channel: "slack"
181
- severity: ["warning", "critical"]
182
-
183
- # Recovery targets
184
- targets:
185
- frontend:
186
- rto_minutes: 5
187
- rpo_minutes: 60
188
- backend:
189
- rto_minutes: 10
190
- rpo_minutes: 60
191
- database:
192
- rto_minutes: 30
193
- rpo_minutes: 15
194
-
195
- # Testing
196
- testing:
197
- schedule: "quarterly"
198
- notification_hours: 24
199
- ```
200
-
201
- ---
202
-
203
- ## DR Dashboard
204
-
205
- ```
206
- ┌─────────────────────────────────────────────────────────────┐
207
- │ Disaster Recovery Status │
208
- ├─────────────────────────────────────────────────────────────┤
209
- │ │
210
- │ Overall Status: ✅ Healthy │
211
- │ │
212
- │ Components: │
213
- │ ├── Frontend: ✅ Healthy (v2.1.0) │
214
- │ ├── Backend: ✅ Healthy (v3.4.2) │
215
- │ ├── Database: ✅ Healthy (replica synced) │
216
- │ └── Cache: ✅ Healthy │
217
- │ │
218
- │ Last Backup: 2024-01-15 09:00 UTC (1 hour ago) │
219
- │ Backup Status: ✅ All backups verified │
220
- │ │
221
- │ Recent Incidents: None in last 30 days │
222
- │ │
223
- │ DR Test: Last run Dec 15, 2023 (45 days ago) │
224
- │ Next scheduled: Mar 15, 2024 │
225
- │ │
226
- │ Recovery Readiness: │
227
- │ ├── Runbooks: ✅ Up to date │
228
- │ ├── Contacts: ✅ Verified │
229
- │ └── Automation: ✅ Tested │
230
- │ │
231
- └─────────────────────────────────────────────────────────────┘
232
- ```
233
-
234
- ---
235
-
236
- ## Commands
237
-
238
- | Command | Description |
239
- |---------|-------------|
240
- | `proagents dr status` | Show DR status |
241
- | `proagents dr backup create` | Create manual backup |
242
- | `proagents dr backup list` | List backups |
243
- | `proagents dr backup restore` | Restore from backup |
244
- | `proagents rollback` | Rollback deployment |
245
- | `proagents dr test` | Run DR test |
246
- | `proagents dr activate` | Activate DR mode |
247
- | `proagents dr runbook` | Show runbook |