arXiv:2610.33389cs.SEOct 2026

Manuscript Offprint

arXiv:2610.33389

OneCodeReviewBench: Typed Decisions for Code Review and Search

Mohamad Mohebifar, Alex Bit

Mohamad Mohebifar and Alex Bit

Codemod Inc.

Abstract—Code review requires finding functional bugs, memory-safety errors, security weaknesses, and performance problems across languages and software stacks. Tools can express bounded parts of this work as decisions about supplied code. We present OneCodeReviewBench, 1,968 synthetic cases across 12 programming languages and YAML, with Boolean, categorical, and ordered answers. Explicit contracts specify runtime assumptions, source scope, and answer criteria; separate evidence records support reference review. One author reviewed 150 cases; two additional engineers reviewed 100 of those cases. We compare ten model–adapter systems on the same cases and contracts: OpenAI Decisions reaches 81.3% Boolean balanced accuracy; Kev-27B reaches 76.8% Choice accuracy and Score mean absolute error of 0.367. Excluding two families with incomplete contracts preserves these leaders. Additional comparisons cover 586 cases with raw symbol search and 40 with a bounded Python import resolver; the resolver matches all 40 references within its supported profile. A versioned artifact reproduces these analyses and retains the 85 cases with matching engineer answers; the reported review subset excludes two incomplete-contract cases. Remaining reviewer disagreements and repaired inputs require resolution; repository-scale transfer and matched latency/cost evaluation remain future work.

Index Terms—code review, code search, decision models, benchmarks, synthetic datasets

I. INTRODUCTION

Code-review and search tools may call a generative model for every file. A decision model with a bounded answer could filter candidate files or answer a narrow question directly. Adaptive cascades in FrugalGPT [1] and stronger/weaker-model routing in RouteLLM [2] study related quality–cost tradeoffs. Here decision model describes an answer interface, not a particular architecture. We evaluate these components for review and search; measuring their end-to-end speed and cost requires separate experiments.

Code review examines functional correctness, memory and resource safety, potential security vulnerabilities, concurrency, and performance across languages and stacks. Bounded questions include whether an authorization rule holds, whether a scheduling pattern can deadlock, or which resource-lifetime outcome follows from supplied inputs. Search questions locate API uses that warrant inspection. These decisions need explicit file scope, runtime assumptions, and answer criteria: finding an API call alone does not establish a bug. Structural tasks require static-tool comparators; work on lexical retrieval also motivates inexpensive code-search baselines [3].

Reference quality is an evaluation concern regardless of whether people or models construct the cases. Label errors can affect benchmark comparisons [4], and PrimeVul documents

TABLE I TASK UNITS AND REFERENCE EVIDENCE DEFINE THE COMPARISON SCOPE.

WorkEvaluation unit and reference basis
CodeReviewerReal changes and review activities
CRUXEvalShort-function input/output reasoning; executable relationship
CodeMMLUCategorical questions about code understanding
CodeSenseReal-project semantic reasoning; execution traces
This workDeclared files and decision rules; synthetic references, engineer review, and checking records

labeling and duplication issues in vulnerability datasets [5]. We therefore record how references were produced, which cases engineers reviewed, what mechanical checks establish, and which reviews remain unresolved. AI generation describes the construction method; it does not by itself determine whether an answer is right or wrong.

We ask: How reliably do model–adapter systems answer bounded review and search questions under explicit code-task contracts? We contribute a multilingual task collection and paired evaluation protocol that link each decision to its supplied files, assumptions, answer rubric, and reference-review evidence. Researchers can compare interfaces on shared cases and trace ambiguous answers to specific contract rules. We demonstrate these uses through ten-system results, engineer review, static checking, and repairs prompted by a contract audit. The contribution lies in the dataset and its review records; the answer types and input/answer-key separation are established techniques.