StageGate-RSI studies vulnerability-discovery agents that continue to raise alarms after code has been repaired. Jingyang Lu and colleagues separate the hypothesis an agent chooses from the verification it performs, then use paired pre-fix and post-fix code to investigate the difference.
The preprint, submitted on December 3, 2026, also examines whether an agent can improve from its own execution traces without selecting changes that merely fit evaluation noise.
What does the paired evaluation measure?
The researchers describe two curated datasets: PairVuln-Multi contains 203 commit pairs, and PairVuln-Single contains 1,241. Their five-stage curation pipeline addresses benchmark contamination, including leaked labels and reversed vulnerable-versus-fixed labeling. The authors describe the resulting pairs as zero-leakage benchmarks.
Their end-to-end agents achieved pre-fix recall of 74.84% to 76.96%. Post-fix specificity was 39.22% to 43.12%. These paired evaluations show why finding vulnerable examples gives an incomplete account of performance on repaired code.
What changed when the hypothesis stayed fixed?
The study uses Teacher-Forced Hypothesis Cards to separate hypothesis generation from agentic verification. On PairVuln-Single, the authors attribute 56.9% of end-to-end post-fix false positives to a shift in the initial hypothesis topic.
Forcing the pre-fix hypothesis lifted post-fix specificity by 32.36 percentage points to 75.48%. Paired accuracy rose by 14.25 points to 73.23%. When cards supplied only a location, about 70% of second-stage post-fix false alarms shifted to unrelated secondary code smells.
What should security evaluators take from this?
The paper reports a gated recursive-improvement loop with contrastive reflection and pre-registered statistical checks. Its motivation includes a 14% to 15% per-sample trajectory flip rate, which can make apparent improvements unstable.
Franklin analysis: evaluators should check both the original vulnerable code and its repaired counterpart while tracking the hypothesis being tested. These are research benchmark results; they do not demonstrate that an autonomous agent can certify an arbitrary production codebase as secure.
Comments
Loading discussion
Fetching this discussion.