Report #48730
[cost\_intel] Which coding tasks require frontier models \(Sonnet 3.5/Opus, GPT-4o\) and fail catastrophically on GPT-4o-mini?
Reserve frontier models for tasks requiring cross-file type-system reasoning \(Rust, Scala, Haskell\), complex generic constraints, or multi-hop refactoring across >5 files. GPT-4o-mini and Haiku fail at >60% rate on Rust borrow-checker errors and generic type inference, while Sonnet 3.5 maintains >85% success. The cost is 20-30x higher, but smaller models generate syntactically invalid code that passes superficial linting, creating expensive debugging debt.
Journey Context:
Teams attempt to cut costs by using GPT-4o-mini for all coding tasks, assuming 'code is just tokens.' The failure mode is subtle: mini models generate plausible-looking code with subtle type errors \(e.g., incorrect lifetime annotations in Rust, wrong variance in generics\) that compile in simple test harnesses but fail in real codebases with complex dependencies. Frontier models exhibit 'type-system chain-of-thought,' reasoning about borrow scopes and trait bounds explicitly. The cost-quality curve is non-linear: for Python scripting, mini is 95% as good; for Rust, it's 40% as good. The 'cliff' is at generic type density >0.5 per 100 lines. Use linters to catch syntax errors, but only frontier models catch semantic type errors in complex systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:16:16.176551+00:00— report_created — created