Issue #10: implement worker process launcher #60

Merged
dohertj2 merged 1 commits from agent-1/issue-10-implement-worker-process-launcher into main 2026-04-26 16:50:02 -04:00
Owner

Summary

  • Adds a gateway-side WorkerProcessLauncher with executable path, PE header, and architecture validation.
  • Starts workers with session id, pipe name, and protocol version in ArgumentList; passes MXGATEWAY_WORKER_NONCE through environment only.
  • Records process id in WorkerProcessHandle and keeps a redaction-safe WorkerProcessCommandLine without the nonce.
  • Kills and disposes failed or timed-out worker starts and disposes the optional pipe reservation on launch failure.
  • Registers launcher services and documents launch behavior.

Verification

  • dotnet format src\MxGateway.sln --include ...
  • dotnet test src\MxGateway.Tests\MxGateway.Tests.csproj --filter WorkerProcessLauncherTests
  • dotnet build src\MxGateway.sln
  • dotnet test src\MxGateway.sln --no-build

Closes #10

## Summary - Adds a gateway-side `WorkerProcessLauncher` with executable path, PE header, and architecture validation. - Starts workers with session id, pipe name, and protocol version in `ArgumentList`; passes `MXGATEWAY_WORKER_NONCE` through environment only. - Records process id in `WorkerProcessHandle` and keeps a redaction-safe `WorkerProcessCommandLine` without the nonce. - Kills and disposes failed or timed-out worker starts and disposes the optional pipe reservation on launch failure. - Registers launcher services and documents launch behavior. ## Verification - `dotnet format src\MxGateway.sln --include ...` - `dotnet test src\MxGateway.Tests\MxGateway.Tests.csproj --filter WorkerProcessLauncherTests` - `dotnet build src\MxGateway.sln` - `dotnet test src\MxGateway.sln --no-build` Closes #10
dohertj2 added 1 commit 2026-04-26 16:49:06 -04:00
dohertj2 merged commit e2b4dfcb32 into main 2026-04-26 16:50:02 -04:00
Sign in to join this conversation.