flexibility 0.4.0

Grid flexibility as exact, replayable arithmetic: limits, baselines, UFTP-exact settlement, and UFTP, EEBUS, S2, OpenADR, CSIP-AUS, IEC 104, CLS.EEDI converters.
Documentation
# Changelog

All notable changes are recorded here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the crate follows
[Semantic Versioning](https://semver.org/).

## [0.4.0] - 2026-12-01

### Added

- `eebus::write_open`: an LPC or LPP write without a duration, which the device holds until it
  is released or replaced.

### Changed

- **Breaking:** `eebus::limit` and `eebus::failsafe` take a `Rounding`. `TowardZero` reads an
  acknowledged 4 200.5 W as a 4 200 W cap; `Exact` refuses it, as before.
- **Breaking:** `s2-kit` 0.8 (re-exported as `s2::wire`) and `cls-eedi` 0.3 (as `cls::wire`).

## [0.3.0] - 2026-11-30

### Added

- `EnergyEnvelope::steady_headroom(&plan, window)`: the range of one constant deviation over a
  window that keeps a plan inside its power and level bounds, level bounds after the window
  included. A pool deviation split in proportion to it fits every device.
- `MisfitKind`: `Outside`, `Unrequested` and `NotOffered`, for an ISP an offer leaves out where
  the band excludes 0 W (UFTP 3.1 § 3.8.3 allows partial offers).
- `examples/offer_from_a_pool.rs`.

### Changed

- **Breaking:** `Misfit` is `{ label, kind, source }`. `DeviationEnvelope::check` takes a
  `Series<Deviation>` or a `Series<Option<Deviation>>`.
- **Breaking:** `uftp::profile` returns `Series<Option<Deviation>>`, `None` in an ISP between
  named ones; it read as 0 W offered before. `uftp::ordered` is unchanged (0 W there).
- **Breaking:** `iec60870` 0.3 (re-exported as `iec104::wire`).
- `Aggregate::Exact` documents that stored energy is checked only as level bounds.

## [0.2.0] - 2026-11-29

### Changed

- **Breaking:** `openadr` 0.11 (re-exported as `openadr::wire`). Decimals on the wire are exact or
  refused, and durations are written as `PT1H`, not `PT3600S`.

## [0.1.2] - 2026-11-29

### Added

- `openadr::event`: consumption and feed-in caps as the OpenADR 3 event a VTN publishes, in exact
  kW, which `openadr::limits` reads back unchanged, through JSON too.

## [0.1.1] - 2026-11-29

### Changed

- The `canon` module docs and `scripts/digest.sh` describe the digest on its own terms, without
  pointing to an outside specification.

## [0.1.0] - 2026-11-29

The first release.

### Added

- **Units.** `Power` (whole watts, consumption positive), `Deviation` and `Energy`
  (watt-seconds), with exact literals (`kw!`, `w!`, `mw!`, `kwh!`, …), text that round-trips, and
  `Rounding` (`Exact`, `HalfAwayFromZero`, `TowardZero`) wherever a division can leave a
  remainder.
- **Time.** `Grid` of ISPs in a time zone (92, 96 or 100 quarter hours on a Central European day),
  `Window` from local times that refuses skipped and repeated ones, `IspLabel`, `Series`.
- **Shapes.** `Limit` (caps, floors and bands), `Envelope` with per-bound provenance, `explain` and
  `headroom`, `Guarantee` (the § 14a EnWG minimum), `Schedule`, `DeviationEnvelope` for
  flexibility requests, `EnergyEnvelope` and `Level` for storage, and `pool` to aggregate devices
  and check a split.
- **Baselines.** `dprognosis@1`, `schedule@1`, `mbma@1` and `xofy@1` (with additive or ratio
  adjustment), each with required parameters and a method card; `accuracy` scores a method.
- **Settlement.** `settle`, exactly as UFTP 3.1 § 2.6, at a recorded `MeasurementPoint`; a
  canonical text (RFC 8785) and `sha256:` digest; `Settlement::from_canonical` and `diff` to
  compare with the other party; `Settlement::rebound`; `scripts/digest.sh` to recompute a digest
  outside Rust.
- **Converters**, each a feature: `uftp` (UFTP 3.1), `eebus` (LPC and LPP), `metering` (the § 14a
  minimum and Lastgang energy), `s2` (PEBC and PPBC), `openadr` (OpenADR 3 capacity limits and
  usage), `csip` (CSIP-AUS operating envelopes), `iec104` (IEC 60870-5-104 set points) and `cls`
  (CLS.EEDI control boxes).
- `Error` with a `hint()` for every refusal. No clock, I/O or floating-point arithmetic. MSRV 1.88
  for every feature.

[0.4.0]: https://github.com/hupe1980/flexibility/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/hupe1980/flexibility/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/hupe1980/flexibility/compare/v0.1.2...v0.2.0
[0.1.2]: https://github.com/hupe1980/flexibility/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/hupe1980/flexibility/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/hupe1980/flexibility/releases/tag/v0.1.0