AI Slop Code RIsk Monitor

riscv-collab/riscv-gnu-toolchain

GNU toolchain for RISC-V, including GCC

6.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for riscv-collab/riscv-gnu-toolchain, a C project with 4,638 GitHub stars. SynthScan examined 214,396 lines of code across 995 source files, recording 1455 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 6.6 (Moderate 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.

6.6
Adjusted Signal
6.6
Raw Pattern Score
100%
Time Factor
2026-08-27
Last Push
4.6K
Stars
C
Language
214.4K
Lines of Code
995
Files
1.5K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 28.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 28.9/100 · MEDIUM

Which changes need focused human review? 1455 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 0LOW 1454

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 1455 distinct pattern matches across 3 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 Block1450 hits · 1396 pts
SeverityFileLineSnippetContext
LOWtest/benchmarks/dhrystone/dhrystone.h361#undef HZCOMMENT
LOWtest/benchmarks/dhrystone/dhrystone.h381COMMENT
LOWtest/benchmarks/dhrystone/dhrystone.h401#define Stop_Timer() times(&time_info); End_Time = (long)time_info.tms_utimeCOMMENT
LOWlinux-headers/include/drm/ivpu_accel.h1/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */COMMENT
LOWlinux-headers/include/drm/ivpu_accel.h21#define DRM_IVPU_METRIC_STREAMER_START 0x07COMMENT
LOWlinux-headers/include/drm/ivpu_accel.h81#define DRM_IVPU_PARAM_PLATFORM_TYPE 2COMMENT
LOWlinux-headers/include/drm/vc4_drm.h21 * IN THE SOFTWARE.COMMENT
LOWlinux-headers/include/drm/vc4_drm.h41#define DRM_VC4_SET_TILING 0x08COMMENT
LOWlinux-headers/include/drm/radeon_drm.h41COMMENT
LOWlinux-headers/include/drm/radeon_drm.h61#define RADEON_UPLOAD_TEX1 0x00000400COMMENT
LOWlinux-headers/include/drm/radeon_drm.h81#define RADEON_EMIT_PP_LUM_MATRIX 5 /* bumpmap/1 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h101#define R200_EMIT_PP_TXCBLEND_4 25 /* tex4/4 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h121#define R200_EMIT_PP_TXOFFSET_3 45 /* tex3/1 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h141#define R200_EMIT_PP_CUBIC_FACES_2 65COMMENT
LOWlinux-headers/include/drm/radeon_drm.h161#define R200_EMIT_PP_AFS_0 85COMMENT
LOWlinux-headers/include/drm/radeon_drm.h281} drm_r300_cmd_header_t;COMMENT
LOWlinux-headers/include/drm/radeon_drm.h321#define RADEON_GART_TEX_HEAP 1COMMENT
LOWlinux-headers/include/drm/radeon_drm.h481#define DRM_RADEON_FULLSCREEN 0x06COMMENT
LOWlinux-headers/include/drm/radeon_drm.h501#define DRM_RADEON_SURF_ALLOC 0x1aCOMMENT
LOWlinux-headers/include/drm/radeon_drm.h521#define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START)COMMENT
LOWlinux-headers/include/drm/radeon_drm.h541#define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_IRQ_EMIT, drm_radeon_irq_emit_t)COMMENT
LOWlinux-headers/include/drm/radeon_drm.h701/* 1.3: An ioctl to get parameters that aren't available to the 3dCOMMENT
LOWlinux-headers/include/drm/radeon_drm.h841#define RADEON_TILING_SWAP_32BIT 0x8COMMENT
LOWlinux-headers/include/drm/radeon_drm.h921 __u32 op; /* RADEON_GEM_OP_* */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1001#define RADEON_INFO_WANT_CMASK 0x08 /* get access to CMASK on r300 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1021/* query if a RADEON_CS_RING_* submission is supported */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1061#define SI_TILE_MODE_COLOR_2D_16BPP 15COMMENT
LOWlinux-headers/include/drm/habanalabs_accel.h821#define HL_INFO_RESET_COUNT 9COMMENT
LOWlinux-headers/include/drm/habanalabs_accel.h841#define HL_INFO_UNDEFINED_OPCODE_EVENT 31COMMENT
LOWlinux-headers/include/drm/i915_drm.h401} drm_i915_sarea_t;COMMENT
LOWlinux-headers/include/drm/i915_drm.h421/*COMMENT
LOWlinux-headers/include/drm/i915_drm.h441#define DRM_I915_SET_VBLANK_PIPE 0x0dCOMMENT
LOWlinux-headers/include/drm/i915_drm.h461#define DRM_I915_GEM_GET_APERTURE 0x23COMMENT
LOWlinux-headers/include/drm/i915_drm.h481#define DRM_I915_PERF_OPEN 0x36COMMENT
LOWlinux-headers/include/drm/i915_drm.h501#define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t)COMMENT
LOWlinux-headers/include/drm/i915_drm.h521#define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)COMMENT
LOWlinux-headers/include/drm/i915_drm.h541#define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read)COMMENT
LOWlinux-headers/include/drm/i915_drm.h601#define I915_PARAM_HAS_GEM 5COMMENT
LOWlinux-headers/include/drm/i915_drm.h621#define I915_PARAM_HAS_EXEC_NO_RELOC 25COMMENT
LOWlinux-headers/include/drm/i915_drm.h1721#define I915_TILING_X 1COMMENT
LOWlinux-headers/include/drm/i915_drm.h1841#define I915_OVERLAY_RGB15 0x3000COMMENT
LOWlinux-headers/include/drm/tegra_drm.h621 /**COMMENT
LOWlinux-headers/include/drm/tegra_drm.h641#define DRM_TEGRA_GEM_GET_TILING 0x0bCOMMENT
LOWlinux-headers/include/drm/tegra_drm.h1041 __u32 value;COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h161#define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h181#define DRM_FORMAT_ABGR1555 fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h201#define DRM_FORMAT_BGRA8888 fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h301#define DRM_FORMAT_BGRX8888_A8 fourcc_code('B', 'X', 'A', '8')COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h1621#define AMD_FMT_MOD_TILE_GFX12_256B_2D 1COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h1681#define AMD_FMT_MOD_BANK_XOR_BITS_SHIFT 24COMMENT
LOWlinux-headers/include/drm/lima_drm.h161#define DRM_LIMA_CTX_CREATE 0x05COMMENT
LOWlinux-headers/include/drm/qaic_accel.h21#define QAIC_SEM_OUTSYNCFENCE 1COMMENT
LOWlinux-headers/include/drm/qaic_accel.h41#define QAIC_TRANS_ACTIVATE_TO_DEV 9COMMENT
LOWlinux-headers/include/drm/qaic_accel.h381#define DRM_QAIC_WAIT_BO 0x06COMMENT
LOWlinux-headers/include/drm/panthor_drm.h241 __u32 gpu_id;COMMENT
LOWlinux-headers/include/drm/drm_sarea.h41/* SAREA area needs to be at least a page */COMMENT
LOWlinux-headers/include/drm/drm.h61COMMENT
LOWlinux-headers/include/drm/drm.h1041COMMENT
LOWlinux-headers/include/drm/drm.h1081#define DRM_IOCTL_ADD_MAP DRM_IOWR(0x15, struct drm_map)COMMENT
LOWlinux-headers/include/drm/drm.h1141#define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle)COMMENT
1390 more matches not shown…
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlinux-headers/include/linux/netlink.h67#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */COMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlinux-headers/include/drm/drm_mode.h86 * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAXCOMMENT
LOWlinux-headers/include/sound/asound.h101 /* Don't forget to change the following: */COMMENT
LOWlinux-headers/include/sound/asound.h153 /* Don't forget to change the following: */COMMENT
LOWlinux-headers/include/sound/asound.h160 /* Don't forget to change the following: */COMMENT