AI Slop Code RIsk Monitor

lpereira/lwan

Experimental, scalable, high performance HTTP server

4.5 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lpereira/lwan, a C project with 6,037 GitHub stars. SynthScan examined 52,219 lines of code across 249 source files, recording 181 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 4.5 (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.5
Adjusted Signal
4.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
6.0K
Stars
C
Language
52.2K
Lines of Code
249
Files
181
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 14.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.2/100 · LOW

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

Agent Over-Engineering Ratio 6.0/100 · LOW

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

PR Review Velocity Impact 20.8/100 · LOW

Which changes need focused human review? 181 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 12MEDIUM 1LOW 168

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 181 distinct pattern matches across 7 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 Block143 hits · 143 pts
SeverityFileLineSnippetContext
LOWfuzz/mayhem/build.sh1#!/bin/bash -euvCOMMENT
LOWsrc/bin/tools/mimegen.c21#include <assert.h>COMMENT
LOWsrc/bin/tools/weighttp.c21#pragma GCC diagnostic ignored "-Wvla"COMMENT
LOWsrc/bin/tools/weighttp.c41#include <strings.h> /* strcasecmp() strncasecmp() */COMMENT
LOWsrc/bin/tools/weighttp.c61COMMENT
LOWsrc/bin/tools/weighttp.c81#ifndef __attribute_pure__COMMENT
LOWsrc/bin/lwan/main.c161#if defined(LWAN_HAVE_LANDLOCK)COMMENT
LOWsrc/samples/smolsite/main.c21#define _GNU_SOURCECOMMENT
LOWsrc/samples/smolsite/junzip.h1/**COMMENT
LOWsrc/samples/smolsite/junzip.h21#define Z_ERRNO -1COMMENT
LOWsrc/samples/smolsite/qrcodegen.c21 * Software.COMMENT
LOWsrc/samples/smolsite/qrcodegen.c41// - They only read input scalar/array arguments, write to output pointer/arrayCOMMENT
LOWsrc/samples/techempower/json.c1/*COMMENT
LOWsrc/samples/techempower/techempower.c21#include <errno.h>COMMENT
LOWsrc/samples/forthsalon/forth.c21/*COMMENT
LOWsrc/samples/forthsalon/gif.h1//COMMENT
LOWsrc/samples/forthsalon/gif.h21// unchanged.COMMENT
LOWsrc/samples/forthsalon/gif.h41// Define these macros to hook into a custom memory allocator.COMMENT
LOWsrc/samples/clock/numbers.c21#include "font/fiveE.xbm"COMMENT
LOWsrc/scripts/gentables.py1#!/usr/bin/pythonCOMMENT
LOWsrc/scripts/gentables.py21# - Some tables can be reduced and be converted to pure code. ForCOMMENT
LOWsrc/lib/lwan-readahead.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-straitjacket.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-coro.h21#pragma onceCOMMENT
LOWsrc/lib/missing.c21#include <errno.h>COMMENT
LOWsrc/lib/lwan-pubsub.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-request.c21#include <arpa/inet.h>COMMENT
LOWsrc/lib/lwan-request.c41#include "lwan-private.h"COMMENT
LOWsrc/lib/lwan.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-strbuf.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/timeout.c81 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */COMMENT
LOWsrc/lib/lwan-mod-fastcgi.c21 * https://fastcgi-archives.github.io/FastCGI_Specification.htmlCOMMENT
LOWsrc/lib/lwan-mod-fastcgi.c41COMMENT
LOWsrc/lib/lwan-mod-rewrite.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-job.c21#include <assert.h>COMMENT
LOWsrc/lib/lwan-mod-lua.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/realpathat.c21COMMENT
LOWsrc/lib/lwan-arena.c21#include "lwan-private.h"COMMENT
LOWsrc/lib/hash.c21#include <assert.h>COMMENT
LOWsrc/lib/lwan-template.c21 * Ideas from Mustache logic-less templates: http://mustache.github.com/COMMENT
LOWsrc/lib/lwan-config.c21COMMENT
LOWsrc/lib/lwan-h2-huffman.c21 * You should have received a copy of the GNU General Public LicenseCOMMENT
LOWsrc/lib/lwan-coro.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-coro.c41#endifCOMMENT
LOWsrc/lib/lwan-coro.c101COMMENT
LOWsrc/lib/sd-daemon.c21***/COMMENT
LOWsrc/lib/lwan-socket.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan.h21#pragma onceCOMMENT
LOWsrc/lib/lwan.h141COMMENT
LOWsrc/lib/lwan.h161#define LWAN_ARRAY_PARAM(length) [length]COMMENT
LOWsrc/lib/lwan-response.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-mod-serve-files.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-mod-serve-files.c41COMMENT
LOWsrc/lib/lwan-log.c21#include <errno.h>COMMENT
LOWsrc/lib/lwan-tables.c21#include <assert.h>COMMENT
LOWsrc/lib/lwan-mod-lua-lsp.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-websocket.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-thread.c21#define _GNU_SOURCECOMMENT
LOWsrc/lib/lwan-config.h21COMMENT
LOWsrc/lib/lwan-lua.c21#define _GNU_SOURCECOMMENT
83 more matches not shown…
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHsrc/scripts/testsuite.py77except FileExistsError:CODE
HIGHsrc/scripts/testsuite.py103except requests.exceptions.ConnectionError:CODE
HIGHsrc/scripts/testsuite.py219except requests.exceptions.ChunkedEncodingError:CODE
HIGHsrc/scripts/testsuite.py221except requests.exceptions.ConnectionError:CODE
HIGHsrc/scripts/testsuite.py226except requests.exceptions.ChunkedEncodingError:CODE
HIGHsrc/scripts/testsuite.py228except requests.exceptions.ConnectionError:CODE
HIGHsrc/scripts/testsuite.py623except requests.exceptions.ChunkedEncodingError:CODE
HIGHsrc/scripts/testsuite.py625except requests.exceptions.ConnectionError:CODE
HIGHsrc/scripts/testsuite.py119except FileNotFoundError:CODE
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH⚡src/scripts/gentables.py349 if (n_decoded == 0 && expected_size == 0)CODE
HIGH⚡src/scripts/gentables.py351 if (n_decoded == 0 && expected_size != 0)CODE
HIGH⚡src/scripts/gentables.py353 while (n_decoded && expected_size) {CODE
Hyper-Verbose Identifiers23 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡src/scripts/testsuite.py895 def test_cache_munmaps_conn_close(self):CODE
LOW⚡src/scripts/testsuite.py903 def test_cache_munmaps_conn_keep_alive(self):CODE
LOW⚡src/scripts/testsuite.py912 def test_cache_does_not_mmap_large_files(self):CODE
LOW⚡src/scripts/testsuite.py917 def test_cache_mmaps_once_conn_keep_alive(self):CODE
LOW⚡src/scripts/testsuite.py924 def test_cache_mmaps_once_conn_close(self):CODE
LOW⚡src/scripts/testsuite.py930 def test_cache_mmaps_once_even_after_timeout(self):CODE
LOWsrc/scripts/testsuite.py233 def test_mime_type_is_correct(self):CODE
LOWsrc/scripts/testsuite.py327 def test_head_request_small_file(self):CODE
LOWsrc/scripts/testsuite.py339 def test_head_request_larger_file(self):CODE
LOWsrc/scripts/testsuite.py351 def test_uncompressed_small_file(self):CODE
LOWsrc/scripts/testsuite.py371 def test_compressed_small_file(self):CODE
LOWsrc/scripts/testsuite.py434 def test_has_lwan_server_header(self):CODE
LOWsrc/scripts/testsuite.py440 def test_directory_without_trailing_slash_redirects(self):CODE
LOWsrc/scripts/testsuite.py463 def test_conditional_rewrite_with_cookie(self):CODE
LOWsrc/scripts/testsuite.py475 def test_conditional_rewrite_without_cookie(self):CODE
LOWsrc/scripts/testsuite.py481 def test_conditional_rewrite_backref(self):CODE
LOWsrc/scripts/testsuite.py583 def test_cat_sleeping_on_keyboard(self):CODE
LOWsrc/scripts/testsuite.py590 def test_no_http_version_fails(self):CODE
LOWsrc/scripts/testsuite.py767 def test_global_headers_are_present(self):CODE
LOWsrc/scripts/testsuite.py826 def test_with_param_and_fragment(self):CODE
LOWsrc/scripts/testsuite.py1027 def test_custom_header_exists(self):CODE
LOWsrc/scripts/testsuite.py1033 def test_custom_header_does_not_exist(self):CODE
LOWsrc/scripts/testsuite.py1060def only_request_fuzzer_regression():CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/samples/smolsite/junzip.c255 return Z_ERRNO; // TODO: more robust read loopCODE
Unused Imports1 hit · 0 pts
SeverityFileLineSnippetContext
LOWsrc/scripts/testsuite.py12CODE
Deep Nesting1 hit · 0 pts
SeverityFileLineSnippetContext
LOWsrc/scripts/testsuite.py61CODE