Skip to content

Risk Score

This guide explains how CloudAEye assesses whether a pull request needs closer human review, and why.

Overview

CloudAEye analyzes the changed files, their history, and the author's pull requests when you comment @cloudaeye /risk_score in the PR timeline.

The analysis looks at the last 21 days and includes the pull request's AI Slop Score. The result includes an overall risk score, a recommendation, and the evidence behind the concerns. Use it before deciding how carefully to review an open pull request. It says whether a person should review the change, not who: to choose a reviewer, use /cloudaeye:assign-reviewer in the Claude Code plugin.

Prerequisites

Step 1: Register

Sign up with CloudAEye SaaS.

Step 2: Setup Code Review

Setup Code Review by following the Getting Started guide.

Generate Risk Score

To assess an open pull request, comment the following in the PR timeline:

@cloudaeye /risk_score

CloudAEye analyzes the pull request and adds a Change Risk Card to the PR conversation.

The AI slop review is reused when current evidence exists for this commit; otherwise, CloudAEye runs it as part of the assessment. Test coverage is read from a CloudAEye PR checklist on this commit; when there is none and the repository's PR checklist enables unit-test coverage, CloudAEye runs the checklist for it without posting it. The command reads existing bug notes rather than creating or updating them.

Change Risk Card

The card includes:

  • A summary: the overall risk score out of 100 and its risk band, this pull request's AI slop score and a summary of its findings, the bugs and the rework in the changed files beside the repository's rates, a recommendation, and the next step.
  • Up to four ranked concerns naming relevant files, issues, or pull requests, followed by what looks fine.
  • Author: one line per signal about the PR author's recent work — AI slop, bugs in their code, rework, tests, and how their pull requests went — then their recent pull requests, collapsed.
  • Code changes: the pull request's test coverage, then a code area for each changed file with bugs — its stability, bug trend, bugs reported, regression rate, rework and ownership, with its recent issues collapsed under it.
  • Collapsed details: the changed files and their bug history.

Each line is marked 🟠 or 🟡 when it weighs on the score, 🟢 when nothing was found, and ⚪ when it could not be measured, with the reason. A code area's stability is 🔴 Below the repository average when the file's regression rate is twice the repository's or two of its bugs are still open, 🟡 when bugs were reported there recently.

Change Risk Card showing the overall risk score, recommendation, and supporting evidence

Risk Signals

Signal Description
File bug history Bugs reported against the changed files, including unresolved bugs, and the regression rate: bugs per change, beside the repository's
Code rework How much recently added code was already rewritten, beside the repository's rate
Code ownership Who owns the changed code and whose lines the PR rewrites
Author history Bugs in the author's code, recent rework, and pull-request setbacks such as reverts or closed-unmerged PRs
AI slop Code quality signals on this commit and the author's earlier pull requests
Test coverage Unit-test coverage from a CloudAEye PR checklist on this commit, run for the assessment when the repository enables it

Every signal is tracked one value a week across the window. Only the trends that got worse are shown, under the author or the code, with their weekly values; a section where nothing got worse says so.

Score and Risk Bands

CloudAEye reports a score out of 100 and one of the following bands when enough evidence is available:

  • Low
  • Medium
  • High

The recommendation states whether human review is required or no extra review is needed, with a next step when appropriate. It is advisory: the command does not approve or merge the pull request.

Scores are not calibrated yet and may change as more merged pull requests are measured. The report does not expose scoring weights or formulas.

Incomplete Evidence

Missing evidence is reported as not measured, never as having no issues. With too little evidence, the card cannot name a risk band and asks for human review.

Risk Score does not replace a code review. Use Review Code to check for bugs and security vulnerabilities.

Use in a Coding Agent

CloudAEye's Risk Score helps engineering teams determine whether an open pull request requires careful human review. It evaluates historical bugs, code rework, ownership, the author's recent pull requests, and the current change's AI Slop Score to identify potential risks.

Unlike a conventional code review, Risk Score focuses on the change's risk profile and review requirements rather than directly identifying bugs in the current diff.

Run Risk Score

Use the command in a supported coding agent, such as Claude Code:

/cloudaeye:risk-score #412

Replace 412 with the pull request number.

To evaluate the same pull request using a 30-day history window:

/cloudaeye:risk-score #412 30

The default history window is 21 days. You can specify a window from 7 to 90 days.

Risk Score operates on open pull requests because it needs repository history, the author's previous changes, and pull request metadata. It does not evaluate uncommitted working-tree changes directly.

The analysis compares relevant metrics against repository baselines and highlights trends that are getting worse. Historical bug information can come from GitHub issues and, when the CloudAEye Jira integration is installed, Jira bug tickets.

Understand the Results

The report returns an overall risk score out of 100, a risk band, a recommendation, and a prioritized list of issues requiring attention.

The report includes:

  • Overall risk and the recommendation on whether human review is required.
  • AI Slop Score findings for the current pull request.
  • Recent bugs, regression rates, and code rework in affected files.
  • Author history and worsening trends.
  • File-level details for areas with a history of bugs or instability.
  • Test coverage information when available.

The report distinguishes between measured results and unavailable data. For example, missing bug mappings or unavailable test coverage are explicitly identified rather than treated as evidence of low risk.

  1. Open a pull request and run /cloudaeye:risk-score to assess its risk.
  2. Review the overall recommendation and the highest-priority findings.
  3. Investigate affected files with recent bugs, elevated rework, or worsening trends.
  4. Address identified concerns and run the risk assessment again when appropriate.
  5. Run /cloudaeye:inspect or /cloudaeye:review to identify correctness and security issues in the current changes.
  6. Use /cloudaeye:assign-reviewer when you need to identify the most appropriate human reviewer.

Publish the Risk Report

On a pull request, CloudAEye posts the report there and replies with a short summary and its link. If a risk card already exists for the same pull request, CloudAEye updates it rather than creating a duplicate. On an uncommitted change nothing is posted.

Publishing the report also helps build historical context for future risk assessments of the same author.

Note: Risk Score is a review-prioritization tool, not a code correctness verdict. A low score does not guarantee that a change is safe, and a high score does not prove that it contains a bug. The score is not yet calibrated, and unavailable evidence is not treated as a clean result.

For detailed scoring behavior, supported arguments, data sources, cost considerations, and examples of the risk report, see the Coding Agent: Skills & Commands reference.