Negative Invariant Testing

Use when a system has a load-bearing "never" constraint — never holds funds, never logs secrets, never calls a forbidden API, never writes to a table, never blocks the event loop. Behavioural tests can't observe a capability that isn't exercised yet, so write a STRUCTURAL test that trips on the mere existence of the forbidden mechanism. Triggers on "never does X", "must not", "forbidden", "invariant", "safety constraint", "guardrail", "should not be possible", and hardening a property a future edit could quietly violate.

iamakbarsha1 Updated 4 repo stars

File contents

iamakbarsha1/whetstone commit 65d5a71800

Frequently asked questions

npx get-skill add iamakbarsha1/negative-invariant-testing