fix(grpc-data): #1102 a client-filter suppression made against an in-flight value's old baseline is re-considered at its commit

The filter compares a newer source version against the last COMMITTED value, but the reader may hold an
earlier value past IsEligible and not yet committed. A tick in that window dropped a newer value equal to
the old baseline; the earlier value then committed and the client held it until the source changed again.

The worker now records the version it suppressed (cleared when a later version is queued). ValueDelivery.OnCommit,
committing a value older than that, rewinds LastConsidered and marks the source dirty so the next tick
re-evaluates against the new baseline. Pre-existing (predates #1098); independent of shared serving.

Tests (GrpcData1102FilterBaselineTests) park the in-flight value at the reader's pre-commit seam and run the
tick that considers the newer version to completion: value-equal and deadband cases fail without the fix
([2] instead of [2, 1]); a control pins that a queued newer value is still delivered exactly once.
This commit is contained in:
Joseph Doherty
2026-12-04 20:27:16 -05:00
parent ce0133b03c
commit db8e00a6af
4 changed files with 144 additions and 1 deletions
+7
View File
@@ -353,6 +353,13 @@ Follow-ups (#1098):
B, 21-48 B unattributed. The harness's hub samples carry a different serving than the items, so its tick still pays the 96 B re-stamp. Where they
match, a value reuses the read's sample object outright.
Fixed (#1102): **a client filter can no longer leave the client on a superseded value.** The filter (trigger / deadband) compares
against the last *committed* value, while the reader may hold an earlier value that passed its eligibility check but has not
committed yet. A tick in that window that saw a newer value equal to the old baseline dropped it; the earlier value then committed
and the client kept it until the source changed again. The worker now records the version it suppressed (cleared when a later
version is queued), and a commit older than that version re-considers the source against the new baseline. Pre-existing (not
caused by #1098's sample hand-off), and independent of whether the hub sample and the item share a serving.
### Mixed versions (X0 rollout)
The remote history and alarm work (`docs/plans/2026-11-23-grpc-data-connections-history-alarms-plan.md`)