Operator workspace
Explore feeder topology, registered equipment and replay configuration, then trace incidents to their evidence.
Start with a bundled recording or open a private feeder. Import a feeder ยท Commission and replay ยท Observe a live station ยท Rehearse a protocol exchange
Inspect a measurement trend๐
fmsd serve --demo feeder-trends --port 0
Open View active power trend on the network overview. In Measurement channel, choose H1 ยท Premises ยท premises-meter. At 11:06 UTC the meter recorded zero. At 11:14 it exported 11 kW, shown as โ11 kW. The observation was withdrawn at 11:18 and the next reading arrived from H1 at 11:26. Select T1 ยท Grid asset ยท station-meter to inspect what the transformer continued to report over that interval.

Select a point on the plot or use the arrow keys on Inspect event. Exact readings gives the signed kW, event time, admission time and source record. The desk retains the latest 120 events per channel and shows the retained count. A quality gap has no numeric value. Power limits and acknowledgements appear in the incident evidence.
For the portable input use fmsd example feeder-trends --out riverside.json. The installed demo and this export replay the same measurements. The partial-delivery demo also has two recorded transformer samples. A command-only log can explain decisions but has no source measurements to plot. Generation and storage controllability checks
Review a plantโs controllability๐
Choose Plant reviews on a bundled feeder desk. In the plant directory, find Linden solar park by PV-17 or Hafen battery by BESS-04. To start directly at the solar test run fmsd serve --demo plant-response --port 0. Find the requested injection, the meter at the plant boundary and the actual-value query. Choose Missing readings under Compare demo cases to see which parts of the review can be established from an acknowledgement and a recovery reading. Single-plant walkthrough
Inspect a recorded partial delivery๐
From the checkout, run cargo run --locked --release -p fmsd -- serve --demo partial-delivery --port 0. With the service installed, run this from any directory.
fmsd serve --demo partial-delivery --port 0
Open the investigation URL printed by the service, or choose Investigate partial delivery on the network overview. In Feeder response, open each targetโs original reply. The development MSB returned unable for the 7.56 kW ceiling for ems-1 and reported success for the 4.2 kW ceiling for ems-2. The next synthetic T1 meter sample reads 30.2 kW, down from 35 kW but still above its 26 kW rating. The initial HTTP 202 records technical acceptance. Each later callback reports the outcome for one order. The meter sample shows the simulated feeder response. Control Measures v1 wire contract

Open the second EMS incident, then choose Inspect premises H2 under Command evidence. The registered connection opens with the EMS assignment and SR-ID C1137355949 visible. In Configuration, check the rule set and simultaneous switching limit for this run. The service verifies the bundled evidence and feeder model before opening the recording. To send fresh protocol messages, start the two-process exercise. Run the controller and MSB
Explore the channel outage๐
Open the synthetic operator workspace with a locally built service. Build from source
fmsd serve --demo
The workspace opens on Network overview. Each outgoing line shows the number of line sections and registered premises along its entire branch. The small whole-feeder schematic highlights the supply path to the selected node. Use Find a line or node to jump directly to an ID, or open Supply path to move to any upstream node. View premises at this node opens the local register. Line ratings describe the model. The incident chart counts recorded openings across the snapshot.
| View | What you can do |
|---|---|
| Master data | Search for a premises, node, device, control target or SR-ID. Expand a premises to inspect its connection rating, installed equipment and direct or EMS assignments. |
| Configuration | Inspect the topology and assignment revisions, rule set, loading trigger and timing settings used for this replay. To review a change, edit a copy of the export, run fmsd commission, then open the revised bundle. |
| Incidents | Trace a recorded condition or power limit to its decision, outcome and evidence. |
The demo and verified feeder bundles supply the network model. With an evidence-only log, the desk shows recorded incidents and explains how to load the missing model.
For a voltage-limited feeder, open the included West example. The recorded decision identifies the node whose estimated voltage crossed the trigger and the resource whose active power FMS proposed to limit. Trace the voltage decision

Open Incidents. The bundled synthetic replay stops during a channel outage. Its timestamps belong to the replay. Search for H405c and select its confirmed power limit. The requested limit and protected floor are both 10.5 kW. Open the original evidence at record #80 to see the acknowledgement. Copy link opens that record directly for another authorised reader. On a narrow screen, Incident register returns to your filtered list. Use the browser print command for handover.

