feat(mtconnect): serve DATA_SET/TABLE as compact JSON strings; park EVENT enumerations (#650)

Parser captures Entry/Cell content; the observation index merges /sample deltas
into the /current baseline (resetTriggered replaces, removed deletes, UNAVAILABLE
drops). Fixture gains a TABLE item and periodic DATA_SET/TABLE churn.

Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
Joseph Doherty
2026-10-08 19:15:32 -04:00
parent 8801631739
commit f8f8eb9fb8
11 changed files with 537 additions and 39 deletions
@@ -747,7 +747,7 @@ public sealed partial class MTConnectDriver
// Built from the SAME authored tags as the shared index, so the authored-vs-unknown
// distinction and every coercion behave identically — it is a snapshot, not a variant.
var snapshot = new MTConnectObservationIndex(binding.IndexTags);
snapshot.Apply(current);
snapshot.Apply(current, baseline: true);
var results = new DataValueSnapshot[fullReferences.Count];
for (var i = 0; i < results.Length; i++)
@@ -2337,7 +2337,7 @@ public sealed partial class MTConnectDriver
private void ApplyAndFanOut(MTConnectStreamsResult document, bool baseline = false)
{
var index = ObservationIndex;
index.Apply(document);
index.Apply(document, baseline);
// #626: CONDITION observations also feed the alarm path, which keeps its own multi-condition state
// (a /sample Normal for one nativeCode is not a return to normal while another code is active).
@@ -2801,7 +2801,7 @@ public sealed partial class MTConnectDriver
}
var index = new MTConnectObservationIndex(binding.IndexTags);
index.Apply(current);
index.Apply(current, baseline: true);
Volatile.Write(ref _index, index);
// #626: the CONDITION tracker is per-session state like the index. Nothing is RAISED here — the