Code review 2026-12-02 WP3: Site runtime and data path correctness #154
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From the 2026-12-02 full code review (commits
28b6651a,f7e4f5b4: decisions accepted 2026-12-03).docs/plans/2026-12-02-full-code-review.mddocs/plans/2026-12-02-full-code-review-remediation.md→ WP3TagValueReceived. Decided: drop a seed for any tag that has already delivered a live value in the current subscribe generation. Comparing timestamps was rejected: it depends on device and server clocks, and on the configured timestamp mode (see DCL-7).Servertimestamp mode.ConnectionQualityChanged(Good)when it re-enters Connected. The Instance Actor's Good branch only resets the Lever-1 subscribe backoff. It must not stamp bound attributes Good with their last-known values before the device re-reports.Notify.Statuschecks the site-local store first. Remove the hard-coded 30 s routed-call cap (use the configured timeout).Fixed on
main(pushed,922021c4). Plan:docs/plans/2026-12-02-full-code-review-remediation.md(see its Outcome section).All 11 tasks done. No migrations and no wire change.
ConnectionQualityChanged(Good)only resets the subscribe backoff.Follow-up: immediate delivery (S&F enqueue,
CachedCall,CachedWrite) no longer overtakes buffered rows of the same lane (8267ab8f).Rig: a site NodeA restart plus failover drill PASS. Reconnect-with-seed was covered by the actor tests; it was not separately drilled live.
Commits:
455f1ff2test(site-runtime): starvation test asserts a timed-out eval resolves as unknown, not false (SRT-2, WP3 task 3.7)d639bd67fix(site-runtime): static write refreshes quality/timestamp; redeploy reset gates native rehydration and the first flush (SRT-11, SRT-12, WP3 task 3.10)b0c40deefix(site-runtime): script Asks honour the run deadline, Notify.Status checks the buffer first, routed calls wait for the script's own timeout (SRT-8, SRT-9, SRT-13, WP3 task 3.9)bc7fae26fix(site-runtime): failed trigger evaluation keeps state, RateOfChange clears when flat, WhileTrue re-fires after seed adoption (SRT-2, SRT-3, SRT-4, WP3 task 3.7)a730bc05fix(site-runtime): watchdog follows the run across awaits; only the run's own deadline is a timeout (SRT-1, SRT-10, WP3 task 3.6)c000ee32fix(dcl): separator-aware alarm routing, typed reply for browse/search while disconnected, server-timestamp fallback (DCL-5, DCL-6, DCL-7, WP3 task 3.4)d52aff1bfix(dcl): bind the reconnect re-subscribe loop to its session; shared supervisory advise ignores the first caller's token (DCL-4, DCL-9, WP3 task 3.3)2e8bede3fix(dcl): retry failed alarm re-subscribes, check alarm item create status, retry connection-level re-subscribe rows (DCL-2, DCL-3, DCL-8, WP3 task 3.2)6adfc9f4fix(dcl): seeds never overwrite a newer live value; Good on reconnect resets only the subscribe backoff (DCL-1, SRT-6, WP3 tasks 3.1 + 3.8)1aa8710efix(sf): per-lane due-ness keeps per-target FIFO; post-delivery storage error is not a delivery failure (SF-1, SF-2, WP3 task 3.5)405ca636fix(commons): codec handles non-finite list floats, ISO-8601 UTC scalar DateTime, JSON null converts to null (CMN-3, CMN-4, CMN-10, WP3 task 3.11)Deploying to QA and DEV is tracked in #160. Closing.