docs(index): OtOpcUa gRPC data A1 merged (alarm forwarding origin groundwork)

This commit is contained in:
Joseph Doherty
2026-11-24 11:55:09 -05:00
parent 68b44ef447
commit 7fa73ddfb0
@@ -701,3 +701,4 @@ on `MonitoredItemNotification.Message` validated by `(ClientHandle, DataValue)`;
- **gRPC data H1 + #918 + H2 merged (2026-11-23/24, `1086593a`, `0c86edc1`, `ef938b43`).** H1 extracted HistoryRead (Raw/Processed/AtTime) from the node-manager overrides into an SDK-free port (zero local behaviour change; 10k-seed paging fuzz). #918 added a real-origin recorded-v1-client gate. **H2 = remote history for runtime consumers:** new `DataConnectionService.HistoryRead` RPC plus `HistoryCapabilities` (CapabilitiesResponse 16) / `HistoryInfo` (Metadata 14), negotiated by `x-otopcua-data-features` (the capabilities probe carries the client's features; header-less callers get v1-identical bytes). Origin ingress: Ready → export grant → origin ACL `HistoryRead` (always) → tagname; denied, unhistorized and unknown nodes answer an identical `Bad_HistoryOperationUnsupported`; an export without the bit ⇒ `PERMISSION_DENIED` for the call. Origin memory is byte-bounded per request and per principal; continuations single-use and bound to principal/key/incarnation; remote reads always leave local OPC UA HistoryRead a slot. ConfigDb migration `AddDataConnectionHistory` (5 limit columns); AdminUI HistoryRead checkbox + limits + X0 banner. OPC UA clients on the consumer get remote history only in H3. Live rig smoke passed (`scripts/validation/grpc-data/rig.py up --history`). Not deployed. Flaky test class filed as lmxopcua#920. ScadaBridge impact: none (no OPC UA surface change yet). - **gRPC data H1 + #918 + H2 merged (2026-11-23/24, `1086593a`, `0c86edc1`, `ef938b43`).** H1 extracted HistoryRead (Raw/Processed/AtTime) from the node-manager overrides into an SDK-free port (zero local behaviour change; 10k-seed paging fuzz). #918 added a real-origin recorded-v1-client gate. **H2 = remote history for runtime consumers:** new `DataConnectionService.HistoryRead` RPC plus `HistoryCapabilities` (CapabilitiesResponse 16) / `HistoryInfo` (Metadata 14), negotiated by `x-otopcua-data-features` (the capabilities probe carries the client's features; header-less callers get v1-identical bytes). Origin ingress: Ready → export grant → origin ACL `HistoryRead` (always) → tagname; denied, unhistorized and unknown nodes answer an identical `Bad_HistoryOperationUnsupported`; an export without the bit ⇒ `PERMISSION_DENIED` for the call. Origin memory is byte-bounded per request and per principal; continuations single-use and bound to principal/key/incarnation; remote reads always leave local OPC UA HistoryRead a slot. ConfigDb migration `AddDataConnectionHistory` (5 limit columns); AdminUI HistoryRead checkbox + limits + X0 banner. OPC UA clients on the consumer get remote history only in H3. Live rig smoke passed (`scripts/validation/grpc-data/rig.py up --history`). Not deployed. Flaky test class filed as lmxopcua#920. ScadaBridge impact: none (no OPC UA surface change yet).
- **gRPC data H3 merged (2026-11-24, `b1973d6f`).** OPC UA HistoryRead (Raw/Processed/AtTime) on a consumer's projected nodes (`https://zb.com/otopcua/mapped/raw|uns`, `p1.` ids) is now served from the origin over the H2 `HistoryRead` RPC (`ProjectedHistoryAccess`). Needs the mapping's HistoryRead bit AND a local `NodePermissions.HistoryRead` on the mapping scope (even with ACLs off). Continuation points are Remote cursors that resend the original details; released on SDK disposal, coalesced per connection. Remote peers and projected reads together hold at most N − max(1, N/4) of the N history batch slots, so local HistoryRead always keeps one. Assembly budget `MaxHistoryAssemblyBytesPerRequest`; requests split at the lease batch and the origin's negotiated `MaxBatchItems`. Also fixed: Client.Shared processed reads now send `UseServerCapabilitiesDefaults = true` (they never worked against this server); CLI `historyread` gained paging/`--at-time`. Three Fable review rounds; live H01–H06 PASS on SqlServer and QuestDB origins. Not deployed. ScadaBridge impact: mapped nodes now answer HistoryRead instead of `BadHistoryOperationUnsupported`; no change to raw/UNS nodes. - **gRPC data H3 merged (2026-11-24, `b1973d6f`).** OPC UA HistoryRead (Raw/Processed/AtTime) on a consumer's projected nodes (`https://zb.com/otopcua/mapped/raw|uns`, `p1.` ids) is now served from the origin over the H2 `HistoryRead` RPC (`ProjectedHistoryAccess`). Needs the mapping's HistoryRead bit AND a local `NodePermissions.HistoryRead` on the mapping scope (even with ACLs off). Continuation points are Remote cursors that resend the original details; released on SDK disposal, coalesced per connection. Remote peers and projected reads together hold at most N − max(1, N/4) of the N history batch slots, so local HistoryRead always keeps one. Assembly budget `MaxHistoryAssemblyBytesPerRequest`; requests split at the lease batch and the origin's negotiated `MaxBatchItems`. Also fixed: Client.Shared processed reads now send `UseServerCapabilitiesDefaults = true` (they never worked against this server); CLI `historyread` gained paging/`--at-time`. Three Fable review rounds; live H01–H06 PASS on SqlServer and QuestDB origins. Not deployed. ScadaBridge impact: mapped nodes now answer HistoryRead instead of `BadHistoryOperationUnsupported`; no change to raw/UNS nodes.
- **gRPC data H4 merged (2026-11-24, `cbb5b396`) — remote history phase complete (H1–H4).** Diagnostics: metrics `otopcua.dataconn.history.reads{variant,status_class,side}` and `otopcua.dataconn.history.continuations.active{side}` (`side`=origin|consumer; the H2 counter had been on an unexported meter — fixed); X0's `otopcua.dataconnection.unknown_operations_dropped` reused. AdminUI data-connections page shows negotiated features, origin history offer, reads by status class, open remote continuations, dropped unknown bits (closes lmxopcua#919) and an origin-evidence-by-node panel. Docs: remote history *supported*, verified on SqlServer + QuestDB origin backends; **Gateway backend unverified** — its live leg is blocked on VPN (lmxopcua#923, deploy-gate). Not deployed. ScadaBridge impact: none beyond H3. - **gRPC data H4 merged (2026-11-24, `cbb5b396`) — remote history phase complete (H1–H4).** Diagnostics: metrics `otopcua.dataconn.history.reads{variant,status_class,side}` and `otopcua.dataconn.history.continuations.active{side}` (`side`=origin|consumer; the H2 counter had been on an unexported meter — fixed); X0's `otopcua.dataconnection.unknown_operations_dropped` reused. AdminUI data-connections page shows negotiated features, origin history offer, reads by status class, open remote continuations, dropped unknown bits (closes lmxopcua#919) and an origin-evidence-by-node panel. Docs: remote history *supported*, verified on SqlServer + QuestDB origin backends; **Gateway backend unverified** — its live leg is blocked on VPN (lmxopcua#923, deploy-gate). Not deployed. ScadaBridge impact: none beyond H3.
- **gRPC data A1 merged (2026-11-24, `68a9d518`) — alarm forwarding origin groundwork, invisible until A2.** Node manager keeps per-condition state records (`SnapshotConditions` bounded per `Lock` hold, start cursor + apply generation; deltas into `ConditionStateHub`; `snapshot_complete` = clean apply + Primary) and `state_known`: native conditions become known only on the driver's new `IAlarmInitialStateSignal` (Galaxy sentinel, OpcUaClient RefreshEnd with `SequentialPublishing`, FOCAS/AbCip/Heidenhain per-device tick, MTConnect baseline/delta), withdrawn on every connectivity edge; scripted only after the first completed evaluation (`OnInputsEstablished`); F5 `ConditionKnownSignalTimeout` (120 s) diagnostic; OpcUaClient-without-refresh backstop. Invariant: a consumer is never told known-inactive while the origin is active. Placements per realm, `condition_key` = HMAC with per-cluster `DataConnections:ConditionKeySecret` (realm byte in the input; missing secret = feature off), `c1.` ids in `https://zb.com/otopcua/mapped/conditions`. L4 measured OpcUaClient/FOCAS/MTConnect/AbCip(sim) p99 ≤1.4 s; Galaxy (VPN) and Heidenhain (no fixture) blocked → lmxopcua#924. Follow-ups lmxopcua#925 (Galaxy deploy-added conditions wait for stream reopen), #926 (OpcUaClient RefreshEnd over lost events). Two Fable review rounds. Not deployed. ScadaBridge impact: none yet.