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.
- package/.claude/settings.local.json +169 -0
- package/COMMANDS.md +595 -0
- package/README.md +13 -23
- 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,454 +0,0 @@
|
|
|
1
|
-
# Data Retention Policies
|
|
2
|
-
|
|
3
|
-
Configure data retention for compliance and operational needs.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
Retention policies ensure data is kept for required periods and properly disposed of when no longer needed.
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
13
|
-
│ Retention Lifecycle │
|
|
14
|
-
├─────────────────────────────────────────────────────────────┤
|
|
15
|
-
│ │
|
|
16
|
-
│ Data Created ──► Active Storage ──► Archive ──► Deletion │
|
|
17
|
-
│ │ │ │ │ │
|
|
18
|
-
│ ▼ ▼ ▼ ▼ │
|
|
19
|
-
│ Log Entry Hot Storage Cold Storage Purge │
|
|
20
|
-
│ (0-90 days) (90+ days) (End of │
|
|
21
|
-
│ retention) │
|
|
22
|
-
│ │
|
|
23
|
-
└─────────────────────────────────────────────────────────────┘
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Retention Periods by Type
|
|
29
|
-
|
|
30
|
-
### Default Retention Schedule
|
|
31
|
-
|
|
32
|
-
| Data Type | Retention Period | Compliance Requirement |
|
|
33
|
-
|-----------|------------------|----------------------|
|
|
34
|
-
| Security Events | 7 years | SOC 2, HIPAA |
|
|
35
|
-
| Code Changes | 5 years | SOC 2, PCI-DSS |
|
|
36
|
-
| Deployment Logs | 3 years | SOC 2 |
|
|
37
|
-
| Access Logs | 1 year | GDPR, PCI-DSS |
|
|
38
|
-
| Feature Tracking | 2 years | Internal |
|
|
39
|
-
| Analysis Cache | 90 days | Internal |
|
|
40
|
-
| Temporary Files | 7 days | Internal |
|
|
41
|
-
|
|
42
|
-
### By Compliance Framework
|
|
43
|
-
|
|
44
|
-
**SOC 2:**
|
|
45
|
-
| Data Category | Minimum Retention |
|
|
46
|
-
|---------------|-------------------|
|
|
47
|
-
| Access control evidence | 1 year |
|
|
48
|
-
| Change management records | 1 year |
|
|
49
|
-
| Security incident logs | 3 years |
|
|
50
|
-
| Audit evidence | 3 years |
|
|
51
|
-
|
|
52
|
-
**GDPR:**
|
|
53
|
-
| Data Category | Maximum Retention |
|
|
54
|
-
|---------------|-------------------|
|
|
55
|
-
| Personal data | As needed + legitimate interest |
|
|
56
|
-
| Consent records | Duration of consent + 3 years |
|
|
57
|
-
| Data subject requests | 3 years |
|
|
58
|
-
| Processing records | Ongoing + 1 year |
|
|
59
|
-
|
|
60
|
-
**HIPAA:**
|
|
61
|
-
| Data Category | Minimum Retention |
|
|
62
|
-
|---------------|-------------------|
|
|
63
|
-
| PHI access logs | 6 years |
|
|
64
|
-
| Security documentation | 6 years |
|
|
65
|
-
| Risk assessments | 6 years |
|
|
66
|
-
| Training records | 6 years |
|
|
67
|
-
|
|
68
|
-
**PCI-DSS:**
|
|
69
|
-
| Data Category | Minimum Retention |
|
|
70
|
-
|---------------|-------------------|
|
|
71
|
-
| Audit trails | 1 year (3 months immediately available) |
|
|
72
|
-
| Security event logs | 1 year |
|
|
73
|
-
| Incident response | 1 year |
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## Configuration
|
|
78
|
-
|
|
79
|
-
### Basic Configuration
|
|
80
|
-
|
|
81
|
-
```yaml
|
|
82
|
-
# proagents.config.yaml
|
|
83
|
-
|
|
84
|
-
retention:
|
|
85
|
-
enabled: true
|
|
86
|
-
|
|
87
|
-
# Default retention (in days)
|
|
88
|
-
defaults:
|
|
89
|
-
security_events: 2555 # 7 years
|
|
90
|
-
code_changes: 1825 # 5 years
|
|
91
|
-
deployments: 1095 # 3 years
|
|
92
|
-
access_logs: 365 # 1 year
|
|
93
|
-
feature_data: 730 # 2 years
|
|
94
|
-
cache: 90
|
|
95
|
-
temp: 7
|
|
96
|
-
|
|
97
|
-
# Automatic cleanup
|
|
98
|
-
auto_cleanup:
|
|
99
|
-
enabled: true
|
|
100
|
-
schedule: "0 2 * * *" # 2 AM daily
|
|
101
|
-
dry_run_first: true
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
### Advanced Configuration
|
|
105
|
-
|
|
106
|
-
```yaml
|
|
107
|
-
retention:
|
|
108
|
-
enabled: true
|
|
109
|
-
|
|
110
|
-
# Custom retention by data type
|
|
111
|
-
policies:
|
|
112
|
-
# Security events
|
|
113
|
-
- name: "security_critical"
|
|
114
|
-
match:
|
|
115
|
-
event_type: ["vuln_critical", "permission_escalation", "secret_exposed"]
|
|
116
|
-
retention_days: 2555
|
|
117
|
-
storage_class: "cold"
|
|
118
|
-
encryption: true
|
|
119
|
-
|
|
120
|
-
# Code changes
|
|
121
|
-
- name: "code_changes"
|
|
122
|
-
match:
|
|
123
|
-
category: "code_change"
|
|
124
|
-
retention_days: 1825
|
|
125
|
-
archive_after_days: 365
|
|
126
|
-
storage_class: "standard"
|
|
127
|
-
|
|
128
|
-
# Access logs
|
|
129
|
-
- name: "access_logs"
|
|
130
|
-
match:
|
|
131
|
-
category: "access"
|
|
132
|
-
retention_days: 365
|
|
133
|
-
storage_class: "standard"
|
|
134
|
-
|
|
135
|
-
# Feature data
|
|
136
|
-
- name: "active_features"
|
|
137
|
-
match:
|
|
138
|
-
type: "feature_tracking"
|
|
139
|
-
status: "active"
|
|
140
|
-
retention_days: null # Keep while active
|
|
141
|
-
archive_on_complete: true
|
|
142
|
-
|
|
143
|
-
# Temporary data
|
|
144
|
-
- name: "temp_files"
|
|
145
|
-
match:
|
|
146
|
-
type: "temporary"
|
|
147
|
-
retention_days: 7
|
|
148
|
-
no_archive: true
|
|
149
|
-
|
|
150
|
-
# Storage classes
|
|
151
|
-
storage_classes:
|
|
152
|
-
hot:
|
|
153
|
-
max_age_days: 90
|
|
154
|
-
location: "local"
|
|
155
|
-
standard:
|
|
156
|
-
max_age_days: 365
|
|
157
|
-
location: "local"
|
|
158
|
-
cold:
|
|
159
|
-
min_age_days: 365
|
|
160
|
-
location: "s3-glacier"
|
|
161
|
-
|
|
162
|
-
# Archive settings
|
|
163
|
-
archive:
|
|
164
|
-
enabled: true
|
|
165
|
-
destination: "s3://company-archive"
|
|
166
|
-
compression: true
|
|
167
|
-
encryption: true
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
---
|
|
171
|
-
|
|
172
|
-
## Retention Rules
|
|
173
|
-
|
|
174
|
-
### Rule Syntax
|
|
175
|
-
|
|
176
|
-
```yaml
|
|
177
|
-
retention:
|
|
178
|
-
policies:
|
|
179
|
-
- name: "policy_name"
|
|
180
|
-
|
|
181
|
-
# Match criteria (all must match)
|
|
182
|
-
match:
|
|
183
|
-
category: "category_name"
|
|
184
|
-
event_type: ["type1", "type2"]
|
|
185
|
-
severity: "critical"
|
|
186
|
-
path: "src/auth/**"
|
|
187
|
-
custom:
|
|
188
|
-
field: "value"
|
|
189
|
-
|
|
190
|
-
# Retention settings
|
|
191
|
-
retention_days: 365 # Days to keep
|
|
192
|
-
archive_after_days: 90 # Days before archive
|
|
193
|
-
storage_class: "standard" # Storage tier
|
|
194
|
-
encryption: true # Encrypt at rest
|
|
195
|
-
|
|
196
|
-
# Deletion settings
|
|
197
|
-
deletion:
|
|
198
|
-
method: "secure" # standard, secure
|
|
199
|
-
verification: true # Verify deletion
|
|
200
|
-
notify: true # Notify on deletion
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### Rule Priority
|
|
204
|
-
|
|
205
|
-
Rules are evaluated in order. First match wins:
|
|
206
|
-
|
|
207
|
-
```yaml
|
|
208
|
-
policies:
|
|
209
|
-
# Most specific first
|
|
210
|
-
- name: "critical_security"
|
|
211
|
-
match:
|
|
212
|
-
event_type: "vuln_critical"
|
|
213
|
-
retention_days: 2555
|
|
214
|
-
|
|
215
|
-
# General security
|
|
216
|
-
- name: "security_events"
|
|
217
|
-
match:
|
|
218
|
-
category: "security"
|
|
219
|
-
retention_days: 1825
|
|
220
|
-
|
|
221
|
-
# Catch-all
|
|
222
|
-
- name: "default"
|
|
223
|
-
match: {}
|
|
224
|
-
retention_days: 365
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
## Data Lifecycle Management
|
|
230
|
-
|
|
231
|
-
### Lifecycle Stages
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
235
|
-
│ Data Lifecycle │
|
|
236
|
-
├─────────────────────────────────────────────────────────────┤
|
|
237
|
-
│ │
|
|
238
|
-
│ Stage 1: Active (0-90 days) │
|
|
239
|
-
│ ├── Fast access │
|
|
240
|
-
│ ├── Hot storage │
|
|
241
|
-
│ └── Full detail │
|
|
242
|
-
│ │
|
|
243
|
-
│ Stage 2: Standard (90-365 days) │
|
|
244
|
-
│ ├── Normal access │
|
|
245
|
-
│ ├── Standard storage │
|
|
246
|
-
│ └── Full detail │
|
|
247
|
-
│ │
|
|
248
|
-
│ Stage 3: Archive (365+ days) │
|
|
249
|
-
│ ├── Slow access │
|
|
250
|
-
│ ├── Cold storage │
|
|
251
|
-
│ └── Compressed │
|
|
252
|
-
│ │
|
|
253
|
-
│ Stage 4: Deletion (End of retention) │
|
|
254
|
-
│ ├── Secure deletion │
|
|
255
|
-
│ ├── Verification │
|
|
256
|
-
│ └── Audit log │
|
|
257
|
-
│ │
|
|
258
|
-
└─────────────────────────────────────────────────────────────┘
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### Automatic Transitions
|
|
262
|
-
|
|
263
|
-
```yaml
|
|
264
|
-
lifecycle:
|
|
265
|
-
transitions:
|
|
266
|
-
- from: "active"
|
|
267
|
-
to: "standard"
|
|
268
|
-
after_days: 90
|
|
269
|
-
|
|
270
|
-
- from: "standard"
|
|
271
|
-
to: "archive"
|
|
272
|
-
after_days: 365
|
|
273
|
-
actions:
|
|
274
|
-
- compress: true
|
|
275
|
-
- move_to_cold_storage: true
|
|
276
|
-
|
|
277
|
-
- from: "archive"
|
|
278
|
-
to: "deletion"
|
|
279
|
-
after_days: 2555 # End of retention
|
|
280
|
-
actions:
|
|
281
|
-
- secure_delete: true
|
|
282
|
-
- verify_deletion: true
|
|
283
|
-
- log_deletion: true
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
## Deletion Procedures
|
|
289
|
-
|
|
290
|
-
### Secure Deletion
|
|
291
|
-
|
|
292
|
-
```yaml
|
|
293
|
-
deletion:
|
|
294
|
-
# Standard deletion
|
|
295
|
-
standard:
|
|
296
|
-
method: "delete"
|
|
297
|
-
verify: false
|
|
298
|
-
|
|
299
|
-
# Secure deletion (for compliance)
|
|
300
|
-
secure:
|
|
301
|
-
method: "overwrite"
|
|
302
|
-
passes: 3 # Number of overwrites
|
|
303
|
-
verify: true
|
|
304
|
-
certificate: true # Generate deletion certificate
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
### Deletion Verification
|
|
308
|
-
|
|
309
|
-
```bash
|
|
310
|
-
# Preview what will be deleted
|
|
311
|
-
proagents retention preview-deletion
|
|
312
|
-
|
|
313
|
-
# Run deletion (dry run)
|
|
314
|
-
proagents retention cleanup --dry-run
|
|
315
|
-
|
|
316
|
-
# Run deletion
|
|
317
|
-
proagents retention cleanup
|
|
318
|
-
|
|
319
|
-
# Verify deletion
|
|
320
|
-
proagents retention verify-deletion --date 2024-01-15
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
### Deletion Certificate
|
|
324
|
-
|
|
325
|
-
For compliance, generate deletion certificates:
|
|
326
|
-
|
|
327
|
-
```json
|
|
328
|
-
{
|
|
329
|
-
"certificate_id": "del_cert_abc123",
|
|
330
|
-
"issued_at": "2024-01-15T10:00:00Z",
|
|
331
|
-
"data_deleted": {
|
|
332
|
-
"type": "access_logs",
|
|
333
|
-
"date_range": "2022-01-01 to 2022-12-31",
|
|
334
|
-
"record_count": 45678,
|
|
335
|
-
"storage_location": "s3://archive/2022/"
|
|
336
|
-
},
|
|
337
|
-
"deletion_method": "secure_overwrite_3pass",
|
|
338
|
-
"verification": {
|
|
339
|
-
"verified": true,
|
|
340
|
-
"verified_at": "2024-01-15T10:05:00Z",
|
|
341
|
-
"verifier": "system"
|
|
342
|
-
},
|
|
343
|
-
"signature": "sha256:abc123..."
|
|
344
|
-
}
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
---
|
|
348
|
-
|
|
349
|
-
## Legal Holds
|
|
350
|
-
|
|
351
|
-
### Implementing Legal Hold
|
|
352
|
-
|
|
353
|
-
When litigation requires data preservation:
|
|
354
|
-
|
|
355
|
-
```yaml
|
|
356
|
-
legal_holds:
|
|
357
|
-
- id: "hold_001"
|
|
358
|
-
name: "Case #12345"
|
|
359
|
-
created_at: "2024-01-15"
|
|
360
|
-
created_by: "legal@company.com"
|
|
361
|
-
|
|
362
|
-
# Scope
|
|
363
|
-
scope:
|
|
364
|
-
date_range:
|
|
365
|
-
from: "2023-01-01"
|
|
366
|
-
to: "2023-12-31"
|
|
367
|
-
categories:
|
|
368
|
-
- "code_changes"
|
|
369
|
-
- "deployments"
|
|
370
|
-
users:
|
|
371
|
-
- "developer@company.com"
|
|
372
|
-
paths:
|
|
373
|
-
- "src/payment/**"
|
|
374
|
-
|
|
375
|
-
# Settings
|
|
376
|
-
settings:
|
|
377
|
-
suspend_deletion: true
|
|
378
|
-
notify_on_access: true
|
|
379
|
-
export_required: true
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
### Legal Hold Commands
|
|
383
|
-
|
|
384
|
-
```bash
|
|
385
|
-
# Create legal hold
|
|
386
|
-
proagents retention hold create --name "Case #12345" --scope ./hold-scope.yaml
|
|
387
|
-
|
|
388
|
-
# List legal holds
|
|
389
|
-
proagents retention hold list
|
|
390
|
-
|
|
391
|
-
# Release legal hold
|
|
392
|
-
proagents retention hold release hold_001 --reason "Case closed"
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
---
|
|
396
|
-
|
|
397
|
-
## Reporting
|
|
398
|
-
|
|
399
|
-
### Retention Report
|
|
400
|
-
|
|
401
|
-
```bash
|
|
402
|
-
# Generate retention report
|
|
403
|
-
proagents retention report
|
|
404
|
-
|
|
405
|
-
# Output:
|
|
406
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
407
|
-
│ Data Retention Report │
|
|
408
|
-
├─────────────────────────────────────────────────────────────┤
|
|
409
|
-
│ │
|
|
410
|
-
│ Current Storage: │
|
|
411
|
-
│ ├── Active (hot): 2.3 GB │
|
|
412
|
-
│ ├── Standard: 15.6 GB │
|
|
413
|
-
│ └── Archive (cold): 89.2 GB │
|
|
414
|
-
│ │
|
|
415
|
-
│ By Category: │
|
|
416
|
-
│ ├── Security Events: 45.2 GB (7 year retention) │
|
|
417
|
-
│ ├── Code Changes: 32.1 GB (5 year retention) │
|
|
418
|
-
│ ├── Deployments: 18.4 GB (3 year retention) │
|
|
419
|
-
│ └── Access Logs: 11.4 GB (1 year retention) │
|
|
420
|
-
│ │
|
|
421
|
-
│ Upcoming Deletions: │
|
|
422
|
-
│ ├── Next 30 days: 1.2 GB (access logs from 2023-01) │
|
|
423
|
-
│ ├── Next 90 days: 3.4 GB │
|
|
424
|
-
│ └── Next year: 12.8 GB │
|
|
425
|
-
│ │
|
|
426
|
-
│ Legal Holds: 1 active │
|
|
427
|
-
│ │
|
|
428
|
-
│ Compliance Status: │
|
|
429
|
-
│ ├── SOC 2: ✅ Meeting retention requirements │
|
|
430
|
-
│ ├── GDPR: ✅ Within limits │
|
|
431
|
-
│ └── PCI-DSS: ✅ Compliant │
|
|
432
|
-
│ │
|
|
433
|
-
└─────────────────────────────────────────────────────────────┘
|
|
434
|
-
```
|
|
435
|
-
|
|
436
|
-
### Compliance Verification
|
|
437
|
-
|
|
438
|
-
```bash
|
|
439
|
-
# Verify retention meets compliance
|
|
440
|
-
proagents retention verify --framework soc2 --framework gdpr
|
|
441
|
-
```
|
|
442
|
-
|
|
443
|
-
---
|
|
444
|
-
|
|
445
|
-
## Best Practices
|
|
446
|
-
|
|
447
|
-
1. **Document Policies**: Keep retention policies in version control
|
|
448
|
-
2. **Regular Reviews**: Review retention annually
|
|
449
|
-
3. **Test Deletion**: Verify secure deletion works correctly
|
|
450
|
-
4. **Monitor Storage**: Track storage growth trends
|
|
451
|
-
5. **Plan Ahead**: Budget for long-term storage costs
|
|
452
|
-
6. **Legal Coordination**: Coordinate holds with legal team
|
|
453
|
-
7. **Automate**: Use automatic lifecycle management
|
|
454
|
-
8. **Verify**: Regularly verify retention compliance
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# Configuration Version Control
|
|
2
|
-
|
|
3
|
-
Track, version, and manage configuration changes.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Overview
|
|
8
|
-
|
|
9
|
-
Configuration version control ensures all ProAgents configuration changes are tracked, reversible, and auditable.
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
13
|
-
│ Config Version Control │
|
|
14
|
-
├─────────────────────────────────────────────────────────────┤
|
|
15
|
-
│ │
|
|
16
|
-
│ Config Change ──► Validation ──► Version ──► Apply │
|
|
17
|
-
│ │ │ │
|
|
18
|
-
│ ▼ ▼ │
|
|
19
|
-
│ Change Log History │
|
|
20
|
-
│ │ │ │
|
|
21
|
-
│ └────────────────────────────┘ │
|
|
22
|
-
│ │ │
|
|
23
|
-
│ ▼ │
|
|
24
|
-
│ Rollback Available │
|
|
25
|
-
│ │
|
|
26
|
-
└─────────────────────────────────────────────────────────────┘
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Quick Start
|
|
32
|
-
|
|
33
|
-
### View Config History
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# Show config change history
|
|
37
|
-
proagents config history
|
|
38
|
-
|
|
39
|
-
# Show specific config file history
|
|
40
|
-
proagents config history --file proagents.config.yaml
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Rollback Config
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# Rollback to previous version
|
|
47
|
-
proagents config rollback
|
|
48
|
-
|
|
49
|
-
# Rollback to specific version
|
|
50
|
-
proagents config rollback --to v2.3.0
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## Features
|
|
56
|
-
|
|
57
|
-
| Feature | Description |
|
|
58
|
-
|---------|-------------|
|
|
59
|
-
| **Version Tracking** | Every change creates a version |
|
|
60
|
-
| **Change Logging** | Reason and author recorded |
|
|
61
|
-
| **Diff Support** | Compare versions |
|
|
62
|
-
| **Rollback** | Revert to any previous version |
|
|
63
|
-
| **Validation** | Validate before applying |
|
|
64
|
-
| **Audit Trail** | Complete history for compliance |
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## Documentation Files
|
|
69
|
-
|
|
70
|
-
| File | Description |
|
|
71
|
-
|------|-------------|
|
|
72
|
-
| [versioning.md](./versioning.md) | Version tracking details |
|
|
73
|
-
| [changelog.md](./changelog.md) | Config changelog |
|
|
74
|
-
| [rollback.md](./rollback.md) | Rollback procedures |
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Configuration
|
|
79
|
-
|
|
80
|
-
```yaml
|
|
81
|
-
# proagents.config.yaml
|
|
82
|
-
|
|
83
|
-
config_versioning:
|
|
84
|
-
enabled: true
|
|
85
|
-
|
|
86
|
-
# Track these config files
|
|
87
|
-
tracked_files:
|
|
88
|
-
- "proagents.config.yaml"
|
|
89
|
-
- "standards/**/*.yaml"
|
|
90
|
-
- "rules/**/*.yaml"
|
|
91
|
-
|
|
92
|
-
# Version storage
|
|
93
|
-
storage:
|
|
94
|
-
path: ".proagents/config-history"
|
|
95
|
-
max_versions: 100
|
|
96
|
-
|
|
97
|
-
# Change requirements
|
|
98
|
-
changes:
|
|
99
|
-
require_reason: true
|
|
100
|
-
require_approval: false
|
|
101
|
-
validate_before_apply: true
|
|
102
|
-
|
|
103
|
-
# Notifications
|
|
104
|
-
notifications:
|
|
105
|
-
on_change: true
|
|
106
|
-
channels: ["slack:#config-changes"]
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
## Commands
|
|
112
|
-
|
|
113
|
-
| Command | Description |
|
|
114
|
-
|---------|-------------|
|
|
115
|
-
| `proagents config history` | Show version history |
|
|
116
|
-
| `proagents config diff` | Compare versions |
|
|
117
|
-
| `proagents config rollback` | Revert to previous |
|
|
118
|
-
| `proagents config export` | Export configuration |
|
|
119
|
-
| `proagents config import` | Import configuration |
|
|
120
|
-
| `proagents config validate` | Validate configuration |
|