Behavioral Regression Detection for Pull Requests via Structured Oracles
Yiwen Fu, Binhang Qi, Xiao Li, Runlin Liu, Hailong Sun, Xiang Gao
Key points
From the paper's conclusion- We build RegBench-Py, the first Python PR regression benchmark with 154 verified real-world PRs.
Abstract
Software regressions are unintended behavioral changes introduced by code modifications and are hard to detect at pull-request (PR) level. Existing methods rely on incomplete tests or directly analyze PRs via LLMs, lacking structured behavioral reasoning and explicit oracles. We present ORION, a staged framework for PR-level regression detection. ORION extracts PR intent and identifies impacted functions via AST-based impact analysis, then synthesizes function-level structured behavioral oracles encoding preserved/changed behaviors, setup constraints and control-flow hints from PR intent, static risk signals and code changes. Guided by these oracles, ORION generates executable tests, conducts oracle-coverage-guided augmentation and static repair, and differentially runs tests on pre- and post-change code. It classifies PRs with deterministic rules and constrained LLM reasoning. We build RegBench-Py, the first Python PR regression benchmark with 154 verified real-world PRs. ORION achieves F1-scores of 0.6125 (DeepSeek-Chat-V3.2) and 0.5578 (Claude-4.5-haiku), outperforming baselines including Testora, Codex and Claude Code. Compared with PatchGuru, ORION supports broader multi-function PRs while remaining competitive on single-function cases. On 1,459 merged PRs, ORION finds 9 reproducible regression candidates, 8 confirmed by maintainers. It takes ~15 minutes per PR, showing practicality for CI/CD screening.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ADAPT: Agentic Diff-Aware Patch Testing for Pull RequestsarXiv · 2026
- From Verdict to Diagnosis: Attributable Security Review of Pull RequestsarXiv · 2026
- Can Agentic Code Review Catch Vulnerabilities Before They Are Merged?arXiv · 2026
- Inducing Code Change in LLM Self-Debugging: Effects on Program RepairAI · 2026
- To Run or Not to Run: Analyzing the Cost-Effectiveness of Code Execution in LLM-Based Program RepairProceedings of the ACM on software engineering. · 2026
- BCaLLM: Call Graph-Guided Python Breaking Change Detection with Large Language ModelsProceedings of the ACM on Software Engineering · 2026