Skip to content

feat(relay): support native Windows Codex from WSL - #123

Merged
abruption merged 1 commit into
feat/114-relay-capacity-metricsfrom
feat/110-wsl-codex-policy
Sep 21, 2026
Merged

abruption merged 1 commit into
feat/114-relay-capacity-metricsfrom
feat/110-wsl-codex-policy

Conversation

@abruption

Copy link
Copy Markdown
Owner

Closes #110.

A WSL2 receiver can now target the workstation's native Windows Codex without an operator-authored wrapper. The receiver policy accepts an operator-owned codexBin only for Codex, validates an absolute non-symlink codex.exe, converts the mounted codexHome through fixed-argv /usr/bin/wslpath, and passes the derived Windows path only as the native child's CODEX_HOME. Paired peers still select only an allowlisted alias and cannot provide executables or arguments.

Windows writer locks are not visible as POSIX advisory locks in WSL. An explicit validated codexBin policy therefore opts only that fixed home into inactive queueing; Linux/macOS relay bindings retain the stable-live-writer rule. Submission continues to report consumptionConfirmed: false until the native session consumes it.

This is stacked on #122 and should be reviewed/merged after that PR.

Validation:

  • macOS Python: 439 tests passed, 6 skipped
  • compiled Node/Python control integration: 6 tests passed
  • WSL2 Python 3.12: 87 focused Codex/native-relay tests passed with Linux x86_64 relay wheels
  • actual WSL2 boundary: policy load, native session list, codex.exe queue submission, queue ID, and transcript append passed
  • forced relay: WSL2 receiver ↔ Linux aarch64 client, no direct route, relay list/send and Windows transcript append passed
  • translation structure and canonical manifest checks passed

The forced relay used an ephemeral SSH local forward to the isolated Linux relay rather than the production public ingress. The test processes, ports, device states, tokens, and temporary authorized key were removed afterward; ports 13769/13770 were clear.

@abruption
abruption force-pushed the feat/114-relay-capacity-metrics branch from b7028bc to 517d730 Compare September 21, 2026 01:59
@abruption
abruption force-pushed the feat/110-wsl-codex-policy branch from 3fd4d74 to 1c84f01 Compare September 21, 2026 02:00
@abruption
abruption force-pushed the feat/114-relay-capacity-metrics branch from 517d730 to 320edab Compare September 21, 2026 02:01
@abruption
abruption force-pushed the feat/110-wsl-codex-policy branch from 1c84f01 to a112d7c Compare September 21, 2026 02:01
@abruption
abruption force-pushed the feat/114-relay-capacity-metrics branch from 320edab to 0bd0fc9 Compare September 21, 2026 02:03
@abruption
abruption force-pushed the feat/110-wsl-codex-policy branch from a112d7c to 75ea94b Compare September 21, 2026 02:04
@abruption
abruption force-pushed the feat/114-relay-capacity-metrics branch from 0bd0fc9 to 5a62090 Compare September 21, 2026 05:36
@abruption
abruption force-pushed the feat/110-wsl-codex-policy branch from 75ea94b to 8adbd23 Compare September 21, 2026 05:36
@abruption
abruption merged commit 3f44205 into feat/114-relay-capacity-metrics Sep 21, 2026
21 checks passed
@abruption
abruption deleted the feat/110-wsl-codex-policy branch September 23, 2026 02:38
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