docs(index): bring docs/README.md up to date
v2-ci / unit-tests (push) Waiting to run

Full driver list (all 13 driver docs + fixtures) instead of Galaxy only and
'eight shipped drivers'; Raw/UNS dual namespace, roles, cluster mesh, data
connections and pluggable historian in the platform overview; index the
previously unlisted Raw, Telemetry, Historian, ui-consistency-validation and
v2 component docs; v1 archive links grouped.
This commit is contained in:
Joseph Doherty
2026-11-23 12:27:39 -05:00
parent 90ca3046c5
commit 649f2ecd22
+71 -49
View File
@@ -2,20 +2,22 @@
Two tiers of documentation live here:
- **Current reference** at the top level (`docs/*.md`) — describes what's shipped today. Start here for operator + integrator reference.
- **Implementation history + design notes** at `docs/v2/*.md` — the authoritative plan + decision log the current reference is built from. Start here when you need the *why* behind an architectural choice, or when a top-level doc says "see plan.md § X".
- **Current reference** at the top level (`docs/*.md`, `docs/drivers/*.md`) — describes what's shipped today. Start here for operator + integrator reference.
- **Implementation history + design notes** at `docs/v2/*.md` and `docs/plans/*.md` — the plan, decision log and dated design/implementation plans the current reference is built from. Start here when you need the *why* behind an architectural choice.
Open work is tracked in Gitea issues on `dohertj2/lmxopcua`, not in these docs.
The project was originally called **LmxOpcUa** (a single-driver Galaxy/MXAccess OPC UA server) and has since become **OtOpcUa**, a multi-driver OPC UA server platform. Any lingering `LmxOpcUa`-string in a path you see in docs is a deliberate residual (executable name `lmxopcua-cli`, client PKI folder `{LocalAppData}/LmxOpcUaClient/`) — fixing those requires migration shims + is tracked as follow-ups.
## Platform overview
> **v2 (2026-05-26):** the separate `OtOpcUa.Server` + `OtOpcUa.Admin` services fused into a single role-gated `OtOpcUa.Host` binary, joined by an Akka.NET cluster. See [v2 design](plans/2026-05-26-akka-hosting-alignment-design.md) for the architectural decision.
- **Core** owns shared abstractions (driver capability contracts, scripting, virtual tags, alarm historian).
- **Drivers** plug in via capability interfaces in `ZB.MOM.WW.OtOpcUa.Core.Abstractions`: `IDriver`, `IReadable`, `IWritable`, `ITagDiscovery`, `ISubscribable`, `IHostConnectivityProbe`, `IAlarmSource`, `IPerCallHostResolver`. Each driver opts into whichever it supports.
- **Host** (`src/Server/ZB.MOM.WW.OtOpcUa.Host`) is the single fused binary (.NET 10, AnyCPU). `OTOPCUA_ROLES` env decides what to mount: `admin` (Blazor + control-plane singletons), `driver` (OPC UA endpoint + per-node actors), or both. See [ServiceHosting.md](ServiceHosting.md).
- **Cluster + ControlPlane + Runtime + AdminUI + Security** sit between Core and Host. The cluster glues per-node actors into one logical fleet; the control-plane singletons (deploy coordinator, audit writer, redundancy state) live on the admin role-leader. See [Redundancy.md](Redundancy.md).
- The Galaxy driver still reaches MXAccess via gRPC to a separately-installed **mxaccessgw** sidecar (sibling repo).
- **Host** (`src/Server/ZB.MOM.WW.OtOpcUa.Host`) is the single fused binary (.NET 10, AnyCPU). Its resolved roles (`Cluster:Roles`, else `OTOPCUA_ROLES`) decide what to mount: `admin` (AdminUI + control-plane singletons), `driver` (OPC UA endpoint + per-node driver actors), or both. See [ServiceHosting.md](ServiceHosting.md) and [v2/Architecture-v2.md](v2/Architecture-v2.md).
- **Address space** has two namespaces: **Raw** (`https://zb.com/otopcua/raw`, the `/raw` Folder → Driver → Device → TagGroup → Tag tree, `s=<RawPath>`) and **UNS** (`https://zb.com/otopcua/uns`, Area → Line → Equipment → signal). Every value has one source — its Raw tag — and UNS equipment variables reference and mirror it. See [Raw.md](Raw.md) and [Uns.md](Uns.md).
- **Clusters.** Each cluster is a 2-node Akka.NET pair with an elected Primary. The central (admin) cluster and site (driver) clusters talk over a gRPC mesh with per-cluster PSKs; driver-only nodes can run without a ConfigDb, fed by the config mesh. See [Redundancy.md](Redundancy.md), [v2/Cluster.md](v2/Cluster.md), [v2/ControlPlane.md](v2/ControlPlane.md) and [v2/Runtime.md](v2/Runtime.md).
- **Data connections.** Nodes and clusters can map each other's Raw/UNS branches over a dedicated TLS gRPC service for browse, read, write and subscribe. See [DataConnections.md](DataConnections.md).
- **Core** owns shared abstractions (driver capability contracts, scripting, virtual tags, scripted alarms, alarm historian).
- **Drivers** plug in via capability interfaces in `ZB.MOM.WW.OtOpcUa.Core.Abstractions` (`IDriver`, `IReadable`, `IWritable`, `ITagDiscovery`, `ISubscribable`, `IHostConnectivityProbe`, `IAlarmSource`, `IRediscoverable`, `IPerCallHostResolver`, …); each opts into what it supports. The Galaxy driver reaches MXAccess via gRPC to the separately installed **mxaccessgw** gateway (sibling repo).
- **History** is server-side and pluggable: `ServerHistorian:Backend` = `Gateway` (default, AVEVA Historian via HistorianGateway), `SqlServer` or `QuestDb`. See [Historian.md](Historian.md).
## Where to find what
@@ -24,53 +26,71 @@ The project was originally called **LmxOpcUa** (a single-driver Galaxy/MXAccess
| Doc | Covers |
|-----|--------|
| [OpcUaServer.md](OpcUaServer.md) | Top-level server architecture — Core, driver dispatch, Config DB, generations |
| [AddressSpace.md](AddressSpace.md) | `GenericDriverNodeManager` + `ITagDiscovery` + `IAddressSpaceBuilder` |
| [AddressSpace.md](AddressSpace.md) | Address-space composition and the node manager |
| [Raw.md](Raw.md) | The `/raw` device tree — authoring, CSV import/export, browse-commit, Calculation pseudo-driver |
| [Uns.md](Uns.md) | The global `/uns` tree — Area/Line/Equipment, reference-only equipment tags, effective names, UNS namespace |
| [ReadWriteOperations.md](ReadWriteOperations.md) | OPC UA Read/Write → `CapabilityInvoker` → `IReadable`/`IWritable` |
| [IncrementalSync.md](IncrementalSync.md) | Address-space updates on redeploy — surgical deltas vs. rebuild |
| [DriverLifecycle.md](DriverLifecycle.md) | Server-side driver lifecycle + infrastructure contracts (`IDriverFactory`, `IDriverProbe`, `IDriverHealthPublisher`, `IDriverConfigEditor`, `IHistorianDataSource`) + the Commons library |
| [Subscriptions.md](v1/Subscriptions.md) | Monitored items → `ISubscribable` + per-driver subscription refcount (v1 archive) |
| [AlarmTracking.md](AlarmTracking.md) | `IAlarmSource` + `AlarmSurfaceInvoker` + OPC UA alarm conditions — native Galaxy alarms end-to-end (live) |
| [AlarmTracking.md](v1/AlarmTracking.md) | Original alarm-tracking write-up (v1 archive) |
| [AlarmHistorian.md](AlarmHistorian.md) | `Core.AlarmHistorian` store-and-forward sink — `LocalDbStoreAndForwardSink`, the replicated `alarm_sf_events` buffer + Primary-only drain, `IAlarmHistorianWriter`, dead-letter/retry/eviction |
| [DataTypeMapping.md](v1/DataTypeMapping.md) | Per-driver `DriverAttributeInfo` → OPC UA variable types (v1 archive — live mapping is in `src/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Galaxy/Browse/DataTypeMap.cs`) |
| [IncrementalSync.md](IncrementalSync.md) | Address-space rebuild on redeploy + `sp_ComputeGenerationDiff` |
| [HistoricalDataAccess.md](v1/HistoricalDataAccess.md) | Historical v1 design: history as a per-driver capability (retired; history is now server-side, see [Historian.md](Historian.md)) |
| [VirtualTags.md](VirtualTags.md) | `Core.Scripting` + `Core.VirtualTags` — Roslyn script sandbox, engine, dispatch alongside driver tags |
| [ScriptEditor.md](ScriptEditor.md) | Monaco script editor — Roslyn-backed IntelliSense (completions, diagnostics, hover, tag-path) for C# virtual-tag scripts; `AdminUI/ScriptAnalysis/` backend |
| [ScriptedAlarms.md](ScriptedAlarms.md) | `Core.ScriptedAlarms` — script-predicate `IAlarmSource` + Part 9 state machine |
| [DataConnections.md](DataConnections.md) | gRPC data connections — directional node/cluster connections, Raw/UNS branch projection, TLS + scoped credentials, primary routing, admission limits, recovery |
| [Telemetry.md](Telemetry.md) | Live telemetry transport feeding the AdminUI's alerts / script-log / hosts panels |
One Core subsystem is shipped without a dedicated top-level doc; see the section in the linked doc:
### Scripting, alarms + history
| Doc | Covers |
|-----|--------|
| [VirtualTags.md](VirtualTags.md) | `Core.Scripting` + `Core.VirtualTags` — Roslyn script sandbox, dispatch alongside driver tags, out-of-process script runner |
| [ScriptEditor.md](ScriptEditor.md) | Monaco script editor — Roslyn-backed IntelliSense; `AdminUI/ScriptAnalysis/` backend; `{{equip}}` paths |
| [ScriptedAlarms.md](ScriptedAlarms.md) | `Core.ScriptedAlarms` — script-predicate `IAlarmSource` + Part 9 state machine |
| [AlarmTracking.md](AlarmTracking.md) | `IAlarmSource` + `AlarmSurfaceInvoker` + OPC UA alarm conditions — native driver alarms end-to-end |
| [AlarmHistorian.md](AlarmHistorian.md) | `Core.AlarmHistorian` store-and-forward sink — `LocalDbStoreAndForwardSink`, the replicated `alarm_sf_events` buffer + Primary-only drain, dead-letter/retry/eviction |
| [Historian.md](Historian.md) | HistoryRead / HistoryUpdate, alarm history and continuous historization across the Gateway / SqlServer / QuestDb backends |
One Core subsystem is shipped without a dedicated top-level doc:
| Project | See |
|---------|-----|
| `Analyzers` (Roslyn OTOPCUA0001) | [security.md](security.md) § OTOPCUA0001 Analyzer |
Current-data federation is documented in [DataConnections.md](DataConnections.md): directional
node/cluster connections, Raw/UNS branch projection, dedicated TLS and scoped credentials,
primary routing, finite admission limits and recovery. Remote history, alarms and relays remain
outside that contract; imported current values may feed authorized local derived engines.
### Drivers
| Doc | Covers |
|-----|--------|
| [drivers/README.md](drivers/README.md) | Index of the eight shipped drivers + capability matrix |
| [drivers/Galaxy.md](drivers/Galaxy.md) | Galaxy driver — in-process gRPC client to the mxaccessgw sidecar |
| [v1/drivers/Galaxy-Repository.md](v1/drivers/Galaxy-Repository.md) | Galaxy-specific discovery via the ZB SQL database (v1 archive — the gateway owns this path now) |
| [drivers/README.md](drivers/README.md) | Driver index + capability matrix |
| [drivers/Galaxy.md](drivers/Galaxy.md) | AVEVA System Platform Galaxy — in-process gRPC client to the mxaccessgw gateway |
| [drivers/Modbus.md](drivers/Modbus.md) | Modbus TCP / RTU-over-TCP (incl. DL205 addressing) |
| [drivers/S7.md](drivers/S7.md) | Siemens S7 |
| [drivers/AbCip.md](drivers/AbCip.md) | Allen-Bradley CIP — ControlLogix / CompactLogix |
| [drivers/AbLegacy.md](drivers/AbLegacy.md) | Allen-Bradley Legacy — SLC 500 / MicroLogix (PCCC) |
| [drivers/TwinCAT.md](drivers/TwinCAT.md) | Beckhoff TwinCAT (ADS) |
| [drivers/FOCAS.md](drivers/FOCAS.md) | FANUC FOCAS/2 CNC |
| [drivers/Heidenhain.md](drivers/Heidenhain.md) | Heidenhain LSV2 (read-only) |
| [drivers/OpcUaClient.md](drivers/OpcUaClient.md) | OPC UA Client — gateway/aggregation driver |
| [drivers/Mqtt.md](drivers/Mqtt.md) | MQTT — plain JSON topics + Sparkplug B |
| [drivers/MTConnect.md](drivers/MTConnect.md) | MTConnect Agent (read-only) |
| [drivers/Sql.md](drivers/Sql.md) | SQL poll — SQL Server / Postgres / Oracle / MySQL / ODBC |
| [drivers/Calculation.md](drivers/Calculation.md) | Calculation pseudo-driver — script-computed tags from other RawPaths |
| [drivers/TestConnectProbes.md](drivers/TestConnectProbes.md) | AdminUI Test-connect probes |
| [drivers/Historian.Wonderware.md](drivers/Historian.Wonderware.md) | Retired Wonderware historian sidecar (historical) |
| [v2/driver-specs.md](v2/driver-specs.md) | Per-driver addressing + quirks (design reference) |
| [v2/Galaxy.ParityRig.md](v2/Galaxy.ParityRig.md) · [v2/Galaxy.ParityMatrix.md](v2/Galaxy.ParityMatrix.md) · [v2/Galaxy.Performance.md](v2/Galaxy.Performance.md) | Galaxy gateway setup, parity matrix, tracing/metrics/soak |
For Modbus / S7 / AB CIP / AB Legacy / TwinCAT / FOCAS / OPC UA Client specifics, see [v2/driver-specs.md](v2/driver-specs.md).
Integration-test fixtures: [Modbus](drivers/Modbus-Test-Fixture.md) · [S7](drivers/S7-Test-Fixture.md) · [AB server](drivers/AbServer-Test-Fixture.md) · [AbLegacy](drivers/AbLegacy-Test-Fixture.md) · [TwinCAT](drivers/TwinCAT-Test-Fixture.md) · [FOCAS](drivers/FOCAS-Test-Fixture.md) · [OpcUaClient](drivers/OpcUaClient-Test-Fixture.md) · [MQTT](drivers/Mqtt-Test-Fixture.md). The full infra index is [../infra/README.md](../infra/README.md).
### Operational
| Doc | Covers |
|-----|--------|
| [Configuration.md](Configuration.md) | Live appsettings + environment-variable reference (current state) |
| [Configuration.md](v1/Configuration.md) | appsettings bootstrap + Config DB + Admin UI draft/publish (v1 archive — `OTOPCUA_GALAXY_*` env vars now live in mxaccessgw config) |
| [Uns.md](Uns.md) | The global `/uns` master tree — manage Area/Line/Equipment/Tag/VirtualTag fleet-wide; replaces the per-cluster UNS/Equipment/Tags tabs |
| [security.md](security.md) | Transport security profiles, LDAP auth, ACL trie, role grants, OTOPCUA0001 analyzer |
| [Redundancy.md](Redundancy.md) | `RedundancyStateActor` (cluster-scoped singleton), `ServiceLevelCalculator`, `IRedundancyRoleView`, per-cluster meshes, Prometheus metrics |
| [Configuration.md](Configuration.md) | Live appsettings + environment-variable reference |
| [ServiceHosting.md](ServiceHosting.md) | Single fused `OtOpcUa.Host` binary install/uninstall with role gating, Traefik, script-worker isolation |
| [security.md](security.md) | Transport security profiles, LDAP (AdminUI), data-plane API keys, ACLs, role grants, OTOPCUA0001 analyzer |
| [Redundancy.md](Redundancy.md) | `RedundancyStateActor`, `ServiceLevelCalculator`, per-cluster meshes, deploy acks, Prometheus metrics |
| [Reservations.md](Reservations.md) | Fleet-wide ZTag / SAPID external-ID reservations — publish-time claim, release flow |
| [ServiceHosting.md](ServiceHosting.md) | Single fused `OtOpcUa.Host` binary install/uninstall with `OTOPCUA_ROLES` gating; the historian backend is the external HistorianGateway |
| [v2/admin-ui.md](v2/admin-ui.md) | AdminUI spec |
| [StatusDashboard.md](StatusDashboard.md) | Pointer — superseded by [v2/admin-ui.md](v2/admin-ui.md) |
| [ui-consistency-validation.md](ui-consistency-validation.md) | Shared UI consistency validation record (2026-11) |
| [v2/dev-environment.md](v2/dev-environment.md) | Dev-box bootstrap + endpoint inventory |
| [v2/redundancy-interop-playbook.md](v2/redundancy-interop-playbook.md) | Redundancy interop playbook |
### Client tooling
@@ -92,28 +112,30 @@ For Modbus / S7 / AB CIP / AB Legacy / TwinCAT / FOCAS / OPC UA Client specifics
|-----|--------|
| [reqs/HighLevelReqs.md](reqs/HighLevelReqs.md) | HLRs — numbered system-level requirements |
| [reqs/OpcUaServerReqs.md](reqs/OpcUaServerReqs.md) | OPC UA server-layer reqs |
| [v1/reqs/ServiceHostReqs.md](v1/reqs/ServiceHostReqs.md) | Per-process hosting reqs (v1 archive — only `OtOpcUa` server hosting remains in scope post-PR-7.2) |
| [reqs/ClientRequirements.md](reqs/ClientRequirements.md) | Client CLI + UI reqs |
| [v1/reqs/GalaxyRepositoryReqs.md](v1/reqs/GalaxyRepositoryReqs.md) | Galaxy-scoped repository reqs (v1 archive — owned by mxaccessgw today) |
| [v1/reqs/MxAccessClientReqs.md](v1/reqs/MxAccessClientReqs.md) | Galaxy-scoped MXAccess reqs (v1 archive — owned by mxaccessgw today) |
| [reqs/StatusDashboardReqs.md](reqs/StatusDashboardReqs.md) | Pointer — superseded by Admin UI |
| [v1/reqs/ServiceHostReqs.md](v1/reqs/ServiceHostReqs.md) | Per-process hosting reqs (v1 archive) |
| [v1/reqs/GalaxyRepositoryReqs.md](v1/reqs/GalaxyRepositoryReqs.md) | Galaxy repository reqs (v1 archive — owned by mxaccessgw today) |
| [v1/reqs/MxAccessClientReqs.md](v1/reqs/MxAccessClientReqs.md) | MXAccess reqs (v1 archive — owned by mxaccessgw today) |
## Implementation history (`docs/v2/`)
## Implementation history (`docs/v2/`, `docs/plans/`)
Design decisions + phase plans + execution notes. Load-bearing cross-references from the top-level docs:
Design decisions, phase plans and execution notes. `docs/plans/` holds the dated design + implementation plans (with live-gate records under `docs/plans/evidence/`); `docs/v2/` holds the v2 plan and component notes:
- [v2/plan.md](v2/plan.md) — authoritative v2 vision doc + numbered decision log (referenced as "decision #N" elsewhere)
- [v2/admin-ui.md](v2/admin-ui.md) — Admin UI spec
- [v2/acl-design.md](v2/acl-design.md) — data-plane ACL + permission-trie design (Phase 6.2)
- [v2/Architecture-v2.md](v2/Architecture-v2.md) — single-page tour of the v2 layout
- [v2/Cluster.md](v2/Cluster.md) · [v2/ControlPlane.md](v2/ControlPlane.md) · [v2/Runtime.md](v2/Runtime.md) — cluster bootstrap, admin singletons, driver-role actor tree
- [v2/admin-ui.md](v2/admin-ui.md) — Admin UI spec ([v2/AdminUI-rebuild-plan.md](v2/AdminUI-rebuild-plan.md) — rebuild plan)
- [v2/acl-design.md](v2/acl-design.md) — data-plane ACL + permission-trie design
- [v2/config-db-schema.md](v2/config-db-schema.md) — Config DB schema reference
- [v2/driver-specs.md](v2/driver-specs.md) — per-driver addressing + quirks for every shipped protocol
- [v2/dev-environment.md](v2/dev-environment.md) — dev-box bootstrap
- [v2/driver-specs.md](v2/driver-specs.md) · [v2/driver-stability.md](v2/driver-stability.md) — per-driver addressing + quirks; driver stability-tier design (tiers are not active)
- Protocol notes: [v2/modbus-addressing.md](v2/modbus-addressing.md) · [v2/modbus-test-plan.md](v2/modbus-test-plan.md) · [v2/dl205.md](v2/dl205.md) · [v2/s7.md](v2/s7.md) · [v2/focas-version-matrix.md](v2/focas-version-matrix.md) · [v2/mitsubishi.md](v2/mitsubishi.md) · [v2/aveva-system-platform-io-research.md](v2/aveva-system-platform-io-research.md) · [v2/f14b-part9-sdk-notes.md](v2/f14b-part9-sdk-notes.md)
- [v2/test-data-sources.md](v2/test-data-sources.md) — integration-test simulator matrix (includes the pinned libplctag `ab_server` version for AB CIP tests)
- [v2/multi-host-dispatch.md](v2/multi-host-dispatch.md) — per-PLC circuit breakers (Phase 6.1 decision #144)
- [v2/multi-host-dispatch.md](v2/multi-host-dispatch.md) — per-PLC circuit breakers (decision #144)
- [v2/v2-release-readiness.md](v2/v2-release-readiness.md) — release-readiness tracker
- [v2/phase-7-status.md](v2/phase-7-status.md) — Phase 7 reconciliation: what shipped vs. the plan, and the five remaining gaps
- [v2/implementation/phase-*-*.md](v2/implementation/) — per-phase execution plans with exit-gate evidence
- [v2/phase-7-status.md](v2/phase-7-status.md) — Phase 7 reconciliation
- [v2/implementation/](v2/implementation/) — per-phase execution plans with exit-gate evidence
## v1 archive
The v1 in-process MXAccess architecture (Galaxy.Host + Galaxy.Proxy + Galaxy.Shared, .NET 4.8 x86 COM, the `OtOpcUaGalaxyHost` Windows service) was retired in PR 7.2 (2026-04-30, commit `ae7106d`). Docs that described that shape are kept under [v1/](v1/) as historical record — see [v1/README.md](v1/README.md) for the index.
The v1 in-process MXAccess architecture (Galaxy.Host + Galaxy.Proxy + Galaxy.Shared, .NET 4.8 x86 COM, the `OtOpcUaGalaxyHost` Windows service) was retired in PR 7.2 (2026-04-30, commit `ae7106d`). Docs that described that shape are kept under [v1/](v1/) as historical record — see [v1/README.md](v1/README.md) and [v2/V1_ARCHIVE_STATUS.md](v2/V1_ARCHIVE_STATUS.md). Notable archived write-ups: [v1/Subscriptions.md](v1/Subscriptions.md), [v1/AlarmTracking.md](v1/AlarmTracking.md), [v1/DataTypeMapping.md](v1/DataTypeMapping.md), [v1/HistoricalDataAccess.md](v1/HistoricalDataAccess.md), [v1/Configuration.md](v1/Configuration.md), [v1/drivers/Galaxy-Repository.md](v1/drivers/Galaxy-Repository.md).