Lattice 3/4: hot-path control wiring (flag-gated)#4083
Draft
mgazza wants to merge 2 commits into
Draft
Conversation
Expresses a control intent at the execute layer and lets the projection fulfil it (best provider + fallback) via an awaited task whose reference is held and whose failures are logged. Returns False on any problem so the caller does its normal write — control is never lost. Not yet called. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…lag-gated) adjust_charge_rate/discharge_rate/battery_target/reserve hand the intent up via _lattice_expresses (thin delegate to execute.lattice_express_control); when Lattice owns it the bespoke per-inverter write is skipped, else it runs unchanged. Reads inverter_serial so the unit maps to its Lattice node. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
PR 3/4 of the Lattice merge train. Stacked on #2. This is the one that touches the live control path — review closely.
Commits (story):
execute.lattice_express_control(resolve + execute via held task, log failures, return False so the normal write is never lost)adjust_charge_rate/discharge_rate/battery_target/reservehand intent to the site plane via_lattice_expresses; bespoke write skipped only when Lattice owns it, else runs unchangedGated by
lattice_projection_enable(default off) → identical behaviour today. Harness-verified (run_all --test inverter --test execute).🤖 Generated with Claude Code