build-openshell-mxc-windows
Skill15k starsChanged 59 days agoApache-2.0View on GitHub
Maintain and validate OpenShell's build-only Windows MSVC lane for x64 and ARM64. Use when working on Windows compilation, `windows:*` mise tasks, unsupported Windows compute-driver contracts, or Windows build reports. This skill does not implement Docker, Kubernetes, Podman, VM, MXC driver, policy translation, MSI, service, or supervisor runtime support on Windows.
- Reads credentials
Trending
Less talk lately.about the whole repository
Who's talking about NVIDIA/OpenShell
- @sungkim.bsky.social“When you feel you need a head-inducing list of configurable ACL for your shell/VM, to run your AI agents. …”Bluesky · Sep 29, 2026 · 23 likes
- cncf/sandbox“[Sandbox] OpenShell”GitHub · Sep 8, 2026 · 17 reactions
- @cboettig.bsky.social“hmm, openshell looks pretty interesting: github.com/NVIDIA/OpenS... basically just runs your agent in an …”Bluesky · Mar 23, 2026 · 4 likes
- A Hacker News story“OpenShell: Nvidia's sandbox for AI agents like OpenClaw”Hacker News · Mar 16, 2026 · 4 points
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 NVIDIA / OpenShell ⭐ 9,944 (+978) 🗒 Rust OpenShell is the safe, …”Bluesky · Sep 29, 2026 · 3 likes
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 26
- Sep 8, 2026[Sandbox] OpenShell — cncf/sandbox17 reactions · 14 comments
- Jul 3, 2026feat: add openshell_direct adapter for NVIDIA OpenShell sandboxed agent execution — paperclipai/paperclip3 reactions · 1 comment
- Sep 27, 2026chore(deps): update dependency nvidia/openshell to v0.1.2 — fullsend-ai/fullsend2 reactions · 8 comments
- Aug 31, 2026Add retry with backoff for openshell binary download in sandbox setup — fullsend-ai/fullsend2 reactions · 3 comments
- Aug 28, 2026chore(deps): update dependency nvidia/openshell to v0.0.116 — fullsend-ai/fullsend2 reactions · 10 comments
21 more on GitHub
- Aug 22, 2026chore(deps): update dependency nvidia/openshell to v0.0.111 — fullsend-ai/fullsend2 reactions · 20 comments
- Aug 20, 2026sandbox name should be no more than 19 characters — fullsend-ai/fullsend2 reactions · 4 comments
- Aug 17, 2026Supporting Nvidia OpenShell as shell provider — langgenius/dify2 reactions · 1 comment
- Mar 19, 2026Support OpenShift deployment via agent-sandbox CRD — NVIDIA/NemoClaw2 reactions · 5 comments
- Oct 3, 2026feat: support Laya as a typed dispatch provider — kunchenguid/firstmate1 reaction · 3 comments
- Oct 1, 2026Update OpenShell to v0.1.3-pre.1 — openclaw/openclaw-enterprise1 reaction · 2 comments
- Sep 25, 2026Add NVIDIA OpenShell as an optional sandbox provider — napetrov/enterprise-agent-toolkit1 reaction · 3 comments
- Sep 2, 2026Migrate sandbox operations from OpenShell CLI subprocesses to the Go SDK — fullsend-ai/fullsend1 reaction · 4 comments
- Aug 25, 2026replace gateway info command calls as it's no longer available on recent OpenShell versions — openkaiden/kaiden1 reaction · 1 comment
- Aug 21, 2026feat(dify-agent): add OpenShell runtime backend — langgenius/dify1 reaction · 4 comments
- Aug 6, 2026Add controller-managed, time-bounded disruption protection for Sandbox pods — kubernetes-sigs/agent-sandbox1 reaction · 2 comments
- Aug 5, 2026rust: support SCCACHE_BASEDIRS across checkout roots — mozilla/sccache1 reaction · 6 comments
- Jul 26, 2026fix(openshell): bound generated sandbox names — openclaw/openclaw1 reaction · 5 comments
- Jul 14, 2026chore(deps): update dependency nvidia/openshell to v0.0.83 — fullsend-ai/fullsend1 reaction · 1 comment
- Jul 3, 2026Rewrite openshell-cli.ts on top of the new OpenShell typescript SDK — openkaiden/kaiden1 reaction · 5 comments
- Jun 30, 2026Update OpenCode to support VertexAI — openkaiden/kaiden1 reaction · 3 comments
- Jun 23, 2026[Bug]: Mirror mode with OpenShell >= 0.0.37 creates recursively nested previous-workspace directories in sandbox — openclaw/openclaw1 reaction · 1 comment
- Jun 11, 2026feat(openshell): build and create sandbox via openshell-image-builder — openkaiden/kaiden1 reaction · 4 comments
- Jun 3, 2026AgentHarness: phaseToCondition should fall back to status.conditions when phase=UNSPECIFIED — kagent-dev/kagent1 reaction · 2 comments
- May 10, 2026openshell: 0.0.116 -> 0.1.0 — NixOS/nixpkgs1 reaction · 10 comments
- Apr 18, 2026Composite action needs retry logic for OpenShell and CLI downloads to handle transient CDN failures — fullsend-ai/fullsend1 reaction · 7 comments
On Bluesky · 14
- Sep 29, 2026When you feel you need a head-inducing list of configurable ACL for your shell/VM, to run your AI agents. github.com/NVIDIA/OpenS... — @sungkim.bsky.social23 likes and reposts
- Mar 23, 2026hmm, openshell looks pretty interesting: github.com/NVIDIA/OpenS... basically just runs your agent in an OCI container (like we already do)… — @cboettig.bsky.social4 likes and reposts · 1 reply
- Sep 29, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NVIDIA / OpenShell ⭐ 9,944 (+978) 🗒 Rust OpenShell is the safe, private runtime for autonomous AI… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Sep 1, 2026NVIDIA / OpenShell: OpenShell is the safe, private runtime for autonomous AI agents. ★8466 https://github.com/NVIDIA/OpenShell — @rusttrending.bsky.social3 likes and reposts
- Jul 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 NVIDIA / OpenShell ⭐ 7,607 (+108) 🗒 Rust OpenShell is the safe, private runtime for autonomous AI… — @github-trending-rs.bsky.social3 likes and reposts
9 more on Bluesky
- Sep 29, 2026今日のGitHubトレンド NVIDIA/OpenShell OpenShellは、自律型AIエージェント向けの安全でプライベートな実行環境です。 エージェントにファイル操作やAPI利用などの機能を提供しつつ、ポリシーによってデータやネットワークへのアクセスを制限します。… — @dailygithubtrends.bsky.social2 likes and reposts
- May 13, 2026NVIDIA / OpenShell: OpenShell is the safe, private runtime for autonomous AI agents. ★5863 https://github.com/NVIDIA/OpenShell — @rusttrending.bsky.social2 likes and reposts
- Oct 2, 2026AI news - Oct 2, 2026 1. Cloudflare Releases Open-Source Clef Decision Models LINK 2. NVIDIA OpenShell enforces agent security via… — @hackobar.bsky.social1 likes and repost · 1 reply
- Oct 1, 2026NVIDIA / OpenShell: OpenShell is the safe, private runtime for autonomous AI agents. ★13657 https://github.com/NVIDIA/OpenShell — @rusttrending.bsky.social1 likes and repost
- Jul 22, 2026NVIDIA / OpenShell: OpenShell is the safe, private runtime for autonomous AI agents. ★7733 https://github.com/NVIDIA/OpenShell — @rusttrending.bsky.social1 likes and repost
- Jun 2, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 NVIDIA / OpenShell ⭐ 6,582 (+142) 🗒 Rust OpenShell is the safe, private runtime for autonomous AI… — @github-trending-rs.bsky.social1 likes and repost
- May 14, 2026📦 NVIDIA / OpenShell ⭐ 5,866 (+46) 🗒 Rust OpenShell is the safe, private runtime for autonomous AI agents. — @github-trending-rs.bsky.social1 likes and repost
- Mar 21, 2026NVIDIA OpenShell: safe, private runtime for autonomous AI agents https://github.com/NVIDIA/OpenShell — @nono2357.bsky.social1 likes and repost · 1 reply
- Sep 29, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 NVIDIA / OpenShell ⭐ 9,944 (+978) 🗒 Rust OpenShell is the safe, private runtime for autonomous AI… — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
On Hacker News · 4
- Mar 16, 2026OpenShell: Nvidia's sandbox for AI agents like OpenClaw4 points · 1 comment
- Oct 2, 2026Nvidia/OpenShell: Safe, private runtime for autonomous AI agents2 points
- Apr 21, 2026Nvidia OpenShell: safe, private runtime for autonomous AI agents2 points
- Mar 17, 2026OpenShell – private runtime for autonomous AI agents2 points
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- build-from-issueSkill
- create-github-issueSkill
- create-github-prSkill
- create-rfcSkill
- create-spikeSkill
- fix-security-issueSkill
- helm-dev-environmentSkill
- launch-openshell-gatorSkill
- review-github-prSkill
- review-security-issueSkill
- sbomSkill
- sync-agent-infraSkill
- test-release-canarySkill
- triage-issueSkill
- tui-developmentSkill
- update-docs-from-commitsSkill
- watch-github-actionsSkill
- openshell-policy-advisorSkill
- gator-gateSkill
- debug-inferenceSkill
- debug-openshell-clusterSkill
- generate-sandbox-policySkill
- openshell-cliSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 12 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Use the code that is already in the repo.
- Distinctive: line 70
Do not enable Docker, Kubernetes, Podman, or VM runtimes on Windows.
- Distinctive: line 71
Do not build, package, ship, or smoke-test standalone Windows binaries for unsupported compute drivers.
- Very specific: line 76
Keep Windows-specific code behind #[cfg(target_os = "windows")].
- Very specific: line 77
Keep Unix/Linux-only code behind #[cfg(unix)] or #[cfg(target_os = "linux")].
- Very specific: line 79
Do not modify the default Linux mise run ci path unless the user explicitly asks for it.
- Very specific: line 81
Use mise run --skip-tools windows:* for Windows validation.
- Very specific: line 83
Prefer one cross-platform run command when the underlying tool supports it (for example, npm --prefix).
- Distinctive: line 103
If there are local changes, preserve or resolve them before refreshing.
- Distinctive: line 124
Do not install Visual Studio, Rust, Docker, Kubernetes, Podman, WSL, or Hyper-V from this skill.
- Distinctive: line 148
Run the smallest useful slice first, then broaden:
- Very specific: line 218
Run rust:lockfiles:check, sdk:ts:ci, and go:ci through the Windows-aware tasks when validating those surfaces.
- Very specific: line 294
When reporting windows:ci, distinguish these categories:
- Very specific: line 303
Test-name filtered out counts from focused cargo test invocations.
- Distinctive: line 330
When Windows validation fails:
- Distinctive: line 334
Prefer existing local patterns in the same crate.
- Distinctive: line 337
Add or preserve Windows stubs that return unsupported errors.
- Distinctive: line 338
Keep Linux behavior unchanged.
- Very specific: line 339
Run cargo fmt --all, git diff --check, and the relevant windows:* tasks after changes.
- Distinctive: line 342
Do not add broad abstractions or new Windows runtime support to satisfy a build error.
- Distinctive: line 348
Every substantial Windows build run should report:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build OpenShell-MXC for Windows
This skill maintains the existing native Windows MSVC build lane in the
OpenShell repository. The Windows lane is already present in main; do not
treat this skill as a first-time porting recipe unless the user explicitly asks
for a new fork or a from-scratch bring-up.
The lane is build-only. It validates that OpenShell can compile and test on Windows MSVC for the supported deliverables:
openshell-gateway.exeopenshell.exe
It intentionally does not make Windows a Docker, Kubernetes, Podman, or VM runtime host.
Current Repository Shape
The Windows build lane is implemented by these tracked files:
| Path | Purpose |
tasks/windows.toml | Mise task entry points for windows:* commands. |
tasks/rust.toml, tasks/test.toml, and tasks/markdown.toml | Windows routing for compiler-bearing checks, explicit Unix-only test skips, and Markdown dependency setup. |
tasks/scripts/windows-msvc.ps1 | PowerShell wrapper that enters the Visual Studio developer environment and invokes Cargo. |
.github/workflows/windows-msvc.yml | Opt-in PR lint and test plus advisory windows branch cache seeding and dependent binary builds on native x64 and ARM64 runners. |
.agents/skills/build-openshell-mxc-windows/ | This skill and companion reference material. |
Use the code that is already in the repo. Do not generate a parallel Windows build system, duplicate the wrapper, or add repository automation that the user did not request.
Scope
In scope:
- Refreshing a local checkout to the latest upstream GitHub
main. - Maintaining
tasks/windows.tomlandtasks/scripts/windows-msvc.ps1. - Running x64 and ARM64 MSVC checks.
- Building x64 and ARM64 release binaries for
openshell-gatewayandopenshell. - Running workspace tests on a native x64 or ARM64 host.
- Running focused unsupported-driver contract tests.
- Reporting test counts, skipped/gated areas, warnings, artifacts, and logs.
- Keeping Linux and macOS build paths unchanged.
- Keeping unsupported Windows compute drivers explicit and testable.
Out of scope:
- Docker Desktop support on Windows.
- Kubernetes support on Windows.
- Podman, Podman machine, or Podman Desktop support on Windows.
- VM, Hyper-V, WSL, libkrun, or VM-backed sandbox execution on Windows.
- New MXC compute driver crate.
- OpenShell to MXC policy translation.
- Windows named-pipe driver IPC.
- Windows Credential Manager or DPAPI integration.
- MSI, WinGet, Windows service registration, or installer work.
- Windows supervisor runtime port.
Hard Rules
- Do not enable Docker, Kubernetes, Podman, or VM runtimes on Windows.
- Do not build, package, ship, or smoke-test standalone Windows binaries for unsupported compute drivers.
- Exclude unsupported Windows runtime crates from the Windows gateway dependency graph.
- Unsupported Windows runtime entry points must return a clear unsupported error.
- Keep Windows-specific code behind
#[cfg(target_os = "windows")]. - Keep Unix/Linux-only code behind
#[cfg(unix)]or#[cfg(target_os = "linux")]. - Do not modify the default Linux
mise run cipath unless the user explicitly asks for it. - Use
mise run --skip-tools windows:*for Windows validation. The Windows toolchain is rustup plus Visual Studio Build Tools, not mise-provisioned Rust. - Prefer one cross-platform
runcommand when the underlying tool supports it (for example,npm --prefix). Addrun_windowsonly when the Windows shell or validation contract genuinely differs.
Recommended Checkout Flow
From a fork checkout where upstream points to the official
NVIDIA/OpenShell GitHub repository, use:
git fetch upstream main
git switch main
git merge --ff-only upstream/main
git branch --set-upstream-to=upstream/main main
git status --short --branchFor a direct checkout of the official repository, use origin instead of
upstream. Confirm the remote URLs with git remote -v before refreshing.
If there are local changes, preserve or resolve them before refreshing. Do not discard user work unless the user explicitly asks to clean the checkout.
Prerequisites
The lane targets a Windows host with Visual Studio Build Tools and rustup.
| Requirement | Check | Notes |
| Windows 11 | [System.Environment]::OSVersion.Version | Build 26100+ is recommended for MXC-adjacent validation, but compilation can still surface useful errors on older hosts. |
| Visual Studio 2022 or newer | where.exe cl.exe from a Developer PowerShell | Build Tools, Community, Professional, and Enterprise editions work when the target C++ components are installed. The wrapper discovers VsDevCmd.bat through OPENSHELL_VSDEVCMD, vswhere, or installed release directories such as 18 and 2022. |
| Visual C++ ARM64 tools | vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.ARM64 -property installationPath | Required for native ARM64 check, build, and tests and for x64-to-ARM64 check/build. Tests always require a native runner. |
| Visual C++ ARM64 Spectre-mitigated libraries | vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre -property installationPath | Required by regorus through msvc_spectre_libs; the build fails when the selected MSVC toolset lacks lib\spectre\arm64. |
| Visual C++ Clang tools | vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath | Provides host-native libclang.dll for bindgen and clang-cl.exe for ARM64 crypto dependencies such as aws-lc-sys. On ARM64, the wrapper uses VC\Tools\Llvm\Arm64\bin. |
| Visual C++ CMake tools | vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.CMake.Project -property installationPath | Provides CMake and Ninja for native dependencies. The x64-to-ARM64 path adds Ninja to PATH; Z3 uses an architecture-specific prebuilt release. |
| Windows SDK | where.exe rc.exe from a Developer PowerShell | Install an SDK containing target libraries and ARM64 tools. |
| Rust via rustup | rustc --version | Add each target being validated: x86_64-pc-windows-msvc and/or aarch64-pc-windows-msvc. The wrapper also adds the selected target. |
| mise | mise --version | Used as a task runner only. |
| Git | git --version | Needed for checkout and sync work. |
| PowerShell | $PSVersionTable.PSVersion | Windows PowerShell 5.1 works; PowerShell 7 is quieter with mise shell hooks. |
Do not install Visual Studio, Rust, Docker, Kubernetes, Podman, WSL, or Hyper-V from this skill.
Environment Variables
| Variable | Default | Purpose |
OPENSHELL_VSDEVCMD | unset | Optional explicit path to VsDevCmd.bat. |
OPENSHELL_MXC_SKIP_ARM64 | 0 | Set to 1 to skip ARM64 when using all tasks. |
OPENSHELL_WINDOWS_BUILD_JOBS | CARGO_BUILD_JOBS, then 4 | Positive Cargo job limit used by the wrapper. |
CARGO_TARGET_DIR | target under repo root | Override Cargo output location. Use a short absolute path when x64-to-ARM64 builds approach Windows path-length limits. |
Z3_LIBRARY_PATH_OVERRIDE | unset | Directory containing an x64 system libz3.lib; not valid for ARM64. |
Z3_SYS_Z3_HEADER | unset | Full z3.h path required with a system Z3 library. |
Z3_SYS_Z3_VERSION | 5.1.0 | Pinned official prebuilt Z3 release selected by the wrapper. |
READ_ONLY_GITHUB_TOKEN | unset | Optional token for the Z3 release lookup; GitHub Actions supplies github.token. |
RUSTC_WRAPPER | inherited | The wrapper resolves an available command to an absolute path. If it is unavailable, the wrapper warns and continues without compiler caching. |
Legacy fork variables such as OPENSHELL_UPSTREAM,
OPENSHELL_MXC_FORK_DIR, and OPENSHELL_MXC_FORK_BRANCH are no longer part
of the normal maintenance workflow. Use them only if the user explicitly asks
for a new disposable fork.
Validation Workflow
Run the smallest useful slice first, then broaden:
mise run --skip-tools windows:check:x64
mise run --skip-tools windows:check:arm64
mise run --skip-tools windows:build:x64
mise run --skip-tools windows:build:arm64
mise run --skip-tools windows:test:x64
mise run --skip-tools windows:test:unsupported:x64For full validation, detect the Windows host architecture first and choose the native lane dynamically:
$arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
switch ($arch.ToString()) {
"X64" {
mise run --skip-tools windows:ci
}
"Arm64" {
mise run --skip-tools windows:check:arm64
mise run --skip-tools windows:build:arm64
mise run --skip-tools windows:test:arm64
mise run --skip-tools windows:test:unsupported:arm64
mise run --skip-tools windows:artifacts
}
default {
throw "Unsupported Windows host architecture for OpenShell MSVC validation: $arch"
}
}On x64 hosts, windows:ci is the full current CI contract and runs in this
order:
- x64 check.
- ARM64 check, unless
OPENSHELL_MXC_SKIP_ARM64=1. - x64 release build.
- ARM64 release build, unless skipped.
- Native x64 workspace tests.
- Focused unsupported-driver contract tests.
- Artifact reporting.
The GitHub Actions jobs layer architecture-specific Swatinem/rust-cache
entries for Cargo registry and dependency target artifacts with sccache's GHA
backend for cacheable Rust compiler outputs. Failed runs also save their usable
dependency artifacts. Pull-request mirrors labeled test:windows run Clippy for the
Windows-supported workspace and e2e crates plus Rust tests. Pushes to windows and
manual dispatches on that branch run the same lint and test commands in a cache-seed job,
followed by a dependent release-binary build job. The seed and PR jobs use the
same cache namespaces, but pull-request mirrors cannot restore the
windows branch cache because GitHub scopes caches by branch. Merge queues do
not run this workflow. Release-branch seed
and build jobs use job-level continue-on-error: true; opt-in PR jobs report
failures normally. Applying the label alone does not start a run: re-run all
jobs in the current mirror push run, or push a new mirrored commit. The binaries are not uploaded or published.
The ARM64 check/build steps in this x64-host contract are cross-builds. The
wrapper discovers and adds host-native LLVM and Ninja to PATH, requires the
ARM64 compiler and Spectre-mitigated libraries, lets ARM64 crypto crates select
clang-cl, and downloads the official prebuilt ARM64 Z3 static library.
On ARM64 hosts, validate the native ARM64 check, build, and test path. The
wrapper rejects test targets that do not match the host architecture, so x64
compatibility under emulation is not part of these tasks. The aggregate
windows:ci task remains the x64-host CI contract; run the explicit ARM64
commands above on an ARM64 host.
The repository-wide mise run pre-commit task is also supported on Windows.
Run rust:lockfiles:check, sdk:ts:ci, and go:ci through the Windows-aware
tasks when validating those surfaces. Do not count the Go
Windows ARM64 race-detector exclusion or POSIX permission-bit skips as security
coverage. SDK test dependencies must remain at their lockfile versions.
Its Rust check, Clippy, and test dependencies enter the same MSVC environment
for the native host target and use an inherited compiler wrapper when it is
available. Linux glibc
installer tests and Linux service/RPM packaging-asset tests skip explicitly;
the Linux build-environment shell-helper test also skips; cross-platform checks
continue to run. The blocking Windows Clippy pass excludes unsupported
Windows runtime packages as top-level targets. It allows only unused imports,
dead code, and unused async functions that result from cfg-gated Windows stubs;
other warnings remain errors.
The wrapper limits Cargo to four jobs by default and serializes wrapper-owned
Cargo commands with a host-local mutex. It deliberately does not set CL or
_CL_: those variables are also consumed by clang-cl, where a global MSVC
option such as /MP4 can be interpreted as an input file and break ARM64
crypto dependency builds.
Expected Task Behavior
| Task | Expected behavior |
windows:check:x64 | cargo check --workspace for x86_64-pc-windows-msvc, excluding unsupported Windows packages as top-level workspace targets. |
windows:check:arm64 | cargo check --workspace for aarch64-pc-windows-msvc, with the same top-level exclusions. |
windows:build:x64 | Release-builds openshell-gateway.exe and openshell.exe for x64. |
windows:build:arm64 | Release-builds openshell-gateway.exe and openshell.exe for ARM64. |
windows:test:x64 | Runs native x64 workspace tests with --no-fail-fast, excluding unsupported Windows packages as top-level workspace targets. |
windows:test:arm64 | Runs native ARM64 workspace tests with --no-fail-fast and the same package exclusions. Rejects non-ARM64 hosts. |
windows:test:unsupported:x64 | Re-runs focused openshell-gateway tests for unsupported Windows driver behavior. |
windows:test:unsupported:arm64 | Re-runs the same focused contracts natively on ARM64. Rejects non-ARM64 hosts. |
windows:artifacts | Reports size and SHA256 for release artifacts that exist. |
windows:ci | Runs the full ordered x64-host Windows CI lane, plus ARM64 check/build when not skipped. |
The unsupported driver package excludes are intentional. They prevent standalone driver crates from being top-level Windows check/test targets while allowing required libraries and Windows contracts to compile through gateway dependencies. This includes the Kubernetes Secrets and Vault packages: their libraries remain in the gateway build graph, but their Unix-socket standalone binaries do not.
Unsupported Driver Contract
Windows must continue to reject unsupported compute drivers clearly.
The gateway's compute-driver-mxc feature independently links and registers
MXC on Windows. Each other compute-driver-* feature installs its own Windows
rejection stub without linking that driver crate. The default
in-tree-compute-drivers alias enables all five features. An MXC-only build
uses --no-default-features --features compute-driver-mxc (add telemetry
and openshell-server/prebuilt-z3 as needed).
| Driver | Windows build behavior | Runtime behavior |
| Docker | Driver crate excluded; gateway registration stub retained. | Gateway construction returns unsupported. |
| Kubernetes | Driver crate excluded; gateway registration stub retained. | Gateway construction returns unsupported. |
| Podman | Driver crate excluded; gateway registration stub retained. | Gateway construction returns unsupported. |
| VM | Driver crate excluded; gateway registration stub retained. | Gateway construction returns unsupported. |
The focused contract tasks for either native architecture run:
windows_builtin_compute_drivers_report_unsupported
default_registry_contains_exactly_the_enabled_compute_driversThe same tasks also run gateway library tests for protocol-only, MXC-only,
Docker-stub-only, and MXC plus Docker-stub builds. Their logs use
test-<target>-selective-<variant>.log.
The default-feature tests are also included in the full workspace test run. The focused task is available for local diagnosis and selective-build validation; GitHub Actions does not re-run it after the full suite.
Test Accounting Guidance
When reporting windows:ci, distinguish these categories:
- Passed tests from the full x64 workspace test log.
- Passed tests from the full ARM64 workspace test log when run on a native ARM64 host.
- The focused unsupported-contract re-run.
- Explicit Cargo ignored tests, usually ignored doc examples.
- Tests hidden by
#[cfg(not(target_os = "windows"))]; these often appear asrunning 0 tests, not as ignored tests. - Test-name
filtered outcounts from focusedcargo testinvocations. - Package-level exclusions for unsupported Windows crates; Cargo does not report those as ignored tests.
Useful log files:
| Log | Meaning |
build-x86_64-pc-windows-msvc-check.log | x64 check output. |
build-aarch64-pc-windows-msvc-check.log | ARM64 check output. |
build-x86_64-pc-windows-msvc-release.log | x64 release build output. |
build-aarch64-pc-windows-msvc-release.log | ARM64 release build output. |
test-x86_64-pc-windows-msvc.log | Full native x64 workspace test output. |
test-aarch64-pc-windows-msvc.log | Full native ARM64 workspace test output. |
test-x86_64-pc-windows-msvc-unsupported-*.log | Focused unsupported-driver contract output. |
test-aarch64-pc-windows-msvc-unsupported-*.log | Focused native ARM64 contract output. |
The first check downloads the pinned official Z3 archive for the target
architecture through z3-sys. GitHub Actions authenticates the lookup with its
read-only workflow token; local users can set READ_ONLY_GITHUB_TOKEN if an
unauthenticated lookup is rate-limited. Cargo stores the extracted library in
its target tree, so the Windows target cache reuses it. The artifact report
computes SHA256 through .NET directly and does not rely on the Get-FileHash
module being available inside the mise-launched Windows PowerShell process.
Common Fix Patterns
When Windows validation fails:
- Identify whether the error is from a top-level Windows deliverable, a gateway dependency stub, or a Unix-only module leaking into the Windows build.
- Prefer existing local patterns in the same crate.
- Gate Unix imports and modules with
#[cfg(unix)]or#[cfg(target_os = "linux")]. - Add or preserve Windows stubs that return unsupported errors.
- Keep Linux behavior unchanged.
- Run
cargo fmt --all,git diff --check, and the relevantwindows:*tasks after changes.
Do not add broad abstractions or new Windows runtime support to satisfy a build error. If a missing runtime feature is required, stop and propose a follow-on skill or design doc.
Final Report Checklist
Every substantial Windows build run should report:
| Item | Required detail |
| Git state | Branch, upstream GitHub base commit, and whether local changes existed. |
| Host preconditions | OS, Rust, MSVC discovery, and notable warnings. |
| Commands run | Exact mise run --skip-tools windows:* commands. |
| x64 check/build | Pass/fail and log path. |
| ARM64 check/build | Pass/fail/skipped and log path. |
| Native tests | Passed/failed/ignored/filtered counts and log path for the host architecture. |
| Unsupported contracts | Which focused tests ran and their result. |
| Artifacts | Binary paths, size, and SHA256 when available. |
| Skips | Explicitly explain tests not run for a non-native architecture, unsupported driver package exclusions, and Windows cfg-gated tests. |
| Follow-ups | Only concrete follow-ups tied to failures or requested scope. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

