feat(grpc-data): A1 MarkConditionsKnown in OpcUaPublishActor — deferred beside alarm states, replayed after them (F2), discarded on a source's dropped/skipped projection (G3)

This commit is contained in:
Joseph Doherty
2026-11-24 09:27:53 -05:00
parent f49e4e100b
commit d64578b1c5
4 changed files with 336 additions and 7 deletions
@@ -482,7 +482,8 @@ public sealed class ScriptedAlarmHostActor : ReceiveActor
// A client reading Time/ReceiveTime after a rebuild should still see when the alarm went
// active, not when the address space happened to be rebuilt.
TimestampUtc: projection.Condition.LastTransitionUtc,
Realm: AddressSpaceRealm.Uns));
Realm: AddressSpaceRealm.Uns,
Source: OpcUaPublishActor.ScriptedSource));
reasserted++;
}
@@ -582,7 +583,8 @@ public sealed class ScriptedAlarmHostActor : ReceiveActor
AlarmNodeId: e.AlarmId,
State: ToSnapshot(e),
TimestampUtc: e.TimestampUtc,
Realm: AddressSpaceRealm.Uns));
Realm: AddressSpaceRealm.Uns,
Source: OpcUaPublishActor.ScriptedSource));
// Publish the transition to the cluster `alerts` topic — the single historization + live
// fan-out path. The mediator was cached on the ACTOR thread in PreStart; we only Tell it here.