Checking how the live server behaves
Code alone doesn’t show how the live server behaves. These are the problems we found by checking it directly, and how we fixed them.
In August we dropped the checks that looked at the shape of the code and decided to verify real behavior. The server can't avoid the same question. Having built something to the design and having it run to the design in production are different things.
The problem is how to check without touching production data. So we call the production API with a test account. Database functions run inside a transaction, and once we've checked the result we roll everything back. We use the real environment but try to leave no trace of having checked.
What reading the code never showed us
Food analysis sometimes failed because of the AI model's output limit. The answer was cut off at 512 tokens, so the JSON never finished. When we raised the limit to 4,096, it could analyze three foods in a row. iOS push created a new auth token for every notification and got an error saying we were changing it too often. Now we reuse a token for 50 minutes. We checked three cases: sending several notifications at once, reusing the token at 49 minutes, and creating a new one at 51 minutes.
That doesn't mean we've checked all of production. We haven't tested load or backup restore, and we haven't seen whether a real iPhone receives the push. We write down what we didn't check as clearly as what we did.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
