AI Slop Code Risk Monitor

home-assistant/operating-system

SlopCodeMonitor badge for home-assistant/operating-system Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

:beginner: Home Assistant Operating System

22.3 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for home-assistant/operating-system, a Python project with 7,611 GitHub stars. SynthScan examined 12,197 lines of code across 124 source files, recording 121 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 22.3 (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.

22.3
Adjusted Signal
22.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
7.6K
Stars
Python
Language
12.2K
Lines of Code
124
Files
121
Pattern Hits
2026-10-31
Scan Date
0.38
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 16.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 55.4/100 · HIGH

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

Agent Over-Engineering Ratio 14.2/100 · LOW

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

PR Review Velocity Impact 77.0/100 · CRITICAL

Which changes need focused human review? 121 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 47MEDIUM 1LOW 73

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 121 distinct pattern matches across 9 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.

Cross-Language Confusion41 hits · 197 pts
SeverityFileLineSnippetContext
HIGH⚡buildroot-external/scripts/kconfiglib.py4170 example, 'default A && B if C || D' is represented asCODE
HIGH⚡buildroot-external/scripts/kconfiglib.py4170 example, 'default A && B if C || D' is represented asCODE
HIGH⚡buildroot-external/scripts/kconfiglib.py4179 example, 'select A if B && C' is represented as (A, (AND, B, C)). If noCODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6191 split_expr( A && B , OR ) -> [A && B]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6192 split_expr( A || B , OR ) -> [A, B]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6193 split_expr( A || B , AND ) -> [A || B]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6194 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6194 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6197 split_expr( A || (B && (C || D)) , OR ) -> [A, B && (C || D)]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6201 split_expr( (A || B) || C , OR ) -> [A, B, C]CODE
HIGH⚡buildroot-external/scripts/kconfiglib.py6202 split_expr( A || (B || C) , OR ) -> [A, B, C]CODE
HIGHbuildroot-external/scripts/kconfiglib.py1551 /dev/null).CODE
HIGHbuildroot-external/scripts/kconfiglib.py1967 which has the value y, then eval_string("y && (FOO || BAR)") returnsCODE
HIGHbuildroot-external/scripts/kconfiglib.py1976 the C implementation. m is rewritten to 'm && MODULES', soCODE
HIGHbuildroot-external/scripts/kconfiglib.py4060 (A, !A, A && B, A || B).CODE
HIGHbuildroot-external/scripts/kconfiglib.py4060 (A, !A, A && B, A || B).CODE
HIGHbuildroot-external/scripts/kconfiglib.py4157 If the symbol is undefined, the location is given as "(undefined)".CODE
HIGHbuildroot-external/scripts/kconfiglib.py4196 Gotcha: 1 and 2 above will be represented as (undefined) Symbols ratherCODE
HIGHbuildroot-external/scripts/kconfiglib.py5163 example, 'default A if B && C' is represented as (A, (AND, B, C)). IfCODE
HIGH⚡buildroot-external/scripts/kconfiglib.py188 tristate "foo" if A && B && C && DSTRING
HIGH⚡buildroot-external/scripts/kconfiglib.py189 default y if A && B && CSTRING
HIGH⚡buildroot-external/scripts/kconfiglib.py193In this example, A && B && C && D (the prompt condition) needs to be non-n forSTRING
HIGH⚡buildroot-external/scripts/kconfiglib.py306A && B (AND, A, B)STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py307A && B && C (AND, A, (AND, B, C))STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py308A || B (OR, A, B)STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py309A || (B && C && D) (OR, A, (AND, B, (AND, C, D)))STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py312A && B = C && D (AND, A, (AND, (EQUAL, B, C), D))STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py329 - The value of A && B is min(A.tri_value, B.tri_value)STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py331 - The value of A || B is max(A.tri_value, B.tri_value)STRING
HIGH⚡buildroot-external/scripts/kconfiglib.py338 For constant (as well as undefined) symbols, str_value matches the name ofSTRING
HIGHbuildroot-external/scripts/kconfiglib.py6474 return "(undefined)"STRING
HIGHtests/smoke_test/test_basic.py36 output = "\n".join(shell.run_check("ha os info || true"))CODE
HIGH⚡tests/smoke_test/test_basic.py92 output = shell.run_check("systemctl --no-pager -l status -a || true")CODE
HIGHtests/smoke_test/test_os_update.py28 supervisor_info = "\n".join(shell.run_check("ha supervisor info --no-progress --raw-json || true"))CODE
HIGHtests/smoke_test/test_os_update.py34 output = "\n".join(shell.run_check("ha os info || true"))CODE
HIGHtests/smoke_test/test_os_update.py68 raw_info = "\n".join(shell.run_check("ha os info --no-progress --raw-json || true"))CODE
HIGHtests/smoke_test/test_os_update.py80 shell.console.sendline("ha host reboot --no-progress || true")CODE
HIGHtests/smoke_test/test_os_update.py96 output = "\n".join(shell.run_check("ha os info || true"))CODE
HIGHtests/smoke_test/test_os_update.py117 shell.console.sendline(f"ha os boot-slot other --no-progress || true")CODE
HIGHtests/smoke_test/test_os_update.py127 output = "\n".join(shell.run_check("ha os info || true"))CODE
HIGHtests/supervisor_test/test_supervisor.py240 output = shell.run_check("journalctl -t audit | grep DENIED || true")CODE
Empty Error Handlers6 hits · 28 pts
SeverityFileLineSnippetContext
HIGHbuildroot-external/scripts/kconfiglib.py6457except Exception:CODE
HIGHbuildroot-external/scripts/kconfiglib.py1037except ImportError:CODE
HIGHtests/supervisor_test/test_supervisor.py47except ExecutionError:CODE
HIGHtests/supervisor_test/test_supervisor.py75except ExecutionError:CODE
HIGHtests/supervisor_test/test_supervisor.py212except ExecutionError:CODE
HIGHtests/supervisor_test/test_supervisor.py130except ExecutionError:CODE
Over-Commented Block28 hits · 18 pts
SeverityFileLineSnippetContext
LOWbuildroot-external/board/khadas/vim3/boot-env.txt1# Uncomment this to enable GPIO support for RPI-RF-MOD/HM-MOD-RPI-PCBCOMMENT
LOW…droot-external/board/hardkernel/odroid-c2/boot-env.txt1# Uncomment this to enable GPIO support for RPI-RF-MOD/HM-MOD-RPI-PCBCOMMENT
LOW…droot-external/board/hardkernel/odroid-c4/boot-env.txt1# Uncomment this to enable GPIO support for RPI-RF-MOD/HM-MOD-RPI-PCBCOMMENT
LOW…droot-external/board/hardkernel/odroid-n2/boot-env.txt1# Uncomment this to enable GPIO support for RPI-RF-MOD/HM-MOD-RPI-PCBCOMMENT
LOWbuildroot-external/board/raspberrypi/config.txt1# For more options and information seeCOMMENT
LOWbuildroot-external/board/raspberrypi/config.txt21COMMENT
LOWbuildroot-external/board/raspberrypi/config.txt41# uncomment to force a HDMI mode rather than DVI. This can make audio work inCOMMENT
LOWbuildroot-external/board/raspberrypi/rpi5-64/config.txt1# For more options and information seeCOMMENT
LOWbuildroot-external/board/raspberrypi/yellow/config.txt1# For more options and information seeCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py1821COMMENT
LOWbuildroot-external/scripts/kconfiglib.py2141 # position and file object.COMMENT
LOWbuildroot-external/scripts/kconfiglib.py2161 #COMMENT
LOWbuildroot-external/scripts/kconfiglib.py2261COMMENT
LOWbuildroot-external/scripts/kconfiglib.py2901 # parent:COMMENT
LOWbuildroot-external/scripts/kconfiglib.py3121COMMENT
LOWbuildroot-external/scripts/kconfiglib.py3421 # True if m should be rewritten to m && MODULES. See theCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py3441 # expression evaluation and other code that works on expressions (moreCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py3501 #COMMENT
LOWbuildroot-external/scripts/kconfiglib.py3541COMMENT
LOWbuildroot-external/scripts/kconfiglib.py3581 # Undefined symbols never change value and don't need to beCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py3601 # - Propagates dependencies from parent to child nodesCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py3721 # Propagate dependencies to the prompt. 'visible if' is onlyCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py3921 self._line.strip(), msg))COMMENT
LOWbuildroot-external/scripts/kconfiglib.py3941 #COMMENT
LOWbuildroot-external/scripts/kconfiglib.py4921 # values on other items that depend on 'item', because if thereCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py6601 # Detects dependency loops using depth-first search on the dependency graphCOMMENT
LOWbuildroot-external/scripts/kconfiglib.py6621 #COMMENT
LOWbuildroot-external/scripts/kconfiglib.py7161COMMENT
Deep Nesting28 hits · 18 pts
SeverityFileLineSnippetContext
LOWbuildroot-external/scripts/kconfiglib.py6517CODE
LOWbuildroot-external/scripts/kconfiglib.py6675CODE
LOWbuildroot-external/scripts/kconfiglib.py1136CODE
LOWbuildroot-external/scripts/kconfiglib.py1249CODE
LOWbuildroot-external/scripts/kconfiglib.py1462CODE
LOWbuildroot-external/scripts/kconfiglib.py1585CODE
LOWbuildroot-external/scripts/kconfiglib.py1843CODE
LOWbuildroot-external/scripts/kconfiglib.py1909CODE
LOWbuildroot-external/scripts/kconfiglib.py2337CODE
LOWbuildroot-external/scripts/kconfiglib.py2711CODE
LOWbuildroot-external/scripts/kconfiglib.py2744CODE
LOWbuildroot-external/scripts/kconfiglib.py2806CODE
LOWbuildroot-external/scripts/kconfiglib.py2893CODE
LOWbuildroot-external/scripts/kconfiglib.py3127CODE
LOWbuildroot-external/scripts/kconfiglib.py3351CODE
LOWbuildroot-external/scripts/kconfiglib.py3765CODE
LOWbuildroot-external/scripts/kconfiglib.py3855CODE
LOWbuildroot-external/scripts/kconfiglib.py3963CODE
LOWbuildroot-external/scripts/kconfiglib.py4327CODE
LOWbuildroot-external/scripts/kconfiglib.py4468CODE
LOWbuildroot-external/scripts/kconfiglib.py4959CODE
LOWbuildroot-external/scripts/check-dotconfig.py20CODE
LOWbuildroot-external/scripts/check-dotconfig.py59CODE
LOWtests/qemu_shell_strategy.py50CODE
LOWtests/smoke_test/test_offline.py25CODE
LOWtests/supervisor_test/test_supervisor.py20CODE
LOWtests/supervisor_test/test_supervisor.py96CODE
LOWtests/supervisor_test/test_supervisor.py199CODE
Hyper-Verbose Identifiers8 hits · 7 pts
SeverityFileLineSnippetContext
LOWbuildroot-external/scripts/kconfiglib.py2059 def disable_override_warnings(self):STRING
LOWbuildroot-external/scripts/kconfiglib.py4937 def _rec_invalidate_if_has_prompt(self):STRING
LOWbuildroot-external/scripts/kconfiglib.py4994 def _warn_select_unsatisfied_deps(self):STRING
LOW⚡tests/smoke_test/test_basic.py83def test_landing_page_legacy_port_redirect(shell):CODE
LOW⚡tests/smoke_test/test_basic.py96def test_systemctl_check_no_failed(shell):CODE
LOWtests/smoke_test/test_basic.py116def test_supervisor_connectivity(shell):CODE
LOWtests/supervisor_test/test_supervisor.py137def test_supervisor_is_updated(shell_json):CODE
LOWtests/supervisor_test/test_supervisor.py231def test_restore_ssl_directory(shell_json, stash):CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py9logger = logging.getLogger(__name__)CODE
LOWtests/supervisor_test/test_supervisor.py8logger = logging.getLogger(__name__)CODE
Excessive Try-Catch Wrapping2 hits · 1 pts
SeverityFileLineSnippetContext
MEDIUMbuildroot-external/scripts/kconfiglib.py6394def _is_base_n(s, n):CODE
LOWbuildroot-external/scripts/kconfiglib.py6457 except Exception:STRING
Redundant / Tautological Comments4 hits · 1 pts
SeverityFileLineSnippetContext
LOWbuildroot-external/scripts/kconfiglib.py2943 # Check if we are in a transitional contextSTRING
LOWbuildroot-external/scripts/kconfiglib.py4361 # Check if a range is in effectSTRING
LOWbuildroot-external/scripts/kconfiglib.py4652 # Check if the value is valid for our typeSTRING
LOWbuildroot-external/scripts/kconfiglib.py5482 # Check if we have a defaultSTRING
AI Slop Vocabulary2 hits · 0 pts
SeverityFileLineSnippetContext
LOWbuildroot-external/scripts/kconfiglib.py3485 # EQUAL, UNEQUAL, etc., so we can just use the token directlySTRING
LOWbuildroot-external/scripts/kconfiglib.py6623 # to _check_dep_loop_sym(). We just return immediately.STRING