AI Slop Code Risk Monitor

basecamp/trix

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

A rich text editor for everyday writing

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for basecamp/trix, a JavaScript project with 20,015 GitHub stars. SynthScan examined 38,836 lines of code across 238 source files, recording 40 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-27
Last Push
20.0K
Stars
JavaScript
Language
38.8K
Lines of Code
238
Files
40
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 5.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 5.8/100 · LOW

Which changes need focused human review? 40 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 3LOW 37

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 40 distinct pattern matches across 5 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 Block24 hits · 24 pts
SeverityFileLineSnippetContext
LOWaction_text-trix/app/assets/javascripts/trix.js2721 } else if (cfg.TRUSTED_TYPES_POLICY === null) {COMMENT
LOWaction_text-trix/app/assets/javascripts/trix.js3281 // name at all, we can't reason about clobbering — return falseCOMMENT
LOWaction_text-trix/app/assets/javascripts/trix.js3301 // an internal slot, no serialization cost — and removes a residualCOMMENT
LOW…n_text-trix/test/dummy/app/views/pwa/service-worker.js1// Add a service worker for processing Web Push notifications:COMMENT
LOW…n_text-trix/test/dummy/app/views/pwa/service-worker.js21// if (clients.openWindow) {COMMENT
LOWaction_text-trix/test/dummy/config/storage.yml1test:COMMENT
LOWaction_text-trix/test/dummy/config/storage.yml21# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>COMMENT
LOWaction_text-trix/test/dummy/config/application.rb21 # Configuration for the application, engines, and railties goes here.COMMENT
LOWaction_text-trix/test/dummy/config/puma.rb1# This configuration file will be evaluated by Puma. The top-level methods thatCOMMENT
LOWaction_text-trix/test/dummy/config/puma.rb21# The default is set to 3 threads as it's deemed a decent compromise betweenCOMMENT
LOWaction_text-trix/test/dummy/config/database.yml21 database: storage/test.sqlite3COMMENT
LOWaction_text-trix/test/dummy/config/locales/en.yml1# Files in the config/locales directory are used for internationalization andCOMMENT
LOWaction_text-trix/test/dummy/config/locales/en.yml21#COMMENT
LOW…text-trix/test/dummy/config/environments/production.rb61COMMENT
LOW…text-trix/test/dummy/config/environments/production.rb81 # Enable DNS rebinding protection and other `Host` header attacks.COMMENT
LOWaction_text-trix/test/dummy/config/environments/test.rb1# The test environment is used exclusively to run your application'sCOMMENT
LOW…t/dummy/config/initializers/content_security_policy.rb1# Be sure to restart your server when you modify this file.COMMENT
LOW…t/dummy/config/initializers/content_security_policy.rb21# config.content_security_policy_nonce_directives = %w(script-src style-src)COMMENT
LOW…ext-trix/test/dummy/config/initializers/inflections.rb1# Be sure to restart your server when you modify this file.COMMENT
LOWaction_text-trix/test/dummy/db/schema.rb1# This file is auto-generated from the current state of the database. InsteadCOMMENT
LOWsrc/test/unit/location_mapper_test.js1import { TEST_IMAGE_URL, assert, test, testGroup } from "test/test_helper"COMMENT
LOWsrc/test/unit/location_mapper_test.js21 // 1 b😭cdCOMMENT
LOWsrc/test/unit/location_mapper_test.js161 const offset = 2COMMENT
LOWsrc/trix/core/helpers/strings.js81// the result back to the same value.COMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…t/dummy/config/initializers/content_security_policy.rb3# Define an application-wide content security policy.COMMENT
MEDIUMaction_text-trix/test/dummy/db/schema.rb1# This file is auto-generated from the current state of the database. InsteadCOMMENT
MEDIUMaction_text-trix/test/dummy/db/schema.rb5# This file is the source Rails uses to define your schema when running `bin/railsCOMMENT
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWaction_text-trix/app/assets/javascripts/trix.js1167 function shouldRenderInmmediatelyToDealWithIOSDictation(inputEvent) {CODE
LOWaction_text-trix/app/assets/javascripts/trix.js5366 function createAddInitializerMethod(e, t) {CODE
LOWaction_text-trix/app/assets/javascripts/trix.js5548 function createAddInitializerMethod(e, t) {CODE
LOWaction_text-trix/app/assets/javascripts/trix.js5735 function createAddInitializerMethod(e, t) {CODE
LOWaction_text-trix/app/assets/javascripts/trix.js6114 function AsyncFromSyncIteratorContinuation(r) {CODE
LOWaction_text-trix/app/assets/javascripts/trix.js6393 function GeneratorFunctionPrototype() {}CODE
LOWaction_text-trix/app/assets/javascripts/trix.js6430 function callInvokeWithMethodAndArg() {CODE
LOWsrc/trix/core/helpers/events.js47export function shouldRenderInmmediatelyToDealWithIOSDictation(inputEvent) {CODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…text-trix/test/dummy/config/environments/production.rb56 # Set this to true and configure the email server for immediate delivery to raise delivery errors.COMMENT
LOW…text-trix/test/dummy/config/environments/production.rb59 # Set host to be used by links generated in mailer templates.COMMENT
LOW…ext-trix/test/dummy/config/environments/development.rb40 # Set localhost to be used by links generated in mailer templates.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWaction_text-trix/app/assets/javascripts/trix.js2130 const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'auCODE
LOWaction_text-trix/app/assets/javascripts/trix.js2498 const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholCODE