In this article
Introduction
Software changes ship faster than most security teams can review them, so someone or something has to decide which ones get a closer look. Size isn't much help with that. What matters is what a change touches, such as authentication, permissions, input validation or security configuration, and what could go wrong as a result. A three-line edit to an access check can matter far more than a large refactor that only moves presentation code around.
Working out which changes matter is one thing Cytix is built to do, so whether AI can help assess the security impact of each change is a question we come back to a lot. We recently put it to three open decision models, which are small, specialised AI models that pick from a fixed set of answers rather than writing free text.
Asked to rate a change’s overall security risk as High, Medium or Low, they weren’t reliable, and refining the questions and fine-tuning the smallest model didn’t fix that. So we tried something narrower, asking what a change touches, such as authentication, access controls or sensitive data. That showed more promise, as information that could feed a wider risk assessment rather than make the call itself, though with a clear trade-off between missed signals and extra flags.
We don’t use these models at Cytix. But if you’re exploring whether decision models could take some of the work out of reviewing software changes for security risk, the same questions apply to any AI you put in front of your changes.
It was an exploratory evaluation with small samples, so treat the figures as indicative. Below, you'll find what we found and three questions to ask any AI tool before you let it triage your changes.
We evaluated three open-weight decision models
A decision model answers a predefined question by choosing one of the options it's given, such as High, Medium or Low, or Yes, No or Unknown. We looked at three of them.
Parameter count tells you about a models capacity. A model with more parameters has a greater capacity to capture subtle language relationships, reasoning steps, and specialized knowledge. One of the advantages of these open weight models is that they can be fine-tuned for specific tasks, allowing their capabilities to be adapted to particular requirements rather than relying solely on their original training.
None of the three models were developed specifically for security assessment. We evaluated StrandsDecider2B and Clef-Flash as released, while testing Kev both before and after fine-tuning on software-change examples. This gave us an opportunity to explore how task-specific training could improve performance, while recognising that further refinement and evaluation would be needed to establish their suitability for security assessment.
Our methodology
We gave the models two tasks. The first was rating a change's overall security risk as High, Medium or Low. Kev was tested on 24 synthetic changes, and the other two on 40 public GitHub records (20 pull requests and 20 issues).
The second task broke that big question into 30 narrow ones, such as 'does this change affect authentication?', each answered Yes, No or Unknown. StrandsDecider2B and Clef-Flash both answered all 30 for each of the 40 records, which gave us 1,200 answers per model.
We compared those answers with reference answers reviewed by our researchers. These weren't independently validated, so a disagreement with the reference isn't automatically a model error.

Rating overall risk: not reliable as released
On the first task, StrandsDecider2B scored 24 of 40 and Clef-Flash 27 of 40.

Low-risk changes were the easy ones for models to identify, with StrandsDecider2B getting 13 of 16 right and Clef-Flash all 16. Medium and High risk were much harder for them to get right, and they’re the changes that matter. StrandsDecider2B rated 5 of 11 Medium and 6 of 13 High changes correctly. Clef-Flash managed 3 of 11 Medium and 8 of 13 High. Its perfect Low score needs a second look too, because 4 of the 20 changes it rated Low were Medium-risk in the reference answers. Neither model rated a High-risk change as Low, though. Every High-risk change they missed was rated Medium.
That still matters for automated triage. A High-risk change rated Medium can get less attention than it needs, and that happened to 7 of the 13 High-risk changes with StrandsDecider2B and 5 with Clef-Flash.
Kev, as released, rated 14 of 24 synthetic changes correctly and caught 3 of the 8 High-risk ones. Interestingly we then gave it more detailed instructions to see whether that would help. It didn't. In a single run, its score fell to 10 of 24, and it caught only 2 of the 8 High-risk changes.
Evaluation metric | Initial questions | Detailed questions |
|---|---|---|
Risk classification accuracy | 58.3% (14/24) | 41.7% (10/24) |
High-risk recall | 37.5% (3/8) | 25.0% (2/8) |
Does fine-tuning help?
Next, we fine-tuned Kev on 150 synthetic pull requests and development tickets, each labelled with a risk level. We kept it light, with a single round of fine tuning using a method called LoRA, which adjusts a small part of the models weights and leaves the rest as it was.
We tested Kev before and after training on the same 24 held-out changes.
Before training, Kev rated 18 of the 24 correctly. After training, it rated 19 correctly and caught 4 of the 8 High-risk changes instead of 2. It still got all 8 Medium-risk changes right, though it got one fewer Low-risk change right (7 of 8 instead of 8).
That’s an encouraging result for one round of training on a small data set, and it suggests Kev can be adapted to this task. It was a small test, though, and the fine-tuned Kev still missed half the High-risk changes, which are the ones a triage tool most needs to catch. So training helped, but it didn’t make Kev reliable enough to rate risk on its own.

