AI Slop Code RIsk Monitor

astral-sh/python-build-standalone

Produce redistributable builds of Python

7.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for astral-sh/python-build-standalone, a Python project with 4,494 GitHub stars. SynthScan examined 31,330 lines of code across 118 source files, recording 146 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 7.1 (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.1
Adjusted Signal
7.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
4.5K
Stars
Python
Language
31.3K
Lines of Code
118
Files
146
Pattern Hits
2026-10-12
Scan Date
0.06
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 24.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 12.6/100 · LOW

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

PR Review Velocity Impact 30.4/100 · MEDIUM

Which changes need focused human review? 146 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 7MEDIUM 23LOW 116

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 146 distinct pattern matches across 10 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.

AI Slop Vocabulary18 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMstdlib-test-annotations.yml24# harness-skips declares builds to skip running the Python stdlib test harness.COMMENT
MEDIUMstdlib-test-annotations.yml26# Ideally this feature doesn't need to exist. But sometimes the test harness isCOMMENT
MEDIUMstdlib-test-annotations.yml422 # our test harness from getting confused.COMMENT
MEDIUMstdlib-test-annotations.yml2155 # Static builds pass. Debug builds already skip the harness on 3.14+.COMMENT
MEDIUMcpython-unix/build.py573 # helper function found in libatomic. To facilitate this, GCC <15 addsCOMMENT
MEDIUMcpython-unix/build-cpython.sh296# On 3.12 (minimum BOLT version), the segfault causes the test harness toCOMMENT
LOWcpython-unix/build-cpython.sh1006# simply use our pip to install self. Kinda crazy, but it works!COMMENT
MEDIUMcpython-unix/build-cpython.sh1479# Copy the test harness runner for convenience.COMMENT
MEDIUMcpython-unix/build-cpython.sh1480# As of Python 3.13, the test harness runner has been removed so we provide a compatibility scriptCOMMENT
MEDIUMpythonbuild/testdist.py194 # Honor an explicit harness destination; relative paths are interpretedCOMMENT
MEDIUMpythonbuild/testdist.py231 # 3.14 added a test harness feature to prioritize running tests. PrioritizeCOMMENT
MEDIUMpythonbuild/testdist.py232 # running slow tests first to mitigate long poles slowing down harness execution.COMMENT
MEDIUMpythonbuild/testdist.py453 # sequences undermines those efforts. So prevent the test harness fromCOMMENT
MEDIUMpythonbuild/testdist.py472 # Since we're running 1 test at a time, the test harness should alwaysCOMMENT
MEDIUMcpython-windows/build.py1643 # test harness to pick up the wrong `test` module. We unset theseCOMMENT
MEDIUMcpython-windows/build.py1656 # test harness normally (all tests) or with -j to perform parallelCOMMENT
MEDIUMcpython-windows/build.py1657 # test execution. We work around this by invoking the test harnessCOMMENT
MEDIUMcpython-windows/build.py1682 # test harness itself and isn't exercising useful code. Skip it.COMMENT
Hyper-Verbose Identifiers42 hits · 43 pts
SeverityFileLineSnippetContext
LOWci-matrix.py40def meets_conditional_version(version: str, min_version: str) -> bool:CODE
LOWci-matrix.py236def generate_docker_matrix_entries(CODE
LOWci-matrix.py269def generate_crate_build_matrix_entries(CODE
LOWci-matrix.py320def generate_python_build_matrix_entries(CODE
LOWci-matrix.py372def create_python_build_entry(CODE
LOWci-matrix.py398def add_python_build_entries_for_config(CODE
LOWci-matrix.py463def validate_pull_request_defaults(CODE
LOW⚡tests/test_mirror.py25 def test_destination_to_source_name_full_archive(self) -> None:CODE
LOW⚡tests/test_mirror.py35 def test_destination_to_source_name_install_only_archive(self) -> None:CODE
LOW⚡tests/test_mirror.py45 def test_destination_to_source_name_rejects_wrong_tag(self) -> None:CODE
LOW⚡tests/test_mirror.py53 def test_build_upload_entries(self) -> None:CODE
LOWtests/test_mirror.py86 def test_build_upload_entries_reports_missing(self) -> None:CODE
LOWtests/test_mirror.py108 def test_main_reports_all_upload_errors(self) -> None:CODE
LOWscripts/update_downloads.py531def print_mirror_instructions(CODE
LOWscripts/update_downloads.py584def update_openssl_disttest_version(CODE
LOWpythonbuild/mirror.py111def destination_to_source_name(dest_name: str, tag: str, build_datetime: str) -> str:CODE
LOWpythonbuild/testdist.py315def _run_stdlib_expected_failures(CODE
LOWpythonbuild/testdist.py396def _check_stdlib_expected_failure(CODE
LOWpythonbuild/docker.py35def docker_platform_from_host_platform(host_platform: str) -> typing.Optional[str]:CODE
LOWpythonbuild/cpython.py294def meets_python_minimum_version(got: str, wanted: str | dict[str, Any]) -> bool:CODE
LOWpythonbuild/cpython.py309def meets_python_maximum_version(got: str, wanted: str | dict[str, Any]) -> bool:CODE
LOWpythonbuild/cpython.py457def _parse_makefile_variables(makefile: bytes) -> dict[str, bytes]:CODE
LOWpythonbuild/cpython.py478def _expand_makefile_variables(value: bytes, variables: dict[str, bytes]) -> bytes:CODE
LOWpythonbuild/cpython.py517def _internal_archive_objects(makefile: bytes) -> dict[str, set[pathlib.Path]]:CODE
LOWpythonbuild/cpython.py572def configured_extension_modules(CODE
LOWpythonbuild/cpython.py671def _parse_cpython_module_info(CODE
LOWpythonbuild/cpython.py722def _classify_extension_modules(CODE
LOWpythonbuild/cpython.py784def _validate_extension_modules(CODE
LOWpythonbuild/cpython.py825def _matches_extension_condition(CODE
LOWpythonbuild/cpython.py940def _determine_module_linkage(info: dict[str, Any], build_options: set[str]) -> str:CODE
LOWpythonbuild/utils.py405def create_tar_from_directory(fh, base_path: pathlib.Path, path_prefix=None):CODE
LOWpythonbuild/utils.py556def add_licenses_to_extension_entry(entry):CODE
LOWpythonbuild/buildenv.py41 def install_toolchain_archive(CODE
LOWpythonbuild/buildenv.py174 def install_toolchain_archive(CODE
LOWpythonbuild/disttests/__init__.py526 def test_linux_uapi_not_in_sysconfig(self):STRING
LOWpythonbuild/disttests/__init__.py578 def test_thread_timeouts_use_monotonic_clock(self):STRING
LOWsrc/github_api_tester.py297def upload_release_distributions(tmp_path_factory):CODE
LOWsrc/github_api_tester.py303 async def upload_release_distributions(*args):CODE
LOWsrc/github_api_tester.py344async def test_dry_run_writes_shasums_without_contacting_github(tmp_path):CODE
LOWcpython-windows/build.py291def get_visual_studio_environment(CODE
LOWcpython-windows/build.py1109def collect_python_build_artifacts(CODE
LOWcpython-windows/build.py1233 def find_additional_dependencies(project: pathlib.Path):CODE
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHpythonbuild/utils.py620except FileNotFoundError:CODE
HIGHpythonbuild/utils.py474except AttributeError:CODE
HIGHcpython-windows/build.py564except NoSearchStringError:CODE
HIGHcpython-windows/build.py596except NoSearchStringError:CODE
HIGHcpython-windows/build.py700except NoSearchStringError:CODE
HIGHcpython-windows/build.py711except NoSearchStringError:CODE
HIGHcpython-windows/build.py770except NoSearchStringError:CODE
Over-Commented Block30 hits · 30 pts
SeverityFileLineSnippetContext
LOWstdlib-test-annotations.yml1---COMMENT
LOWstdlib-test-annotations.yml21# * no-build-option - A build option (e.g. `freethreaded`) that must not beCOMMENT
LOWcpython-unix/build.py561 bi["object_file_format"] = object_file_formatCOMMENT
LOWcpython-unix/build-cpython.sh201fiCOMMENT
LOWcpython-unix/build-cpython.sh521 # environment variables. Use our toolchain-specific skip list, addCOMMENT
LOWcpython-unix/build-cpython.sh641export PROFILE_TASK='-m test --pgo'COMMENT
LOWcpython-unix/build-cpython.sh701 # not, and conservatively defaults to no, which is not the rightCOMMENT
LOWcpython-unix/build-cpython.sh881 fiCOMMENT
LOWcpython-unix/build-cpython.sh901 # extensions to load, we set an rpath to point at our libCOMMENT
LOWcpython-unix/build-cpython.sh921 # accessors, you might get lucky and things will work, with theCOMMENT
LOWcpython-unix/build-cpython.sh941 # In the past, when we dynamically linked libpython, we avoidedCOMMENT
LOWcpython-unix/build-cpython.sh961COMMENT
LOWcpython-unix/build-cpython.sh1001#COMMENT
LOWcpython-unix/build-ncurses.sh61 --enable-widecCOMMENT
LOWcpython-unix/build-ncurses.sh81#COMMENT
LOWcpython-unix/build-libedit.sh81 esacCOMMENT
LOWcpython-unix/targets.yml1# This file defines configurations for each supported build target/triple.COMMENT
LOWcpython-unix/targets.yml21#COMMENT
LOWcpython-unix/targets.yml41# Values will be added to CPPFLAGS and CFLAGS.COMMENT
LOWpythonbuild/downloads.py1# This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWsrc/release.rs381COMMENT
LOWsrc/validation.rs1241 }COMMENT
LOWsrc/github.rs101 if dry_run {COMMENT
LOWsrc/github_api_tester.py1#!/usr/bin/env -S uv runCOMMENT
LOWsrc/github_api_tester.py41app = QuartTrio(__name__)COMMENT
LOWcpython-windows/build.py1141COMMENT
LOWcpython-windows/xz-support/config.h1/* Configuration extracted from CMake'd project files.COMMENT
LOWcpython-windows/xz-support/config.h21COMMENT
LOWcpython-windows/xz-support/config.h41#define HAVE_IMMINTRIN_H 1COMMENT
LOWcpython-windows/xz-support/config.h61#define MYTHREAD_VISTA 1COMMENT
Deep Nesting29 hits · 29 pts
SeverityFileLineSnippetContext
LOWci-matrix.py100CODE
LOWci-matrix.py269CODE
LOWci-matrix.py372CODE
LOWscripts/update_downloads.py689CODE
LOWcpython-unix/build.py77CODE
LOWcpython-unix/build.py501CODE
LOWcpython-unix/build.py743CODE
LOWcpython-unix/build.py1043CODE
LOWcpython-unix/build-main.py31CODE
LOWpythonbuild/mirror.py201CODE
LOWpythonbuild/testdist.py113CODE
LOWpythonbuild/testdist.py315CODE
LOWpythonbuild/testdist.py396CODE
LOWpythonbuild/cpython.py223CODE
LOWpythonbuild/cpython.py406CODE
LOWpythonbuild/cpython.py572CODE
LOWpythonbuild/utils.py33CODE
LOWpythonbuild/utils.py71CODE
LOWpythonbuild/utils.py109CODE
LOWpythonbuild/utils.py325CODE
LOWpythonbuild/utils.py405CODE
LOWpythonbuild/utils.py598CODE
LOWpythonbuild/utils.py650CODE
LOWpythonbuild/disttests/__init__.py578CODE
LOWcpython-windows/build.py420CODE
LOWcpython-windows/build.py928CODE
LOWcpython-windows/build.py1005CODE
LOWcpython-windows/build.py1109CODE
LOWcpython-windows/build.py1438CODE
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMstdlib-test-annotations.yml2# This file defines metadata about Python standard library tests.COMMENT
MEDIUM.github/workflows/release.yml71 # Create a GitHub draft release for the target commit.COMMENT
MEDIUMcpython-unix/build-cpython.sh640# Define the base PGO profiling task, which we'll extend below with ignoresCOMMENT
MEDIUMcpython-unix/extension-modules.yml1# This file defines metadata for Python extension modules.COMMENT
MEDIUMcpython-unix/targets.yml1# This file defines configurations for each supported build target/triple.COMMENT
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWcheck.py6CODE
LOWgenerate-version-metadata.py6CODE
LOWtests/test_mirror_integration.py5CODE
LOWtests/test_mirror.py5CODE
LOWscripts/stdlib_test_matrix.py23CODE
LOWscripts/update_downloads.py23CODE
LOWpythonbuild/mirror.py13CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/stdlib_test_matrix.py189 print(f"Error generating stdlib test matrix: {error}", file=sys.stderr)CODE
LOWscripts/update_downloads.py464 except Exception as exc:CODE
LOWscripts/update_downloads.py519 except Exception:CODE
LOWcpython-unix/build.py1116 except Exception as e:CODE
LOWpythonbuild/mirror.py197 except Exception as e:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWci-matrix.py641 # Check if we have any Linux python builds.COMMENT
LOWcpython-windows/build.py874 # Set DESTDIR to affect install location.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpythonbuild/downloads.py15# unsure if the PR will land, but we should make sure to switch back to theCOMMENT