Choose a station and feeder๐
Bookmark /stations on a desk configured with --stations FILE. Search by station, feeder name or identifier. Each result shows the station, feeder ID and destination. Select the feeder to open its network overview. The destination checks the selected ID against its loaded replay before showing evidence. Browser Back restores the search and page.

To try two stations with the installed service, run these commands in one terminal from an empty directory. The example uses two different credentials for the local rehearsal.
fmsd example stations --out stations.json
FMS_REVIEW_TOKEN=north-demo fmsd serve --demo --feeder N-01 --stations stations.json --port 8787
Start the second desk in another terminal.
FMS_REVIEW_TOKEN=south-demo fmsd serve --demo --feeder S-01 --port 8788
Open http://127.0.0.1:8787/stations and sign in as operator with password north-demo. Both stations have an Outgoing 1. Search for South, open S-01, and use south-demo at the destination. Its heading reads S-01. To rehearse a changed assignment, restart the second command with --feeder S-02 and reopen S-01 from the directory.
For a deployment, run a directory-aware version of FMS on every target. Replace the sample labels, origins and credentials with your own. Assign a directory-wide unique feeder ID matching the input bundleโs feeder, or the --feeder value for an evidence log. Use / for the hosting desk and a separate HTTPS origin for each remote desk. HTTP is available on numeric loopback for development. Restart the host after editing the file. Everyone who can read its replay can read the whole directory.
The version 1 manifest accepts up to 256 stations and 1,024 feeders within 512 KiB. Search shows 25 feeders per page in manifest order. Use Station results page to jump to a particular range. Browser Back restores the search, page and focused feeder row after opening a destination. These are input and display limits. Reachability and live grid state require separate sources. REST clients can read GET /api/v1/stations. MCP clients can call list_stations on the same authenticated host.
Explore a larger topology๐
The built-in demo has four outgoing branches with 8, 8, 7 and 9 line sections. Search for B4N09 and press Enter to jump to the end of the longest branch. The import boundary is one transformer, up to 256 radial line sections and 128 registered premises. A network with parallel supply paths, switching states or multiple stations needs a richer electrical model.
From a checkout, generate the SimBench urban LV benchmark to explore a different shape:
just venv
just simbench-example urban.json
export FMS_REVIEW_TOKEN="$(openssl rand -hex 32)"
cargo run --release -p fmsd -- serve --bundle urban.json
The example reads the public 1-LV-urban6--0-no_sw network locally. Its LV tree has 7 outgoing lines and 57 sections. It places one illustrative site at each of the 53 occupied load buses. Site ratings are examples. A single evaluation tick carries no telemetry. The topology and line parameters come from SimBench. SimBench dataset and documentation ยท Benchmark methodology

