The entrepreneur always searches for change, responds to it, and exploit it as an OPPORTUNITY.

- Peter Drucker
Green Tests Can Assert Less Than the Invariant Requires code-review invariants software-correctness system-design testing Aug 11, 2026

A test suite going green tells you one thing: the assertions you wrote passed. It does not tell you that the property you actually care about holds. Those two things usually overlap. On a recent piece of infrastructure work — a system meant to coordinate independent actors under a set of hard invari...

Continue Reading...
Same Invariant, Same Lock concurrency data integrity database transactions invariants locking Jun 30, 2026

When several different code paths write to the same shared invariant, making one of them safe in isolation does almost nothing. The invariant is only as protected as its least careful writer — and "atomic" means very little if each writer is atomic in its own separate way.

The problem

We had a sha...

Continue Reading...