Claude Code rules: property tests for invariants and old-system-as-oracle migrations

minchoi · x · 2026-11-19

Rules 3-4 from minchoi's thread: write property tests for invariants that must never break, throwing thousands of generated inputs at them (fast-check for JS/TS, Hypothesis for Python, proptest for Rust). For migrations, let the old system be the oracle: run old and new on the same inputs, treat any output difference as a bug or breaking change, normalize noise, and keep a list of approved differences.

Related event: Claude Code Validation Rules: Property Testing and Differential Migration Testing(2 posts)→

Original post →

More from coding & agent

coding & agent channel →