Identifying characteristics: more promising, with a trade-off
The second task asked narrower questions. Instead of 'how risky is this?', each model was asked whether a change touched specific things, such as authentication, permissions, external requests or database queries.
Across the 1,200 questions, the reference answers marked 57 as Yes. StrandsDecider2B found 51 of those 57, but it also raised 281 extra flags, meaning Yes answers where the reference said No or Unknown. Clef-Flash went the other way. It raised only 6 extra flags, but found just 22 of the 57.
Two examples show the difference. On an issue reporting a server-side request forgery (SSRF) flaw, both models picked up the characteristic about where the application sends external requests, although StrandsDecider2B also said Yes to most of the other questions on that record. On an issue asking for the default rating on a customer-feedback form to be changed, StrandsDecider2B said Yes to 22 of the 30 characteristics. Clef-Flash said No to all 30, which matched the reference.
Neither pattern comes free. Missed signals need a backstop, because nothing downstream goes looking for something the model didn't flag. Extra flags cost reviewer time, since someone has to check each one.
It's also why we've led with counts rather than an overall score. Only 57 of the 1,200 reference answers were Yes, so a model that answered No to everything would agree with the reference 95% of the time. Clef-Flash's overall agreement was 91%, which sounds strong until you set it against that baseline.

Would a bigger or better-trained model fix this
Possibly. Fine-tuning tends to improve a model's results on a specific task, and Kev's modest gain on a small test fits that. StrandsDecider2B and Clef-Flash weren't fine-tuned at all, so they'd likely improve too. The harder part is defining what a risky change looks like in the first place, and building a data set that captures it well enough to train on. Size didn't settle it either. Clef-Flash is more than four times the size of StrandsDecider2B, and it was better on some measures and worse on others. We also didn't test a large general-purpose model on the same records. So read these results as how the models performed under the conditions we tested.
Three questions to ask before automating change triage
What counts as risky also varies from one organisation to the next. A change that's routine for one team might need a closer look at another, depending on what the system does and what it's allowed to touch. That's why the questions you ask about a change matter as much as the model answering them. We think characteristics like the ones we tested, such as whether a change alters permission checks or crosses a trust boundary, give a solid starting point for each organisation to build on.
If you're weighing up AI for change triage, whether you build it or buy it, these questions come straight out of what we saw.
What does it miss on high-risk changes? An overall accuracy figure can look acceptable while most of the errors sit in the Medium and High categories, so ask for results broken down by risk level.
How many flags does it raise per software change? A tool that finds nearly everything but flags far more than it should still leaves someone checking every flag.
What's the metric, and how imbalanced was the test set? When most of the true answers are No, agreement and accuracy look high almost by default. Found and missed counts, or precision and recall, tell you more.
At Cytix, we help organisations understand the security implications of software changes and decide how to respond. This research informs how we think about building a shared understanding of what a change touches before anyone makes a security decision about it. Cytix doesn't use these models.
What comes next
In this evaluation, the decision models weren't reliable decision-makers, but they may be a useful input to one. The next step in the research is testing whether the characteristics they identify improve a larger model's risk assessment.
Want to stay in the loop with our research? Sign up to our newsletter
Frequently Asked Questions
What is an AI decision model?
A decision model is a small, specialised AI model that answers a predefined question by choosing from a fixed set of options, such as High, Medium or Low, or Yes, No or Unknown. It doesn't write free text. Because its output is limited to those options, it's easier to measure and to build into an automated workflow than an open-ended answer.
Can AI reliably rate the security risk of a software change?
Not yet, going by our evaluation. Three open-weight decision models rated Low-risk changes well but struggled with Medium and High, which are the changes that matter most. The two models tested on 40 public GitHub records correctly rated between 6 and 8 of 13 High-risk changes. None rated a High-risk change as Low, but every one they missed was rated Medium, so it would get less attention than it needs.
What does AI change triage miss, and what does it over-flag?
That depends on the model, and there's usually a trade-off. We asked models whether changes touched specific areas such as authentication or permissions. One found 51 of 57 true signals but raised 281 extra flags. Another raised only 6 extra flags but found just 22. Missed signals need a backstop, and every extra flag costs reviewer time.
Does fine-tuning improve an AI model's security risk classification?
It helped a little in our test. After one light round of fine-tuning on 150 labelled synthetic examples, the smallest model rated 19 of 24 held-out changes correctly, up from 18, and caught 4 of 8 High-risk changes instead of 2. It still missed half the High-risk changes, so it wasn't reliable enough to rate risk on its own.
Is a larger AI model better at assessing code change risk?
Not necessarily. The 9B model we tested is more than four times the size of the 2B model. It caught more High-risk changes but fewer Medium-risk ones, and it found far fewer risk characteristics. The harder problem is defining what a risky change looks like for your organisation and building data that captures it.
What should I ask before using an AI tool to triage software changes?
Start with three questions. What does it miss on High-risk changes, broken down by risk level? How many flags does it raise per change? And which metric is reported, and how imbalanced was the test set? A headline accuracy figure can hide most of the errors in the categories that matter.








