# HelioVector / Power Decision Lab
A self-contained, fictional one-day energy purchase comparison and a separate capacity screen. No customer data or market quotes. All currency is USD. No third-party packages or credentials needed.

Unzip all files into one directory. Run locally with Python 3.9+:
```sh
python replay.py --case base --hours
python replay.py --case basis --strike 48 --esa 80
python replay.py --case gap
python replay.py --capacity 30 3 1.35 20
```

raw.csv contains four series at hourly UTC interval start. Meter and generation values are interval energy (MWh, except one kWh row). load_zone and gen_node are USD/MWh. Replay validates units, revisions and conflicting duplicates; hourly.sql keeps the latest revision and left-joins a 24-hour UTC spine. Record 97 repeats the 04:00 load, record 98 is an older noon generation reading, and the 05:00 load is 18,000 kWh. A negative price is a valid observation.

Base: as supplied. Weaker node: subtract $15/MWh from every generator-node price; physical output and site prices stay fixed. Missing price: remove the 13:00 node observation before joining. Positive generation without a node price blocks the full-day virtual PPA and capture price; it does not block the retail bill or ESA. No missing price is replaced with zero.

Utility-only = sum(site load × (load-zone price + $12/MWh modeled delivery)). Virtual power purchase agreement (PPA) = same utility bill less the buyer receipt, sum(generation × (node price − strike)). A negative receipt is a payment by the buyer. The power plant does not physically supply this meter under the financial PPA. Illustrative energy services agreement (ESA) = all metered load × a bundled rate + $300/day service fee, replacing the modeled bill. This is one assumed contract, not a general ESA definition. No network demand charges, taxes, actual pass-throughs, losses, escalation, or storage dispatch are modeled.

Physical profile overlap = sum(min(load, generation)) / sum(load). For this single-grid example the resource is assumed eligible and its attributes dedicated to the load. No banking surplus across hours. No residual grid mix, certificates, storage or other sources are modeled; this is not a formal carbon-free energy score or emissions claim.

Capacity is a separate design-hour screen: max(0, firm facility MW − facility-side reserve MW) / design-hour facility-to-IT ratio. The design ratio includes cooling and auxiliary draw. It is not measured annual PUE. A single interval does not establish uptime, redundancy or contractual capacity. The CLI returns IT MW, overhead MW and margin over the requested IT load.
