Next generation distributed, event-driven, parallel config management!
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doc.go | 1 | // Mgmt | COMMENT |
| LOW | doc.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | main.go | 1 | // Mgmt | COMMENT |
| LOW | misc/fpm-repo.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | misc/fpm-repo.sh | 61 | COMMENT | |
| LOW | misc/sigtee.go | 1 | // Mgmt | COMMENT |
| LOW | misc/sigtee.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | misc/filter-golang-stack.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | misc/gomodupgrade.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | misc/gomodupgrade.sh | 21 | # If you modify this program, or any covered work, by linking or combining it | COMMENT |
| LOW | misc/fpm-pack.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/tools.go | 1 | // Mgmt | COMMENT |
| LOW | tools/tools.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | tools/grow.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphviz.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphviz.go | 61 | // path. It (awkwardly) can be used by someone expecting either a | COMMENT |
| LOW | pgraph/graphviz.go | 121 | // https://en.wikipedia.org/wiki/DOT_%28graph_description_language%29 | COMMENT |
| LOW | pgraph/pgraph.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/util_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync_bench_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync_bench_test.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/selfvertex.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/selfvertex.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/subgraph_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_bench_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/graphsync.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/simpleedge.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/subgraph.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/subgraph.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | pgraph/subgraph.go | 61 | COMMENT | |
| LOW | pgraph/graphsync_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_test.go | 1 | // Mgmt | COMMENT |
| LOW | pgraph/pgraph_test.go | 821 | t.Errorf("should have error during GraphCmp, but got nil") | COMMENT |
| LOW | test/test-golangci-lint.sh | 241 | glc="$glc --enable=bodyclose" | COMMENT |
| LOW | test/test-golangci-lint.sh | 261 | glc="$glc --enable=exptostd" | COMMENT |
| LOW | test/test-golangci-lint.sh | 301 | glc="$glc --enable=misspell" | COMMENT |
| LOW | test/test-gometalinter.sh | 21 | # TODO: run more linters here if we're brave... | COMMENT |
| LOW | test/test-gomod.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/test-gomod.sh | 21 | # If you modify this program, or any covered work, by linking or combining it | COMMENT |
| LOW | test/test-markdownlint.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | test/tools/reflowed-comments/main.go | 1 | // Mgmt | COMMENT |
| LOW | test/tools/reflowed-comments/main_test.go | 1 | // Mgmt | COMMENT |
| LOW | test/tools/receiver-check/main.go | 1 | // Mgmt | COMMENT |
| LOW | util/log.go | 1 | // Mgmt | COMMENT |
| LOW | util/log.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | util/afero_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/systemd_unit.go | 1 | // Mgmt | COMMENT |
| LOW | util/systemd_unit.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | util/error.go | 1 | // Mgmt | COMMENT |
| LOW | util/home.go | 1 | // Mgmt | COMMENT |
| LOW | util/generics_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/infinitechan.go | 1 | // Mgmt | COMMENT |
| LOW | util/infinitechan.go | 21 | // with embedded mcl code and modules (and that the embedded mcl code and | COMMENT |
| LOW | util/user.go | 1 | // Mgmt | COMMENT |
| LOW | util/user_test.go | 1 | // Mgmt | COMMENT |
| LOW | util/interfaces.go | 1 | // Mgmt | COMMENT |
| LOW | util/sync.go | 1 | // Mgmt | COMMENT |
| LOW | util/sync.go | 181 | // SubscribedSignal represents a synchronized read signal. It doesn't need to be | COMMENT |
| LOW | util/sync.go | 241 | COMMENT | |
| LOW | util/util_test.go | 1 | // Mgmt | COMMENT |
| 1023 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test-omv.sh | 2 | # simple test harness for testing mgmt via omv | COMMENT |
| MEDIUM | test/test-shell.sh | 2 | # simple test harness for testing mgmt | COMMENT |
| MEDIUM | util/afero.go | 111 | // TODO: this should be made more rsync like and robust! | COMMENT |
| MEDIUM | util/afero.go | 156 | // TODO: this should be made more rsync like and robust! | COMMENT |
| MEDIUM | lang/types/value.go | 216 | // possible for the other cases is a more robust approach! | COMMENT |
| MEDIUM | etcd/etcd.go | 40 | // robust, battle-test etcd cluster, then manage your own, and point each mgmt | COMMENT |
| MEDIUM | engine/reverse.go | 39 | // subsequent one. This is helpful for building robust programs with the engine. | COMMENT |
| MEDIUM | engine/resources/firewalld.go | 130 | // is not a replacement for a modern, robust tool like `shorewall`, but it has | COMMENT |
| MEDIUM | engine/resources/hetzner_vm.go | 661 | // TODO: more robust comparison of keylists | COMMENT |
| MEDIUM | engine/graph/exporter.go | 88 | // the usual CheckApply step would run, we end up with a more nuanced | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pgraph/graphviz.go | 222 | // TODO: implement me | COMMENT |
| LOW | integration/basic_test.go | 164 | // TODO: implement a simple test for documentation purposes | COMMENT |
| LOW | lang/types/value_test.go | 654 | // TODO: implement ValueOf tests for TypeFunc | COMMENT |
| LOW | lang/types/type_test.go | 1767 | // TODO: implement testing of the TypeOf function | COMMENT |
| LOW | lang/types/type_test.go | 1768 | // TODO: implement testing TypeOf for struct field name mappings | COMMENT |
| LOW | lang/core/fmt/printf.go | 465 | // TODO: implement better format errors support | COMMENT |
| LOW | lang/interfaces/metadata.go | 173 | // md := obj.Copy() // TODO: implement me | COMMENT |
| LOW | lib/main.go | 817 | //Prometheus: prom, // TODO: implement this via a general Status API | COMMENT |
| LOW | engine/resources/http_server_proxy.go | 128 | // TODO: Add tests for the Path+Sub+Head+Cache path math stuff | COMMENT |
| LOW | engine/resources/file.go | 119 | //traits.Groupable // TODO: implement this | COMMENT |
| LOW | engine/resources/msg.go | 212 | // TODO: implement syslog client | COMMENT |
| LOW | engine/resources/password.go | 389 | Hashing string // TODO: implement me | CODE |
| LOW | engine/graph/autogroup/autogroup_test.go | 117 | // TODO: implement this in vertexCmp for *testGrouper instead? | COMMENT |
| LOW | engine/local/local.go | 334 | // TODO: implement ctx cancellation | COMMENT |
| LOW | engine/local/local.go | 359 | // TODO: implement ctx cancellation | COMMENT |
| LOW | engine/local/local.go | 378 | // TODO: implement ctx cancellation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lang/funcs/operators/operators.go | 614 | // It's okay if scaffold.C is nil. | COMMENT |
| MEDIUM | lang/funcs/operators/operators.go | 827 | // XXX: get these from the scaffold | COMMENT |
| MEDIUM | lang/funcs/multi/multi.go | 45 | // RegisteredFuncs maps a function name to the corresponding function scaffold. | COMMENT |
| MEDIUM | lang/funcs/multi/multi.go | 202 | // scaffold make function field. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 54 | // RegisteredFuncs maps a function name to the corresponding function scaffold. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 118 | // It's okay if scaffold.C is nil. | COMMENT |
| MEDIUM | lang/funcs/simple/simple.go | 227 | // is suitable for use in the scaffold check function field. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | misc/centos-ci.py | 51 | omv = 'wget https://github.com/purpleidea/oh-my-vagrant/raw/master/extras/install-omv.sh && chmod u+x install-omv.sh && | CODE |
| HIGH | misc/centos-ci.py | 61 | git = "git clone --recursive %s %s && cd %s && git checkout %s" % (git_url, folder, folder, branch) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/test-mclfmt.sh | 15 | #F="misc/TODO.mcl" # TODO: you can add single files like this... | COMMENT |
| MEDIUM | modules/grafana/files/ldap.toml | 72 | # If you want to match all (or no ldap groups) then you can use wildcard | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | lang/core/funcgen.yaml | 1 | # This file is used by github.com/purpleidea/mgmt/lang/funcs/funcgen/ to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/shell/file-source.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| LOW | test/shell/file-source.txt | 1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | CODE |
| LOW | lang/types/type.go | 1323 | // match simple "placeholder" variants... skip variants w/ sub types | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test.sh | 3 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | etcd/fs/fs.go | 718 | // XXX: do we need to check if dest path is inside src path? | COMMENT |