fms

Evidence

Verify a recorded decision, explain it to a customer and review a reporting month.

The log๐Ÿ”—

Every output of the engine is a record: commands, restores, releases, alarms, refused measurements, state changes and ignored acknowledgements. Each record carries its sequence number, its time, the SHA-256 of the record before it, and its own hash.

$ fms verify evidence.jsonl
โœ“ 1351 records, chain intact
$ fms verify evidence.jsonl --expect-head 9f3aโ€ฆ
โœ— the anchored head is not in this log โ€” records were removed from its end, or it is another log

Verification reports the first broken link. To identify a truncated or rewritten log, retain its final hash independently and pass it to --expect-head.

For voltage-driven reductions, reason.voltage_node names the node selected at decision time. The estimate and its threshold use per unit. The recipient, ceiling and floor refer to active power control in kW. A recorded log can omit the node when it predates this field. Keep that log with its original head. Replaying the source measurements with a newer engine can produce enriched records and a different head. Voltage example

Read reason.needed in the constraint's unit. Thermal relief is in kW. Voltage relief is the required change in per-unit voltage. If all eligible reductions still leave the node below its hard voltage floor, the voltage-shortfall alarm records the remaining gap as missing_pu.

Documentation for one connection๐Ÿ”—

$ fms explain evidence.jsonl H101c
H101c โ€” 3 reductions

  15.01. 17:35โ€“18:20  โ‰ค 6.10 kW  floor 4.20 kW  relieve ยท netzorientiert  on T1 ยท 31 measurements  acknowledged 17:35:00

If a capture ends at the instant of a limit, fms explain can still show the original command, ceiling, floor and constraint location. The log establishes no duration for that limit. To try it, replay the West example with fmsd replay-input west.json --evidence west.jsonl and run fms explain west.jsonl ems-west.

For each reduction it shows:

Nothing about other connections appears.

Review a reporting month๐Ÿ”—

fms sim wallbox-evening --selection downstream --seed 1 --out day
fms publish review --manifest day/reporting-month.json
fms publish review --manifest day/reporting-month.json --json

The CLI accepts evidence logs up to 1 GiB and a manifest and register up to 16 MiB each. Use sources.contributing_commands in the private JSON to trace reductions to original order sequences and their execution dispositions.

The example has 91 registered regulatory units at peak and 43 reduced at the same time. Review also counts the distinct units controlled at any point. Field 4 uses the maximum registered population under the May guide. Duration counts overlapping restrictions once per area. Intensity weights the unavailable share of the area's registered kW by the elapsed interval. Both are rounded to two decimal places after aggregation. BDEW format ยงยง2.4โ€“2.6 ยท BDEW application guide ยงยง2.4โ€“2.6

Prepare the private inputs๐Ÿ”—

Use the generated reporting-month.json and register.json as examples. Each manifest covers one DSO, area and Europe/Berlin calendar month. Keep these inputs and the private review in the DSO workspace.

Version 1 manifest fieldMeaning
schema_version, dso, area, monthVersion 1, DSO identity, assigned NeBe-ID and YYYY-MM. Export validates the NeBe-ID type and check digit.
originsynthetic, shadow or field. Only a qualified field month can reach handoff.
evidence, expected_head, registerPaths relative to the workspace and the expected chain head. Retain the head independently during intake.
register_complete, coverageDSO declaration of complete registration and list of evidence intervals with from and until timestamps. Cover the full local month, including quiet periods.
planDSO's area measure and completion. For example, {"measure":"netzausbau","completion":"H2 2027"} or {"measure":"keine-massnahme","completion":null}. An unresolved plan blocks export.
count_policy, execution_profileUse bdew-2025-05-registered-peak for the population. Name the DSO-approved execution profile for field evidence.
executionsFor each original order overlapping the month, record its evidence sequence, unique private reference and disposition under the profile.

Register one already-grouped regulatory unit per effective interval, with unit, target, area, five-digit postcode, installed_kw, from and until. Keep IDs stable across register changes. Start is inclusive, end exclusive. Store postcodes as strings to preserve leading zeros. Link the commissioned control target to its dated units.

A private execution entry takes one of these forms. The executed period must fit within the original order's effective interval. Retries retain their original order. An unaccounted order blocks handoff.

[
  {"command_seq":12,"reference":"receipt-A","outcome":{"status":"executed","from":"2026-04-01T08:00:00+02:00","until":"2026-04-01T09:00:00+02:00"}},
  {"command_seq":15,"reference":"receipt-B","outcome":{"status":"not-executed"}}
]

Export a reconciled field month๐Ÿ”—

The reporting owner checks the values against an independent authorised month and records the result. Configure FMS_REPORT_APPROVAL_DIR in the deployment environment. Place it outside the input directory tree, restrict writes to the reporting owner, and give the exporter read access. The host account, environment and directory permissions establish reviewer authority. The CLI verifies the supplied record and digest. Partner receipts and the worksheet require independent review.

Save a reviewer record under a plain filename in that directory. Copy review_sha256 from the review of the exact inputs.

{"reviewer":"DSO reporting owner","reference_month_check":"internal worksheet reference","review_sha256":"<64-hex review digest>"}
fms publish export --manifest reporting-month.json --approval april.json --out april.csv

Success creates a new local file and prints its SHA-256. It contains the eight aggregate fields in BDEW order, with decimal commas and quoted multi-postcode values. A complete quiet month produces just the header. Changes to the evidence, register or manifest require a new review. The reporting owner submits the approved aggregate through the DSO's portal process.

Each limit records decided_at from the original engine decision. A retry keeps this time. A development MSB receipt records issue_checked_at once the controller reaches the outbound check. The withheld stage records the local reason and means zero HTTP requests for that order. The receipt record time and callback transaction identify later observations separately.