From 898c7074f95311c9f915257555e853b656746a75 Mon Sep 17 00:00:00 2001 From: Fredrik Ahlgren Date: Sun, 25 Oct 2026 17:43:26 +0100 Subject: [PATCH] contract: history resolutions come from the power history 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 --- contract/registry.yaml | 4 ++-- go/protocol/contract_gen.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contract/registry.yaml b/contract/registry.yaml index a5fff570e..a874b6af9 100644 --- a/contract/registry.yaml +++ b/contract/registry.yaml @@ -376,8 +376,8 @@ cloud_transports: [quic, websocket] # History resolutions backed by what the box actually stores. # --------------------------------------------------------------------------- resolutions: - '5m': { tile_span_ms: 43200000, retention_days: 30, source: energy_ledger } - '1h': { tile_span_ms: 604800000, retention_days: 730, source: hourly_rollup } + '5m': { tile_span_ms: 43200000, retention_days: 30, source: power_history } + '1h': { tile_span_ms: 604800000, retention_days: 730, source: power_history } # --------------------------------------------------------------------------- # What an agent may put in each op it can name (docs/agents.md in srcfl/ftw, diff --git a/go/protocol/contract_gen.go b/go/protocol/contract_gen.go index 701af119c..9df0cd81c 100644 --- a/go/protocol/contract_gen.go +++ b/go/protocol/contract_gen.go @@ -517,9 +517,9 @@ const ( type Resolution string const ( - // ResN1h comes from the hourly_rollup. + // ResN1h comes from the power_history. ResN1h Resolution = "1h" - // ResN5m comes from the energy_ledger. + // ResN5m comes from the power_history. ResN5m Resolution = "5m" )