Repository-specific model routing for pull-request security review
Application-security teams should evaluate and route models at the pull-request level. Dam Secure’s ten-PR benchmark shows a wide cost-quality spread: GPT-5.6 Sol reported 0.91 F1 at $0.70 per PR, Grok 4.5 reported 0.77 at $0.20, and Gemini 3.1 Flash Lite reported 0.75 at about $0.04. The corpus contains only planted access-control flaws, so these rankings need confirmation on each team’s languages, vulnerability classes, and review conventions.
A practical deployment would replay a private set of merged PRs with known findings, record recall, precision, review latency, and cost, then assign the cheapest model that clears the team’s recall threshold. High-risk changes can escalate to a higher tier based on touched files, authentication code, or an initial model’s uncertainty. Run the router in shadow mode first, then expose a capped share of traffic under a maximum model tier. Twenty to fifty representative PRs would give an early check on whether routing cuts spend without increasing missed findings or noisy comments.