AI Slop Code RIsk Monitor

tokio-rs/toasty

An async ORM for Rust

6.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tokio-rs/toasty, a Rust project with 3,233 GitHub stars. SynthScan examined 197,930 lines of code across 1053 source files, recording 1189 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 6.2 (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.

6.2
Adjusted Signal
6.2
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.2K
Stars
Rust
Language
197.9K
Lines of Code
1.1K
Files
1.2K
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 23.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

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

Agent Over-Engineering Ratio 1.7/100 · LOW

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

PR Review Velocity Impact 27.5/100 · MEDIUM

Which changes need focused human review? 1189 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 4HIGH 0MEDIUM 23LOW 1162

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 1189 distinct pattern matches across 8 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 Block1081 hits · 1018 pts
SeverityFileLineSnippetContext
LOWcompose.yaml1# Docker Compose file to start all database management systems supported by Toasty.COMMENT
LOWcrates/toasty-cli/src/config.rs1use crate::migration::MigrationConfig;COMMENT
LOWcrates/toasty-cli/src/config.rs21/// MigrationConfig::new()COMMENT
LOWcrates/toasty-cli/src/lib.rs1#![warn(missing_docs)]COMMENT
LOWcrates/toasty-cli/src/lib.rs21//! read and write the TOML history that tracks which migrations exist.COMMENT
LOWcrates/toasty-cli/src/lib.rs41pub use migration::{COMMENT
LOWcrates/toasty-cli/src/migration/config.rs1use serde::{Deserialize, Serialize};COMMENT
LOWcrates/toasty-cli/src/migration/config.rs21/// .prefix_style(MigrationPrefixStyle::Timestamp);COMMENT
LOWcrates/toasty-cli/src/migration/config.rs41 /// Style of migration file prefixesCOMMENT
LOWcrates/toasty-cli/src/migration/config.rs61/// # ExamplesCOMMENT
LOWcrates/toasty-cli/src/migration/generate.rs21/// the most recent snapshot. If there are differences, generates a SQLCOMMENT
LOW…es/toasty-driver-integration-suite-macros/src/parse.rs41/// A `Capability` states what a backend can do, and the engine reads it toCOMMENT
LOWcrates/toasty-core/tests/stmt_eval_project.rs241 expr.eval(ConstInput::new()).unwrap(),COMMENT
LOWcrates/toasty-core/tests/stmt_eval_unimplemented.rs1//! Tests for expression variants that either:COMMENT
LOWcrates/toasty-core/src/stmt.rs1//! Statement AST types for Toasty's query compilation pipeline.COMMENT
LOWcrates/toasty-core/src/stmt.rs341pub mod visit;COMMENT
LOWcrates/toasty-core/src/error.rs41use invalid_type_conversion::InvalidTypeConversion;COMMENT
LOWcrates/toasty-core/src/error.rs61///COMMENT
LOWcrates/toasty-core/src/error.rs81/// This is used by [`Error::context`] to accept either an `Error` directly orCOMMENT
LOWcrates/toasty-core/src/error.rs121 ReadOnlyTransaction(ReadOnlyTransaction),COMMENT
LOWcrates/toasty-core/src/error.rs141 /// Panics if `consequent` already has a cause attached.COMMENT
LOWcrates/toasty-core/src/lib.rs1//! Core types and abstractions for the Toasty ORM.COMMENT
LOWcrates/toasty-core/src/lib.rs41/// Schema definitions spanning the app layer, database layer, and the mappingCOMMENT
LOWcrates/toasty-core/src/lib.rs61/// return Err(toasty_core::Error::invalid_schema("name must not be empty"));COMMENT
LOWcrates/toasty-core/src/schema.rs1//! Schema representation for Toasty, split into three layers.COMMENT
LOWcrates/toasty-core/src/schema.rs41mod name;COMMENT
LOWcrates/toasty-core/src/schema.rs61/// for (id, model) in &schema.app.models {COMMENT
LOWcrates/toasty-core/src/schema.rs81 ///COMMENT
LOWcrates/toasty-core/src/schema.rs101 ///COMMENT
LOWcrates/toasty-core/src/migration.rs1use crate::{Error, Result};COMMENT
LOWcrates/toasty-core/src/migration.rs21/// ```COMMENT
LOWcrates/toasty-core/src/migration.rs41#[derive(Debug, Clone, Serialize, Deserialize)]COMMENT
LOWcrates/toasty-core/src/migration.rs61///COMMENT
LOWcrates/toasty-core/src/migration.rs121 ///COMMENT
LOWcrates/toasty-core/src/driver.rs1//! Database driver interface for Toasty.COMMENT
LOWcrates/toasty-core/src/driver.rs21//!COMMENT
LOWcrates/toasty-core/src/driver.rs41//! the remaining idle connections and drops any that also fail. AnyCOMMENT
LOWcrates/toasty-core/src/driver.rs81COMMENT
LOWcrates/toasty-core/src/driver.rs101 /// and consult it on every operation.COMMENT
LOWcrates/toasty-core/src/driver.rs121/// assert!(capability.sql());COMMENT
LOWcrates/toasty-core/src/driver.rs141 /// this is `Some(1)` for the in-memory SQLite driver which cannot be pooled.COMMENT
LOWcrates/toasty-core/src/driver.rs161/// # ExamplesCOMMENT
LOWcrates/toasty-core/src/driver.rs181 /// mappings) is an engine concept that a driver never consults.COMMENT
LOWcrates/toasty-core/src/driver.rs201 /// to the idle set. A `false` result causes the slot to be droppedCOMMENT
LOWcrates/toasty-core/src/driver.rs221 /// When `pool_pre_ping` is enabled, the pool also calls it on everyCOMMENT
LOWcrates/toasty-core/src/macros.rs1/// Constructs a [`stmt::Path`](crate::stmt::Path) from a dot-separatedCOMMENT
LOWcrates/toasty-core/src/stmt/expr_all_op.rs1use super::{BinaryOp, Expr};COMMENT
LOWcrates/toasty-core/src/stmt/source_table.rs1use crate::stmt::{ExprArg, Source, SourceTableId, TableFactor};COMMENT
LOWcrates/toasty-core/src/stmt/func_json_extract.rs1use super::{Expr, ExprFunc, Type};COMMENT
LOWcrates/toasty-core/src/stmt/join.rs1use super::{Expr, SourceTableId};COMMENT
LOWcrates/toasty-core/src/stmt/join.rs21 pub table: SourceTableId,COMMENT
LOWcrates/toasty-core/src/stmt/func_count.rs1use super::{Expr, ExprFunc};COMMENT
LOWcrates/toasty-core/src/stmt/expr_func.rs1use super::{Expr, FuncCount, FuncJsonExtract, FuncLastInsertId};COMMENT
LOWcrates/toasty-core/src/stmt/limit.rs1use super::Expr;COMMENT
LOWcrates/toasty-core/src/stmt/limit.rs21/// Cursor-based pagination parameters.COMMENT
LOWcrates/toasty-core/src/stmt/expr_set_op.rs1use super::{ExprSet, SetOp};COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs1use crate::{COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs21 /// A reference to a column in a database-level statement.COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs41 ///COMMENT
LOWcrates/toasty-core/src/stmt/num.rs1//! Numeric type support for [`Value`], [`Expr`], and [`Type`].COMMENT
1021 more matches not shown…
Fake / Example Data75 hits · 85 pts
SeverityFileLineSnippetContext
LOWREADME.md80 name: "John Doe",CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs151 number: "555-0100".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs160 number: "555-0100".into()CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs209 number: "555-0100".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs218 number: "555-0100".into()CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs265 number: "555-0200".into(),CODE
LOW⚡…tion-suite/src/tests/embed_enum_string_discriminant.rs283 number: "555-0200".into()CODE
LOW⚡…tion-suite/src/tests/embed_enum_string_discriminant.rs291 number: "555-0300".into(),CODE
LOW⚡…tion-suite/src/tests/embed_enum_string_discriminant.rs300 number: "555-0300".into()CODE
LOW…river-integration-suite/src/tests/crud_batch_create.rs209 .item(User::create().email("user@example.com"))CODE
LOW…river-integration-suite/src/tests/crud_batch_create.rs210 .item(User::create().email("user@example.com"))CODE
LOW…r-integration-suite/src/tests/relation_has_one_crud.rs8 let user = User::create().name("Jane Doe").exec(&mut db).await?;CODE
LOW…r-integration-suite/src/tests/relation_has_one_crud.rs302 let user = User::create().name("Jane Doe").exec(&mut db).await?;CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs186 number: "555-1234".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs204 number: "555-1234".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs472 email: "user@example.com".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs480 street: "123 Main St".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs491 email: "user@example.com".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs500 street: "123 Main St".to_string(),CODE
LOW…ion-suite/src/tests/embed_enum_filter_variant_field.rs40 number: "555-1234".to_string(),CODE
LOW…driver-integration-suite/src/tests/embed_enum_index.rs121 number: "555-1234".to_string(),CODE
LOW…integration-suite/src/tests/select_projection_embed.rs30 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs162 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs170 assert_eq!(found.address.street, "123 Main St");CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs258 ("USA", "Alice", "123 Main St", "Seattle", "98101"),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs602 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs611 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs624 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs632 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs648 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs656 street: "123 Main St",CODE
LOW⚡…sty-driver-integration-suite/src/tests/embed_struct.rs1010 street: "123 Main St".to_string(),CODE
LOW⚡…sty-driver-integration-suite/src/tests/embed_struct.rs1020 street: "123 Main St",CODE
LOW⚡…sty-driver-integration-suite/src/tests/embed_struct.rs1030 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1099 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1121 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1141 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1161 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1179 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1196 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1213 street: "123 Main St",CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs400 .email("user@example.com")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs401 .name("John Doe")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs409 user.update().name("Jane Doe").exec(&mut db).await?;CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs411 assert_eq!("Jane Doe", user.name);CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs427 email: "user@example.com",CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs428 name: "John Doe",CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs437 .email("user@example.com")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs438 .name("Jane Doe")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs442 assert_eq!("user@example.com", user.email);CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs443 assert_eq!("Jane Doe", user.name);CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs461 .name("John Doe")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs468 .name("Jane Doe")CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs473 assert_eq!("Jane Doe", user.name);CODE
LOW⚡…oasty-driver-integration-suite/src/tests/crud_basic.rs477 assert_eq!("Jane Doe", user.name);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs498 let user = User::create().name("John Doe").exec(&mut db).await?;CODE
LOW…y-driver-integration-suite/src/tests/deferred_embed.rs123 number: "555-0100".to_string(),CODE
LOW…y-driver-integration-suite/src/tests/deferred_embed.rs150 assert_eq!("555-0100", number);CODE
LOW…y-driver-integration-suite/src/tests/deferred_embed.rs168 number: "555-0100".to_string(),CODE
LOW…river-integration-suite/src/tests/embed_enum_filter.rs19 number: "555-1234".to_string(),CODE
15 more matches not shown…
Decorative Section Separators21 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUMcrates/toasty/src/engine/index/tests.rs294// ── key_values extraction ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/toasty/src/engine/lower/include.rs32//! └────────────────────────────────── └── enum → process_enum_armsCOMMENT
MEDIUMtests/tests/dynamodb.rs105// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs119// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs121// ── Base table tests (composite partition + sort key) ────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs240// ── GSI tests (non-unique index on a UUID-keyed model) ───────────────────────COMMENT
MEDIUMscripts/claude-triage-pr.sh5# ------------COMMENT
MEDIUM⚡scripts/claude-triage-pr.sh51# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/claude-triage-pr.sh53# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/claude-triage-pr.sh56# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡scripts/claude-triage-pr.sh63# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh83# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh87# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh136# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh139# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh162# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh164# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh177# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh180# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh199# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh201# ---------------------------------------------------------------------------COMMENT
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALcrates/toasty/src/engine/plan/statement.rs1083 let column = self.planner.engine.schema.db.column(column_id);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs1100 let table = self.planner.engine.schema.db.table(target.table);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs2349 let table = self.planner.engine.schema.db.table(table);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs2350 let primary_key = self.planner.engine.schema.db.index(table.primary_key.index);CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/toasty-driver-postgresql/src/lib.rs279 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs291 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs312 // Step 3: Connect back to the target and clean up the temp DBCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/toasty-driver-postgresql/src/lib.rs279 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs291 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs312 // Step 3: Connect back to the target and clean up the temp DBCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/toasty/src/engine/plan/statement.rs696 // If targeting SQL, leverage the SQL query engine to handle most of the rewrite details.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/labels.yml3# This file is the source of truth for repository labels. It is synced byCOMMENT