When a coding agent can generate a new component or reactive helper in 20 seconds, writing code is no longer the bottleneck. The bottleneck is proving that the code holds up under cases nobody thought to write an example test for.
When I built the micro-signal runtime and protocol adapters for @wcomp/elementum, all 200+ unit tests were green and line coverage sat above 95%. Every happy path passed. Every regression test I wrote passed.
Then I asked a harder question: what happens when two signals update inside a batch() across an arbitrary dependency graph, or when one subscriber throws halfway through a flush, or when an async fetcher reads its own state?
No example-based unit test answered those questions.
Instead of asking a chat window to "write more tests" and hoping for the best, I installed my portable skill pack (npx skills add pinguxx/skills --global) and ran four skills in order:
spec: plan: implement-plan: formal-verification:
You do not need formal methods for a button or a CSS layout. You run formal-verification on the modules where ordering, concurrency, or untrusted input can corrupt state silently.
Running formal-verification against @wcomp/elementum produced a zero-dependency Node script (tools/verify-formal-invariants.js, run with npm run verify:formal) that checks 6,162 states and graph topologies in under one second:
computed() updatesbatch() fault isolation when one subscriber throwsAsyncSignal out-of-order race monotonicity and self-subscription freedom<el-toaster> active-deck exclusivityrunId and JSON Patch path allowlist isolation
Remember that the unit test suite was already green at 95%+ line coverage. The very first run of npm run verify:formal failed immediately on two real bugs:
Neither bug appeared in normal usage. Both took less than 20 minutes to fix once the verifier printed the exact failing state.
Install the skill pack once globally:
npx skills add pinguxx/skills --global
Pick the one module in your repository that would hurt most if it failed silently, and invoke formal-verification on it. Wire the generated script into CI next to npm test.
As code generation gets cheaper, your highest-impact work shifts from typing implementations to defining invariants and running the skills that turn them into permanent CI gates.
npm run verify:formal):