AI Slop Code RIsk Monitor

m3db/m3

M3 monorepo - Distributed TSDB, Aggregator and Query Engine, Prometheus Sidecar, Graphite Compatible, Metrics Platform

4.2 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for m3db/m3, a Go project with 4,904 GitHub stars. SynthScan examined 787,545 lines of code across 3247 source files, recording 3112 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 4.2 (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.

4.2
Adjusted Signal
4.2
Raw Pattern Score
100%
Time Factor
2026-10-01
Last Push
4.9K
Stars
Go
Language
787.5K
Lines of Code
3.2K
Files
3.1K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 0.6/100 · LOW

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

PR Review Velocity Impact 18.6/100 · LOW

Which changes need focused human review? 3112 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 8HIGH 1MEDIUM 29LOW 3074

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 3112 distinct pattern matches across 13 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 Block3047 hits · 3047 pts
SeverityFileLineSnippetContext
LOWexamples/dbnode/metrics_client/main.go1// Copyright (c) 2020 Uber Technologies, Inc.COMMENT
LOWexamples/dbnode/proto_client/main.go1// Copyright (c) 2020 Uber Technologies, Inc.COMMENT
LOWscripts/comparator/compare.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOWscripts/comparator/grafana/generate_dash.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOW…ripts/comparator/utils/compare_utilities_regression.go1// Copyright (c) 2020 Uber Technologies, Inc.COMMENT
LOWscripts/comparator/utils/compare_utilities.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOWscripts/comparator/utils/compare_utilities_grafana.go1// Copyright (c) 2020 Uber Technologies, Inc.COMMENT
LOWscripts/md5/md5.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOWscripts/vagrant/provision/gimme.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/vagrant/provision/gimme.sh21#+ --force-known-update - when used with --known, ignores the cache and updatesCOMMENT
LOWscripts/vagrant/provision/gimme.sh481 _env "${src_dir}" | tee "${src_env}" || return 1COMMENT
LOW…ipts/docker-integration-tests/query_fanout/restrict.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOWscripts/docker-integration-tests/prometheus/test.sh561 ATTEMPTS=5 TIMEOUT=2 MAX_TIMEOUT=4 retry_with_backoff \COMMENT
LOW.buildkite/pipeline.yml61# disabling steps until it is fixed. ISSUE: https://github.com/m3db/m3/issues/4274COMMENT
LOW.buildkite/image-release-pipeline.yml1steps:COMMENT
LOW.buildkite/image-release-pipeline.yml21# password-env: QUAY_M3DB_TOKENCOMMENT
LOWsite/config/_default/config.toml121 # Disable search function. It will hide search barCOMMENT
LOWsite/config/production/config.toml101[params]COMMENT
LOWsite/content/operational_guide/resource_limits.md81 # queries searching time series by dimensions.COMMENT
LOWsite/content/operational_guide/resource_limits.md101 # lookback period the global count is reset to zero and when the limit COMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml1# Include this field if you want to enable an embedded M3 Coordinator instanceCOMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml41 # Metrics scopeCOMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml61 # Upper bound of the bucketCOMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml81 listenAddress: <url>COMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml181 # Number of concurrent workers performing migrationCOMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml361 # Defaults = trueCOMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml421 rpc_metrics: <bool>COMMENT
LOWsite/content/includes/m3dbnode/annotated_config.yaml541 maxOutstandingRepairedBytes: <int>COMMENT
LOWsite/content/includes/m3query/annotated_config.yaml1# The server listen addressCOMMENT
LOWsite/content/includes/m3query/annotated_config.yaml201 all: <bool>COMMENT
LOWsite/content/includes/m3query/annotated_config.yaml261 maxRetries: <int>COMMENT
LOWsite/content/includes/m3query/annotated_config.yaml321 # Array of Prometheus remote write compatible endpoints.COMMENT
LOWsite/content/includes/m3query/annotated_config.yaml441 watermark:COMMENT
LOWkube/sysctl-daemonset.yaml1# This manifest provides a daemonset that will ensure the host's sysctls are setCOMMENT
LOWsrc/metrics/aggregation/id_compress_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/id.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/type_string.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/type.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/type_config_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/types_options_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/id_test.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/type_config.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/types_pool_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/id_compress.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/type_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/types_pool.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/aggregation/types_options.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/filter_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/tags_filter_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/filter_benchmark_test.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/filter.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/tags_filter.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/filters/mock_filter.go1// Copyright (c) 2017 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/pipeline/type.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/pipeline/optype_string.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/pipeline/type_test.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/pipeline/applied/type.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/pipeline/applied/type_test.go1// Copyright (c) 2018 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/carbon/parser_test.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
LOWsrc/metrics/carbon/parser_benchmark_test.go1// Copyright (c) 2019 Uber Technologies, Inc.COMMENT
2987 more matches not shown…
Hallucination Indicators8 hits · 120 pts
SeverityFileLineSnippetContext
CRITICAL⚡src/dbnode/storage/namespace.go442 n.metrics.status.index.numDocs.Update(float64(n.statsLastTick.index.numDocs))CODE
CRITICAL⚡src/dbnode/storage/namespace.go443 n.metrics.status.index.numBlocks.Update(float64(n.statsLastTick.index.numBlocks))CODE
CRITICAL⚡src/dbnode/storage/namespace.go444 n.metrics.status.index.numSegments.Update(float64(n.statsLastTick.index.numSegments))CODE
CRITICAL⚡src/dbnode/storage/namespace.go691 n.metrics.tick.index.numDocs.Update(float64(indexTickResults.NumTotalDocs))CODE
CRITICAL⚡src/dbnode/storage/namespace.go692 n.metrics.tick.index.numBlocks.Update(float64(indexTickResults.NumBlocks))CODE
CRITICAL⚡src/dbnode/storage/namespace.go693 n.metrics.tick.index.numSegments.Update(float64(indexTickResults.NumSegments))CODE
CRITICAL⚡src/dbnode/storage/namespace.go694 n.metrics.tick.index.numBlocksEvicted.Inc(indexTickResults.NumBlocksEvicted)CODE
CRITICAL⚡src/dbnode/storage/namespace.go695 n.metrics.tick.index.numBlocksSealed.Inc(indexTickResults.NumBlocksSealed)CODE
Decorative Section Separators20 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMkube/terraform/examples/gcp/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMkube/terraform/examples/gcp/variables.tf4# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡src/m3em/cluster/types.go37// ╔══════════════════╗COMMENT
MEDIUM⚡src/m3em/cluster/types.go39// ║ Uninitialized ║────────────Setup()────┐COMMENT
MEDIUM⚡src/m3em/cluster/types.go41// ╚══════════════════╝ │COMMENT
MEDIUM⚡src/m3em/cluster/types.go46// ├────────────────────────┐ │COMMENT
MEDIUM⚡src/m3em/cluster/types.go48// ┌───────┘ │ │COMMENT
MEDIUM⚡src/m3em/cluster/types.go50// ╔═════╩════════════╗◀────Start()─────╦═╩════════════════╗COMMENT
MEDIUM⚡src/m3em/cluster/types.go54// │ ╚══════════════════╝──────Stop()────▶╚══════════════════╝ │COMMENT
MEDIUM⚡src/m3em/node/types.go40// ┌──────────────────┐COMMENT
MEDIUM⚡src/m3em/node/types.go42// ┌Teardown()─────│ Error │COMMENT
MEDIUM⚡src/m3em/node/types.go44// │ └──────────────────┘COMMENT
MEDIUM⚡src/m3em/node/types.go48// ┌──────────────────┐ ┌───────────────-──┐COMMENT
MEDIUM⚡src/m3em/node/types.go50// │ Uninitialized ├────────────────────────▶│ Setup │◀─┐COMMENT
MEDIUM⚡src/m3em/node/types.go51// │ │◀───────────┐ │ │ │COMMENT
MEDIUM⚡src/m3em/node/types.go52// └──────────────────┘ Teardown()└────────────└──────────────────┘ │COMMENT
MEDIUM⚡src/m3em/node/types.go58// │ ┌─────────────┘ │COMMENT
MEDIUM⚡src/m3em/node/types.go63// │ ┌──────────────────┐ │COMMENT
MEDIUM⚡src/m3em/node/types.go65// └────────────────────│ Running │────────────Stop()COMMENT
MEDIUM⚡src/m3em/node/types.go67// └──────────────────┘COMMENT
AI Slop Vocabulary9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…ripts/development/m3_aggregator_local/debug_example.sh9# Check if delve is installedCOMMENT
MEDIUMsrc/dbnode/storage/namespace.go1407 // NB(r): Essentially if all are success, we don't need to flush, if anyCOMMENT
MEDIUMsrc/dbnode/storage/limits/permits/types.go57// Permits are the set of permits that individual codepaths will utilize.COMMENT
MEDIUMsrc/msg/producer/writer/message_writer.go889 // writers and wait for the first one to return. This way, we can utilize the connectionsCOMMENT
MEDIUMsrc/aggregator/aggregator/options.go327 // This is a temporary option to help with the seamless rollout of changing Add transforms to Reset transforms forCOMMENT
MEDIUMsrc/aggregator/aggregator/entry.go766 // resendEnabled is set on the rollup rule. Continuing to use untimed allows for a seamless transition sinceCOMMENT
MEDIUMsrc/query/models/matcher.go110// TODO: make this more robust, handle types other than MatchEqualCOMMENT
MEDIUMsrc/query/models/matcher.go138// TODO: make this more robust, handle types other than MatchEqualCOMMENT
MEDIUMsrc/query/storage/m3/cluster_resolver.go229 // Absolutely no complete aggregated namespaces, need to fanout to allCOMMENT
Structural Annotation Overuse8 hits · 12 pts
SeverityFileLineSnippetContext
LOWconfig/README.md1## WARNING: This documentation is not complete.COMMENT
LOWkube/sysctl-daemonset.yaml4# WARNING: This will run a PRIVILEGED ROOT container on your HOST that willCOMMENT
LOWsrc/metrics/README.md1## WARNING: This is Alpha software and not intended for use until a stable release.COMMENT
LOWsrc/cluster/README.md1## WARNING: This is Alpha software and not intended for use until a stable release.COMMENT
LOWsrc/cluster/placement/algo/subclustered_helper.go334 // Step 1: Identify over-weighted isolation groupsCOMMENT
LOWsrc/cluster/placement/algo/subclustered_helper.go346 // Step 2: Calculate target load for each instanceCOMMENT
LOW…c/dbnode/network/server/tchannelthrift/node/service.go1334 // Step 2: Read the results of the asynchronuous block readers.COMMENT
LOWsrc/query/README.md1## WARNING: This is Alpha software and not intended for use until a stable release.COMMENT
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/metrics/matcher/cache/cache.go282 // Therefore we need to check if the cache result is valid up to the endCOMMENT
LOWsrc/cluster/placement/algo/subclustered_helper.go334 // Step 1: Identify over-weighted isolation groupsCOMMENT
LOWsrc/cluster/placement/algo/subclustered_helper.go346 // Step 2: Calculate target load for each instanceCOMMENT
LOWsrc/dbnode/integration/disk_snapshot_test.go173 // NB(bodu): We need to check if a specific snapshot ID was deleted since snapshotting logic now changedCOMMENT
LOW…c/dbnode/network/server/tchannelthrift/node/service.go1334 // Step 2: Read the results of the asynchronuous block readers.COMMENT
LOWsrc/dbnode/persist/fs/files.go1033 // If this is the initial volume, then we need to check if files were written with the legacy file naming (i.e.COMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ripts/development/m3_aggregator_local/debug_example.sh9# Check if delve is installedCOMMENT
LOWsite/config/_default/config.toml124 # Set this to true to disable this behavior (some proxies don't handle well this optimization)COMMENT
LOWsite/config/_default/config.toml126 # Set this to true to disable copy-to-clipboard button for inline code.COMMENT
LOWsite/config/production/config.toml109 # Set this to true to disable this behavior (some proxies don't handle well this optimization)COMMENT
LOWsite/config/production/config.toml111 # Set this to true to disable copy-to-clipboard button for inline code.COMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/dbnode/storage/index/compaction/plan.go163 // now that we have the plan, we priortise the tasks as requested in the opts. (c)COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/dbnode/x/metrics/test_reporter.go132 // TODO: implementCOMMENT
LOWsrc/dbnode/x/metrics/test_reporter.go143 // TODO: implementCOMMENT
LOWsrc/query/graphite/native/builtin_functions.go363 // TODO: implement resetEndCOMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/ctl/ui/src/utils/index.js21export function formatTimestampMilliseconds(timestamp: number): string {CODE
LOWsrc/ctl/ui/src/hocs/promiseState.js25export function withPromiseStateChangeCallback(keys, fn) {CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/dbnode/persist/fs/retriever.go697// Don't forget to update the resetForReuse method when adding a new fieldCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/dbnode/client/circuitbreaker/doc.go41// Example usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/ctl/public/r2/v1/swagger/swagger-ui.js1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")CODE