Skip to content

Commit e921604

Browse files
committed
docs: create roadmap (4 phases)
Phases: 1. GNN Verifier Foundation: GNN-01, GNN-02 2. Hybrid Verifier Integration: GNN-03, ENS-01, ENS-02 3. Graph-Aware Proposer: SELF-01, SELF-02 4. Evaluation Framework: EVAL-01, EVAL-02, EVAL-03 All 10 v1 requirements mapped to phases.
1 parent f52b5b0 commit e921604

3 files changed

Lines changed: 158 additions & 13 deletions

File tree

.planning/REQUIREMENTS.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ Which phases cover which requirements. Updated during roadmap creation.
7171

7272
| Requirement | Phase | Status |
7373
|-------------|-------|--------|
74-
| GNN-01 | TBD | Pending |
75-
| GNN-02 | TBD | Pending |
76-
| GNN-03 | TBD | Pending |
77-
| SELF-01 | TBD | Pending |
78-
| SELF-02 | TBD | Pending |
79-
| ENS-01 | TBD | Pending |
80-
| ENS-02 | TBD | Pending |
81-
| EVAL-01 | TBD | Pending |
82-
| EVAL-02 | TBD | Pending |
83-
| EVAL-03 | TBD | Pending |
74+
| GNN-01 | Phase 1 | Pending |
75+
| GNN-02 | Phase 1 | Pending |
76+
| GNN-03 | Phase 2 | Pending |
77+
| SELF-01 | Phase 3 | Pending |
78+
| SELF-02 | Phase 3 | Pending |
79+
| ENS-01 | Phase 2 | Pending |
80+
| ENS-02 | Phase 2 | Pending |
81+
| EVAL-01 | Phase 4 | Pending |
82+
| EVAL-02 | Phase 4 | Pending |
83+
| EVAL-03 | Phase 4 | Pending |
8484

8585
**Coverage:**
8686
- v1 requirements: 10 total
87-
- Mapped to phases: 0
88-
- Unmapped: 10
87+
- Mapped to phases: 10
88+
- Unmapped: 0
8989

9090
---
9191
*Requirements defined: 2026-01-27*
92-
*Last updated: 2026-01-27 after initial definition*
92+
*Last updated: 2026-01-27 after roadmap creation*

