AI Slop Code Risk Monitor

swaywm/sway

SlopCodeMonitor badge for swaywm/sway Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

i3-compatible Wayland compositor

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for swaywm/sway, a C project with 17,470 GitHub stars. SynthScan examined 56,876 lines of code across 343 source files, recording 89 pattern matches distributed across 2 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-09-21
Last Push
17.5K
Stars
C
Language
56.9K
Lines of Code
343
Files
89
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.6/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 89 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 7.5/100 · LOW

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

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 89 distinct pattern matches across 2 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 Block88 hits · 88 pts
SeverityFileLineSnippetContext
LOWinclude/stringop.h1#ifndef _SWAY_STRINGOP_HCOMMENT
LOWinclude/swaybar/input.h1#ifndef _SWAYBAR_INPUT_HCOMMENT
LOWinclude/swaybar/bar.h1#ifndef _SWAYBAR_BAR_HCOMMENT
LOWinclude/swaybar/tray/tray.h1#ifndef _SWAYBAR_TRAY_TRAY_HCOMMENT
LOWinclude/sway/config.h1#ifndef _SWAY_CONFIG_HCOMMENT
LOWinclude/sway/output.h1#ifndef _SWAY_OUTPUT_HCOMMENT
LOWinclude/sway/tree/view.h1#ifndef _SWAY_VIEW_HCOMMENT
LOWinclude/sway/tree/root.h1#ifndef _SWAY_ROOT_HCOMMENT
LOWinclude/sway/tree/root.h21 // - stagingCOMMENT
LOWinclude/sway/input/seat.h1#ifndef _SWAY_INPUT_SEAT_HCOMMENT
LOWinclude/sway/input/cursor.h1#ifndef _SWAY_INPUT_CURSOR_HCOMMENT
LOWswaybar/render.c1#include <assert.h>COMMENT
LOWswaybar/input.c1#include <assert.h>COMMENT
LOWswaybar/bar.c1#include <assert.h>COMMENT
LOWswaybar/ipc.c1#include <limits.h>COMMENT
LOWswaybar/i3bar.c1#include <json.h>COMMENT
LOWswaybar/status_line.c1#include <assert.h>COMMENT
LOWswaybar/tray/host.c1#include <stdbool.h>COMMENT
LOWswaybar/tray/item.c1#include <arpa/inet.h>COMMENT
LOWswaybar/tray/icon.c1#include <ctype.h>COMMENT
LOWswaybar/tray/tray.c1#include <cairo.h>COMMENT
LOWsway/sway_text_node.c1#include <drm_fourcc.h>COMMENT
LOWsway/server.c1#include <assert.h>COMMENT
LOWsway/server.c21#include <wlr/types/wlr_export_dmabuf_v1.h>COMMENT
LOWsway/server.c41#include <wlr/types/wlr_server_decoration.h>COMMENT
LOWsway/server.c61#include "sway/input/input-manager.h"COMMENT
LOWsway/criteria.c1#include <stdlib.h>COMMENT
LOWsway/ipc-json.c1#include <ctype.h>COMMENT
LOWsway/main.c1#include <getopt.h>COMMENT
LOWsway/swaynag.c1#include <signal.h>COMMENT
LOWsway/ipc-server.c1// See https://i3wm.org/docs/ipc.html for protocol informationCOMMENT
LOWsway/ipc-server.c21#include "sway/ipc-server.h"COMMENT
LOWsway/config.c1#undef _POSIX_C_SOURCECOMMENT
LOWsway/config.c21#include "sway/input/switch.h"COMMENT
LOWsway/lock.c1#include <assert.h>COMMENT
LOWsway/commands.c1#include <ctype.h>COMMENT
LOWsway/tree/workspace.c1#include <ctype.h>COMMENT
LOWsway/tree/root.c1#include <stdbool.h>COMMENT
LOWsway/tree/arrange.c1#include <ctype.h>COMMENT
LOWsway/tree/container.c1#include <assert.h>COMMENT
LOWsway/tree/view.c1#include <stdlib.h>COMMENT
LOWsway/tree/view.c21#include "sway/criteria.h"COMMENT
LOWsway/tree/output.c1#include <assert.h>COMMENT
LOWsway/config/bar.c1#include <signal.h>COMMENT
LOWsway/config/output.c1#include <assert.h>COMMENT
LOWsway/input/seatop_resize_tiling.c1#include <wlr/types/wlr_cursor.h>COMMENT
LOWsway/input/keyboard.c1#include <assert.h>COMMENT
LOWsway/input/tablet.c1#include <stdlib.h>COMMENT
LOWsway/input/seatop_move_tiling.c1#include <limits.h>COMMENT
LOWsway/input/seatop_default.c1#include <float.h>COMMENT
LOWsway/input/text_input.c1#include <assert.h>COMMENT
LOWsway/input/seat.c1#include <assert.h>COMMENT
LOWsway/input/seat.c21#include "sway/input/cursor.h"COMMENT
LOWsway/input/cursor.c1#include <assert.h>COMMENT
LOWsway/input/cursor.c21#include "sway/commands.h"COMMENT
LOWsway/input/cursor.c761 // currently map to BTN_RIGHT, we need to keep count of how many toolCOMMENT
LOWsway/input/input-manager.c1#include <ctype.h>COMMENT
LOWsway/desktop/xwayland.c1#include <float.h>COMMENT
LOWsway/desktop/layer_shell.c1#include <stdbool.h>COMMENT
LOWsway/desktop/transaction.c1#include <stdbool.h>COMMENT
28 more matches not shown…
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsway/desktop/launcher.c211 // TODO: implement a better fallback.COMMENT