The toolkit to pack, ship, store, and deliver container content
This report summarizes scanner evidence for distribution/distribution, a Go project with 10,669 GitHub stars. SynthScan examined 78,156 lines of code across 469 source files, recording 92 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.6 (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? 90 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 92 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 92 distinct pattern matches across 6 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 | registry.go | 21 | // GlobalScope represents the full namespace scope which contains | COMMENT |
| LOW | registry.go | 101 | // Manifests returns a reference to this repository's manifest service. | COMMENT |
| LOW | doc.go | 1 | // Package distribution will define the interfaces for the components of | COMMENT |
| LOW | blobs.go | 81 | Enumerate(ctx context.Context, ingester func(dgst digest.Digest) error) error | COMMENT |
| LOW | blobs.go | 121 | // BlobServer can serve blobs via http. | COMMENT |
| LOW | blobs.go | 141 | // or an error. | COMMENT |
| LOW | blobs.go | 181 | io.ReaderFrom | COMMENT |
| LOW | cmd/registry-api-descriptor-template/main.go | 1 | // registry-api-descriptor-template uses the APIDescriptor defined in the | COMMENT |
| LOW | configuration/configuration.go | 21 | // Configuration is a versioned registry configuration, intended to be provided by a yaml file, and | COMMENT |
| LOW | configuration/configuration.go | 161 | // receives a stop signal | COMMENT |
| LOW | configuration/configuration.go | 221 | // Enables H2C (HTTP/2 Cleartext). Enable to support HTTP/2 without needing to configure TLS | COMMENT |
| LOW | configuration/configuration.go | 721 | // to complete when pulling blobs from the remote registry. This timeout ensures | COMMENT |
| LOW | health/doc.go | 1 | // Package health provides a generic health checking framework. | COMMENT |
| LOW | health/doc.go | 21 | // | COMMENT |
| LOW | health/doc.go | 41 | // PeriodicChecks run on a certain schedule and asynchronously update the | COMMENT |
| LOW | health/doc.go | 61 | // ensuring some stability of the service when handling them. | COMMENT |
| LOW | health/doc.go | 81 | // endpoint always return an error: | COMMENT |
| LOW | health/doc.go | 101 | // if err != nil { | COMMENT |
| LOW | health/doc.go | 121 | // # touch /tmp/disable | COMMENT |
| LOW | internal/dcontext/trace.go | 21 | // The main benefit of this function is to post-process log messages or | COMMENT |
| LOW | internal/dcontext/doc.go | 1 | // Package dcontext provides several utilities for working with | COMMENT |
| LOW | internal/dcontext/doc.go | 21 | // any context.Context interface and returns the current logger from the | COMMENT |
| LOW | internal/dcontext/doc.go | 41 | // | COMMENT |
| LOW | internal/dcontext/doc.go | 61 | // INFO[0000] this log message has a version field http.request.id=unique id version=v2.0.0-alpha.2.m | COMMENT |
| LOW | internal/dcontext/doc.go | 81 | // | COMMENT |
| LOW | internal/client/transport/http_reader.go | 61 | // seekOffset allows Seek to override the offset. Seek changes | COMMENT |
| LOW | internal/client/auth/challenge/authchallenge.go | 21 | func init() { | COMMENT |
| LOW | internal/client/auth/challenge/authchallenge.go | 61 | } | COMMENT |
| LOW | version/version.sh | 1 | #!/bin/sh | COMMENT |
| LOW | version/get.go | 21 | // Revision returns the VCS (e.g. git) revision being used to build | COMMENT |
| LOW | digestset/deprecated.go | 21 | // Set is used to hold a unique set of digests which | COMMENT |
| LOW | digestset/deprecated.go | 41 | COMMENT | |
| LOW | registry/auth/auth.go | 1 | // Package auth defines a standard interface for request access controllers. | COMMENT |
| LOW | registry/auth/auth.go | 21 | // if ctx, err := accessController.Authorized(r, access); err != nil { | COMMENT |
| LOW | registry/auth/auth.go | 101 | // Authorized determines if the request is granted access. If one or more | COMMENT |
| LOW | registry/storage/paths.go | 21 | // pathFor maps paths based on "object names" and their ids. The "object | COMMENT |
| LOW | registry/storage/paths.go | 41 | // │ │ └── link | COMMENT |
| LOW | registry/storage/paths.go | 61 | // is just a directory of layers which are "linked" into a repository. A layer | COMMENT |
| LOW | registry/storage/paths.go | 81 | // | COMMENT |
| LOW | registry/storage/paths.go | 101 | // | COMMENT |
| LOW | registry/storage/paths.go | 361 | func (layersPathSpec) pathSpec() {} | COMMENT |
| LOW | registry/storage/filereader_test.go | 181 | // TODO(stevvooe): We need to cover error return types, driven by the | COMMENT |
| LOW | registry/storage/cache/redis/redis.go | 21 | // the layer, providing path, length and mediatype information. There is also | COMMENT |
| LOW | registry/storage/driver/fileinfo.go | 21 | IsDir() bool | COMMENT |
| LOW | registry/storage/driver/storagedriver.go | 61 | COMMENT | |
| LOW | registry/storage/driver/storagedriver.go | 101 | // RedirectURL returns a URL which the client of the request r may use | COMMENT |
| LOW | …try/storage/driver/middleware/cloudfront/middleware.go | 41 | var _ storagedriver.StorageDriver = &cloudFrontStorageMiddleware{} | COMMENT |
| LOW | registry/storage/driver/s3-aws/s3.go | 1 | // Package s3 provides a storagedriver.StorageDriver implementation to | COMMENT |
| LOW | registry/storage/driver/s3-aws/s3.go | 521 | } | COMMENT |
| LOW | registry/storage/driver/s3-aws/s3.go | 1221 | // # Examples | COMMENT |
| LOW | registry/storage/driver/s3-aws/s3_v2_signer.go | 1 | package s3 | COMMENT |
| LOW | registry/storage/driver/azure/azure.go | 721 | return n, nil | COMMENT |
| LOW | registry/storage/driver/testsuites/testsuites.go | 1041 | wg.Wait() | COMMENT |
| LOW | registry/storage/driver/testsuites/testsuites.go | 1061 | // read, err := suite.StorageDriver.Writer(suite.ctx, filename, offset, bytes.NewReader(contents)) | COMMENT |
| LOW | registry/storage/driver/testsuites/testsuites.go | 1081 | // } else { | COMMENT |
| LOW | registry/storage/driver/base/base.go | 1 | // Package base provides a base implementation of the storage driver that can | COMMENT |
| LOW | registry/storage/driver/base/base.go | 21 | // driver implements the actual logic. | COMMENT |
| LOW | registry/storage/driver/gcs/gcs.go | 1 | // Package gcs provides a storagedriver.StorageDriver implementation to | COMMENT |
| LOW | registry/api/v2/errors_deprecated.go | 1 | package v2 | COMMENT |
| LOW | registry/api/v2/errors_deprecated.go | 21 | ErrorCodeRangeInvalid = errcode.ErrorCodeRangeInvalid | COMMENT |
| 11 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/dcontext/http.go | 182 | // We need to check if that's intentional (could be a bug). | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 88 | // Step 1: Put the blob. This also populates the cache. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 97 | // Step 2: Verify the cached statter reports the blob exists. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 103 | // Step 3: Simulate GC — delete blob data from backend. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 109 | // Step 4: Confirm backend has no blob. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 114 | // Step 5: Confirm cached statter STILL reports blob exists (stale cache). | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 123 | // Step 6: Re-put should succeed because Put bypasses the stale cache | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 133 | // Step 7: Verify the content is actually readable. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | registry/storage/blobstore_test.go | 88 | // Step 1: Put the blob. This also populates the cache. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 97 | // Step 2: Verify the cached statter reports the blob exists. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 103 | // Step 3: Simulate GC — delete blob data from backend. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 109 | // Step 4: Confirm backend has no blob. | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 114 | // Step 5: Confirm cached statter STILL reports blob exists (stale cache). | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 123 | // Step 6: Re-put should succeed because Put bypasses the stale cache | COMMENT |
| LOW⚡ | registry/storage/blobstore_test.go | 133 | // Step 7: Verify the content is actually readable. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | releases/v3.1.0.toml | 227 | * [`4d613f77`](https://github.com/distribution/distribution/commit/4d613f771f4565f0ab2eaaf14ce34037ab033e2c) feat(regi | COMMENT |
| MEDIUM | releases/v3.1.0.toml | 228 | * [`edde36cd`](https://github.com/distribution/distribution/commit/edde36cd9e6818491399602ab6f9374bba3e4416) feat(regi | COMMENT |
| MEDIUM | registry/registry.go | 58 | // a list of default ciphersuites to utilize | COMMENT |
| MEDIUM | registry/storage/driver/inmemory/mfs.go | 114 | // directory. Essentially, this is open or create. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …/hugo-geekdoc/static/js/mermaid-16393d09.bundle.min.js | 2 | (()=>{var t,e,r={9119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstC | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/hugo-geekdoc/static/js/mermaid-16393d09.bundle.min.js | 2 | (()=>{var t,e,r={9119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstC | CODE |