AI Slop Code RIsk Monitor

GoogleCloudPlatform/golang-samples

Sample apps and code written for Google Cloud in the Go programming language.

11.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for GoogleCloudPlatform/golang-samples, a Go project with 4,662 GitHub stars. SynthScan examined 255,166 lines of code across 2909 source files, recording 2903 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 11.6 (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.

11.6
Adjusted Signal
11.6
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
4.7K
Stars
Go
Language
255.2K
Lines of Code
2.9K
Files
2.9K
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 43.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 44.0/100 · MEDIUM

Which changes need focused human review? 2903 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 2HIGH 3MEDIUM 9LOW 2889

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 2903 distinct pattern matches across 11 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 Block2863 hits · 2863 pts
SeverityFileLineSnippetContext
LOWregiontag_test.go1// Copyright 2019 Google LLCCOMMENT
LOWbadfiles_test.go1// Copyright 2019 Google LLCCOMMENT
LOWdataflow/flex-templates/wordcount/wordcount.go1// Copyright 2022 Google LLCCOMMENT
LOWdataflow/flex-templates/wordcount/wordcount_test.go1// Copyright 2022 Google LLCCOMMENT
LOWprivateca/create_ca.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/undelete_ca.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/revoke_certificate.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/privateca_test.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/create_certificate.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/delete_ca.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/list_cas.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/list_certificates.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/disable_ca.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/delete_ca_pool.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/create_ca_pool.go1// Copyright 2023 Google LLCCOMMENT
LOWprivateca/enable_ca.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/get_retired_resource.go1// Copyright 2026 Google LLCCOMMENT
LOWkms/kms_helpers_test.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/disable_key_version.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_import_job.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/update_key_update_labels.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/update_key_add_rotation.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/import_manually_wrapped_key.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/create_key_for_import.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/update_key_remove_labels.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_labels.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/generate_random_bytes.go1// Copyright 2021 Google LLCCOMMENT
LOWkms/iam_add_member.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/iam_get_policy.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/check_state_import_job.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/create_key_asymmetric_decrypt.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/update_key_remove_rotation.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/restore_key_version.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/verify_mac.go1// Copyright 2021 Google LLCCOMMENT
LOWkms/create_key_mac.go1// Copyright 2021 Google LLCCOMMENT
LOWkms/delete_key_version.go1// Copyright 2026 Google LLCCOMMENT
LOWkms/update_key_set_primary.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/destroy_key_version.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_rotation_schedule.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_ring.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_version.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/encrypt_asymmetric.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/verify_asymmetric_ec.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/get_public_key.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_asymmetric_sign.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/sign_mac.go1// Copyright 2021 Google LLCCOMMENT
LOWkms/get_key_version_attestation.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/check_state_imported_key.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/decrypt_symmetric.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/get_key_labels.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/iam_remove_member.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/create_key_hsm.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/kms_test.go1// Copyright 2023 Google LLCCOMMENT
LOWkms/verify_asymmetric_rsa.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/delete_key.go1// Copyright 2026 Google LLCCOMMENT
LOWkms/encrypt_symmetric.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/encapsulate_mlkem.go1// Copyright 2025 Google LLCCOMMENT
LOWkms/sign_asymmetric.go1// Copyright 2020 Google LLCCOMMENT
LOWkms/decapsulate.go1// Copyright 2025 Google LLCCOMMENT
LOWkms/create_key_symmetric_encrypt_decrypt.go1// Copyright 2020 Google LLCCOMMENT
2803 more matches not shown…
Fake / Example Data18 hits · 22 pts
SeverityFileLineSnippetContext
LOWeventarc/audit_iam/main_test.go33 PrincipalEmail: "user@example.com",CODE
LOWdlp/snippets/inspect/inspect_table.go54 StringValue: "John Doe",CODE
LOW…nippets/inspect/inspect_string_with_exclusion_regex.go32 // textToInspect := "Some email addresses: gary@example.com, bob@example.org"COMMENT
LOW…ets/inspect/inspect_send_data_to_hybrid_job_trigger.go34 // textToDeIdentify := "My email is test@example.org"COMMENT
LOW…ts/inspect/inspect_string_with_exclusion_regex_test.go27 if err := inspectStringWithExclusionRegex(&buf, tc.ProjectID, "Some email addresses: gary@example.com, bob@example.org"CODE
LOW…ts/inspect/inspect_string_with_exclusion_regex_test.go33 if want := "Quote: bob@example.org"; !strings.Contains(got, want) {CODE
LOW…pets/deid/deid_table_with_multiple_crypto_hash_test.go35 if want := "user1@example.org"; strings.Contains(got, want) {CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash.go33 {Type: &dlppb.Value_StringValue{StringValue: "user1@example.org"}},CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash.go40 {Type: &dlppb.Value_StringValue{StringValue: "user2@example.org"}},CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash.go47 {Type: &dlppb.Value_StringValue{StringValue: "user3@example.org"}},CODE
LOW…/snippets/deid/deid_table_with_multiple_crypto_hash.go35 {Type: &dlppb.Value_StringValue{StringValue: "user1@example.org"}},CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash_test.go38 if want := "user3@example.org"; strings.Contains(got, want) {CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash_test.go44 if want := "user2@example.org"; strings.Contains(got, want) {CODE
LOW⚡dlp/snippets/deid/deid_table_with_crypto_hash_test.go50 if want := "user1@example.org"; strings.Contains(got, want) {CODE
LOWdlp/snippets/deid/deid_with_exception_list.go59 Words: []string{"jack@example.org", "jill@example.org"},CODE
LOW…ctionsv2/label_gce_instance/label_gce_instance_test.go89 "principalEmail": "user@example.com",CODE
LOW…ctionsv2/label_gce_instance/label_gce_instance_test.go110 "principalEmail": "user@example.com",CODE
LOWgenai/live/live_examples_test.go40 Name: "John Doe",CODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALinternal/aeintegrate/aeintegrate.go334 _, err = p.adminService.Apps.Services.Versions.Delete(p.ProjectID, p.Service, p.version()).Do()CODE
CRITICALcontainer/listclusters/listclusters.go77 poolList, err := svc.Projects.Zones.Clusters.NodePools.List(projectID, zone, v.Name).Do()CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs/appengine/mail/mailgun/mailgun.go31 "YOUR_API_KEY", // API KeyCODE
HIGHdocs/appengine/mail/mailgun/mailgun.go56 "YOUR_API_KEY", // API KeyCODE
HIGHgenai/express_mode/expressmode_with_api_key.go34 apiKey := "YOUR_API_KEY"CODE
Slop Phrases6 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/appengine/tools/unittest/package.go31 Body: "Don't forget to test your code!",CODE
LOWdocs/appengine/tools/unittest/package.go45 Body: "Don't forget to test your code!",CODE
MEDIUMstorage/objects/generate_encryption_key.go28 // This is included for demonstration purposes. You should generate your ownCOMMENT
MEDIUMcloudsql/postgres/database-sql/deployment.yaml77 # If connecting from a VPC-native GKE cluster, you can use theCOMMENT
MEDIUMcloudsql/mysql/database-sql/deployment.yaml77 # If connecting from a VPC-native GKE cluster, you can use theCOMMENT
MEDIUMcloudsql/sqlserver/database-sql/deployment.yaml66 # If connecting from a VPC-native GKE cluster, you can use theCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…able/bigquery_create_table_external_hivepartitioned.go53 // so we can add an optional Hive partitioning configuration to leverage the object paths for derivingCOMMENT
MEDIUMbigquery/bigquery_storage_quickstart/main.go243// records necessitate a more robust implementation. See the goavro libraryCOMMENT
MEDIUMrun/logging-manual/main.go15// Sample logging-manual shows how to leverage Cloud Run structured logging without a client library.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMmemorystore/redis/gce_deployment/startup-script.sh32# Create a goapp user. The application will run as this user.COMMENT
MEDIUMmemorystore/redis/gce_deployment/deploy.sh32# Create an instanceCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWkms/update_key_update_labels.go41 // Step 1 - get the current set of labels on the keyCOMMENT
LOWkms/update_key_update_labels.go56 // Step 2 - add a label to the list of labelsCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWprofiler/snippets/snippets.go39 // TODO: Handle error.COMMENT
LOWprofiler/appengine/appengine.go33 // TODO: Handle error.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…entelemetry/instrumentation/otel-collector-config.yaml48 # Check if the parsed JSON actually contains trace context before extractingCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcompute/disks/create_hyperdisk_from_pool.go31 // Example usage:COMMENT