AI Slop Code RIsk Monitor

MagicStack/uvloop

Ultra fast asyncio event loop.

29.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for MagicStack/uvloop, a Cython project with 11,911 GitHub stars. SynthScan examined 12,042 lines of code across 43 source files, recording 246 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 29.4 (Elevated 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.

29.4
Adjusted Signal
29.4
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
11.9K
Stars
Cython
Language
12.0K
Lines of Code
43
Files
246
Pattern Hits
2026-10-12
Scan Date
0.84
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 40.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.5/100 · LOW

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

Agent Over-Engineering Ratio 73.0/100 · HIGH

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

PR Review Velocity Impact 83.9/100 · CRITICAL

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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 36MEDIUM 7LOW 203

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 246 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.

Empty Error Handlers36 hits · 180 pts
SeverityFileLineSnippetContext
HIGHtests/test_unix.py417except BlockingIOError:CODE
HIGHtests/test_aiohttp.py113except asyncio.CancelledError:CODE
HIGHtests/test_process.py655except asyncio.CancelledError:CODE
HIGHtests/test_process.py675except asyncio.CancelledError:CODE
HIGHtests/test_process.py702except asyncio.CancelledError:CODE
HIGHtests/test_process.py377except FileNotFoundError:CODE
HIGHtests/test_cython.py32except TypeError:CODE
HIGHtests/test_tcp.py746except BlockingIOError:CODE
HIGHtests/test_tcp.py764except ConnectionAbortedError:CODE
HIGHtests/test_tcp.py994except ConnectionResetError:CODE
HIGHtests/test_tcp.py1581except ConnectionAbortedError:CODE
HIGHtests/test_tcp.py1621except (ssl.SSLError, OSError):CODE
HIGHtests/test_tcp.py1796except ssl.SSLError:CODE
HIGHtests/test_tcp.py1815except ssl.SSLError:CODE
HIGHtests/test_tcp.py2075except ConnectionAbortedError:CODE
HIGHtests/test_tcp.py2672except (ConnectionResetError, BrokenPipeError):CODE
HIGHtests/test_tcp.py2763except ConnectionResetError:CODE
HIGHtests/test_tcp.py2915except (ConnectionRefusedError, asyncio.TimeoutError):CODE
HIGHtests/test_tcp.py2948except (ConnectionRefusedError, asyncio.TimeoutError):CODE
HIGHtests/test_tcp.py1174except TypeError:CODE
HIGHtests/test_tcp.py2376except openssl_ssl.WantReadError:CODE
HIGHtests/test_tcp.py2392except openssl_ssl.WantReadError:CODE
HIGHtests/test_tcp.py3259except ssl.SSLWantReadError:CODE
HIGHtests/test_udp.py173except Exception:CODE
HIGHtests/test_base.py366except KeyboardInterrupt:CODE
HIGHtests/test_base.py675except asyncio.CancelledError:CODE
HIGHtests/test_sockets.py542except Abort:CODE
HIGHtests/test_sockets.py83except (asyncio.TimeoutError, ConnectionRefusedError):CODE
HIGHtests/test_process_spawning.py39except asyncio.TimeoutError:CODE
HIGHexamples/bench/rlserver.py16except (OSError, NameError):CODE
HIGHexamples/bench/echoclient.py72except (OSError, NameError):CODE
HIGHexamples/bench/echoserver.py35except (OSError, NameError):CODE
HIGHexamples/bench/echoserver.py52except (OSError, NameError):CODE
HIGHuvloop/_testbase.py78except (BrokenPipeError, ConnectionError):CODE
HIGHuvloop/_testbase.py222except OSError:CODE
HIGHuvloop/_testbase.py454except OSError:CODE
Hyper-Verbose Identifiers142 hits · 110 pts
SeverityFileLineSnippetContext
LOWtests/test_libuv_api.py7 def test_libuv_get_loop_t_ptr(self):CODE
LOWtests/test_unix.py198 def test_create_unix_server_existing_path_sock(self):CODE
LOWtests/test_unix.py211 def test_create_unix_connection_open_unix_con_addr(self):CODE
LOWtests/test_unix.py226 def test_create_unix_connection_open_unix_con_sock(self):CODE
LOWtests/test_unix.py243 def test_create_unix_connection_open_con_sock(self):CODE
LOWtests/test_unix.py407 def test_create_unix_connection_sock_cancel_detaches(self):CODE
LOWtests/test_unix.py438 def test_create_unix_connection_sock_cancel_fd_leak(self):CODE
LOWtests/test_unix.py522 def test_create_unix_connection_pathlib(self):CODE
LOWtests/test_unix.py533 def test_create_unix_server_pathlib(self):CODE
LOWtests/test_unix.py541 def test_transport_fromsock_get_extra_info(self):CODE
LOWtests/test_unix.py564 def test_create_unix_server_path_dgram(self):CODE
LOWtests/test_unix.py575 def test_create_unix_server_path_stream_bittype(self):CODE
LOWtests/test_pipes.py184 def test_write_pipe_disconnect_on_close(self):CODE
LOWtests/test_signals.py16 def test_signals_sigint_pycode_stop(self):CODE
LOWtests/test_signals.py56 def test_signals_sigint_pycode_continue(self):STRING
LOWtests/test_signals.py101 def test_signals_sigint_uvcode(self):STRING
LOWtests/test_signals.py140 def test_signals_sigint_uvcode_two_loop_runs(self):STRING
LOWtests/test_signals.py179 def test_signals_sigint_and_custom_handler(self):STRING
LOW⚡tests/test_signals.py298 def test_signals_invalid_signal(self):STRING
LOW⚡tests/test_signals.py305 def test_signals_coro_callback(self):STRING
LOW⚡tests/test_signals.py311 def test_signals_wakeup_fd_unchanged(self):STRING
LOWtests/test_signals.py350 def test_signals_fork_in_thread(self):STRING
LOWtests/test_aiohttp.py51 def test_aiohttp_graceful_shutdown(self):CODE
LOWtests/test_dns.py220 def test_getaddrinfo_broadcast(self):CODE
LOWtests/test_dns.py244 def test_getaddrinfo_close_loop(self):CODE
LOWtests/test_process.py293 def test_process_streams_stderr_to_stdout(self):STRING
LOWtests/test_process.py312 def test_process_streams_devnull(self):STRING
LOWtests/test_process.py332 def test_process_streams_pass_fds(self):STRING
LOWtests/test_process.py407 def test_subprocess_invalid_stdin(self):STRING
LOWtests/test_process.py438 def test_process_streams_redirect(self):STRING
LOWtests/test_process.py486 def test_stdin_not_inheritable(self):STRING
LOWtests/test_process.py667 def test_cancel_make_subprocess_transport_exec(self):STRING
LOWtests/test_process.py715 def test_close_gets_process_closed(self):STRING
LOWtests/test_process.py749 def _test_communicate_large_stdout(self, size):STRING
LOWtests/test_process.py819 def test_process_double_close(self):CODE
LOWtests/test_process.py917 def test_process_delayed_stdio__paused__stdin_pipe(self):STRING
LOWtests/test_process.py936 def test_process_delayed_stdio__paused__no_stdin(self):STRING
LOWtests/test_process.py955 def test_process_delayed_stdio__not_paused__no_stdin(self):STRING
LOWtests/test_cython.py8 def test_cython_coro_is_coroutine(self):CODE
LOWtests/test_context.py149 def test_task_decimal_context(self):CODE
LOWtests/test_context.py344 def test_create_server_protocol_factory_context(self):CODE
LOWtests/test_context.py376 def test_create_server_connection_protocol(self):CODE
LOWtests/test_context.py395 def test_create_ssl_server_connection_protocol(self):CODE
LOWtests/test_context.py435 def test_create_server_manual_connection_lost(self):CODE
LOWtests/test_context.py454 def test_create_ssl_server_manual_connection_lost(self):CODE
LOWtests/test_context.py498 def test_create_connection_protocol(self):CODE
LOWtests/test_context.py645 def test_connect_accepted_socket(self):CODE
LOW⚡tests/test_tcp.py1309 def test_create_connection_wrong_sock(self):CODE
LOW⚡tests/test_tcp.py1318 def test_create_server_wrong_sock(self):CODE
LOW⚡tests/test_tcp.py1328 def test_create_server_stream_bittype(self):CODE
LOW⚡tests/test_tcp.py1337 def test_flowcontrol_mixin_set_write_limits(self):CODE
LOWtests/test_tcp.py208 async def start_server_ephemeral_ports():CODE
LOWtests/test_tcp.py400 def test_create_connection_open_con_addr(self):CODE
LOWtests/test_tcp.py427 def test_create_connection_open_con_sock(self):CODE
LOWtests/test_tcp.py643 def test_tcp_handle_exception_in_connection_made(self):CODE
LOWtests/test_tcp.py687 def test_resume_writing_write_different_transport(self):CODE
LOWtests/test_tcp.py740 def test_create_connection_sock_cancel_detaches(self):CODE
LOWtests/test_tcp.py772 def test_create_connection_sock_cancel_fd_leak(self):CODE
LOWtests/test_tcp.py1024 def test_transport_get_extra_info(self):CODE
LOWtests/test_tcp.py1119 def test_create_server_float_backlog(self):CODE
82 more matches not shown…
Excessive Try-Catch Wrapping25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtests/test_unix.py697 except Exception as ex:CODE
MEDIUMtests/test_unix.py681def prog(sock):CODE
LOWtests/test_dns.py72 except Exception as ex:CODE
LOWtests/test_dns.py78 except Exception as ex:CODE
LOWtests/test_regr1.py54 except Exception as exc:CODE
LOWtests/test_context.py351 except Exception as e:CODE
MEDIUMtests/test_context.py348def factory():CODE
MEDIUMtests/test_tcp.py558def server(sock):CODE
MEDIUMtests/test_tcp.py1417def prog(sock):CODE
MEDIUMtests/test_tcp.py1578def server(sock):CODE
LOWtests/test_tcp.py1270 except Exception as exc:CODE
LOWtests/test_tcp.py1432 except Exception as ex:CODE
LOWtests/test_tcp.py2245 except Exception as ex:CODE
LOWtests/test_tcp.py2301 except Exception as ex:CODE
LOWtests/test_tcp.py2515 except Exception as ex:CODE
LOWtests/test_tcp.py2690 except Exception as ex:CODE
LOWtests/test_tcp.py2734 except Exception as ex:CODE
LOWtests/test_tcp.py2895 except Exception as ex:CODE
LOWtests/test_tcp.py3212 except Exception as ex:CODE
LOWtests/test_tcp.py3264 except Exception as ex:CODE
LOWtests/test_udp.py173 except Exception:CODE
MEDIUMtests/test_base.py650def waiter(timeout, finalized):CODE
LOWtests/test_base.py285 except Exception as exc:CODE
LOWtests/test_base.py954 except Exception:STRING
LOWtests/test_process_spawning.py69 except Exception:CODE
Unused Imports24 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/test_sourcecode.py20CODE
LOWtests/test_sourcecode.py47CODE
LOWuvloop/__init__.py6CODE
LOWuvloop/__init__.py8CODE
LOWuvloop/includes/__init__.py4CODE
LOWuvloop/includes/__init__.py5CODE
LOWuvloop/includes/__init__.py6CODE
LOWuvloop/includes/__init__.py7CODE
LOWuvloop/includes/__init__.py8CODE
LOWuvloop/includes/__init__.py9CODE
LOWuvloop/includes/__init__.py10CODE
LOWuvloop/includes/__init__.py11CODE
LOWuvloop/includes/__init__.py12CODE
LOWuvloop/includes/__init__.py13CODE
LOWuvloop/includes/__init__.py14CODE
LOWuvloop/includes/__init__.py15CODE
LOWuvloop/includes/__init__.py16CODE
LOWuvloop/includes/__init__.py17CODE
LOWuvloop/includes/__init__.py18CODE
LOWuvloop/includes/__init__.py19CODE
LOWuvloop/includes/__init__.py20CODE
LOWuvloop/includes/__init__.py21CODE
LOWuvloop/includes/__init__.py22CODE
LOWuvloop/includes/__init__.py23CODE
Deep Nesting15 hits · 11 pts
SeverityFileLineSnippetContext
LOWsetup.py92CODE
LOWtests/test_dns.py8CODE
LOWtests/test_process.py438CODE
LOWtests/test_context.py266CODE
LOWtests/test_context.py498CODE
LOWtests/test_context.py499CODE
LOWtests/test_tcp.py2201CODE
LOWtests/test_tcp.py2770CODE
LOWtests/test_tcp.py3221CODE
LOWtests/test_tcp.py2256CODE
LOWtests/test_tcp.py2785CODE
LOWtests/test_tcp.py2854CODE
LOWtests/test_tcp.py3232CODE
LOWtests/test_tcp.py2259CODE
LOWuvloop/_testbase.py468CODE
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWuvloop/_version.py1# This file MUST NOT contain anything but the __version__ assignment.COMMENT
LOWuvloop/includes/debug.h1#ifndef UVLOOP_DEBUGCOMMENT
LOWuvloop/includes/compat.h1#include <errno.h>COMMENT
Self-Referential Comments1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_process.py650 # Create an internal future waiting on the process exitSTRING