AI Slop Code Risk Monitor

clusterzx/paperless-ai

SlopCodeMonitor badge for clusterzx/paperless-ai Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
4.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for clusterzx/paperless-ai. SynthScan examined 31,940 lines of code across 63 source files, recording 112 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 4.0 (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.

4.0
Adjusted Signal
4.0
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
31.9K
Lines of Code
63
Files
112
Pattern Hits
2026-10-31
Scan Date
0.06
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 9.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.2/100 · LOW

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

Agent Over-Engineering Ratio 6.7/100 · LOW

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

PR Review Velocity Impact 20.7/100 · LOW

Which changes need focused human review? 112 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 4MEDIUM 8LOW 100

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 112 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.

Redundant / Tautological Comments22 hits · 28 pts
SeverityFileLineSnippetContext
LOW⚡main.py725 # Check if collection is accessibleCOMMENT
LOW⚡main.py741 # Check if BM25 corpus matches document countCOMMENT
LOW⚡main.py780 # Check if we have new documentsCOMMENT
LOW⚡main.py790 # Check if tokenized corpus size matches document countCOMMENT
LOWmain.py312 # Check if newest document is already indexedCOMMENT
LOWmain.py348 # Check if response is emptyCOMMENT
LOWmain.py363 # Check if there's a next pageCOMMENT
LOWmain.py562 # Check if collection existsCOMMENT
LOWmain.py575 # Check if collection is valid by fetching countCOMMENT
LOWmain.py911 # Check if tokenized corpus matches our document countCOMMENT
LOWmain.py1005 # Check if scores is a valid arrayCOMMENT
LOWmain.py1056 # Check if results are validCOMMENT
LOWmain.py1290 # Check if we got valid resultsCOMMENT
LOWmain.py1328 # Check if we still have results after filteringCOMMENT
LOWmain.py1370 # Check if models are initializedCOMMENT
LOWmain.py1383 # Check if we need to check for new documentsCOMMENT
LOWmain.py1549 # Check if documents exist and ChromaDB is readyCOMMENT
LOWmain.py1601 # Check if we have valid docs and indexes before trying to loadCOMMENT
LOWmain.py1658 # Check if we need to fix indexesCOMMENT
LOWmain.py1734 # Check if we got any resultsCOMMENT
LOWmain.py1853 # Check if indexing is already runningCOMMENT
LOWmain.py2025 # Check if we already have documents loadedCOMMENT
Excessive Try-Catch Wrapping37 hits · 21 pts
SeverityFileLineSnippetContext
LOW⚡main.py732 except Exception as e:CODE
LOW⚡main.py800 except Exception as e:CODE
LOW⚡main.py1700 except Exception as dm_error:CODE
LOW⚡main.py1706 except Exception as se_error:CODE
LOW⚡main.py1715 except Exception as e:CODE
LOWmain.py154 except Exception as e:CODE
LOWmain.py199 except Exception as e:CODE
LOWmain.py273 except Exception as e:CODE
LOWmain.py317 except Exception as e:CODE
LOWmain.py456 except Exception as e:CODE
LOWmain.py505 except Exception as e:CODE
LOWmain.py609 except Exception as inner_e:CODE
LOWmain.py643 except Exception as e:CODE
LOWmain.py824 except Exception as e:CODE
LOWmain.py890 except Exception as e:CODE
LOWmain.py921 except Exception as e:CODE
LOWmain.py978 except Exception as e:CODE
LOWmain.py1030 except Exception as e:CODE
LOWmain.py1077 except Exception as e:CODE
LOWmain.py1083 except Exception as e:CODE
LOWmain.py1118 except Exception as e:CODE
LOWmain.py1124 except Exception as e:CODE
LOWmain.py1221 except Exception as e:CODE
LOWmain.py1267 except Exception as e:CODE
LOWmain.py1351 except Exception as item_e:CODE
LOWmain.py1357 except Exception as e:CODE
LOWmain.py1441 except Exception as e:CODE
LOWmain.py1478 except Exception as e:CODE
LOWmain.py1483 except Exception as e2:CODE
LOWmain.py1498 except Exception as e:CODE
LOWmain.py1593 except Exception as e:CODE
LOWmain.py1619 except Exception as e:CODE
LOWmain.py1637 except Exception as e:CODE
LOWmain.py1689 except Exception as e:CODE
LOWmain.py1770 except Exception as e:CODE
LOWmain.py1958 except Exception as e:CODE
LOWmain.py1988 except Exception as e:CODE
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHmain.py851except:CODE
HIGHmain.py944except:CODE
HIGHmain.py1307except:CODE
HIGHmain.py1315except:CODE
Fake / Example Data15 hits · 18 pts
SeverityFileLineSnippetContext
LOWtest-restriction-service.js14const existingCorrespondents = ['John Doe', 'ACME Corp', 'Tax Office'];CODE
LOWtest-updated-service.js14const existingCorrespondents = ['John Doe', 'ACME Corp', 'Tax Office'];CODE
LOWOPENAPI/openapi.json162 "example": "Acme Corp"CODE
LOWOPENAPI/openapi.json888 "example": "Acme Corp"CODE
LOWOPENAPI/openapi.json1582 "example": "Acme Corp"CODE
LOWOPENAPI/openapi.json1674 "example": "Acme Corp"CODE
LOWOPENAPI/openapi.json3451 "Acme Corp"CODE
LOWOPENAPI/openapi.json3475 "example": "Acme Corp"CODE
LOWOPENAPI/openapi.json3696 "example": "Acme Corp"CODE
LOWroutes/setup.js467 * example: "Acme Corp"COMMENT
LOWroutes/setup.js1116 * example: "Acme Corp"COMMENT
LOWroutes/setup.js1185 * example: "Acme Corp"COMMENT
LOWroutes/setup.js2969 * example: ["Invoice", "Finance", "Acme Corp"]COMMENT
LOWroutes/setup.js2985 * example: "Acme Corp"COMMENT
LOWroutes/setup.js3232 * example: "Acme Corp"COMMENT
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMstart-services.sh7# Start the Python RAG service in the backgroundCOMMENT
MEDIUMREADME.md47### 🧠 RAG-Based AI ChatCOMMENT
MEDIUMRAG-DEV-GUIDE.md1# Using the RAG Service in Development ModeCOMMENT
MEDIUMRAG-DEV-GUIDE.md53### Step 1: Set Up the Python RAG ServiceCOMMENT
MEDIUMRAG-DEV-GUIDE.md97## Accessing the RAG InterfaceCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMmain.py130 # Create a serializable state objectCOMMENT
MEDIUMmain.py947 # Create a map for quick document lookup by IDCOMMENT
Deep Nesting9 hits · 4 pts
SeverityFileLineSnippetContext
LOWmain.py1461CODE
LOWmain.py1508CODE
LOWmain.py1896CODE
LOWmain.py321CODE
LOWmain.py460CODE
LOWmain.py551CODE
LOWmain.py760CODE
LOWmain.py1036CODE
LOWmain.py1274CODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWserver.js581 } catch (error) {COMMENT
LOWroutes/setup.js2781 * application/json:COMMENT
LOWservices/customService.js161COMMENT
LOWservices/paperlessService.js1321COMMENT
Hyper-Verbose Identifiers4 hits · 3 pts
SeverityFileLineSnippetContext
LOWmain.py206class DataManager:CODE
LOWmain.py2060 async def rebuild_indexes_on_startup():CODE
LOWservices/serviceUtils.js43function estimateTokensForNonOpenAI(text) {CODE
LOWservices/serviceUtils.js75async function calculateTotalPromptTokens(systemPrompt, additionalPrompts = [], model = process.env.OPENAI_MODEL || "gptCODE
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWRAG-DEV-GUIDE.md53### Step 1: Set Up the Python RAG ServiceCOMMENT
LOWRAG-DEV-GUIDE.md69### Step 2: Configure the Paperless-AI ApplicationCOMMENT
Unused Imports5 hits · 2 pts
SeverityFileLineSnippetContext
LOWmain.py8CODE
LOWmain.py8CODE
LOWmain.py8CODE
LOWmain.py16CODE
LOWmain.py19CODE
AI Slop Vocabulary3 hits · 2 pts
SeverityFileLineSnippetContext
LOWmain.py1261 # If snippet is empty (no term matches), just use the beginning of the contentCOMMENT
LOWmain.py1407 # to do a full rebuild or just add new documentsCOMMENT
MEDIUMmain.py1897 """Perform a comprehensive health check of the system"""STRING