Repository Analysis

purpleidea/mgmt

Next generation distributed, event-driven, parallel config management!

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of purpleidea/mgmt, a Go project with 4,292 GitHub stars. SynthScan v2.0 examined 179,116 lines of code across 805 source files, recording 1127 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 6.6 places this repository in the Low AI signal 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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-07-12
Last Push
4.3K
Stars
Go
Language
179.1K
Lines of Code
805
Files
1.1K
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 2MEDIUM 21LOW 1104

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 1127 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.

Over-Commented Block1083 hits · 1072 pts
SeverityFileLineSnippetContext
LOWdoc.go1// MgmtCOMMENT
LOWdoc.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWmain.go1// MgmtCOMMENT
LOWmisc/fpm-repo.sh1#!/usr/bin/env bashCOMMENT
LOWmisc/fpm-repo.sh61COMMENT
LOWmisc/sigtee.go1// MgmtCOMMENT
LOWmisc/sigtee.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWmisc/filter-golang-stack.py1#!/usr/bin/env python3COMMENT
LOWmisc/gomodupgrade.sh1#!/usr/bin/env bashCOMMENT
LOWmisc/gomodupgrade.sh21# If you modify this program, or any covered work, by linking or combining itCOMMENT
LOWmisc/fpm-pack.sh1#!/usr/bin/env bashCOMMENT
LOWtools/tools.go1// MgmtCOMMENT
LOWtools/tools.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWtools/grow.go1// MgmtCOMMENT
LOWpgraph/graphviz.go1// MgmtCOMMENT
LOWpgraph/graphviz.go61 // path. It (awkwardly) can be used by someone expecting either aCOMMENT
LOWpgraph/graphviz.go121// https://en.wikipedia.org/wiki/DOT_%28graph_description_language%29COMMENT
LOWpgraph/pgraph.go1// MgmtCOMMENT
LOWpgraph/util_test.go1// MgmtCOMMENT
LOWpgraph/graphsync_bench_test.go1// MgmtCOMMENT
LOWpgraph/graphsync_bench_test.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWpgraph/selfvertex.go1// MgmtCOMMENT
LOWpgraph/selfvertex.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWpgraph/subgraph_test.go1// MgmtCOMMENT
LOWpgraph/pgraph_bench_test.go1// MgmtCOMMENT
LOWpgraph/graphsync.go1// MgmtCOMMENT
LOWpgraph/simpleedge.go1// MgmtCOMMENT
LOWpgraph/subgraph.go1// MgmtCOMMENT
LOWpgraph/subgraph.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWpgraph/subgraph.go61COMMENT
LOWpgraph/graphsync_test.go1// MgmtCOMMENT
LOWpgraph/pgraph_test.go1// MgmtCOMMENT
LOWpgraph/pgraph_test.go821 t.Errorf("should have error during GraphCmp, but got nil")COMMENT
LOWtest/test-golangci-lint.sh241glc="$glc --enable=bodyclose"COMMENT
LOWtest/test-golangci-lint.sh261glc="$glc --enable=exptostd"COMMENT
LOWtest/test-golangci-lint.sh301glc="$glc --enable=misspell"COMMENT
LOWtest/test-gometalinter.sh21# TODO: run more linters here if we're brave...COMMENT
LOWtest/test-gomod.sh1#!/usr/bin/env bashCOMMENT
LOWtest/test-gomod.sh21# If you modify this program, or any covered work, by linking or combining itCOMMENT
LOWtest/test-markdownlint.sh1#!/usr/bin/env bashCOMMENT
LOWtest/tools/reflowed-comments/main.go1// MgmtCOMMENT
LOWtest/tools/reflowed-comments/main_test.go1// MgmtCOMMENT
LOWtest/tools/receiver-check/main.go1// MgmtCOMMENT
LOWutil/log.go1// MgmtCOMMENT
LOWutil/log.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWutil/afero_test.go1// MgmtCOMMENT
LOWutil/systemd_unit.go1// MgmtCOMMENT
LOWutil/systemd_unit.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWutil/error.go1// MgmtCOMMENT
LOWutil/home.go1// MgmtCOMMENT
LOWutil/generics_test.go1// MgmtCOMMENT
LOWutil/infinitechan.go1// MgmtCOMMENT
LOWutil/infinitechan.go21// with embedded mcl code and modules (and that the embedded mcl code andCOMMENT
LOWutil/user.go1// MgmtCOMMENT
LOWutil/user_test.go1// MgmtCOMMENT
LOWutil/interfaces.go1// MgmtCOMMENT
LOWutil/sync.go1// MgmtCOMMENT
LOWutil/sync.go181// SubscribedSignal represents a synchronized read signal. It doesn't need to beCOMMENT
LOWutil/sync.go241COMMENT
LOWutil/util_test.go1// MgmtCOMMENT
1023 more matches not shown…
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtest/test-omv.sh2# simple test harness for testing mgmt via omvCOMMENT
MEDIUMtest/test-shell.sh2# simple test harness for testing mgmtCOMMENT
MEDIUMutil/afero.go111// TODO: this should be made more rsync like and robust!COMMENT
MEDIUMutil/afero.go156// TODO: this should be made more rsync like and robust!COMMENT
MEDIUMlang/types/value.go216 // possible for the other cases is a more robust approach!COMMENT
MEDIUMetcd/etcd.go40// robust, battle-test etcd cluster, then manage your own, and point each mgmtCOMMENT
MEDIUMengine/reverse.go39// subsequent one. This is helpful for building robust programs with the engine.COMMENT
MEDIUMengine/resources/firewalld.go130// is not a replacement for a modern, robust tool like `shorewall`, but it hasCOMMENT
MEDIUMengine/resources/hetzner_vm.go661 // TODO: more robust comparison of keylistsCOMMENT
MEDIUMengine/graph/exporter.go88 // the usual CheckApply step would run, we end up with a more nuancedCOMMENT
TODO Padding16 hits · 24 pts
SeverityFileLineSnippetContext
LOWpgraph/graphviz.go222 // TODO: implement meCOMMENT
LOWintegration/basic_test.go164 // TODO: implement a simple test for documentation purposesCOMMENT
LOWlang/types/value_test.go654 // TODO: implement ValueOf tests for TypeFuncCOMMENT
LOWlang/types/type_test.go1767 // TODO: implement testing of the TypeOf functionCOMMENT
LOWlang/types/type_test.go1768 // TODO: implement testing TypeOf for struct field name mappingsCOMMENT
LOWlang/core/fmt/printf.go465// TODO: implement better format errors supportCOMMENT
LOWlang/interfaces/metadata.go173// md := obj.Copy() // TODO: implement meCOMMENT
LOWlib/main.go817 //Prometheus: prom, // TODO: implement this via a general Status APICOMMENT
LOWengine/resources/http_server_proxy.go128 // TODO: Add tests for the Path+Sub+Head+Cache path math stuffCOMMENT
LOWengine/resources/file.go119 //traits.Groupable // TODO: implement thisCOMMENT
LOWengine/resources/msg.go212 // TODO: implement syslog clientCOMMENT
LOWengine/resources/password.go389 Hashing string // TODO: implement meCODE
LOWengine/graph/autogroup/autogroup_test.go117 // TODO: implement this in vertexCmp for *testGrouper instead?COMMENT
LOWengine/local/local.go334 // TODO: implement ctx cancellationCOMMENT
LOWengine/local/local.go359 // TODO: implement ctx cancellationCOMMENT
LOWengine/local/local.go378 // TODO: implement ctx cancellationCOMMENT
Modern AI Meta-Vocabulary7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMlang/funcs/operators/operators.go614 // It's okay if scaffold.C is nil.COMMENT
MEDIUMlang/funcs/operators/operators.go827 // XXX: get these from the scaffoldCOMMENT
MEDIUMlang/funcs/multi/multi.go45// RegisteredFuncs maps a function name to the corresponding function scaffold.COMMENT
MEDIUMlang/funcs/multi/multi.go202// scaffold make function field.COMMENT
MEDIUMlang/funcs/simple/simple.go54// RegisteredFuncs maps a function name to the corresponding function scaffold.COMMENT
MEDIUMlang/funcs/simple/simple.go118 // It's okay if scaffold.C is nil.COMMENT
MEDIUMlang/funcs/simple/simple.go227// is suitable for use in the scaffold check function field.COMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHmisc/centos-ci.py51omv = 'wget https://github.com/purpleidea/oh-my-vagrant/raw/master/extras/install-omv.sh && chmod u+x install-omv.sh && CODE
HIGHmisc/centos-ci.py61git = "git clone --recursive %s %s && cd %s && git checkout %s" % (git_url, folder, folder, branch)CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtest/test-mclfmt.sh15#F="misc/TODO.mcl" # TODO: you can add single files like this...COMMENT
MEDIUMmodules/grafana/files/ldap.toml72# If you want to match all (or no ldap groups) then you can use wildcardCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMlang/core/funcgen.yaml1# This file is used by github.com/purpleidea/mgmt/lang/funcs/funcgen/ toCOMMENT
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtest/shell/file-source.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temporCODE
LOWtest/shell/file-source.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temporCODE
LOWlang/types/type.go1323 // match simple "placeholder" variants... skip variants w/ sub typesCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest.sh3# Usage:COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWetcd/fs/fs.go718 // XXX: do we need to check if dest path is inside src path?COMMENT