AI Slop Code Risk Monitor

niri-wm/niri

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

A scrollable-tiling Wayland compositor.

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for niri-wm/niri, a Rust project with 28,795 GitHub stars. SynthScan examined 111,827 lines of code across 254 source files, recording 146 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
28.8K
Stars
Rust
Language
111.8K
Lines of Code
254
Files
146
Pattern Hits
2026-10-31
Scan Date
0.01
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 6.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 6.7/100 · LOW

Which changes need focused human review? 146 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 2MEDIUM 0LOW 144

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 146 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 Block142 hits · 123 pts
SeverityFileLineSnippetContext
LOWdocs/wiki/Configuration:-Input.md21 }COMMENT
LOWdocs/wiki/Configuration:-Input.md41 // scroll-factor vertical=1.0 horizontal=-2.0COMMENT
LOWdocs/wiki/Configuration:-Input.md61 // scroll-button-lockCOMMENT
LOWdocs/wiki/Configuration:-Input.md81 // accel-speed 0.2COMMENT
LOWdocs/hooks/shortcodes.py1# Copyright (c) 2016-2025 Martin Donath <martin.donath@squidfunk.com>COMMENT
LOWniri-ipc/src/lib.rs1//! Types for communicating with niri via IPC.COMMENT
LOWniri-ipc/src/lib.rs21//!COMMENT
LOWniri-ipc/src/lib.rs41//!COMMENT
LOWniri-ipc/src/lib.rs81 FocusedOutput,COMMENT
LOWniri-ipc/src/lib.rs101 /// Start continuously receiving events from the compositor.COMMENT
LOWniri-ipc/src/lib.rs121 Casts,COMMENT
LOWniri-ipc/src/lib.rs141 Version(String),COMMENT
LOWniri-ipc/src/lib.rs181pub struct PickedColor {COMMENT
LOWniri-ipc/src/lib.rs221 #[cfg_attr(feature = "clap", arg(short, long))]COMMENT
LOWniri-ipc/src/lib.rs241 /// Write the screenshot to disk in addition to putting it in your clipboard.COMMENT
LOWniri-ipc/src/lib.rs261 /// Screenshot a window.COMMENT
LOWniri-ipc/src/lib.rs281 #[cfg_attr(feature = "clap", arg(short = 'p', long, action = clap::ArgAction::Set, default_value_t = false))]COMMENT
LOWniri-ipc/src/lib.rs321 /// Id of the window to toggle windowed fullscreen of.COMMENT
LOWniri-ipc/src/lib.rs341 /// Focus the previously focused window.COMMENT
LOWniri-ipc/src/lib.rs401 /// Move the focused column to the end of the workspace.COMMENT
LOWniri-ipc/src/lib.rs441 /// Id of the window to consume or expel.COMMENT
LOWniri-ipc/src/lib.rs481 /// Focus the workspace above.COMMENT
LOWniri-ipc/src/lib.rs501 /// Move the focused window to the workspace above.COMMENT
LOWniri-ipc/src/lib.rs521 window_id: Option<u64>,COMMENT
LOWniri-ipc/src/lib.rs541 /// `false`, the focus will remain on the original workspace.COMMENT
LOWniri-ipc/src/lib.rs561COMMENT
LOWniri-ipc/src/lib.rs601 ///COMMENT
LOWniri-ipc/src/lib.rs721 ///COMMENT
LOWniri-ipc/src/lib.rs741 ///COMMENT
LOWniri-ipc/src/lib.rs761 },COMMENT
LOWniri-ipc/src/lib.rs821 DebugToggleDamage {},COMMENT
LOWniri-ipc/src/lib.rs841 MoveWindowToTiling {COMMENT
LOWniri-ipc/src/lib.rs921 /// Session ID of the screencast to stop.COMMENT
LOWniri-ipc/src/lib.rs941 /// Id of the window to set urgent.COMMENT
LOWniri-ipc/src/lib.rs1021 Normal,COMMENT
LOWniri-ipc/src/lib.rs1041 /// Mode to set, or "auto" for automatic selection.COMMENT
LOWniri-ipc/src/lib.rs1061 hdisplay: u16,COMMENT
LOWniri-ipc/src/lib.rs1081 vsync_end: u16,COMMENT
LOWniri-ipc/src/lib.rs1161 PVSync,COMMENT
LOWniri-ipc/src/lib.rs1181#[cfg_attr(feature = "json-schema", derive(schemars::JsonSchema))]COMMENT
LOWniri-ipc/src/lib.rs1241 ///COMMENT
LOWniri-ipc/src/lib.rs1281 pub width: u32,COMMENT
LOWniri-ipc/src/lib.rs1301 #[serde(rename = "180")]COMMENT
LOWniri-ipc/src/lib.rs1321#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]COMMENT
LOWniri-ipc/src/lib.rs1341 #[serde(rename = "16")]COMMENT
LOWniri-ipc/src/lib.rs1361 /// Process ID that created the Wayland connection for this window, if known.COMMENT
LOWniri-ipc/src/lib.rs1381 ///COMMENT
LOWniri-ipc/src/lib.rs1401///COMMENT
LOWniri-ipc/src/lib.rs1421 /// The indices are 1-based, i.e. the leftmost column is at index 1 and the topmost tile in aCOMMENT
LOWniri-ipc/src/lib.rs1441 /// the distance from the corner of the black backdrop to the corner of the (centered) windowCOMMENT
LOWniri-ipc/src/lib.rs1461 ///COMMENT
LOWniri-ipc/src/lib.rs1481 /// Can be `None` if no outputs are currently connected.COMMENT
LOWniri-ipc/src/lib.rs1521/// Keyboard interactivity modes for a layer-shell surface.COMMENT
LOWniri-ipc/src/lib.rs1541 /// Layer that the surface is on.COMMENT
LOWniri-ipc/src/lib.rs1561 pub kind: CastKind,COMMENT
LOWniri-ipc/src/lib.rs1581 /// This is `None` for wlr-screencopy casts, and also for PipeWire casts before the node isCOMMENT
LOWniri-ipc/src/lib.rs1601 /// Tools like wayvnc, wl-mirror, and the xdg-desktop-portal-wlr portal.COMMENT
LOWniri-ipc/src/lib.rs1621 /// ID of the screencasted window.COMMENT
LOWniri-ipc/src/lib.rs1641 id: u64,COMMENT
LOWniri-ipc/src/lib.rs1661 workspace_id: u64,COMMENT
82 more matches not shown…
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/tests/floating.rs311 // Resize as requested.COMMENT
HIGHsrc/tests/floating.rs734 // Resize as requested.COMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/hooks/remove-must-fail.py1CODE
LOWdocs/hooks/shortcodes.py21CODE