hunting-failing-inputs
Installation
SKILL.md
Hunting failing inputs
A trap is an operation with a precondition the input can break: an index in range, a slice end within the length, a non-zero divisor, a sum that must not wrap.
Not for
| Situation | Use instead |
|---|---|
| Races, deadlocks, async ordering | race detector or stress test |
| Whole programs, I/O, network, UI | fuzzing plus sanitizers; extract the pure core first |
| Wrong results no precondition expresses | building-property-tests, or reasoning-semiformally |
| Whether a test can go red | gating |
| Validating or minifying WGSL | compiling-wgsl |
Stop and report a trap as unmodelled (never as safe) when its model needs
more than about 15 unrolled loop iterations, needs heap state that a single
input cannot build, or returns unknown twice.