AI Slop Code Risk Monitor

cloudflare/cloudflared

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

Cloudflare Tunnel client

2.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloudflare/cloudflared, a Go project with 16,369 GitHub stars. SynthScan examined 76,757 lines of code across 446 source files, recording 103 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.6
Adjusted Signal
2.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
16.4K
Stars
Go
Language
76.8K
Lines of Code
446
Files
103
Pattern Hits
2026-10-31
Scan Date
0.02
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? 69 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.3/100 · LOW

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

Agent Over-Engineering Ratio 6.5/100 · LOW

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

PR Review Velocity Impact 11.6/100 · LOW

Which changes need focused human review? 103 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 2HIGH 8MEDIUM 14LOW 79

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 103 distinct pattern matches across 14 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.

Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHgithub_release.py218except shutil.SameFileError:CODE
HIGHgithub_release.py257except OSError:CODE
HIGHgithub_release.py195except OSError:CODE
HIGHcomponent-tests/test_tail.py180except asyncio.TimeoutError:CODE
HIGHcomponent-tests/test_tail.py142except websockets.ConnectionClosed:CODE
HIGHcomponent-tests/test_prechecks.py131except requests.exceptions.RequestException:CODE
HIGHcomponent-tests/setup.py50except OSError:CODE
Decorative Section Separators7 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM⚡component-tests/test_prechecks.py265 # ── table structure ──────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py275 # ── row content ──────────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py310 # ── no action lines ──────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py314 # ── summary line ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py318 # ── diagnostic report ────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py369 # ── table structure ──────────────────────────────────────────────────COMMENT
MEDIUM⚡component-tests/test_prechecks.py379 # ── row content ──────────────────────────────────────────────────────COMMENT
Hyper-Verbose Identifiers28 hits · 28 pts
SeverityFileLineSnippetContext
LOWrelease_pkgs.py172 def _setup_rpm_pkg_directories(self, artifacts_path, gpg_key_name, archs=["aarch64", "x86_64", "386"]):CODE
LOWcomponent-tests/conftest.py54def wait_previous_cloudflared():CODE
LOWcomponent-tests/test_termination.py57 def test_shutdown_once_no_connection(self, tmp_path, component_tests_config, signal, protocol):CODE
LOWcomponent-tests/test_termination.py77 def test_no_connection_shutdown(self, tmp_path, component_tests_config, signal, protocol):CODE
LOWcomponent-tests/test_tail.py16 async def test_start_stop_streaming(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_tail.py62 async def test_streaming_logs_filters(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_tail.py90 async def test_streaming_logs_sampling(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_tail.py118 async def test_streaming_logs_actor_override(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_tail.py136async def start_streaming_to_be_remotely_closed(url):CODE
LOWcomponent-tests/test_tail.py156async def generate_and_validate_http_events(websocket: WebSocketClientProtocol, url: str, count_send: int):CODE
LOWcomponent-tests/test_tail.py174async def generate_and_validate_no_log_event(websocket: WebSocketClientProtocol, url: str):CODE
LOWcomponent-tests/test_service.py26 def test_launchd_service_log_to_file(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_service.py43 def test_launchd_service_with_token(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_service.py58 def test_launchd_service_rotating_log(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_service.py89 def test_sysv_service_log_to_file(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_service.py106 def test_sysv_service_rotating_log(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_service.py125 def test_sysv_service_with_token(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/util.py138def run_cloudflared_background(cmd, allow_input, capture_output):CODE
LOWcomponent-tests/util.py211def check_tunnel_not_connected():CODE
LOWcomponent-tests/test_prechecks.py239 def test_prechecks_pass_on_healthy_connection(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_prechecks.py343 def test_prechecks_hard_fail_when_edge_unreachable(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_prechecks.py435 def test_diag_contains_prechecks_json(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_management.py93 def test_get_metrics_when_disabled(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_edge_discovery.py64 def expect_address_connections(self, tmp_path, component_tests_config, protocol, edge_ip_version, assert_address_typCODE
LOWcomponent-tests/test_token.py18 def test_get_credentials_file(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_config.py7 def test_validate_ingress_rules(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_quicktunnels.py25 def test_allowed_mail_flag_is_public(self, tmp_path, component_tests_config):CODE
LOWcomponent-tests/test_quicktunnels.py39 def test_quick_tunnel_validates_allowed_mail(self, tmp_path, component_tests_config):CODE
Over-Commented Block26 hits · 26 pts
SeverityFileLineSnippetContext
LOW.golangci.yaml61 max-issues-per-linter: 50COMMENT
LOW.golangci.yaml81 # Check exhaustiveness of enum switch statements.COMMENT
LOW.gitlab-ci.yml41 #####################################################COMMENT
LOW.gitlab-ci.yml61 #####################################################COMMENT
LOWtoken/encrypt.go1// Package token contains the Encrypter, a small helper for end-to-end encrypting (E2EE)COMMENT
LOWmetrics/metrics.go101}COMMENT
LOWcmd/cloudflared/linux_service.go121}COMMENT
LOWcmd/cloudflared/windows_service.go121func createTokenFile(path string) error {COMMENT
LOWcrypto/curves.go21// Canonical curve lists returned by GetCurvePreferences. They are keptCOMMENT
LOWcrypto/doc.go1// Package crypto centralizes the cryptographic primitives and TLSCOMMENT
LOWcrypto/doc.go21// CLI flag. No classical fallback is offered, so a peer that does notCOMMENT
LOWquicktunnelauth/jwks.go21const (COMMENT
LOWproxy/proxy_test.go821 defer r.Unlock()COMMENT
LOWconnection/quic_connection.go381 }COMMENT
LOWingress/config.go301 // HTTP proxy timeout for closing an idle connectionCOMMENT
LOWconfig/configuration.go201 TCPKeepAlive *CustomDuration `yaml:"tcpKeepAlive" json:"tcpKeepAlive,omitempty"`COMMENT
LOWedgediscovery/allregions/discovery.go81 TCP *net.TCPAddrCOMMENT
LOWprechecks/types.go81type ResolvedTarget struct {COMMENT
LOWprechecks/types.go121 // checks. Startup uses the tunnel's effective family after accounting forCOMMENT
LOWprechecks/types.go141 // SuggestedProtocol honours the override so that the summary messageCOMMENT
LOWprechecks/checker.go321 p := connection.HTTP2COMMENT
LOWquic/v3/datagram.go61COMMENT
LOWquic/v3/datagram.go201// The datagram structure for UDPSessionPayloadDatagram is:COMMENT
LOWquic/v3/datagram.go281 // Session was received and is ready to proxy.COMMENT
LOWquic/v3/datagram.go301// 8| (16 Bytes) |COMMENT
LOWquic/v3/datagram.go381COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALconnection/control.go112 c.observer.metrics.localConfigMetrics.pushesErrors.Inc()CODE
CRITICALconnection/control.go115 c.observer.metrics.localConfigMetrics.pushes.Inc()CODE
AI Slop Vocabulary5 hits · 16 pts
SeverityFileLineSnippetContext
LOW.ci/release.gitlab-ci.yml21 # we simply set both to the same value.COMMENT
MEDIUMingress/origin_icmp_proxy.go40 // response to utilize.COMMENT
MEDIUMingress/origins/dns.go206// NewDNSDialer creates a custom dialer for the DNS resolver service to utilize.COMMENT
MEDIUM⚡component-tests/test_prechecks.py266 # zerolog writes to stderr which is merged into stdout by the harness.COMMENT
MEDIUM⚡component-tests/test_prechecks.py370 # zerolog writes to stderr which is merged into stdout by the harness.COMMENT
Fake / Example Data7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcfsetup.yaml2dummy_key: trueCODE
LOW⚡quicktunnelauth/validation_test.go24 {name: "single with leading spaces", values: []string{" user@example.com"}, expectedEmails: []string{"user@example.comCODE
LOW⚡quicktunnelauth/validation_test.go25 {name: "single with trailing spaces", values: []string{"user@example.com "}, expectedEmails: []string{"user@example.coCODE
LOW⚡quicktunnelauth/validation_test.go26 {name: "single with surrounding spaces", values: []string{" User@Example.com "}, expectedEmails: []string{"user@examplCODE
LOW⚡quicktunnelauth/validation_test.go28 {name: "deduplicated", values: []string{"User@example.com,user@example.com", "*@Example.org,*@example.org"}, expectedECODE
LOW⚡quicktunnelauth/validation_test.go28 {name: "deduplicated", values: []string{"User@example.com,user@example.com", "*@Example.org,*@example.org"}, expectedECODE
LOWquicktunnelauth/validation_test.go121 tooManyRules[index] = "user@example.com"CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWgithub_release.py311 except Exception as e:CODE
LOWrelease_pkgs.py410 except Exception as e:CODE
LOWgithub_message.py166 except Exception as e:CODE
LOWcomponent-tests/util.py175 except Exception as e:CODE
MEDIUMcomponent-tests/util.py172def wait_tunnel_ready(tunnel_url=None, require_min_connections=1, cfd_logs=None)CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWgithub_release.py15CODE
LOWcomponent-tests/test_management.py5CODE
LOWcomponent-tests/test_management.py8CODE
LOWcomponent-tests/test_tunnel.py6CODE
LOWcomponent-tests/test_tunnel.py7CODE
LOWcomponent-tests/test_tunnel.py8CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.ci/scripts/vuln-check.sh4# Define the file to store the list of vulnerabilities to ignore.COMMENT
MEDIUM.ci/scripts/component-tests.sh16# Define the cleanup functionCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHcomponent-tests/util.py258 Decode the payload section of a JWT token without signature verification. JWT Structure: =============STRING
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.ci/scripts/vuln-check.sh8# Check if the ignored vulnerabilities file exists. If not, create an empty one.COMMENT
LOW.ci/scripts/release-target.sh4# Check if a make target is provided as an argumentCOMMENT
LOW.ci/scripts/linux/build-packages.sh4# Check if architecture argument is providedCOMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWgithub_release.py276CODE
LOWrelease_pkgs.py172CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcomponent-tests/util.py109CODE
LOWcomponent-tests/cli.py25CODE