Repository navigation
Conversation
…for a restart A3 and A4 (#1876, #1878, #1916) and E1 (#1787) merged before the R1-R5 scenarios did, so r3-25 and r4-25 failed every full run since 28 Oct with "passes now: delete its known line". r4 also failed "the day's Home use kept within 1 %" in 1 run of 5. The day may have 10 % unknown time, counted in whole ledger minutes; when the car's unknown reading after the restart crossed a minute boundary, two minutes were marked and the 17 min day reached 12.2 %. r4 now waits 25 min instead of 10 before the hold, as s7 waits 15 min. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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. |
With its known lines gone, r3's floor criteria are gates, and both read Core's order. A battery handed back to the inverter reads as a 0 W order and would pass while it runs on to the inverter's 5 %. The measured SoC must now stay at or above the floor too. Review of #1960. 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.
Problem
siterig/fullhas failed every master commit since 28 Oct onr3-25andr4-25:The fixes for A3 (#1876), A4 (#1878, #1916) and E1 (#1787) merged before the R1–R5 scenarios (#1888), so nobody deleted the known lines. The rig fails a known line once it passes.
The known lines
The recorded runs show that r3 and r4 pass for the right reason. In each of five full runs (c6f757b, f3b48e4, 875240e, a75b76b, be11e36):
Judging the be11e36 recording again with this branch passes both.
r4's Home use check
In 1 run of 5 (f3b48e4), r4 also failed "the day's Home use kept within 1 % across the first kill". After the restart, the day total was null for the rest of the run.
The cause is in the test, not Core. The day may have 10 % unknown time (
maxSourceDayUnknownShare), counted in whole ledger minutes. After the restart, the car's power is unknown for about 10 s. In that run those seconds crossed a minute boundary, so two minutes were marked. That made 86 s unknown plus 42 s unrecorded, 12.2 % of a 1 054 s day. The other four runs marked one minute and stayed at 6.5 %. On a real day, a restart costs at most about 2 minutes of the 2.4 h allowance.r4 now waits 25 min instead of 10 before the battery hold, as s7 already waits 15 min for the same rule. The worst case of about 140 s is then about 7 % of a 1 950 s day. The run takes about 15 min longer.
Evidence
go vet ./test/site/...andgo test ./test/site/...pass.make siterig-judge): be11e36 r3 and r4 pass; f3b48e4 r4 still fails, as expected, because it was recorded with the 10 min wait.r3-25,r4-25with this branch on an M5 laptop, two lanes: both pass. r3 took 11 m 30 s, with 0 discharge samples below the floor, a 0 W swing, and 62 s over the fuse against 67 s allowed. r4 took 39 m 41 s, with Home use 4 161 → 4 351 Wh across the first kill, never null, and 23 s unknown plus 45 s unrecorded, 3.5 % of a 1 953 s day.Review
An independent review (Sonnet) checked:
It found no blocking issue. Changes made from it:
Left as they are:
Test only, no changeset.
🤖 Generated with Claude Code