Skip to content

chore(optimizer): bundle Energyplan 0.8.1 - #2076

Open
frahlg wants to merge 1 commit into
masterfrom
energyplan-0.8.1
Open

frahlg wants to merge 1 commit into
masterfrom
energyplan-0.8.1

Conversation

@frahlg

@frahlg frahlg commented Nov 23, 2026

Copy link
Copy Markdown
Member

Problem and result

On a Raspberry Pi 4, Energyplan 0.8.0 sometimes answered a large site's request a few tens of milliseconds past its time budget (on the home box, a synthetic 5 s request up to 65 ms past, in 2 of 10 runs). Energyplan 0.8.1 (source commit a361b9c8, private pre-release tag v0.8.1-beta.1) stops on its budget on a slow CPU too, with the same plans. Core still validates every plan.

Scope and safety

  • Only the two Linux workers, manifest.json and THIRD-PARTY-NOTICES.txt (the solver library's modification note) change. License, Rust runtime licenses and schemas are byte-identical.
    • linux-arm64 b5501dc5…
    • linux-amd64 e3b6886d…
  • The health checks in energyplan_test.go and energyplan_fault_test.go expect 0.8.1.
  • Protocol v1, site signs, the time budget and docs/energyplan-contract.md are unchanged.
  • Rollback is a revert of this one commit, which gives master's tree with its 0.8.0 bundle exactly; that tree's verifier and native suite pass.
  • Changeset: patch.

Verification

  • Energyplan's full local CI passed 35 of 35 stages on a361b9c8 (Mac mini, Linux arm64); arm64 and amd64 replies are identical on the core gate corpus.
  • Energyplan's release gate on these bytes against the bundled 0.8.0, on its gate corpora and 500 recorded home-box replans: the same plans in every node-limited run, no overrun and no cost change beyond 0.8.0's own run-to-run spread in the timed runs; Core's validator (this repository's ValidatePlan, run on master) accepted every plan; peak memory 88.0 MiB.
  • On a Raspberry Pi 4 home box, against 0.8.0: no overrun on either; the latest reply past its budget fell from 38.3 to 6.6 ms on the synthetic requests and from 19.5 to 4.2 ms on the box's own 500 replans.
  • On this branch, on the Mac mini (Linux arm64): python3 optimizer/native/verify.py --host-binary passed; go test -count=5 ./internal/mpc ./internal/energyforecast ./cmd/ftw -run 'Native|RustForecastHost' passed; make native-solver-test and make verify passed.
  • Not run: the native-release and beta workflows (the beta is cut from the maintainer's machine).

Checklist

  • The change follows VISION.md and one selected scope.
  • I checked overlapping PRs and coordinated shared files/contracts.
  • Relevant checks cover the changed behaviour and failure paths.
  • A human reviewed changed UI in a browser, or no UI changed.
  • A Changeset is included, or the change is exempt.
  • Every commit has a DCO sign-off.

🤖 Generated with Claude Code

Energyplan 0.8.1 (a361b9c8) stops on its time budget on a slow CPU too:
on a Raspberry Pi 4 home box, a large synthetic 5 s request answered up
to 65 ms past its budget on 0.8.0 in 2 of 10 runs, and in 0 of 10 on
0.8.1 (at most 12 ms past), with the same plans. Protocol v1, site signs
and the time budget are unchanged. Only the two Linux workers,
manifest.json and the third-party notices change.

The health checks expect 0.8.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T05:20:43.266432Z 3aff41d 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.

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