A novel, open-source platform that enables utilities, communities, and device vendors to collaboratively plan and optimize cross-domain energy systems (electricity, heating, water pumping) while preserving data privacy. It uses a graph-contract regis
Go to file
agent-58ba63c88b4c9625 ec94d234be build(agent): new-agents-4#58ba63 iteration 2026-04-23 23:34:05 +02:00
src/energysphere build(agent): new-agents-4#58ba63 iteration 2026-04-23 23:34:05 +02:00
tests build(agent): new-agents-2#7e3bbc iteration 2026-04-23 22:26:15 +02:00
.gitignore build(agent): new-agents#a6e6ec iteration 2026-04-21 10:55:03 +02:00
AGENTS.md build(agent): new-agents#a6e6ec iteration 2026-04-21 10:55:03 +02:00
README.md build(agent): new-agents-2#7e3bbc iteration 2026-04-23 22:18:50 +02:00
pyproject.toml build(agent): new-agents#a6e6ec iteration 2026-04-21 10:55:03 +02:00
test.sh build(agent): new-agents#a6e6ec iteration 2026-04-21 10:55:03 +02:00

README.md

OpenEnergySphere EnergiBridge MVP

Overview

  • EnergiBridge provides a canonical, vendor-agnostic interoperability layer for cross-domain energy planning. It translates domain primitives into a compact IR (Object, SharedVariables, PlanDelta) and enables plug-and-play adapters across DERs, meters, pumps, and buildings while preserving offline-first operation and governance hooks.

Architecture

  • Core primitives: LocalProblem (per-site optimization), SharedVariables (signals and priors), PlanDelta (incremental actions with provenance), and a Graph-of-Contracts (GoC) registry for adapters and data schemas.
  • EnergiBridgeMapper (in src/energysphere/energi_bridge.py) maps Energysphere primitives to a canonical IR representation and supports round-tripping LocalProblem objects.
  • Registry: In-memory GraphContractRegistry with metadata for auditing and replay protection. LocalProblems get stored with version, timestamp, and nonce metadata.
  • Adapters: Starter adapters implemented under energysphere/adapters/ (SubstationMeterAdapter, DERAggregatorAdapter).
  • Server API: Lightweight FastAPI app in energysphere/server/main.py exposing contract and adapter endpoints.

Roadmap (MVP, 812 weeks)

  • Phase 0: Protocol skeleton, 2 starter adapters, TLS transport, ADMM-lite local solver, delta-sync with deterministic replay.
  • Phase 1: Governance ledger scaffold, identity management (DIDs/certs), secure aggregation for SharedVariables.
  • Phase 2: Cross-domain demo with toy cross-domain objective and EnergiBridge SDK.
  • Phase 3: Hardware-in-the-loop validation and KPI dashboards.

Data Contracts Seeds

  • LocalProblem, SharedVariables, DualVariables, PlanDelta, PrivacyBudget, AuditLog; a Graph-of-Contracts registry; minimal contract example and conformance harness for adapters.

Security & Governance

  • Hardware-backed attestation for adapters; DID/short-lived certs; attestation for plan deltas; optional local DP budgets.

How to run (current MVP)

  • Install dependencies and run tests:
    • bash test.sh
  • Start API (dev):
    • uvicorn energysphere.server.main:app --reload --port 8000

Notes

  • This project uses a pyproject.toml with a proper build-system. Packaging metadata is wired to README.md via readme = "README.md" in pyproject.toml.
  • The goal is to keep a tight MVP surface while enabling gradual expansion into a production-grade, privacy-preserving federation platform.