Two bugs, one cause: when an API can't tell you it failed
Two unrelated bugs, in two different codebases, turned out to be the same mistake: trusting an API's status code and shape instead of checking the field that actually tells you what happened.
12 notes filed here
Two unrelated bugs, in two different codebases, turned out to be the same mistake: trusting an API's status code and shape instead of checking the field that actually tells you what happened.
I capped my assistant's tool catalogue at three tools per integration and six hundred tokens. Every new capability since has had to become a parameter on an existing tool.
I wrote a 1.5 second latency target into a spec and reasoned from it for weeks. Measured, the real figure was 60 to 110 seconds.
An auth token held in memory and a SQLite file on disk both worked locally and disappeared in production, because my laptop provides durability the serverless platform doesn't.
Chief's daily brief runs on a small local model. Getting it to behave meant moving a bullet-count limit out of the prompt and into code, then measuring what a repeat penalty setting actually cost in accuracy.
Validating user input is the most familiar guardrail and the smallest part of the problem. The model's own output, what it hands to tools, and what gets rendered afterwards all need the same fail-closed treatment.