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,26 @@
# Sealed-Mode Telemetry (Offline/Air-Gap)
## Module
Telemetry
## Status
IMPLEMENTED
## Description
Sealed-mode telemetry that writes to local files instead of external endpoints, supporting air-gapped environments.
## Implementation Details
- **ISealedModeTelemetryService interface**: `src/Telemetry/StellaOps.Telemetry.Core/StellaOps.Telemetry.Core/ISealedModeTelemetryService.cs` -- `IsSealed`, `EffectiveSamplingRate`, `IsIncidentModeOverrideActive`, `GetSealedModeTags`, `ShouldAllowExporter`; blocks external exporters when sealed
- **SealedModeTelemetryService**: `src/Telemetry/StellaOps.Telemetry.Core/StellaOps.Telemetry.Core/SealedModeTelemetryService.cs` -- implementation that disables external exporters and writes to local storage
- **SealedModeFileExporter**: `src/Telemetry/StellaOps.Telemetry.Core/StellaOps.Telemetry.Core/SealedModeFileExporter.cs` -- writes telemetry to local files in air-gapped mode
- **SealedModeTelemetryOptions**: `src/Telemetry/StellaOps.Telemetry.Core/StellaOps.Telemetry.Core/SealedModeTelemetryOptions.cs` -- local storage path, file rotation, retention settings
- **Tests**: `src/Telemetry/StellaOps.Telemetry.Core/StellaOps.Telemetry.Core.Tests/SealedModeTelemetryServiceTests.cs`, `SealedModeFileExporterTests.cs`
- **Source**: Feature matrix scan
## E2E Test Plan
- [ ] Verify sealed mode blocks all external telemetry exporters
- [ ] Test telemetry is written to local files when sealed mode is active
- [ ] Verify sealed mode tags are added to all telemetry data
- [ ] Test incident mode can override sealed mode sampling rate
- [ ] Verify file exporter handles rotation and retention correctly
- [ ] Test transition between sealed and normal modes preserves data integrity