AI Slop Code Risk Monitor

sunface/rust-by-practice

SlopCodeMonitor badge for sunface/rust-by-practice Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Rust By Practice will evolve into Origin.

3.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for sunface/rust-by-practice, a Rust project with 14,809 GitHub stars. SynthScan examined 29,450 lines of code across 281 source files, recording 81 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 3.1 (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.1
Adjusted Signal
3.1
Raw Pattern Score
100%
Time Factor
2026-08-24
Last Push
14.8K
Stars
Rust
Language
29.4K
Lines of Code
281
Files
81
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 12.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 2.7/100 · LOW

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

PR Review Velocity Impact 14.6/100 · LOW

Which changes need focused human review? 81 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 0HIGH 0MEDIUM 6LOW 75

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 81 distinct pattern matches across 2 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 Block75 hits · 75 pts
SeverityFileLineSnippetContext
LOWsolutions/compound-types/enum.md141 fn prepend(self, elem: u32) -> List {COMMENT
LOWzh-CN/assets/mini-redis/examples/pub.rs1//! Publish to a redis channel example.COMMENT
LOWzh-CN/assets/mini-redis/examples/hello_world.rs1//! Hello world server.COMMENT
LOWzh-CN/assets/mini-redis/examples/sub.rs1//! Subscribe to a redis channel example.COMMENT
LOWzh-CN/assets/mini-redis/src/shutdown.rs1use tokio::sync::broadcast;COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs1//! Minimal blocking Redis client implementationCOMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs21 inner: crate::client::Client,COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs41}COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs61/// ```no_runCOMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs81COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs101 pub fn get(&mut self, key: &str) -> crate::Result<Option<Bytes>> {COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs121 /// let mut client = blocking_client::connect("localhost:6379").unwrap();COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs141 /// If key already holds a value, it is overwritten. Any previous time toCOMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs161 ///COMMENT
LOWzh-CN/assets/mini-redis/src/blocking_client.rs181 }COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs21///COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs61///COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs81COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs101 /// #[tokio::main]COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs121 //COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs141 ///COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs161 // used to set a value with an expiration. The common parts of bothCOMMENT
LOWzh-CN/assets/mini-redis/src/client.rs181 /// favorable.COMMENT
LOWzh-CN/assets/mini-redis/src/client.rs241 /// There is no guarantee that these subscribers receive the message as theyCOMMENT
LOWzh-CN/assets/mini-redis/src/lib.rs1//! A minimal (i.e. very incomplete) implementation of a Redis server andCOMMENT
LOWzh-CN/assets/mini-redis/src/lib.rs61///COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs21 /// Contains the key / value store as well as the broadcast channels forCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs41 /// Broadcasts a shutdown signal to all active connections.COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs61 /// `shutdown_complete_rx.recv()` completing with `None`. At this point, itCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs81 /// When `Listener` receives an inbound connection, the `TcpStream` isCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs101 /// which point the connection is terminated.COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs121COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs141 // Initialize the listener stateCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs161 //COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs201 // Drop final `Sender` so the `Receiver` below can completeCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs221 /// operating system has reached an internal limit for max number ofCOMMENT
LOWzh-CN/assets/mini-redis/src/server.rs241 //COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs321 /// written back to the socket.COMMENT
LOWzh-CN/assets/mini-redis/src/server.rs361 //COMMENT
LOWzh-CN/assets/mini-redis/src/db.rs21/// `Db` contains a `HashMap` storing the key/value data and allCOMMENT
LOWzh-CN/assets/mini-redis/src/db.rs41 /// not a Tokio mutex. This is because there are no asynchronous operationsCOMMENT
LOWzh-CN/assets/mini-redis/src/db.rs61struct State {COMMENT
LOWzh-CN/assets/mini-redis/src/db.rs161COMMENT
LOWzh-CN/assets/mini-redis/src/db.rs241 // broadcast channel and associate it with the key. If one alreadyCOMMENT
LOWzh-CN/assets/mini-redis/src/parse.rs1use crate::Frame;COMMENT
LOWzh-CN/assets/mini-redis/src/buffer.rs1use crate::client::Client;COMMENT
LOWzh-CN/assets/mini-redis/src/buffer.rs41}COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs1use crate::frame::{self, Frame};COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs41 buffer: BytesMut::with_capacity(4 * 1024),COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs81 }COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs101 // received.COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs121 let frame = Frame::parse(&mut buf)?;COMMENT
LOWzh-CN/assets/mini-redis/src/connection.rs141 Err(Incomplete) => Ok(None),COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs41 }COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs61 /// SUBSCRIBE channel [channel ...]COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs81 Ok(s) => channels.push(s),COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs101 /// [here]: https://redis.io/topics/pubsubCOMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs201COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs281}COMMENT
LOWzh-CN/assets/mini-redis/src/cmd/subscribe.rs301 /// On success, the `Unsubscribe` value is returned. If the frame isCOMMENT
15 more matches not shown…
Decorative Section Separators6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUM⚡solutions/lifetime/basic.md7 let i = 3; // Lifetime for `i` starts. ────────────────┐CODE
MEDIUM⚡solutions/lifetime/basic.md13 } // `borrow1 ends. ──────────────────────────────────┘│CODE
MEDIUM⚡solutions/lifetime/basic.md20 } // `borrow2` ends. ─────────────────────────────────┘│CODE
MEDIUM⚡solutions/lifetime/basic.md22} // Lifetime ends. ─────────────────────────────────────┘CODE
MEDIUMzh-CN/src/lifetime/basic.md20 } // `borrow1` 生命周期结束. ──────────────────────────────────┘CODE
MEDIUMen/src/lifetime/basic.md20 } // `borrow1 ends. ──────────────────────────────────┘CODE