Review 2026-12-02 Phase 4: Worker value conversion and status mapping #255

Open
opened 2026-12-02 16:07:38 -05:00 by dohertj2 · 2 comments
Owner

Phase 4 — Worker value conversion and status mapping (p2)

All worker-side (net48 x86, so no init-only props or records). MXAccess parity is the reference.

# Finding(s) Change
4.1 WIP-003 Time-typed array and FILETIME conversion catches per element and maps a bad element to a per-item conversion error. One bad value must not fault the session.
4.2 WIP-004 Widen integer array elements the same way as the scalar path (uint → int64).
4.3 WIP-005 Worker-side validation failures get a distinct status (not MxaccessFailure with 0x80070057). Check the client error mapping in all five clients.
4.4 WIP-006 Apply the #228 local-time fix to time-typed values, not just the timestamp argument. Confirm live before and after on windev.
4.5 WIP-008 Null array elements map to an explicit null/empty representation, not 0 / false / epoch. Decide against observed MXAccess behaviour first.
4.6 MXA-004 Ignore callbacks for removed handles: check the registry before re-creating cache entries.

Verify: windev windev-worker-ci.ps1 -Mode test; add conversion unit tests per shape.


Source: code-reviews/2026-12-02-perf-bugs/README.md and code-reviews/2026-12-02-perf-bugs/PLAN.md (commit f200bda6 on local branch docs/review-2026-12-02-perf-bugs, not yet pushed). Reviewed at 54367e74.

## Phase 4 — Worker value conversion and status mapping (p2) All worker-side (net48 x86, so no init-only props or records). MXAccess parity is the reference. | # | Finding(s) | Change | |---|---|---| | 4.1 | WIP-003 | Time-typed array and FILETIME conversion catches per element and maps a bad element to a per-item conversion error. One bad value must not fault the session. | | 4.2 | WIP-004 | Widen integer array elements the same way as the scalar path (`uint` → `int64`). | | 4.3 | WIP-005 | Worker-side validation failures get a distinct status (not `MxaccessFailure` with `0x80070057`). Check the client error mapping in all five clients. | | 4.4 | WIP-006 | Apply the #228 local-time fix to time-typed values, not just the timestamp argument. Confirm live before and after on windev. | | 4.5 | WIP-008 | Null array elements map to an explicit null/empty representation, not 0 / `false` / epoch. Decide against observed MXAccess behaviour first. | | 4.6 | MXA-004 | Ignore callbacks for removed handles: check the registry before re-creating cache entries. | **Verify:** windev `windev-worker-ci.ps1 -Mode test`; add conversion unit tests per shape. --- Source: `code-reviews/2026-12-02-perf-bugs/README.md` and `code-reviews/2026-12-02-perf-bugs/PLAN.md` (commit `f200bda6` on local branch `docs/review-2026-12-02-perf-bugs`, not yet pushed). Reviewed at `54367e74`.
dohertj2 added the area:workerpriority:p2type:review-finding labels 2026-12-02 16:07:38 -05:00
Author
Owner

Decision (2026-12-03, recorded as D8/D9 in code-reviews/2026-12-02-perf-bugs/PLAN.md): WIP-005 → the existing INVALID_REQUEST (no HRESULT), WORKER_UNAVAILABLE during STA shutdown, MxaccessFailure only for COMException; no .proto change. WIP-008 → live-capture on windev first; if MXAccess can't produce null array elements, close as unreachable.

Decision (2026-12-03, recorded as D8/D9 in `code-reviews/2026-12-02-perf-bugs/PLAN.md`): WIP-005 → the existing `INVALID_REQUEST` (no HRESULT), `WORKER_UNAVAILABLE` during STA shutdown, `MxaccessFailure` only for `COMException`; no `.proto` change. WIP-008 → live-capture on windev first; if MXAccess can't produce null array elements, close as unreachable.
Author
Owner

Merged to main at 68043411 (pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA.

Done: 4.1 (WIP-003), 4.2 (WIP-004), 4.3 (WIP-005, via a dedicated WorkerRequestValidationException since MXAccess's own E_INVALIDARG also surfaces as ArgumentException), 4.6 (MXA-004).

Still open:

  • 4.4 WIP-006 — needs a writable Time attribute on the rig for the before/after live check.
  • 4.5 WIP-008 — D8 live capture impossible on DEV: no buffered attribute in that Galaxy. Needs a Galaxy that has one, or close as unreachable on DEV.
Merged to `main` at `68043411` (pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA. Done: 4.1 (WIP-003), 4.2 (WIP-004), 4.3 (WIP-005, via a dedicated `WorkerRequestValidationException` since MXAccess's own `E_INVALIDARG` also surfaces as `ArgumentException`), 4.6 (MXA-004). Still open: - **4.4 WIP-006** — needs a writable Time attribute on the rig for the before/after live check. - **4.5 WIP-008** — D8 live capture impossible on DEV: no buffered attribute in that Galaxy. Needs a Galaxy that has one, or close as unreachable on DEV.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#255