Integrate a control room or AI client๐
Use GET /api/v1/feeder or MCP get_feeder for the snapshot topology, revisions and rules. Search inventory with GET /api/v1/premises or MCP list_premises. Use q for text search, node to filter by network node or premises for an exact, case-sensitive premises ID. Each page contains up to 25 results.
Read GET /api/v1/incidents, then GET /api/v1/incidents/{id}. Follow next_offset using ?offset=N for up to 25 items per page. Add q=H405c to search connections, conditions or outcomes across the snapshot before pagination. Download /openapi.json for the contract. A Streamable HTTP MCP client can connect to /mcp and call list_incidents or get_incident with the same arguments. Authenticate either client with Authorization: Bearer $FMS_REVIEW_TOKEN. All readers of one instance share one feeder scope. To share links remotely, terminate TLS at your DSO reverse proxy, set --public-origin https://fms.example.org and preserve that Host header.
The opening record hash identifies an incident across a replay and its extensions. A release, idle transition or replacement command ends a power-limit interval. Channel recovery, restored data and a cleared shortfall close their respective conditions. A rejected observation or notice is a point in time. Delivery receipts represent transport success. A confirmed dispatch transition records an acknowledgement in the replay. The agreed MSB profile and independent field evidence determine what that acknowledgement establishes about execution.
Try the signed handoff๐
From a checkout, run these commands in the same shell. The reference receiver stores accepted event IDs in leitstelle.sqlite in its working directory.
export FMS_WEBHOOK_SECRET="whsec_$(openssl rand -base64 32)"
python3 services/fmsd/examples/leitstelle.py &
fmsd serve --demo --webhook http://127.0.0.1:8788/events --cursor ./review.cursor
Open the receiver at http://127.0.0.1:8788/ and follow an alarm to its evidence. Each incident opening or closure produces a CloudEvent with a stable ID, type de.fms.incident.opened or de.fms.incident.resolved. Its dataschema names the event's closed JSON Schema (opened, resolved). It is dataclassification: internal, because an incident names a feeder, never a person. The receiver verifies the signed body and timestamp, then deduplicates by source and ID. Signing follows Standard Webhooks: each key is 24 to 64 bytes. To rotate without downtime, set FMS_WEBHOOK_SECRET to the new and the old secret separated by a space. Each delivery then carries one signature per secret, and the receiver accepts either until you drop the old one. The sender retries in order until it gets a 2xx response. Keep the log and checkpoint together to resume after restart. A fresh checkpoint replays from the beginning. The API reports delivery progress under source.webhook.
Answer an erasure๐
When the metering point operator or an aggregator erases a person, it sends an erasure@1 event naming them by references fms received, such as an EMS target, a market resource or a device operator. Answer it from the workstation that holds the exports and the evidence:
fmsd erasure erasure.json --export feeder.json --evidence evidence.jsonl > confirmation.json
fms holds connections, not people, so it matches the references by id against every premises in the exports (its id, control targets, market resources, devices and device operators) and every record in the verified logs. It reads the event before any other file: an event of another dataschema, without a classification, or with a field the profile does not allow is refused. It never changes an export or a log.
| What fms holds | Exit | Answer |
|---|---|---|
| a premises in an export | 3 | pending, the final answer expected_by a month on (--expected-by to change); stderr names the export and premises to remove |
| a reduction or other record of the connection from the last two years | 0 | retained until two years after the last one, under Art. 17(3)(b) GDPR with BK6-22-300 Anlage 1 Ziffer 7.1 b and 7.3 |
| only older records | 0 | anonymised |
| nothing | 0 | none-held |
The evidence log is a hash chain and stays as it is. Erasure removes the mapping, not the chained record: once no export ties a connection id to its premises, area and postcode, a record in the log names a connection fms can no longer link to anyone. Forward confirmation.json, a CloudEvent de.fms.erasure.confirmed classified confidential / GDPR / standard, to the erasure's confirm_to. Forward a pending one at once, remove the premises from the export, then run the command again for the final answer.
Run fmsd from the image๐
Each release publishes ghcr.io/hupe1980/fmsd for linux/amd64 and linux/arm64, with an SBOM and SLSA provenance, and attaches openapi.json. The image runs as a non-root user in /work:
docker run --rm -v "$PWD:/work" ghcr.io/hupe1980/fmsd:0.7.0 erasure erasure.json --export feeder.json --evidence evidence.jsonl
fmsd serve listens on loopback only, inside the container too. Run a TLS-terminating reverse proxy in the same network namespace, such as a sidecar in one pod, and pass --public-origin. Do not expose the review port directly: it authenticates people with FMS_REVIEW_TOKEN, not other systems.
Probes and metrics๐
--ops-listen ADDR on serve, monitor and serve-register opens a second, plain-HTTP listener with three routes and no token: /livez, /readyz and /metrics (OpenMetrics text). It carries counts only, never a premises, reading or certificate subject, and answers nothing else. A station outage leaves the monitor ready, since the desk is what shows it; a failed capture does not.
ports: [{name: ops, containerPort: 9464}]
args: [serve, --bundle, feeder.json, --ops-listen, "0.0.0.0:9464"]
livenessProbe: {httpGet: {path: /livez, port: ops}}
readinessProbe: {httpGet: {path: /readyz, port: ops}}| Metric | Service |
|---|---|
fms_build_info{version,command}, fms_http_requests_total{route,status}, fms_http_request_duration_seconds{route} | all; route is the route template |
fms_incidents, fms_evidence_records, fms_webhook_backlog, fms_webhook_attempts_total{outcome} | serve |
fms_telemetry_link_up, fms_telemetry_points{freshness}, fms_decision_ticks_total, fms_proposals_total, fms_capture_failed | monitor |
fms_register_connections_total{outcome} | serve-register |
On SIGTERM, serve and serve-register stop accepting and finish open requests; monitor records a final tick and its capture.