Repository navigation
feat(contract): the grid's phase currents and the main fuse as extra fields - #86
Merged
Merged
Conversation
…fields Field ids 11 to 13 carry the site meter's current on L1, L2 and L3 in tenths of an ampere, signed by the site convention, and 14 the main fuse per phase as their scale. They sit in a new extra_fields block after the frozen set: depth for a node's own view, not the core view. A test keeps their ids and names apart from the frozen set and above it. 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. |
This was referenced Oct 14, 2026
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ftw-webapp | 758470d | Commit Preview URL Branch Preview URL |
Oct 14 2026, 04:33 PM |
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.
WP16 of the iPhone polish plan, step 1 of 3. On 14 October 2026 Fredrik asked to see the grid's phases, L1, L2 and L3, live against the main fuse. The box reads them (
/api/statushasphase_ampsandphase_powers), but lane 0 and FTW Cloud's live body carry no phase.contract/registry.yamlgains a block after the frozen set:grid_l1_dagrid_l2_dagrid_l3_dagrid_fuse_daA new block, not
frozen_fields. The frozen set is the core view that an app of any age draws from. The phases are depth for one node's view. They travel the same way, and an id never changes meaning, but a box may stop sending one and an app draws Now without them. Ids above 10 also give way first: lane 0 drops the highest id when a delta does not fit its bucket.Sign. Tenths of an ampere, signed by the site convention: positive while the phase draws from the grid. Many meters give only the size of the current. The box then takes the sign from the power on the same phase, which the driver has already signed. A meter that gives neither sends positive values both ways, so a positive current alone does not prove import. The registry says so.
Fuse. The main fuse per phase, from the box's config, sent with the phases as their scale.
This app uses none of the names yet.
tests/registry-contract.test.tsgains a check that extra field ids and names stay apart from the frozen set and above it.docs/protocol.mdgets one paragraph.Contract-pair: srcfl/ftw@feat/grid-phases
Paired pull requests. All three carry the same file, byte for byte.
Contract.swiftgains the names, and the grid node view draws them.Merge this one and the srcfl/ftw one together: while both are open, each CI compares against the other's branch. The app's pull request can follow at any time.
Tests
🤖 Generated with Claude Code