Repository Analysis

matrix-construct/tuwunel

Official successor to conduwuit

2.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of matrix-construct/tuwunel, a Rust project with 2,325 GitHub stars. SynthScan v2.0 examined 160,281 lines of code across 1164 source files, recording 543 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 2.8 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).

2.8
Adjusted Score
2.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.3K
Stars
Rust
Language
160.3K
Lines of Code
1.2K
Files
543
Pattern Hits
2026-07-14
Scan Date
0.01
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 6HIGH 1MEDIUM 8LOW 528

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

Over-Commented Block505 hits · 322 pts
SeverityFileLineSnippetContext
LOWCargo.toml721COMMENT
LOWCargo.toml741opt-level = 0COMMENT
LOWCargo.toml761# '-Ztime-llvm-passes',COMMENT
LOWCargo.toml781# '-Zmir-opt-level=0',COMMENT
LOWCargo.toml801# '-Zmir-opt-level=0',COMMENT
LOWCargo.toml821# '-Zvalidate-mir=false',COMMENT
LOWtuwunel-example.toml1### Tuwunel ConfigurationCOMMENT
LOWtuwunel-example.toml21# The server_name is the pretty name of this server. It is used as aCOMMENT
LOWtuwunel-example.toml41# media. Note: this was previously "/var/lib/matrix-conduit".COMMENT
LOWtuwunel-example.toml61# "::1"]COMMENT
LOWtuwunel-example.toml81# granting world R/W permissions with `unix_socket_perms` (666 minimum).COMMENT
LOWtuwunel-example.toml101# API. To use this, set a database backup path that tuwunel can writeCOMMENT
LOWtuwunel-example.toml121#COMMENT
LOWtuwunel-example.toml141#COMMENT
LOWtuwunel-example.toml161#COMMENT
LOWtuwunel-example.toml181#COMMENT
LOWtuwunel-example.toml201#spacehierarchy_cache_ttl_min = 21600COMMENT
LOWtuwunel-example.toml221#COMMENT
LOWtuwunel-example.toml241# exotic loads of federating to many other servers require a higher TTLCOMMENT
LOWtuwunel-example.toml261# The number of seconds to wait for a reply to a DNS query. Please noteCOMMENT
LOWtuwunel-example.toml281# of UDP.COMMENT
LOWtuwunel-example.toml301#COMMENT
LOWtuwunel-example.toml321#dns_passthru_domains = []COMMENT
LOWtuwunel-example.toml341COMMENT
LOWtuwunel-example.toml361#COMMENT
LOWtuwunel-example.toml381#COMMENT
LOWtuwunel-example.toml401# previews and update/news endpoint checks.COMMENT
LOWtuwunel-example.toml421#request_idle_timeout = 5COMMENT
LOWtuwunel-example.toml441# advertise it in Accept-Encoding and transparently decompress responses.COMMENT
LOWtuwunel-example.toml461COMMENT
LOWtuwunel-example.toml481# for that server, so subsequent lookups back off instead of blockingCOMMENT
LOWtuwunel-example.toml501#COMMENT
LOWtuwunel-example.toml521#COMMENT
LOWtuwunel-example.toml541#COMMENT
LOWtuwunel-example.toml561# source. The rightmost value is used for multi-valued headers;COMMENT
LOWtuwunel-example.toml581#COMMENT
LOWtuwunel-example.toml601# if you deployed the proxy in a common bridge network with yourCOMMENT
LOWtuwunel-example.toml621#COMMENT
LOWtuwunel-example.toml641# `yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse`COMMENT
LOWtuwunel-example.toml661COMMENT
LOWtuwunel-example.toml681#COMMENT
LOWtuwunel-example.toml701COMMENT
LOWtuwunel-example.toml721COMMENT
LOWtuwunel-example.toml741# reloadable: yesCOMMENT
LOWtuwunel-example.toml761#COMMENT
LOWtuwunel-example.toml781#resolve_state_locally_shadow = falseCOMMENT
LOWtuwunel-example.toml801#COMMENT
LOWtuwunel-example.toml821#COMMENT
LOWtuwunel-example.toml841# "/_matrix/client/v3/profile/{userId}".COMMENT
LOWtuwunel-example.toml861# MSC4466 lets clients pick this per request via theCOMMENT
LOWtuwunel-example.toml881# APIs. Set this to false to protect against /publicRooms spiders.COMMENT
LOWtuwunel-example.toml901#COMMENT
LOWtuwunel-example.toml921#turn_allow_guests = falseCOMMENT
LOWtuwunel-example.toml941#COMMENT
LOWtuwunel-example.toml961# Correct operation may not be guaranteed, but incorrect operation may beCOMMENT
LOWtuwunel-example.toml981# MSC4284: ask the room's policy server to sign outgoing events. When aCOMMENT
LOWtuwunel-example.toml1001# event, on the client read endpoints. Off by default: it adds a typedCOMMENT
LOWtuwunel-example.toml1021#COMMENT
LOWtuwunel-example.toml1041#COMMENT
LOWtuwunel-example.toml1061COMMENT
445 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALsrc/api/server/well_known.rs15 server: match services.server.config.well_known.server.as_ref() {CODE
CRITICALsrc/service/oauth/server.rs83 let has_cwk = args.server.config.well_known.client.is_some();CODE
CRITICALsrc/service/oauth/providers.rs229 && let Some(server_url) = self.services.config.well_known.client.as_ref()CODE
CRITICALsrc/service/admin/execute.rs39 let smoketest = self.services.server.config.test.contains("smoke");CODE
CRITICALsrc/service/admin/mod.rs306 let Some(report_room) = self.services.server.config.report_room.as_ref() else {CODE
CRITICALsrc/service/media/mod.rs848 r.push(self.services.server.config.database_path.clone());CODE
Redundant / Tautological Comments15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtuwunel-example.toml119# Set this to any float value to multiply tuwunel's in-memory LRU cachesCOMMENT
LOWtuwunel-example.toml132# Set this to any float value in megabytes for tuwunel to tell theCOMMENT
LOWtuwunel-example.toml146# Set this to any float value in megabytes for tuwunel to tell theCOMMENT
LOWtuwunel-example.toml839# Set this to true to require authentication on the normallyCOMMENT
LOWtuwunel-example.toml870# Set this to true to allow your server's public room directory to beCOMMENT
LOWtuwunel-example.toml879# Set this to true to allow your server's public room directory to beCOMMENT
LOWtuwunel-example.toml893# Set this to false to limit results of rooms when searching by ID toCOMMENT
LOWtuwunel-example.toml923# Set this to true to lock down your server's public room directory andCOMMENT
LOWtuwunel-example.toml930# Set this to true to allow federating device display names / allowCOMMENT
LOWtuwunel-example.toml1792# Set this to false if you run the server on btrfs or ZFS, and do notCOMMENT
LOWtuwunel-example.toml1941# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml1950# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml1962# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml2853# Set this to true for excluding unencrypted rooms from the common-roomsCOMMENT
LOWdocs/deploying/docker-compose.with-traefik.yml101 TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_EMAIL: # Set this to the email you want to receive certificate expiCODE
Slop Phrases5 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMtuwunel-example.toml1494# This is more secure, but if needed you can use traditional staticCOMMENT
MEDIUMtuwunel-example.toml1663# anything, you can try mode 3 (SkipAnyCorruptedRecord) but this willCOMMENT
MEDIUMdocs/deploying/docker-compose.with-traefik.yml18 TUWUNEL_REGISTRATION_TOKEN: "" # This is a token you can use to register on the serverCODE
LOWdocs/deploying/docker-compose.for-traefik.yml61 # name, don't forget to change it here and in the docker-compose.override.ymlCOMMENT
LOWdocs/deploying/docker-compose.for-traefik.yml61 # name, don't forget to change it here and in the docker-compose.override.ymlCOMMENT
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtuwunel-example.toml392# wait is event-driven and wakes the instant the events arrive, so this isCOMMENT
MEDIUM.github/workflows/summarise/grid.sh3# and Playwright): the rendering primitives plus the driver that orchestratesCOMMENT
MEDIUM.github/workflows/summarise/grid.sh119# The orchestration shared by every grid summariser. A sourcing adapter sets theCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/service/rooms/state_res/events/member.rs15/// This is a type that deserializes each field lazily, as requested.COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocker/playwright.sh34# the harness does not provision (no-ops in docker/lib/playwright.tuwunel.ts):COMMENT
MEDIUMdocker/lib/complement-runner.sh44# resources (the patched harness reads COMPLEMENT_RUN_ID).COMMENT
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtuwunel-example.toml3009# example: "admin@example.com"COMMENT
LOWsrc/core/config/mod.rs3502 /// example: "admin@example.com"COMMENT
LOWsrc/service/sending/sender.rs674 device_id: device_id!("placeholder").to_owned(),CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/summarise/ci_timings.py83CODE
LOW.github/workflows/summarise/complement_metrics.py64CODE
LOW.github/workflows/summarise/complement_metrics.py210CODE