Repository Analysis

k0sproject/k0s

k0s - The Zero Friction Kubernetes

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of k0sproject/k0s, a Go project with 6,334 GitHub stars. SynthScan v2.0 examined 128,945 lines of code across 983 source files, recording 129 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.3 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.3K
Stars
Go
Language
128.9K
Lines of Code
983
Files
129
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 32HIGH 1MEDIUM 5LOW 91

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 129 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators32 hits · 440 pts
SeverityFileLineSnippetContext
CRITICALpkg/apis/k0s/v1beta1/images_test.go123 require.Equal(t, "my.repo/k0sproject/calico-cni:"+constant.CalicoCNIImageVersion, testingConfig.Spec.Images.Calico.CNCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go124 require.Equal(t, "my.repo/k0sproject/calico-kube-controllers:"+constant.CalicoKubeControllersImageVersion, testingConCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go125 require.Equal(t, "my.repo/k0sproject/calico-node:"+constant.CalicoNodeImageVersion, testingConfig.Spec.Images.Calico.CODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go126 require.Equal(t, "my.repo/k0sproject/cni-node:"+constant.KubeRouterCNIInstallerImageVersion, testingConfig.Spec.ImageCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go129 require.Equal(t, "my.repo/k0sproject/kube-router:"+constant.KubeRouterCNIImageVersion, testingConfig.Spec.Images.KubeCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go141 require.Equal(t, "my.repo/k0sproject/calico-cni:"+constant.CalicoCNIImageVersion, testingConfig.Spec.Images.Calico.CNCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go142 require.Equal(t, "my.repo/k0sproject/calico-kube-controllers:"+constant.CalicoKubeControllersImageVersion, testingConCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go143 require.Equal(t, "my.repo/k0sproject/calico-node:"+constant.CalicoNodeImageVersion, testingConfig.Spec.Images.Calico.CODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go144 require.Equal(t, "my.repo/k0sproject/cni-node:"+constant.KubeRouterCNIInstallerImageVersion, testingConfig.Spec.ImageCODE
CRITICALpkg/apis/k0s/v1beta1/images_test.go147 require.Equal(t, "my.repo/k0sproject/kube-router:"+constant.KubeRouterCNIImageVersion, testingConfig.Spec.Images.KubeCODE
CRITICALpkg/component/controller/metrics.go141 if m.clusterConfig == nil || clusterConfig.Spec.Images.PushGateway.URI() != m.clusterConfig.Spec.Images.PushGateway.URICODE
CRITICALpkg/component/controller/calico.go312 CalicoCNIImage: clusterConfig.Spec.Images.Calico.CNI.URI(),CODE
CRITICALpkg/component/controller/calico.go313 CalicoCNIWindowsImage: clusterConfig.Spec.Images.Calico.Windows.CNI.URI(),CODE
CRITICALpkg/component/controller/calico.go314 CalicoNodeImage: clusterConfig.Spec.Images.Calico.Node.URI(),CODE
CRITICALpkg/component/controller/calico.go315 CalicoNodeWindowsImage: clusterConfig.Spec.Images.Calico.Windows.Node.URI(),CODE
CRITICALpkg/component/controller/calico.go316 CalicoKubeControllersImage: clusterConfig.Spec.Images.Calico.KubeControllers.URI(),CODE
CRITICALpkg/component/controller/metricserver.go350 Image: m.clusterConfig.Spec.Images.MetricsServer.URI(),CODE
CRITICALpkg/component/controller/kuberouter.go148 CNIImage: clusterConfig.Spec.Images.KubeRouter.CNI.URI(),CODE
CRITICALpkg/component/controller/kuberouter.go149 CNIInstallerImage: clusterConfig.Spec.Images.KubeRouter.CNIInstaller.URI(),CODE
CRITICALpkg/component/controller/kubeproxy.go275 WindowsImage: clusterConfig.Spec.Images.Windows.KubeProxy.URI(),CODE
CRITICALpkg/airgap/images.go49 env.Spec.Images.Windows.Pause.URI(),CODE
CRITICALpkg/airgap/images.go50 env.Spec.Images.Windows.KubeProxy.URI(),CODE
CRITICALpkg/airgap/images.go58 env.Spec.Images.KubeRouter.CNIInstaller.URI(),CODE
CRITICALpkg/airgap/images.go59 env.Spec.Images.KubeRouter.CNI.URI(),CODE
CRITICALpkg/airgap/images.go68 env.Spec.Images.Calico.CNI.URI(),CODE
CRITICALpkg/airgap/images.go69 env.Spec.Images.Calico.KubeControllers.URI(),CODE
CRITICALpkg/airgap/images.go70 env.Spec.Images.Calico.Node.URI(),CODE
CRITICALpkg/airgap/images.go74 env.Spec.Images.Calico.Windows.CNI.URI(),CODE
CRITICALpkg/airgap/images.go75 env.Spec.Images.Calico.Windows.Node.URI(),CODE
CRITICALpkg/airgap/images.go87 env.Spec.Network.NodeLocalLoadBalancing.EnvoyProxy.OrDefault().Image.URI(),CODE
CRITICALpkg/airgap/images.go95 env.Spec.Network.NodeLocalLoadBalancing.Traefik.OrDefault().Image.URI(),CODE
CRITICALpkg/autopilot/controller/updates/periodicupdater.go148 if !u.updateConfig.Spec.UpgradeStrategy.Periodic.IsWithinPeriod(time.Now()) {CODE
Over-Commented Block83 hits · 83 pts
SeverityFileLineSnippetContext
LOWinternal/http/filename_test.go81 // In comparison to attwithfilenameandextparam, the extension parameter actually uses backslash-escapes.COMMENT
LOWinternal/http/filename_test.go101 "attwithasciifilenamenqs": {`attachment; filename=foo.html ;`, "attwithasciifilenamenqs"},COMMENT
LOWinternal/http/filename_test.go121COMMENT
LOWinternal/http/filename_test.go141 // treatment of "name" as synonym for "filename"; see Ned Freed'sCOMMENT
LOWinternal/http/filename_test.go161 "attwithasciifilenamews1": {`attachment; filename ="foo.html"`, "foo.html"},COMMENT
LOWinternal/http/filename_test.go181COMMENT
LOWinternal/http/filename_test.go221 "attbrokenquotedfn2": {`attachment; filename="bar`, "attbrokenquotedfn2"},COMMENT
LOWinternal/http/filename_test.go241COMMENT
LOWinternal/http/filename_test.go281COMMENT
LOWinternal/http/filename_test.go341 }COMMENT
LOWinternal/os/unix/dir.go61COMMENT
LOWinternal/os/unix/dir.go81// file system path manipulation, which contradicts the nature of a Dir. ForCOMMENT
LOWinternal/os/linux/pidfd.go141func pidfdSendSignal(pidfd int, sig syscall.Signal) error {COMMENT
LOWinternal/os/linux/procfs/procfs.go41 return string(p)COMMENT
LOWinternal/os/windows/console.go61}COMMENT
LOWinternal/sync/value/latest.go1// SPDX-FileCopyrightText: 2024 k0s authorsCOMMENT
LOWinternal/sync/value/latest.go21// import (COMMENT
LOWinternal/sync/value/latest.go41// fmt.Println("Peeked value:", value) // Output: Peeked value: 42COMMENT
LOWinternal/testutil/portforward.go41//COMMENT
LOWinternal/pkg/file/atomic.go81COMMENT
LOWinternal/pkg/file/atomic.go261 // it is safe to do this after the permission change. So if this succeeds,COMMENT
LOWinternal/pkg/file/atomic.go341 })COMMENT
LOWinternal/pkg/sysinfo/host_linux.go41 // explanation. The probes here are documented as good as possible inCOMMENT
LOWinternal/pkg/sysinfo/probes/probes.go1// SPDX-FileCopyrightText: 2022 k0s authorsCOMMENT
LOWhack/tools/boilerplate.go.txt1// SPDX-FileCopyrightText: k0s authorsCOMMENT
LOWdocs/contributors/github_workflow.md161# Rebase 710f0f8..a5f4a0d onto 710f0f8COMMENT
LOWinttest/common/bootloosesuite.go281 s.T().Logf("SSH connection to %s successful", nodeName)COMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go21COMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go41// CPLBType describes which type of load balancer should be deployed for theCOMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go61 //COMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go81// +kubebuilder:validation:MaxItems=255COMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go101 // nodes must use the same VirtualRouterID. Other clusters in the sameCOMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go121 // If specified, UnicastSourceIP must be specified as well.COMMENT
LOWpkg/apis/k0s/v1beta1/cplb.go221 // microsecond precision. Further precision will be truncated withoutCOMMENT
LOWpkg/apis/k0s/v1beta1/nllb.go21 // Default: falseCOMMENT
LOWpkg/apis/k0s/v1beta1/nllb.go121 // image specifies the OCI image that's being used for the Envoy Pod.COMMENT
LOWpkg/apis/k0s/v1beta1/nllb.go141 // Default: 7132COMMENT
LOWpkg/apis/k0s/v1beta1/nllb.go161 // interface. This must be a valid port number, 0 < x < 65536.COMMENT
LOWpkg/apis/k0s/v1beta1/network.go41 // Pod network CIDR to use in the clusterCOMMENT
LOWpkg/apis/k0s/v1beta1/doc.go1// SPDX-FileCopyrightText: 2023 k0s authorsCOMMENT
LOWpkg/apis/k0s/v1beta1/patches.go21 // Patch defines the patch type and content.COMMENT
LOWpkg/apis/k0s/v1beta1/extensions.go101 TargetNS string `json:"namespace"`COMMENT
LOWpkg/apis/k0s/v1beta1/extensions.go161COMMENT
LOWpkg/apis/k0s/v1beta1/api.go41 RawArgs []string `json:"rawArgs,omitempty"`COMMENT
LOWpkg/apis/k0s/v1beta1/kuberouter.go21COMMENT
LOWpkg/apis/etcd/v1beta1/types.go1// SPDX-FileCopyrightText: 2024 k0s authorsCOMMENT
LOWpkg/apis/etcd/v1beta1/doc.go1// SPDX-FileCopyrightText: 2024 k0s authorsCOMMENT
LOWpkg/apis/autopilot/doc.go1// SPDX-FileCopyrightText: 2023 k0s authorsCOMMENT
LOWpkg/apis/autopilot/v1beta2/types.go1// SPDX-FileCopyrightText: 2022 k0s authorsCOMMENT
LOWpkg/apis/autopilot/v1beta2/types.go61// +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state"COMMENT
LOWpkg/apis/autopilot/v1beta2/updateconfig.go41 // +kubebuilder:default:="https://updates.k0sproject.io"COMMENT
LOWpkg/apis/autopilot/v1beta2/doc.go1// SPDX-FileCopyrightText: 2023 k0s authorsCOMMENT
LOWpkg/apis/helm/v1beta1/chart_types.go21// ConfigSource describes the source of repository configuration values.COMMENT
LOWpkg/apis/helm/v1beta1/chart_types.go101// +kubebuilder:object:root=trueCOMMENT
LOWpkg/apis/helm/v1beta1/doc.go1// SPDX-FileCopyrightText: 2023 k0s authorsCOMMENT
LOWpkg/install/sysv_linux.go1// SPDX-FileCopyrightText: 2022 k0s authorsCOMMENT
LOWpkg/debounce/debounce.go1// SPDX-FileCopyrightText: 2020 k0s authorsCOMMENT
LOWpkg/component/controller/konnectivityagent.go121 return fmt.Errorf("failed to determine proxy server host and port (%q, %d): %w", externalAddress, cfg.ProxyServerPortCOMMENT
LOWpkg/component/controller/extensions_controller.go601 if cachedRepo == nil {COMMENT
LOWpkg/component/controller/kubeproxy.go221 nllb := clusterConfig.Spec.Network.NodeLocalLoadBalancingCOMMENT
23 more matches not shown…
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHcmd/kubeconfig/create_test.go62 // Verify that the current context is set as requestedCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMinternal/pkg/file/atomic.go102 // the Atomic robust against intermediary working directory changes.COMMENT
MEDIUM.github/workflows/win-wsl.yaml60 # This function is used in conjunction with Get-StoredLastBootTime, whichCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMhack/ostests/.terraform.lock.hcl1# This file is maintained automatically by "tofu init".COMMENT
MEDIUM.github/workflows/win-wsl.yaml60 # This function is used in conjunction with Get-StoredLastBootTime, whichCOMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinternal/oci/download.go24// Usage example:COMMENT
LOWhack/tools/gen-matrix.sh4# Usage:COMMENT
LOWhack/tools/run-autopilot-matrix-tests.sh3# Usage:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocker-entrypoint.sh64 # Check if the requested bit is set.COMMENT
LOW.github/workflows/unittests-k0s.yml26 # Set SOURCE_DATE_EPOCH to optimize cache usageCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpkg/apis/k0s/v1beta1/network.go128 // Single stack IPv6 is an alpha feature, so we need to check if the feature gate is enabled, but only report it if boCOMMENT
LOWpkg/node/nodename_windows.go19 // we need to check if we have EC2 dns name availableCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMinttest/cplb-userspace/cplbuserspace_test.go246 InsecureSkipVerify: true, // Skip verification for demonstration purposesCODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/mkdocs_modules/k0s_mkdocs_hacks/macros.py35def parse_src_string_literals():CODE