Repository navigation
fix(zaptec_cloud): a refused stand-down returns false (0.2.2) - #247
Merged
Merged
Conversation
Core reads a driver_default_mode result of true or nil as "stood down" and then unblocks control and stops retrying. zaptec_cloud returned nil even when both the 0 A write and the pause failed, so a charger that kept charging looked held. It now returns true only when the write or the pause held, or when FTW wrote nothing in this run, and retries a refused stand-down once a minute. WRITING-A-DRIVER.md: "report held once you give up" is for a device FTW never steered, not for a charger it commanded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
Codex Review Summary: ✅ CompletedThis 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. |
…efused 0 A write Review of #247: the driver kept the old current as written, so a manual resume would have offered it until Core's next order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
frahlg
added a commit
that referenced
this pull request
Nov 21, 2026
Brings in #247. The generated files regenerate unchanged. Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
zaptec_cloud0.2.2.driver_default_modereturnsfalsewhen the stand-down is refused.trueonly when the 0 A write or the pause (506) held, or when FTW wrote nothing in this run.falsein between, so it still settles.docs/WRITING-A-DRIVER.md. "Report the default as held once you give up" now applies only to a device FTW never steered, such as an absent register or a block another EMS owns. For a device FTW commanded in this run, a refused stand-down returnsfalse.Why
Core reads
true, or nothing, fromdriver_default_modeas "stood down". It then unblocks control and stops retrying (registry.gomarkDefaultConfirmed).zaptec_cloud0.2.1 returned nothing even when both the 0 A write and the pause failed. A charger that kept charging, for example during a stale-meter stand-down, therefore looked held to Core.The review of #246 found the same pattern there, in the "report held after three refusals" rule. #242 (merged) and #244 follow that rule too. Their authors are fixing it in follow-ups with the same rule.
Evidence
false, does not rewrite inside a minute, returnsfalseagain on the next try, and returnstrueonce it holds;trueand writes nothing.trueafter a failure fails the test.make checkpasses (4 997 passed).Refs #240, #243.
🤖 Generated with Claude Code