AI Slop Code RIsk Monitor

dtolnay/anyhow

Flexible concrete Error type built on std::error::Error

8.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for dtolnay/anyhow, a Rust project with 6,677 GitHub stars. SynthScan examined 6,281 lines of code across 43 source files, recording 59 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 8.6 (Moderate 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.

8.6
Adjusted Signal
8.6
Raw Pattern Score
100%
Time Factor
2026-09-29
Last Push
6.7K
Stars
Rust
Language
6.3K
Lines of Code
43
Files
59
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 34.9/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 59 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 0.0/100 · LOW

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

PR Review Velocity Impact 37.5/100 · MEDIUM

Which changes need focused human review? 59 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 59

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 59 distinct pattern matches across 1 syntactic category. 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 Block59 hits · 54 pts
SeverityFileLineSnippetContext
LOWsrc/error.rs21 ///COMMENT
LOWsrc/error.rs41 /// instead which preserves the underlying error's cause chain andCOMMENT
LOWsrc/error.rs61 /// use anyhow::{Error, Result};COMMENT
LOWsrc/error.rs81 Error::construct_from_adhoc(message, backtrace!())COMMENT
LOWsrc/error.rs101 /// E: Into<anyhow::Error>,COMMENT
LOWsrc/error.rs121 /// }COMMENT
LOWsrc/error.rs301 /// Wrap the error value with additional context.COMMENT
LOWsrc/error.rs321 /// # }COMMENT
LOWsrc/error.rs341 /// # unimplemented!()COMMENT
LOWsrc/error.rs381COMMENT
LOWsrc/error.rs401 /// # StabilityCOMMENT
LOWsrc/error.rs421 /// object, beginning with the error that this error object was createdCOMMENT
LOWsrc/error.rs441 pub fn chain(&self) -> Chain {COMMENT
LOWsrc/error.rs501 ///COMMENT
LOWsrc/error.rs521 /// #COMMENT
LOWsrc/error.rs561 }COMMENT
LOWsrc/error.rs581 /// #![feature(error_generic_member_access)]COMMENT
LOWsrc/error.rs601 /// [`anyhow::Error::from_boxed`]: Self::from_boxedCOMMENT
LOWsrc/error.rs621 /// ```COMMENT
LOWsrc/lib.rs1//! [![github]](https://github.com/dtolnay/anyhow)&ensp;[![crates-io]](https://crates.io/crates/anyhow)&ensp;[![docs-rs]COMMENT
LOWsrc/lib.rs21//!COMMENT
LOWsrc/lib.rs41//! let config = std::fs::read_to_string("cluster.json")?;COMMENT
LOWsrc/lib.rs61//! # }COMMENT
LOWsrc/lib.rs81//! ...COMMENT
LOWsrc/lib.rs101//! # use std::task::Poll;COMMENT
LOWsrc/lib.rs121//! # let ret =COMMENT
LOWsrc/lib.rs141//!COMMENT
LOWsrc/lib.rs161//! #[error("Missing attribute: {0}")]COMMENT
LOWsrc/lib.rs181//! ```COMMENT
LOWsrc/lib.rs201//! anyhow = { version = "1.0", default-features = false }COMMENT
LOWsrc/lib.rs281 NoneCOMMENT
LOWsrc/lib.rs301/// # Display representationsCOMMENT
LOWsrc/lib.rs321/// from `fn main` instead of printing it explicitly yourself.COMMENT
LOWsrc/lib.rs341/// 1: core::result::Result<T,E>::map_errCOMMENT
LOWsrc/lib.rs361/// kind: NotFound,COMMENT
LOWsrc/lib.rs381///COMMENT
LOWsrc/lib.rs401/// use anyhow::Error;COMMENT
LOWsrc/lib.rs421/// This is a reasonable return type to use throughout your application but alsoCOMMENT
LOWsrc/lib.rs441/// ```COMMENT
LOWsrc/lib.rs461/// # return Ok(());COMMENT
LOWsrc/lib.rs481/// use std::fs;COMMENT
LOWsrc/lib.rs501/// let content = fs::read(path)COMMENT
LOWsrc/lib.rs521/// [Display representations]: Error#display-representationsCOMMENT
LOWsrc/lib.rs541/// be helpful.COMMENT
LOWsrc/lib.rs561/// # };COMMENT
LOWsrc/lib.rs581/// the application.COMMENT
LOWsrc/lib.rs601/// # };COMMENT
LOWsrc/lib.rs621COMMENT
LOWsrc/lib.rs641/// --> src/main.rs:11:13COMMENT
LOWsrc/kind.rs1// Tagged dispatch mechanism for resolving the behavior of `anyhow!($expr)`.COMMENT
LOWsrc/kind.rs21// }COMMENT
LOWsrc/macros.rs1/// Return early with an error.COMMENT
LOWsrc/macros.rs21/// # let user = 0;COMMENT
LOWsrc/macros.rs41/// # #[error("...")]COMMENT
LOWsrc/macros.rs81 /// if the condition fails. Unlike `assert!`, `ensure!` returns an `Error`COMMENT
LOWsrc/macros.rs101 /// # use thiserror::Error;COMMENT
LOWsrc/macros.rs181/// If called with a single argument whose type implements `std::error::Error`COMMENT
LOWsrc/context.rs61 F: FnOnce() -> C,COMMENT
LOWsrc/context.rs81///COMMENT