AI Slop Code Risk Monitor

astral-sh/python-build-standalone

SlopCodeMonitor badge for astral-sh/python-build-standalone Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
6.4 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for astral-sh/python-build-standalone. SynthScan examined 31,409 lines of code across 124 source files, recording 146 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 6.4 (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.

6.4
Adjusted Signal
6.4
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
31.4K
Lines of Code
124
Files
146
Pattern Hits
2026-10-31
Scan Date
0.02
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 24.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.3/100 · LOW

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

Agent Over-Engineering Ratio 9.4/100 · LOW

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

PR Review Velocity Impact 27.5/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

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 2MEDIUM 23LOW 121

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.yml2143 # Static builds pass. Debug builds already skip the harness on 3.14+.COMMENT
MEDIUMcpython-unix/build.py543 # helper function found in libatomic. To facilitate this, GCC <15 addsCOMMENT
MEDIUMcpython-unix/build-cpython.sh239# On 3.12 (minimum BOLT version), the segfault causes the test harness toCOMMENT
LOWcpython-unix/build-cpython.sh975# simply use our pip to install self. Kinda crazy, but it works!COMMENT
MEDIUMcpython-unix/build-cpython.sh1451# Copy the test harness runner for convenience.COMMENT
MEDIUMcpython-unix/build-cpython.sh1452# 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.py1425 # test harness to pick up the wrong `test` module. We unset theseCOMMENT
MEDIUMcpython-windows/build.py1438 # test harness normally (all tests) or with -j to perform parallelCOMMENT
MEDIUMcpython-windows/build.py1439 # test execution. We work around this by invoking the test harnessCOMMENT
MEDIUMcpython-windows/build.py1464 # test harness itself and isn't exercising useful code. Skip it.COMMENT
Hyper-Verbose Identifiers46 hits · 46 pts
SeverityFileLineSnippetContext
LOWci-matrix.py43def meets_conditional_version(version: str, min_version: str) -> bool:CODE
LOWci-matrix.py239def generate_docker_matrix_entries(CODE
LOWci-matrix.py272def generate_crate_build_matrix_entries(CODE
LOWci-matrix.py323def generate_python_build_matrix_entries(CODE
LOWci-matrix.py375def create_python_build_entry(CODE
LOWci-matrix.py401def add_python_build_entries_for_config(CODE
LOWci-matrix.py466def validate_pull_request_defaults(CODE
LOWtests/test_windows_patches.py52 def test_failed_patch_does_not_apply_other_files(self):STRING
LOWtests/test_windows_patches.py68 def test_indentation_changes_are_not_ignored(self):STRING
LOWtests/test_archive.py17 def test_compression_profiles_round_trip(self) -> None:CODE
LOWtests/test_archive.py34 def test_default_compression_is_small(self) -> None: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.py536def print_mirror_instructions(CODE
LOWscripts/update_downloads.py589def 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.py412def create_tar_from_directory(fh, base_path: pathlib.Path, path_prefix=None):CODE
LOWpythonbuild/utils.py575def add_licenses_to_extension_entry(entry):CODE
LOWpythonbuild/buildenv.py41 def install_toolchain_archive(CODE
LOWpythonbuild/buildenv.py168 def install_toolchain_archive(CODE
LOWpythonbuild/disttests/__init__.py557 def test_linux_uapi_not_in_sysconfig(self):STRING
LOWpythonbuild/disttests/__init__.py609 def test_thread_timeouts_use_monotonic_clock(self):STRING
LOWsrc/github_api_tester.py303def upload_release_distributions(tmp_path_factory):CODE
LOWsrc/github_api_tester.py309 async def upload_release_distributions(*args):CODE
LOWsrc/github_api_tester.py359async def test_dry_run_writes_shasums_without_contacting_github(tmp_path):CODE
LOWcpython-windows/build.py291def get_visual_studio_environment(CODE
LOWcpython-windows/build.py853def collect_python_build_artifacts(CODE
LOWcpython-windows/build.py977 def find_additional_dependencies(project: pathlib.Path):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
LOWci-matrix.py1# /// scriptCOMMENT
LOWscripts/stdlib_test_matrix.py1# /// scriptCOMMENT
LOWscripts/update_downloads.py1# This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWcpython-unix/build.py541 if riscv:COMMENT
LOWcpython-unix/build-cpython.sh181COMMENT
LOWcpython-unix/build-cpython.sh501 fiCOMMENT
LOWcpython-unix/build-cpython.sh621fiCOMMENT
LOWcpython-unix/build-cpython.sh661 # are. So force a static "yes" value when our build system says weCOMMENT
LOWcpython-unix/build-cpython.sh701 # which causes `multiprocessing.Queue.qsize()` to raise `NotImplementedError`.COMMENT
LOWcpython-unix/build-cpython.sh861COMMENT
LOWcpython-unix/build-cpython.sh881 # Python distributions, which too set an rpath.COMMENT
LOWcpython-unix/build-cpython.sh901 # ctypes.CDLL(None)COMMENT
LOWcpython-unix/build-cpython.sh921 # ensures they do not use any unwanted symbols. That might beCOMMENT
LOWcpython-unix/build-cpython.sh961 # interpreter.COMMENT
LOWcpython-unix/build-ncurses.sh81# terminfo database can't be known at build time: there needs to be somethingCOMMENT
LOWcpython-unix/targets.yml1# This file defines configurations for each supported build target/triple.COMMENT
LOWcpython-unix/targets.yml21#COMMENT
LOWcpython-unix/targets.yml41# target_cflagsCOMMENT
LOWcpython-unix/targets.yml61#COMMENT
LOWpythonbuild/downloads.py1# This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWsrc/release.rs381COMMENT
LOWsrc/validation.rs1281 }COMMENT
LOWsrc/github_api_tester.py1#!/usr/bin/env -S uv runCOMMENT
LOWsrc/github_api_tester.py61 # the Quart requestCOMMENT
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.py103CODE
LOWci-matrix.py272CODE
LOWci-matrix.py375CODE
LOWtests/test_windows_patches.py30CODE
LOWscripts/update_downloads.py694CODE
LOWcpython-unix/build.py77CODE
LOWcpython-unix/build.py475CODE
LOWcpython-unix/build.py713CODE
LOWcpython-unix/build.py1011CODE
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.py332CODE
LOWpythonbuild/utils.py412CODE
LOWpythonbuild/utils.py617CODE
LOWpythonbuild/utils.py669CODE
LOWpythonbuild/disttests/__init__.py609CODE
LOWcpython-windows/build.py672CODE
LOWcpython-windows/build.py749CODE
LOWcpython-windows/build.py853CODE
LOWcpython-windows/build.py1182CODE
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.yml80 # Create a GitHub draft release for the target commit.COMMENT
MEDIUMcpython-unix/build-cpython.sh623# 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
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpythonbuild/utils.py639except FileNotFoundError:CODE
HIGHpythonbuild/utils.py481except AttributeError:CODE
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcheck.py6CODE
LOWgenerate-version-metadata.py10CODE
LOWtests/test_mirror_integration.py5CODE
LOWtests/test_archive.py5CODE
LOWtests/test_mirror.py5CODE
LOWscripts/stdlib_test_matrix.py27CODE
LOWscripts/update_downloads.py27CODE
LOWpythonbuild/mirror.py13CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/stdlib_test_matrix.py193 print(f"Error generating stdlib test matrix: {error}", file=sys.stderr)CODE
LOWscripts/update_downloads.py469 except Exception as exc:CODE
LOWscripts/update_downloads.py524 except Exception:CODE
LOWcpython-unix/build.py1084 except Exception as e:CODE
LOWpythonbuild/mirror.py197 except Exception as e:CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWci-matrix.py646 # Check if we have any Linux python builds.COMMENT
LOWcpython-windows/build.py618 # 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