AI Slop Code RIsk Monitor

mingrammer/diagrams

:art: Diagram as Code for prototyping cloud system architectures

16.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for mingrammer/diagrams, a Python project with 42,698 GitHub stars. SynthScan examined 49,553 lines of code across 379 source files, recording 290 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 16.2 (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.

16.2
Adjusted Signal
16.2
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
42.7K
Stars
Python
Language
49.6K
Lines of Code
379
Files
290
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 53.1/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 8.5/100 · LOW

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

PR Review Velocity Impact 55.9/100 · HIGH

Which changes need focused human review? 290 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 10MEDIUM 236LOW 44

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

Self-Referential Comments234 hits · 702 pts
SeverityFileLineSnippetContext
MEDIUMdiagrams/openstack/containerservices.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/user.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/billing.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/sharedservices.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/deployment.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/workloadprovisioning.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/monitoring.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/lifecyclemanagement.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/baremetal.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/optimization.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/frontend.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/orchestration.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/operations.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/nfv.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/networking.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/packaging.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/storage.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/adjacentenablers.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/apiproxies.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/applicationlifecycle.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/multiregion.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/openstack/compute.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/outscale/security.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/outscale/storage.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/outscale/network.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/outscale/compute.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/elasticsearch.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/security.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/saas.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/observability.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/orchestration.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/beats.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/agent.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/elastic/enterprisesearch.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/intune.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/databases.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/web.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/monitor.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/containers.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/database.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/managementgovernance.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/security.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/mobile.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/other.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/hybridmulticloud.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/appservices.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/devops.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/aimachinelearning.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/integration.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/ml.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/menu.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/networking.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/storage.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/network.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/azureecosystem.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/blockchain.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/newicons.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/analytics.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/mixedreality.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
MEDIUMdiagrams/azure/migration.py1# This module is automatically generated by autogen.sh. DO NOT EDIT.COMMENT
174 more matches not shown…
Empty Error Handlers10 hits · 50 pts
SeverityFileLineSnippetContext
HIGHdiagrams/__init__.py25except OSError: # pragma: no cover - unreadable install locationCODE
HIGHtests/test_diagram.py148except OSError:CODE
HIGHtests/test_diagram.py223except OSError:CODE
HIGHtests/test_diagram.py450except FileNotFoundError:CODE
HIGHtests/test_diagram.py23except FileNotFoundError:CODE
HIGHtests/test_c4.py20except FileNotFoundError:CODE
HIGHtests/test_cli.py37except FileNotFoundError:CODE
HIGHtests/test_cli.py49except FileNotFoundError:CODE
HIGHtests/test_cli.py75except FileNotFoundError:CODE
HIGHtests/test_cli.py70except FileNotFoundError:CODE
Hyper-Verbose Identifiers35 hits · 36 pts
SeverityFileLineSnippetContext
LOW⚡playground/scripts/test_gen_catalog.py26def test_catalog_records_aliases():CODE
LOW⚡playground/scripts/test_gen_catalog.py33def test_catalog_signatures_have_core_classes():CODE
LOW⚡playground/scripts/test_gen_catalog.py40def test_all_catalog_icons_exist_on_disk():CODE
LOWplayground/scripts/test_gen_catalog.py51def test_slim_wheel_has_no_resources(tmp_path):CODE
LOW⚡playground/scripts/test_shim.py53def test_no_output_files_written(tmp_path, monkeypatch):STRING
LOW⚡playground/scripts/test_shim.py59def test_captures_multiple_diagrams():STRING
LOW⚡playground/scripts/test_shim.py65def test_explicit_render_call_not_duplicated():STRING
LOWplayground/scripts/test_shim.py77def test_error_returns_clean_traceback():STRING
LOWplayground/scripts/test_shim.py90def test_exception_inside_diagram_block_not_captured():STRING
LOWplayground/scripts/test_shim.py108def test_json_sabotage_still_returns_json():STRING
LOWplayground/scripts/test_shim.py115def test_json_encoder_sabotage_still_returns_json():STRING
LOWtests/test_diagram.py246 def test_nodes_to_node_with_additional_attributes(self):CODE
LOWtests/test_diagram.py260 def test_node_to_node_with_attributes(self):CODE
LOWtests/test_diagram.py281 def test_node_to_node_with_additional_attributes(self):CODE
LOWtests/test_diagram.py305 def test_nodes_to_node_with_attributes_loop(self):CODE
LOWtests/test_diagram.py330 def test_nodes_to_node_with_attributes_bothdirectional(self):CODE
LOWtests/test_diagram.py341 def test_nodes_to_node_with_attributes_bidirectional(self):CODE
LOWtests/test_diagram.py352 def test_nodes_to_node_with_attributes_onedirectional(self):CODE
LOWtests/test_diagram.py368 def test_nodes_to_node_with_additional_attributes_directional(self):CODE
LOWtests/test_diagram.py407 def test_resources_exist_and_render(self):CODE
LOW⚡tests/test_check_release_version.py8 def test_accepts_tag_matching_the_project_version(self):CODE
LOW⚡tests/test_check_release_version.py11 def test_accepts_tag_without_the_v_prefix(self):CODE
LOW⚡tests/test_check_release_version.py14 def test_rejects_tag_ahead_of_the_project_version(self):CODE
LOW⚡tests/test_check_release_version.py21 def test_rejects_tag_that_is_not_a_version(self):CODE
LOW⚡tests/test_check_release_version.py28 def test_reads_the_version_out_of_pyproject_toml(self):CODE
LOW⚡tests/test_check_release_version.py32 def test_tolerates_toml_the_stdlib_parser_accepts(self):CODE
LOW⚡tests/test_check_release_version.py41 def test_reports_a_missing_version_as_a_check_error_not_a_traceback(self):CODE
LOWtests/test_c4.py60 def test_edge_without_constraint(self):CODE
LOWtests/test_packaging.py68 def test_declared_console_scripts_are_importable(self):CODE
LOWtests/test_packaging.py85 def test_every_node_icon_file_exists(self):CODE
LOWtests/test_packaging.py107 def test_runtime_version_matches_distribution_metadata(self):CODE
LOWtests/test_cli.py52 def test_run_with_multiple_files(self):STRING
LOW⚡tests/test_cli.py78 def test_run_with_no_arguments(self):STRING
LOW⚡tests/test_cli.py85 def test_run_with_nonexistent_file(self):STRING
LOW⚡tests/test_cli.py90 def test_run_with_invalid_python_code(self):STRING
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocs/nodes/elastic.md131## elastic.orchestrationCOMMENT
MEDIUMdocs/nodes/openstack.md137## openstack.orchestrationCOMMENT
Over-Commented Block3 hits · 3 pts
SeverityFileLineSnippetContext
LOWplayground/src/components/ExportBar.tsx61 <path d="M2.6 9V2.9a1 1 0 0 1 1-1H9" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" />COMMENT
LOWplayground/src/components/NodeSearch.tsx81// portal straight onto <body> — several ancestors (e.g. `.node-search`'sCOMMENT
LOW.devcontainer/devcontainer.json1// For format details, see https://aka.ms/devcontainer.json. For config options, see theCOMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWplayground/scripts/gen_catalog.py26CODE
LOWdiagrams/gis/cplusplus.py11CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWplayground/scripts/gen_catalog.py42 # Check if icon file exists on diskCOMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWplayground/scripts/gen_catalog.py77CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWplayground/src/worker/shim.py63 except Exception as exc: # json machinery sabotaged or payload non-serializableCODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdiagrams/__init__.py133CODE