Files
git.stella-ops.org/docs/features/unchecked/releaseorchestrator/automated-drift-remediation-engine.md

1.7 KiB

Automated Drift Remediation Engine

Module

ReleaseOrchestrator

Status

IMPLEMENTED

Description

Automated drift remediation engine with severity scoring, rate limiting, circuit breaker patterns, and reconciliation scheduling that can automatically apply fixes for configuration drift detected between environments.

Implementation Details

  • Modules: src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Environment/Inventory/Remediation/
  • Key Classes:
    • RemediationEngine (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Environment/Inventory/Remediation/RemediationEngine.cs) - automated drift remediation with severity scoring and circuit breaker patterns
    • DriftDetector (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Environment/Inventory/DriftDetector.cs) - detects configuration drift between expected and actual state
    • InventorySyncService (src/ReleaseOrchestrator/__Libraries/StellaOps.ReleaseOrchestrator.Environment/Inventory/InventorySyncService.cs) - synchronizes inventory state with target environments
  • Interfaces: IDriftDetector, IInventorySyncService
  • Source: SPRINT_20260117_031

E2E Test Plan

  • Detect a configuration drift and verify RemediationEngine generates a remediation plan with severity scores
  • Verify auto-fix: apply the remediation plan and confirm the drift is resolved
  • Verify rate limiting: trigger multiple remediations in rapid succession and confirm rate limiting kicks in
  • Verify circuit breaker: simulate repeated remediation failures and confirm the circuit breaker opens
  • Verify reconciliation scheduling: configure a schedule and confirm drift checks run automatically