Sletcher SystemsAll field notes

FIELD NOTE

A test cannot catch a line that was never written, unless it reads the file and looks.

The costTwo outages, both from a single missing line.

Both failures were a missing export. A file with a missing export throws nothing, warns nothing, and reads perfectly well. Two rounds of review walked past it, because there is nothing to see. A runtime test cannot detect a thing that does not exist.

The fix reads the file bytes and asserts the declaration is present. Then the export was deleted and the guard was watched going red before the change shipped, because a guard only ever observed passing may be asserting nothing at all.

Prefer an equality check to an allowlist. An allowlist fails when a new offender appears. An equality check also fails when the known offender is fixed, which is the reminder to delete the entry.

Nothing in this set was caught by being careful. Almost all of it was caught by something going wrong in front of a real person, and each one now has a test standing where the fault was.