AI Slop Code Risk Monitor

moby/buildkit

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

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit

0.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for moby/buildkit, a Go project with 10,352 GitHub stars. SynthScan examined 313,298 lines of code across 1271 source files, recording 88 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 0.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.

0.3
Adjusted Signal
0.3
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
10.4K
Stars
Go
Language
313.3K
Lines of Code
1.3K
Files
88
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 1.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 1.5/100 · LOW

Which changes need focused human review? 88 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 1MEDIUM 2LOW 85

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

Over-Commented Block78 hits · 78 pts
SeverityFileLineSnippetContext
LOWcmd/buildkitd/service_windows.go201 }COMMENT
LOWsnapshot/merge.go41 // result of merging these diffs looks the same as exporting the diffs as layerCOMMENT
LOWcache/contenthash/checksum.go1121type followLinksCallback func(path string, cr *CacheRecord) errorCOMMENT
LOWcache/contenthash/path_test.go21 mkdirAll(t, tmpdir, "target")COMMENT
LOWcache/remotecache/v1/types/doc.go1package cacheimporttypesCOMMENT
LOWcache/remotecache/v1/types/doc.go21// {COMMENT
LOWcache/remotecache/v1/types/doc.go41// "createdat": "",COMMENT
LOWfrontend/dockerfile/dockerfile_outline_test.go181 dockerui.DefaultLocalNameDockerfile: dir,COMMENT
LOWfrontend/dockerfile/exclude_patterns_test.go21 testExcludedFilesOnCopy,COMMENT
LOWfrontend/dockerfile/dockerfile_git_http_test.go21// testDockerfileFromGitSHA1 runs testDockerfileFromGit against a repo usingCOMMENT
LOWfrontend/dockerfile/dockerfile_heredoc_test.go361 require.NoError(t, err)COMMENT
LOWfrontend/dockerfile/instructions/bflag.go121COMMENT
LOWfrontend/dockerfile/instructions/bflag.go141// w/o needing to add an if-statement around each one.COMMENT
LOWfrontend/dockerfile/instructions/commands.go501COMMENT
LOWfrontend/dockerfile/shell/lex.go41}COMMENT
LOWfrontend/dockerfile/shell/lex.go281 if preservePatternEscapes && ch == sw.escapeToken {COMMENT
LOWfrontend/dockerfile/dfgitutil/git_ref.go41 //COMMENT
LOWidentity/randomid.go21 // To ensure that all identifiers are fixed length, we make sure theyCOMMENT
LOWutil/tracing/detect/resource.go21 detectedResource *resource.ResourceCOMMENT
LOWutil/tracing/otlptracegrpc/client.go1// Copyright The OpenTelemetry AuthorsCOMMENT
LOWutil/tracing/otlptracegrpc/connection.go1// Copyright The OpenTelemetry AuthorsCOMMENT
LOWutil/progress/progressui/display.go61 // init initializes the display and opens any resourcesCOMMENT
LOWutil/system/path.go121}COMMENT
LOWutil/system/path.go141 return falseCOMMENT
LOWutil/system/path.go161//COMMENT
LOWutil/system/path.go201 // We expect all paths to be in C:COMMENT
LOWutil/resolvconf/resolvconf.go1// Package resolvconf is used to generate a container's /etc/resolv.conf file.COMMENT
LOWutil/compression/go126flate/deflate.go21COMMENT
LOWutil/compression/go126flate/deflate.go661// a very fast compression for all types of input, but sacrificing considerableCOMMENT
LOWutil/compression/go126flate/deflate.go701// A Writer takes data written to it and writes the compressedCOMMENT
LOWutil/compression/go126flate/doc.go1// Copyright 2009 The Go Authors. All rights reserved.COMMENT
LOWutil/compression/go126flate/deflatefast.go101 // scanned (or skipped), look at every third byte, etc.. When a matchCOMMENT
LOWutil/compression/go126flate/deflatefast.go141 dst = emitLiteral(dst, src[nextEmit:s])COMMENT
LOWutil/compression/go126flate/huffman_bit_writer.go181 n++COMMENT
LOWutil/compression/go126flate/huffman_code.go121// It is only called when list.length >= 3.COMMENT
LOWutil/compression/go126flate/huffman_code.go141COMMENT
LOWutil/db/boltutil/gate.go1package boltutilCOMMENT
LOWutil/rootless/specconv/specconv_linux.go1package specconvCOMMENT
LOWutil/windows/util_windows.go61 // The equivalent in Windows of /etc/passwd and /etc/group is a registry hive called SAM which can be foundCOMMENT
LOWutil/overlay/overlay_linux.go121 return errors.Wrapf(err, "failed to record upperdir changes")COMMENT
LOWutil/testutil/dockerd/client/client.go21//COMMENT
LOWutil/testutil/dockerd/client/client.go61 // client used to send and receive http requests.COMMENT
LOWutil/testutil/dockerd/client/client.go81// in the client. The client (and by extension API client) can be made to sendCOMMENT
LOWutil/purl/image.go81 }COMMENT
LOWsource/git/bundle.go21 digest "github.com/opencontainers/go-digest"COMMENT
LOWsource/git/bundle.go41 bundleFallbackRef = "refs/heads/main"COMMENT
LOWsource/git/bundle.go161// the same staging dir on subsequent calls for the lifetime of gs.COMMENT
LOWsource/git/source.go1001 // commit as the ref directly. validateBundleAttrs guaranteesCOMMENT
LOWsolver/cachemiss_stale_dep_test.go1package solverCOMMENT
LOWsolver/cachemiss_stale_dep_test.go21// keys to edgeState.keys at completion). Both base and step are saved. A2 thenCOMMENT
LOWsolver/cachemiss_stale_dep_test.go181 // Control: with the base recreated fresh, A2 probes theCOMMENT
LOWsolver/cachemiss_stale_dep_test.go201 execs, result := run(t, scenario{holdBaseAlive: true, sameStepVertex: true, warmBase: true})COMMENT
LOWsolver/cachemiss_stale_dep_test.go241 // keys -- but it must NOT advertise them in edgeState.keys, or step wouldCOMMENT
LOWsolver/types.go221 // For example, in LLB this digest is a manifest digest for OCI images, orCOMMENT
LOWsolver/pb/ops.pb.go281// Op represents a vertex of the LLB DAG.COMMENT
LOWsolver/llbsolver/metrics.go81 enabled: true,COMMENT
LOWsolver/llbsolver/ops/exec.go321 // - A "snapshot" contains "foo/a.txt" and "bar/b.txt"COMMENT
LOWdocs/buildkitd.toml.md61 # specification, please refer to https://github.com/cncf-tags/container-device-interface/blob/main/SPEC.md#cdi-json-spCOMMENT
LOWdocs/buildkitd.toml.md101 platforms = [ "linux/amd64", "linux/arm64" ]COMMENT
LOWdocs/buildkitd.toml.md161 address = "/run/containerd/containerd.sock"COMMENT
18 more matches not shown…
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHfrontend/dockerfile/docs/reference.md2249# Note: I've written this using sh so it works in the busybox container tooCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMutil/testutil/dockerd/client/client.go45// DefaultVersion is the pinned version of the docker API we utilize.COMMENT
MEDIUMclient/llb/source.go377// Formats that utilize SSH may need to supply credentials as a [GitOption].COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWfrontend/dockerfile/dockerfile_check_test.go943LABEL org.opencontainers.image.authors="me@example.org"CODE
LOWfrontend/dockerfile/docs/reference.md1301ENV MY_NAME="John Doe"CODE
LOWfrontend/dockerfile/docs/reference.md1311ENV MY_NAME="John Doe" MY_DOG=Rex\ The\ Dog \CODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWfrontend/dockerfile/builder/build.go32 // Don't forget to update frontend documentation if you addCOMMENT
LOWfrontend/dockerui/config.go53 // Don't forget to update frontend documentation if you addCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWclient/pinrace_6731_test.go121 // Step 1: warmup, in its own c.Build (Job 1). The frontend evaluatesCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWclient/pinrace_6731_test.go121 // Step 1: warmup, in its own c.Build (Job 1). The frontend evaluatesCOMMENT