Ilverify Failure
Testing & Qualityilverify-failureIlverify Failure is an Agent Skill for testing & quality published in the dotnet/dotnet repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fix ILVerify baseline failures when IL shape changes (codegen, new types, method signatures). Use when CI fails on ILVerify job.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/dotnet/dotnet/blob/HEAD/src/fsharp/.github/skills/ilverify-failure/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ilverify-failure, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
ILVerify Baseline
When to Use
IL shape changed (codegen, new types, method signatures) and ILVerify CI job fails.
Offset-Only Differences
Changes that only shift IL byte offsets ([offset 0x...]) — for example adding code above an existing error site — are detected automatically and do not fail CI. A warning is printed suggesting a baseline update. No action is required, but refreshing baselines keeps them accurate.
Update Baselines
TEST_UPDATE_BSL=1 pwsh tests/ILVerify/ilverify.ps1
Or use the /run ilverify PR comment command to update baselines via CI.
Baselines Location
tests/ILVerify/*.bsl
Verify
Re-run without TEST_UPDATE_BSL=1, should pass.