|
|
||
|---|---|---|
| idea165_commonsgrid_community_managed | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| README.md | ||
| pyproject.toml | ||
| test.sh | ||
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. """