Repository navigation
build(#1643): ship the .NET native model host for win-x64, win-arm64, linux-x64 in the NuGet package (Decision 111, slice 2) - #1650
Merged
Conversation
enricopiovesan
enabled auto-merge (squash)
October 9, 2026 17:35
… linux-x64 in the NuGet package (Decision 111, slice 2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
enricopiovesan
force-pushed
the
claude/issue-1643-dotnet-native-publish
branch
from
October 9, 2026 17:58
da14f73 to
dd284c8
Compare
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slice 2 of #1602 (Decision 111). The
TraverseEmbedderNuGet package now ships thetraverse_dotnet_hostmodel engine forwin-x64,win-arm64andlinux-x64underruntimes/<rid>/native/, so .NET loads the right one automatically. The shipped Windows binary is built and tested before release.New
windows-nativejob (windows-latest, pwsh):traverse-dotnet-hostforx86_64-pc-windows-msvcandaarch64-pc-windows-msvcwith native MSVC;win-x64DLL (the signed vectors, the rights suite,CancellationTokeninterruption, fail-closed loading);It skips the test project's bash-based native build, because
bashcan resolve to WSL on Windows, and places the shipped DLL in the test output directly.win-arm64is built but not run, since there's no arm64 runner.publishjob:linux-x64;linux-x64.sointoTraverseEmbedder/runtimes/, then packs;.nupkg(scripts/ci/dotnet_nupkg_native_check.sh): all three libraries present and non-empty, no unexpected native assets, and thelinux-x64library exporting exactlytraverse_dotnet_host_model_callandtraverse_dotnet_host_free;scripts/ci/dotnet_nupkg_consumer_smoke.sh).Only then does it log in to NuGet (OIDC) and push.
Dry run on pull requests: the workflow now also runs on PRs that touch
packages/dotnet/**,crates/traverse-dotnet-host/**,crates/traverse-model-host-frame/**, the native build script, or the workflow. The NuGet login and push steps are skipped forpull_request, and the version comes from the Cargo workspace. Every other PR still runs only thelinux-x64dotnet-model-hostjob (Decision 111). This narrow trigger, rather than a Windows job on every PR, means the Windows path is proven before a release depends on it.TraverseEmbedder.csprojpacksruntimes/**/native/*when the staged folder exists. A build without it still works, and model calls then fail closed withengine_unavailable.runtimes/is gitignored, so nothing binary is committed.README and CHANGELOG are updated.
Governing Spec
Project Item
Validation
runtimes/osx-arm64/native/:dotnet packlays it out asruntimes/osx-arm64/native/libtraverse_dotnet_host.dylib;dotnet_nupkg_consumer_smoke.shinstalls the package from a local feed and printsnative-model-host-ok;ExactModelException("could not be loaded").windows-nativeandpublishjobs of Publish .NET embedder). The workflow YAML parses.spec_alignment_check.shandpr_body_check.shpass.🤖 Generated with Claude Code