The symptom
The root cause: drift
Why this is a safety bug, not a code smell
The fix: one source of truth
- Vendored-JSON-matches-the-pinned-release — the copy a consumer carries must be byte-identical to the canonical release it pins. If someone edits a local copy, CI fails.
- Re-run-codegen-produces-no-diff — regenerating the native module from the vendored catalog must produce no change. If the generated code has drifted from its source, CI fails.
The honest coda
This is part of the WPL Safety Evals series. The previous post is the companion to this one: I Audited My Own AI-Safety Benchmark and Made the Numbers Look Worse.
The benchmark is open at github.com/gymbile/wpl-eval. Gymbile runs the contract in production.