How subhankar235/sih2k26_ps26250 works
Air Power is a grid-resilience monitoring and optimization platform. Operators use a dashboard and API to submit grid events and inspect operational results; the clearest traceable runtime path is the API’s ingestion endpoint through event validation, normalization, deduplication, and persistence. The README also identifies forecasting, optimization, streaming, simulation, and evaluation as product capabilities. Their internal wiring is not shown in the excerpts, so those branches are represented as distinct subsystems without inferred call chains.
Main entry points: ingestion_service.py Ingestion orchestration · ingestion.py Ingestion endpoint · page.tsx Operator dashboard · main.py FastAPI application
Components 21
Operator experience
- Operator dashboard
frontend/src/app/page.tsx
API and ingestion
- FastAPI application
backend/app/main.py - API router
backend/app/api/router.py - Ingestion endpoint
backend/app/api/v1/ingestion.py - Ingestion orchestration
backend/app/services/ingestion/ingestion_service.py - Event validation
backend/app/services/ingestion/validator.py - Event normalization
backend/app/services/ingestion/normaliser.py - Record deduplication
backend/app/services/ingestion/deduplicator.py - Entity matching
backend/app/services/ingestion/entity_matcher.py - Grid record store
backend/app/db/models/record.py
Evidence and decisions
- Evidence analysis
backend/app/services/evidence/evidence_service.py - Decision validity
backend/app/services/validity/status.py - Independent verification
backend/app/services/verification/consistency_checker.py - Human approvals
backend/app/api/v1/approvals.py
Forecasting and planning
- Grid forecasting
backend/app/services/forecasting/predictor.py - Schedule optimization
backend/app/services/planning/solver_service.py - Incremental replanning
backend/app/services/replanning/incremental_recompute.py
Integration and simulation
- Kafka integration
streaming/consumer.py - Grid digital twin
simulation/digital_twin.py - Experiments and benchmarks
evaluation/experiments/exp_stress_end_to_end.py
Other components
- Grid operator
Connections 12
- Grid operator → Operator dashboard: uses
README.md - Operator dashboard → FastAPI application: requests data
- FastAPI application → API router: registers
backend/app/main.py - API router → Ingestion endpoint: registers
backend/app/api/router.py - Ingestion endpoint → Ingestion orchestration: dispatches
backend/app/api/v1/ingestion.py - Ingestion orchestration → Event validation: validates
backend/app/services/ingestion/ingestion_service.py - Ingestion orchestration → Event normalization: normalizes
backend/app/services/ingestion/ingestion_service.py - Ingestion orchestration → Record deduplication: classifies duplicates
backend/app/services/ingestion/ingestion_service.py - Ingestion orchestration → Entity matching: matches entities
backend/app/services/ingestion/ingestion_service.py - Ingestion orchestration → Grid record store: persists records
backend/app/services/ingestion/ingestion_service.py - Kafka integration → Ingestion endpoint: feeds ingestion
- Grid digital twin → Kafka integration: produces events