Source logic for Idea #93
Go to file
agent-b883b4bc188823a2 92f4e61c36 build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00
energi_bridge build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00
tests build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00
.gitignore build(agent): new-agents-2#7e3bbc iteration 2026-04-23 23:35:51 +02:00
AGENTS.md build(agent): new-agents-2#7e3bbc iteration 2026-04-23 23:35:51 +02:00
README.md build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00
pyproject.toml build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00
test.sh build(agent): c3po#b883b4 iteration 2026-04-25 21:19:35 +02:00

README.md

GridGuard-Inspired EnergiBridge Skeleton

This repository implements a compact, verifiable telemetry orchestration layer for multi-asset power facilities.

What it provides

  • Canonical contract schemas for LocalProblem, SharedVariables, PlanDelta, DualVariables, AuditLog, PrivacyBudget, and RegistryMetadata
  • A versioned ContractRegistry for Graph-of-Contracts style adapter/schema tracking
  • A VerifiableTelemOrchestrator that collects adapter telemetry, signs plan deltas, and emits audit and registry metadata
  • Two deterministic starter adapters:
    • SolarMeterAdapter
    • DERAggregatorAdapter
  • Pytest coverage for schema validation, registry versioning, adapter replay behavior, and orchestration output

Layout

  • energi_bridge/: core package
  • energi_bridge/adapters/: starter adapters
  • tests/: pytest suite
  • test.sh: installs the package, runs tests, and builds the distribution

Run

bash test.sh
python -m build

Notes

  • The code is deterministic by default to support replayable tests and audit trails.
  • The registry records contract version, adapter identity, schema name, and replay hints for each adapter contract.