proagents 1.6.17 → 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 (168) hide show
  1. package/.claude/settings.local.json +169 -0
  2. package/COMMANDS.md +595 -0
  3. package/README.md +13 -23
  4. package/package.json +2 -7
  5. package/.proagents/ai-models/README.md +0 -141
  6. package/.proagents/ai-models/cost-management.md +0 -362
  7. package/.proagents/ai-models/fallbacks.md +0 -342
  8. package/.proagents/ai-models/model-config.md +0 -318
  9. package/.proagents/ai-models/task-routing.md +0 -503
  10. package/.proagents/ai-training/README.md +0 -155
  11. package/.proagents/ai-training/continuous-learning.md +0 -413
  12. package/.proagents/ai-training/domain-knowledge.md +0 -378
  13. package/.proagents/ai-training/pattern-learning.md +0 -455
  14. package/.proagents/ai-training/training-data.md +0 -337
  15. package/.proagents/ai-training/user-preferences.md +0 -346
  16. package/.proagents/approval-workflows/README.md +0 -146
  17. package/.proagents/approval-workflows/approval-config.md +0 -332
  18. package/.proagents/approval-workflows/approval-stages.md +0 -503
  19. package/.proagents/approval-workflows/emergency-bypass.md +0 -351
  20. package/.proagents/approval-workflows/examples.md +0 -859
  21. package/.proagents/approval-workflows/notifications.md +0 -320
  22. package/.proagents/compliance/README.md +0 -206
  23. package/.proagents/compliance/access-control.md +0 -310
  24. package/.proagents/compliance/audit-logging.md +0 -444
  25. package/.proagents/compliance/compliance-frameworks.md +0 -429
  26. package/.proagents/compliance/reports.md +0 -491
  27. package/.proagents/compliance/retention-policies.md +0 -454
  28. package/.proagents/config-versioning/README.md +0 -120
  29. package/.proagents/config-versioning/changelog.md +0 -300
  30. package/.proagents/config-versioning/rollback.md +0 -283
  31. package/.proagents/config-versioning/versioning.md +0 -330
  32. package/.proagents/contract-testing/README.md +0 -223
  33. package/.proagents/contract-testing/contract-testing.md +0 -614
  34. package/.proagents/contract-testing/pact-integration.md +0 -507
  35. package/.proagents/contract-testing/schema-validation.md +0 -565
  36. package/.proagents/dependency-management/README.md +0 -140
  37. package/.proagents/dependency-management/automation.md +0 -363
  38. package/.proagents/dependency-management/compatibility.md +0 -319
  39. package/.proagents/dependency-management/security-scanning.md +0 -413
  40. package/.proagents/dependency-management/update-policies.md +0 -374
  41. package/.proagents/disaster-recovery/README.md +0 -247
  42. package/.proagents/disaster-recovery/automation.md +0 -366
  43. package/.proagents/disaster-recovery/backup-recovery.md +0 -571
  44. package/.proagents/disaster-recovery/incident-response.md +0 -565
  45. package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
  46. package/.proagents/disaster-recovery/runbooks.md +0 -603
  47. package/.proagents/disaster-recovery/scenarios.md +0 -892
  48. package/.proagents/disaster-recovery/testing.md +0 -438
  49. package/.proagents/environments/README.md +0 -244
  50. package/.proagents/environments/configuration.md +0 -437
  51. package/.proagents/environments/promotion.md +0 -434
  52. package/.proagents/environments/setup.md +0 -420
  53. package/.proagents/examples/README.md +0 -55
  54. package/.proagents/examples/backend-nodejs/README.md +0 -188
  55. package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
  56. package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
  57. package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
  58. package/.proagents/examples/fullstack-nextjs/README.md +0 -155
  59. package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
  60. package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
  61. package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
  62. package/.proagents/examples/mobile-react-native/README.md +0 -171
  63. package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
  64. package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
  65. package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
  66. package/.proagents/examples/web-frontend-react/README.md +0 -125
  67. package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
  68. package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
  69. package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
  70. package/.proagents/existing-projects/README.md +0 -65
  71. package/.proagents/existing-projects/challenges.md +0 -861
  72. package/.proagents/existing-projects/coexistence-mode.md +0 -483
  73. package/.proagents/existing-projects/compatibility-assessment.md +0 -541
  74. package/.proagents/existing-projects/gradual-adoption.md +0 -515
  75. package/.proagents/existing-projects/migration-strategies.md +0 -788
  76. package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
  77. package/.proagents/existing-projects/team-onboarding.md +0 -617
  78. package/.proagents/existing-projects/technical-debt-handling.md +0 -644
  79. package/.proagents/feature-flags/README.md +0 -263
  80. package/.proagents/feature-flags/ab-testing.md +0 -413
  81. package/.proagents/feature-flags/configuration.md +0 -420
  82. package/.proagents/feature-flags/kill-switches.md +0 -444
  83. package/.proagents/feature-flags/rollout-strategies.md +0 -392
  84. package/.proagents/history.log +0 -12
  85. package/.proagents/i18n/README.md +0 -133
  86. package/.proagents/i18n/extraction.md +0 -433
  87. package/.proagents/i18n/tms-integration.md +0 -332
  88. package/.proagents/i18n/translation-workflow.md +0 -413
  89. package/.proagents/i18n/validation.md +0 -355
  90. package/.proagents/logging/README.md +0 -276
  91. package/.proagents/logging/aggregation.md +0 -475
  92. package/.proagents/logging/log-levels.md +0 -376
  93. package/.proagents/logging/sensitive-data.md +0 -423
  94. package/.proagents/logging/structured-logging.md +0 -406
  95. package/.proagents/metrics/README.md +0 -69
  96. package/.proagents/metrics/code-quality-kpis.md +0 -461
  97. package/.proagents/metrics/deployment-metrics.md +0 -517
  98. package/.proagents/metrics/developer-productivity.md +0 -368
  99. package/.proagents/metrics/learning-effectiveness.md +0 -478
  100. package/.proagents/migrations/README.md +0 -77
  101. package/.proagents/migrations/from-claude-projects.md +0 -313
  102. package/.proagents/migrations/from-cursor-rules.md +0 -345
  103. package/.proagents/migrations/from-custom-workflows.md +0 -410
  104. package/.proagents/monitoring/README.md +0 -308
  105. package/.proagents/monitoring/alerting.md +0 -449
  106. package/.proagents/monitoring/dashboards.md +0 -454
  107. package/.proagents/monitoring/health-checks.md +0 -436
  108. package/.proagents/monitoring/metrics.md +0 -434
  109. package/.proagents/multi-project/README.md +0 -170
  110. package/.proagents/multi-project/coordinated-deploy.md +0 -510
  111. package/.proagents/multi-project/cross-project-deps.md +0 -395
  112. package/.proagents/multi-project/unified-changelog.md +0 -477
  113. package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
  114. package/.proagents/multi-project/workspace-config.md +0 -408
  115. package/.proagents/notifications/README.md +0 -151
  116. package/.proagents/notifications/channels.md +0 -457
  117. package/.proagents/notifications/preferences.md +0 -415
  118. package/.proagents/notifications/routing.md +0 -449
  119. package/.proagents/notifications/scheduling.md +0 -425
  120. package/.proagents/notifications/templates.md +0 -446
  121. package/.proagents/offline-mode/README.md +0 -145
  122. package/.proagents/offline-mode/caching.md +0 -344
  123. package/.proagents/offline-mode/offline-operations.md +0 -312
  124. package/.proagents/offline-mode/queue-specifications.md +0 -679
  125. package/.proagents/offline-mode/sync.md +0 -475
  126. package/.proagents/parallel-features/README.md +0 -85
  127. package/.proagents/parallel-features/conflict-detection.md +0 -226
  128. package/.proagents/parallel-features/dependency-management.md +0 -392
  129. package/.proagents/parallel-features/merge-coordination.md +0 -506
  130. package/.proagents/parallel-features/tracking-system.md +0 -416
  131. package/.proagents/performance/README.md +0 -59
  132. package/.proagents/performance/bundle-analysis.md +0 -375
  133. package/.proagents/performance/load-testing.md +0 -563
  134. package/.proagents/performance/runtime-metrics.md +0 -489
  135. package/.proagents/performance/web-vitals.md +0 -425
  136. package/.proagents/plugins/README.md +0 -139
  137. package/.proagents/plugins/creating-plugins.md +0 -504
  138. package/.proagents/plugins/plugin-api.md +0 -467
  139. package/.proagents/plugins/plugin-registry.md +0 -276
  140. package/.proagents/reporting/README.md +0 -158
  141. package/.proagents/reporting/dashboards.md +0 -366
  142. package/.proagents/reporting/exports.md +0 -524
  143. package/.proagents/reporting/quality-metrics.md +0 -385
  144. package/.proagents/reporting/templates/README.md +0 -56
  145. package/.proagents/reporting/templates/dashboard-config.json +0 -187
  146. package/.proagents/reporting/templates/metrics-queries.md +0 -427
  147. package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
  148. package/.proagents/reporting/templates/widgets.md +0 -451
  149. package/.proagents/reporting/velocity-metrics.md +0 -340
  150. package/.proagents/reverse-engineering/README.md +0 -151
  151. package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
  152. package/.proagents/reverse-engineering/code-analysis.md +0 -377
  153. package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
  154. package/.proagents/reverse-engineering/diagram-generation.md +0 -586
  155. package/.proagents/reverse-engineering/documentation-generation.md +0 -468
  156. package/.proagents/reverse-engineering/pattern-detection.md +0 -569
  157. package/.proagents/reverse-engineering/quality-assessment.md +0 -733
  158. package/.proagents/secrets/README.md +0 -278
  159. package/.proagents/secrets/access-control.md +0 -443
  160. package/.proagents/secrets/rotation.md +0 -403
  161. package/.proagents/secrets/scanning.md +0 -487
  162. package/.proagents/secrets/storage.md +0 -394
  163. package/.proagents/webhooks/README.md +0 -126
  164. package/.proagents/webhooks/endpoints.md +0 -298
  165. package/.proagents/webhooks/events.md +0 -316
  166. package/.proagents/webhooks/payloads.md +0 -325
  167. package/.proagents/webhooks/reliability.md +0 -363
  168. 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 |