Tests come first, and they win arguments
Every feature ships with the tests that apply to it: unit tests for the logic, integration tests against a real database, end-to-end tests driving the product the way a person would. Tests encode intended behavior. When code and test disagree, the code changes, and weakening a test to make it pass is against our own written rules.