🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
This report presents the forensic synthetic code analysis of spantaleev/matrix-docker-ansible-deploy, a Jinja project with 6,428 GitHub stars. SynthScan v2.0 examined 64,833 lines of code across 632 source files, recording 401 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 7.0 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 401 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 | conf.py | 1 | # SPDX-FileCopyrightText: 2024 Slavi Pantaleev <slavi@devture.com> | COMMENT |
| LOW | bin/add-inventory-host.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | bin/ansible-all-hosts.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 1 | # SPDX-FileCopyrightText: 2020 - 2022 Aaron Raimist | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 41 | matrix_client_element_container_src_dockerfile_path: "{{ matrix_client_element_container_src_files_path }}/apps/web/Dock | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 101 | # matrix_client_element_container_labels_additional_labels: | | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 141 | # Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 281 | COMMENT | |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 301 | # Note that for a custom theme to work well, all Element Web instances that you use must have the same theme installed. | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 321 | # | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 341 | COMMENT | |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 361 | # If you need something more special, you can take full control by | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 381 | # "attribution": "", | COMMENT |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 401 | COMMENT | |
| LOW | roles/custom/matrix-client-element/defaults/main.yml | 421 | # ELEMENT_WEB_PORT=8080 | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 61 | # Authentication settings (`user.*` configuration keys). | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 81 | # Controls the `user.device_id` configuration setting. | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 101 | # - Set this variable to something like `/data/avatar.png` (the in-container path) | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 121 | # - Restart the bot | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 141 | # Example: | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 161 | # Changing this subsequently requires that you also throw away all data (see `matrix_bot_baibot_data_path`) | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 281 | matrix_bot_baibot_config_agents_static_definitions_groq_config_extension: "{{ matrix_bot_baibot_config_agents_static_def | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 341 | # This configuration extends the default starting configuration (`matrix_bot_baibot_config_agents_static_definitions_m | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 361 | # See: https://huggingface.co/docs/transformers/en/tasks/prompting | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 461 | matrix_bot_baibot_config_agents_static_definitions_venice_config: "{{ matrix_bot_baibot_config_agents_static_definitions | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 501 | # omitted from the request and Venice applies its own server-side default. Set a value to override. | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 601 | # Image editing shares this image_generation config block; only the model differs. | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 621 | # | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 641 | # It only affects the first run of the bot. Configuration is later managed at runtime. | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 661 | # | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 681 | # Affects the logging level of the bot itself. | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 701 | # | COMMENT |
| LOW | roles/custom/matrix-bot-baibot/defaults/main.yml | 721 | # matrix_bot_baibot_restart_necessary controls whether the service | COMMENT |
| LOW | roles/custom/matrix-conduit/defaults/main.yml | 41 | # Controls how long to sleep for after starting the matrix-synapse container. | COMMENT |
| LOW | roles/custom/matrix-conduit/defaults/main.yml | 161 | # This value is automatically computed during installation based on whether | COMMENT |
| LOW | roles/custom/matrix-bot-buscarron/defaults/main.yml | 201 | # will be restarted (when true) or merely started (when false) by the | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 1 | # SPDX-FileCopyrightText: 2023 - 2024 Michael Hollister | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 61 | # Controls whether the matrix-media-repo container exposes its HTTP port (tcp/8000 in the container). | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 221 | | combine ({'X-Forwarded-Host': matrix_domain} if matrix_domain else {}) | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 241 | # ***************************************************************************** | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 261 | matrix_media_repo_json_logs: false | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 281 | # media repo will back off. This defaults to 20 if not given. Note that 404 errors from | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 341 | # be proxied through this process. They will also be called on the homeserver, and the response | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 361 | COMMENT | |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 381 | # # A note about regexes: it is best to suffix *all* namespaces with the homeserver | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 401 | # Shared secret auth is useful for applications building on top of the media repository, such | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 421 | # previous behavior of this role. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 441 | COMMENT | |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 461 | # | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 481 | COMMENT | |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 501 | # when `publicBaseUrl` is unset. Defaults to false (cached media will be served by MMR | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 521 | # of any file upload limits and will require a similar amount of memory when performing an export. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 541 | # This is purely for informational reasons and does not actually limit any functionality. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 561 | # Whether quotas are enabled/enforced. Note that even when disabled the media repo will | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 581 | # will prevent upload. Note that a user can still have uploads contributing to maxPending, | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 601 | # has passed, the media is able to be re-requested. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 641 | COMMENT | |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 681 | matrix_media_repo_url_previews_default_language: "en-US,en" | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 781 | COMMENT | |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 801 | # The number of bytes to "drain" from the bucket every minute. | COMMENT |
| 310 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | docs/configuring-playbook-user-verification-service.md | 70 | It is possible to set an API Auth Token to restrict access to the UVS. If this is enabled, anyone making a request to UV | CODE |
| HIGH⚡ | docs/configuring-playbook-user-verification-service.md | 72 | By default, the token (`YOUR_TOKEN_HERE`) will be derived from `matrix_homeserver_generic_secret_key` in `group_vars/mat | CODE |
| HIGH⚡ | docs/configuring-playbook-user-verification-service.md | 74 | To set your own token, add the following configuration to your `vars.yml` file. Make sure to replace `YOUR_TOKEN_HERE` w | CODE |
| HIGH⚡ | docs/configuring-playbook-user-verification-service.md | 77 | matrix_user_verification_service_uvs_auth_token: "YOUR_TOKEN_HERE" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | roles/custom/matrix-client-commet/defaults/main.yml | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | roles/custom/matrix-client-commet/defaults/main.yml | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | roles/custom/matrix-client-commet/defaults/main.yml | 87 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | roles/custom/matrix-client-commet/defaults/main.yml | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | roles/custom/matrix-client-commet/defaults/main.yml | 95 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | roles/custom/matrix-client-commet/defaults/main.yml | 97 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 406 | # Set this to true to enable shared secret auth. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 542 | # Set this to -1 to indicate that there is no limit. Zero will force the use of maxBytes. | COMMENT |
| LOW | roles/custom/matrix-media-repo/defaults/main.yml | 776 | # Set this to false if rate limiting is handled at a higher level or you don't want it enabled. | COMMENT |
| LOW | roles/custom/matrix-bot-draupnir/defaults/main.yml | 149 | # Set this to the Pantalaimon URL if you're using that. | COMMENT |
| LOW | roles/custom/matrix-bot-mjolnir/defaults/main.yml | 74 | # Set this to the pantalaimon URL if you're using that. | COMMENT |
| LOW | …es/custom/matrix-bridge-heisenbridge/defaults/main.yml | 28 | # Set this to your Matrix ID if you want to enforce the owner, otherwise first _local_ user becomes one | COMMENT |
| LOW | …tom/matrix-user-verification-service/defaults/main.yml | 13 | # Set this to the display name for ansible used in Output e.g. fail_msg | COMMENT |
| LOW | roles/custom/matrix-synapse/defaults/main.yml | 1425 | # Set this to false if you still want to disable to API for some reason. Note that doing so breaks Element X compatibili | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | roles/custom/matrix-bridge-sms/defaults/main.yml | 92 | # (optional) if you use a self signed certificate, you can add the public key here | COMMENT |
| LOW | roles/custom/matrix-synapse/vars/main.yml | 157 | # don't forget to actually configure it where appropriate (see worker.yaml.j2`, the nginx proxy configuration, etc). | COMMENT |
| LOW | roles/custom/matrix-synapse/vars/main.yml | 157 | # don't forget to actually configure it where appropriate (see worker.yaml.j2`, the nginx proxy configuration, etc). | COMMENT |
| MEDIUM | roles/custom/matrix-synapse/defaults/main.yml | 735 | # By default, all of the server's memory is taken into account, but you can adjust this. | COMMENT |
| MEDIUM | examples/reverse-proxies/haproxy/haproxy.cfg | 44 | # HAproxy wants the full chain and the private key in one file. For Letsencrypt manually generated certs (e.g., wild | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bin/rebuild-mautrix-meta-instagram.sh | 40 | # Create the README.md file with the license header | COMMENT |
| MEDIUM | roles/custom/matrix-synapse/vars/main.yml | 197 | # The following section contains content that had previously been generated by a script (`workers-doc-to-yaml.awk`) proc | COMMENT |
| MEDIUM | collections/requirements.yml | 2 | # This file is not used by the playbook's standard CLI installation flow. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/configuring-playbook-bot-baibot.md | 410 | # In this example, there's no need to define any of these below. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | roles/custom/matrix-base/defaults/main.yml | 276 | # They are meant for orchestration concerns like container networking and systemd ordering, | COMMENT |
| MEDIUM | roles/custom/matrix-base/defaults/main.yml | 285 | # It is meant for orchestration concerns like container networking, systemd ordering, and database creation, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | roles/custom/matrix-synapse/defaults/main.yml | 51 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …/tasks/validate_config_sqlite_legacy_migration_bug.yml | 54 | except Exception: | CODE |