Skip to content

fix(connector): run agents on NVX's own v0.1.0-dev.31f662c95379 - #1053

Merged
lavaman131 merged 1 commit into
mainfrom
fix/nvx-official-processors
Dec 1, 2026
Merged

lavaman131 merged 1 commit into
mainfrom
fix/nvx-official-processors

Conversation

@lavaman131

Copy link
Copy Markdown
Collaborator

Summary

microsoft/nvx#2439 is merged, and NVX's own release v0.1.0-dev.31f662c95379 has nvx sandbox run --processors {1,2,4,8}. This PR moves Chopin off the temporary fork build from #1041 and back to NVX's own release:

  • Pin: NVX_RELEASE points at microsoft/nvx v0.1.0-dev.31f662c95379, with each package's SHA-256 as the release records it. sandboxProcessors stays true, so an agent still boots with the most of 1, 2, 4 and 8 vCPUs allowed by its CPU limit and saved size.
  • Removed fork-only code:
    • The download-repository override: packageUrls downloads from microsoft/nvx again, and CI's microVM job keeps reading packageUrls.
    • The attestation check: verifyAttestation, the attested flag and installNvx's attester.
    • The "temporary fork" notes in docs/nvx-sandbox.md.
  • Checksums only: NVX's releases carry no build attestation, so the install relies on the pinned SHA-256s and the package's SHA256SUMS, as it did before the fork. docs/nvx-sandbox.md says so in one line.

The pinned digests

Package SHA-256
nvx-0.1.0-linux-kvm.tar.gz 86e0785e67dae6fbd3c042415571b9f956001764ee806bb8508b5c458a9d8c44
nvx-0.1.0-linux-mshv.tar.gz 4d20f4181349ea23fb7857997b71575c0ca3acf3c02820f9e2cbabc2667042df
nvx-0.1.0-windows-whp.zip 39cfe91eab8ca705cfb2f51969ff70e521a31f7455d5a4273800d8e271044ce8

These match what GitHub recorded for the assets that github-actions[bot] uploaded to the release for 31f662c953795365f3e2e6b9a1329e52cd89c7a9, the merge commit of #2439 on NVX's dev. To check that, I ran gh release view v0.1.0-dev.31f662c95379 -R microsoft/nvx --json author,targetCommitish,assets: it gives author github-actions[bot], that target commit and each asset's digest. Each digest equals sha256sum of the asset downloaded with gh release download.

The release has no attestation to verify. gh attestation verify <package> -R microsoft/nvx and GET /repos/microsoft/nvx/attestations/sha256:<digest> both answer 404 for all three packages, and NVX's workflows at that commit never attest. A check like chopin update's would therefore refuse every install wherever gh is signed in.

NVX changes since the fork's base

The fork was built on v0.1.0-dev.4006d33bb288. Between that and 31f662c95379 there are 39 commits:

  • #2439 itself.
  • sandbox deprovision leaving the state directory it removes on Windows.
  • snapshot reporting a name the store doesn't hold as not-found.
  • Internal refactors.

The OpenVMM pin is unchanged. None of these touch what the connector passes to nvx sandbox run or reads back from it: the launch line's --microvm-report, OpenVMM's io-uring and /dev/kvm failures, and nvx's exited error. Nothing needed adapting.

Validation

  • Real install: installNvx downloaded the new pin from microsoft/nvx and checked it against the pinned SHA-256 and SHA256SUMS. The installed nvx sandbox run --help lists --processors {1,2,4,8}.
  • KVM microVMs: apps/connector/src/nvx-vm.test.ts ran on this host's KVM inside a delegated unit (systemd-run --user -p Delegate=yes -p DelegateSubgroup=connector, so the cgroup cases ran), with CHOPIN_NVX_ROOT set to that install. Result: 24 pass, 0 fail, 0 skip.
    • An agent under a 2-CPU limit reports nproc 2; under an 8-CPU limit, 8.
    • With sizes saved, a Medium Planner boots with 2 vCPUs and a Large build with 4, and a CPU limit of 2 holds the Large build to 2.
  • Unit tests: bun test apps/connector gives 530 pass, 41 skip, 0 fail.
  • Checks: bun run fix, bun run ci and bun run types all pass.

microsoft/nvx#2439 merged, and NVX's release v0.1.0-dev.31f662c95379,
built from its merge (31f662c9), is the first of NVX's own with
`--processors {1,2,4,8}` for `nvx sandbox run`. The pin moves back to
NVX's own release, with the SHA-256 of each package as NVX's release
records it, and sandboxProcessors stays true, so an agent still boots
with the most of 1, 2, 4 and 8 vCPUs its CPU limit and saved size allow.

What only the fork's build needed goes: NVX_RELEASE names no repository
of its own, packageUrls downloads from microsoft/nvx again, and the
build provenance attestation check (verifyAttestation, the release's
`attested` flag and installNvx's attester) is removed. NVX's releases
carry no attestation (GitHub answers 404 for each package), so the
install relies on the pinned checksums and the package's SHA256SUMS, as
it did before the fork. docs/nvx-sandbox.md says so, and drops the note
about the temporary fork build.

NVX's changes between v0.1.0-dev.4006d33bb288 and 31f662c95379 need
nothing of the connector: #2439, `sandbox deprovision` on Windows,
`snapshot` errors and internal refactors; OpenVMM's pin is unchanged.

Assistant-model: Claude Opus 5.5
Assistant-verification: the three packages' SHA-256s equal the digests GitHub records for the assets github-actions[bot] uploaded to the release for 31f662c9; gh attestation verify -R microsoft/nvx and the attestations API answer 404 for each
Assistant-verification: nvx-vm.test.ts on this host's KVM in a delegated unit (systemd-run --user -p Delegate=yes -p DelegateSubgroup=connector), CHOPIN_NVX_ROOT from a real installNvx of the new pin: 24 pass, 0 fail, 0 skip; nproc 2 under a 2-CPU limit and 8 under an 8-CPU limit; saved sizes boot a Medium Planner with 2, a Large build with 4, and 2 under a CPU limit of 2
Assistant-verification: bun test apps/connector (530 pass, 41 skip, 0 fail); bun run fix; bun run ci; bun run types
@lavaman131
lavaman131 merged commit 7d0a240 into main Dec 1, 2026
50 of 52 checks passed
@lavaman131
lavaman131 deleted the fix/nvx-official-processors branch December 1, 2026 05:29
lavaman131 added a commit that referenced this pull request Dec 1, 2026
Bump apps/connector/package.json to 0.0.54 for agents that boot with up to 8 vCPUs on NVX's own
release v0.1.0-dev.31f662c95379, which carries sandbox processors (#1053).

Assistant-model: Claude Opus 5.5
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