Complete live OPC UA historian verification after gateway control recovery #700
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR #699 is merged as
618d98e8. Its exact merged tree passed the full solution: 14,600 passed, 609 skipped, zero failed across 62 suites, including 122 OPC UA integration tests. Live updated-data-source missing-tag reads passed: Raw 228 ms cold; cached Raw/Count/AtTime 0–2 ms with correct no-data results. No deployment changes were made.Pending gate: run the merged build through an actual deployed OPC UA endpoint once the existing-tag Gateway Raw timeout is resolved (dohertj2/historiangw#29). Healthy-tag live behavior was not established: SysTimeSec Raw timed out through both updated data source and original package client.
Acceptance: record build and gateway versions, use read-only credentials and existing tags, and verify missing/existing Raw, Processed and AtTime responses; integer/Boolean/Float values match node DataTypes; transport outages return BadNoCommunication while unsupported operations retain their status; future AtTime and strict-ceiling stopped-tag reverse reads preserve timestamps, order, ties and completeness. Measure the stopped-tag reverse call cost against the unit regression bound rather than claiming the unit measurement is live evidence. Verify aggregate cooldown and raised/lowered limits in a controlled fixture when available.
Native TimeAverage/Total forward/reverse, all-NULL and sub-ms clipped intervals remain specifically tracked by #694, blocked on historiangw#27; do not duplicate or close that gate here. Environment/license/hardware GA gates remain in #615. Revoke and independently verify any temporary keys. This issue tracks validation, not a known defect in the merged implementation.
Unblocked 2026-11-12: the existing-tag Raw timeout (historiangw#29) no longer reproduces and was closed 2026-11-10 (SysTimeSec 61 rows in 322 ms on the gRPC-only client). Removed
blocked; the deployed-endpoint verification is starting.Every check in the acceptance list has now been run live, read-only, on master
53978ca6(tested as4c8e977e). Evidence: aveva-gate.md, harnessAvevaGatewayHistorianFollowupsLiveGateTests. Leaving this open for one gap: the checks ran through the OtOpcUa server in process, with the production Gateway backend wiring and a real SDK 2.0.1 client session, not through a deployed Host's endpoint (see below).Versions: OtOpcUa
4c8e977e(SDK server 2.0.1.0, HistorianGateway Client/Contracts 1.0.0). HistorianGatewaymaindffb5e2(server code = DEVea9f21c+ the Telemetry bump), run locally in Docker withApiKeys__Mode=DisabledandHistorian__LiveWritesEnabled=false. AVEVA 2023 R2 on wonder-sql-vd03. No keys were created, so there is nothing to revoke. No writes were made, and nothing ran on a wonder box.GoodNoDatawith 0 rows. Average and TimeAverage: every bucketBadNoData(0x809B0401). AtTime:BadNoDataper time.SysTimeSec,SysPulseandZIPSEN.WTC1: the wire equals the backend in every case.BadNoCommunication. Modified keepsBadHistoryOperationUnsupportedand TimeAverage2 keepsBadAggregateNotSupported. The same session reads again afterwards.0x40A40402) holds. 505 ms.ZIPSEN.WTC1, ~5.4 min after it stopped: exact against a streaming-gateway reference, newest first (NULL row included). 10 gatewayReadRawcalls, 1.47 s, vs #696's unit bound of ≤ 12. That bound was measured on a 1-day gap over 7,200 rows, so this is evidence for the live case only. A paged reverse read across the outage equals the reference reversed. No tie cluster exists in this live data; ties are covered by the deterministic tests only.BadTooManyOperationsat 1,000 and 500, and still 2.9 s after the raise (the 30 s cooldown); after the cooldown it is served Good.Remaining gap (the reason this stays open): the same checks through an actual deployed Host's OPC UA endpoint. It needs a deployed node with history-bound nodes on AVEVA tags. vd03's OtOpcUa has only a FOCAS driver and no such nodes, and setting one up is a deploy/config change, which this task did not do. If in-process evidence on the production wiring is acceptable (as it was for #801), this can be closed. That is your call.
Native TimeAverage/Total: see #694 (closed). Discrete-tag follow-up: #897.
Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
The deployed-endpoint run is done on DEV vd03. The owner approved the config deploy. Evidence: vd03-endpoint-gate.md (commit
5683d89b, probe source included).Versions: OtOpcUa
fea7de0a(SDK 2.0.1, HG Client 1.0.0) and HistorianGatewayea9f21c, both read from the deployed binaries over SMB. AVEVA 2023 R2.What was deployed: a temporary Calculation driver (no I/O) with 4 historized raw tags, plus a temporary OPC UA key:
ZIPSEN.WTC1as FloatSysTimeSecandSysPulseas ByteFOCAS was untouched. Deployments:
9adc5590(revfa9a2e28…) → temporarya63e262f(c4f8d8df…) → cleanup246c6c45→dc0af731, revfa9a2e28…. That is the same revision hash as before, so the config is byte-identical to the original. The temporary key is deleted, and the negative control returnsBadIdentityTokenRejected.At the end: health 200 ×3,
/fleetApplied, ServiceLevel 250, and FOCAS raw reads 21/22 Good (Program/BlockCountisBadNoData, the documented unreported field).GoodNoData;BadNoData|Calculatedbuckets;BadNoDataper time ✅SysTimeSec0..9; Avg/Min/Max/Count/Start/End match the in-process values; WTC1 outage window has the same Good/Uncertain/BadNoData shape ✅BadAggregateNotSupported. This is expected onfea7de0a: the native pair is opt-in there and is on by default from53978ca6, which is not deployed on vd03 (#694)BadHistoryOperationUnsupported; TimeAverage2BadAggregateNotSupported✅Historian writes: none. The gateway's
/metricsshowed onlyProbe,GetTagMetadata(5) andReadRaw(271) across the deploy, the reads and the cleanup. There was noEnsureTagsor any write method. The OtOpcUa log has no provisioning dispatch. ContinuousHistorization and AlarmHistorian are off on vd03.Why Int32 and Boolean were not run: a historized raw tag is the only way to get a history node, and every add calls the gateway's
EnsureTags. That call is an upsert that would retype and re-describe the existing AVEVA tag (SysTimeSec UInt2 → Int4; discrete SysPulse → Int2 analog). There is no opt-out, and the vd03 key hashistorian:tags:write. Filed as #899. The gate stayed zero-write only because the applier never provisionsFloat/Double/Byte/SBytetags. That is a separate bug, filed as #898.Leaving this open. Boolean and Int32 node typing, the outage, and the strict-ceiling items have only in-process evidence. Running them on a deployed node needs #899, or a gateway key without
historian:tags:write, or a gateway restart. Your call whether the in-process evidence closes them. No history probe was kept on DEV: it would start rewriting the AVEVA tags as soon as #898 is fixed.Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
Owner decision 2026-11-13: close #700 on a hybrid basis.
Accepted on the in-process evidence (
docs/plans/evidence/2026-11-12-historian-694-700-746/aveva-gate.md; production Gateway wiring against real AVEVA 2023 R2):BadNoCommunication;These exercise the gateway client, not the deployment, and running them live would mean stopping or reconfiguring DEV's HistorianGateway.
Still to run on the deployed vd03 endpoint:
EnsureTagsrewrite of the existing AVEVA tags);53978ca6).Both need an OtOpcUa master build that includes the #899/#898 fix deployed to vd03, which is approved as part of this decision. The deploy and the check follow once #899 lands.
Already passed on vd03 (
5683d89b): every other acceptance item.The remaining deployed checks can now run without writing (#899/#898, master
6c4d2990)Nothing has been run or deployed. This note covers what the vd03 Boolean/Int32 typing check can now use, and what to look out for.
Zero-write binding. Author the probe tags with
"historianReadOnly": truenext toisHistorizedandhistorianTagname, for example:SysPulse;SysTimeSec.With the flag set, the applier never puts the tag in an
EnsureTagsrequest and never feeds it to the continuous-historization recorder. HistoryRead is unchanged: the node still hasHistorizing=trueand the HistoryRead bit, and reads the named AVEVA tag. The gate no longer needs to rely on the type-name skip (#898, now fixed).HistorianReadOnlycolumn."true"as a string) is now the deploy errorHistorianReadOnlyInvalid. It can no longer deploy silently as an owned tag.Optional second guard.
ServerHistorian:ProvisionTags=CreateOnly(Gateway only) makes the provisioner look each tag up first. It leaves any existing AVEVA tag untouched.Offdisables provisioning altogether. Changing either needs a Host restart; neither is required for the check if the flag is used.Evidence to collect. As in
5683d89b, take gateway/metricssnapshots before and after. With the read-only flag there should be noEnsureTags,WriteLiveValuesorAddTagExtendedPropertiescalls.CreateOnlyalone would addGetTagMetadatalookups for owned tags only; read-only tags are never looked up.⚠️ Preflight before deploying this build to vd03. Since #898, the first host start provisions (upserts) every existing historized Float, Double, Byte and SByte tag. Before the deploy:
historianReadOnly, or deploy withServerHistorian:ProvisionTags=CreateOnly.On the configuration as recorded in
5683d89b(revisionfa9a2e28…), the #700 gate tags are gone. I have not checked whether any FOCAS tag is historized.Native TimeAverage/Total (default-on since
53978ca6) is unaffected by this change and still needs that master build on vd03.Both remaining deployed-endpoint checks passed on DEV vd03. Closing #700 on the owner's hybrid basis.
Deploy. vd03 was upgraded
fea7de0a→ master6c4d2990, the #899/#898 read-only historian binding. The deploy is pinned to that SHA;efaf3435(#900) is not deployed.Program/BlockCountBadNoData).docs/deploy/2026-11-13-vd03-fea7de0a-to-6c4d2990.md.Checks. The probe tags were authored with
historianReadOnly: true(a temporary Calculation driver,gate700ro). Evidence:docs/plans/evidence/2026-11-13-historian-700-vd03/vd03-endpoint-gate.md(second run; commit9375c9e2).SysPulseBadAggregateNotSupportedup front (#897) ✅SysTimeSecBadNoDatafor each all-NULL interval ✅No historian writes. HistorianGateway
/metricsshowed onlyProbe,GetTagMetadata(+3),ReadRaw(+12) andReadAggregate(+6, the six native reads), across the upgrade, the temporary deploy, the probe and the cleanup. There was noEnsureTags,WriteLiveValues,AddTagExtendedPropertiesor any other write. The OtOpcUa log has no provisioning line.Cleanup. The temporary tags, device, driver, script and key were removed. Deployment
595cb909is back at revisionfa9a2e28…, byte-identical to the original, and/fleetshows it Applied. The deleted key's negative control returnsBadIdentityTokenRejected.Outage, strict-ceiling and cooldown are accepted on the in-process evidence, per the owner decision above.
Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi