Nim that compiles, passes, and is still wrong
Nim rules that compile, pass a quick test and are still wrong, each caught by a compiler-run test, and the studies behind the skills.
-
What changes when your AI coding agent uses Verified Nim Skills
A blind, pre-registered study across seven Nim tasks, two models and two reasoning levels. How the skills change the way agents test reproducers, record inherited bugs and validate at trust boundaries.
-
Nim
{.raises: [].}: stop your agent validating trusted data twiceAgents raise errors no input can trigger, even on tables the compiler already parsed. Validate once at the boundary, carry the proof in a
distincttype, and let the compiler reject the rest. Without the skill, 0 of 11 runs got this right in the first study and 8 of 8 re-validated bundled tables in the second; with it, 8 of 11 and 0 of 8. -
Nim
=wasMoved: why a moved-from object segfaults on reuseNilling the pointer makes destroy safe and leaves reuse broken. Three ownership-hook rules pass review and ordinary tests, then segfault, run hooks on uninitialized memory or read freed memory.
-
Cost per solved task: what a cheap coding agent really costs on Nim
With verified skills a low-cost model passed 18 of 20 runs on four hard Nim tasks, against 3 of 20 without. Each attempt cost more; each solved task cost about a quarter as much.
-
Your Nimony release build swallowed the error
Debug raised;
-d:releasereturned 42. What checking one agent skill against the Nimony compiler turned up, and why the skill had to change.