concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 85 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 88 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cmd/buildkitd/service_windows.go | 201 | } | COMMENT |
| LOW | snapshot/merge.go | 41 | // result of merging these diffs looks the same as exporting the diffs as layer | COMMENT |
| LOW | cache/contenthash/checksum.go | 1121 | type followLinksCallback func(path string, cr *CacheRecord) error | COMMENT |
| LOW | cache/contenthash/path_test.go | 21 | mkdirAll(t, tmpdir, "target") | COMMENT |
| LOW | cache/remotecache/v1/types/doc.go | 1 | package cacheimporttypes | COMMENT |
| LOW | cache/remotecache/v1/types/doc.go | 21 | // { | COMMENT |
| LOW | cache/remotecache/v1/types/doc.go | 41 | // "createdat": "", | COMMENT |
| LOW | frontend/dockerfile/dockerfile_outline_test.go | 181 | dockerui.DefaultLocalNameDockerfile: dir, | COMMENT |
| LOW | frontend/dockerfile/exclude_patterns_test.go | 21 | testExcludedFilesOnCopy, | COMMENT |
| LOW | frontend/dockerfile/dockerfile_git_http_test.go | 21 | // testDockerfileFromGitSHA1 runs testDockerfileFromGit against a repo using | COMMENT |
| LOW | frontend/dockerfile/dockerfile_heredoc_test.go | 361 | require.NoError(t, err) | COMMENT |
| LOW | frontend/dockerfile/instructions/bflag.go | 121 | COMMENT | |
| LOW | frontend/dockerfile/instructions/bflag.go | 141 | // w/o needing to add an if-statement around each one. | COMMENT |
| LOW | frontend/dockerfile/instructions/commands.go | 501 | COMMENT | |
| LOW | frontend/dockerfile/shell/lex.go | 41 | } | COMMENT |
| LOW | frontend/dockerfile/shell/lex.go | 281 | if preservePatternEscapes && ch == sw.escapeToken { | COMMENT |
| LOW | frontend/dockerfile/dfgitutil/git_ref.go | 41 | // | COMMENT |
| LOW | identity/randomid.go | 21 | // To ensure that all identifiers are fixed length, we make sure they | COMMENT |
| LOW | util/tracing/detect/resource.go | 21 | detectedResource *resource.Resource | COMMENT |
| LOW | util/tracing/otlptracegrpc/client.go | 1 | // Copyright The OpenTelemetry Authors | COMMENT |
| LOW | util/tracing/otlptracegrpc/connection.go | 1 | // Copyright The OpenTelemetry Authors | COMMENT |
| LOW | util/progress/progressui/display.go | 61 | // init initializes the display and opens any resources | COMMENT |
| LOW | util/system/path.go | 121 | } | COMMENT |
| LOW | util/system/path.go | 141 | return false | COMMENT |
| LOW | util/system/path.go | 161 | // | COMMENT |
| LOW | util/system/path.go | 201 | // We expect all paths to be in C: | COMMENT |
| LOW | util/resolvconf/resolvconf.go | 1 | // Package resolvconf is used to generate a container's /etc/resolv.conf file. | COMMENT |
| LOW | util/compression/go126flate/deflate.go | 21 | COMMENT | |
| LOW | util/compression/go126flate/deflate.go | 661 | // a very fast compression for all types of input, but sacrificing considerable | COMMENT |
| LOW | util/compression/go126flate/deflate.go | 701 | // A Writer takes data written to it and writes the compressed | COMMENT |
| LOW | util/compression/go126flate/doc.go | 1 | // Copyright 2009 The Go Authors. All rights reserved. | COMMENT |
| LOW | util/compression/go126flate/deflatefast.go | 101 | // scanned (or skipped), look at every third byte, etc.. When a match | COMMENT |
| LOW | util/compression/go126flate/deflatefast.go | 141 | dst = emitLiteral(dst, src[nextEmit:s]) | COMMENT |
| LOW | util/compression/go126flate/huffman_bit_writer.go | 181 | n++ | COMMENT |
| LOW | util/compression/go126flate/huffman_code.go | 121 | // It is only called when list.length >= 3. | COMMENT |
| LOW | util/compression/go126flate/huffman_code.go | 141 | COMMENT | |
| LOW | util/db/boltutil/gate.go | 1 | package boltutil | COMMENT |
| LOW | util/rootless/specconv/specconv_linux.go | 1 | package specconv | COMMENT |
| LOW | util/windows/util_windows.go | 61 | // The equivalent in Windows of /etc/passwd and /etc/group is a registry hive called SAM which can be found | COMMENT |
| LOW | util/overlay/overlay_linux.go | 121 | return errors.Wrapf(err, "failed to record upperdir changes") | COMMENT |
| LOW | util/testutil/dockerd/client/client.go | 21 | // | COMMENT |
| LOW | util/testutil/dockerd/client/client.go | 61 | // client used to send and receive http requests. | COMMENT |
| LOW | util/testutil/dockerd/client/client.go | 81 | // in the client. The client (and by extension API client) can be made to send | COMMENT |
| LOW | util/purl/image.go | 81 | } | COMMENT |
| LOW | source/git/bundle.go | 21 | digest "github.com/opencontainers/go-digest" | COMMENT |
| LOW | source/git/bundle.go | 41 | bundleFallbackRef = "refs/heads/main" | COMMENT |
| LOW | source/git/bundle.go | 161 | // the same staging dir on subsequent calls for the lifetime of gs. | COMMENT |
| LOW | source/git/source.go | 1001 | // commit as the ref directly. validateBundleAttrs guarantees | COMMENT |
| LOW | solver/cachemiss_stale_dep_test.go | 1 | package solver | COMMENT |
| LOW | solver/cachemiss_stale_dep_test.go | 21 | // keys to edgeState.keys at completion). Both base and step are saved. A2 then | COMMENT |
| LOW | solver/cachemiss_stale_dep_test.go | 181 | // Control: with the base recreated fresh, A2 probes the | COMMENT |
| LOW | solver/cachemiss_stale_dep_test.go | 201 | execs, result := run(t, scenario{holdBaseAlive: true, sameStepVertex: true, warmBase: true}) | COMMENT |
| LOW | solver/cachemiss_stale_dep_test.go | 241 | // keys -- but it must NOT advertise them in edgeState.keys, or step would | COMMENT |
| LOW | solver/types.go | 221 | // For example, in LLB this digest is a manifest digest for OCI images, or | COMMENT |
| LOW | solver/pb/ops.pb.go | 281 | // Op represents a vertex of the LLB DAG. | COMMENT |
| LOW | solver/llbsolver/metrics.go | 81 | enabled: true, | COMMENT |
| LOW | solver/llbsolver/ops/exec.go | 321 | // - A "snapshot" contains "foo/a.txt" and "bar/b.txt" | COMMENT |
| LOW | docs/buildkitd.toml.md | 61 | # specification, please refer to https://github.com/cncf-tags/container-device-interface/blob/main/SPEC.md#cdi-json-sp | COMMENT |
| LOW | docs/buildkitd.toml.md | 101 | platforms = [ "linux/amd64", "linux/arm64" ] | COMMENT |
| LOW | docs/buildkitd.toml.md | 161 | address = "/run/containerd/containerd.sock" | COMMENT |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | frontend/dockerfile/docs/reference.md | 2249 | # Note: I've written this using sh so it works in the busybox container too | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | util/testutil/dockerd/client/client.go | 45 | // DefaultVersion is the pinned version of the docker API we utilize. | COMMENT |
| MEDIUM | client/llb/source.go | 377 | // Formats that utilize SSH may need to supply credentials as a [GitOption]. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/dockerfile/dockerfile_check_test.go | 943 | LABEL org.opencontainers.image.authors="me@example.org" | CODE |
| LOW | frontend/dockerfile/docs/reference.md | 1301 | ENV MY_NAME="John Doe" | CODE |
| LOW | frontend/dockerfile/docs/reference.md | 1311 | ENV MY_NAME="John Doe" MY_DOG=Rex\ The\ Dog \ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/dockerfile/builder/build.go | 32 | // Don't forget to update frontend documentation if you add | COMMENT |
| LOW | frontend/dockerui/config.go | 53 | // Don't forget to update frontend documentation if you add | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/pinrace_6731_test.go | 121 | // Step 1: warmup, in its own c.Build (Job 1). The frontend evaluates | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | client/pinrace_6731_test.go | 121 | // Step 1: warmup, in its own c.Build (Job 1). The frontend evaluates | COMMENT |