AI Slop Code Risk Monitor

rustls/rustls

SlopCodeMonitor badge for rustls/rustls Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A modern TLS library in Rust

3.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rustls/rustls, a Rust project with 7,723 GitHub stars. SynthScan examined 91,409 lines of code across 244 source files, recording 272 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 3.3 (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.3
Adjusted Signal
3.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
7.7K
Stars
Rust
Language
91.4K
Lines of Code
244
Files
272
Pattern Hits
2026-10-31
Scan Date
0.01
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.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 1.5/100 · LOW

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

PR Review Velocity Impact 15.0/100 · LOW

Which changes need focused human review? 272 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 1HIGH 1MEDIUM 6LOW 264

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 272 distinct pattern matches across 4 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 Block264 hits · 258 pts
SeverityFileLineSnippetContext
LOWrustls-aws-lc-rs/src/hpke.rs601 EncapsulatedSecret(enc.as_ref().into()),COMMENT
LOWrustls-aws-lc-rs/src/kx.rs121COMMENT
LOWrustls-aws-lc-rs/src/kx.rs181 /// The corresponding ring agreement::AlgorithmCOMMENT
LOWrustls-aws-lc-rs/src/lib.rs1//! A `CryptoProvider` implementation backed by *aws-lc-rs*.COMMENT
LOWrustls-aws-lc-rs/src/lib.rs181 fips()COMMENT
LOWrustls-aws-lc-rs/src/verify.rs281/// > When any of these four object identifiers appears within anCOMMENT
LOWrustls-aws-lc-rs/src/verify.rs301/// > When any of these four object identifiers appears within anCOMMENT
LOWadmin/threads-seq.rs1#!/usr/bin/env -S cargo +nightly --quiet -ZscriptCOMMENT
LOWrustls-ring/src/kx.rs21 /// The IANA "TLS Supported Groups" name of the groupCOMMENT
LOWrustls-ring/src/ticketer.rs101 return None;COMMENT
LOWrustls-ring/src/verify.rs161 signature_alg_id: alg_id::RSA_PKCS1_SHA512,COMMENT
LOWrustls-ring/src/verify.rs181 )),COMMENT
LOWrustls-ring/src/verify.rs201 )),COMMENT
LOWrustls-post-quantum/src/lib.rs1//! This crate provides a [`CryptoProvider`] built on the default aws-lc-rs provider,COMMENT
LOWrustls-test/tests/key_log_file_env/tests.rs1//! Tests of [`rustls::KeyLogFile`] that require us to set environment variables.COMMENT
LOWrustls-test/benches/verifybench.rs1//! This program does benchmarking of the functions in verify.rs,COMMENT
LOWrustls-test/src/lib.rs1041COMMENT
LOWrustls-util/src/stream.rs1#![allow(clippy::std_instead_of_core)] // awaits core::io::IoSlice in stable (1.98)COMMENT
LOWrustls-util/src/stream.rs281 .map_err(|err| Error::new(ErrorKind::InvalidData, err))COMMENT
LOWrustls-util/src/stream.rs301COMMENT
LOWrustls-util/src/lib.rs21/// What this means depends on the connection state:COMMENT
LOWrustls-util/src/key_log_file.rs81COMMENT
LOWexamples/src/bin/simple-0rtt-client.rs1//! This is an example client that uses rustls for TLS, and sends early 0-RTT data.COMMENT
LOWexamples/src/bin/tls-client-mio.rs1//! This is an example client that uses rustls for TLS, and [mio] for I/O.COMMENT
LOWexamples/src/bin/tls-client-mio.rs221}COMMENT
LOWexamples/src/bin/tls-client-mio.rs241 #[clap(long)]COMMENT
LOWexamples/src/bin/ech-client.rs1//! This is a simple example demonstrating how to use Encrypted Client Hello (ECH) withCOMMENT
LOWexamples/src/bin/ech-client.rs181/// Connects to the TLS server at hostname:PORT. The default PORTCOMMENT
LOWexamples/src/bin/ech-client.rs221 /// Skip looking up an ECH config and read it from the provided file (in binary TLS encoding).COMMENT
LOWexamples/src/bin/simple-0rtt-server.rs1//! This is an example server that streams 0-RTT early data from the client.COMMENT
LOWexamples/src/bin/server-acceptor.rs341/// the client identity being included or excluded in the revocationCOMMENT
LOWexamples/src/bin/tls-server-mio.rs1//! This is an example server that uses rustls for TLS, and [mio] for I/O.COMMENT
LOWexamples/src/bin/tls-server-mio.rs441/// `forward` means the server forwards plaintext to a connection made to `localhost:fport`.COMMENT
LOWexamples/src/bin/tls-server-mio.rs461 #[clap(long)]COMMENT
LOWci-bench/src/util.rs361 //!COMMENT
LOWci-bench/src/main.rs41COMMENT
LOWrustls/src/tls12.rs21/// A TLS 1.2 cipher suite supported by rustls.COMMENT
LOWrustls/src/tls12.rs41 /// If you have a TLS1.2 PRF implementation, you should directly implement the [`crypto::tls12::Prf`] trait.COMMENT
LOWrustls/src/quic.rs101 /// [`Accepted::client_hello()`] and providing it to [`Accepted::choose_config()`].COMMENT
LOWrustls/src/quic.rs201 /// While the transport parameters are available before the handshake completes,COMMENT
LOWrustls/src/quic.rs601 /// [Header Protection Sample].COMMENT
LOWrustls/src/quic.rs621 first: &mut u8,COMMENT
LOWrustls/src/quic.rs661 /// Takes a `packet_number` and optional `path_id`, used to derive the nonce; the packetCOMMENT
LOWrustls/src/quic.rs701 /// `confidentiality_limit` packets, an attacker gains an advantage in distinguishing itCOMMENT
LOWrustls/src/quic.rs881///COMMENT
LOWrustls/src/x509.rs121 #[test]COMMENT
LOWrustls/src/lib.rs1//! # Rustls - a modern TLS libraryCOMMENT
LOWrustls/src/lib.rs21//! [`crypto::CryptoProvider`]: crate::crypto::CryptoProviderCOMMENT
LOWrustls/src/lib.rs41//! (for example, it does not support post-quantum algorithms).COMMENT
LOWrustls/src/lib.rs61//!COMMENT
LOWrustls/src/lib.rs81//! [PROVIDERS.md]: https://github.com/rustls/rustls/blob/main/PROVIDERS.mdCOMMENT
LOWrustls/src/lib.rs101//!COMMENT
LOWrustls/src/lib.rs121//!COMMENT
LOWrustls/src/lib.rs141//! [`webpki_roots`]: https://crates.io/crates/webpki-rootsCOMMENT
LOWrustls/src/lib.rs161//! # use std::sync::Arc;COMMENT
LOWrustls/src/lib.rs181//! data to send to the peer -- such as `build()` above and `client.read_tls()` --COMMENT
LOWrustls/src/lib.rs201//!COMMENT
LOWrustls/src/lib.rs221//! # fn connect(_address: &str, _port: u16) -> Socket {COMMENT
LOWrustls/src/lib.rs241//! if !sent_request && !client.is_handshaking() {COMMENT
LOWrustls/src/lib.rs261//!COMMENT
204 more matches not shown…
Decorative Section Separators6 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM⚡rustls/src/conn/split.rs369/// ╭────────────────╮COMMENT
MEDIUM⚡rustls/src/conn/split.rs370/// ╭───────▶│ ReceiveTraffic │COMMENT
MEDIUM⚡rustls/src/conn/split.rs371/// │ ╰───────┬────────╯COMMENT
MEDIUM⚡rustls/src/conn/split.rs374/// ╰────╭───────────────────────╮COMMENT
MEDIUM⚡rustls/src/conn/split.rs376/// ╭───▶╰──┬────────────────────╯COMMENT
MEDIUM⚡rustls/src/conn/split.rs381/// ╰───────┴──────────────╯COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALrustls/src/client/tls13.rs1534 session_storage: st.hs.config.resumption.store.clone(),CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHrustls/src/error/mod.rs1609 /// producing no output as requested.)COMMENT