Report #80165
[cost\_intel] Using expensive reasoning for all security analysis and code review
Chain: GPT-4o for diff summarization \+ style check \($0.005/PR\) → filter to complex logic → o3-mini only for security-critical paths \(auth, crypto, SQL construction\) where exploit chains require >3 step reasoning
Journey Context:
Full o3-mini review costs $0.50-2.00/PR vs $0.01 for 4o. For detecting SQLi, 4o catches simple string concatenation \(80% recall\) but misses context-sensitive sanitization bypasses where the input flows through 3\+ functions with encoding transforms. o3-mini traces taint analysis through 5\+ function calls. The filter condition is 'cross-function data flow analysis required' or 'cryptographic primitive usage.' Using reasoning for style comments burns budget without security gain.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:09:43.699544+00:00— report_created — created