AI Slop Code Risk Monitor

thanos-io/thanos

SlopCodeMonitor badge for thanos-io/thanos Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for thanos-io/thanos, a Go project with 14,261 GitHub stars. SynthScan examined 298,327 lines of code across 927 source files, recording 160 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.1
Adjusted Signal
1.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
14.3K
Stars
Go
Language
298.3K
Lines of Code
927
Files
160
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 1.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 3.6/100 · LOW

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

PR Review Velocity Impact 4.9/100 · LOW

Which changes need focused human review? 160 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 1MEDIUM 67LOW 92

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 160 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.

Decorative Section Separators64 hits · 216 pts
SeverityFileLineSnippetContext
MEDIUM⚡internal/cortex/util/services/service.go47// ┌────────────────────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡internal/cortex/util/services/service.go50// ┌─────┐ ┌──────────┐ ┌─────────┐ ┌──────────┐ ┌────────────┐COMMENT
MEDIUM⚡internal/cortex/util/services/service.go51// │ New │─────▶│ Starting │─────▶│ Running │────▶│ Stopping │───┬─▶│ Terminated │COMMENT
MEDIUM⚡internal/cortex/util/services/service.go52// └─────┘ └──────────┘ └─────────┘ └──────────┘ │ └────────────┘COMMENT
MEDIUM⚡internal/cortex/util/services/service.go55// │ │ ┌────────┐COMMENT
MEDIUM⚡internal/cortex/util/services/service.go56// └──────────────────────────────────────────┴──▶│ Failed │COMMENT
MEDIUM⚡internal/cortex/util/services/service.go57// └────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go138 // ┌──────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go142 // ├──────────────┼──────────────────────────────────────────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go144 // ├──────────────┼──────────────────────────────────────────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go146 // ├──────────────┼──────────────────────────────────────────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go148 // └──────────────┴──────────────────────────────────────────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go188 // ┌───────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go190 // ┌──────────────┐ │ Store 1 │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go192 // ├──────────────┼ └───────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go194 // ├──────────────┼ ┌───────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go196 // └──────────────┴ │ Store 2 │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go198 // └───────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go235 // ┌────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go236 // ┌───────────────────────────────────────────────┐ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go238 // └───────────────────────────────────────────────┘ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go239 // ├────────────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go241 // └────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go243 // ┌────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go244 // ┌───────────────────────────────────────────────┐ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go246 // └───────────────────────────────────────────────┘ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go247 // ├────────────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go249 // └────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go251 // ┌────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go252 // ┌───────────────────────────────────────────────┐ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go254 // └───────────────────────────────────────────────┘ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go255 // ├────────────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go257 // └────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go301 // ┌──────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go303 // │ SeaweedFS │ ┌───────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go305 // ├──────────────┼──────────────────────────────────────────────────┐ │ Store 1 │◄──────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go307 // ├──────────────┼──────────────────────────────────────────────────┘ └───────────┘ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go309 // ├──────────────┼──────────────────────────────────────────────────┐ ┌───────────┐ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go311 // └──────────────┴──────────────────────────────────────────────────┘ │ Store 2 │◄──────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go313 // └───────────┘ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go316 // │ ┌───────────────┐COMMENT
MEDIUM⚡examples/interactive/interactive_test.go317 // ┌────────────┐ │ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go318 // ┌───────────────────────────────────────────────┐ │ │ ├──────┤ Querier │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go320 // └───────────────────────────────────────────────┘ │ │ │ └───────────────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go321 // ├────────────┤ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go322 // │ Sidecar │◄─────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go323 // └────────────┘ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go325 // ┌────────────┐ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go326 // ┌───────────────────────────────────────────────┐ │ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go328 // └───────────────────────────────────────────────┘ │ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go329 // ├────────────┤ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go330 // │ Sidecar │◄─────┤COMMENT
MEDIUM⚡examples/interactive/interactive_test.go331 // └────────────┘ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go333 // ┌────────────┐ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go334 // ┌───────────────────────────────────────────────┐ │ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go336 // └───────────────────────────────────────────────┘ │ │ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go337 // ├────────────┤ │COMMENT
MEDIUM⚡examples/interactive/interactive_test.go338 // │ Sidecar │◄─────┘COMMENT
MEDIUM⚡examples/interactive/interactive_test.go339 // └────────────┘COMMENT
MEDIUM⚡pkg/block/indexheader/binary_reader.go889 // │ ┌────────────────────────────────────────┐ │COMMENT
4 more matches not shown…
Over-Commented Block80 hits · 78 pts
SeverityFileLineSnippetContext
LOWdoc.go1// Copyright (c) The Thanos Authors.COMMENT
LOWmixin/README.md61{COMMENT
LOWinternal/cortex/tenant/resolver.go21// ignore stutter warningCOMMENT
LOW…ternal/cortex/chunk/cache/memcached_client_selector.go41 str: a.String(),COMMENT
LOWinternal/cortex/util/log/wrappers.go21COMMENT
LOWinternal/cortex/util/services/service.go41}COMMENT
LOWinternal/cortex/util/services/service.go61 StartAsync(ctx context.Context) errorCOMMENT
LOWinternal/cortex/util/services/service.go81 // FailureCase returns error if Service is in Failed state.COMMENT
LOWinternal/cortex/util/services/basic_service.go21// If RunningFn or Stopping return error, Service will end in Failed state, otherwise if both functions return withoutCOMMENT
LOWinternal/cortex/util/services/basic_service.go41// Same context is available via ServiceContext() method (not part of Service interface).COMMENT
LOWinternal/cortex/util/services/basic_service.go241 close(b.terminatedWaitersCh)COMMENT
LOWinternal/cortex/util/services/basic_service.go261// func (s *exampleService) Send(msg string) bool {COMMENT
LOWinternal/cortex/cortexpb/compat.go21COMMENT
LOWinternal/cortex/querier/series/series_set.go1// Copyright (c) The Cortex Authors.COMMENT
LOWinternal/cortex/querier/queryrange/roundtrip.go1// Copyright (c) The Cortex Authors.COMMENT
LOWexamples/interactive/interactive_test.go181 SamplerParam: 1,COMMENT
LOWexamples/interactive/interactive_test.go241 // └────────────┘COMMENT
LOWexamples/interactive/interactive_test.go301 // ┌──────────────┐COMMENT
LOWexamples/interactive/interactive_test.go321 // ├────────────┤ │COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWpkg/prober/prober.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/reloader/reloader_test.go401 // The reloader watches 2 directories: dir and dir/rule-dir.COMMENT
LOWpkg/reloader/reloader_test.go421 // └─ rule3-source.yamlCOMMENT
LOWpkg/reloader/reloader_test.go441 testutil.Ok(t, os.Rename(tempRule1File, path.Join(dir, "rule1.yaml")))COMMENT
LOWpkg/reloader/reloader_test.go461 testutil.Ok(t, os.Symlink(path.Join(dir2, "rule3-001.yaml"), path.Join(dir2, "rule3.yaml")))COMMENT
LOWpkg/reloader/reloader_test.go481 // ├─ rule3-002.yaml -> rule3-source.yaml (*)COMMENT
LOWpkg/reloader/reloader_test.go501 // ├─ rule2.yamlCOMMENT
LOWpkg/reloader/reloader_test.go721 // ├─ rule-dir -> dir2/rule-dirCOMMENT
LOWpkg/reloader/reloader_test.go741 //COMMENT
LOWpkg/reloader/reloader_test.go901 // The reloader watches 2 directories: dir and dir/rule-dir.COMMENT
LOWpkg/reloader/reloader_test.go921 // └─ rule3-source.yamlCOMMENT
LOWpkg/reloader/reloader_test.go941 // ├─ rule1.yamlCOMMENT
LOWpkg/reloader/reloader_test.go961 // │ └─ rule4.yamlCOMMENT
LOWpkg/reloader/reloader_test.go1121 switch rel {COMMENT
LOWpkg/reloader/reloader_test.go1141 // in a directory that isn't watched but the reloader should detectCOMMENT
LOWpkg/reloader/reloader.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/reloader/reloader.go21// CfgFile: "/path/to/cfg",COMMENT
LOWpkg/reloader/reloader.go41// }()COMMENT
LOWpkg/reloader/reloader.go141 // TODO: https://github.com/thanos-io/thanos/issues/7201COMMENT
LOWpkg/reloader/reloader.go161 RuntimeInfoURL *url.URLCOMMENT
LOWpkg/cacheutil/memcached_server_selector.go21// Therefore, MemcachedJumpHashSelector works best for serversCOMMENT
LOWpkg/exthttp/transport.go61 // Set this value so that the underlying transport round-tripperCOMMENT
LOWpkg/discovery/dns/miekgdns/lookup.go21//COMMENT
LOWpkg/discovery/dns/miekgdns/lookup.go81// immediately returned, otherwise the other servers in the config areCOMMENT
LOWpkg/receive/handler.go941 if r.replicated {COMMENT
LOWpkg/receive/handler.go1721type replicationErrors struct {COMMENT
LOWpkg/queryfrontend/roundtrip_test.go581 res *http.ResponseCOMMENT
LOWpkg/queryfrontend/roundtrip_test.go601 // stored in the cache.COMMENT
LOWpkg/rules/rulespb/custom.go41 return &Rule{COMMENT
LOWpkg/rules/rulespb/custom.go301func (x AlertState) Compare(y AlertState) int {COMMENT
LOWpkg/gate/gate.go21//COMMENT
LOWpkg/api/api.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/api/api_test.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/api/status/v1.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/api/query/v1.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/api/query/v1_test.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/api/query/engine.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/errors/stacktrace.go21 pc := make([]uintptr, stackDepth)COMMENT
LOWpkg/querysharding/analyzer.go1// Copyright (c) The Thanos Authors.COMMENT
LOWpkg/querysharding/analyzer.go81// Analyze uses the following algorithm:COMMENT
20 more matches not shown…
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWpkg/promclient/promclient.go785// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
LOWpkg/promclient/promclient.go807// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
LOWpkg/promclient/promclient.go830// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
LOWpkg/promclient/promclient.go853// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
LOWpkg/promclient/promclient.go880// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
LOWpkg/promclient/promclient.go924// NOTE: This method is tested in pkg/store/prometheus_test.go against Prometheus.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpkg/tracing/jaeger/remote.go5// Since these are part of the 'internal' package folder in the OpenTelemetry-go repo, I have addedCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/website/mdoxpostprocess.sh9# Create an _index.md in this dir to enable sorting capabilities and make this version appear top in version pickerCOMMENT
MEDIUMscripts/website/mdoxpostprocess.sh18# Create a thanos/_index.md file to make sure links work.COMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdocs/proposals-done/202005-query-logging.md49 principalEmail: "user@example.com"CODE
LOWpkg/ui/react-app/src/pages/graph/GraphControls.test.tsx92 expect(timeInput.prop('placeholder')).toEqual('End time');CODE
LOWpkg/ui/react-app/src/pages/graph/GraphControls.test.tsx116 expect(input.prop('placeholder')).toEqual('Res. (s)');CODE
LOWpkg/ui/react-app/src/pages/graph/Panel.test.tsx146 expect(timeInput.prop('placeholder')).toEqual('Evaluation time');CODE
LOWpkg/ui/react-app/src/pages/graph/TimeInput.test.tsx58 expect(input.prop('placeholder')).toEqual(timeInputProps.placeholder);CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpkg/verifier/safe_delete.go135 // TODO: Make this check more robust.COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/e2e/rule_test.go920 //TODO: Implement test with unavailable remote-write endpoint(receiver)COMMENT