AI Slop Code Risk Monitor

NixOS/nix

SlopCodeMonitor badge for NixOS/nix Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Nix, the purely functional package manager

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for NixOS/nix, a C++ project with 17,948 GitHub stars. SynthScan examined 62,044 lines of code across 926 source files, recording 61 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 1.5 (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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
17.9K
Stars
C++
Language
62.0K
Lines of Code
926
Files
61
Pattern Hits
2026-10-31
Scan Date
0.00
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 6.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 7.5/100 · LOW

Which changes need focused human review? 61 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 0MEDIUM 18LOW 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 61 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.

Self-Referential Comments10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUM…aging/scripted-installer/install-systemd-multi-user.sh49 # Create a systemd unit override with proxy environment variablesCOMMENT
MEDIUMpackaging/scripted-installer/create-darwin-volume.sh259# Create the paths defined in synthetic.conf, saving us a reboot.COMMENT
MEDIUMtests/functional/nix-channel.sh31# Create a channel.COMMENT
MEDIUMtests/functional/binary-cache.sh15# Create the binary cache.COMMENT
MEDIUMtests/functional/binary-cache.sh184# Create a signed binary cache.COMMENT
MEDIUMtests/functional/fetchGitShallow.sh8# Create a test repo with multiple commits for all our testsCOMMENT
MEDIUMtests/functional/local-overlay-store/optimise-inner.sh19# Create a file to add to storeCOMMENT
MEDIUMtests/functional/flakes/common.sh52# Create a simple Git flake and add it to the registry as "flake1".COMMENT
MEDIUMtests/functional/flakes/run.sh56# Create a flake with an app that prints its argumentsCOMMENT
MEDIUMtests/functional/common/functions.sh276# This function is inefficient, so it should only be used in error messages.COMMENT
Over-Commented Block28 hits · 28 pts
SeverityFileLineSnippetContext
LOW…kaging/scripted-installer/install-darwin-multi-user.sh1#!/usr/bin/env bashCOMMENT
LOWpackaging/scripted-installer/install-multi-user.sh661 # now mounted, but we haven't added a bunch of new filesCOMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh1#!/usr/bin/env bashCOMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh21 # identifiers we inherit--just those necessary to:COMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh141 fiCOMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh161 # the volume, and the install fails.COMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh441 # shellcheck disable=SC1003,SC2026COMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh461EOFCOMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh481 # I'm not sure if it's safe to approach this way?COMMENT
LOWpackaging/scripted-installer/create-darwin-volume.sh721 # its UUID and set mount opts in fstab before first mountCOMMENT
LOWtests/nixos/ca-fd-leak/sender.c1#include <sys/socket.h>COMMENT
LOWtests/functional/shell.shebang.sh1#! @ENV_PROG@ nix-shellCOMMENT
LOWtests/functional/shell.shebang.rb1#! @SHELL_PROG@COMMENT
LOWtests/functional/structured-attrs.sh61# Check it works with the expected structured attrsCOMMENT
LOWtests/functional/fetchGitRefs.sh21# Git imposes the following rules on how references are named:COMMENT
LOWtests/functional/nix_path.sh21# ideally they would work off the table programmatically.COMMENT
LOWtests/functional/nars.sh121COMMENT
LOWtests/functional/fixed-slow-vs-bad.sh1#!/usr/bin/env bashCOMMENT
LOWtests/functional/experimental-features.sh1#!/usr/bin/env bashCOMMENT
LOWtests/functional/local-overlay-store/common.sh1# shellcheck shell=bashCOMMENT
LOWtests/functional/flakes/flake-in-submodule.sh1#!/usr/bin/env bashCOMMENT
LOWtests/functional/flakes/follow-paths.sh181# ACOMMENT
LOWtests/functional/flakes/follow-paths.sh281}COMMENT
LOWtests/functional/flakes/shebang.sh21chmod +x "$scriptDir/shebang.sh"COMMENT
LOWtests/functional/common/functions.sh321#COMMENT
LOWtests/functional/git/packed-refs-no-cache.sh1#!/usr/bin/env bashCOMMENT
LOWdoc/manual/generate-deps.py1#!/usr/bin/env python3COMMENT
LOWsrc/libexpr-c/nix_api_expr.h21# define __has_c_attribute(x) 0COMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMpackaging/scripted-installer/create-darwin-volume.sh553# aspiration: robust enough to both fix problemsCOMMENT
MEDIUMtests/functional/flakes/flakes.sh113 # This `cd` should not be required and is indicative of aforementioned bug.COMMENT
MEDIUMtests/functional/git/packed-refs-no-cache.sh5# tl;dr;fetchGit will utilize the git cache and avoid refetching when possible.COMMENT
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/filetransfer-retry-backoff/test_retry_backoff.py110def test_rate_limit_delay_and_retry_after():CODE
LOWtests/filetransfer-retry-backoff/test_retry_backoff.py124def test_retry_after_floor_exceeds_backoff():CODE
LOWtests/filetransfer-retry-backoff/test_retry_backoff.py148def test_raised_retry_attempts():CODE
LOWtests/filetransfer-retry-backoff/test_retry_backoff.py160def test_download_attempts_alias():CODE
LOW…anual/source/store/derivation/outputs/input-address.md69function hashInputMaskedDerivation(drv) -> Hash:CODE
LOW…anual/source/store/derivation/outputs/input-address.md84function hashOutputsOrInputMaskedDerivation(drv) -> Map[String, Hash] | Hash:CODE
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM⚡doc/manual/expand-includes.py192 print(f"Error: Input file not found: {args.input_file}", file=sys.stderr)STRING
MEDIUM⚡doc/manual/expand-includes.py196 print(f"Error: Source root is not a directory: {args.source_root}", file=sys.stderr)STRING
MEDIUM⚡doc/manual/expand-includes.py200 print(f"Error: Generated root is not a directory: {args.generated_root}", file=sys.stderr)STRING
LOWdoc/manual/expand-includes.py215 except Exception as e:STRING
MEDIUMdoc/manual/expand-includes.py216 print(f"Error processing {args.input_file}: {e}", file=sys.stderr)STRING
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackaging/scripted-installer/create-darwin-volume.sh502 # TODO: I'm scaffolding this to handle the new nix volumesCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/libstore-c/nix_api_store.h111 * @note Don't forget to free this path using nix_store_path_free()!COMMENT
LOWsrc/libstore-c/nix_api_store/store_path.h79 * @note Don't forget to free this path using nix_store_path_free()!COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/functional/fetchGitSubmodules.sh22 echo "lorem ipsum" > "$1"/contentCODE
LOWdoc/manual/source/package-management/ssh-substituter.md58nix.sshServe.keys = [ "ssh-dss AAAAB3NzaC1k... bob@example.org" ];CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcontrib/stack-collapse.py12CODE
LOWcontrib/stack-collapse.py13CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/functional/eval.sh24# Check if toFile can be utilized during restricted evalCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/functional/common/functions.sh232# Usage:COMMENT