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 65d5a71 4.0 KB Updated

File contents

iamakbarsha1/whetstone/tree/main/skills/negative-invariant-testing commit 65d5a71800

Frequently asked questions

npx skillmds@latest add iamakbarsha1/negative-invariant-testing