Commit Graph

481 Commits

Author SHA1 Message Date
Joseph Doherty 92dbe7bf90 Merge fix/258-worker-followup 2026-12-03 13:14:22 -05:00
Joseph Doherty bb63c8ba72 perf(worker): alarm poll loop parks until a subscription activates instead of ticking (MXA-011, #258)
ci / windows-x86 (push) Successful in 3m10s
ci / java (push) Failing after 11m14s
ci / portable (push) Failing after 19m30s
The poll loop skipped the STA hop while unsubscribed but its timer still woke
every interval (a Task.Delay timer plus a thread-pool continuation per tick on
every idle worker). It now parks on a semaphore while IsSubscribed is false and
is released by the handler's new SubscriptionActivated event; a subscribe that
races the park is kept by the semaphore count. While subscribed it never parks,
so failover polling and probes (MXA-001) are unchanged, and shutdown cancels a
parked loop like a sleeping one, so the MXA-003 join and grace bound hold. The
failure run resets when the loop parks.
2026-12-03 13:10:35 -05:00
Joseph Doherty a38578d0e2 perf(worker): alarm watch-list update diffs the subtag standby instead of rebuilding it (MXA-010, #258)
UpdateAlarmWatchList rebuilt the standby: a second MXAccess registration, an
AddItem/Advise for every watched subtag, then an Unregister of the old source —
work proportional to the whole list for a one-alarm change (reproduced by the
previous commit's test). The subtag standby now takes the list as a diff:
added alarms' subtags are advised on the existing source, removed alarms'
subtags are unadvised, and unchanged alarms keep their advice and state.

The update stays all-or-nothing: the list is validated and the additions
advised before the swap, and an advise failure unadvises what it added and
keeps the previous list. A changed target starts fresh and is initialised from
the last delivered subtag values (acked/priority before active, MXA-007; bad
quality still ignored, MXA-005). LmxSubtagAlarmSource tracks an item from
AddItem so an Advise failure is retryable and removable.
2026-12-03 13:10:31 -05:00
Joseph Doherty 0967fe0730 perf(sessions): bound a sparse array write by the worker command limit before expanding it (SES-008, #258)
IWorkerClient gains MaxCommandBytes (the negotiated frame maximum less the
sequence-stamp allowance, the bound its CommandTooLarge pre-check uses).
GatewaySession passes it as a byte budget into SparseArrayExpander, which
charges a lower bound of each expanded array's encoding (default-valued slots)
before allocating, so an oversized sparse write - or a bulk command whose
sparse values together overrun the frame - is rejected with InvalidArgument
without the million-slot allocation.
2026-12-03 13:08:29 -05:00
Joseph Doherty a606407fc4 perf(dashboard): NativeDialog sends update() only on busy/generation change or a reported submit (DSH-008, #258)
JS now reports when a submit raises its in-flight pending flag, and a cancel
request marks the same, so the next render clears pending through update()
without update() running on every snapshot tick. Escape still works after a
rejected submit.
2026-12-03 13:04:28 -05:00
Joseph Doherty d5068c4e92 Merge fix/review-2026-12-phase5 (2026-12-02 review fix plan)
Conflicts resolved:
- WorkerClient: keep the WRK-003 deadline-bound enqueue and carry the WRK-010 pre-computed
  envelope size through both the TryWrite fast path and the slow path.
- AlarmsHub: prime each connection (DSH-005) and then count it for the idle-gated publisher
  (DSH-009); a connection that fails priming is never counted, so never decremented.
- GatewayDashboardDesign.md: describe both.
2026-12-03 10:19:19 -05:00
Joseph Doherty ece16a150a Merge fix/review-2026-12-phase4 (2026-12-02 review fix plan) 2026-12-03 10:18:43 -05:00
Joseph Doherty cc7a0c0b40 Merge fix/review-2026-12-phase3 (2026-12-02 review fix plan) 2026-12-03 10:18:43 -05:00
Joseph Doherty f616a551d2 Merge fix/review-2026-12-phase2 (2026-12-02 review fix plan) 2026-12-03 10:18:43 -05:00
Joseph Doherty c05bb904b4 Merge fix/review-2026-12-phase0 (2026-12-02 review fix plan) 2026-12-03 10:18:42 -05:00
Joseph Doherty 0ccf3d400b fix(alarms): diff across monitor restarts, version reconciles, cache the watch-list (SEC-005..SEC-010, #250, #254)
ci / windows-x86 (push) Successful in 3m34s
ci / java (push) Failing after 12m34s
ci / portable (push) Failing after 24m29s
- SEC-005: a lifecycle that ends keeps its cache as the previous
  generation; the next lifecycle's first reconcile diffs against it and
  broadcasts Clear for alarms gone during the gap (derived from the new
  worker snapshot, documented in gateway.md as a reconcile repair, not a
  synthesized event). The retired set is hidden from CurrentAlarms; gap
  joiners get the whole set. Each lifecycle start broadcasts its
  re-baselined provider status.
- SEC-006: live transitions stamp a sequence; a reconcile leaves alarms
  changed live after it was issued alone (no stale Clear / re-raise).
- SEC-007: an Acknowledge of an uncached alarm is broadcast but no longer
  inserts an ActiveAcked row; other non-Raise kinds do not touch the cache.
- SEC-009: a changed original raise time is a Raise repair; a non-OK
  reconcile is logged/surfaced and fails the initial reconcile.
- SEC-008: watch-list resolution cached per Galaxy deploy time and
  fingerprinted by SHA-256 once per resolution; refresh runs on its own
  loop; the failover-edge refresh is bounded to 10 s.
- SEC-010: restart backoff doubles from 5 s to a 5 min cap and resets on
  Monitoring; repeated identical faults log one summary line.
2026-12-03 10:08:07 -05:00
Joseph Doherty eb37565e59 fix(dashboard): prime new /hubs/alarms connections with the current snapshot (DSH-005, #254)
The publisher's single monitor subscription is primed once, normally
before any browser connects, so a later client saw only subsequent
transitions and never the standing alarms or provider status.
AlarmsHub.OnConnectedAsync now joins the group, sends the caller a
generation-0 AlarmFeedReset, then the status frames, active alarms and
snapshot_complete from a fresh subscription, redacted by ShowTagValues.
2026-12-03 10:08:07 -05:00
Joseph Doherty 8e720bc727 fix(worker): bound shutdown alarm steps by the grace; watchdog stands down while shutting down; startup handshake deadline (MXA-003, WIP-007, WIP-009, #253)
ci / windows-x86 (push) Failing after 11m18s
ci / java (push) Failing after 11m43s
ci / portable (push) Failing after 12m6s
2026-12-03 10:07:41 -05:00
Joseph Doherty a474d3219b fix(grpc): configure Kestrel HTTP/2 keepalive (60 s ping, 10 s timeout) under MxGateway:Protocol (SES-005, #253) 2026-12-03 10:03:53 -05:00
Joseph Doherty 152a12cea9 fix(dashboard): enforce auth lifetimes on live hub connections and circuits (DSH-006)
Hub tokens and cookies bounded only the handshake: an open hub socket kept its
connect-time roles and tag grants indefinitely, and a Blazor circuit never
revisited its sign-in. The hub-token ticket now carries the token expiry and the
hubs are mapped with CloseOnAuthenticationExpiration. Circuits use
DashboardRevalidatingAuthenticationStateProvider, which signs a circuit out past
the cookie's 8-hour idle lifetime or when a role it holds is no longer granted
by GroupToRole. LDAP membership changes and sign-out in another tab are still
only picked up at the age limit or on reconnect (documented).
2026-12-03 09:59:08 -05:00
Joseph Doherty 9c3a4c0eae fix(sessions): drop per-session event metrics after the session dispose (WRK-008, #253) 2026-12-03 09:57:41 -05:00
Joseph Doherty 196465ef9c fix(workers): fail fast when the worker exits before connecting; launch-cleanup Kill never masks the launch error (WRK-002, WRK-006, #253) 2026-12-03 09:56:05 -05:00
Joseph Doherty 835ed0bd04 fix(auth): revoking, rotating or deleting a key ends its open gRPC streams (SEC-004)
A streaming call was authenticated only at open, and revoke/rotate/delete only
evicted the verification cache, so a leaked key's open StreamEvents/StreamAlarms
kept delivering after the revoke. The interceptor now registers every streaming
call by key id in ApiKeyStreamRegistry and gives the handler a call context
whose token also fires on revoke; the dashboard key actions call Revoke, and the
call ends with Unauthenticated.
2026-12-03 09:55:43 -05:00
Joseph Doherty 2ee57a70fe fix(config): bound Alarms:ReconcileIntervalSeconds and Events:ReplayRetentionSeconds (SEC-011, #254)
ReconcileIntervalSeconds must be 1..86400 when alarms are enabled (a huge
value faulted PeriodicTimer inside an unobserved task, silently ending
reconciliation); ReplayRetentionSeconds must be finite and at most a day
(Infinity passed startup and then threw in TimeSpan.FromSeconds on every
StreamEvents). A faulted reconcile loop is now logged and surfaced.
2026-12-03 09:52:22 -05:00
Joseph Doherty b74a231f75 fix(worker): hold subtag alarm state on bad quality; keep an initial-sync ack (MXA-005, MXA-007, #254)
LmxSubtagAlarmSource now passes the OnDataChange quality through. The
subtag state machine ignores InAlarm/Acked updates that are not good
quality or carry no value instead of coercing them to false (which read
as a Clear). An Acked=true buffered before the first InAlarm value is
the initial state of an already-acked alarm and survives the raise.
2026-12-03 09:52:22 -05:00
Joseph Doherty 2c22ae6bd4 fix(workers): bound the heartbeat skip by heartbeat age on the monotonic clock; deadline covers the enqueue; a reply that wins the timeout race is returned (WRK-001, WRK-003, WRK-004, WRK-005, #253) 2026-12-03 09:52:19 -05:00
Joseph Doherty 824107a56b fix(auth): cached verifications skip the limiter; success no longer wipes the key aggregate (SEC-002, SEC-003, #245)
SEC-002: once a key id's cross-peer aggregate tripped, every request for it -
including the holder's cached ones - competed for one probe slot per interval,
so a spray of bad secrets against the public key id denied the key to its
holder. The interceptor and /metrics handler now serve a cached success before
consulting the limiter, and an address that verified the key in the window is
exempt from the aggregate on a cache miss.

SEC-003: Reset removed the aggregate on every success, so a key in steady use
never accumulated one. Success now clears only the caller's own partition; the
aggregate decays by window.

Also corrects the MetricsAuthenticationHandler remark left stale by SEC-001.
2026-12-03 09:51:08 -05:00
Joseph Doherty 09da8063a9 fix(sessions): reject a StreamEvents resume cursor ahead of the stream with InvalidArgument (SES-006, #256) 2026-12-03 09:48:27 -05:00
Joseph Doherty a9f884f370 fix(auth): partition the API-key failure limiter on remote IP, not IP:port (SEC-001, #244)
ServerCallContext.Peer carries the client's ephemeral source port, so every new
connection was a fresh limiter partition and a sprayer could reconnect before
reaching the limit. Both auth surfaces (gRPC interceptor, /metrics handler) now
derive the partition address through ApiKeyThrottlePeer, which strips the port
and reduces IPv4-mapped IPv6 to IPv4.
2026-12-03 09:48:03 -05:00
Joseph Doherty 159524edd9 fix(dashboard): close the dropped live-read session; subscribe-and-track off the caller's token (DSH-002 #248, DSH-007, #253) 2026-12-03 09:47:46 -05:00
Joseph Doherty 9756ab843e perf(audit): indexed, chunked retention sweep that runs off the startup path (SEC-014, #256) 2026-12-03 09:46:43 -05:00
Joseph Doherty 27fdb576ba fix(dashboard): enforce page [Authorize] on in-circuit navigation via AuthorizeRouteView (DSH-001, #243)
Routes.razor used RouteView, which ignores [Authorize]. With the interactive
router, an in-circuit navigation never meets endpoint authorization, so anonymous
localhost could open /alarms and a Viewer could open /admin/secrets (secret
metadata list). Both were confirmed reachable by the new route test before the
change; AuthorizeRouteView now renders a Not Authorized panel instead.
2026-12-03 09:46:31 -05:00
Joseph Doherty 0673b0c76c fix(sessions): start the host session drain at ApplicationStopping, before Kestrel's drain (SES-001, #247) 2026-12-03 09:46:17 -05:00
Joseph Doherty d4231c4a6d fix(worker): skip cache writes for late callbacks on removed handles (MXA-004, #255)
ci / windows-x86 (push) Failing after 15m0s
ci / java (push) Failing after 15m13s
ci / portable (push) Failing after 15m21s
An OnDataChange/OnWriteComplete already queued on the STA is dispatched
after RemoveItem evicted the handle and re-created the cache entry; item
handles are never reused within a registration, so it leaked until
Unregister. MxAccessSession.Create now binds its handle registry to the
production sink, which only caches callbacks for handles the registry still
holds. The event is still forwarded. EvictStaleHandleState stays as the
backstop for unbound sinks.
2026-12-03 09:45:18 -05:00
Joseph Doherty 9adea04b37 fix(worker): report worker-side validation and STA shutdown without an MXAccess HRESULT (WIP-005, #255)
Per D9: a request the worker rejects before calling MXAccess (write value
with no kind, raw payload, empty MxArray) throws the new
WorkerRequestValidationException and replies INVALID_REQUEST with no
HRESULT. A plain ArgumentException stays MXACCESS_FAILURE with its HRESULT,
because the interop raises MXAccess E_INVALIDARG that way. The dispatcher
now converts executor exceptions on the STA, so anything the InvokeAsync
await throws is the runtime refusing the work item (shutdown, disposal,
dead loop, canceled at shutdown) and replies WORKER_UNAVAILABLE. No .proto
change. Status mapping documented in docs/WorkerConversion.md.
2026-12-03 09:45:14 -05:00
Joseph Doherty 62649047cf fix(worker): make array and FILETIME conversion total (WIP-003, WIP-004, #255)
Typed array projection no longer throws on an element that does not fit:
it falls back to the array's own element type, then to the raw projection
with a diagnostic naming the element index and CLR type. Time arrays parse
BSTR timestamps as MXAccess local time and reject 32-bit/double elements
instead of reading them as FILETIMEs near 1601; out-of-range FILETIMEs
(scalar and array) stay integers. Integer arrays widen like the scalar
path: uint/long/ulong use Int64Values, object[] retries as Int64 on
overflow, and a ulong above long.MaxValue takes the raw projection.
Conversion runs on the event path, where a throw faults the session.
2026-12-03 09:45:05 -05:00
Joseph Doherty 3f9ea6a86c perf(dashboard): AlarmsHubPublisher holds no monitor subscription while no hub client is connected (DSH-009, #256) 2026-12-03 09:44:51 -05:00
Joseph Doherty 97e4d96afa fix(grpc): check AddBufferedItem read constraints; fail closed on unclassified command kinds (SES-003, #242)
AddBufferedItem carries an item_definition but fell into the default branch of
ApplyConstraintsAsync, so a read-constrained key could add and advise an
out-of-scope tag. It now runs EnforceReadTagAsync. The switch also fails
closed: kinds are explicitly classified as constraint-checked or tag-free, any
other kind is refused with PermissionDenied and an audited denial, and a test
enumerates MxCommandKind so a new kind must be classified.
2026-12-03 09:41:50 -05:00
Joseph Doherty 078b9c9840 fix(worker): bound each STA message-pump pass to 64 dispatches (WIP-001, #246)
ci / portable (push) Failing after 13m57s
ci / windows-x86 (push) Successful in 12m20s
ci / java (push) Failing after 40m28s
An unbounded PeekMessage drain never returned while inbound COM callbacks
arrived at least as fast as they dispatched, so the STA loop stopped running
queued commands and stopped stamping LastActivityUtc; the heartbeat watchdog
then faulted a busy apartment as StaHung. The record-info pin raises the
dispatch ceiling a lot but is best-effort, and the drain was still unbounded.

Each pump pass now dispatches at most StaMessagePump.MaxMessagesPerPass (64),
then the loop stamps activity and services the command queue. MWMO_INPUTAVAILABLE
makes the next wait return at once while input remains, so no wakeup is lost.
StaRuntime.PumpPendingMessages (the pump step of ReadBulk/write waits) uses the
same cap so those loops re-check their deadline between slices.

Tests: a fake message flood with a queued command (command runs, activity stays
fresh, no pass exceeds the cap); a real-queue test that a pass stops at the cap.
2026-12-03 09:40:52 -05:00
Joseph Doherty cf00f6fc86 fix(grpc): owner-scope Invoke and CloseSession like StreamEvents (SES-002, #241)
A foreign API key holding the matching scope could Invoke(DrainEvents) another
key's session (dequeuing its events), write through it, or close it. Invoke and
CloseSession now apply the same ordinal owner compare as the StreamEvents
attach and return PermissionDenied. No admin override (D2): operators use the
dashboard, which calls ISessionManager directly.
2026-12-03 09:40:41 -05:00
Joseph Doherty 3d4d5f2b04 fix(sessions): renew the lease on last-subscriber detach; purge item registrations on Unregister (SES-004, SES-007, #253) 2026-12-03 09:39:21 -05:00
Joseph Doherty c065b3678a docs: index docs/WorkerEventPathPerformance.md from gateway.md and the worker design (D6, #236)
ci / windows-x86 (push) Successful in 3m43s
ci / portable (push) Failing after 11m54s
ci / java (push) Failing after 46m18s
2026-12-03 09:38:42 -05:00
Joseph Doherty d12fd4f5a0 docs(plans): point the rollout plan at docs/WorkerEventPathPerformance.md 2026-12-03 09:36:39 -05:00
Joseph Doherty 8d1dd7f41d docs: add worker event-path performance analysis as docs/WorkerEventPathPerformance.md (D6, #236) 2026-12-03 09:36:36 -05:00
Joseph Doherty e934854a89 fix(worker): ReadBulk never tears down the caller's own item or advice (#238)
ReadBulk served a tag from the cache only when it was advised and cached;
every other tag took the AddItem + Advise + wait + UnAdvise + RemoveItem
snapshot lifecycle. If AddItem ever returned the caller's existing handle,
the teardown would unadvise and remove the caller's subscription.

ReadBulk now resolves a tag the session already holds to the session's
own item handle in phase 1:
- advised but uncached: wait on the caller's subscription for its first
  OnDataChange (baseline taken in phase 1, before any phase-2 pump can
  dispatch it); no COM call, no teardown.
- added but not advised: advise temporarily, then unadvise only; the item
  stays registered, and the value the temporary advice cached is dropped
  so it cannot later be served as was_cached = true.
- not held: unchanged snapshot lifecycle. An AddItem that returns a handle
  the registry already tracks is treated as the caller's (not
  re-registered, not removed).
Duplicate sharing, pump cadence, the shared deadline, timeout reporting
and was_cached semantics are unchanged.

Live repro on the windev rig (330 advised + 40 added-only tags, immediate
250-tag ReadBulk chunks x4 parallel, 60 s observation): unfixed and fixed
workers both keep 290/330 handles delivering. The 40 silent handles are
TestHistoryValue, which does not change within the window on either
build. The installed MXAccess hands out a distinct handle per AddItem
even for an address already added, and UnAdvise/RemoveItem of the second
handle leaves the first delivering. So the #238 teardown path does not
silence subscriptions on this MXAccess, and this change does not explain
the vd03 rate drop. The fix stays as a guard, and it saves an extra item
and four COM calls per uncached held tag.

Docs: gateway.md, Contracts.md, DesignDecisions.md,
MxAccessWorkerInstanceDesign.md and the five client ReadBulk doc comments.
2026-12-03 09:36:30 -05:00
Joseph Doherty 90d2d4a9b1 docs(deploy): DEV vd03 on 3be20983 (R1) then 9a4bc1df (R2); worker CPU 45% -> 0.3% of a core (#236) 2026-12-03 09:36:30 -05:00
Joseph Doherty 027d2b5d1a perf(gateway): read worker frames through a 64 KiB read-ahead buffer (#235)
The gateway read each frame with two exact reads, one for the 4-byte prefix and
one for the body, so every frame cost two pipe I/O completions and two
thread-pool wake-ups. WorkerFrameReader now reads as much as its buffer has
room for, so one read normally serves a whole frame or a batch of frames.

Length checks still run on the prefix before any payload allocation; frames
larger than the buffer are assembled in a pooled array; EOF anywhere reports
EndOfStream with an EndOfStreamException inner exception as before. New tests
cover multiple frames per read, frames split across reads, frames straddling
the buffer end, frames larger than the buffer, oversize frames with their body
buffered, and EOF in the prefix, body, large body and at a frame boundary.
2026-12-03 09:36:30 -05:00
Joseph Doherty 9b9fdecc9b perf(gateway): attach the dashboard mirror only while a viewer watches (#235)
Every session ran a dashboard-mirror distributor subscriber that woke for every
event only for Publish to discard it, since normally nobody has a
session-details page open. The viewer registry now raises
ViewerPresenceChanged on a session's first viewer and last viewer; the
production broadcaster exposes it as IDashboardViewerPresence, and a session
attaches its mirror while watched and disposes the lease when not.

MarkReady still starts the pump, so draining, replay retention, the alarm lease
and dead-worker detection are unchanged. ACL and value redaction are untouched.
Broadcasters without presence (test doubles) keep the always-on mirror.

Internal distributor subscribers can now pass a filter applied before the
pump's TryWrite; the alarm monitor admits only alarm transitions and provider
mode changes, so data changes no longer wake it.
2026-12-03 09:36:30 -05:00
Joseph Doherty 5516561084 perf(gateway): run the worker event hand-off inline instead of two pool hops (#235)
The staging channel and the worker event channel now allow synchronous
continuations, so an event moves from the pipe read loop through the event
writer into the distributor pump on one thread. At ~240 ev/s each removed pool
work item ended in a PortableThreadPool spin-wait.

Subscriber channels keep asynchronous continuations, so no gRPC, dashboard or
alarm consumer code runs on the read loop. A full event channel still parks the
writer on an await and returns to the read loop; both overflow faults, ordering
and replay behavior are unchanged. The queue-depth gauge now increments before
the staging write, since the consumer can decrement inside it.

Documented under 'Event path threading' in docs/GatewayProcessDesign.md.
2026-12-03 09:36:30 -05:00
Joseph Doherty d68d1c0a06 docs(plans): rollout plan for the worker/gateway event-path CPU fixes (#236, #235) 2026-12-03 09:36:30 -05:00
Joseph Doherty e811b93eb8 feat(worker,gateway): report record-info pin outcome in WorkerReady; drain-thread completion tests
The worker logged its MXSTATUS_PROXY record-info pin outcome only to its own
stderr, which the gateway's launcher does not capture, so operators never saw
whether the pin took.

- Contract (additive, internal IPC): WorkerReady.record_info_pin_status = 5.
  No protocol version bump; an older peer ignores it or sends it empty.
  Regenerated Contracts/Generated, the client protoset, the Rust vendored
  proto, and the Go/Python/Java worker bindings (real delta only).
- Worker: the handshake copies MxStatusProxyRecordInfoPin.Status into
  WorkerReady unless the runtime already set it.
- Gateway: WorkerClient records it (IWorkerClient.RecordInfoPinStatus, default
  null) and logs it at Information when pinned, Warning otherwise; empty is
  not logged. Shown as "Record-info pin" in the dashboard session details
  Worker table via DashboardSessionSummary.WorkerRecordInfoPinStatus.
- Tests: drain-thread cancellation (task ends Canceled; RunAsync cancels,
  runtime disposed, thread exits, no EventDrain stop-failure log) and fault
  (exception on the thread faults RunAsync with the same instance) paths;
  WorkerReady carries the pin status; gateway logging/recording and the
  dashboard projection.
- Docs: gateway.md STA thread model (drain thread, pin step in COM lifetime),
  MxAccessWorkerInstanceDesign, GatewayProcessDesign, GatewayDashboardDesign,
  WorkerFrameProtocol.
2026-12-03 09:36:30 -05:00
Joseph Doherty f6a3e13bd3 perf(worker,gateway): pin MXSTATUS_PROXY record info, dedicated event-drain thread, cap thread-pool spin
At ~240 events/s the worker burned 8-12% system CPU on wonder-app-vd03. A WPR
trace put 72% of it in lmxproxy's per-event GetRecordInfoFromGuids (type
library reload through the registry, amplified by WOW64 and the EDR registry
filter) and 26% in the .NET Framework thread pool spinning after each
per-event work item.

- Worker: MxStatusProxyRecordInfoPin holds the LMXProxy ITypeLib and the
  MXSTATUS_PROXY IRecordInfo for the process lifetime, so oleaut32 serves the
  per-event lookup from cache (~1 ms -> <1 us per call). Best-effort, never
  fatal; status logged at handshake.
- Worker: the event drain loop runs on a dedicated background thread with a
  synchronous wait and a synchronous pipe flush, removing the per-event
  thread-pool hops.
- Gateway: runtimeconfig sets ThreadPool.UnfairSemaphoreSpinLimit=10 to cut
  PortableThreadPool spin-wait CPU.

windev bench at ~242 ev/s: worker 67% -> 6.2% of one core; gateway 8.1% -> 6.9%.
Worker suite 785 passed / 14 skipped (x86, windev).
2026-12-03 09:36:30 -05:00
Joseph Doherty 54367e7408 docs(deploy): PROD mxgw — PAR alarms on Galaxy!NewJersey; all four on SQL login wwpdgdbro (ready 200, #60 not needed)
ci / windows-x86 (push) Successful in 1m55s
ci / java (push) Failing after 5m15s
ci / portable (push) Failing after 11m20s
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
2026-11-22 12:06:22 -05:00
Joseph Doherty 256b5c1bfc deploy(prod): mxgw e74918cc on par-vp03/par-vp04 (site-par Connected; galaxy-sql waits on scadaproj#60)
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
2026-11-22 12:06:22 -05:00
Joseph Doherty 08a9cfd68a docs(deploy): PROD vp03/vp04 first install e74918cc (vp04 Galaxy SQL access pending; alarms off; PAR held for WinPlatform)
ci / java (push) Failing after 4m21s
ci / portable (push) Failing after 8m55s
ci / windows-x86 (push) Failing after 21m56s
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
2026-11-20 15:39:36 -05:00