feat/powerradar
safeviewing older commit9a73b79 · incrementalPR #327reviewed 2026-07-22 17:34 UTC0H · 0M · 0L · 3IThe branch
- Purpose
- Adds an automatic API-based PowerRadar (Centrica/Panoramic Power) metrics integration replacing the manual-CSV path with native 5/15/60-min collection via the /eigw energy-insights-gateway API.
- Goal
- A production-ready headless pull worker — headless OAuth password-grant auth (no MFA, no browser), chart-data contract locked, live-proven end-to-end on Energía Real devices.
- Sub-goals
- SG-1: Auth + transport engine + live probe (OAuth broker /oauth/token, browser-header WAF mitigation, retention ≥12mo verified)
- SG-2: Manifest + catalog + provider enum + ARN REGISTRY registration
- SG-3: Pure chart-to-batu translation (demand←consumption, solar_generation←generation, W passthrough, clip/dedupe/null-skip) + 13 tests
- SG-4: Metrics handler (§9 one-fetch-per-grain, resilient skips, error mapping) + 18 tests
- SG-5: CDK stack + paths + main + coordinator invoke-grant
- SG-6: Live worker e2e (191 demand points at 15m, 71 at 1h; solar correctly skipped on load-only device)
- SG-7: Framework fold-back (integrations CLAUDE.md)
The changes (whole branch)
- What
- This incremental commit only bumps aws-cdk CLI from ^2.213.0 (resolved 2.1034.0) to ^2.1132.0 (resolved 2.1132.0) to match aws-cdk-lib 2.260.0 merged to main, plus the corresponding pnpm-lock.yaml update.
- Why
- aws-cdk CLI and aws-cdk-lib must stay compatible; main bumped aws-cdk-lib to 2.260.0 (#329) and this catch-up commit aligns the CLI on this branch.
- Areas
- services/metrics/integrations/powerradar-api+1330−0infra/cdk+196−4packages/integration-manifests+109−0packages/database+17−1domains/core+2−1services/metrics/integrations/CLAUDE.md+51−0
- Blast
- 26 files, +1705/−6 across worker package, CDK infra, manifests, database seeds, core schema. No existing integrations or shared handlers touched.
WAF/bot-detection on /eigw (browser headers + token caching mitigates) Post-merge: seed ARNs + provision ER assets + SFN run required before live collection
➖ci· CI status not accessible via personal token➖coderabbit· No .coderabbit.yaml in repo
Findings · 3
security2
info
Supply-chain: aws-cdk CLI version jump (2.1034 → 2.1132)
pnpm-lock.yaml
The pinned version jumps ~100 minor releases. Integrity hash locked (sha512) — cryptographic verification at install time. Official AWS package with strong provenance. Risk is low.
info
fsevents optional dependency removed from snapshot
pnpm-lock.yaml
fsevents@2.3.2 is macOS-only. Removal from the aws-cdk@2.1132.0 snapshot on Linux CI is expected and correct. No security implication.
conventions1
info
CDK CLI specifier updated to align with aws-cdk-lib 2.260
infra/cdk/package.json
Bumping aws-cdk CLI from ^2.213.0 to ^2.1132.0 keeps CLI and lib in sync per project convention. ^ specifier is standard for CDK CLI.
History · 15 commits
- f34e4ceneeds attentionincremental0H · 1M · 3L2026-07-23 00:32
- 1bc8aedneeds attentionincremental0H · 2M · 3L2026-07-22 21:34
- 31e63bbneeds attentionincremental0H · 2M · 5L2026-07-22 20:53
- 482cb88safeincremental0H · 0M · 1L2026-07-22 17:56
- 9a73b79safeincremental0H · 0M · 0L2026-07-22 17:34current
- 87f8298needs attentionincremental0H · 1M · 3L2026-07-22 16:59
- 1e80096safeincremental0H · 0M · 1L2026-07-22 16:42
- 6ed65b4safeincremental0H · 1M · 3L2026-07-22 00:00
- 74a1131needs attentionfull0H · 7M · 12L2026-07-21 19:06
- 563252bneeds attentionincremental4H · 9M · 8L2026-07-21 18:32
- beced58needs attentionincremental0H · 3M · 3L2026-07-21 01:13
- 7fa8684needs attentionincremental4H · 9M · 7L2026-07-20 22:56
- 230784fneeds attentionfull2H · 11M · 14L2026-07-10 00:15
- b876b54needs attentionincremental2H · 2M · 5L2026-07-08 04:44
- ec4847fneeds attentionfull2H · 11M · 8L2026-07-08 03:32