AI Slop Code RIsk Monitor

nix-community/home-manager

Manage a user environment using Nix [maintainer=@khaneliman, @rycee]

4.3 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for nix-community/home-manager, a Nix project with 10,421 GitHub stars. SynthScan examined 21,050 lines of code across 704 source files, recording 54 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.3 (Low 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.

4.3
Adjusted Signal
4.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
10.4K
Stars
Nix
Language
21.1K
Lines of Code
704
Files
54
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 9.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 6.9/100 · LOW

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

Agent Over-Engineering Ratio 6.0/100 · LOW

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

PR Review Velocity Impact 18.9/100 · LOW

Which changes need focused human review? 54 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 4MEDIUM 7LOW 43

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 54 distinct pattern matches across 11 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 Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/tests.py116 f'(builtins.filter (name: builtins.match "{test_prefix}.*" name != null) 'CODE
HIGHdocs/mdbook/legacy-redirects.py35 return null;CODE
HIGHdocs/mdbook/legacy-redirects.py38 if (t === null) return;CODE
Self-Referential Comments4 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/modules/programs/abook/with-settings.cfg4# Defining a new custom fieldCOMMENT
MEDIUM⚡tests/modules/programs/abook/with-settings.cfg11# Defining a view/tabCOMMENT
MEDIUMlib/python/generate-all-maintainers.py101 # This file is automatically generated using meta.maintainers from Home Manager evaluationCOMMENT
MEDIUMlib/bash/home-manager.sh4# This file contains a number of utilities for use by the home-manager tool andCOMMENT
Fake / Example Data11 hits · 11 pts
SeverityFileLineSnippetContext
LOWtests/modules/programs/pandoc/defaults-expected.json4 "author": "John Doe"CODE
LOW…rams/thunderbird/thunderbird-expected-second-darwin.js32user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.orgCODE
LOW…grams/thunderbird/thunderbird-expected-second-linux.js32user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.orgCODE
LOW…grams/thunderbird/thunderbird-expected-first-darwin.js68user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.orgCODE
LOW…ograms/thunderbird/thunderbird-expected-first-linux.js68user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.orgCODE
LOWdocs/manual/introduction.md10 userEmail = "joe@example.org";CODE
LOWdocs/manual/introduction.md19 email = "joe@example.org"CODE
LOWdocs/manual/usage/dotfiles.md19 userName = "Jane Doe";CODE
LOWdocs/manual/usage/dotfiles.md20 userEmail = "jane.doe@example.org";CODE
LOWmodules/programs/codex/normalize-plugins.py69 placeholder_key = f"{spec['placeholder']}@{marketplace_name}"CODE
LOWmodules/programs/codex/normalize-plugins.py76 plugin = plugins_by_placeholder[spec["placeholder"]]CODE
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWhome-manager/completion.bash1#!/bin/env bashCOMMENT
LOWhome-manager/completion.bash21#COMMENT
LOWhome-manager/completion.bash41# * run: « bash --noprofile --norc ./share/bash-completion/completions/home-manager »COMMENT
LOWhome-manager/completion.bash61# expire-generationsCOMMENT
LOWhome-manager/completion.bash81# 203COMMENT
LOWhome-manager/completion.bash101#COMMENT
LOWhome-manager/completion.bash121# Default is '~/.config/nixpkgs/home.nix'.COMMENT
LOWhome-manager/completion.bash141# switch Build and activate configurationCOMMENT
LOWhome-manager/completion.bash181#COMMENT
LOWlib/bash/home-manager.sh1#!/usr/bin/env bashCOMMENT
Decorative Section Separators2 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/modules/programs/abook/with-settings.cfg5# -----------------------------COMMENT
MEDIUM⚡tests/modules/programs/abook/with-settings.cfg12# ---------------------COMMENT
Excessive Try-Catch Wrapping6 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/tests.py222 except Exception:CODE
LOWtests/tests.py294 except Exception:CODE
LOWlib/python/generate-all-maintainers.py76 except Exception as e:CODE
LOWlib/python/generate-all-maintainers.py135 except Exception as e:CODE
MEDIUMlib/python/generate-all-maintainers.py178 print(f"Error: Could not find maintainers.nix in {hm_root}")CODE
LOWlib/python/generate-all-maintainers.py193 except Exception as e:CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWMAINTAINING.md53#### Step 1: On master - Mark Current as StableCOMMENT
LOWMAINTAINING.md104#### Step 2: Cut the release branchCOMMENT
LOWMAINTAINING.md112#### Step 3: On the release branch - Mark as Release BranchCOMMENT
LOWMAINTAINING.md203#### Step 4: On master - Prepare for Next ReleaseCOMMENT
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/tests.py55def _read_flake_override_paths(overrides_path: str | None) -> dict[str, str]:CODE
LOWtests/tests.py80def _format_flake_override_args(overrides: dict[str, str]) -> list[str]:CODE
LOWlib/python/manage-reviewers.py89def get_manual_reviewer_actions(CODE
LOWlib/python/generate-all-maintainers.py53 def extract_maintainers_from_meta(self) -> dict:CODE
LOWlib/python/generate-all-maintainers.py80 def generate_maintainers_file(self) -> None:CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/tests.py222except Exception:CODE
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/tests.py226CODE
LOWlib/python/validate-maintainer-entries.py14CODE
LOWlib/python/manage-reviewers.py89CODE
LOWlib/python/check-duplicate-maintainers.py16CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWdocs/mdbook/render-options.py2CODE
LOWdocs/mdbook/option_links.py11CODE
LOWdocs/mdbook/substitute-summary.py2CODE
LOWdocs/mdbook/convert-markup.py2CODE