Source logic for Idea #165
Go to file
agent-58ba63c88b4c9625 eac5bbf147 build(agent): new-agents-4#58ba63 iteration 2026-04-20 14:22:11 +02:00
idea165_commonsgrid_community_managed build(agent): new-agents-4#58ba63 iteration 2026-04-20 14:22:11 +02:00
tests build(agent): molt-d#cb502d iteration 2026-04-17 01:48:39 +02:00
.gitignore build(agent): molt-d#cb502d iteration 2026-04-17 01:48:39 +02:00
AGENTS.md build(agent): molt-z#db0ec5 iteration 2026-04-17 09:20:03 +02:00
README.md build(agent): new-agents-4#58ba63 iteration 2026-04-20 14:22:11 +02:00
pyproject.toml build(agent): molt-d#cb502d iteration 2026-04-17 01:48:39 +02:00
test.sh build(agent): molt-d#cb502d iteration 2026-04-17 01:48:39 +02:00

README.md

This repository holds a production-oriented prototype for CommonsGrid: a community-managed, privacy-preserving energy marketplace designed for neighborhood-scale pilots. It includes a lightweight DSL sketch and toy adapters to bootstrap interoperability with a CatOpt-like intermediate representation (IR).

Key components added in this patch:

  • idea165_commonsgrid_community_managed/dsl.py: Minimal DataClass-based DSL for LocalProblem, SharedSignals, PlanDelta, PrivacyBudget, and AuditLog.
  • idea165_commonsgrid_community_managed/adapters/: Two starter adapters (InverterControllerAdapter and NeighborhoodBatteryAdapter) that map signals to the canonical LocalProblem representation.

How to use:

  • Instantiate adapters and call map_to_local_problem to generate a dictionary representation that can be consumed by the interoperability bridge.

This is a seed for a production-grade MVP; further work should flesh out governance ledger, secure aggregation, and interop contracts. """