Decision API: The Contract That Turns Ambiguous Inputs Into Typed, Calibrated Answers
Every nontrivial application eventually hits the same wall. The logic needs judgment, not arithmetic. A rules engine can’t tell you whether a support ticket is a billing dispute or a login problem, whether a photo shows a dented box or a shadow, whether a promo code is being farmed, or whether the item on the conveyor is aligned. You can encode heuristics until the rule file becomes a liability, or you can call a chat model and spend the next year defending a JSON parser. A decision API is the narrower, more useful primitive. You declare the questions in code, send the state — text, JSON, or a handful of…