Skip to content

contract: history resolutions come from the power history - #1856

Merged
frahlg merged 1 commit into
masterfrom
contract-history-power-source
Oct 25, 2026
Merged

frahlg merged 1 commit into
masterfrom
contract-history-power-source

Conversation

@frahlg

@frahlg frahlg commented Oct 25, 2026

Copy link
Copy Markdown
Member

Why

#1854 (merged) serves the app's history tiles for grid, PV and battery from the measured power rows that /api/history draws, at 5m and 1h alike. Load stays the energy ledger's consumer use. The registry still said source: energy_ledger for 5m and source: hourly_rollup for 1h.

What changes

resolutions in registry.yaml: source: power_history for both. No geometry changes: same tile spans, same retention. The generated go/protocol/contract_gen.go comment follows (ResN5m and ResN1h "come from the power_history").

Paired with srcfl/ftw-webapp, where the registry is edited, and srcfl/ftw-app. Merge the three together.

Contract-pair: srcfl/ftw-webapp@fe1db8c60b148da1cb358155e16caa152ac69c2a

Checks

  • go generate in go/internal/appproto and go test ./internal/appproto/... pass.

🤖 Generated with Claude Code

Copy of srcfl/ftw-webapp's registry change, with contract_gen.go
regenerated. #1854 serves grid, PV and battery tiles from the measured
power rows at 5m and 1h alike; load stays the ledger's consumer use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T16:45:27.152787Z 898c707 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@frahlg frahlg added the no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping) label Oct 25, 2026
@frahlg
frahlg merged commit 67d65c6 into master Oct 25, 2026
22 of 26 checks passed
@frahlg
frahlg deleted the contract-history-power-source branch November 11, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant