Each of your 20 agents checked the budget and passed, and together they still overspent. Here's a thread-safe pre-flight cap in Python, plus what alerts miss.
LLM Budget Caps That Hold Under Concurrency: Why 20 Agents "Under Budget" Still Blow the Bill