Skip to content

Keep source-based household history available in detail queries - #1742

Merged
frahlg merged 2 commits into
masterfrom
codex/history-source-asset-20261018
Oct 18, 2026
Merged

frahlg merged 2 commits into
masterfrom
codex/history-source-asset-20261018

Conversation

@frahlg

@frahlg frahlg commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Household Load derived from source intervals must remain available through the existing site/observed-consumer detail API. Keep its read-only asset metadata and route detail and site queries through the same source balance. This adds no instantaneous consumer energy.

History limits now count stored intervals rather than empty time slots. Read source rows in time order with bounded result memory, and filter overridden consumer intervals after aggregation but before ranking legacy results. Merge both methods before applying the final bucket limit. Both readers use the same whole stored intervals, including arbitrary request times, requested widths such as seven minutes, and coarser retained history. Each result reports its actual start and width.

Validation: discovery and limit regressions fail against the previous source and pass after the fix; alignment and retention regressions fail before their correction and pass after it. Targeted state/Core tests pass with the race detector. Full make verify passes on e52172d, whose CI finished with 18 successful checks and four intended skips. No UI, control, driver or deadline changes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 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-18T19:17:11.754608Z 7858d8d 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant