proagents 1.6.17 → 1.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +169 -0
- package/.proagents/AGENTS.md +2 -0
- package/.proagents/AI_INSTRUCTIONS.md +13 -0
- package/.proagents/ANTIGRAVITY.md +2 -0
- package/.proagents/BOLT.md +2 -0
- package/.proagents/CHATGPT.md +2 -0
- package/.proagents/CLAUDE.md +2 -0
- package/.proagents/GEMINI.md +2 -0
- package/.proagents/GROQ.md +2 -0
- package/.proagents/KIRO.md +2 -0
- package/.proagents/LOVABLE.md +2 -0
- package/.proagents/PROAGENTS.md +2 -0
- package/.proagents/REPLIT.md +2 -0
- package/.proagents/prompts/00-project-setup.md +878 -0
- package/.proagents/prompts/04-planning.md +38 -0
- package/.proagents/prompts/12-rnd.md +957 -0
- package/.proagents/workflow-modes/entry-modes.md +27 -0
- package/.proagents/worklog/_context.template.md +47 -0
- package/COMMANDS.md +654 -0
- package/README.md +16 -24
- package/package.json +2 -7
- package/.proagents/ai-models/README.md +0 -141
- package/.proagents/ai-models/cost-management.md +0 -362
- package/.proagents/ai-models/fallbacks.md +0 -342
- package/.proagents/ai-models/model-config.md +0 -318
- package/.proagents/ai-models/task-routing.md +0 -503
- package/.proagents/ai-training/README.md +0 -155
- package/.proagents/ai-training/continuous-learning.md +0 -413
- package/.proagents/ai-training/domain-knowledge.md +0 -378
- package/.proagents/ai-training/pattern-learning.md +0 -455
- package/.proagents/ai-training/training-data.md +0 -337
- package/.proagents/ai-training/user-preferences.md +0 -346
- package/.proagents/approval-workflows/README.md +0 -146
- package/.proagents/approval-workflows/approval-config.md +0 -332
- package/.proagents/approval-workflows/approval-stages.md +0 -503
- package/.proagents/approval-workflows/emergency-bypass.md +0 -351
- package/.proagents/approval-workflows/examples.md +0 -859
- package/.proagents/approval-workflows/notifications.md +0 -320
- package/.proagents/compliance/README.md +0 -206
- package/.proagents/compliance/access-control.md +0 -310
- package/.proagents/compliance/audit-logging.md +0 -444
- package/.proagents/compliance/compliance-frameworks.md +0 -429
- package/.proagents/compliance/reports.md +0 -491
- package/.proagents/compliance/retention-policies.md +0 -454
- package/.proagents/config-versioning/README.md +0 -120
- package/.proagents/config-versioning/changelog.md +0 -300
- package/.proagents/config-versioning/rollback.md +0 -283
- package/.proagents/config-versioning/versioning.md +0 -330
- package/.proagents/contract-testing/README.md +0 -223
- package/.proagents/contract-testing/contract-testing.md +0 -614
- package/.proagents/contract-testing/pact-integration.md +0 -507
- package/.proagents/contract-testing/schema-validation.md +0 -565
- package/.proagents/dependency-management/README.md +0 -140
- package/.proagents/dependency-management/automation.md +0 -363
- package/.proagents/dependency-management/compatibility.md +0 -319
- package/.proagents/dependency-management/security-scanning.md +0 -413
- package/.proagents/dependency-management/update-policies.md +0 -374
- package/.proagents/disaster-recovery/README.md +0 -247
- package/.proagents/disaster-recovery/automation.md +0 -366
- package/.proagents/disaster-recovery/backup-recovery.md +0 -571
- package/.proagents/disaster-recovery/incident-response.md +0 -565
- package/.proagents/disaster-recovery/rollback-procedures.md +0 -499
- package/.proagents/disaster-recovery/runbooks.md +0 -603
- package/.proagents/disaster-recovery/scenarios.md +0 -892
- package/.proagents/disaster-recovery/testing.md +0 -438
- package/.proagents/environments/README.md +0 -244
- package/.proagents/environments/configuration.md +0 -437
- package/.proagents/environments/promotion.md +0 -434
- package/.proagents/environments/setup.md +0 -420
- package/.proagents/examples/README.md +0 -55
- package/.proagents/examples/backend-nodejs/README.md +0 -188
- package/.proagents/examples/backend-nodejs/complete-conversation.md +0 -601
- package/.proagents/examples/backend-nodejs/proagents.config.yaml +0 -415
- package/.proagents/examples/backend-nodejs/workflow-example.md +0 -909
- package/.proagents/examples/fullstack-nextjs/README.md +0 -155
- package/.proagents/examples/fullstack-nextjs/complete-conversation.md +0 -604
- package/.proagents/examples/fullstack-nextjs/proagents.config.yaml +0 -287
- package/.proagents/examples/fullstack-nextjs/workflow-example.md +0 -553
- package/.proagents/examples/mobile-react-native/README.md +0 -171
- package/.proagents/examples/mobile-react-native/complete-conversation.md +0 -825
- package/.proagents/examples/mobile-react-native/proagents.config.yaml +0 -330
- package/.proagents/examples/mobile-react-native/workflow-example.md +0 -723
- package/.proagents/examples/web-frontend-react/README.md +0 -125
- package/.proagents/examples/web-frontend-react/complete-conversation.md +0 -556
- package/.proagents/examples/web-frontend-react/proagents.config.yaml +0 -183
- package/.proagents/examples/web-frontend-react/workflow-example.md +0 -603
- package/.proagents/existing-projects/README.md +0 -65
- package/.proagents/existing-projects/challenges.md +0 -861
- package/.proagents/existing-projects/coexistence-mode.md +0 -483
- package/.proagents/existing-projects/compatibility-assessment.md +0 -541
- package/.proagents/existing-projects/gradual-adoption.md +0 -515
- package/.proagents/existing-projects/migration-strategies.md +0 -788
- package/.proagents/existing-projects/pattern-reconciliation.md +0 -489
- package/.proagents/existing-projects/team-onboarding.md +0 -617
- package/.proagents/existing-projects/technical-debt-handling.md +0 -644
- package/.proagents/feature-flags/README.md +0 -263
- package/.proagents/feature-flags/ab-testing.md +0 -413
- package/.proagents/feature-flags/configuration.md +0 -420
- package/.proagents/feature-flags/kill-switches.md +0 -444
- package/.proagents/feature-flags/rollout-strategies.md +0 -392
- package/.proagents/history.log +0 -12
- package/.proagents/i18n/README.md +0 -133
- package/.proagents/i18n/extraction.md +0 -433
- package/.proagents/i18n/tms-integration.md +0 -332
- package/.proagents/i18n/translation-workflow.md +0 -413
- package/.proagents/i18n/validation.md +0 -355
- package/.proagents/logging/README.md +0 -276
- package/.proagents/logging/aggregation.md +0 -475
- package/.proagents/logging/log-levels.md +0 -376
- package/.proagents/logging/sensitive-data.md +0 -423
- package/.proagents/logging/structured-logging.md +0 -406
- package/.proagents/metrics/README.md +0 -69
- package/.proagents/metrics/code-quality-kpis.md +0 -461
- package/.proagents/metrics/deployment-metrics.md +0 -517
- package/.proagents/metrics/developer-productivity.md +0 -368
- package/.proagents/metrics/learning-effectiveness.md +0 -478
- package/.proagents/migrations/README.md +0 -77
- package/.proagents/migrations/from-claude-projects.md +0 -313
- package/.proagents/migrations/from-cursor-rules.md +0 -345
- package/.proagents/migrations/from-custom-workflows.md +0 -410
- package/.proagents/monitoring/README.md +0 -308
- package/.proagents/monitoring/alerting.md +0 -449
- package/.proagents/monitoring/dashboards.md +0 -454
- package/.proagents/monitoring/health-checks.md +0 -436
- package/.proagents/monitoring/metrics.md +0 -434
- package/.proagents/multi-project/README.md +0 -170
- package/.proagents/multi-project/coordinated-deploy.md +0 -510
- package/.proagents/multi-project/cross-project-deps.md +0 -395
- package/.proagents/multi-project/unified-changelog.md +0 -477
- package/.proagents/multi-project/walkthroughs/monorepo-setup.md +0 -787
- package/.proagents/multi-project/workspace-config.md +0 -408
- package/.proagents/notifications/README.md +0 -151
- package/.proagents/notifications/channels.md +0 -457
- package/.proagents/notifications/preferences.md +0 -415
- package/.proagents/notifications/routing.md +0 -449
- package/.proagents/notifications/scheduling.md +0 -425
- package/.proagents/notifications/templates.md +0 -446
- package/.proagents/offline-mode/README.md +0 -145
- package/.proagents/offline-mode/caching.md +0 -344
- package/.proagents/offline-mode/offline-operations.md +0 -312
- package/.proagents/offline-mode/queue-specifications.md +0 -679
- package/.proagents/offline-mode/sync.md +0 -475
- package/.proagents/parallel-features/README.md +0 -85
- package/.proagents/parallel-features/conflict-detection.md +0 -226
- package/.proagents/parallel-features/dependency-management.md +0 -392
- package/.proagents/parallel-features/merge-coordination.md +0 -506
- package/.proagents/parallel-features/tracking-system.md +0 -416
- package/.proagents/performance/README.md +0 -59
- package/.proagents/performance/bundle-analysis.md +0 -375
- package/.proagents/performance/load-testing.md +0 -563
- package/.proagents/performance/runtime-metrics.md +0 -489
- package/.proagents/performance/web-vitals.md +0 -425
- package/.proagents/plugins/README.md +0 -139
- package/.proagents/plugins/creating-plugins.md +0 -504
- package/.proagents/plugins/plugin-api.md +0 -467
- package/.proagents/plugins/plugin-registry.md +0 -276
- package/.proagents/reporting/README.md +0 -158
- package/.proagents/reporting/dashboards.md +0 -366
- package/.proagents/reporting/exports.md +0 -524
- package/.proagents/reporting/quality-metrics.md +0 -385
- package/.proagents/reporting/templates/README.md +0 -56
- package/.proagents/reporting/templates/dashboard-config.json +0 -187
- package/.proagents/reporting/templates/metrics-queries.md +0 -427
- package/.proagents/reporting/templates/react-dashboard.tsx +0 -544
- package/.proagents/reporting/templates/widgets.md +0 -451
- package/.proagents/reporting/velocity-metrics.md +0 -340
- package/.proagents/reverse-engineering/README.md +0 -151
- package/.proagents/reverse-engineering/architecture-extraction.md +0 -325
- package/.proagents/reverse-engineering/code-analysis.md +0 -377
- package/.proagents/reverse-engineering/dependency-mapping.md +0 -567
- package/.proagents/reverse-engineering/diagram-generation.md +0 -586
- package/.proagents/reverse-engineering/documentation-generation.md +0 -468
- package/.proagents/reverse-engineering/pattern-detection.md +0 -569
- package/.proagents/reverse-engineering/quality-assessment.md +0 -733
- package/.proagents/secrets/README.md +0 -278
- package/.proagents/secrets/access-control.md +0 -443
- package/.proagents/secrets/rotation.md +0 -403
- package/.proagents/secrets/scanning.md +0 -487
- package/.proagents/secrets/storage.md +0 -394
- package/.proagents/webhooks/README.md +0 -126
- package/.proagents/webhooks/endpoints.md +0 -298
- package/.proagents/webhooks/events.md +0 -316
- package/.proagents/webhooks/payloads.md +0 -325
- package/.proagents/webhooks/reliability.md +0 -363
- package/.proagents/webhooks/security.md +0 -380
|
@@ -1,434 +0,0 @@
|
|
|
1
|
-
# Environment Promotion
|
|
2
|
-
|
|
3
|
-
Moving code and configuration safely between environments.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Promotion Flow
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
11
|
-
│ Development │ ─▶ │ Staging │ ─▶ │ Production │
|
|
12
|
-
└──────────────┘ └──────────────┘ └──────────────┘
|
|
13
|
-
│ │ │
|
|
14
|
-
Auto Deploy Manual Gate Approval Gate
|
|
15
|
-
On PR Merge + Tests Pass + Change Window
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Promotion Rules
|
|
21
|
-
|
|
22
|
-
### Configuration
|
|
23
|
-
|
|
24
|
-
```yaml
|
|
25
|
-
# proagents.config.yaml
|
|
26
|
-
promotion:
|
|
27
|
-
# Development → Staging
|
|
28
|
-
development_to_staging:
|
|
29
|
-
trigger: "automatic"
|
|
30
|
-
conditions:
|
|
31
|
-
- "all_tests_pass"
|
|
32
|
-
- "no_critical_security_issues"
|
|
33
|
-
notifications:
|
|
34
|
-
- slack: "#deployments"
|
|
35
|
-
|
|
36
|
-
# Staging → Production
|
|
37
|
-
staging_to_production:
|
|
38
|
-
trigger: "manual"
|
|
39
|
-
conditions:
|
|
40
|
-
- "all_tests_pass"
|
|
41
|
-
- "security_scan_pass"
|
|
42
|
-
- "performance_baseline_met"
|
|
43
|
-
- "staging_soak_time >= 4h"
|
|
44
|
-
approvals:
|
|
45
|
-
required: 2
|
|
46
|
-
approvers:
|
|
47
|
-
- role: "tech-lead"
|
|
48
|
-
- role: "sre"
|
|
49
|
-
change_window:
|
|
50
|
-
days: ["tuesday", "wednesday", "thursday"]
|
|
51
|
-
hours: ["10:00", "16:00"]
|
|
52
|
-
timezone: "America/New_York"
|
|
53
|
-
notifications:
|
|
54
|
-
- slack: "#prod-deployments"
|
|
55
|
-
- email: "engineering@company.com"
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## Promotion Gates
|
|
61
|
-
|
|
62
|
-
### Quality Gates
|
|
63
|
-
|
|
64
|
-
```yaml
|
|
65
|
-
promotion:
|
|
66
|
-
gates:
|
|
67
|
-
quality:
|
|
68
|
-
# Test requirements
|
|
69
|
-
tests:
|
|
70
|
-
unit_coverage: ">= 80%"
|
|
71
|
-
integration_tests: "pass"
|
|
72
|
-
e2e_tests: "pass"
|
|
73
|
-
|
|
74
|
-
# Code quality
|
|
75
|
-
code_quality:
|
|
76
|
-
linting: "no_errors"
|
|
77
|
-
type_check: "pass"
|
|
78
|
-
complexity: "<= 15"
|
|
79
|
-
|
|
80
|
-
# Security
|
|
81
|
-
security:
|
|
82
|
-
vulnerability_scan: "no_critical"
|
|
83
|
-
dependency_audit: "no_high"
|
|
84
|
-
secrets_scan: "no_findings"
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Performance Gates
|
|
88
|
-
|
|
89
|
-
```yaml
|
|
90
|
-
promotion:
|
|
91
|
-
gates:
|
|
92
|
-
performance:
|
|
93
|
-
# Response times
|
|
94
|
-
latency:
|
|
95
|
-
p50: "<= 100ms"
|
|
96
|
-
p95: "<= 300ms"
|
|
97
|
-
p99: "<= 500ms"
|
|
98
|
-
|
|
99
|
-
# Throughput
|
|
100
|
-
throughput:
|
|
101
|
-
min_rps: 1000
|
|
102
|
-
|
|
103
|
-
# Resources
|
|
104
|
-
resources:
|
|
105
|
-
memory_increase: "<= 10%"
|
|
106
|
-
cpu_increase: "<= 15%"
|
|
107
|
-
|
|
108
|
-
# Bundle size (for frontend)
|
|
109
|
-
bundle:
|
|
110
|
-
size_increase: "<= 5%"
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
### Stability Gates
|
|
114
|
-
|
|
115
|
-
```yaml
|
|
116
|
-
promotion:
|
|
117
|
-
gates:
|
|
118
|
-
stability:
|
|
119
|
-
# Soak time in staging
|
|
120
|
-
soak_time:
|
|
121
|
-
minimum: "4h"
|
|
122
|
-
error_rate: "< 0.1%"
|
|
123
|
-
|
|
124
|
-
# Canary requirements
|
|
125
|
-
canary:
|
|
126
|
-
duration: "1h"
|
|
127
|
-
traffic_percentage: 10
|
|
128
|
-
success_rate: ">= 99.5%"
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Promotion Strategies
|
|
134
|
-
|
|
135
|
-
### Direct Promotion
|
|
136
|
-
|
|
137
|
-
```yaml
|
|
138
|
-
promotion:
|
|
139
|
-
strategies:
|
|
140
|
-
direct:
|
|
141
|
-
description: "Immediate full deployment"
|
|
142
|
-
use_when: "low_risk_changes"
|
|
143
|
-
|
|
144
|
-
steps:
|
|
145
|
-
- deploy_to_target
|
|
146
|
-
- run_smoke_tests
|
|
147
|
-
- verify_health
|
|
148
|
-
- update_traffic
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Canary Promotion
|
|
152
|
-
|
|
153
|
-
```yaml
|
|
154
|
-
promotion:
|
|
155
|
-
strategies:
|
|
156
|
-
canary:
|
|
157
|
-
description: "Gradual traffic shift"
|
|
158
|
-
use_when: "medium_risk_changes"
|
|
159
|
-
|
|
160
|
-
phases:
|
|
161
|
-
- percentage: 5
|
|
162
|
-
duration: "15m"
|
|
163
|
-
evaluation:
|
|
164
|
-
- "error_rate < 1%"
|
|
165
|
-
- "latency_p99 < 500ms"
|
|
166
|
-
|
|
167
|
-
- percentage: 25
|
|
168
|
-
duration: "30m"
|
|
169
|
-
evaluation:
|
|
170
|
-
- "error_rate < 0.5%"
|
|
171
|
-
- "latency_p99 < 400ms"
|
|
172
|
-
|
|
173
|
-
- percentage: 50
|
|
174
|
-
duration: "1h"
|
|
175
|
-
evaluation:
|
|
176
|
-
- "error_rate < 0.1%"
|
|
177
|
-
|
|
178
|
-
- percentage: 100
|
|
179
|
-
evaluation:
|
|
180
|
-
- "error_rate < 0.1%"
|
|
181
|
-
- "no_user_complaints"
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### Blue-Green Promotion
|
|
185
|
-
|
|
186
|
-
```yaml
|
|
187
|
-
promotion:
|
|
188
|
-
strategies:
|
|
189
|
-
blue_green:
|
|
190
|
-
description: "Full parallel deployment with instant switch"
|
|
191
|
-
use_when: "high_risk_changes"
|
|
192
|
-
|
|
193
|
-
steps:
|
|
194
|
-
- deploy_to_green
|
|
195
|
-
- run_full_test_suite
|
|
196
|
-
- warm_up_caches
|
|
197
|
-
- switch_traffic
|
|
198
|
-
- monitor: "15m"
|
|
199
|
-
- decommission_blue_or_rollback
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Rolling Promotion
|
|
203
|
-
|
|
204
|
-
```yaml
|
|
205
|
-
promotion:
|
|
206
|
-
strategies:
|
|
207
|
-
rolling:
|
|
208
|
-
description: "Incremental instance replacement"
|
|
209
|
-
use_when: "standard_deployments"
|
|
210
|
-
|
|
211
|
-
configuration:
|
|
212
|
-
max_unavailable: 1
|
|
213
|
-
max_surge: 1
|
|
214
|
-
health_check_grace_period: "30s"
|
|
215
|
-
|
|
216
|
-
steps:
|
|
217
|
-
- replace_instance
|
|
218
|
-
- wait_healthy
|
|
219
|
-
- repeat_until_complete
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
## Approval Workflow
|
|
225
|
-
|
|
226
|
-
### Approval Configuration
|
|
227
|
-
|
|
228
|
-
```yaml
|
|
229
|
-
promotion:
|
|
230
|
-
approvals:
|
|
231
|
-
staging_to_production:
|
|
232
|
-
# Required approvers
|
|
233
|
-
required:
|
|
234
|
-
count: 2
|
|
235
|
-
from:
|
|
236
|
-
- role: "tech-lead"
|
|
237
|
-
- role: "sre"
|
|
238
|
-
- team: "security"
|
|
239
|
-
|
|
240
|
-
# Timeout
|
|
241
|
-
timeout: "24h"
|
|
242
|
-
escalation_after: "4h"
|
|
243
|
-
|
|
244
|
-
# Auto-approval conditions
|
|
245
|
-
auto_approve_if:
|
|
246
|
-
- "change_type == 'config_only'"
|
|
247
|
-
- "change_type == 'rollback'"
|
|
248
|
-
- "emergency_flag == true AND approved_by_manager"
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### Approval Request Template
|
|
252
|
-
|
|
253
|
-
```yaml
|
|
254
|
-
promotion:
|
|
255
|
-
approvals:
|
|
256
|
-
request_template:
|
|
257
|
-
title: "Promotion: ${source_env} → ${target_env}"
|
|
258
|
-
body: |
|
|
259
|
-
## Change Summary
|
|
260
|
-
**Version:** ${version}
|
|
261
|
-
**Commits:** ${commit_count}
|
|
262
|
-
**Authors:** ${authors}
|
|
263
|
-
|
|
264
|
-
## Changes
|
|
265
|
-
${change_summary}
|
|
266
|
-
|
|
267
|
-
## Test Results
|
|
268
|
-
- Unit Tests: ${unit_test_status}
|
|
269
|
-
- Integration: ${integration_test_status}
|
|
270
|
-
- Security Scan: ${security_scan_status}
|
|
271
|
-
|
|
272
|
-
## Risk Assessment
|
|
273
|
-
- Risk Level: ${risk_level}
|
|
274
|
-
- Rollback Plan: ${rollback_plan}
|
|
275
|
-
|
|
276
|
-
## Checklist
|
|
277
|
-
- [ ] Reviewed changes
|
|
278
|
-
- [ ] Verified test results
|
|
279
|
-
- [ ] Confirmed rollback plan
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
---
|
|
283
|
-
|
|
284
|
-
## Promotion Notifications
|
|
285
|
-
|
|
286
|
-
### Notification Configuration
|
|
287
|
-
|
|
288
|
-
```yaml
|
|
289
|
-
promotion:
|
|
290
|
-
notifications:
|
|
291
|
-
# Before promotion
|
|
292
|
-
pre_promotion:
|
|
293
|
-
channels:
|
|
294
|
-
- slack: "#deployments"
|
|
295
|
-
- email: "team@company.com"
|
|
296
|
-
message: "🚀 Starting promotion: ${source} → ${target}"
|
|
297
|
-
|
|
298
|
-
# Success
|
|
299
|
-
promotion_success:
|
|
300
|
-
channels:
|
|
301
|
-
- slack: "#deployments"
|
|
302
|
-
message: "✅ Promotion complete: ${version} deployed to ${target}"
|
|
303
|
-
|
|
304
|
-
# Failure
|
|
305
|
-
promotion_failure:
|
|
306
|
-
channels:
|
|
307
|
-
- slack: "#incidents"
|
|
308
|
-
- pagerduty: "deployments"
|
|
309
|
-
message: "❌ Promotion failed: ${error_message}"
|
|
310
|
-
|
|
311
|
-
# Rollback
|
|
312
|
-
rollback:
|
|
313
|
-
channels:
|
|
314
|
-
- slack: "#incidents"
|
|
315
|
-
- email: "engineering@company.com"
|
|
316
|
-
message: "⚠️ Rollback initiated: ${reason}"
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
---
|
|
320
|
-
|
|
321
|
-
## Promotion History
|
|
322
|
-
|
|
323
|
-
### Tracking
|
|
324
|
-
|
|
325
|
-
```yaml
|
|
326
|
-
promotion:
|
|
327
|
-
history:
|
|
328
|
-
# What to track
|
|
329
|
-
capture:
|
|
330
|
-
- version
|
|
331
|
-
- commits
|
|
332
|
-
- authors
|
|
333
|
-
- approvers
|
|
334
|
-
- duration
|
|
335
|
-
- test_results
|
|
336
|
-
- metrics_snapshot
|
|
337
|
-
|
|
338
|
-
# Storage
|
|
339
|
-
storage:
|
|
340
|
-
type: "database"
|
|
341
|
-
retention: "1 year"
|
|
342
|
-
|
|
343
|
-
# Reports
|
|
344
|
-
reports:
|
|
345
|
-
- type: "weekly_summary"
|
|
346
|
-
schedule: "monday 9am"
|
|
347
|
-
recipients: ["engineering@company.com"]
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
### Viewing History
|
|
351
|
-
|
|
352
|
-
```bash
|
|
353
|
-
# View promotion history
|
|
354
|
-
proagents promote history
|
|
355
|
-
|
|
356
|
-
# View specific promotion
|
|
357
|
-
proagents promote show <promotion-id>
|
|
358
|
-
|
|
359
|
-
# Compare promotions
|
|
360
|
-
proagents promote diff <id1> <id2>
|
|
361
|
-
```
|
|
362
|
-
|
|
363
|
-
---
|
|
364
|
-
|
|
365
|
-
## Commands
|
|
366
|
-
|
|
367
|
-
```bash
|
|
368
|
-
# Check promotion readiness
|
|
369
|
-
proagents promote check --from staging --to production
|
|
370
|
-
|
|
371
|
-
# Start promotion
|
|
372
|
-
proagents promote start --from staging --to production
|
|
373
|
-
|
|
374
|
-
# View promotion status
|
|
375
|
-
proagents promote status
|
|
376
|
-
|
|
377
|
-
# Cancel promotion
|
|
378
|
-
proagents promote cancel
|
|
379
|
-
|
|
380
|
-
# Request approval
|
|
381
|
-
proagents promote request-approval --from staging --to production
|
|
382
|
-
|
|
383
|
-
# Approve promotion
|
|
384
|
-
proagents promote approve <promotion-id>
|
|
385
|
-
|
|
386
|
-
# Reject promotion
|
|
387
|
-
proagents promote reject <promotion-id> --reason "Failed security review"
|
|
388
|
-
|
|
389
|
-
# Emergency promotion (bypasses normal gates)
|
|
390
|
-
proagents promote emergency --from staging --to production \
|
|
391
|
-
--reason "Critical security fix" \
|
|
392
|
-
--approved-by manager@company.com
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
---
|
|
396
|
-
|
|
397
|
-
## Promotion Checklist
|
|
398
|
-
|
|
399
|
-
### Pre-Promotion
|
|
400
|
-
|
|
401
|
-
- [ ] All tests passing
|
|
402
|
-
- [ ] Security scan complete
|
|
403
|
-
- [ ] Performance baseline met
|
|
404
|
-
- [ ] Change documented
|
|
405
|
-
- [ ] Rollback plan ready
|
|
406
|
-
- [ ] Monitoring alerts configured
|
|
407
|
-
|
|
408
|
-
### During Promotion
|
|
409
|
-
|
|
410
|
-
- [ ] Monitor error rates
|
|
411
|
-
- [ ] Watch latency metrics
|
|
412
|
-
- [ ] Check health endpoints
|
|
413
|
-
- [ ] Monitor resource usage
|
|
414
|
-
- [ ] Watch for user complaints
|
|
415
|
-
|
|
416
|
-
### Post-Promotion
|
|
417
|
-
|
|
418
|
-
- [ ] Verify all services healthy
|
|
419
|
-
- [ ] Run smoke tests
|
|
420
|
-
- [ ] Update status page
|
|
421
|
-
- [ ] Notify stakeholders
|
|
422
|
-
- [ ] Document any issues
|
|
423
|
-
- [ ] Schedule post-mortem if needed
|
|
424
|
-
|
|
425
|
-
---
|
|
426
|
-
|
|
427
|
-
## Best Practices
|
|
428
|
-
|
|
429
|
-
1. **Automate Gates**: Don't rely on manual checks
|
|
430
|
-
2. **Small Changes**: Promote frequently with small changes
|
|
431
|
-
3. **Clear Rollback**: Always have a tested rollback plan
|
|
432
|
-
4. **Monitor Closely**: Watch metrics during and after promotion
|
|
433
|
-
5. **Document Everything**: Track all promotions and outcomes
|
|
434
|
-
6. **Learn from Failures**: Post-mortem every failed promotion
|