Merge #995: alarm predicates compiled once outside the gate, node-indexed stood-down items, kept drivers not re-subscribed, artifact parsed once, VirtualTag/Calculation evaluation coalesced

This commit is contained in:
Joseph Doherty
2026-12-03 11:16:21 -05:00
28 changed files with 2034 additions and 217 deletions
+7
View File
@@ -874,6 +874,13 @@ Behaviours worth knowing before enabling it:
- **A client may delete a stood-down item** normally; the delete is absorbed (the item is already off
the fan-out) and a later restoring deployment does not resurrect it.
A stood-down item (data or event) is on no fan-out list, so when a deploy **removes its node** the removal
finds it through a per-node index of tracked items, tells a data item `BadNodeIdUnknown` and forgets it
(else it would keep the dead node in the SDK's component cache). Since #995 (U-5) that lookup costs the
removed node's own items — it used to scan every tracked item per removed node, so a rebuild or a surgical
apply removing thousands of nodes was O(nodes × items) under the node manager `Lock` whenever any item
was stood down. A rebuild runs one unfiltered sweep.
**Server-object (`i=2253`, all-events) event subscriptions are filtered per event at delivery** (Gitea
#586). They used to be outside the ACL entirely: the SDK attached such an item to the fan-out of every
one of our root notifiers through `SubscribeToAllEvents`, and an equipment folder with no direct