Skip to content

ems 0.11.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 02:54
· 4 commits to main since this release

Breaking changes

  • ems-service is no longer published. It is the daemon shell, and only the EMS daemons use it. Versions up to 0.10.0 stay on crates.io.
  • ems-events is now the catalogue only. It has no dependencies with default features, is no_std and declares MSRV 1.85. The CloudEvents envelope and Standard Webhooks signing moved to ems_service::{envelope, webhook}. There is no re-export.
  • Catalogue types are ems_events::EventType values that only the catalogue can construct. Each one carries its dataschema URI, data classification and GDPR category. is_known is gone; use str::parse::<EventType>().
  • The catalogue lists the 12 types EMS sends. The 18 types that had no sender are removed. cargo xtask check-events now fails on a catalogued type with no sender outside integration tests.
  • Every event now carries partitionkey (the site), dataclassification, and for personal data dataregulation: GDPR and datacategory. These are taken from the catalogue. dataschema is required, and time is UTC. Receivers refuse a missing or unrecognised value, a different schema and a missing partition key. obsd also refuses a partition key that is not the signing site's.
  • schemas/events/ publishes a closed schema for all 12 types, including the fleet reports de.ems.site.day.reported and de.ems.site.departure.rehearsed. platform.toml lists them all.

Added

  • Every MCP tool declares its autonomy level in _meta["x-mcp"].level (the stack's AUT-1), with a readOnlyHint that agrees. All 20 tools across agentd, fleetd, forecastd, histd, obsd and tariffd are read, and there is no act level. A daemon refuses to mount its MCP surface when a tool declares no level or a contradicting hint. The conformance probe checks the level of every listed tool.

Security

  • curve25519-dalek 5.1.0 (RUSTSEC-2026-0620, the AVX-512 scalar multiplication backend).

Changed

  • AGENTS.md and SECURITY.md at the repository root: how to build and test, the stack rules an agent follows, what it must never touch, and how to report a vulnerability.
  • opcua-kit and meterstore are required by caret rather than exact version.
  • eebus 0.16. A § 14a or § 9 limit reaches the guard as the exact decimal the Energy Guard wrote: 4200.5 W stays 4200.5 W, with no f64 rounding on the way in. Logged limit values print exactly. Partial SPINE notifications are merged onto the driver's own snapshot as before. Disconnect handling is unchanged, because the Controllable System's failsafe runs off the stopped heartbeat.
  • s2-kit 0.7. The S2 session, descriptions and instructions are unchanged. ems already reads a 3_PHASE_SYMMETRIC value as the total over three phases, which is how s2-kit now defines it (S2 erratum E32). ems uses neither Explanation::electric_power nor Steps, whose meaning changed.
  • metering 0.29, meterstore 0.21 and ocpp-kit 0.9. metering and meterstore moved from time to jiff. ems still speaks time, and ems_core::calendar is the single place where instants and dates convert between the two. The conversion is exact to the nanosecond.
  • The § 14a minimum power the guard grants is now whole watts rounded up, because it is a guaranteed minimum [BK6-22-300 A1 4.5]: 0.4 × 20.001 kW is 8 000.4 W and grants 8 001 W, never 8 000.
  • Energy-sharing credits use metering's exact intermediates for each quarter hour and its window, with the quantity rounding (each nominal share cut to six decimals, then capped at consumption).
  • OCPP instants reach the departure evidence exactly. They were truncated to whole seconds before.
  • The optional industrial OpenADR simulation uses openadr 0.11, required by caret. Report values are exact decimals: a fractional kWh reading such as 285.001 reads back exactly, with no arbitrary-precision JSON needed. The simulation uses openadr::model::Decimal and no longer depends on rust_decimal directly. Its receipts are unchanged.