AI Slop Code Risk Monitor

joewalnes/websocketd

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

Turn any program that uses STDIN/STDOUT into a WebSocket server. Like inetd, but for WebSockets.

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for joewalnes/websocketd, a Go project with 17,455 GitHub stars. SynthScan examined 38,870 lines of code across 256 source files, recording 74 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-09-07
Last Push
17.5K
Stars
Go
Language
38.9K
Lines of Code
256
Files
74
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 9.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/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 9.9/100 · LOW

Which changes need focused human review? 74 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 1MEDIUM 1LOW 72

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 74 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 Block68 hits · 68 pts
SeverityFileLineSnippetContext
LOWpublished_website_test.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWdocs_voice_test.go21// homepage shipped four — entities within an hour of the secondCOMMENT
LOWdead_links_test.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWmachine_identifiers_test.go41// homePathRe matches an absolute home directory belonging to a named account,COMMENT
LOWrepo_scan_test.go21//COMMENT
LOWmain.go21 "github.com/joewalnes/websocketd/libwebsocketd"COMMENT
LOWmain.go121 TLSConfig: cfg,COMMENT
LOWmain.go201// concatenated onto that string; they travel as the Path/RawPath/RawQueryCOMMENT
LOWbench/run.sh1#!/bin/shCOMMENT
LOWtools/gendocs/main.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWtools/gendocs/main.go361COMMENT
LOWtools/gendocs/main.go481COMMENT
LOWlibwebsocketd/console_serving_test.go21// This file guards the dev console's HTTP-serving contract laid out inCOMMENT
LOWlibwebsocketd/console_serving_test.go121}COMMENT
LOWlibwebsocketd/console_serving_test.go281// quote-breakout injection in the request target (net/http's client wouldCOMMENT
LOWlibwebsocketd/console_serving_test.go381func TestDevConsoleNoExternalResources(t *testing.T) {COMMENT
LOWlibwebsocketd/console_serving_test.go401// (e.g. `if (a < b)`) is not parsed as markup;COMMENT
LOWlibwebsocketd/handler.go181 return urlInfo, nilCOMMENT
LOWlibwebsocketd/handler.go221 if err != nil {COMMENT
LOWlibwebsocketd/handler.go241 // path names instead of asking how it is spelled.COMMENT
LOWlibwebsocketd/console.go21// raw string literal cannot contain a backtick — that its JavaScript is freeCOMMENT
LOWlibwebsocketd/console.go41// ConsoleCSP is the Content-Security-Policy for the console response. TheCOMMENT
LOWlibwebsocketd/handler_boundary_spelling_test.go61 if os.SameFile(fa, fb) {COMMENT
LOWlibwebsocketd/http_static_test.go301COMMENT
LOWlibwebsocketd/http_security_test.go61}COMMENT
LOWlibwebsocketd/http_cgi_mount_test.go121 if got := cgiMountPrefix(tt.staticDir, tt.cgiDir); got != tt.want {COMMENT
LOWlibwebsocketd/http_cgi_mount_test.go221 }COMMENT
LOWlibwebsocketd/http.go181 return trueCOMMENT
LOWlibwebsocketd/http.go201 // the user types the endpoint.COMMENT
LOWlibwebsocketd/http.go221// is also used as a plain http.Handler with no mux in front of it — so thisCOMMENT
LOWlibwebsocketd/http.go241// The derivation asks dirRelation which *directory* --cgidir names relativeCOMMENT
LOWlibwebsocketd/http.go301 }COMMENT
LOWlibwebsocketd/http.go341 return "unknown"COMMENT
LOWlibwebsocketd/http.go401// sides for no new information. It is the same walk, not a secondCOMMENT
LOWlibwebsocketd/http.go441COMMENT
LOWlibwebsocketd/http.go481// resolveCgiPath built one line earlier as Join(cgiDir, <rooted, cleaned>),COMMENT
LOWlibwebsocketd/http.go561 cgiHandler.ServeHTTP(w, req)COMMENT
LOWlibwebsocketd/http.go581 execDirs []stringCOMMENT
LOWlibwebsocketd/http.go661 }COMMENT
LOWlibwebsocketd/http.go701// tried, so whatever the earlier handlers decline lands here, and for aCOMMENT
LOWlibwebsocketd/console.html161#detail-body .n { color: var(--jnum); }COMMENT
LOWlibwebsocketd/proc_unix.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWlibwebsocketd/process_endpoint.go201 return msgCOMMENT
LOWinternal/cliflags/cliflags.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWqa/capture/capture-console.sh1#!/usr/bin/env bashCOMMENT
LOWqa/capture/main.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWqa/capture/main.go241 return ctx, func() {COMMENT
LOWqa/capture/main.go501 if err := chromedp.Run(ctx, page.StopScreencast()); err != nil {COMMENT
LOWqa/integration/fixtures_test.go21COMMENT
LOWqa/integration/fixtures_test.go121// cgiSite is the layout the #453 family shares: a CGI directory nested insideCOMMENT
LOWqa/integration/scriptdir_disclosure_test.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWqa/integration/boundary_spelling_test.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
LOWqa/integration/boundary_spelling_test.go21// inside the directory they configured.COMMENT
LOWqa/integration/helpers_test.go121// startServerOpts starts websocketd with extra flags and testcmd <mode>.COMMENT
LOWqa/integration/helpers_test.go241}COMMENT
LOWqa/integration/cgi_mount_spelling_test.go21// the CGI handler did not recognize the script's natural URL, and the staticCOMMENT
LOWqa/integration/known_bugs_test.go1package integrationCOMMENT
LOWqa/browser/console_html_test.go21 "detail-opcode", "detail-size", "detail-body", "clear", "theme",COMMENT
LOWqa/browser/console_test.go21// implementation lanes for the dev-console rebuild (ASKS.md A1). They areCOMMENT
LOWqa/browser/harness_test.go1// Copyright 2026 Joe Walnes and the websocketd team.COMMENT
8 more matches not shown…
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbench/lib/generate-report.py260 `<br><strong>OS:</strong> ${m.os_pretty || m.os || '?'} (${m.arch || '?'})`,CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMDIARY.md1495## 2026-09-05 — docs.websocketd.com scaffold: Hugo, a from-scratch theme, and one unresolved infra questionCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWbench/lib/generate-report.py57CODE
LOWbench/lib/to-benchmark-action.py58CODE
LOWbench/lib/to-benchmark-action.py76CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbench/lib/generate-report.py12CODE