SAGE pinpoints earliest cause of silent security failures in LLM repair traces
The authors claim SAGE can locate the origin of silent vulnerability repairs in most cases
AI/ML arXiv 5 Oct 2026 Method Prototype evidence
Published as “Where Did the Repair First Go Wrong? Localizing the Origins of Silent Failures in Agentic Vulnerability Repair”
Why it matters
The study suggests that preserving intermediate code states and applying trace-based security reasoning can reveal silent failures earlier, enabling more effective remediation in agentic code repair pipelines.
Summary
SAGE can pinpoint the earliest trace-attributable divergence that leads to a silent failure in 97.89% of confirmed cases (93/95), most often an unaddressed security requirement or an inadequate defence choice, and in 73.68% of agent-introduced vulnerabilities the origin precedes the code write. The evidence comes from a 95-case evaluation across six agent frameworks and six base models, with high type-agreement (96.49%) but lower exact-turn agreement (87.72% within the same judge, 78% across judges). The paper does not provide an abstract, so the summary is based on the introduction and evaluation sections.
What they found 5
- SAGE localizes an origin in 97.89% of confirmed silent failures.
“SAGE localizes an origin in 97.89% of cases (93/95).”
- Most identified origins involve unaddressed security requirements or inadequate defence choices.
“Most identified origins involve unaddressed security requirements or inadequate defence choices.”
- When the agent introduced the vulnerable code, the origin preceded the introducing write in 73.68% of those cases.
“Among the 19 cases in which the agent introduced the vulnerability (see Table 5(c)), the identified origin turn preceded the introducing write in 14 cases (73.68%).”
- Origin-type agreement across repeated scoring runs is 96.49%.
“Type agreement (%) 96.49”
- At least one missed detection opportunity is flagged in 62.11% of cases.
“At least one such opportunity was identified in the majority of cases (59/95, 62.11%) (see Table 5(d)).”
Caveats 6
- Exact-turn agreement within the same judge is only 87.72%, indicating variability in pinpointing the precise origin turn.
- Exact-turn agreement across independent judges drops to 78.00%, showing further inconsistency.
- SAGE left two of the 95 cases undetermined (2.11%).
- Construct validity. The origin turn is an operational construct: the earliest observable, trace-attributable divergence under the SAGE rule. It does not establish that the selected turn caused the vulnerability or that intervening there would have prevented it, and incomplete records may conceal earlier divergence.
- Internal validity. LLM-judge scoring may introduce run-to-run variation, dependence on the judge model, or hindsight bias.
- External validity. The evaluation covers 95 confirmed silent failures from Python repair tasks in two security-focused benchmarks, six agent frameworks, and six base models, and may not generalize to other languages, task types, or deployment settings.
What’s new here 4
- Introduces a trace-based method (SAGE) that localizes the origin turn of a silent failure, not just the introducing write.
- Combines LLM-judge scoring of security reasoning with reconstructed artefact histories to apply a systematic decision rule.
- Provides a multi-source reliability assessment including repeated scoring, cross-judge comparison, task-disjoint resampling, and human annotation.
- Identifies missed detection opportunities in later turns based on low verification-rigour or scope-awareness scores.