fix(grpc-data): A1 review round 2 F1 + F2 — an ack-revert establishes nothing; every Good edge withdraws; Bad edge forgets unsignalable
F1: RevertNativeAlarmAck projected through WriteAlarmCondition, which re-marked a comms-withdrawn native condition known; with the Good edge's conditional withdrawal skipped (GoodSinceUtc null) it read known-inactive-Good until the replay. AlarmStateUpdate.EstablishesState (false for the revert) rides a new default sink overload WriteAlarmCondition(..., establishesState) through the deferred and SDK sinks to the node manager, and every Good edge now withdraws unconditionally. F2: the Bad edge clears the unsignalable set, so a stale report cannot arm the backstop on the next Good edge. The rig's CollectAlarmTraffic skips withdrawals (every edge now sends one).
This commit is contained in:
@@ -2680,7 +2680,10 @@ public sealed partial class DriverHostActor : ReceiveActor, IWithTimers, IWithUn
|
||||
"reverting the condition to unacknowledged", _localNode, conditionNodeId, reason);
|
||||
// Native conditions live in the Raw realm at their bare NodeId (the apply pass's single raw condition).
|
||||
_opcUaPublishActor?.Tell(new ZB.MOM.WW.OtOpcUa.Runtime.OpcUa.OpcUaPublishActor.AlarmStateUpdate(
|
||||
conditionNodeId, snapshot, DateTime.UtcNow, AddressSpaceRealm.Raw));
|
||||
conditionNodeId, snapshot, DateTime.UtcNow, AddressSpaceRealm.Raw,
|
||||
// Review round 2 F1: the projector's cached prior state, not a driver transition — it establishes nothing
|
||||
// (a condition withdrawn by a comms loss must stay unknown until its driver signals again).
|
||||
EstablishesState: false));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user