Repository navigation
Pin Energyplan 0.4.0 - #1189
Pin Energyplan 0.4.0#1189
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_f95ac1d4-567f-4ecf-a84e-e8ce4e6e0c44) |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_3769260a-4a33-4605-bbf2-67c3f6da3203) |
Pin compiled Energyplan 0.4.0 from private source
467aa1e(https://github.com/srcfl/energyplan/pull/11, plus #9 and #10).The worker keeps a proven incumbent when a later dual or MIP step fails, reports Feasible instead of Optimal when the search did not close, and stays alive on hostile protocol input.
Planner wire:
price_per_kwh/spot_per_kwh/export_price_per_kwh(same minor units as before, not öre field names).price.demand_price_per_kwis set, Core expands local weekday 06–20 clock hours, including DST, applies VAT, and attachesalready_kwfrom this month's measured import. Empty keeps planning unchanged.FTW contains only the compiled Linux ARM64/AMD64 and macOS ARM64 workers plus public integration metadata.
Validation:
python3 scripts/package.py --output dist/0.4.0-fullon macOS (all three platforms)make native-solver-testandmake verifyNote
Medium Risk
Changes the external planner protocol and adds tariff logic that directly steers MPC optimization; misconfiguration or history gaps could skew plans, though zero demand price preserves prior behavior.
Overview
Pins Energyplan 0.4.0 and updates the planner JSON contract so slot and export prices use neutral keys (
price_per_kwh,spot_per_kwh, etc.) instead of öre-specific names—same minor currency units as before.When
price.demand_price_per_kwis set (optionaldemand_top_n, default 3), Core builds weekday 06–20 local peak-power tariffs for the planning horizon: DST-aware clock hours, VAT on the wire price,already_kwfrom measured import history (ImportWhIntervalson grid history), and partialelapsed_import_kwhfor in-progress hours. Empty/zero demand config leaves behavior unchanged. Demand charges are attached to replans, require the solverdemand_chargesfeature, and bump Energyplan to the fleet time budget when present.Config validation, example YAML, Settings → Price fields, and MPC hot-reload (demand + timezone) round out operator wiring.
Reviewed by Cursor Bugbot for commit 5d77fa5. Bugbot is set up for automated code reviews on this repo. Configure here.