Behavioral Regression Detection for Pull Requests via Structured Oracles
Yiwen Fu, Binhang Qi, Xiao Li, Runlin Liu, Hailong Sun, Xiang Gao
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.
Create a lesson
Related papers
Behavioral Containment: Source-to-Binary Function Matching for 1-Day Vulnerability Detection
Shared title terminologycs.SEYifei Yang, Xuejiao Luo, Penghui Li
PR4Code: A Pull Requests Dataset for AI Code Generation
Shared title terminologycs.SEBenedetta Donato, Leonardo Mariani, Daniela Micucci et al.
An Empirical Study of Visual Artifacts in Pull Request Descriptions
Shared title terminologycs.SETianzi Hao, Kazi Amit Hasan, Yuan Tian et al.
Testing with Coding Agents: A Large-Scale Comparison of Agent-Supported and Human-Authored Pull Requests
Shared title terminologycs.SERoberto Milanese, Francesco Salzano, Hovhannes Muradyan et al.
What Will Replace Pull Requests? Rethinking Software Collaboration for AI Agents
Shared title terminologycs.SEChristoph Treude, Sebastian Baltes
Do AI Coding Agents Write Infrastructure as Code Like Humans? An Empirical Study of GitHub Pull Requests
Shared title terminologycs.SEAmine Barrak, Emna Ksontini, Charles Wehbe