Skip to content

Experiment: preserve RPC response correlation IDs across dispatch - #18

Closed
mark-e-deyoung wants to merge 3 commits into
mainfrom
fix/rpc-response-id-correlation
Closed

mark-e-deyoung wants to merge 3 commits into
mainfrom
fix/rpc-response-id-correlation

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Contributor

Narrow correction for a protocol defect observed while qualifying daemon.shutdown: CoreEngine initializes resp.id from the request, then overwrites the whole response with a handler-produced CoreResponse, which leaves the serialized response ID empty for ordinary dispatched methods.

The fail-closed candidate restores resp.id = req.id at the common post-dispatch boundary and adds a focused regression using a real CoreEngine/FakeBackend request. The matrix exercises x64 Windows Server 2025 and native ARM64 Windows 11.

This PR is independent of the shutdown-lifecycle disposition; it exists so protocol correlation can be qualified without broadening V2-B1.

Copy link
Copy Markdown
Contributor Author

Decision-changing qualification result: the corrected response-correlation rep now passes on both x64 Windows Server 2025 and native ARM64 Windows 11 (workflow run 35118765766). The prior failure was an oracle defect—the fixture called nonexistent daemon.version before exercising correlation. With the oracle corrected to an implemented handler (daemon.metrics), both architectures pass transform, configure, build, and handler-return correlation checks. Disposition: the observed CoreEngine::handle() response-ID loss is corrected at the common post-dispatch boundary in this experimental candidate. Scope remains narrow; this is not merge/release authority.

Copy link
Copy Markdown
Contributor Author

2026-10-24 real WineBot consumer reproduction — existing upstream correlation fix is required

WineBot disposable real-Wine PR #136 executed WinInspect v0.4.4 under Wine 10.0, Xvfb and a visible synthetic Notepad. After independently fixing the v0.4.4 PortableApps executable layout (WineBot draft #134) and read-only loopback TCP startup (#138), the daemon starts and 127.0.0.1:1985 is ready. Client wire-protocol alignment 0.3.0 (#139) does not clear the RPC failure.

Exact empirical false result: WineBot run 40045869471 at f8d0635ec37a86046dfbbd3412d07e71fb45e43d: /windows succeeds, /wininspect/capabilities and /wininspect/windows both return HTTP 502, bounded direct WinInspect RPC exception classifier reports response_id_mismatch. No source/host titles, raw daemon hello, tokens or windows printed. This agrees exactly with WinInspect #18's known upstream CoreEngine::handle() overwriting the response ID on dispatched handlers, leaving empty id.

Existing fix reused, not duplicated: your unmerged PR #18 already restores resp.id = req.id after dispatch; its independent Windows Server 2025 x64 and ARM64 Windows 11 workflow 35118765766 succeeded. That does not yet qualify the corrected daemon under Wine, nor does it establish approval to merge or create a new release.

Consumer safety decision: WineBot will not weaken response-id correlation validation to accept anonymous replies. Next bounded R&D qualification is an isolated public $0 build of the exact upstream candidate with the known fix, then read-only actual WineBot/Wine RPC; retain source, license and binary hash provenance, do not promote or publish an unapproved replacement release. Existing #18 review/release gates remain intact.

Copy link
Copy Markdown
Contributor Author

Public WineBot/Wine qualification evidence for this existing response-ID correction (no private source or environment data):

  • Latest published official release is WinInspect v0.4.4, tag source b2d07ae. Its ZIP digest from official release metadata is sha256:6ac0a65f774ffe69672f1c459254931ebfddb1e52c9fbec14b5db1348ccaad04.
  • Fresh public-hosted WineBot GHA 41484598465, exact public qualification head 28afac2e1a3868abffbfa3a2f3771f130235699e, built the REL image, installed unmodified official release, started daemon on loopback and showed synthetic Notepad. WineBot service healthy, nested assets complete, /windows API working, daemon/TCP ready.
  • Actual strict read-only /wininspect/capabilities and /wininspect/windows remained HTTP 502 with diagnostic response_id_mismatch. The job returned success only for its explicit known-negative oracle: OFFICIAL_044_SEMANTIC_QUALIFICATION=UNQUALIFIED. Zero artifacts uploaded. Runtime is Debian Wine 10.0 in this test; Wine 11 is a separate target.
  • The existing PR Experiment: preserve RPC response correlation IDs across dispatch #18's post-dispatch response-id preservation is needed before claiming a fully semantically qualified official release. The current released v0.4.4 artifact must not be silently patched or its WineBot client configured to accept missing/mismatched response IDs.

This is a scope/qualification report, not a merge or release request. Any corrected, signed/attested public release and publication decision remain with the WinInspect owners. All automated tests in this effort use public GitHub Actions hosted runners only, not private Actions minutes.

Copy link
Copy Markdown
Contributor Author

2026-11-03 public-GHA-only independent native-build qualification of this existing upstream response-ID candidate (no merge/release request).

  • Reconciled PR Experiment: preserve RPC response correlation IDs across dispatch #18 exact public head 04c2a97 (still OPEN, UNMERGED), and latest published official release v0.4.4 (the old uncorrected ZIP remains immutable).
  • New independent public WineBot-hosted Actions run 41543710158 at WineBot qualification source 756fd83a14a483e6a669cc53cf74b2a8f5d5dc7d completed SUCCESS on BOTH public Windows Server 2022 and Windows Server 2025 GHA. Each job checked out exact public PR Experiment: preserve RPC response correlation IDs across dispatch #18, applied its unique-anchor Apply-RpcResponseIdFix.ps1, configured native x64 CMake, built BOTH full wininspectd.exe and test_response_id.exe using strict MSVC, and executed the real CoreEngine handler-correlation regression. Both jobs passed, zero attached artifacts.
  • This is materially stronger than only compiling the small test: full actual native Windows daemon builds alongside the regression. It is not evidence that official v0.4.4 was updated, that its RPC works under Wine, or that a release passed signing/provenance/installer acceptance.
  • In parallel, independent public Linux MinGW build still fails and is being classified. The native Windows evidence does not depend on its result.

Suggested owner next gate: review source/API ABI/release custody and decide whether to admit PR #18 into a future attested official release. Then WineBot can pin that new release by exact public checksum and test real read-only RPC in Wine 11. Preserve current v0.4.4 negative, strict response-ID matching, and all release/production/owner security gates. Automated testing restricted to public GHA-hosted runners; no private Actions minutes or binary uploads.

Copy link
Copy Markdown
Contributor Author

DOPAV historical experiment complete — close without product merge

Public RPC response ID correlation experiment completed successfully on x64 Server 2025 and native ARM64 Windows. Its exact source result was re-intaken through authoritative PRIVATE PR #415 (head f0279e35c7d3d45ca3b50704bf776d38fbdde852), which GitHub confirms is an ancestor of current private #461 and retains the core.cpp post-dispatch resp.id=req.id repair. Public downstream PR #34 explicitly directs NOT to merge public experimental source as direct product repair; current private C++ acceptance remains outstanding.

Exact terminal source: 04c2a978747bb1bceecba1c7ab3af8e004f11718. Public source-bound Actions 35118765766 had all scoped Windows jobs SUCCESS. Disposition: CLOSED UNMERGED; preserve branch, original source, tests, review history and receipt in closed PR. Active successor/owning acceptance: https://github.com/SemperSupra/WinInspect-private/pull/415. No claim that a public hosted experiment authorizes private v0.5 source publication, default-branch merge, release, controlled interactive WinBot, or private GHA spending. Historical proof does not qualify changed private #461; exact-head native + security tests remain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant