AI Slop Code Risk Monitor

cloud-hypervisor/cloud-hypervisor

SlopCodeMonitor badge for cloud-hypervisor/cloud-hypervisor Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A Virtual Machine Monitor for modern Cloud workloads. Features include CPU, memory and device hotplug, support for running Windows and Linux guests, device offload with vhost-user and a minimal compact footprint. Written in Rust with a strong focus on security.

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloud-hypervisor/cloud-hypervisor, a Rust project with 6,448 GitHub stars. SynthScan examined 228,825 lines of code across 456 source files, recording 338 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
6.4K
Stars
Rust
Language
228.8K
Lines of Code
456
Files
338
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 7.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 333 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 1 finding(s).

Agent Over-Engineering Ratio 0.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 6 finding(s).

PR Review Velocity Impact 7.4/100 · LOW

Which changes need focused human review? 338 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1MEDIUM 5LOW 332

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 338 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block316 hits · 314 pts
SeverityFileLineSnippetContext
LOWtracer/src/lib.rs1// Copyright © 2022 Intel CorporationCOMMENT
LOWpci/src/device.rs21 /// Setup of the device capabilities failed.COMMENT
LOWpci/src/device.rs81 /// Gets a register from the configuration space.COMMENT
LOWpci/src/msix.rs541pub struct MsixCap {COMMENT
LOWpci/src/vfio.rs1821COMMENT
LOWpci/src/vfio.rs2301COMMENT
LOWpci/src/vfio.rs2321 // check skips carving a hole, preventing invalid offsets fromCOMMENT
LOWpci/src/msi.rs41#[derive(Error, Debug)]COMMENT
LOWpci/src/msi.rs61 // Message Address (LSB)COMMENT
LOWpci/src/bus.rs141 Ok(())COMMENT
LOWvirtio-devices/src/device.rs81/// resets its internal.COMMENT
LOWvirtio-devices/src/device.rs201/// Trait to define address translation for devices managed by virtio-iommuCOMMENT
LOWvirtio-devices/src/lib.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/balloon.rs1// Copyright (c) 2020 Ant FinancialCOMMENT
LOWvirtio-devices/src/block.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/iommu.rs41COMMENT
LOWvirtio-devices/src/mem.rs1// Copyright (c) 2020 Ant FinancialCOMMENT
LOWvirtio-devices/src/mem.rs61// - VIRTIO_MEM_REQ_STATECOMMENT
LOWvirtio-devices/src/vsock/device.rs21use seccompiler::SeccompAction;COMMENT
LOWvirtio-devices/src/vsock/device.rs81/// 3. Fetch incoming packets from the `VsockBackend` and place them into the virtio RX queue;COMMENT
LOWvirtio-devices/src/vsock/mod.rs41 /// Connection clean shutdown.COMMENT
LOWvirtio-devices/src/vsock/mod.rs81 GuestMemoryAccess(#[source] vm_memory::GuestMemoryError),COMMENT
LOWvirtio-devices/src/vsock/mod.rs121COMMENT
LOWvirtio-devices/src/vsock/packet.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/vsock/packet.rs41// le32 dst_port;COMMENT
LOWvirtio-devices/src/vsock/packet.rs81// - VSOCK_OP_REQUEST: connection request;COMMENT
LOWvirtio-devices/src/vsock/unix/muxer_rxq.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/vsock/unix/muxer_rxq.rs61 }COMMENT
LOWvirtio-devices/src/vsock/unix/muxer_killq.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/vsock/unix/mod.rs41 EpollFdCreate(#[source] io::Error),COMMENT
LOWvirtio-devices/src/vsock/unix/muxer.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/vsock/unix/muxer.rs21//! belong to an existing connection and, as such, the muxer simply forwards them.COMMENT
LOWvirtio-devices/src/vsock/unix/muxer.rs101 buf: [u8; PARTIALLY_READ_COMMAND_BUF_SIZE],COMMENT
LOWvirtio-devices/src/vsock/unix/muxer.rs141 /// Deliver a vsock packet to the guest vsock driver.COMMENT
LOWvirtio-devices/src/vsock/csm/mod.rs61 LocalClosed(bool, bool),COMMENT
LOWvirtio-devices/src/vsock/csm/txbuf.rs141 }COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs21//! the guest driver provides some data in a virtio TX buffer, the vsock device mustCOMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs41// packet. Two header flags are used with VSOCK_OP_SHUTDOWN, indicating the sender'sCOMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs61// packet header members with each packet they send:COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs121 tx_buf: TxBuf,COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs141 /// half-closed its send side.COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs161 ///COMMENT
LOWvirtio-devices/src/vsock/csm/connection.rs661 /// Warning: this will bypass the connection state machine and write directly to theCOMMENT
LOWvirtio-devices/src/transport/pci_device.rs1281 .contains(&o) =>COMMENT
LOWvirtio-devices/src/transport/pci_common_config.rs101}COMMENT
LOWvhost_user_net/src/lib.rs41 /// Failed to create kill eventfd.COMMENT
LOWnet_util/src/ctrl_queue.rs401 assert_eq!(run_mq_vq_pairs_set(1, 4), (VIRTIO_NET_OK as u8, 1));COMMENT
LOWnet_util/src/tap.rs41 IfnameTooLong(String),COMMENT
LOWLICENSES/BSD-3-Clause.txt1// Copyright 2017 The Chromium OS Authors. All rights reserved.COMMENT
LOWLICENSES/BSD-3-Clause.txt21// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,COMMENT
LOWvm-allocator/src/lib.rs1// Copyright 2018 The Chromium OS Authors. All rights reserved.COMMENT
LOWvm-allocator/src/address.rs21}COMMENT
LOWvm-allocator/src/system.rs1// Copyright 2018 The Chromium OS Authors. All rights reserved.COMMENT
LOWvm-allocator/src/system.rs21///COMMENT
LOWvm-allocator/src/system.rs41/// #[cfg(target_arch = "aarch64")]COMMENT
LOWtpm/src/emulator.rs241 )));COMMENT
LOWvhost_user_block/src/lib.rs61 FailedConfigParse(#[source] OptionParserError),COMMENT
LOWcloud-hypervisor/tests/integration_cvm.rs1// Copyright 2026 The Cloud Hypervisor Authors. All rights reserved.COMMENT
LOWcloud-hypervisor/tests/integration.rs1// Copyright © 2020 Intel CorporationCOMMENT
256 more matches not shown…
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHvirtio-devices/src/vsock/csm/connection.rs57// receiving peer's behavior is undefined. In this implementation, we forcefully terminateCOMMENT
Excessive Try-Catch Wrapping4 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMscripts/package-consistency-check.py59 print(f"Error: Multiple versions detected for {pkg_name}: {set(versions)}")CODE
MEDIUMscripts/package-consistency-check.py74 print("Error: Metadata is empty")CODE
MEDIUMscripts/fetch_workloads.py253 print(f"Error: asset file not found: {asset_file}", file=sys.stderr)CODE
LOWscripts/fetch_workloads.py296 except Exception as e:CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡pci/src/configuration.rs1950 // Step 1: Probe 32-bit BAR 0 size by writing all ones.COMMENT
LOW⚡pci/src/configuration.rs1953 // Step 2: Write 0 to unused BAR 1.COMMENT
Structural Annotation Overuse2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡pci/src/configuration.rs1950 // Step 1: Probe 32-bit BAR 0 size by writing all ones.COMMENT
LOW⚡pci/src/configuration.rs1953 // Step 2: Write 0 to unused BAR 1.COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/run_integration_tests_windows_aarch64.sh28# Check if the images are presentCOMMENT
LOWscripts/run_integration_tests_windows_x86_64.sh33# Check if the images are presentCOMMENT
LOWscripts/run_integration_tests_aarch64.sh137# Check if there is any error in the execution of `update_workloads`.COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/package-consistency-check.py52CODE
LOWscripts/fetch_workloads.py36CODE
LOWscripts/fetch_workloads.py124CODE
LOWscripts/fetch_workloads.py233CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/test-util.sh360 # Define the command to copy the fileCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMscripts/generate-fuzz-seeds.sh116# VMDK seeds. The harness supplies the extent files.COMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/package-consistency-check.py25def find_dependents_of_package(metadata, package_source):CODE
LOWscripts/package-consistency-check.py52def check_for_version_conflicts(packages, direct_dependents):CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcloud-hypervisor/tests/integration.rs9107 // TODO: Add test of live upgrade paused vm after cloud-hypervisor-staticCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/fetch_workloads.py17CODE