AI Slop Code RIsk Monitor

cesanta/mongoose

Embedded web server, with TCP/IP network stack, MQTT and Websocket

7.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cesanta/mongoose, a C project with 13,082 GitHub stars. SynthScan examined 670,467 lines of code across 1012 source files, recording 7836 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 7.7 (Moderate 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.

7.7
Adjusted Signal
7.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
13.1K
Stars
C
Language
670.5K
Lines of Code
1.0K
Files
7.8K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 32.0/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 44.3/100 · MEDIUM

Which changes need focused human review? 7836 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 2LOW 7834

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 7836 distinct pattern matches across 3 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 Block7805 hits · 5130 pts
SeverityFileLineSnippetContext
LOWmongoose.h1// Copyright (c) 2004-2013 Sergey LyubkaCOMMENT
LOWmongoose.h21#define MONGOOSE_HCOMMENT
LOWmongoose.h41#define MG_ARCH_CMSIS_RTOS1 9 // CMSIS-RTOS API v1 (Keil RTX)COMMENT
LOWmongoose.h61#if !defined(MG_ARCH) || (MG_ARCH == MG_ARCH_CUSTOM)COMMENT
LOWmongoose.h101#include <stdlib.h>COMMENT
LOWmongoose.h121#include <stdbool.h>COMMENT
LOWmongoose.h141#if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIPCOMMENT
LOWmongoose.h161#endifCOMMENT
LOWmongoose.h181#endifCOMMENT
LOWmongoose.h201// The total evaluation period is set by MG_OTA_ROLLBACK_TIMEOUT_SECONDS.COMMENT
LOWmongoose.h221COMMENT
LOWmongoose.h241#if defined(TAMP)COMMENT
LOWmongoose.h261#ifndef MG_IRAMCOMMENT
LOWmongoose.h301#include <limits.h>COMMENT
LOWmongoose.h381COMMENT
LOWmongoose.h401#include <esp_system.h>COMMENT
LOWmongoose.h421#include <sys/stat.h>COMMENT
LOWmongoose.h481 defined(_MIMXRT1064_H_))COMMENT
LOWmongoose.h501COMMENT
LOWmongoose.h581// GPR5 survives RTWDOG global resets and is not reserved by the boot ROM.COMMENT
LOWmongoose.h641#include <stdarg.h>COMMENT
LOWmongoose.h661#if PICO_RP2040COMMENT
LOWmongoose.h701#include <rtthread.h>COMMENT
LOWmongoose.h721COMMENT
LOWmongoose.h741#elif MG_ARCH == MG_ARCH_CMSIS_RTOS2COMMENT
LOWmongoose.h761 (!defined(MG_ENABLE_TCPIP) || !MG_ENABLE_TCPIP)COMMENT
LOWmongoose.h781COMMENT
LOWmongoose.h801// 1. Add nxd_bsd.h and nxd_bsd.c to the repo:COMMENT
LOWmongoose.h821#include <stdio.h>COMMENT
LOWmongoose.h841#if !defined(MG_ENABLE_EPOLL) && defined(__linux__)COMMENT
LOWmongoose.h861#include <stdbool.h>COMMENT
LOWmongoose.h881#include <unistd.h>COMMENT
LOWmongoose.h901// behaviour). See config.h for user optionsCOMMENT
LOWmongoose.h921#endifCOMMENT
LOWmongoose.h941#if !defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIPCOMMENT
LOWmongoose.h981// For mg_random()COMMENT
LOWmongoose.h1001// Protect from calls like std::snprintf in app codeCOMMENT
LOWmongoose.h1021#endifCOMMENT
LOWmongoose.h1061#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)COMMENT
LOWmongoose.h1081#include <zephyr/kernel.h>COMMENT
LOWmongoose.h1101#ifndef strdupCOMMENT
LOWmongoose.h1141COMMENT
LOWmongoose.h1181#define sockaddr freertos_sockaddrCOMMENT
LOWmongoose.h1221#include <lwip/sockets.h>COMMENT
LOWmongoose.h1241#if defined(MG_ENABLE_RL) && MG_ENABLE_RLCOMMENT
LOWmongoose.h1261COMMENT
LOWmongoose.h1281COMMENT
LOWmongoose.h1301COMMENT
LOWmongoose.h1321COMMENT
LOWmongoose.h1341COMMENT
LOWmongoose.h1361#define MG_IO_SIZE 512 // Granularity of the send/recv IO buffer growthCOMMENT
LOWmongoose.h1381#ifdef PATH_MAXCOMMENT
LOWmongoose.h1401#define MG_INVALID_SOCKET (-1)COMMENT
LOWmongoose.h1421 if (wr) ev.events |= EPOLLOUT; \COMMENT
LOWmongoose.h1441#ifndef MG_TCPIP_DHCPNAME_SIZECOMMENT
LOWmongoose.h1461#endifCOMMENT
LOWmongoose.h1481#ifndef MG_SET_WIFI_CONFIGCOMMENT
LOWmongoose.h1501// They are saved into a c->prof IO buffer, each event is a name and a 32-bitCOMMENT
LOWmongoose.h1581COMMENT
LOWmongoose.h1601COMMENT
7745 more matches not shown…
Example Usage Blocks29 hits · 44 pts
SeverityFileLineSnippetContext
LOWmongoose.h1747// Usage example:COMMENT
LOWtest/mongoose.h1747// Usage example:COMMENT
LOWtutorials/nxp/teensy-4.1/arduino/mongoose.h1747// Usage example:COMMENT
LOWtutorials/core/memory/o1heap/mongoose.h1747// Usage example:COMMENT
LOWtutorials/core/timers/mongoose.h1747// Usage example:COMMENT
LOWtutorials/core/multi-threaded-12m/mongoose.h1747// Usage example:COMMENT
LOWtutorials/core/embedded-filesystem/mongoose.h1747// Usage example:COMMENT
LOWtutorials/core/multi-threaded/mongoose.h1747// Usage example:COMMENT
LOW…torials/wch/ch32v307-make-baremetal-builtin/mongoose.h1747// Usage example:COMMENT
LOWtutorials/micropython/mongoose/mongoose.h1747// Usage example:COMMENT
LOWtutorials/micropython/esp32/mongoose/mongoose.h1747// Usage example:COMMENT
LOWtutorials/esp32/uart-bridge/main/mongoose.h1747// Usage example:COMMENT
LOWtutorials/esp32/device-dashboard/main/mongoose.h1747// Usage example:COMMENT
LOW…torials/esp8266/http-client-server/src/main/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/teensy41-http/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/nano-w5500-mqtt/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/w5500-http/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/esp32-http/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/esp32-mqtt/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/sim800-mqtt/mongoose.h1747// Usage example:COMMENT
LOWtutorials/arduino/w5500-mqtt/mongoose.h1747// Usage example:COMMENT
LOW…ials/microchip/same54-xpro/device-dashboard/mongoose.h1747// Usage example:COMMENT
LOWtutorials/microchip/same54-xpro/mqtt-client/mongoose.h1747// Usage example:COMMENT
LOW…als/renesas/ek-ra6m4-make-baremetal-builtin/mongoose.h1747// Usage example:COMMENT
LOWtutorials/tcpip/tap-driver/mongoose.h1747// Usage example:COMMENT
LOWtutorials/tcpip/pcap-driver/mongoose.h1747// Usage example:COMMENT
LOW…/ek-tm4c1294xl-make-baremetal-builtin-rndis/mongoose.h1747// Usage example:COMMENT
LOWtutorials/rp/pico-rndis-device/mongoose.h1747// Usage example:COMMENT
LOWsrc/fmt.h43// Usage example:COMMENT
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md237├── ... # IDE-specific project scaffoldingCODE
MEDIUMresources/I-CUBE-Mongoose/README.md172## AI agentic developmentCOMMENT