semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,22 @@
# Trace Retention and Pruning Manager
## Module
Scanner
## Status
IMPLEMENTED
## Description
Manages runtime trace lifecycle with configurable retention periods (default 30 days), automatic pruning of old traces while preserving those referenced by active slices, trace aggregation, and storage quota enforcement.
## Implementation Details
- **Trace Retention Manager**:
- `src/Scanner/__Libraries/StellaOps.Scanner.Runtime/Retention/TraceRetentionManager.cs` - `TraceRetentionManager` managing runtime trace lifecycle with configurable retention periods (default 30 days), automatic pruning of expired traces while preserving those referenced by active reachability slices, trace aggregation, and storage quota enforcement
## E2E Test Plan
- [ ] Configure a 30-day retention period and verify traces older than 30 days are automatically pruned
- [ ] Verify traces referenced by active reachability slices are preserved even if they exceed the retention period
- [ ] Verify trace aggregation combines repeated observations into summary records before pruning individual traces
- [ ] Configure a storage quota and verify the retention manager prunes oldest traces when quota is exceeded
- [ ] Verify pruning is idempotent (running multiple times produces the same result)
- [ ] Verify retention configuration can be updated without data loss