AI Slop Code Risk Monitor

flatpak/flatpak

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

Linux application sandboxing and distribution framework

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for flatpak/flatpak, a C project with 5,103 GitHub stars. SynthScan examined 162,698 lines of code across 352 source files, recording 163 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.1 (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.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.1K
Stars
C
Language
162.7K
Lines of Code
352
Files
163
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 4.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 0.8/100 · LOW

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

PR Review Velocity Impact 5.7/100 · LOW

Which changes need focused human review? 163 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 3MEDIUM 6LOW 154

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 163 distinct pattern matches across 9 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 Block135 hits · 135 pts
SeverityFileLineSnippetContext
LOWuncrustify.cfg121# Not clear what to do about that...COMMENT
LOWtools/usb/epsonscan2-parse.py1#!/bin/env python3COMMENT
LOWtools/usb/libsane-parse.py1#!/bin/env python3COMMENT
LOWtools/usb/utsushi-parse.py1#!/bin/env python3COMMENT
LOWtools/usb/gphoto2-parse.py1#!/bin/env python3COMMENT
LOWportal/flatpak-portal.c21#include "config.h"COMMENT
LOWportal/flatpak-portal.c41#include "flatpak-portal-dbus.h"COMMENT
LOWapp/flatpak-builtins-remote-ls.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-remote-add.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-bundle.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-create-usb.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-document-export.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-pin.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-run.c21#include "config.h"COMMENT
LOWapp/flatpak-table-printer.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-document-unexport.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-ps.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-update.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-kill.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-permission-remove.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-uninstall.c21#include "config.h"COMMENT
LOWapp/flatpak-cli-transaction.c21 */COMMENT
LOWapp/flatpak-main.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-finish.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-commit-from.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-install.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-export.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-mask.c21#include "config.h"COMMENT
LOWapp/flatpak-tty-utils-private.h21#include "flatpak-utils-private.h"COMMENT
LOWapp/flatpak-builtins-build-update-repo.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-repair.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-preinstall.c21#include "config.h"COMMENT
LOWapp/flatpak-polkit-agent-text-listener.c21COMMENT
LOWapp/flatpak-builtins-utils.h21#ifndef __FLATPAK_BUILTINS_UTILS_H__COMMENT
LOWapp/flatpak-builtins-info.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-remote-info.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-permission-reset.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-init.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-document-info.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-build-import-bundle.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-permission-list.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-history.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-override.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-permission-show.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-enter.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-document-list.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-repo.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-list.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-remote-list.c21#include "config.h"COMMENT
LOWapp/flatpak-builtins-permission-set.c21#include "config.h"COMMENT
LOWsystem-helper/flatpak-system-helper.h21#define FLATPAK_SYSTEM_HELPER_BUS_NAME "org.freedesktop.Flatpak.SystemHelper"COMMENT
LOWsystem-helper/flatpak-system-helper.c21#include "config.h"COMMENT
LOWrevokefs/writer.c21COMMENT
LOWrevokefs/main.c21 */COMMENT
LOWrevokefs/writer.h81#define MAX_DATA_SIZE 16384COMMENT
LOWtests/test-extra-data.sh1#!/bin/bashCOMMENT
LOWtests/test-exports.c21#include <sys/types.h>COMMENT
LOWtests/test-summaries.sh1#!/bin/bashCOMMENT
LOWtests/test-oci.sh1#!/bin/bashCOMMENT
75 more matches not shown…
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/http-utils-test-server.py115except:CODE
HIGHtests/web-server.py67except:CODE
HIGHtests/oci-registry-server.py333except OSError:CODE
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/usb/utsushi-parse.py23CODE
LOWtests/http-utils-test-server.py9CODE
LOWtests/web-server.py3CODE
LOWtests/web-server.py4CODE
LOWtests/web-server.py5CODE
LOWtests/web-server.py6CODE
LOWtests/web-server.py8CODE
LOWtests/web-server.py9CODE
LOWtests/web-server.py12CODE
LOWtests/web-server.py14CODE
Excessive Try-Catch Wrapping4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMcommon/test-lib.c132 g_print ("Error: %s\n", error->message);CODE
MEDIUMcommon/test-lib.c152 g_print ("Error: %s\n", error->message);CODE
MEDIUMcommon/test-lib.c166 g_print ("Error loading bundle: %s\n", error->message);CODE
MEDIUMcommon/test-lib.c199 g_print ("Error decompressing appdata: %s\n", error->message);CODE
Self-Referential Comments2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMapp/flatpak-builtins-build-init.c70 "# This file is autogenerated by flatpak build-init\n" \CODE
MEDIUMtests/test-summaries.sh156 # Create a bunch of apps (for all arches)COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test-extension-branch-follow.sh97# Check if extension 2.0 was installedCOMMENT
LOWtests/make-test-runtime.sh50 # Check if the program is installedCOMMENT
LOW.github/workflows/release.yml63 # Check if version is a pre-releaseCOMMENT
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/http-utils-test-server.py25class RequestHandler(http_server.BaseHTTPRequestHandler):CODE
LOWtests/web-server.py17class RequestHandler(http_server.SimpleHTTPRequestHandler):CODE
LOWtests/oci-registry-server.py62class RequestHandler(http_server.BaseHTTPRequestHandler):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/oci-registry-server.py95CODE
LOWtests/oci-registry-server.py172CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWoci-authenticator/flatpak-oci-authenticator.c540 * described in #3753, so just return the error early.COMMENT