AI Slop Code Risk Monitor

rust-lang/mdBook

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

Create book from markdown files. Like Gitbook but implemented in Rust

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for rust-lang/mdBook, a Rust project with 22,254 GitHub stars. SynthScan examined 33,140 lines of code across 650 source files, recording 51 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 1.5 (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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
22.3K
Stars
Rust
Language
33.1K
Lines of Code
650
Files
51
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 6.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 7.4/100 · LOW

Which changes need focused human review? 51 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 0LOW 51

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 51 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 Block44 hits · 44 pts
SeverityFileLineSnippetContext
LOWcrates/mdbook-core/src/config.rs1//! Mdbook's configuration system.COMMENT
LOWcrates/mdbook-core/src/config.rs21//! authors = ["Michael-F-Bryan"]COMMENT
LOWcrates/mdbook-core/src/config.rs61#[serde(default, deny_unknown_fields)]COMMENT
LOWcrates/mdbook-core/src/config.rs121 /// created by removing the `MDBOOK_` prefix and turning the resultingCOMMENT
LOWcrates/mdbook-core/src/config.rs261 /// Set a config key, clobbering any existing values along the way.COMMENT
LOWcrates/mdbook-core/src/config.rs341#[serde(default, rename_all = "kebab-case", deny_unknown_fields)]COMMENT
LOWcrates/mdbook-core/src/config.rs461}COMMENT
LOWcrates/mdbook-core/src/config.rs481 E2021,COMMENT
LOWcrates/mdbook-core/src/config.rs501 pub preferred_dark_theme: Option<BuiltinTheme>,COMMENT
LOWcrates/mdbook-core/src/config.rs521 pub code: Code,COMMENT
LOWcrates/mdbook-core/src/config.rs541 /// as required by GitHub Pages (see [*Managing a custom domain for yourCOMMENT
LOWcrates/mdbook-core/src/config.rs641 }COMMENT
LOWcrates/mdbook-core/src/config.rs701pub struct Search {COMMENT
LOWcrates/mdbook-core/src/config.rs781COMMENT
LOWcrates/mdbook-core/src/book.rs1//! A tree structure representing a book.COMMENT
LOWcrates/mdbook-core/src/book.rs141pub struct Chapter {COMMENT
LOWcrates/mdbook-core/src/utils/fs.rs41///COMMENT
LOWcrates/mdbook-core/src/utils/fs.rs181COMMENT
LOWcrates/mdbook-renderer/src/lib.rs21COMMENT
LOWcrates/mdbook-renderer/src/lib.rs41 /// Which version of `mdbook` did this come from (as written in `mdbook`'sCOMMENT
LOWcrates/mdbook-html/src/html/tree.rs161pub(crate) struct MarkdownTreeBuilder<'opts, 'event, EventIter> {COMMENT
LOWcrates/mdbook-html/src/html/tree.rs181 table_alignments: Vec<Alignment>,COMMENT
LOWcrates/mdbook-html/src/html/mod.rs1//! HTML rendering support.COMMENT
LOWcrates/mdbook-markdown/src/lib.rs1//! Markdown processing used in mdBook.COMMENT
LOWcrates/mdbook-driver/src/lib.rs1//! High-level library for running mdBook.COMMENT
LOWcrates/mdbook-driver/src/lib.rs21//! - [`mdbook_html`]: The HTML renderer.COMMENT
LOWcrates/mdbook-driver/src/lib.rs41//! let root_dir = "/path/to/book/root";COMMENT
LOWcrates/mdbook-driver/src/mdbook.rs121 /// BookItem::Chapter(ref chapter) => {},COMMENT
LOWcrates/mdbook-driver/src/mdbook.rs141 /// and its accompanying directory structure.COMMENT
LOWcrates/mdbook-driver/src/mdbook.rs341 if !chapter_found {COMMENT
LOWcrates/mdbook-driver/src/mdbook.rs361 /// Otherwise if there are multiple:COMMENT
LOWcrates/mdbook-driver/src/builtin_preprocessors/links.rs21///COMMENT
LOWcrates/mdbook-preprocessor/src/lib.rs21pub use mdbook_core::errors;COMMENT
LOWcrates/mdbook-summary/src/lib.rs21///COMMENT
LOWcrates/mdbook-summary/src/lib.rs41/// will be numbered and can be nested, resulting in a nice hierarchy (chapters,COMMENT
LOWcrates/mdbook-summary/src/lib.rs141 fn from(other: Link) -> SummaryItem {COMMENT
LOWcrates/mdbook-summary/src/lib.rs161/// part ::= title dotted_item+COMMENT
LOW…/includes/all_includes/src/nested-test-with-anchors.rs1// This is a test of includes with anchors.COMMENT
LOWtests/testsuite/rendering/hidelines/src/hide-lines.md21#COMMENT
LOW…s/testsuite/rendering/header_links/src/header_links.md1# Header LinksCOMMENT
LOWtests/gui/books/sidebar-scroll/src/chapter_35.md1# Chapter 35COMMENT
LOWtests/gui/books/sidebar-scroll/src/chapter_35.md21## Heading SCOMMENT
LOWtests/gui/books/sidebar-scroll/src/chapter_10.md1# Chapter 10COMMENT
LOWtests/gui/books/sidebar-scroll/src/chapter_10.md21## Heading SCOMMENT
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWguide/src/format/configuration/general.md10authors = ["John Doe"]CODE
LOWguide/src/format/configuration/general.md59authors = ["John Doe", "Jane Doe"]CODE
LOWguide/src/format/configuration/general.md59authors = ["John Doe", "Jane Doe"]CODE
LOWguide/src/format/configuration/renderers.md93authors = ["John Doe", "Jane Doe"]CODE
LOWguide/src/format/configuration/renderers.md93authors = ["John Doe", "Jane Doe"]CODE
LOW…e/includes/all_includes/expected/multiline-issues.html20<p>Lorum ipsum dolor sit amet.</p>CODE
LOW…estsuite/includes/all_includes/src/multiline/issues.md15Lorum ipsum dolor sit amet.CODE