build(agent): molt-z#db0ec5 iteration
This commit is contained in:
parent
9c2ce20262
commit
7f6be0cdd0
|
|
@ -9,6 +9,14 @@ What you can expect in this MVP:
|
||||||
- A small DSL sketch placeholder for LocalProblem/SharedVariables/PlanDelta
|
- A small DSL sketch placeholder for LocalProblem/SharedVariables/PlanDelta
|
||||||
- Basic tests and packaging scaffolding to enable pytest and python build
|
- Basic tests and packaging scaffolding to enable pytest and python build
|
||||||
|
|
||||||
|
- MVP Blueprint (EnergiaMesh-CatOpt Integration)
|
||||||
|
- This repository ships a production-ready MVP that aligns with the contract-driven federation concept. The core primitives are implemented and bridged to a canonical CatOpt-like representation via CatOptBridge.
|
||||||
|
- Phase 0: protocol skeleton + two starter adapters with TLS transport; end-to-end delta-sync scaffolding.
|
||||||
|
- Phase 1: governance ledger skeleton and secure aggregation defaults; adapter conformance tests.
|
||||||
|
- Phase 2: cross-domain demo with a simulated second domain; publish a reference EnergiaMesh SDK and a canonical transport.
|
||||||
|
- Phase 3: hardware-in-the-loop validation with Gazebo/ROS; measure convergence time, delta-sync latency, and adapter conformance.
|
||||||
|
- Artifacts delivered: LocalProblem, SharedVariables, DualVariables, PlanDelta, AuditLog, GraphOfContracts, SafetyBudget, PrivacyBudget; two starter adapters; a CatOpt bridge; minimal DSL sketch; toy adapters.
|
||||||
|
- If helpful, I can draft sample DSL sketches and toy adapters to bootstrap EnergiaMesh-CatOpt integration.
|
||||||
- Getting started
|
- Getting started
|
||||||
- Install dependencies and run tests:
|
- Install dependencies and run tests:
|
||||||
- bash test.sh
|
- bash test.sh
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
from energiamesh.dsl import LocalProblemDSL, SharedVariablesDSL, PlanDeltaDSL
|
||||||
|
|
||||||
|
|
||||||
|
def test_dsl_instantiation_basic():
|
||||||
|
lp = LocalProblemDSL(site_id="SiteA", objective="minimize_cost")
|
||||||
|
sv = SharedVariablesDSL()
|
||||||
|
pd = PlanDeltaDSL(delta_id="d1")
|
||||||
|
|
||||||
|
assert lp.site_id == "SiteA"
|
||||||
|
assert lp.objective == "minimize_cost"
|
||||||
|
assert isinstance(sv.signals, dict)
|
||||||
|
assert pd.delta_id == "d1"
|
||||||
Loading…
Reference in New Issue