Repository Analysis

kubernetes-sigs/kubespray

Deploy a Production Ready Kubernetes Cluster

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kubernetes-sigs/kubespray, a Jinja project with 18,605 GitHub stars. SynthScan v2.0 examined 50,981 lines of code across 823 source files, recording 175 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 3.7 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).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
18.6K
Stars
Jinja
Language
51.0K
Lines of Code
823
Files
175
Pattern Hits
2026-07-14
Scan Date
0.00
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 0HIGH 0MEDIUM 5LOW 170

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 175 distinct pattern matches across 8 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.

Over-Commented Block150 hits · 150 pts
SeverityFileLineSnippetContext
LOWtests/scripts/vagrant-install.sh1#!/bin/bashCOMMENT
LOWtests/scripts/vagrant-install.sh21# echo \COMMENT
LOWtests/scripts/vagrant-install.sh41PYTHONDONTWRITEBYTECODE=1COMMENT
LOWtests/files/custom_cni/cilium.yaml41 # nodes by setting how they are stored. The options are "crd", "kvstore" orCOMMENT
LOWtests/files/custom_cni/cilium.yaml81 # address.COMMENT
LOWtests/files/custom_cni/cilium.yaml101COMMENT
LOWtests/files/custom_cni/cilium.yaml121 bpf-lb-algorithm-annotation: "false"COMMENT
LOWtests/files/custom_cni/cilium.yaml141 #COMMENT
LOW…es/kubernetes-apps/csi_driver/cinder/defaults/main.yml21cinder_domain_id: "{{ lookup('env', 'OS_USER_DOMAIN_ID') }}"COMMENT
LOWroles/kubernetes-apps/ansible/defaults/main.yml41# localCOMMENT
LOWroles/kubernetes-apps/ansible/defaults/main.yml81# dns_autoscaler_extra_tolerations: [{effect: NoSchedule, operator: "Exists"}]COMMENT
LOWroles/network_plugin/calico_defaults/defaults/main.yml101# Calico NFTable Mode Support (tech preview 3.29)COMMENT
LOWroles/network_plugin/flannel/defaults/main.yml1---COMMENT
LOWroles/network_plugin/cilium/defaults/main.yml41cilium_enable_portmap: falseCOMMENT
LOWroles/network_plugin/cilium/defaults/main.yml61# You wil also have to specify the variable `cilium_native_routing_cidr` toCOMMENT
LOWroles/network_plugin/cilium/defaults/main.yml81# Enable transparent network encryption.COMMENT
LOWroles/network_plugin/cilium/defaults/main.yml161COMMENT
LOWroles/network_plugin/cilium/defaults/main.yml221COMMENT
LOWroles/network_plugin/cilium/defaults/main.yml241# Available for Cilium v1.12 and up.COMMENT
LOWroles/network_plugin/cilium/defaults/main.yml261# Available for Cilium v1.10 and upCOMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml221# Deploy cilium even if kube_network_plugin is not cilium.COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml261#COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml281ipv6_stack: "{{ enable_dual_stack_networks | default(false) }}"COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml321kube_api_aggregator_routing: falseCOMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml401# Rotate container stderr/stdout logs at 50m and keep last 5COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml481gateway_api_enabled: falseCOMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml521COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml541 enabled: "{{ kube_api_anonymous_auth }}"COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml561## 'RBAC' modes are tested. Order is important.COMMENT
LOWroles/kubespray_defaults/defaults/main/main.yml581# webhook:COMMENT
LOWroles/etcd_defaults/defaults/main.yml41COMMENT
LOWroles/etcd_defaults/defaults/main.yml81# Maximum number of snapshot files to retain (0 is unlimited)COMMENT
LOWroles/etcd_defaults/defaults/main.yml101# - TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHACOMMENT
LOWroles/kubernetes/node/defaults/main.yml101COMMENT
LOWroles/kubernetes/node/defaults/main.yml141kube_read_only_port: 0COMMENT
LOWroles/kubernetes/node/defaults/main.yml161# - TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384COMMENT
LOWroles/kubernetes/kubeadm_common/defaults/main.yml1---COMMENT
LOW…/kubernetes/control-plane/defaults/main/kube-proxy.yml61kube_proxy_min_sync_period: 0sCOMMENT
LOWroles/kubernetes/control-plane/defaults/main/main.yml61audit_log_maxage: 30COMMENT
LOWroles/kubernetes/control-plane/defaults/main/main.yml101kube_apiserver_pod_eviction_unreachable_timeout_seconds: "300"COMMENT
LOWroles/kubernetes/control-plane/defaults/main/main.yml161kube_webhook_authorization: falseCOMMENT
LOWroles/kubernetes/control-plane/defaults/main/main.yml201kube_encrypt_token: "{{ lookup('password', credentials_dir + '/kube_encrypt_token.creds length=32 chars=ascii_letters,diCOMMENT
LOWroles/kubernetes/control-plane/defaults/main/main.yml221# - TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHACOMMENT
LOWroles/container-engine/containerd/defaults/main.yml81containerd_cfg_dir: /etc/containerdCOMMENT
LOWroles/container-engine/cri-o/defaults/main.yml21# mirrors:COMMENT
LOWdocs/calico_peer_example/new-york.yml1# ---COMMENT
LOWdocs/calico_peer_example/paris.yml1# ---COMMENT
LOWcontrib/terraform/terraform.py1#!/usr/bin/env python3COMMENT
LOWinventory/sample/inventory.ini1# This inventory describe a HA typology with stacked etcd (== same nodes as control plane)COMMENT
LOWinventory/sample/group_vars/all/azure.yml1## When azure is used, you need to also set the following variables.COMMENT
LOWinventory/sample/group_vars/all/azure.yml21## Azure Disk CSI credentials and parametersCOMMENT
LOWinventory/sample/group_vars/all/cri-o.yml1# Registries defined within cri-o.COMMENT
LOWinventory/sample/group_vars/all/hcloud.yml1## Values for the external Hcloud Cloud ControllerCOMMENT
LOWinventory/sample/group_vars/all/hcloud.yml21# load_balancers_enabled:COMMENT
LOWinventory/sample/group_vars/all/containerd.yml1---COMMENT
LOWinventory/sample/group_vars/all/containerd.yml21# options:COMMENT
LOWinventory/sample/group_vars/all/containerd.yml41COMMENT
LOWinventory/sample/group_vars/all/all.yml1---COMMENT
LOWinventory/sample/group_vars/all/all.yml21# valid options are "nginx" or "haproxy"COMMENT
LOWinventory/sample/group_vars/all/all.yml41# - 8.8.4.4COMMENT
90 more matches not shown…
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMcontrib/terraform/aws/modules/nlb/main.tf1# Create a new AWS NLB for K8S APICOMMENT
MEDIUMcontrib/terraform/aws/modules/nlb/main.tf14# Create a new AWS NLB Instance Target GroupCOMMENT
MEDIUMcontrib/terraform/aws/modules/nlb/main.tf31# Create a new AWS NLB Listener listen to target groupCOMMENT
MEDIUM…b/terraform/upcloud/modules/kubernetes-cluster/main.tf2 # Create a list of all disks to createCOMMENT
Redundant / Tautological Comments6 hits · 9 pts
SeverityFileLineSnippetContext
LOWroles/kubespray_defaults/defaults/main/main.yml9# Check if access_ip responds to ping. Set false if your firewall blocks ICMP.COMMENT
LOWcontrib/aws_inventory/kubespray-aws-inventory.py21 ##Check if VPC_VISIBILITY is set, if not default to privateCOMMENT
LOWinventory/sample/group_vars/all/all.yml94## Set true to download and cache containerCOMMENT
LOWinventory/sample/group_vars/all/all.yml112## Check if access_ip responds to ping. Set false if your firewall blocks ICMP.COMMENT
LOWinventory/sample/group_vars/all/etcd.yml15# Set this to docker if you are using container_manager: dockerCOMMENT
LOWscripts/gen_docs_sidebar.sh16 # Check if it is a directoryCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWplugins/modules/kube.py310CODE
LOWtests/scripts/md-table/main.py55CODE
LOWlibrary/kube.py310CODE
LOWcontrib/terraform/terraform.py41CODE
LOWcontrib/terraform/terraform.py62CODE
LOWscripts/openstack-cleanup/main.py27CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWplugins/modules/kube.py363CODE
LOWlibrary/kube.py363CODE
LOWcontrib/aws_inventory/kubespray-aws-inventory.py3CODE
LOWscripts/openstack-cleanup/main.py6CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/files/custom_cni/cilium.yaml52 # for seamless migrations from the kvstore mode to the crd mode. Consult theCOMMENT
Excessive Try-Catch Wrapping3 hits · 2 pts
SeverityFileLineSnippetContext
LOWplugins/modules/kube.py160 except Exception as exc:STRING
LOWlibrary/kube.py160 except Exception as exc:STRING
LOWscripts/openstack-cleanup/main.py50 except Exception as ex:CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…nent_hash_update/src/component_hash_update/download.py30logger = logging.getLogger(__name__)CODE