craft-discipline

Self-discipline checkpoints the engineer runs after each TDD phase, before considering the work complete.

When to use

Entry contract

Exit contract

Invariants

Why this shape

Craft discipline is personal hygiene. Clean code is not code that survived a review — it is code the author consciously verified before submitting.

« Clean code reads like well-written prose. » — Martin, R. C., Clean Code, 2008.

Self-discipline reduces noise in review cycles: the reviewer can focus on real problems rather than trivial oversights.

« The two rules of TDD: write new code only if an automated test has failed; eliminate duplication. » — Beck, K., Test-Driven Development by Example, 2003.

Allowed customisation

See also