.planning/ROADMAP.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Roadmap: Grid Guardian
2+
3+
**Created:** 2026-01-27
4+
**Core Value:** Detect anomalies in energy distribution networks without labeled data, using physics constraints and self-play learned patterns on graph-structured grid data
5+
**Config:** depth=standard, parallelization=false
6+
7+
## Milestone: v1.0 — GNN-Based Anomaly Detection with Self-Play Validation
8+
9+
### Phase 1: GNN Verifier Foundation
10+
11+
**Goal:** Build a topology-aware GNN verifier that understands grid structure and can score anomalies based on spatial relationships between nodes.
12+
13+
**Requirements:** GNN-01, GNN-02
14+
15+
**Success Criteria:**
16+
1. Graph construction pipeline transforms SSEN metadata into PyTorch Geometric Data batches with nodes (households, feeders, substations) and edges (physical topology)
17+
2. GNN model (GAT/GraphSAGE + temporal layer) processes graph-structured input and outputs per-node anomaly scores
18+
3. Model achieves >85% accuracy on held-out synthetic anomalies with <30ms inference latency for batch_size=32
19+
4. Oversmoothing is prevented (node embeddings remain distinguishable across grid hierarchy levels)
20+
21+
**Depends on:** None
22+
23+
---
24+
25+
### Phase 2: Hybrid Verifier Integration
26+
27+
**Goal:** Replace the MLP Verifier with a three-layer ensemble that combines physics constraints, GNN patterns, and cascade logic into the self-play training loop.
28+
29+
**Requirements:** GNN-03, ENS-01, ENS-02
30+
31+
**Success Criteria:**
32+
1. Physics constraint layer (hard bounds from SSEN: voltage, capacity, ramp rates) validates inputs before GNN processing
33+
2. Cascade early-exit logic skips GNN computation for clear physics violations, reducing average inference time
34+
3. HybridVerifierAgent integrates into existing SelfPlayTrainer, producing verification rewards for training
35+
4. Hybrid verifier improves detection accuracy over baseline rule-based verifier on held-out test scenarios
36+
37+
**Depends on:** Phase 1
38+
39+
---
40+
41+
### Phase 3: Graph-Aware Proposer
42+
43+
**Goal:** Enhance the Proposer to generate topology-respecting anomaly scenarios where disturbances propagate through connected nodes (e.g., COLD_SNAP cascading through neighbors).
44+
45+
**Requirements:** SELF-01, SELF-02
46+
47+
**Success Criteria:**
48+
1. GraphAwareProposer generates scenarios that respect grid topology (anomalies occur on connected subgraphs, not random nodes)
49+
2. Cascade scenarios (COLD_SNAP, OUTAGE) propagate through physically connected neighbors with configurable decay
50+
3. Self-play training maintains scenario diversity (each of 5 types appears in at least 15% of batches, no mode collapse)
51+
4. Generated scenarios are visually distinguishable and pass domain plausibility review
52+
53+
**Depends on:** Phase 2
54+
55+
---
56+
57+
### Phase 4: Evaluation Framework
58+
59+
**Goal:** Validate the GNN-based approach through rigorous multi-level evaluation comparing against baselines and measuring physics compliance.
60+
61+
**Requirements:** EVAL-01, EVAL-02, EVAL-03
62+
63+
**Success Criteria:**
64+
1. Precision, recall, and F1 scores computed against physics-violation ground truth and synthetic scenarios
65+
2. GNN Verifier performance compared against IsolationForest, Autoencoder, and DecompositionAnomalyDetector on identical test splits
66+
3. Physics compliance rate measured (percentage of detected anomalies that violate known physical constraints)
67+
4. Ablation study quantifies contribution of each component (GNN-only vs. physics-only vs. hybrid ensemble)
68+
5. Results documented with statistical significance testing and visualization for FYP report
69+
70+
**Depends on:** Phase 3
71+
72+
---
73+
74+
## Progress
75+
76+
| Phase | Name | Status | Requirements | Coverage |
77+
|-------|------|--------|--------------|----------|
78+
| 1 | GNN Verifier Foundation | Not started | GNN-01, GNN-02 | 2/10 |
79+
| 2 | Hybrid Verifier Integration | Not started | GNN-03, ENS-01, ENS-02 | 3/10 |
80+
| 3 | Graph-Aware Proposer | Not started | SELF-01, SELF-02 | 2/10 |
81+
| 4 | Evaluation Framework | Not started | EVAL-01, EVAL-02, EVAL-03 | 3/10 |
82+
83+
**Total Coverage:** 10/10 requirements mapped
84+
85+
---
86+
*Roadmap created: 2026-01-27*
87+
*Last updated: 2026-01-27*

.planning/STATE.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Grid Guardian — Project State
2+
3+
## Project Reference
4+
5+
See: .planning/PROJECT.md (updated 2026-01-26)
6+
7+
**Core value:** Detect anomalies in energy distribution networks without labeled data, using physics constraints and self-play learned patterns on graph-structured grid data
8+
**Current focus:** Phase 1 - GNN Verifier Foundation
9+
10+
## Current Position
11+
12+
- **Phase:** 1 of 4
13+
- **Plan:** 0 of 0 (not yet planned)
14+
- **Status:** Not started
15+
- **Progress:** [..........] 0%
16+
17+
## Performance Metrics
18+
19+
| Metric | Value | Notes |
20+
|--------|-------|-------|
21+
| Plans completed | 0 | - |
22+
| Requirements done | 0/10 | - |
23+
| Phases done | 0/4 | - |
24+
25+
## Key Decisions
26+
27+
(None yet)
28+
29+
## Blockers
30+
31+
(None)
32+
33+
## Accumulated Context
34+
35+
### Technical Decisions
36+
(None yet)
37+
38+
### Open Questions
39+
- SSEN metadata schema for graph construction (needs exploration in Phase 1)
40+
- Optimal GNN hyperparameters for 100K node graphs (will tune in Phase 1)
41+
42+
### Deferred Items
43+
- Uncertainty quantification (UQ-01, UQ-02) - v2
44+
- Elexon BMRS live integration (DATA-01, DATA-02) - v2
45+
- FYP report and presentation (ACAD-01, ACAD-02) - v2
46+
47+
## Recent Activity
48+
49+
- 2026-01-27: Project initialized, roadmap created with 4 phases
50+
- 2026-01-27: Research synthesis completed (MEDIUM-HIGH confidence)
51+
52+
## Session Continuity
53+
54+
**Last session:** 2026-01-27
55+
**Next action:** Plan Phase 1 via `/gsd:plan-phase 1`
56+
57+
---
58+
*Last updated: 2026-01-27*

0 commit comments

Comments
 (0)