Add-on agent to generate and expose cluster-level metrics.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 53 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 55 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/e2e.sh | 1 | #!/bin/bash | COMMENT |
| LOW | internal/discovery/types.go | 41 | COMMENT | |
| LOW | internal/store/cronjob_test.go | 161 | # HELP kube_cronjob_next_schedule_time [STABLE] Next time the cronjob should be scheduled. The time after lastSchedu | COMMENT |
| LOW | internal/store/cronjob_test.go | 241 | # HELP kube_cronjob_labels [STABLE] Kubernetes labels converted to Prometheus labels. | COMMENT |
| LOW | internal/store/cronjob_test.go | 321 | # HELP kube_cronjob_metadata_resource_version [STABLE] Resource version representing a specific version | COMMENT |
| LOW | internal/store/cronjob_test.go | 361 | StartingDeadlineSeconds: &StartingDeadlineSeconds300, | COMMENT |
| LOW | internal/store/cronjob_test.go | 381 | # TYPE kube_cronjob_created gauge | COMMENT |
| LOW | internal/store/cronjob_test.go | 421 | ConcurrencyPolicy: "Forbid", | COMMENT |
| LOW | internal/store/cronjob_test.go | 481 | StartingDeadlineSeconds: &StartingDeadlineSeconds300, | COMMENT |
| LOW | internal/store/replicaset_test.go | 41 | # TYPE kube_replicaset_annotations gauge | COMMENT |
| LOW | internal/store/daemonset_test.go | 61 | # HELP kube_daemonset_status_number_misscheduled [STABLE] The number of nodes running a daemon pod but are not suppo | COMMENT |
| LOW | internal/store/daemonset_test.go | 121 | # HELP kube_daemonset_status_current_number_scheduled [STABLE] The number of nodes running at least one daemon pod a | COMMENT |
| LOW | internal/store/daemonset_test.go | 181 | Want: ` | COMMENT |
| LOW | internal/store/volumeattachment_test.go | 21 | COMMENT | |
| LOW | internal/store/persistentvolumeclaim_test.go | 81 | # HELP kube_persistentvolumeclaim_volume_attributes_class The name of the VolumeAttributesClass requested by the per | COMMENT |
| LOW | internal/store/persistentvolumeclaim_test.go | 161 | # HELP kube_persistentvolumeclaim_status_condition Information about status of different conditions of persistent vo | COMMENT |
| LOW | internal/store/persistentvolumeclaim_test.go | 221 | }, | COMMENT |
| LOW | internal/store/persistentvolumeclaim_test.go | 281 | # HELP kube_persistentvolumeclaim_access_mode [STABLE] The access mode(s) specified by the persistent volume claim. | COMMENT |
| LOW | internal/store/horizontalpodautoscaler_test.go | 41 | # HELP kube_horizontalpodautoscaler_annotations Kubernetes annotations converted to Prometheus labels. | COMMENT |
| LOW | internal/store/horizontalpodautoscaler_test.go | 541 | }, | COMMENT |
| LOW | internal/store/job_test.go | 61 | # TYPE kube_job_complete gauge | COMMENT |
| LOW | internal/store/pod_test.go | 481 | # HELP kube_pod_container_status_waiting [STABLE] Describes whether the container is currently in waiting state. | COMMENT |
| LOW | internal/store/pod_test.go | 541 | }, | COMMENT |
| LOW | internal/store/pod_test.go | 821 | }, | COMMENT |
| LOW | internal/store/pod_test.go | 1041 | { | COMMENT |
| LOW | internal/store/secret_test.go | 41 | # HELP kube_secret_created [STABLE] Unix creation timestamp | COMMENT |
| LOW | internal/store/secret_test.go | 61 | Obj: &v1.Secret{ | COMMENT |
| LOW | internal/store/statefulset_test.go | 61 | Want: ` | COMMENT |
| LOW | internal/store/statefulset_test.go | 141 | }, | COMMENT |
| LOW | internal/store/statefulset_test.go | 221 | # HELP kube_statefulset_status_replicas_ready [STABLE] The number of ready replicas per StatefulSet. | COMMENT |
| LOW | internal/store/statefulset_test.go | 281 | }, | COMMENT |
| LOW | internal/store/statefulset_test.go | 361 | # HELP kube_statefulset_status_replicas_available [STABLE] The number of available replicas per StatefulSet. | COMMENT |
| LOW | internal/store/node_test.go | 121 | Want: ` | COMMENT |
| LOW | internal/store/node_test.go | 341 | }, | COMMENT |
| LOW | internal/store/poddisruptionbudget_test.go | 41 | # HELP kube_poddisruptionbudget_status_current_healthy [STABLE] Current number of healthy pods | COMMENT |
| LOW | internal/store/replicationcontroller_test.go | 41 | # HELP kube_replicationcontroller_created [STABLE] Unix creation timestamp | COMMENT |
| LOW | internal/store/deployment_test.go | 41 | depl1MaxSurge = intstr.FromInt(10) | COMMENT |
| LOW | internal/store/deployment_test.go | 61 | # HELP kube_deployment_spec_paused [STABLE] Whether the deployment is paused and will not be processed by the deployme | COMMENT |
| LOW | pkg/customresourcestate/config.go | 141 | COMMENT | |
| LOW | pkg/customresourcestate/example_config.yaml | 1 | # Copyright 2021 The Kubernetes Authors All rights reserved. | COMMENT |
| LOW | pkg/metrics_store/metrics_store.go | 261 | COMMENT | |
| LOW | pkg/app/server_test.go | 221 | # HELP kube_pod_container_status_last_terminated_reason Describes the last reason the container was in terminated state. | COMMENT |
| LOW | pkg/app/server_test.go | 241 | # HELP kube_pod_init_container_status_restarts_total [STABLE] The number of restarts for the init container. | COMMENT |
| LOW | pkg/app/server_test.go | 261 | # HELP kube_pod_status_disruption_reason The pod disruption condition reason | COMMENT |
| LOW | pkg/app/server_test.go | 281 | # TYPE kube_pod_container_status_last_terminated_timestamp gauge | COMMENT |
| LOW | pkg/app/server_test.go | 301 | # TYPE kube_pod_init_container_status_running gauge | COMMENT |
| LOW | pkg/app/server_test.go | 321 | # TYPE kube_pod_status_initialized_time gauge | COMMENT |
| LOW | pkg/customresource/registry_factory.go | 21 | "k8s.io/client-go/tools/cache" | COMMENT |
| LOW | pkg/customresource/registry_factory.go | 41 | // Example: | COMMENT |
| LOW | pkg/customresource/registry_factory.go | 61 | // wrapFooFunc(func(f *samplev1alpha1.Foo) *metric.Family { | COMMENT |
| LOW | pkg/customresource/registry_factory.go | 81 | // Value: float64(f.Status.AvailableReplicas), | COMMENT |
| LOW | pkg/customresource/registry_factory.go | 101 | // | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/allowdenylist/allowdenylist_test.go | 319 | var exp = "Lorem ipsum dolor sit amet, consectetur adipiscing elit" | CODE |
| LOW | pkg/allowdenylist/allowdenylist_test.go | 319 | var exp = "Lorem ipsum dolor sit amet, consectetur adipiscing elit" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/update-data-yaml.sh | 73 | # Check if KSM version already exists (with different k8s mapping) | COMMENT |