AI Slop Code RIsk Monitor

elastic/go-elasticsearch

The official Go client for Elasticsearch

7.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for elastic/go-elasticsearch, a Go project with 6,066 GitHub stars. SynthScan examined 987,113 lines of code across 6260 source files, recording 7647 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 7.8 (Moderate 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.

7.8
Adjusted Signal
7.8
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
6.1K
Stars
Go
Language
987.1K
Lines of Code
6.3K
Files
7.6K
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 32.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 32.3/100 · MEDIUM

Which changes need focused human review? 7647 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 3HIGH 1MEDIUM 7LOW 7636

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 7647 distinct pattern matches across 7 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 Block7611 hits · 7611 pts
SeverityFileLineSnippetContext
LOWelasticsearch.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWelasticsearch.go141 // Interceptors is an array of functions that can mutate the *http.Request / *http.Response on each call to the http.RoCOMMENT
LOWelasticsearch.go221//COMMENT
LOWoptions.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOW.pre-commit-config.yaml1# Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWelasticsearch_internal_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWdoc.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWoptions_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWelasticsearch_example_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWelasticsearch_benchmark_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWAGENTS.md41// the Apache License, Version 2.0 (the "License"); you mayCOMMENT
LOWCLAUDE.md41// the Apache License, Version 2.0 (the "License"); you mayCOMMENT
LOWinternal/cmd/binsize/typed/main.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/cmd/binsize/client/main.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/cmd/binsize/client/main.go21// (a method on *Client transitively pulling in the typedapi tree) showsCOMMENT
LOWinternal/cmd/binsize/base/main.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/containertest/testcontainers.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/e2e/bulk_indexer_integration_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/e2e/esapi_integration_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/e2e/base64_bulk_integration_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/e2e/elasticsearch_integration_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/testing/e2e/json_reader_integration_test.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWinternal/version/version.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.shutdown.put_node.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.security.saml_invalidate.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.ccr.get_auto_follow_pattern.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.snapshot.delete.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.slm.get_status.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.watcher.delete_watch.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.logstash.put_pipeline.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.exists_template.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.ml.update_job.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.inference.put_jinaai.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOW…api/api.xpack.security.create_cross_cluster_api_key.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.explain_data_lifecycle.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.refresh.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.inference.put_openai.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.connector.sync_job_check_in.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.inference.put_llama.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.security.saml_complete_logout.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.cat.allocation.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.validate_query.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.cancel_migrate_reindex.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.ml.delete_job.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.enrich.get_policy.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.security.get_service_credentials.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.indices.get_data_stream_settings.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.ml.set_upgrade_mode.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.synonyms.delete_synonym_rule.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.ml.get_memory_stats.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.cat.shards.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.inference.completion.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.exists_source.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.profiling.status.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.cluster.remote_info.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.indices.put_data_stream_options.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.synonyms.get_synonym_rule.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOW….search_application.post_behavioral_analytics_event.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.xpack.indices.delete_data_stream.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
LOWesapi/api.simulate.ingest.go1// Licensed to Elasticsearch B.V. under one or more contributorCOMMENT
7551 more matches not shown…
Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippetContext
CRITICAL⚡_examples/bulk/benchmarks/runner/runner.go169 r.config.Client.Indices.Delete.WithIgnoreUnavailable(true))CODE
CRITICAL⚡_examples/bulk/benchmarks/runner/runner.go172 r.config.Client.Indices.Create.WithBody(strings.NewReader(r.indexSettings.String())),CODE
CRITICAL⚡_examples/bulk/benchmarks/runner/runner.go173 r.config.Client.Indices.Create.WithWaitForActiveShards("1"))CODE
Fake / Example Data25 hits · 26 pts
SeverityFileLineSnippetContext
LOWinternal/testing/e2e/bulk_indexer_integration_test.go42 body := `{"body":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore CODE
LOWinternal/testing/e2e/bulk_indexer_integration_test.go42 body := `{"body":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore CODE
LOW…tting-started_311c4b632a29b9ead63b02d01f10096b_test.go42// "name": "John Doe"COMMENT
LOW…tting-started_311c4b632a29b9ead63b02d01f10096b_test.go53 "name": "John Doe"CODE
LOWtypedapi/types/connectorconfigproperties.go131 case "placeholder":CODE
LOW_examples/bulk/typed.go103 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/bulk/typed.go103 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/bulk/indexer.go157 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/bulk/indexer.go157 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/bulk/default.go144 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/bulk/default.go144 Body: "Lorem ipsum dolor sit amet...",CODE
LOW_examples/encoding/easyjson.go75 Body: "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/easyjson.go75 Body: "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json25 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json25 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json41 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json41 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json57 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json57 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json73 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json73 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json89 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOW_examples/encoding/testdata/response_search.json89 "body": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",CODE
LOWesutil/bulk_indexer_internal_test.go1703 body := `{"body":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore CODE
LOWesutil/bulk_indexer_internal_test.go1703 body := `{"body":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore CODE
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtypedapi/rollup/rollupsearch/rollup_search.go24// utilize a different document structure than the original data. It rewritesCOMMENT
MEDIUMtypedapi/rollup/rollupsearch/rollup_search.go107// utilize a different document structure than the original data. It rewritesCOMMENT
MEDIUMtypedapi/connector/syncjobclaim/sync_job_claim.go28// supports the implementation of services that utilize the connector protocolCOMMENT
MEDIUMtypedapi/connector/syncjobclaim/sync_job_claim.go103// supports the implementation of services that utilize the connector protocolCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…s-put-mapping_1da77e114459e0b77d78a3dcc8fae429_test.go40// # Create the two indicesCOMMENT
MEDIUM_examples/security/certificates-create.yml1# Create the certificates for the stack:COMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/reference/typed-api/index.md20 elasticsearch.WithAPIKey("your-api-key"), // <2>CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM_examples/interceptor/cmd/custom_observability/main.go29// All telemetry is exported to stdout for demonstration purposes.COMMENT