This report summarizes scanner evidence for docker/buildx. SynthScan examined 101,267 lines of code across 436 source files, recording 40 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.4 (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? 40 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 40 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 40 distinct pattern matches across 5 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 | util/confutil/container.go | 61 | // The following BuildKit config: | COMMENT |
| LOW | util/otelutil/span.go | 21 | // for handle marshaling and unmarshalling. | COMMENT |
| LOW | util/otelutil/span.go | 41 | Links []tracesdk.Link | COMMENT |
| LOW | util/userfunc/public.go | 1 | package userfunc | COMMENT |
| LOW | util/userfunc/doc.go | 1 | // Package userfunc implements a HCL extension that allows user-defined | COMMENT |
| LOW | driver/kubernetes/context/load.go | 181 | return clientcmd.NewDefaultClientConfig(*apiConfig, &clientcmd.ConfigOverrides{}), nil | COMMENT |
| LOW | tests/version.go | 21 | COMMENT | |
| LOW | bake/hclparser/type_implied.go | 1 | // MIT License | COMMENT |
| LOW | bake/hclparser/type_implied.go | 21 | // SOFTWARE. | COMMENT |
| LOW | bake/hclparser/gohcl/encode.go | 21 | // fields tagged as "remain", any fields that decode attributes into either | COMMENT |
| LOW | bake/hclparser/gohcl/doc.go | 1 | // Copyright (c) HashiCorp, Inc. | COMMENT |
| LOW | bake/hclparser/gohcl/doc.go | 21 | // block indicates that the value is to populated from a block | COMMENT |
| LOW | bake/hclparser/gohcl/doc.go | 41 | // "label" fields are considered only in a struct used as the type of a field | COMMENT |
| LOW | bake/hclparser/gohcl/doc.go | 61 | // written with the configuration author as the target audience. The second | COMMENT |
| LOW | bake/hclparser/gohcl/decode.go | 321 | // DecodeExpression extracts the value of the given expression into the given | COMMENT |
| LOW | bake/hclparser/gohcl/encode_test.go | 61 | // service "web" { | COMMENT |
| LOW | commands/util.go | 21 | }() | COMMENT |
| LOW | commands/replay/build.go | 421 | // - platformFilter empty keeps the only subject when at most one subject | COMMENT |
| LOW | replay/snapshot_format.go | 21 | COMMENT | |
| LOW | replay/snapshot_format.go | 61 | // image-manifest document plus its serialized bytes and descriptor) from the | COMMENT |
| LOW | replay/snapshot_format.go | 101 | // into the snapshot content store by the caller. | COMMENT |
| LOW | replay/build.go | 201 | } | COMMENT |
| LOW | replay/materials.go | 21 | COMMENT | |
| LOW | replay/materials.go | 41 | } | COMMENT |
| LOW | replay/materials.go | 181 | return r != nil && (len(r.stores) > 0 || len(r.overrides) > 0) | COMMENT |
| LOW | replay/materials.go | 201 | COMMENT | |
| LOW | replay/materials.go | 221 | // and not reachable via the sentinel produce MaterialNotFoundError. The | COMMENT |
| LOW | replay/materials.go | 421 | // 1. Scanning every per-platform snapshot index's materials-manifest | COMMENT |
| LOW | replay/subject.go | 41 | // reads the exported fields, but the kind guides error messages. | COMMENT |
| LOW | replay/subject.go | 61 | Descriptor ocispecs.Descriptor | COMMENT |
| LOW | replay/subject.go | 201 | } | COMMENT |
| LOW | replay/subject.go | 401 | return out | COMMENT |
| LOW | replay/snapshot.go | 41 | // withMediaTypeKeyPrefix registers ref-key prefixes for non-standard media | COMMENT |
| LOW | replay/snapshot.go | 61 | // (descriptor, provider) pair. Required when IncludeMaterials is true. | COMMENT |
| LOW | dap/thread.go | 221 | entrypoint.parent = t.determineParent(op) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cmd/buildx/main.go | 34 | // Use custom grpc codec to utilize vtprotobuf | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bake/compose.go | 424 | // don't forget to update documentation if you add a new field: | COMMENT |
| LOW | commands/bake.go | 233 | // don't forget to update documentation if you add a new | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/gitutil/path.go | 14 | // On WSL2 we need to check if the current working directory is mounted on | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/otelutil/span.go | 123 | TraceState string // TODO: implement, currently dropped | CODE |