save checkpoint. addition features and their state. check some ofthem
This commit is contained in:
39
docs/features/checked/graph/graph-overlay-system.md
Normal file
39
docs/features/checked/graph/graph-overlay-system.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Graph Overlay System (Policy, VEX, Reachability)
|
||||
|
||||
## Module
|
||||
Graph
|
||||
|
||||
## Status
|
||||
VERIFIED
|
||||
|
||||
## Description
|
||||
Overlay system with exporter, in-memory overlay service, and tests for layering policy/VEX/reachability data onto dependency graphs.
|
||||
|
||||
## Implementation Details
|
||||
- **Overlay service interface**: `src/Graph/StellaOps.Graph.Api/Services/IOverlayService.cs` -- overlay query contract
|
||||
- **In-memory overlay service**: `src/Graph/StellaOps.Graph.Api/Services/InMemoryOverlayService.cs` -- in-memory overlay implementation for testing
|
||||
- **Overlay exporter**: `src/Graph/StellaOps.Graph.Indexer/Analytics/GraphOverlayExporter.cs` -- exports analytics results as overlay layers
|
||||
- **Policy overlay processor**: `src/Graph/StellaOps.Graph.Indexer/Ingestion/Policy/PolicyOverlayProcessor.cs` -- ingests policy decisions as graph overlays
|
||||
- **Policy overlay transformer**: `src/Graph/StellaOps.Graph.Indexer/Ingestion/Policy/PolicyOverlayTransformer.cs` -- transforms policy data for graph overlay
|
||||
- **Policy overlay snapshot**: `src/Graph/StellaOps.Graph.Indexer/Ingestion/Policy/PolicyOverlaySnapshot.cs` -- policy overlay state
|
||||
- **Policy overlay metrics**: `src/Graph/StellaOps.Graph.Indexer/Ingestion/Policy/PolicyOverlayMetrics.cs`, `IPolicyOverlayMetrics.cs` -- overlay processing metrics
|
||||
- **VEX overlay**: `src/Graph/StellaOps.Graph.Indexer/Ingestion/Vex/VexOverlayTransformer.cs`, `VexOverlaySnapshot.cs` -- VEX verdict overlays on graph
|
||||
- **Reachability delta**: `src/Graph/StellaOps.Graph.Api/Services/IReachabilityDeltaService.cs`, `InMemoryReachabilityDeltaService.cs` -- reachability annotation overlays
|
||||
- **Tests**: `src/Graph/__Tests/StellaOps.Graph.Indexer.Tests/GraphOverlayExporterTests.cs`
|
||||
- **Metrics tests**: `src/Graph/__Tests/StellaOps.Graph.Api.Tests/MetricsTests.cs` -- overlay cache counter verification
|
||||
- **Source**: Feature matrix scan
|
||||
|
||||
## E2E Test Plan
|
||||
- [x] Verify policy overlay renders policy decisions on graph nodes
|
||||
- [x] Test VEX overlay annotates graph with VEX verdict data
|
||||
- [x] Verify reachability overlay shows reachability status per edge
|
||||
- [x] Test overlay exporter generates valid overlay from analytics results
|
||||
- [x] Verify overlay stacking (multiple overlays on same graph)
|
||||
|
||||
## Verification
|
||||
- **Run ID**: run-002
|
||||
- **Date**: 2026-02-09T21:43:00Z
|
||||
- **Tier**: 1 (Source + Build + Test)
|
||||
- **Result**: PASS
|
||||
- **Evidence**: 52/52 Graph.Api.Tests pass (including MetricsTests 2/2 pass for overlay cache counters). 108/108 non-persistence tests pass across all Graph test projects. 17 Persistence tests skipped (require Docker/PostgreSQL -- environment limitation, not a regression).
|
||||
- **Notes**: Required 1 retry cycle. Initial failure due to MeterListener cross-contamination in MetricsTests -- name-based meter filtering picked up instruments from other tests' undisposed GraphMetrics instances. Fixed in run-002 by switching to instance-based meter filtering and adding `using` statements to GraphMetrics instances in QueryServiceTests.
|
||||
Reference in New Issue
Block a user