AI Slop Code Risk Monitor

mongodb/mongo-go-driver

SlopCodeMonitor badge for mongodb/mongo-go-driver Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

The Official Golang driver for MongoDB

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for mongodb/mongo-go-driver, a Go project with 8,540 GitHub stars. SynthScan examined 221,877 lines of code across 722 source files, recording 296 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
8.5K
Stars
Go
Language
221.9K
Lines of Code
722
Files
296
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 6.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 6.8/100 · LOW

Which changes need focused human review? 296 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 0MEDIUM 8LOW 288

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 296 distinct pattern matches across 10 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 Block259 hits · 259 pts
SeverityFileLineSnippetContext
LOWbson/raw_value.go121// String implements the fmt.String interface. This method will return values in extended JSONCOMMENT
LOWbson/marshal.go21}COMMENT
LOWbson/marshal.go61 // the same memory cost. To obtain this property when the stored typeCOMMENT
LOWbson/marshal.go101 // the same memory cost. To obtain this property when the stored typeCOMMENT
LOWbson/encoder.go101// NilByteSliceAsEmpty causes the Encoder to marshal nil Go byte slices as empty BSON binary valuesCOMMENT
LOWbson/mgoregistry.go101}COMMENT
LOWbson/unmarshal.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWbson/unmarshal.go21// implement the ValueUnmarshaler interface instead.COMMENT
LOWbson/objectid.go101 var buf [24]byteCOMMENT
LOWbson/objectid.go141COMMENT
LOWbson/registry.go41// errNoTypeMapEntry is returned when there wasn't a type available for the provided BSON type.COMMENT
LOWbson/registry.go61// 2. Interface encoders/decoders - These can be registered using the RegisterInterfaceEncoder andCOMMENT
LOWbson/registry.go121// RegisterTypeDecoder registers the provided ValueDecoder for the provided type.COMMENT
LOWbson/registry.go141//COMMENT
LOWbson/registry.go221// reg.RegisterTypeMapEntry(TypeEmbeddedDocument, reflect.TypeOf(bson.Raw{}))COMMENT
LOWbson/registry.go301// 2. A decoder registered using RegisterInterfaceDecoder for an interface implemented by the type or byCOMMENT
LOWbson/struct_tag_parser.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWbson/struct_tag_parser.go21// The properties are defined below:COMMENT
LOWbson/struct_tag_parser.go41 MinSize boolCOMMENT
LOWbson/struct_tag_parser.go61// A boolCOMMENT
LOWbson/writer.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWbson/doc.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWbson/doc.go21//COMMENT
LOWbson/doc.go41// 15. BSON 128-bit decimal unmarshals to an bson.Decimal128.COMMENT
LOWbson/doc.go61// # StructsCOMMENT
LOWbson/doc.go81// field, followed by a comma-separated list of options. The name may be omitted in order to specify options withoutCOMMENT
LOWbson/doc.go101// 4. inline: If the inline struct tag is specified for a struct or map field, the field will be "flattened" whenCOMMENT
LOWbson/doc.go121// if err != nil { return err }COMMENT
LOWbson/streaming_byte_src.go1// Copyright (C) MongoDB, Inc. 2025-present.COMMENT
LOWbson/extjson_tables.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWbson/mgocompat/doc.go1// Copyright (C) MongoDB, Inc. 2022-present.COMMENT
LOWbson/mgocompat/doc.go21// 2) Registry does not have special handling for marshaling array ops ("$in", "$nin", "$all").COMMENT
LOWbson/mgocompat/doc.go41//COMMENT
LOW.evergreen/run-mongodb-aws-ecs-test.sh21COMMENT
LOW.evergreen/config.yml1########################################COMMENT
LOWext/awsauth/doc.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWext/awsauth/doc.go21// adapts to the driver's options.AWSCredentialsProvider interface structurally:COMMENT
LOWext/awsauth/doc.go41// (https://go.dev/ref/mod#minimal-version-selection) means an applicationCOMMENT
LOWetc/setup-cse-dev.sh1#!/usr/bin/env bashCOMMENT
LOWetc/setup-cse-dev.sh41PKG_CONFIG="$(pwd)/etc/libmongocrypt-pkg-config.sh"COMMENT
LOWetc/libmongocrypt-pkg-config.sh1#!/bin/shCOMMENT
LOWetc/gen-ec-certs/gen-ec-certs.sh21# Generate Server certificate ... beginCOMMENT
LOWinternal/cmd/testsfp/main.go1// Copyright (C) MongoDB, Inc. 2026-present.COMMENT
LOWinternal/ptrutil/int64.go1// Copyright (C) MongoDB, Inc. 2023-present.COMMENT
LOWinternal/randutil/jitter.go1// Copyright (C) MongoDB, Inc. 2022-present.COMMENT
LOWinternal/logger/logger.go101 }COMMENT
LOWinternal/logger/level.go1// Copyright (C) MongoDB, Inc. 2023-present.COMMENT
LOWinternal/test/awsauth/mongodb_aws_prose_test.go21)COMMENT
LOWinternal/test/awsauth/mongodb_aws_prose_test.go201// ---------------------------------------------------------------------------COMMENT
LOWinternal/test/awsauth/mongodb_aws_prose_test.go221}COMMENT
LOWinternal/test/awsauth/mongodb_aws_prose_test.go241 runScenarioTests(t, rawURI, credsFromURI(t, rawURI))COMMENT
LOWinternal/test/awsauth/mongodb_aws_prose_test.go261// Sample URIs both with and without optional session tokens set are shownCOMMENT
LOWinternal/test/prose/doc.go1// Copyright (C) MongoDB, Inc. 2026-present.COMMENT
LOWinternal/integration/handshake_test.go1221 // metadata value to make the tests more reliable and preventCOMMENT
LOWinternal/integration/sdam_prose_test.go41 heartbeatIntervalClientOpts := options.Client().COMMENT
LOW…nal/integration/initial_dns_seedlist_discovery_test.go221// Because the Go driver tests can be run either against a server with SSL enabled or without, aCOMMENT
LOWinternal/integration/clam_prose_test.go161COMMENT
LOWinternal/integration/clam_prose_test.go221 mt := mtest.New(t, mtest.NewOptions().CreateClient(false))COMMENT
LOWinternal/integration/main.go1// Copyright (C) MongoDB, Inc. 2017-present.COMMENT
LOWinternal/integration/mtest/mongotest.go501 }COMMENT
199 more matches not shown…
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM.evergreen/config.yml44 # Define an alias for the task runner script.COMMENT
MEDIUMetc/profile-test.sh5# Create a temporary file to store the profile or trace data. Trap the exitCOMMENT
MEDIUMetc/run-oidc-remote-test.sh20 # Define the command to run on the azure VM.COMMENT
MEDIUMetc/run-oidc-remote-test.sh28 # Define the command to run on the gcp VM.COMMENT
MEDIUMetc/run-fuzz.sh32 # Create a set of directories that are already in the subdirectories testdata/fuzz/$fuzzer corpus. ThisCOMMENT
MEDIUMetc/run-fuzz.sh55 # Create the directory if it doesn't exist.COMMENT
Fake / Example Data13 hits · 13 pts
SeverityFileLineSnippetContext
LOWbson/testdata/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc hendrerit nibh eu lorem scelerisque iaculis. Mauris tincidCODE
LOWbson/testdata/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc hendrerit nibh eu lorem scelerisque iaculis. Mauris tincidCODE
LOW…ernal/integration/client_side_encryption_prose_test.go361 Username: "fake-user",CODE
LOWx/mongo/driver/compression_test.go33 payload := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt")CODE
LOWx/mongo/driver/compression_test.go33 payload := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt")CODE
LOWx/mongo/driver/compression_test.go117 payload := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit")CODE
LOWx/mongo/driver/compression_test.go117 payload := []byte("Lorem ipsum dolor sit amet, consectetur adipiscing elit")CODE
LOWx/mongo/driver/batches_test.go22 []byte("Lorem ipsum dolor sit amet"),CODE
LOWx/mongo/driver/batches_test.go22 []byte("Lorem ipsum dolor sit amet"),CODE
LOWx/mongo/driver/batches_test.go52 dst = append(dst, "Lorem ipsum dolor sit amet"...)CODE
LOWx/mongo/driver/batches_test.go52 dst = append(dst, "Lorem ipsum dolor sit amet"...)CODE
LOWx/mongo/driver/batches_test.go71 dst = bsoncore.AppendDocumentElement(dst, "0", []byte("Lorem ipsum dolor sit amet"))CODE
LOWx/mongo/driver/batches_test.go71 dst = bsoncore.AppendDocumentElement(dst, "0", []byte("Lorem ipsum dolor sit amet"))CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWbson/raw_value.go139// NOTE: This method is called StringValue to avoid a collision with the String method whichCOMMENT
LOWinternal/docexamples/examples.go1985 // Step 1: Define the callback that specifies the sequence of operations to perform inside the transaction.COMMENT
LOWinternal/docexamples/examples.go1999 // Step 2: Start a session and run the callback using WithTransaction.COMMENT
LOWx/bsonx/bsoncore/value.go469// NOTE: This method is called StringValue to avoid a collision with the String method whichCOMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWbson/primitive.go197// Example usage:COMMENT
LOWbson/primitive.go269// Example usage:COMMENT
LOWbson/primitive.go284// Example usage:COMMENT
LOWmongo/mongo.go37// Example usage:COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWetc/check_license.sh14 # Check if first 24 bytes match first 24 bytes of copyright notice.COMMENT
LOWetc/check_license.sh24 # Check if first 14 bytes matches the prefix "// Copied from"COMMENT
LOWetc/run-fuzz.sh46 # Check if any new corpus files were generated for the fuzzer. If there are new corpus files, move themCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWexamples/custom_dns/custom_dns.go27 // TODO: Handle error.COMMENT
LOWexamples/custom_dns/custom_dns.go72 // TODO: Handle error.COMMENT
LOWexamples/custom_dns/custom_dns.go77 // TODO: Handle error.COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMinternal/logger/logger.go111// It's worth noting that many structured logs defined by DBX-wideCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinternal/docexamples/examples.go1985 // Step 1: Define the callback that specifies the sequence of operations to perform inside the transaction.COMMENT
LOWinternal/docexamples/examples.go1999 // Step 2: Start a session and run the callback using WithTransaction.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMx/mongo/driver/topology/pool_test.go1234 // be made robust without replacing time.Sleep with explicit synchronization,COMMENT