Repository navigation
M5 Router, compat and funnel, part A - #37
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…R-2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 56 minutes. View limit details
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bre77
changed the base branch from
milestone/m4a-cloud-clients
to
milestone/m4b-energy
November 2, 2026 04:29
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.
Stacked on
milestone/m4a-cloud-clients. One commit per issue.Issues
ENG-19
test/router.types.tscompiles throughtsconfig.test.json. Removing one@ts-expect-errormadetscexit 2.await routerreturns the router, andObject.keys(router)shows onlybackends.failover_safe: truefails over, and a plain object rethrown from the last backend is the same value.ENG-30
0andfalseoverlay, andnullkeeps the cloud value.localreturns a copy, and unowned keys never overlay.src/powerwallis not on this base, so the Powerwall classes are stand-ins with the same markers.ENG-20
The rule that must not fail
BluetoothUnconfirmedCommandis checked first, byinstanceofand theunconfirmedfield.test/consumers/esm.mjsproves this with both real copies of the package: a CJS-loaded error thrown into the ESM router. Removing the field check fails 11 tests and that consumer.For review
is_failover_safe(unconfirmed)is false. Python answers true and relies on the router checking first. The router's behaviour is the same, and the predicate is now safe to use alone.backendsis frozen.thenis never routed, so a backend cannot make the router thenable. A subclass that shadows a method with a getter stops it routing.ObservationFunnel.publish, a listener that republishes the same value at a newer time stops the outer loop, so later listeners miss that value. Python does the same.LostAckintest/router.test.tsfills the_sendseam of a realVehicleSignedinstead.test_ble_write_timeout_router.py's GATT cases belong with the Bluetooth layer.🤖 Generated with Claude Code