AI Slop Code Risk Monitor

haproxy/haproxy

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

HAProxy Load Balancer's development branch (mirror of git.haproxy.org)

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for haproxy/haproxy, a C project with 6,962 GitHub stars. SynthScan examined 510,069 lines of code across 938 source files, recording 653 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
7.0K
Stars
C
Language
510.1K
Lines of Code
938
Files
653
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 6.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 6.5/100 · LOW

Which changes need focused human review? 653 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 641

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 653 distinct pattern matches across 13 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 Block613 hits · 590 pts
SeverityFileLineSnippetContext
LOWreg-tests/spoe/spoa_mock.py1#!/usr/bin/env python3COMMENT
LOWinclude/import/xxhash.h281 * avoiding naming collision with previous inclusions.COMMENT
LOWinclude/import/xxhash.h301# undef XXH64_freeStateCOMMENT
LOWinclude/import/xxhash.h321# undef XXH3_generateSecretCOMMENT
LOWinclude/import/xxhash.h341# define XXH_NAMESPACE XXH_INLINE_COMMENT
LOWinclude/import/xxhash.h361# define XXH3_state_t XXH_IPREF(XXH3_state_t)COMMENT
LOWinclude/import/xxhash.h381# endifCOMMENT
LOWinclude/import/xxhash.h401/* XXH64 */COMMENT
LOWinclude/import/xxhash.h421# define XXH3_64bits_reset_withSecret XXH_NAME2(XXH_NAMESPACE, XXH3_64bits_reset_withSecret)COMMENT
LOWinclude/import/xxhash.h441# define XXH128_canonicalFromHash XXH_NAME2(XXH_NAMESPACE, XXH128_canonicalFromHash)COMMENT
LOWinclude/import/xxhash.h461#endifCOMMENT
LOWinclude/import/xxhash.h781#if XXH_HAS_C_ATTRIBUTE(fallthrough) || XXH_HAS_CPP_ATTRIBUTE(fallthrough)COMMENT
LOWinclude/import/xxhash.h1481#elif defined(__GNUC__)COMMENT
LOWinclude/import/xxhash.h1981COMMENT
LOWinclude/import/xxhash.h2001 /* don't check on sizeopt, x86, aarch64, or arm when unaligned access is available */COMMENT
LOWinclude/import/xxhash.h2101#if XXH_NO_INLINE_HINTS /* disable inlining hints */COMMENT
LOWinclude/import/xxhash.h2141 */COMMENT
LOWinclude/import/xxhash.h2561#define XXH_PRIME32_2 0x85EBCA77U /*!< 0b10000101111010111100101001110111 */COMMENT
LOWinclude/import/xxhash.h3401 */COMMENT
LOWinclude/import/xxhash.h3421# define XXH_HAS_INCLUDE(x) 0COMMENT
LOWinclude/import/xxhash.h3581# define XXH_NEON 4COMMENT
LOWinclude/import/xxhash.h3601# define XXH_VECTOR XXH_AVX2COMMENT
LOWinclude/import/xxhash.h3621# define XXH_VECTOR XXH_SCALARCOMMENT
LOWinclude/import/xxhash.h3641# elif XXH_VECTOR == XXH_AVX512 /* avx512 */COMMENT
LOWinclude/import/xxhash.h3861# define XXH_VSX_BE 1COMMENT
LOWinclude/import/xxhash.h3941 svuint64_t mul = svmad_u64_x(mask, mixed_lo, mixed_hi, swapped); \COMMENT
LOWinclude/import/xxhash.h4481# define ACC_NB XXH_ACC_NBCOMMENT
LOWinclude/import/xxhash.h5481COMMENT
LOWinclude/import/xxhash.h5501#elif (XXH_VECTOR == XXH_VSX)COMMENT
LOWinclude/import/mt_list.h41 * code is mostly used to validate builds and run single-threaded tests.COMMENT
LOWinclude/import/atomic-ops.h41 * Architecture-specific versions of the various operationsCOMMENT
LOWinclude/import/atomic-ops.h801COMMENT
LOWinclude/import/atomic-ops.h821COMMENT
LOWinclude/import/atomic-ops.h841#ifndef pl_dec_acqCOMMENT
LOWinclude/import/atomic-ops.h861COMMENT
LOWinclude/import/atomic-ops.h881#endifCOMMENT
LOWinclude/import/atomic-ops.h901COMMENT
LOWinclude/import/atomic-ops.h921#ifndef pl_subCOMMENT
LOWinclude/import/atomic-ops.h941#define pl_and(ptr, x) (__atomic_and_fetch((ptr), (x), __ATOMIC_SEQ_CST))COMMENT
LOWinclude/import/atomic-ops.h961#endifCOMMENT
LOWinclude/import/atomic-ops.h1001#ifndef pl_cmpxchgCOMMENT
LOWinclude/import/atomic-ops.h1021#endifCOMMENT
LOWinclude/import/atomic-ops.h1041#define pl_ldand(ptr, x) (__atomic_fetch_and((ptr), (x), __ATOMIC_SEQ_CST))COMMENT
LOWinclude/import/atomic-ops.h1061COMMENT
LOWinclude/import/atomic-ops.h1081#endifCOMMENT
LOWinclude/import/atomic-ops.h1101 * definitions. Everything not defined will use the generic code at the end.COMMENT
LOWinclude/import/atomic-ops.h1121# define pl_mb_store _pl_mb_storeCOMMENT
LOWinclude/import/atomic-ops.h1141#if !defined(pl_load_lax) && defined(_pl_load_lax)COMMENT
LOWinclude/import/atomic-ops.h1161COMMENT
LOWinclude/import/atomic-ops.h1181#endifCOMMENT
LOWinclude/import/atomic-ops.h1201# define pl_inc _pl_incCOMMENT
LOWinclude/import/atomic-ops.h1221COMMENT
LOWinclude/import/atomic-ops.h1241#endifCOMMENT
LOWinclude/import/atomic-ops.h1261#endifCOMMENT
LOWinclude/import/atomic-ops.h1281# define pl_and_noret_rel _pl_and_noret_relCOMMENT
LOWinclude/import/atomic-ops.h1301#if !defined(pl_or) && defined(_pl_or)COMMENT
LOWinclude/import/atomic-ops.h1321COMMENT
LOWinclude/import/atomic-ops.h1341# define pl_xor_noret_lax _pl_xor_noret_laxCOMMENT
LOWinclude/import/atomic-ops.h1361#if !defined(pl_sub_acq) && defined(_pl_sub_acq)COMMENT
LOWinclude/import/atomic-ops.h1381COMMENT
553 more matches not shown…
Slop Phrases11 hits · 20 pts
SeverityFileLineSnippetContext
LOWinclude/haproxy/mqtt-t.h54 * Don't forget to "left offset by 4 bits (<< 4)" the values below when matching against the fixedCOMMENT
LOWinclude/haproxy/h1.h105 * WARNING: Don't forget to update it if a new flag must be preserved whenCOMMENT
LOWsrc/cfgparse-listen.c1300 memprintf(err, "%s expects only one argument, don't forget to escape spaces!", args[0]);CODE
LOWsrc/log.c7207 * Don't forget to update the documentation when new log origins are addedCOMMENT
LOWsrc/tcpcheck.c2412 * change, don't forget to change this test and update allCOMMENT
MEDIUMsrc/h2.c73 * It's worth noting that H2 still supports an encoding to map H1 origin-formCOMMENT
LOWsrc/ssl_ckch.c3108 * /!\ don't forget to update __hlua_ckch_commit() if you changes things there. /!\COMMENT
MEDIUMsrc/http.c25 * will not handle them correctly. It's worth noting that chars 128..255 areCOMMENT
LOWsrc/jwt.c488 /* Don't forget to remove SSL errors to be sure they cannot beCOMMENT
MEDIUMsrc/slz.c1033 * It's worth noting that we *do not* fixup <bit9> if a matchCOMMENT
LOWsrc/pattern.c1946 /* don't forget to explicitly initialize all pat_ref struct members */COMMENT
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHreg-tests/spoe/spoa_mock.py157except Exception:CODE
HIGHadmin/release-estimator/release-estimator.py375except Exception as e:CODE
HIGH.github/matrix.py319except:CODE
HIGH.github/matrix.py328except:CODE
Hyper-Verbose Identifiers6 hits · 8 pts
SeverityFileLineSnippetContext
LOW.github/matrix.py68def aws_lc_version_string_to_num(version_string):CODE
LOW⚡.github/matrix.py116def aws_lc_fips_version_string_to_num(version_string):CODE
LOW⚡.github/matrix.py119def aws_lc_fips_version_valid(version_string):CODE
LOW⚡.github/matrix.py123def determine_latest_aws_lc_fips(ssl):CODE
LOW⚡.github/matrix.py133def wolfssl_version_string_to_num(version_string):CODE
LOW.github/matrix.py149def determine_latest_libressl(ssl):CODE
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/mptcp-backend.py1# =============================================================================COMMENT
MEDIUMexamples/mptcp-backend.py3# =============================================================================COMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/mux_h1.c3134 /* The message is chunked. We need to check if we mustCOMMENT
LOWsrc/check.c1431 /* when going to sleep, we need to check if other checks are waitingCOMMENT
LOWsrc/cache.c811 /* Here we need to check if any compression filter precedes the cacheCOMMENT
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWreg-tests/spoe/spoa_mock.py157 except Exception:CODE
MEDIUMreg-tests/spoe/spoa_mock.py103def handle(sock, addr):CODE
LOWadmin/release-estimator/release-estimator.py342 except Exception as err:STRING
LOWadmin/release-estimator/release-estimator.py375 except Exception as e:STRING
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMreg-tests/spoe/spoa_mock.py170 # Signal readiness so the test harness can synchronize before startingCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWreg-tests/spoe/spoa_mock.py103CODE
LOWreg-tests/resolvers/tcp_fallback.py97CODE
LOWadmin/release-estimator/release-estimator.py65CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdoc/lua-api/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWaddons/51degrees/dummy/trie/51Degrees.c48static fiftyoneDegreesDeviceOffset dummyOffset = { 0, 0, "dummy-user-agent" };CODE
LOWaddons/51degrees/dummy/pattern/51Degrees.c42 return "dummy-value";CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdoc/lua-api/conf.py14CODE
LOWdoc/lua-api/conf.py14CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWaddons/wurfl/dummy/wurfl/wurfl.h386// Example usage:COMMENT