Skip to content

chore(optimizer): bundle Energyplan 0.7.0 at 7ea7d998 - #2038

Merged
frahlg merged 1 commit into
masterfrom
chore/bundle-energyplan-fleet-car-room
Nov 17, 2026
Merged

frahlg merged 1 commit into
masterfrom
chore/bundle-energyplan-fleet-car-room

Conversation

@frahlg

@frahlg frahlg commented Nov 17, 2026

Copy link
Copy Markdown
Member

Problem

Since #2023, Core rejects a worker plan in which the battery covers the house
while a car it may not cover charges on the import room that frees. The
bundled worker (Energyplan 847936a) still planned that way on nights when the
fuse binds. A site with one battery and one car then gets Core DP's plan, and
since #2037 a site Core cannot plan itself gets the worker's plan with a
warning.

Change

  • Bundle Energyplan 0.7.0 at 7ea7d998. The worker now keeps the rule in its
    library (srcfl/energyplan#83) and in its fleet model (srcfl/energyplan#84),
    which plans every request where a car can charge. Only the two Linux
    workers and manifest.json change; license, notices and schemas are the
    same.
  • go/internal/mpc/native_car_room_test.go plans the field night of
    15 Nov 2026 (fuseNightSlots) with the bundled worker and needs Core to
    accept the plan, with no slot where discharge makes the car's room.
  • Changeset: patch.

Evidence

  • The workers are byte-identical to the ones Energyplan's full local CI
    passed with on 55118a38 (35 of 35 stages on the Mac mini, Linux arm64),
    which has the same tree as 7ea7d998. sha256: linux-arm64 b56d705e…,
    linux-amd64 22bec2f4….
  • Mac mini (Linux arm64), on this commit: make native-solver-test passes,
    with the handshake. TestNativeBatteryThatMayNotCoverTheCarMakesItNoRoom
    passes in arbitrage and passive arbitrage (fleet_milp_rust, the car at
    71 % by slot 7). With master's bundle (847936a) the same test fails:
    "optimizer plan rejected: slot 0 battery discharge makes the import room
    for loadpoint car".
  • Laptop (macOS): make verify passes. The bundle has no macOS worker, so
    native execution is skipped there.

Merging needs Fredrik's yes.

🤖 Generated with Claude Code

The worker keeps a battery that may not cover the car out of the car's
import room (srcfl/energyplan#83 for the library, #84 for the fleet
model that plans every request where a car can charge), the rule Core
enforces since #2023. The binaries are byte-identical to the ones
Energyplan's local CI tested on 55118a38, which has the same tree as
7ea7d998.

A native test plans the field night with the bundled worker and needs
Core to accept the plan. With the bundle it replaces (847936a) Core
rejects the plan in slot 0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Fredrik Ahlgren <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T14:40:13.555175Z b1426c8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg
frahlg merged commit 5e410d8 into master Nov 17, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant