The Go language implementation of gRPC. HTTP/2 based RPC
This report summarizes scanner evidence for grpc/grpc-go, a Go project with 23,096 GitHub stars. SynthScan examined 359,134 lines of code across 1217 source files, recording 682 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.1 (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? 669 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 13 finding(s).
Which changes need focused human review? 682 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 682 distinct pattern matches across 8 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 | clientconn_provider.go | 21 | import ( | COMMENT |
| LOW | clientconn_provider.go | 61 | // A direct comparison of function values is not allowed in Go, so we use | COMMENT |
| LOW | server.go | 301 | // StaticStreamWindowSize returns a ServerOption to set the initial stream | COMMENT |
| LOW | server.go | 321 | // window size to the value provided and disables dynamic flow control. | COMMENT |
| LOW | server.go | 361 | // | COMMENT |
| LOW | server.go | 381 | // more details. Also see the documentation on RegisterCodec and | COMMENT |
| LOW | server.go | 401 | COMMENT | |
| LOW | server.go | 581 | } | COMMENT |
| LOW | server.go | 621 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a | COMMENT |
| LOW | server.go | 641 | // a sane default. Preliminary experiments suggest that a value equal to the | COMMENT |
| LOW | server.go | 761 | s.events.Errorf(format, a...) | COMMENT |
| LOW | server.go | 1121 | // connection. When using the Go standard library's server, | COMMENT |
| LOW | server.go | 1641 | } | COMMENT |
| LOW | server.go | 1661 | // ServerTransportStreamFromContext returns the ServerTransportStream saved in | COMMENT |
| LOW | server.go | 1821 | // SetHeader sets the header metadata to be sent from the server to the client. | COMMENT |
| LOW | server.go | 1881 | // The context provided must be the context passed to the server's handler. | COMMENT |
| LOW | dialoptions.go | 221 | // and any value smaller than that will be ignored. | COMMENT |
| LOW | dialoptions.go | 241 | o.copts.InitialWindowSize = s | COMMENT |
| LOW | dialoptions.go | 301 | // WithDecompressor returns a DialOption which sets a Decompressor to use for | COMMENT |
| LOW | dialoptions.go | 361 | COMMENT | |
| LOW | dialoptions.go | 381 | // | COMMENT |
| LOW | dialoptions.go | 421 | COMMENT | |
| LOW | dialoptions.go | 481 | // returned by f, gRPC checks the error's Temporary() method to decide if it | COMMENT |
| LOW | dialoptions.go | 541 | }) | COMMENT |
| LOW | dialoptions.go | 621 | }) | COMMENT |
| LOW | dialoptions.go | 661 | // service config, which will be used in cases where: | COMMENT |
| LOW | dialoptions.go | 761 | // | COMMENT |
| LOW | dialoptions.go | 781 | // | COMMENT |
| LOW | backoff.go | 41 | type BackoffConfig struct { | COMMENT |
| LOW | stream.go | 61 | // status package, or be one of the context errors. Otherwise, gRPC will use | COMMENT |
| LOW | stream.go | 81 | COMMENT | |
| LOW | stream.go | 101 | // is nil and the error is also nil, then the stream was terminated without | COMMENT |
| LOW | stream.go | 121 | // RPCs (StreamDesc.ClientStreams is false), a nil error is returned | COMMENT |
| LOW | stream.go | 141 | // RecvMsg blocks until it receives a message into m or the stream is | COMMENT |
| LOW | stream.go | 221 | if err == nil { | COMMENT |
| LOW | stream.go | 641 | return status.Error(codes.Internal, err.Error()) | COMMENT |
| LOW | stream.go | 721 | COMMENT | |
| LOW | stream.go | 1401 | // | COMMENT |
| LOW | stream.go | 1721 | // this purpose. | COMMENT |
| LOW | stream.go | 1741 | // | COMMENT |
| LOW | clientconn.go | 61 | minConnectTimeout = 20 * time.Second | COMMENT |
| LOW | clientconn.go | 81 | // PickFirstBalancerName is the name of the pick_first balancer. | COMMENT |
| LOW | clientconn.go | 161 | // | COMMENT |
| LOW | clientconn.go | 261 | // | COMMENT |
| LOW | clientconn.go | 461 | <-bWrapper.serializer.Done() | COMMENT |
| LOW | clientconn.go | 641 | // ClientConnInterface defines the functions clients need to perform unary and | COMMENT |
| LOW | clientconn.go | 721 | } | COMMENT |
| LOW | clientconn.go | 741 | cc.mu.Lock() | COMMENT |
| LOW | clientconn.go | 1741 | // We have to release the lock before the call to GracefulClose/Close here | COMMENT |
| LOW | clientconn.go | 1961 | // Determine channel authority. The order of precedence is as follows: | COMMENT |
| LOW | stream_interfaces.go | 21 | // ServerStreamingClient represents the client side of a server-streaming (one | COMMENT |
| LOW | stream_interfaces.go | 41 | // | COMMENT |
| LOW | stream_interfaces.go | 61 | type ClientStreamingClient[Req any, Res any] interface { | COMMENT |
| LOW | stream_interfaces.go | 81 | // ClientStreamingServer represents the server side of a client-streaming (many | COMMENT |
| LOW | stream_interfaces.go | 101 | // calling SendAndClose. | COMMENT |
| LOW | stream_interfaces.go | 121 | COMMENT | |
| LOW | stream_interfaces.go | 141 | // an error from the status package, or use nil to indicate an OK status code. | COMMENT |
| LOW | interceptor.go | 21 | import ( | COMMENT |
| LOW | interceptor.go | 41 | // | COMMENT |
| LOW | interceptor.go | 61 | // StreamClientInterceptor may return a custom ClientStream to intercept all I/O | COMMENT |
| 593 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 82 | // ┌─────────────────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 84 | // └────────┬────────┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 86 | // ┌────────▼───────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 88 | // └────────┬───────┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 92 | // └┬──────┬┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 94 | // ┌──────────▼─┐ ┌─▼──────────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 96 | // └────────────┘ └────────────┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 189 | // ┌────────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 191 | // └┬──────┬┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 193 | // ┌──────────▼─┐ ┌─▼──────────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 195 | // └──────┬─────┘ └─────┬──────┘ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 197 | // ┌──────▼─────┐ ┌─────▼──────┐ | COMMENT |
| MEDIUM⚡ | internal/xds/balancer/cdsbalancer/configbuilder.go | 199 | // └────────────┘ └────────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | testdata/x509/create.sh | 3 | # Create the server CA certs. | COMMENT |
| MEDIUM | testdata/x509/create.sh | 15 | # Create the client CA certs. | COMMENT |
| MEDIUM | examples/features/advancedtls/generate.sh | 13 | # Create the CA private key and certificate | COMMENT |
| MEDIUM | examples/data/x509/create.sh | 3 | # Create the server CA certs. | COMMENT |
| MEDIUM | examples/data/x509/create.sh | 15 | # Create the client CA certs. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | internal/leakcheck/leakcheck_test.go | 144 | // We utilize the internal delegate directly to simulate stats.RegisterAsyncReporter behavior. | COMMENT |
| MEDIUM | …rnal/resolver/delegatingresolver/delegatingresolver.go | 48 | // delegating these tasks to separate child resolvers. Essentially, it acts as | COMMENT |
| MEDIUM | credentials/sts/sts.go | 387 | // token issued. It provides the client with information about how to utilize the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | stream.go | 716 | // place where we need to check if the attempt is nil. | COMMENT |
| LOW⚡ | gcp/observability/config.go | 38 | // Step 1: Check ENV var | COMMENT |
| LOW⚡ | gcp/observability/config.go | 43 | // Step 2: Check default credential | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | gcp/observability/config.go | 38 | // Step 1: Check ENV var | COMMENT |
| LOW⚡ | gcp/observability/config.go | 43 | // Step 2: Check default credential | COMMENT |
| LOW | credentials/jwt/token_file_call_creds.go | 150 | // NOTE: This method (and its callers) do not queue up a token refresh/retry if | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | balancer/rls/balancer_test.go | 1476 | // Push an updated service config. As mentioned earlier, the previous config | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/install-protoc.sh | 66 | # Check if the protoc binary with the right version is already installed. | COMMENT |