From 6c70c93c6288b61963ba91bcd67d84a859578850 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 23 Nov 2026 19:54:08 -0500 Subject: [PATCH] docs(grpc-data): H1 review notes for H2/H3 (details resend, store lifecycle, off-thread port, IVT/facade, transport chunking) --- ...-23-grpc-data-connections-history-alarms-plan.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md b/docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md index bdedc010d..314bef00a 100644 --- a/docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md +++ b/docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md @@ -1083,7 +1083,14 @@ settle windows are calibrated at the A1 exit (L4), before `state_known` ships. - client: header gating, deadlines, `FailedPrecondition`/`Unimplemented` ⇒ unsupported; - `LocalDataConnection` history for direct runtime consumers; - **validator bit + `LocalDataServices.cs:47` `Implemented(target)` + `AddDataConnectionHistory` + artifact projection + - AdminUI checkboxes/limits**. + AdminUI checkboxes/limits**; + - origin over the H1 port (H1 review notes): `ReadHistory` is synchronous (it block-bridges like the SDK overrides), so run + it off the RPC thread; it and `PeerHistoryContinuationStore`/`Scope` are `internal` to OpcUaServer, so add + `InternalsVisibleTo` for the serving project or a public facade implementing `IDataHistoryService`; one store per + (principal, connection incarnation), `Clear()`ed on connection close; the scope's serving incarnation comes from the + connection (read live, so an in-process failover invalidates tokens); items carry a view `BindingTag` (mapping id/kind); + Processed/AtTime chunking and the consumer's assembly budget live in the transport, not the port; history capabilities + are an additive H2 capabilities field. - Files: proto/mapper, `Host/Grpc/DataConnectionGrpcService.cs`, `Runtime/DataConnections/{LocalDataServices,LocalDataConnection,GrpcDataConnection,DataCapabilitiesProvider,LocalExportCatalog.Compilation}.cs`, `Core/Authorization/DataOperationPolicy.cs`, `Configuration/{Entities/*,Validation/DataConnectionValidator.cs,Migrations/*}`, @@ -1099,7 +1106,9 @@ settle windows are calibrated at the A1 exit (L4), before `state_known` ships. **H3 — Consumer OPC UA projection.** - Tasks: projected `Historizing`/AccessLevel; `IProjectedHistoryAccess` (`ProjectedDataAccess.cs:157` allowlist extended); overrides split local and projected handles; `HistoryCursorKind.Remote`; release forwarding on `releaseContinuationPoints` - and session close; mapping gate `HistoryRead`; per-request assembly budget. + and session close; mapping gate `HistoryRead`; per-request assembly budget. The Remote cursor stores the ORIGINAL request + details and resends them on resume: a peer continuation binds the details hash (a resume under other details is + `BadContinuationPointInvalid`), whereas local SDK resumes ignore details. - Files: NM, new `OpcUaServer/IProjectedHistoryAccess.cs`, new `Runtime/DataConnections/ProjectedHistoryAccess.cs`, `OpcUaServer/Security/DataPlaneAuthorizer.cs`. - Tests: O for allow/deny with ACLs on and off, resume after mapping revision change / lease expiry / failover / origin rebuild