Powerful system container and virtual machine manager
This report presents the forensic synthetic code analysis of lxc/incus, a Go project with 5,739 GitHub stars. SynthScan v2.0 examined 536,507 lines of code across 1739 source files, recording 1520 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.0 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).
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 1520 distinct pattern matches across 9 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 | cmd/generate-config/README.md | 21 | ``` | COMMENT |
| LOW | cmd/generate-config/README.md | 41 | COMMENT | |
| LOW | cmd/incus-migrate/cgo.go | 1 | // build +linux,cgo | COMMENT |
| LOW | cmd/incusd/main_forkproxy.go | 1 | package main | COMMENT |
| LOW | cmd/incusd/main_forkproxy.go | 221 | strerror(errno), sk_fds[0]); | COMMENT |
| LOW | cmd/incusd/storage_volumes_sftp.go | 21 | // | COMMENT |
| LOW | cmd/incusd/storage_volumes_sftp.go | 41 | // description: Storage volume name | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 61 | // produces: | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 81 | // description: Cluster member name | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 101 | // description: Status code | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 121 | // | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 141 | // type: string | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 161 | // description: Status description | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 261 | // tarball to the client without any intermediate operation. | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 281 | // name: project | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 501 | // produces: | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 521 | // description: Project name | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 541 | // type: string | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 601 | // swagger:operation POST /1.0/storage-pools/{poolName}/buckets/{bucketName}/backups/{backupName} storage storage_pool_b | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 621 | // type: string | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 641 | // required: true | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 741 | // consumes: | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 761 | // - in: query | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 841 | return response.InternalError(err) | COMMENT |
| LOW | cmd/incusd/storage_buckets_backup.go | 861 | // required: true | COMMENT |
| LOW | cmd/incusd/metadata.go | 21 | // | COMMENT |
| LOW | cmd/incusd/metadata.go | 41 | // type: integer | COMMENT |
| LOW | cmd/incusd/network_allocations.go | 21 | ) | COMMENT |
| LOW | cmd/incusd/network_allocations.go | 41 | // description: Project name | COMMENT |
| LOW | cmd/incusd/network_allocations.go | 61 | // example: Success | COMMENT |
| LOW | cmd/incusd/main_forkcoresched.go | 1 | package main | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 41 | Get: APIEndpointAction{Handler: clusterGroupGet, AccessHandler: allowPermission(auth.ObjectTypeServer, auth.Entitlem | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 61 | // name: cluster | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 141 | return response.SyncResponseLocation(true, nil, lc.Source) | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 161 | // type: string | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 181 | // ] | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 201 | // description: Sync response | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 281 | // | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 301 | // properties: | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 361 | }) | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 381 | // - in: path | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 461 | COMMENT | |
| LOW | cmd/incusd/api_cluster_group.go | 481 | // - in: path | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 641 | COMMENT | |
| LOW | cmd/incusd/api_cluster_group.go | 661 | // required: true | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 861 | // swagger:operation DELETE /1.0/cluster/groups/{name} cluster-groups cluster_group_delete | COMMENT |
| LOW | cmd/incusd/api_cluster_group.go | 941 | // gendoc:generate(entity=cluster_group, group=common, key=instances.vm.cpu.ARCHITECTURE.baseline) | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 41 | // - application/json | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 61 | // type: string | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 81 | // description: Status description | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 101 | COMMENT | |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 121 | // required: true | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 141 | // type: object | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 261 | // | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 281 | // description: Storage volume name | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 401 | // produces: | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 421 | // description: Bitmap name | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 441 | // type: | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 541 | if b.Name == bitmapName { | COMMENT |
| LOW | cmd/incusd/storage_volumes_bitmap.go | 561 | // - in: path | COMMENT |
| 1336 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/suites/openfga.sh | 81 | # Create an instance for testing the "instance -> user" relation. | COMMENT |
| MEDIUM | test/suites/storage_profiles.sh | 39 | # Create a new profile that provides a root device for some containers. | COMMENT |
| MEDIUM | test/suites/storage_profiles.sh | 91 | # Create a second profile. | COMMENT |
| MEDIUM | test/suites/storage_profiles.sh | 95 | # Create a third profile | COMMENT |
| MEDIUM | test/suites/network_zone.sh | 11 | # Create a network | COMMENT |
| MEDIUM | test/suites/network_zone.sh | 17 | # Create the zones | COMMENT |
| MEDIUM | test/suites/dependent_volumes.sh | 30 | # Create a blank snapshot on the volume if the instance already has a snapshot | COMMENT |
| MEDIUM | test/suites/storage.sh | 28 | # Create a storage volume with a description | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 246 | # Create a project and switch to it | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 256 | # Create a container in the project | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 261 | # Create a backup. | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 344 | # Create a new project, without the features.profiles config. | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 352 | # Create a container | COMMENT |
| MEDIUM⚡ | test/suites/projects.sh | 362 | # Create a container in the default project as well. | COMMENT |
| MEDIUM | test/suites/projects.sh | 16 | # Create a project | COMMENT |
| MEDIUM | test/suites/projects.sh | 40 | # Create a second project | COMMENT |
| MEDIUM | test/suites/projects.sh | 63 | # Create a project with a description | COMMENT |
| MEDIUM | test/suites/projects.sh | 79 | # Create a project and switch to it | COMMENT |
| MEDIUM | test/suites/projects.sh | 90 | # Create a container in the project | COMMENT |
| MEDIUM | test/suites/projects.sh | 127 | # Create a container with the same name in the default project | COMMENT |
| MEDIUM | test/suites/projects.sh | 155 | # Create a couple of projects | COMMENT |
| MEDIUM | test/suites/projects.sh | 159 | # Create a container in the project | COMMENT |
| MEDIUM | test/suites/projects.sh | 197 | # Create a project and switch to it | COMMENT |
| MEDIUM | test/suites/projects.sh | 207 | # Create a container in the project | COMMENT |
| MEDIUM | test/suites/projects.sh | 224 | # Create a snapshot in this project and another one in the default project | COMMENT |
| MEDIUM | test/suites/projects.sh | 286 | # Create a project and switch to it | COMMENT |
| MEDIUM | test/suites/projects.sh | 294 | # Create a profile in this project | COMMENT |
| MEDIUM | test/suites/projects.sh | 383 | # Create a project and switch to it | COMMENT |
| MEDIUM | test/suites/projects.sh | 441 | # Create a new project, without the features.images config. | COMMENT |
| MEDIUM | test/suites/projects.sh | 528 | # Create a container in the project | COMMENT |
| MEDIUM | test/suites/projects.sh | 545 | # Create a project | COMMENT |
| MEDIUM | test/suites/projects.sh | 597 | # Create a couple of containers in the project. | COMMENT |
| MEDIUM | test/suites/projects.sh | 630 | # Create a new profile which does not define "limits.memory". | COMMENT |
| MEDIUM | test/suites/projects.sh | 747 | # Create a custom volume without any size property defined. | COMMENT |
| MEDIUM | test/suites/projects.sh | 840 | # Create a couple of containers in the project. | COMMENT |
| MEDIUM | test/suites/projects.sh | 874 | # Create a project and switch to it | COMMENT |
| MEDIUM | test/suites/projects.sh | 1071 | # Create a profile defining resource allocations | COMMENT |
| MEDIUM | test/suites/clustering_instance_placement_scriptlet.sh | 136 | # Create an instance | COMMENT |
| MEDIUM | test/suites/image.sh | 165 | # Create an alias for the received image | COMMENT |
| MEDIUM | test/suites/backup.sh | 334 | # Create a projects | COMMENT |
| MEDIUM | test/suites/backup.sh | 527 | # Create a project | COMMENT |
| MEDIUM | test/suites/backup.sh | 675 | # Create a project. | COMMENT |
| MEDIUM | test/suites/backup.sh | 1017 | # Create an instance with snapshot. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 239 | # Create a new empty file. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 268 | # Create a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 281 | # Create a symlink and play with our options. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 297 | # Create a symlink to a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 329 | # Create a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 342 | # Create a symlink and play with our options. | COMMENT |
| MEDIUM | test/suites/filemanip.sh | 354 | # Create a symlink to a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 114 | # Create a new empty file. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 143 | # Create a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 156 | # Create a symlink and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 172 | # Create a symlink to a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 204 | # Create a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 217 | # Create a symlink and play with our options. | COMMENT |
| MEDIUM | test/suites/storage_volume_filemanip.sh | 229 | # Create a symlink to a directory and play with our options. | COMMENT |
| MEDIUM | test/suites/clustering.sh | 216 | # Create a pending network and pool, to show that they are not | COMMENT |
| MEDIUM | test/suites/clustering.sh | 472 | # Create a container on node1 using the image that was stored on | COMMENT |
| MEDIUM | test/suites/clustering.sh | 479 | # Create a container on node1 using a snapshot from node2. | COMMENT |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | cmd/incusd/network_peers.go | 214 | // Use fmt.Errorf as requested, though logging might be preferable in some contexts. | COMMENT |
| HIGH | internal/server/db/cluster/schema.go | 5 | // This code was generated by the schema.DotGo function. If you need to | COMMENT |
| HIGH | internal/server/db/schema/update.go | 66 | "// This code was generated by the schema.DotGo function. If you need to\n" + | CODE |
| HIGH | internal/server/db/node/schema.go | 5 | // This code was generated by the schema.DotGo function. If you need to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/suites/container_devices_gpu.sh | 42 | # Check if nvidia GPU exists. | COMMENT |
| LOW | test/suites/migration.sh | 327 | # Check if the file got refreshed to a different remote. | COMMENT |
| LOW | test/suites/migration.sh | 335 | # Check if the file got refreshed locally. | COMMENT |
| LOW | test/suites/image_acl.sh | 18 | # Check if the ACLs are still present | COMMENT |
| LOW | test/suites/backup.sh | 595 | # Check if hyphens cause issues when creating backups | COMMENT |
| LOW | test/suites/kernel_limits.sh | 6 | # Set it to a limit < 65536 because older systemd's do not have my nofile | COMMENT |
| LOW | test/suites/incremental_copy.sh | 35 | # Set size to check this is supported during copy. | COMMENT |
| LOW | test/suites/clustering.sh | 814 | # Set member_config to match `spawn_incus_and_join_cluster` for 'data' and `driver_config` for 'pool1'. | COMMENT |
| LOW | test/suites/remote.sh | 93 | # Check if we can see instances | COMMENT |
| LOW | test/suites/remote.sh | 109 | # Check if we can see instances in the foo project | COMMENT |
| LOW | test/suites/remote.sh | 112 | # Check if we can see instances in the default project (this should fail) | COMMENT |
| LOW | test/includes/storage.sh | 143 | # Check if block.create_options are applied. | COMMENT |
| LOW | test/includes/incusd.sh | 135 | # Check if already killed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | cmd/incus/utils_properties_test.go | 100 | Name: "John Doe", | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 104 | setFieldByJSONTag(&ts, "name", "Jane Doe") | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 105 | s.Equal("Jane Doe", ts.Name) | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 110 | Name: "John Doe", | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 114 | setFieldByJSONTag(&ts, "invalid name", "Jane Doe") | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 115 | s.NotEqual(ts.Name, "Jane Doe") | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 120 | Name: "John Doe", | CODE |
| LOW | cmd/incus/utils_properties_test.go | 131 | Name: "John Doe", | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 150 | "name": "John Doe", | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 160 | s.Equal("John Doe", ws.Name) | CODE |
| LOW⚡ | cmd/incus/utils_properties_test.go | 170 | "name": "John Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/mini-oidc/storage/storage.go | 20 | // the corresponding private key is in the service-key1.json (for demonstration purposes) | COMMENT |
| MEDIUM | test/mini-oidc/storage/storage.go | 159 | // for demonstration purposes we'll check we'll have a simple user store and | COMMENT |
| LOW | …/server/instance/drivers/agent-loader/install-macos.sh | 35 | echo "Don't forget to allow full disk access to sh." | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/suites/init_preseed.sh | 16 | # creating a zfs storage pool, otherwise just use dir. | COMMENT |
| LOW | test/suites/storage_driver_truenas.sh | 194 | # FIXME: when deletes aren't so slow, just use `incus rm -f c1 c3 c11 c21 c4 c5` | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doc/conf.py | 1 | CODE | |
| LOW | doc/conf.py | 4 | CODE | |
| LOW | doc/conf.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ernal/server/storage/drivers/driver_linstor_volumes.go | 933 | // snapshot, we need to check if the given snapshot is the latest one. | COMMENT |