Skip to content

fix(control): ship SOC ceilings and Charge restart recovery - #1870

Merged
frahlg merged 3 commits into
masterfrom
codex/battery-safety-beta
Oct 27, 2026
Merged

frahlg merged 3 commits into
masterfrom
codex/battery-safety-beta

Conversation

@frahlg

@frahlg frahlg commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Battery charging must stop at the owner's configured SOC maximum, and a manual Charge override must end when Core restarts.

This brings the approved fixes from #1867 and #1869 onto master for the requested beta. Both were merged into fix/fuse-one-function; #1789 remains a separate draft. The SOC ceiling is adapted to master's existing safety pipeline and wired at both startup and config reload. Its fuse-relief test uses a fresh meter reading so the older smoothed-meter path sees the intended overage.

Behavior:

  • Each battery's soc_max overrides the planner's ceiling. All EMS modes, temporary holds and self-tuning honor it, with a one percentage point resume gap.
  • Restart replaces saved manual Charge with automatic planning using the saved export permission, or Idle when planning is disabled. Unknown export consent stays unknown.
  • Retained MQTT Charge cannot replay the override on reconnect. Fresh Charge requests still work.

Validation: the SOC, restart, MQTT and fresh-start planning regression tests pass on this master-based branch. Full make verify passed on 4742c9e (Go suites, vet, build, protocol boundaries and packaging checks). Docker context and Avahi runtime checks skipped because Docker is unavailable. The first local pass used the pre-adaptation fuse test fixture and failed; the corrected fixture and full final pass are clean. No site deployment or hardware test.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T05:24:40.723251Z 4742c9e 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 34f425e into master Oct 27, 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