Commit Graph

5430 Commits

Author SHA1 Message Date
Joseph Doherty 4cf06261f1 fix(grpc-data): a demand disposed mid-publish no longer re-publishes a fresh baseline (#920)
Root cause of the Failed_sdk_item_construction flake: a failed SDK item
construction disposes its demand while the stream pump publishes that
registration's snapshot. The duplicate-baseline check read the dying demand's
IsValid as 'cache not fresh', so the same acquisition was re-published as a new
complete baseline to every item on the node, leaving an orphan proof candidate
(and shared budget charge) the SDK never consumes. HasFreshCachedLocked no
longer depends on demand validity; Publish re-checks the demand after it.
Regression test with a pump seam: red without the fix, green with it.

Bad_null different_timestamp flake is a test race: SDK 2.0.1 delivers node
changes to items asynchronously (MonitoredNode2 channel), so the published
sample could land after the mode cycle and overwrite the injected
notification. The test now waits until the SDK queued it.
2026-11-28 10:10:20 -05:00
Joseph Doherty cb672ea060 docs(grpc-data): re-measure per-condition memory with GC memory info (#929)
The X0 node-only harness used a GC.GetTotalMemory(true) delta, which on .NET 10
counts committed-but-free GC regions. Switched it to the L2 Measure() method
(full blocking GC, HeapSizeBytes - FragmentedBytes, settled working set):
79,085 B heap / ~90 KB WS per OffNormal condition (GetTotalMemory still reads
158,169 B, reproducing the old 160,997). Plan 5.5, X0/A3/A4-docs evidence and the
BytesPerCondition comment corrected; the default (160,000 B from the L2
in-server worst case) is unchanged.
2026-11-28 09:13:48 -05:00
Joseph Doherty 05f431f5d8 Merge #933/#934/#936: bounded hold for keys held by a definitively refused mapping, off-loop root re-resolve, removal RefreshRequired reaches admitted holders
v2-ci / unit-tests (push) Failing after 2h34m59s
2026-11-25 12:36:56 -05:00
Joseph Doherty 9929ded66c docs(grpc-data): A4 evidence — follow-ups review round 1 (#933/#934/#936): outcomes, red/green, S3 SDK evidence, gates, live fu933-2 8/8 2026-11-25 12:36:33 -05:00
Joseph Doherty 0c57f1abd7 Merge #935: a redeploy is a restatement — scripted alarms keep their in-memory condition across a same-process reload (no re-activation, no duplicate alerts row); review fixes
v2-ci / unit-tests (push) Failing after 13m32s
2026-11-25 12:17:29 -05:00
Joseph Doherty 024b074fe1 docs(evidence): #935 review round 1 — finding outcomes, S1/S3 decisions, red/green, gates, live fu935-2 F935 + A01–A08 8/8 2026-11-25 12:16:56 -05:00
Joseph Doherty e61db01686 fix(grpc-data): removal admission keyed on the credential, lazy + bounded, no stale verdict write-back (#936 review r1)
S3: the SDK installs a new identity object on every ActivateSession (decompiled
Opc.Ua.Server 2.0.1: Session.UpdateUserIdentity assigns EffectiveIdentity;
MonitoredItem/Subscription.EffectiveIdentity read the current session's), so an
object-keyed admission forgot a re-activated or transferred session. Admission
is now keyed on RoleCarryingUserIdentity.AdmissionKey (principal + api key id),
and a removal also tells an item that passes the current gate (uncached).
S4: the per-condition record is a lazily allocated locked HashSet<string> (no
ConditionalWeakTable per condition), one entry per credential, capped at 1024,
dropped after the removal's RefreshRequired is decided.
N4: Verdict writes back only while that instance is still live.
Tests: OI re-activation (red on revert), unit S3/S4 + N4 (red on revert); docs.
Also DataConnections.md for #933 r1 S1/S2.
2026-11-25 12:06:02 -05:00
Joseph Doherty 9d969c4724 fix(grpc-data): follow-ups review r1 — the unknown-mapping hold spares a transient mapping's own keys and pauses with no live stream (#933); cancel abandoned root fetches (#934)
S1: a held key that a transiently unknown mapping listed itself (_lastListed) is
held without a bound; only a definitive refusal of that mapping (Denied /
NotFound / Unsupported / ConditionCapacity, remembered across retries and stream
ends) starts its MaxUnknownHold clock. Consistent with a never-opening stream.
S2: the hold clock runs only while a stream is past its barrier (paused at the
stream end, shifted at the next barrier).
N1: in-stream root re-resolves run under a per-stream source cancelled when the
stream ends. N2: no held-expiry timer without a sink (spin). N3: MaxUnknownHold
must be positive. N5: #933 test lower bound taken before the hold starts; tests
for S1, S2, N1, N2, N3 and a second failed re-resolve — each red on revert.
2026-11-25 12:02:33 -05:00
Joseph Doherty 939ad2337d docs(grpc-data): A4 evidence — follow-ups #933/#934/#936 decisions, red/green, gates, live fu933-1 8/8 2026-11-25 11:51:03 -05:00
Joseph Doherty 4df38b8642 docs(scripted-alarms): #935 review round 1 — engine incarnation, failed load ends the generation, commands under the gate, no write-back of a restatement, production store is LocalDb 2026-11-25 11:45:00 -05:00
Joseph Doherty 02d227cc32 fix(scripted-alarms): #935 review round 1 — commands look up under the gate, a restatement writes nothing, a failed load ends the generation
S1: ApplyAsync looked its alarm up before taking _evalGate, so a command racing a
LoadAsync applied to the load's interim Fresh entry (an ack no-op that then saved Fresh
over the carried Active condition — the #935 re-Activate on the next push) or wrote an
old-generation state over the new one. The lookup is now under the gate: a command
queued behind a load applies to the generation that load produced. A command that
changes nothing (value-equal result) writes nothing.

S2: a load re-saved every alarm's post-predicate state, so a node that missed an
operator command upserted its stale carried state over the LocalDb last-writer-wins row
on every deploy. A held seed (carried or persisted) left value-equal is not written.
The push path's ReferenceEquals check (always false: ApplyPredicate returns a clone)
is now value equality too, so a no-op re-evaluation no longer writes/replicates.

S3: a failed load ends the generation. The engine is blind until the next good load,
so (decision, same rule as removed/disabled alarms) that load reads the store — a
still-true alarm is a new occurrence — instead of restating the pre-failure snapshot.
While blind, operator commands throw ScriptedAlarmCommandRejectedException (the host
logs it distinctly; the command topic is fire-and-forget, so that Warning is the
record) and queued re-evaluations / shelving checks are dropped.

N5: a timed shelve that expired before a load is unshelved through the shelving check
(AutoUnshelve audit + Unshelved emission), not silently by ApplyPredicate.

Tests (each red on revert, verified): ack racing a held load (S1), idempotent command
(S1), restatement vs real change saves (S2), no-op push saves (S2), command rejected
after failed load (S3), re-evaluation after failed load (S3), failed load -> new
occurrence + store fault mid-seed -> one Activated (S3/S4), runner Unavailable at
reload freezes carried state (S4), expired timed shelve at load (N5). N4: the Bad-input
reload test now waits on a Good-bucket QualityChanged.
2026-11-25 11:44:20 -05:00
Joseph Doherty 18154eeff4 fix(grpc-data): removal RefreshRequired reaches the holders after their mapping left the deployed set (#936)
QueueRefreshRequired decided per item with the CURRENT gate (CanSee over the
current mapping set), so when a deploy removed the mapping or its connection
nobody passed and the §5.2 removal + RefreshRequired was never delivered.
Each imported condition instance now records (weakly, per identity) every
identity the §5.4 gate admitted to it — the verdict cache's compute is the
only place a positive verdict is made, and every delivery, refresh replay and
Read/Browse goes through it. A removal's RefreshRequired goes to the collected
targets whose identity was admitted to the removed instance. The event carries
no condition data (SourceNode=Server); a never-admitted session still gets
nothing. OI test pins both: holders told after the gate admits nobody, the
ungranted session not (with a must-arrive RefreshEnd control).
2026-11-25 11:01:01 -05:00
Joseph Doherty 5d946fde55 fix(grpc-data): move the in-stream root re-resolve off the condition frame loop (#934)
RetryDueAsync awaited the root metadata request (10 s budget) inside the
frame loop, stalling every mapping's frames on that connection while the
origin's metadata was slow. The request now runs as a task (FetchRootsAsync
reads only the immutable root views); the task joins the loop's wake set
beside the retry timer, and its answer is applied on the loop
(ApplyResolvedAsync: RootView or MarkRefused, then the re-add). All runner
state stays loop-owned. While resolving the mapping is Unavailable (unknown,
T2) and is not re-scheduled. Test: a hung second metadata call no longer
blocks another mapping's delta; releasing it re-adds the item exactly once.
2026-11-25 10:58:28 -05:00
Joseph Doherty f0526753ac docs(scripted-alarms): a redeploy is a restatement; restart behaviour stated accurately (#935) 2026-11-25 10:58:01 -05:00
Joseph Doherty a310ba278f test(scripted-alarms): host-level redeploy restates an acked active alarm (#935) 2026-11-25 10:57:29 -05:00
Joseph Doherty 2eb31f62d2 fix(grpc-data): bound the unknown-mapping hold of imported conditions (#933)
A key no known mapping lists was kept stale for as long as ANY mapping of the
connection was unknown; a durably Denied/Unavailable mapping therefore kept
retired conditions forever. Scoping the hold to mappings that could list the
key is not provable on the consumer (placements are origin deploy-time config;
a dropped key may have moved into the unknown mapping's root), so the hold is
time-boxed per key: ProjectedConditionOptions.MaxUnknownHold (20 min) — past it
the key is removed (+ RefreshRequired at the sink), never known-inactive. The
since-time survives stream ends and hand-overs; the earliest expiry shares the
loop's retry timer. DataConnections.md: lifetime rule + troubleshooting row.
2026-11-25 10:56:23 -05:00
Joseph Doherty ec245b84a9 fix(scripted-alarms): a same-process reload restates a surviving alarm from its in-memory condition (#935)
ScriptedAlarmEngine.LoadAsync runs on every deploy and used to seed each alarm
from IAlarmStateStore, which in production does not persist Active. A
still-true predicate then made every deploy an Inactive->Active transition:
Acked reset, Activated emission (duplicate alerts row), LastTransitionUtc moved.

Seed is now previous ?? persisted ?? Fresh: the last COMPLETED generation's
in-memory condition is captured under _evalGate before the clear and kept
across a failed load. Process restart is unchanged.
2026-11-25 10:54:45 -05:00
Joseph Doherty 179881f45c Merge A4: condition diagnostics + AdminUI, #930/#931, deploy hold for imported conditions, docs, live A01–A08 8/8 (a4s-7) — gRPC data history+alarm plan complete
v2-ci / unit-tests (push) Failing after 1h50m40s
2026-11-25 04:44:34 -05:00
Joseph Doherty e68e4cc8bf docs(grpc-data): A4 review round 2 — S1–S4 + NIT outcomes with red/green, degraded-apply decision, gates, live a4s-7 8/8 PASS
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-25 04:44:07 -05:00
Joseph Doherty dc5ed011ce test(grpc-data): A03 phase 1 permits exactly one RefreshRequired after the held-set takeover (still forbids extra condition events); docs: the deploy hold settles on any completion, is bounded, reports held, and resyncs once
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-25 04:07:58 -05:00
Joseph Doherty 6bdca132fe test(grpc-data): A4 review r2 NITs — F4 ungranted caller is refused without promoting the folder (fake gate honours ConditionBearing; control is BadUserAccessDenied), EventId retention across a held-set takeover
Adds the ProjectedFolderEventNotifier test observation.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-25 04:07:19 -05:00
Joseph Doherty d72f2d966d fix(grpc-data): A4 review r2 S1–S4 — the deploy hold reads one (placements, undecided) set, settles on any completion, is bounded (stale + MaxHold, reported as held), and its takeover sends RefreshRequired once
- S1: ProjectedMappingDeploymentRuntime publishes ProjectedMappingSet (placements + undecided + sequence) captured under
  its lock; DeployedConditionMappings keeps it as one volatile value (highest sequence wins); ReconcileRunners reads
  IProjectedConditionMappings.Snapshot. Deterministic window test via a Changed handler registered before the adapter.
- S2: a separate _undecided flag clears on ANY completion (failed/degraded/throwing build ⇒ settled empty ⇒ release);
  browse-anchor Suspended semantics unchanged. A held set goes BadNoCommunication on the stale timeout and is released
  past ProjectedConditionOptions.MaxHold (5 min); diagnostics report "held" and keep its counters; Dispose clears _held.
- S3: a runner that took over a non-empty held set sends RequireRefresh once at its first barrier.
- S4/NITs: runtime-level Began/Completed tests, F1 must-arrive control, linger-expiry-while-held.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-25 04:04:07 -05:00
Joseph Doherty 5752243724 docs(grpc-data): A4 gates after F1–F4 fixes + full A01–A08 run (2) a4s-6 — 8/8 PASS 2026-11-25 03:45:02 -05:00
Joseph Doherty 0c253b66df docs(grpc-data): A4 F1–F4 root causes, design decision (consumer holds imported conditions across its own deploy; promote-on-admission), native ack freeze = opc-plc behaviour; #935 #936 filed 2026-11-25 03:10:38 -05:00
Joseph Doherty e4b9998ca4 fix(grpc-data): A4 F4 — an admitted folder event item promotes a projected folder that materialised before its mapping was condition-bearing
OnProjectedFolderMaterialised promotes condition-bearing mapping folders to
SubscribeToEvents only at materialisation, and IsConditionBearingMapping needs the
mapping's authority active. On a freshly restarted consumer the projected pages
materialise before that authority activates, and nothing re-promoted them, so a
folder-first event item was refused BadNotSupported by the SDK
(MonitoredNodeMonitoredItemManager checks EventNotifier) until an i=2253 item
opened demand and a condition got wired there.

SubscribeToEvents: once the projected-notifier admission (mapping gate) passes,
PromoteProjectedEventFolder re-evaluates IsConditionBearingMapping and promotes
the folder before the SDK attach. Unauthorized callers are refused before it.

Test: F4_a_folder_materialised_before_its_mapping_was_condition_bearing_… (control:
refused while not condition-bearing; red with the promotion removed).
2026-11-25 03:08:09 -05:00
Joseph Doherty 1b7c69c6ec fix(grpc-data): A4 F1-F3 — a deploy's undecided empty mapping set holds imported conditions instead of removing and re-creating them
Every deploy begins a catalog attempt whose published mapping set is empty
(ProjectedMappingDeploymentRuntime.AttemptBegan → Notify([])). The consumer read
that as 'connection removed': runner Stop(removeConditions: true) tore down every
imported condition, and the post-deploy runner re-created them on fresh nodes —
one phantom event per condition (F2), an origin transition delivered twice (F3),
and every outstanding consumer EventId BadEventIdUnknown with no RefreshRequired
(F1; the removal's RefreshRequired was gated away because nothing was visible).
Root-caused live on a4dbg-1 (consumer applies a fresh-node 'marker null->M' record
right after its own deploy).

IProjectedConditionMappings.Suspended (DeployedConditionMappings → runtime
Suspended): while suspended a dropped connection's runner is stopped WITHOUT
removal and held; the next runner takes its materialised set over and
re-snapshots onto the same nodes (same marker ⇒ no event, EventIds kept). Only a
SETTLED set without the connection (or demand linger) releases the held runner,
which removes its conditions then.

Test: F1_a_deploys_empty_suspended_mapping_set_holds_the_conditions_… (red with
the hold disabled: removal on the suspended set).
2026-11-25 03:08:03 -05:00
Joseph Doherty 688cff5812 docs(grpc-data): A4 live scenarios part 2 + full A01–A08 run (a4s-5) — A06/A07 PASS, A03 plan path PASS with findings F1–F3 (deploy-driven EventId invalidation, phantom re-assert event, duplicate transition across stream reset), F4 folder-first refusal; D6/D7 verdicts; CLI EventType line 2026-11-25 02:46:06 -05:00
Joseph Doherty 7425b4c4fe test(grpc-data): A03 native D7 probe uses AddComment (a forwarded native ack froze opc-plc's EastTankYellow at the origin for the rest of a4s-4) 2026-11-25 02:28:20 -05:00
Joseph Doherty 42e3800f2c test(grpc-data): A4 part 2 — A03 gap via pause+stop, origin watcher + re-assert mirror check, latest-EventId positive control; duplicate-transition checks (A03/A06/A07); docs: folder-first event item still refused BadNotSupported (workaround: i=2253 first) 2026-11-25 02:04:30 -05:00
Joseph Doherty 9ea50c11b2 test(grpc-data): A4 live scenarios part 2 harness — A03 origin failover (same-incarnation stream reset via mapping revision bump, clear-and-re-raise in the gap, RefreshRequired, BadEventIdUnknown, refreshed EventId acks), A06 consumer Primary change across both nodes + second CONSUMER principal fixture-cli-alt, A07 consumer restart refresh-vs-barrier; CLI alarms prints EventType (names RefreshStart/End/Required) 2026-11-25 01:44:58 -05:00
Joseph Doherty c82b8683b0 docs(grpc-data): A4 live scenarios part 1 — A01/A02/A04/A05/A08 PASS on a4s-2, observations, part-2 harness notes 2026-11-25 01:37:21 -05:00
Joseph Doherty 6bf7dc8930 test(grpc-data): A4 scenarios — native alarm on EastTank?Yellow (cycles live), condition mappings WriteThrough (DataMappingOperationsInvalid), folders subscribe after demand opens, ConfirmedState read, origin audit for A08 denial 2026-11-25 01:23:14 -05:00
Joseph Doherty 304e8b1b7d test(grpc-data): A4 live scenarios part 1 harness — run-owned opc-plc --alm, native alarm + 2 referencing equipment + 3 condition mappings, UNS-only origin principal, no-grant consumer principal; probe condition-records; node-probe alert-transitions; conditions_scenarios.py (A01/A02/A04/A05/A08) 2026-11-25 01:05:53 -05:00
Joseph Doherty 283790a646 docs(grpc-data): A4 review round 1 — findings table, red/green, S4 decision, gates, live a4r1-cond-1 PASS 2026-11-25 00:51:13 -05:00
Joseph Doherty 0cac09cee3 fix(grpc-data): A4 review r1 — AdminUI helpers null-safe + doc comments restored; metric descriptions name both sides; docs: S1/S2/S3 behaviour, RefreshRequired only on a changed incomplete set, SourceName vs runtime status (S4), scripted Good = applied, A4-docs citations 2026-11-25 00:22:54 -05:00
Joseph Doherty c93290d0a0 fix(grpc-data): A4 review r1 — B1 unique capacity-reset command id (fake now rejects reused ids); S1 retry timeout keeps buffer+claim; S2 late ack of a superseded re-add removes the orphan + InvalidArgument backstop; S3 overlap only for keys the mapping itself held; S4 SourceName independent of runtime status; NITs resyncs count opened streams, prune removed connections' counters 2026-11-25 00:20:26 -05:00
Joseph Doherty b2fab8b075 test(grpc-data): #928 — overflow test asserted one of two legal outcomes; deterministic Reset test + either-outcome contract test; DataConnections.md A4 reconcile (#930 retries, condition metrics, AdminUI fields)
The origin item sees a hub eviction only at its next hub read: Reset if the last snapshot chunk is
still undelivered, otherwise a silent fresh snapshot on the same stream (both per A2, both loss-free
since the A3 consumer swaps a buffered re-snapshot in as a full replacement). Since A2 review S5 the
3,000-record snapshot is 59 chunks and the silent path wins when run alone (fails 3/3 alone at the A2
merge too; passes in its class). No product change. Also fixes the stale ack/confirm/shelve comment on
ConditionMethodTimeoutMilliseconds.
2026-11-25 00:08:06 -05:00
Joseph Doherty 3be51e3b13 Merge a4-docs into a4-code 2026-11-24 23:47:13 -05:00
Joseph Doherty 4d11787745 docs(grpc-data): A4 code evidence — #930/#931 red/green, diagnostics, live a4c-cond-1 PASS, L1 PASS, L5 docker-dev PASS (production blocked), gates
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:46:37 -05:00
Joseph Doherty 82cf7fe155 test(grpc-data): A4 L1 harness — origin SnapshotConditions Lock hold with 1,000 conditions while publishing (opt-in OTOPCUA_L1=1)
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:24:24 -05:00
Joseph Doherty 969f3d4645 test(grpc-data): A4 manifest entry; condition-access tests wait for the barrier's RefreshRequired, not the barrier count
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:11:39 -05:00
Joseph Doherty f1f9f49813 feat(adminui): A4 imported/served condition diagnostics on the data-connections page
Per connection: stream state, last snapshot, conditions and state-unknown count, node budget vs host caps, RefreshRequired,
resyncs, capacity rejections, method outcomes, per-mapping status / observed vs MaxConditions (80% warning) / refusal.
Per node (origin panel): open condition items, largest listing vs its limit, last snapshot, resyncs, capacity
rejections, unsignalled (state unknown), methods served.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:06:51 -05:00
Joseph Doherty 9adadd14b4 test(grpc-data): A4 condition diagnostics — side-labelled metrics without ids, origin/consumer evidence, cluster-serializer round trip and older-payload decode
Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:05:36 -05:00
Joseph Doherty 78eb98ea13 fix(grpc-data): A4 #930/#931 — in-stream condition retries (no refresh storm), ConditionCapacity recovery, reconnect backoff, ledger, single RefreshRequired, parked-runner release; condition diagnostics core
#930 N2: an Unavailable mapping (refused item, failed root, snapshot timeout) is retried on the OPEN stream by
re-adding its item (AddSubscriptionItems) on its own backoff — definitive refusals (Denied/NotFound/Unsupported)
on LongRetryDelay (5 min, doubling to 4x), transient ones on the snapshot timeout x 2^n (<= 8x) — so healthy
mappings are never re-snapshotted for it; an incomplete barrier whose incomplete set equals the previous barrier's
sends no RefreshRequired. N3: ConditionCapacity is retried in-stream on the long timer and recovers.
#931 N4 exponential reconnect backoff (MaxReconnectDelay 60 s); N5 held-but-unlisted keys charged beside known
claims (overlapping unknown ones) + SetMaterialised cap report; N6 method calls read Serving without _gate;
N7 a capacity reset that removed conditions sends no second RefreshRequired; N8 a parked runner is released once
its removal finished.
A4 diagnostics core: DataConnectionConditionDiagnostics (side-labelled items/resyncs/capacity/method metrics, new
refresh_required counter, consumer + origin evidence), Commons contracts, DI + deployment-runtime + driver-host wiring.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-24 23:03:53 -05:00
Joseph Doherty 916c14eca1 docs(grpc-data): A4 docs — feature negotiation, imported conditions end to end, method status table, limits, security, ScadaBridge impact
DataConnections.md: x-otopcua-data-features negotiation; condition forwarding (key secret, bits 64/128/256, AllowGalaxyServiceAck,
methods + status codes, limits/defaults, troubleshooting); corrects the A2a 'deploy adds/removes arrive as deltas' claim (a deploy
ends the stream). AlarmTracking.md: Imported conditions. ScriptedAlarms.md: known after the first completed evaluation; what
forwards. security.md: imported-condition gate, per-caller method re-check, service principal, on_behalf_of, audit category.
Evidence A4-docs.md: plan-vs-code disagreements, TODO markers for the A4 code merge, ScadaBridge consumer impact.
2026-11-24 22:58:23 -05:00
Joseph Doherty 9143804987 Merge A3: consumer imported-condition registry, visibility, event delivery and lock-free remote condition methods (L2/L3 pass, live conditions_a3_smoke PASS)
v2-ci / unit-tests (push) Failing after 3h13m48s
2026-11-24 22:47:04 -05:00
Joseph Doherty 81ac1d5263 docs(grpc-data): A3 verification review round 2 — N1 fix + red/green, clone pin, gates, live a3v2-cond-1 PASS 2026-11-24 22:46:42 -05:00
Joseph Doherty c8b35d494f fix(grpc-data): A3 verification r2 — N1 runner predecessor chain dropped after hand-over + stopped runner clears its record sets; correct the SentMessageQueue clone comment and pin the EventFieldList MemberwiseClone dependency 2026-11-24 22:26:09 -05:00
Joseph Doherty 5bece2a5a5 docs(grpc-data): A3 round 2 — pooled EventFieldList root cause, L2 re-measured (PASS), gates, live a3r2-cond-1 PASS 2026-11-24 22:11:28 -05:00
Joseph Doherty b884db5fb1 perf(grpc-data): A3 r2 L2 — EventId window back to the plan's 8; measure the retained heap, not GC.GetTotalMemory
GC.GetTotalMemory on .NET 10 regions reported +92 or +218 MiB (bimodal) for the same
state; GCMemoryInfo heap size and a heap dump (136 MB of objects, eeheap allocated
136,318,696 / committed 236,208,128) show the extra was committed-but-free regions.
The harness now takes HeapSizeBytes-FragmentedBytes after a full blocking GC and the
settled working set, and asserts BOTH <= 200 MiB. Worst case (2 placements, 8 slots,
3 event items, Live+Buffer): heap +106.5 MiB, WS +151.3 MiB max of 3 runs.
BytesPerCondition 230,000 -> 160,000 (max WS/condition 158,629, rounded up);
MaxImportedConditionBytes default 160,000 x 2,500 = 400,000,000 B (~381 MiB).
2026-11-24 21:46:21 -05:00