Docs / The stack
Architecture
Platforms on top, protocol and library crates below, coupled only through published versions and documented events.
The shape
┌─────────────────────────────────── PLATFORMS ────────────────────────────────────┐
│ mako imsys ems fms flexpool │ emob │ telco │ esales · fieldlink │
│ │ │ │ konto │
│ ──────────── energy ──────────── │ e-mobility │ telco │ cross-domain │
└───────┬────────────────┬─────────┴──────┬───────┴────────┬──┴─────────────┬──────┘
│ │ │ │ │
┌───────▼──────┐ ┌───────▼──────┐ ┌───────▼──────┐ ┌───────▼──────┐ ┌───────▼──────┐
│ Market comm. │ │ Device & │ │ Grid & field │ │ Charging & │ │ Telecom │
│ edifact asx │ │ building │ │ iec61850 │ │ roaming │ │ wbci spri │
│ rubo4e │ │ eebus s2 … │ │ iec104 … │ │ iso15118 … │ │ tmf mediation│
└───────┬──────┘ └───────┬──────┘ └───────┬──────┘ └───────┬──────┘ └───────┬──────┘
└────────────────┴────────────────┼────────────────┴────────────────┘
┌─────────────────────▼─────────────────────┐
│ Quantities: metering · meterstore │
│ Money & ledger: billing · en16931 · sepa │
│ · doubleentry │
│ Security: utility-pki │
└───────────────────────────────────────────┘
Three kinds of building block
Protocol crates implement one standard each: one wire format, one state machine, one conformance story. They have sans-I/O cores: the protocol logic consumes bytes and events and produces bytes and events, with no sockets, threads or clocks inside. The same core runs:
- on a microcontroller (
no_std, often without an allocator:matter-kit,dlms-cosem-kit,iso15118); - in a Tokio service with rustls (
ocpp-kit,eebus,openadr); - in a browser via WebAssembly (
mako’s validator,ocmfverification); - under a fuzzer or a differential test against another implementation.
Domain libraries hold the rules that are not a wire format: exact quantities
(metering), invoice arithmetic (billing), the e-invoice model (en16931), payment
files (sepa), the ledger (doubleentry). They are pure functions over exact types.
Platforms are deployable estates for a market role: a set of services (daemons) with a database, an operator desk, a customer portal, an evidence trail and, in most cases, an MCP surface for governed assistants.
Coupling rules
- Only through published versions. Members depend on each other via crates.io versions, never via git or path dependencies on main. A utility can upgrade one member without rebuilding the rest.
- Only through documented interfaces at runtime. Platforms talk to each other through documented APIs and events. They never share a database.
- CloudEvents between platforms. Platforms emit CloudEvents with published JSON
Schemas; the version matrix shows which. The rules every seam
follows (contract ownership, the CloudEvents profile, the client reference and
idempotency, autonomy levels) are on Conventions. The role
contracts (orders, product lifecycle, rated charges, bills, appointments, erasure,
the flexibility market) are data in the umbrella’s
contracts/catalogue. Each platform builds its envelopes in its own services; no published crate knows the stack. - Drift is visible.
just checklists every member that depends on an older minor version of another member. See the version matrix.
How the requirements are met
| Requirement (background) | How the architecture answers |
|---|---|
| Composable, not monolithic | Platforms and crates are independently released; seams are protocols and events |
| Regulation as tested code | Regulatory rules live in domain libraries with clause citations; format profiles are imported data, not hand-written code |
| Exact by construction | Decimal and integer types for energy and money; Europe/Berlin calendar types; no-floats CI gates |
| Edge to ledger | One stack spans the device protocol to the double-entry posting, so evidence can follow the value |
| Evidence everywhere | Signed journals, OCMF receipts, Merkle-log ledger, decision records for every control action |
| Open and verifiable | Everything MIT OR Apache-2.0, conformance suites in the open, unproven items labelled |
Governed agents
Several platforms expose their operations as MCP tools: mako alone has 212 across 11 services. They are consumed by assistants running on a durable, replayable, policy-governed agent runtime in which the journal is the plan of record. The rule is the same everywhere: every operation declares its autonomy level, and the runtime enforces it. Most tools only read, check and propose, for example a reply to a rejected message or a correction to a clearing case, and a person with the right role decides. An assistant acts alone only up to the level an operation declares, a business step only inside an envelope a person approved (Conventions, AUT-1 to AUT-6). Every step is replayable.
Security model, in short
#![forbid(unsafe_code)]in library crates; dependencies audited withcargo deny.- Decoders of untrusted input are fuzzed and bounded against hostile input.
- TLS via rustls by default; sector-specific PKI where required (BDEW AS4 certificates, BSI TR-03109 Brainpool, Plug & Charge).
- Threat models per member (
THREAT_MODEL.md), and SBOMs per release on the roadmap.