AI Slop Code Risk Monitor

kubernetes/kube-state-metrics

SlopCodeMonitor badge for kubernetes/kube-state-metrics Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Add-on agent to generate and expose cluster-level metrics.

1.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kubernetes/kube-state-metrics, a Go project with 6,233 GitHub stars. SynthScan examined 48,821 lines of code across 317 source files, recording 55 pattern matches distributed across 3 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
6.2K
Stars
Go
Language
48.8K
Lines of Code
317
Files
55
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 5.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 5.5/100 · LOW

Which changes need focused human review? 55 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 0LOW 55

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 55 distinct pattern matches across 3 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 Block52 hits · 52 pts
SeverityFileLineSnippetContext
LOWtests/e2e.sh1#!/bin/bashCOMMENT
LOWinternal/discovery/types.go41COMMENT
LOWinternal/store/cronjob_test.go161 # HELP kube_cronjob_next_schedule_time [STABLE] Next time the cronjob should be scheduled. The time after lastScheduCOMMENT
LOWinternal/store/cronjob_test.go241 # HELP kube_cronjob_labels [STABLE] Kubernetes labels converted to Prometheus labels.COMMENT
LOWinternal/store/cronjob_test.go321 # HELP kube_cronjob_metadata_resource_version [STABLE] Resource version representing a specific version COMMENT
LOWinternal/store/cronjob_test.go361 StartingDeadlineSeconds: &StartingDeadlineSeconds300,COMMENT
LOWinternal/store/cronjob_test.go381 # TYPE kube_cronjob_created gaugeCOMMENT
LOWinternal/store/cronjob_test.go421 ConcurrencyPolicy: "Forbid",COMMENT
LOWinternal/store/cronjob_test.go481 StartingDeadlineSeconds: &StartingDeadlineSeconds300,COMMENT
LOWinternal/store/replicaset_test.go41 # TYPE kube_replicaset_annotations gaugeCOMMENT
LOWinternal/store/daemonset_test.go61 # HELP kube_daemonset_status_number_misscheduled [STABLE] The number of nodes running a daemon pod but are not suppoCOMMENT
LOWinternal/store/daemonset_test.go121 # HELP kube_daemonset_status_current_number_scheduled [STABLE] The number of nodes running at least one daemon pod aCOMMENT
LOWinternal/store/daemonset_test.go181 Want: `COMMENT
LOWinternal/store/volumeattachment_test.go21COMMENT
LOWinternal/store/persistentvolumeclaim_test.go81 # HELP kube_persistentvolumeclaim_volume_attributes_class The name of the VolumeAttributesClass requested by the perCOMMENT
LOWinternal/store/persistentvolumeclaim_test.go161 # HELP kube_persistentvolumeclaim_status_condition Information about status of different conditions of persistent voCOMMENT
LOWinternal/store/persistentvolumeclaim_test.go221 },COMMENT
LOWinternal/store/persistentvolumeclaim_test.go281 # HELP kube_persistentvolumeclaim_access_mode [STABLE] The access mode(s) specified by the persistent volume claim.COMMENT
LOWinternal/store/horizontalpodautoscaler_test.go41 # HELP kube_horizontalpodautoscaler_annotations Kubernetes annotations converted to Prometheus labels.COMMENT
LOWinternal/store/horizontalpodautoscaler_test.go541 },COMMENT
LOWinternal/store/job_test.go61 # TYPE kube_job_complete gaugeCOMMENT
LOWinternal/store/pod_test.go481 # HELP kube_pod_container_status_waiting [STABLE] Describes whether the container is currently in waiting state.COMMENT
LOWinternal/store/pod_test.go541 },COMMENT
LOWinternal/store/pod_test.go821 },COMMENT
LOWinternal/store/pod_test.go1041 {COMMENT
LOWinternal/store/secret_test.go41 # HELP kube_secret_created [STABLE] Unix creation timestampCOMMENT
LOWinternal/store/secret_test.go61 Obj: &v1.Secret{COMMENT
LOWinternal/store/statefulset_test.go61 Want: `COMMENT
LOWinternal/store/statefulset_test.go141 },COMMENT
LOWinternal/store/statefulset_test.go221 # HELP kube_statefulset_status_replicas_ready [STABLE] The number of ready replicas per StatefulSet.COMMENT
LOWinternal/store/statefulset_test.go281 },COMMENT
LOWinternal/store/statefulset_test.go361 # HELP kube_statefulset_status_replicas_available [STABLE] The number of available replicas per StatefulSet.COMMENT
LOWinternal/store/node_test.go121 Want: `COMMENT
LOWinternal/store/node_test.go341 },COMMENT
LOWinternal/store/poddisruptionbudget_test.go41 # HELP kube_poddisruptionbudget_status_current_healthy [STABLE] Current number of healthy podsCOMMENT
LOWinternal/store/replicationcontroller_test.go41 # HELP kube_replicationcontroller_created [STABLE] Unix creation timestampCOMMENT
LOWinternal/store/deployment_test.go41 depl1MaxSurge = intstr.FromInt(10)COMMENT
LOWinternal/store/deployment_test.go61 # HELP kube_deployment_spec_paused [STABLE] Whether the deployment is paused and will not be processed by the deploymeCOMMENT
LOWpkg/customresourcestate/config.go141COMMENT
LOWpkg/customresourcestate/example_config.yaml1# Copyright 2021 The Kubernetes Authors All rights reserved.COMMENT
LOWpkg/metrics_store/metrics_store.go261COMMENT
LOWpkg/app/server_test.go221# HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state.COMMENT
LOWpkg/app/server_test.go241# HELP kube_pod_init_container_status_restarts_total [STABLE] The number of restarts for the init container.COMMENT
LOWpkg/app/server_test.go261# HELP kube_pod_status_disruption_reason The pod disruption condition reasonCOMMENT
LOWpkg/app/server_test.go281# TYPE kube_pod_container_status_last_terminated_timestamp gaugeCOMMENT
LOWpkg/app/server_test.go301# TYPE kube_pod_init_container_status_running gaugeCOMMENT
LOWpkg/app/server_test.go321# TYPE kube_pod_status_initialized_time gaugeCOMMENT
LOWpkg/customresource/registry_factory.go21 "k8s.io/client-go/tools/cache"COMMENT
LOWpkg/customresource/registry_factory.go41 // Example:COMMENT
LOWpkg/customresource/registry_factory.go61 // wrapFooFunc(func(f *samplev1alpha1.Foo) *metric.Family {COMMENT
LOWpkg/customresource/registry_factory.go81 // Value: float64(f.Status.AvailableReplicas),COMMENT
LOWpkg/customresource/registry_factory.go101 //COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpkg/allowdenylist/allowdenylist_test.go319 var exp = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"CODE
LOWpkg/allowdenylist/allowdenylist_test.go319 var exp = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/update-data-yaml.sh73# Check if KSM version already exists (with different k8s mapping)COMMENT