fix(opcua): #1041 a device confirmation arriving after a newer write's revert lands instead of being dropped

#979 follow-up 1: write A then B, B refused first (node reverts to the pre-A value P), the
device confirms A afterwards. The revert closed the overlap window and A's success was dropped
as an outcome from a closed window, so the node showed P while the device held A until the
next driver publication. EquipmentVariableState.CloseWindowAfterRevert now keeps the window's
still-pending older attempts (bounded like the window, carried across later reverts above the
confirmed floor); a late success of one lands its tuple (LateConfirm) when nothing touched the
node since the revert, or becomes the confirmed tuple of a window opened since. A driver
publication or a newer owner's success discards them.

#979 follow-up 2 (dependents keep last value during operator Restart / config respawn): not a
defect - the stopped child's PostStop comms-loss fan (03/S15) reaches the dependency mux and
hands dependents BadNoCommunication until the new driver object publishes. Pinned by two new
DriverHostActorSourceRemovedTests (identical-value recovery); mutation-checked: removing the
PostStop ConnectivityChanged fails both.
This commit is contained in:
Joseph Doherty
2026-12-03 15:10:17 -05:00
parent cc7155e5e9
commit 186b5d696d
5 changed files with 207 additions and 1 deletions
+7
View File
@@ -156,6 +156,13 @@ either completion order) leave the node on its pre-A value and status, never on
audit event's `OldValue` reports that confirmed value. Each NodeId — the raw node and every UNS mirror —
keeps its own window; a write through one never touches the other, and both receive the next fan-out
publish.
A confirmation that arrives AFTER a newer write's refusal already reverted the node is not dropped (#1041).
The window's older attempts still pending at the revert stay eligible: if the device then confirms one, it
holds that value, so the node shows it (Good, the attempt's timestamp) when nothing has touched the node
since the revert; if a newer write owns the node by then, the confirmation becomes that window's confirmed
tuple, so a refusal of the newer write reverts to it. A driver publication, or the success of a newer
write, discards them — the node then holds something newer than any of them.
`WriteTune` and `WriteConfigure` are not separate tag-classification gates on this Value-write path.
## Remote write outcomes