nvx-openvmm-promote
Skill296 starsChanged 59 days agoMITView on GitHub
Promote an OpenVMM pull request or revision into NVX as a clean gitlink update. Use for OpenVMM pin updates, clean replacement PRs, source-equivalence checks, signed integration commits, dependency validation, and exact-head NVX CI validation.
In this repository12 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- address-pr-commentsSkill
- agentic-workflowsSkill
- commit-messageSkill
- create-prSkill
- nvx-benchmarkSkill
- nvx-ci-investigationSkill
- nvx-debugSkill
- nvx-host-connectSkill
- nvx-runSkill
- rebase-and-validateSkill
- review-changesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 26
Treat NVX and openvmm/ as independent Git repositories.
- Distinctive: line 28
Do not update, switch, reset, clean, or synchronize a dirty repository.
- Distinctive: line 44
Use GitHub tooling to inspect the OpenVMM pull request when one was supplied.
- Distinctive: line 55
Do not substitute a branch name for the recorded SHA after resolution.
- Distinctive: line 60
When the promotion is a clean replacement, verify the stated relationship to the reviewed revision:
- Distinctive: line 75
Do not merge OpenVMM commits or copy their history into NVX.
- Distinctive: line 77
If replacing a stale integration branch, create a fresh branch or isolated worktree from the refreshed target rather than importing merge …
- Very specific: line 89
Before committing, require git diff --name-only to contain exactly openvmm unless coordinated NVX changes were explicitly requested.
- Distinctive: line 91
Commit only when the user requested it.
- Distinctive: line 96
After a requested commit, verify that it is the only commit directly on the target and that the target is its sole parent, then verify its …
- Distinctive: line 111
Run NVX verification with the platform launcher:
- Very specific: line 128
Use nvx-run for a smoke test, nvx-debug for a failure, and nvx-benchmark only when performance evidence is required.
- Distinctive: line 147
Ask for Draft or Ready state before creation.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Promote An OpenVMM Revision
Move one reviewed OpenVMM revision into NVX without mixing the source repository's history into the superproject. Preserve exact provenance and validate only claims supported by the selected source and current NVX head.
1. Establish Both Repository States
From the NVX root, record both repositories before fetching or switching anything:
git status --short --branch
git remote -v
git submodule status -- openvmm
git -C openvmm status --short --branch
git -C openvmm remote -v
git -C openvmm rev-parse HEADTreat NVX and openvmm/ as independent Git repositories. For OpenVMM source work,
follow the nested repository instructions.
Do not update, switch, reset, clean, or synchronize a dirty repository. If either
repository is dirty, preserve it and use an approved isolated worktree or stop and
ask how to proceed.
Confirm these inputs:
- OpenVMM pull request URL or exact revision to pin.
- NVX target remote and branch; use
origin/devonly after verifying it resolves tomicrosoft/nvxand remains the integration target. - Any prerequisite OpenVMM pull requests or revisions.
- Whether this replaces an earlier NVX or OpenVMM pull request.
- Draft or Ready state for the NVX pull request. Recommend Draft until local deterministic checks pass.
2. Resolve And Verify The Source
Use GitHub tooling to inspect the OpenVMM pull request when one was supplied. Record its repository, number, base, current head SHA, state, review status, checks, stated dependencies, and scope. Fetch only the required remote refs, then verify locally:
git -C openvmm cat-file -e <revision>^{commit}
git -C openvmm show --no-patch --format=fuller <revision>
git -C openvmm verify-commit <revision>
git -C openvmm rev-parse <revision>^{tree}Do not substitute a branch name for the recorded SHA after resolution. Stop if the revision is unavailable, belongs to another repository, does not match the current pull-request head, or omits a required dependency. Report an unverifiable signature instead of silently treating it as verified.
When the promotion is a clean replacement, verify the stated relationship to the reviewed revision:
- Claim byte-for-byte tree equivalence only when the two
^{tree}object IDs are equal. - For rebased or regrouped commits, use
git range-diffand compare both complete diffs against their respective bases. Describe this as patch or behavioral equivalence, not tree identity. - Inspect added, removed, and reordered commits. Never infer equivalence from equal titles, summaries, or changed-file lists.
3. Prepare A Clean NVX Integration Branch
Fetch the target branch narrowly and record its exact commit. A normal promotion is
one NVX commit directly on the current target and changes only the openvmm gitlink.
Do not merge OpenVMM commits or copy their history into NVX.
If replacing a stale integration branch, create a fresh branch or isolated worktree from the refreshed target rather than importing merge or rebase history. With both repositories clean, detach the submodule at the verified revision and inspect the superproject change:
git -C openvmm switch --detach <revision>
git diff --submodule=log -- openvmm
git diff --name-only
git diff --checkBefore committing, require git diff --name-only to contain exactly openvmm
unless coordinated NVX changes were explicitly requested. Stage only the gitlink.
Commit only when the user requested it. Follow the repository's subject convention,
sign the commit with the user's existing configuration, and stop rather than falling
back to an unsigned commit if signing fails. Never amend, force-push, or rewrite an
already published integration commit without explicit authorization.
After a requested commit, verify that it is the only commit directly on the target and that the target is its sole parent, then verify its signature:
git diff --name-only <target-commit>..HEAD
git rev-list --count <target-commit>..HEAD
git rev-list --parents --max-count=1 HEAD
git log --show-signature --format=fuller -1Require the count to be exactly 1 and the parent line to contain exactly the HEAD
and <target-commit> object IDs. Reject a different parent or any additional parent.
4. Validate The Exact Pin
Run NVX verification with the platform launcher:
python3 scripts/nvx.py verifypython scripts\nvx.py verifyConfirm that upstream OpenVMM validation belongs to the exact pinned SHA. For source changes made in the current task, run the package-scoped check, clippy, documentation, unit-test, and formatting gates required by the nested instructions before relying on NVX CI. For a pin-only promotion of an already reviewed source, record existing exact- head OpenVMM evidence and do not claim unexecuted local checks.
Choose additional NVX runtime checks from the changed behavior and its dependencies.
Use nvx-run for a smoke test, nvx-debug for a failure, and nvx-benchmark only
when performance evidence is required. Report unavailable KVM, MSHV, or WHP coverage
as pending CI rather than substituting another backend.
5. Create And Validate The Pull Request
Immediately before pushing, refresh the target and confirm the integration commit is still directly based on it. If the target moved, rebuild the clean integration commit on the new target and rerun validation; do not present stale evidence as current.
The pull-request body should identify:
- OpenVMM pull request and exact pinned revision.
- Scope and explicit exclusions.
- Required dependencies and their states.
- Tree, patch, or behavioral equivalence evidence using the precise verified term.
- Local validation and unavailable platform gates.
- The exact NVX head SHA submitted to CI.
Ask for Draft or Ready state before creation. Ready pull requests start the complete
NVX matrix; changing an already active pull request to Draft
does not cancel its current run. After each push, follow only the workflow run whose
head SHA matches the current pull-request head. Treat older runs as superseded and use
nvx-ci-investigation for a failed or unexpectedly cancelled current-head run.
Report
Report the source PR and revision, signature result, dependency state, equivalence method and result, NVX target commit, final changed-file set, local validation, pull- request state and URL, exact-head workflow URL, and every blocked or pending gate.
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.

