AI Slop Code Risk Monitor

matrix-construct/tuwunel

SlopCodeMonitor badge for matrix-construct/tuwunel Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Official successor to conduwuit

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for matrix-construct/tuwunel, a Rust project with 2,714 GitHub stars. SynthScan examined 283,191 lines of code across 1565 source files, recording 1057 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
2.7K
Stars
Rust
Language
283.2K
Lines of Code
1.6K
Files
1.1K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 13.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1042 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.2/100 · LOW

Are imports declared and package/API names verified? 15 finding(s).

Agent Over-Engineering Ratio 0.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 0 finding(s).

PR Review Velocity Impact 18.3/100 · LOW

Which changes need focused human review? 1057 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 6HIGH 1MEDIUM 15LOW 1035

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1057 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block1005 hits · 762 pts
SeverityFileLineSnippetContext
LOWCargo.toml781COMMENT
LOWCargo.toml801opt-level = 0COMMENT
LOWCargo.toml821# '-Ztime-passes',COMMENT
LOWCargo.toml841# '-Ztime-passes',COMMENT
LOWCargo.toml861# '-Ztime-passes',COMMENT
LOWCargo.toml881debug = 0COMMENT
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# The UNIX socket tuwunel will listen on.COMMENT
LOWtuwunel-example.toml101#COMMENT
LOWtuwunel-example.toml121#COMMENT
LOWtuwunel-example.toml141# May be useful if you have significant memory to spare to increaseCOMMENT
LOWtuwunel-example.toml161# This defaults to 48.0 + (4.0 * CPU core count).COMMENT
LOWtuwunel-example.toml181# `authchainkey_authchain` column family: a room event's full authCOMMENT
LOWtuwunel-example.toml201# `shorteventid_cache_capacity`.COMMENT
LOWtuwunel-example.toml221# through a large missing-ancestry gap reads this column heavily.COMMENT
LOWtuwunel-example.toml241COMMENT
LOWtuwunel-example.toml261COMMENT
LOWtuwunel-example.toml281# room state (a list of short state-info entries per state hash), usedCOMMENT
LOWtuwunel-example.toml301#COMMENT
LOWtuwunel-example.toml321# will be clamped down to this value if larger.COMMENT
LOWtuwunel-example.toml341# configured to do so.COMMENT
LOWtuwunel-example.toml361#dns_min_ttl_nxdomain = 259200COMMENT
LOWtuwunel-example.toml381# useless DNS queries if the first nameserver responds with NXDOMAIN orCOMMENT
LOWtuwunel-example.toml401#COMMENT
LOWtuwunel-example.toml421# these specific properties. This path does not support federation orCOMMENT
LOWtuwunel-example.toml441#COMMENT
LOWtuwunel-example.toml461#max_response_size = "256 MiB"COMMENT
LOWtuwunel-example.toml481#COMMENT
LOWtuwunel-example.toml501# reloadable: yesCOMMENT
LOWtuwunel-example.toml521# reloadable: yesCOMMENT
LOWtuwunel-example.toml541# reloadable: yesCOMMENT
LOWtuwunel-example.toml561COMMENT
LOWtuwunel-example.toml581#request_gzip = trueCOMMENT
LOWtuwunel-example.toml601# `zstd_compression` feature.COMMENT
LOWtuwunel-example.toml621# below `federation_timeout` so an interactive request to an unresponsiveCOMMENT
LOWtuwunel-example.toml641#COMMENT
LOWtuwunel-example.toml661#COMMENT
LOWtuwunel-example.toml681COMMENT
LOWtuwunel-example.toml701#COMMENT
LOWtuwunel-example.toml721# - "rightmost_x_forwarded_for" - nginx, CaddyCOMMENT
LOWtuwunel-example.toml741# `ip_source` is unset. Each entry is CIDR notation, includingCOMMENT
LOWtuwunel-example.toml761# WARNING: Any peer in these subnets can forge the client IP viaCOMMENT
LOWtuwunel-example.toml781# `registration_token` or `registration_token_file`.COMMENT
LOWtuwunel-example.toml801# example: "o&^uCtes4HPf0Vu@F20jQeeWE7"COMMENT
LOWtuwunel-example.toml821# Use a high-entropy value (at least 32 bytes) and treat it as aCOMMENT
LOWtuwunel-example.toml841# provisioning calls with. When set, the `/_synapse/mas/*` endpointsCOMMENT
LOWtuwunel-example.toml861# Lowering this weakens the hash against parallel cracking hardware unlessCOMMENT
LOWtuwunel-example.toml881# Number of lanes an Argon2id working buffer is divided into.COMMENT
LOWtuwunel-example.toml901# - "invite": Any room created with `private_chat` orCOMMENT
LOWtuwunel-example.toml921# the server does not hold locally, the server fetches it from a roomCOMMENT
LOWtuwunel-example.toml941# never raises one. 0 leaves the profiles unchanged.COMMENT
LOWtuwunel-example.toml961#COMMENT
LOWtuwunel-example.toml981#COMMENT
LOWtuwunel-example.toml1001# pacing entirely, pruning straight to the cap in one step.COMMENT
LOWtuwunel-example.toml1021# Rooms are fixed to the setting at the time of their creation and canCOMMENT
LOWtuwunel-example.toml1041COMMENT
LOWtuwunel-example.toml1061COMMENT
945 more matches not shown…
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALsrc/admin/server/regenerate_config.rs24 paths: self.services.server.config_sources.paths.clone(),CODE
CRITICALsrc/api/federation/well_known.rs15 server: match services.server.config.well_known.server.as_ref() {CODE
CRITICALsrc/service/oauth/server.rs102 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.rs48 let smoketest = self.services.server.config.test.contains("smoke");CODE
CRITICALsrc/service/admin/mod.rs341 let Some(report_room) = self.services.server.config.report_room.as_ref() else {CODE
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMdocker/playwright.sh31# the harness does not provision (no-ops in docker/lib/playwright.tuwunel.ts):COMMENT
MEDIUMdocker/playwright.sh138# nonzero status means the harness broke; in the single-pass shape it isCOMMENT
MEDIUMdocker/lib/complement-runner.sh44# resources (the patched harness reads COMPLEMENT_RUN_ID).COMMENT
MEDIUMsrc/main/tests/admin_revoke.rs28#[expect(dead_code)] // Only the user admin API is requested through the client harness.COMMENT
MEDIUMsrc/main/tests/appservice_request_error.rs15#[expect(dead_code)] // Only the readiness probe is used from the client harness.COMMENT
MEDIUMsrc/main/tests/email_registration_claim.rs23#[path = "email_registration_claim/harness.rs"]COMMENT
MEDIUMsrc/main/tests/smoke.rs14#[expect(dead_code)] // Only the readiness probe is used from the client harness.COMMENT
MEDIUMsrc/main/tests/appservice_unix_socket.rs32#[expect(dead_code)] // Only the readiness probe is used from the client harness.COMMENT
Redundant / Tautological Comments15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtuwunel-example.toml124# Set this to any float value to multiply tuwunel's in-memory LRU cachesCOMMENT
LOWtuwunel-example.toml137# Set this to any float value in megabytes for tuwunel to tell theCOMMENT
LOWtuwunel-example.toml151# Set this to any float value in megabytes for tuwunel to tell theCOMMENT
LOWtuwunel-example.toml1042# Set this to true to require authentication on the normallyCOMMENT
LOWtuwunel-example.toml1122# Set this to true to allow your server's public room directory to beCOMMENT
LOWtuwunel-example.toml1131# Set this to true to allow your server's public room directory to beCOMMENT
LOWtuwunel-example.toml1145# Set this to false to limit results of rooms when searching by ID toCOMMENT
LOWtuwunel-example.toml1189# Set this to true to lock down your server's public room directory andCOMMENT
LOWtuwunel-example.toml1196# Set this to true to allow federating device display names / allowCOMMENT
LOWtuwunel-example.toml2203# Set this to false if you run the server on btrfs or ZFS, and do notCOMMENT
LOWtuwunel-example.toml2370# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml2379# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml2391# Set this to true for tuwunel to compress HTTP response bodies usingCOMMENT
LOWtuwunel-example.toml3541# Set this to true for excluding unencrypted rooms from the common-roomsCOMMENT
LOWdocs/deploying/docker-compose.with-traefik.yml105 TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPT_ACME_EMAIL: # Set this to the email you want to receive certificate expiCODE
Slop Phrases5 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMtuwunel-example.toml1891# This is more secure, but if needed you can use traditional staticCOMMENT
MEDIUMtuwunel-example.toml2068# anything, you can try mode 3 (SkipAnyCorruptedRecord) but this willCOMMENT
MEDIUMdocs/deploying/docker-compose.with-traefik.yml22 TUWUNEL_REGISTRATION_TOKEN: "" # This is a token you can use to register on the serverCODE
LOWdocs/deploying/docker-compose.for-traefik.yml65 # name, don't forget to change it here and in the docker-compose.override.ymlCOMMENT
LOWdocs/deploying/docker-compose.for-traefik.yml65 # name, don't forget to change it here and in the docker-compose.override.ymlCOMMENT
Fake / Example Data9 hits · 10 pts
SeverityFileLineSnippetContext
LOWtuwunel-example.toml3706# example: "admin@example.com"COMMENT
LOWsrc/core/config/mod.rs4461 /// example: "admin@example.com"COMMENT
LOWsrc/service/sending/sender/select/device_changes.rs224 device_id: device_id!("placeholder").to_owned(),CODE
LOWsrc/service/threepid/pending.rs549 address: "user@example.com".into(),CODE
LOWsrc/service/threepid/pending.rs572 address: "user@example.com".into(),CODE
LOWsrc/main/tests/email_password_reset/scenarios.rs44const A_EMAIL: &str = "strass-reset@example.org";CODE
LOWsrc/main/tests/email_password_reset/scenarios.rs58const B_EMAIL: &str = "reset-b@example.org";CODE
LOWsrc/main/tests/email_password_reset/scenarios.rs60const C_EMAIL: &str = "reset-non-password@example.org";CODE
LOWsrc/main/tests/email_password_reset/scenarios.rs133 "missing-reset@example.org",CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtuwunel-example.toml537# 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/matrix/room/state/resolution/events/member.rs17/// This is a type that deserializes each field lazily, as requested.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtuwunel-example.toml1827# Creating a session beyond this limit evicts the oldest session insteadCOMMENT
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
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocker/seccomp-io-uring.sh17# Usage:COMMENT