MAINT-28 fix-forward round 3: the cap is the guard's largest claim of the period, 0 W for a pack the guard does not place on
checks / unit (pull_request) Successful in 28m17s
infra-pin / fresh (pull_request) Successful in 1s

test_maint28 quarter bound back to aim + 1 W (now 5925 W; the guard alone landed
5960.1 W): the pack's limit is the largest floor the guard claimed in the 15-minute
period. A pack in peak_guard.held (the guard places its claim on the others) gets
0 W. test_safety84 n2_charge_banked re-pinned again, its banked quarters asserted
under the aim. New test: guard claims on the other pack only.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
glenn schrooyen
2026-11-13 21:21:14 +01:00
co-authored by Claude
parent 776b84ca20
commit fb4a449591
6 changed files with 40 additions and 15 deletions
+10 -2
View File
@@ -487,7 +487,9 @@ print("\n8. the N=1 and N=2 digests")
# (DECISIONS/MAINT-28-hold-the-pause-in-a-peak.md). MAINT-28 fix-forward
# re-pinned it again: while the pause holds A gives only the guard's claim, so
# rows 288-479 (t = 1550 s on, 192 of 480) differ: a "peak hold" limit claim on
# A, and A's share 796 W instead of 2500 W. The other five are equal.
# A, and A's share capped at the guard's claim instead of 2500 W. Its banked
# quarters stay under the aim 3950 W (3349 and 3016 W; f3f9483 3349 and 2527 W),
# graded below. The other five are equal.
PINNED = {
"n1_charge":
"00f0a16b3ac1bd2830e9e0aaac8923fd9d1736c2bc6c543669bdd35b2fb542e9",
@@ -500,8 +502,14 @@ PINNED = {
"n2_charge_dear":
"aa2bbc677a8e2274b25ba1170de1b1635e08a3bd93105e2a38a9bb1575b5b6db",
"n2_charge_banked":
"cdcac3065224f80f62a7b643f6d1226614a19679511625c034659c3df0d265d9",
"6b0af4837a71120d50f29ed85058cb676fe6f7a822ccf0d6c566e58217ebc109",
}
_nb_rows, _nb = s84.run(**s84.SCENARIOS["n2_charge_banked"])
print(f" n2_charge_banked banked quarters {[round(v, 1) for v in banked(_nb)]}"
f" W (aim 3950)")
check("...and in the re-pinned n2_charge_banked every banked quarter is at or "
"under the aim 3950 W",
len(banked(_nb)) >= 2 and all(v <= 3950.0 + 1.0 for v in banked(_nb)))
_now = s84.digests()
for k in PINNED:
print(f" {k} {'same' if _now[k] == PINNED[k] else 'DIFFERS'} "