AI Slop Code RIsk Monitor

rust-lang/miri

An interpreter for Rust's mid-level intermediate representation

8.6 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for rust-lang/miri, a Rust project with 6,650 GitHub stars. SynthScan examined 135,064 lines of code across 1502 source files, recording 520 pattern matches distributed across 10 syntactic categories. 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-10-11
Last Push
6.7K
Stars
Rust
Language
135.1K
Lines of Code
1.5K
Files
520
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 12.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 25.1/100 · MEDIUM

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

PR Review Velocity Impact 28.1/100 · MEDIUM

Which changes need focused human review? 520 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 0MEDIUM 182LOW 337

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 520 distinct pattern matches across 10 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.

Decorative Section Separators174 hits · 778 pts
SeverityFileLineSnippetContext
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs21 // ┌──────────────┐COMMENT
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs25 // └──────────────┘ │ │COMMENT
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs29 // ┌────────────┐ ┌────────────┐COMMENT
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs33 // └──────┬─────┘ └────────────┘COMMENT
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs37 // ┌────────────┐COMMENT
MEDIUM⚡…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs41 // └────────────┘COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs19 // ┌──────────────┐COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs23 // └──────────────┘ │COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs27 // ┌────────────┐COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs29 // │ reb(Res) ├───────────┐COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs31 // └──────┬─────┘ │COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs35 // ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…rows/wildcard/subtree_internal_relatedness_wildcard.rs39 // └────────────┘ └───────────┘COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_disable.rs15 // ┌────────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_disable.rs17 // │ ptr_base ├───────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_disable.rs19 // └──────┬─────┘ │COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_disable.rs23 // ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_disable.rs27 // └────────────┘ └───────────┘COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs19 // ┌────────────┐COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs23 // └──────┬─────┘COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs27 // ┌────────────┐COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs31 // └──────┬─────┘COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs35 // ┌────────────┐COMMENT
MEDIUM⚡…_borrows/wildcard/multi_exposed_child_unique_writer.rs39 // └────────────┘COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs19 // ┌────────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs21 // │ ptr_base ├──────────────┬───────────────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs23 // └──────┬─────┘ │ │COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs27 // ┌────────────┐ ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs31 // └────────────┘ └────────────┘ └───────────┘COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_disable.rs19 // ┌────────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_disable.rs21 // │ ptr_base ├──────────────┬───────────────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_disable.rs23 // └──────┬─────┘ │ │COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_disable.rs27 // ┌────────────┐ ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…ree_borrows/wildcard/multi_exposed_siblings_disable.rs31 // └────────────┘ └────────────┘ └───────────┘COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs15 // ┌────────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs17 // │ ptr_base ├───────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs19 // └──────┬─────┘ │COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs23 // ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs27 // └────────────┘ └───────────┘COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs18 // ┌──────────────┐COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs22 // └──────────────┘ │COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs26 // ┌────────────┐COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs28 // │ reb(Res) ├───────────┐COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs30 // └──────┬─────┘ │COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs34 // ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…/tree_borrows/wildcard/subtree_internal_relatedness.rs38 // └────────────┘ └───────────┘COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs37 // ┌───────────┐COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs40 // └─────┬─────┘ │COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs44 // ┌───────────┐ ┌───────────┐COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs47 // └─────┬─────┘ └─────┬─────┘COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs51 // ┌───────────┐ ┌───────────┐COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs54 // └─────┬─────┘ └───────────┘COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs58 // ┌───────────┐COMMENT
MEDIUM⚡tests/fail/tree_borrows/wildcard/protector_release.rs61 // └───────────┘COMMENT
MEDIUM⚡…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs30 // ┌──────────────┐COMMENT
MEDIUM⚡…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs32 // │ptr_base(Act) ├───────────┬──────────────────┐ *COMMENT
MEDIUM⚡…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs34 // └──────┬───────┘ │ │ │COMMENT
MEDIUM⚡…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs38 // ┌─────────────┐ ┌────────────┐ ┌────────────┐ ┌───────────┐COMMENT
MEDIUM⚡…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs42 // └─────────────┘ └────────────┘ └────────────┘ └───────────┘COMMENT
MEDIUM⚡…sts/fail/tree_borrows/wildcard/cross_tree_from_main.rs17 // ┌────────────┐COMMENT
114 more matches not shown…
Over-Commented Block321 hits · 319 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md121```tomlCOMMENT
LOWtest-cargo-miri/subcrate/src/lib.rs1/// Doc-test testCOMMENT
LOWtest-cargo-miri/issue-rust-86261/src/lib.rs1#![allow(unused_imports, unused_attributes)]COMMENT
LOWtest-cargo-miri/src/lib.rs1/// Doc-test testCOMMENT
LOWtest-cargo-miri/src/lib.rs21/// ```rust,compile_failCOMMENT
LOWtests/fail/no_main.rs1//@error-in-other-file: Miri can only run programs that have a main function.COMMENT
LOWtests/fail/tree_borrows/reservedim_spurious_write.rs1// Illustrating a problematic interaction between Reserved, interior mutability,COMMENT
LOWtests/fail/tree_borrows/protector-write-lazy.rs1//@compile-flags: -Zmiri-tree-borrowsCOMMENT
LOWtests/fail/tree_borrows/spurious_read.rs1// We ensure a deterministic execution.COMMENT
LOWtests/fail/tree_borrows/spurious_read.rs41// spurious read x (target only, which we are *not* executing)COMMENT
LOW…tree_borrows/subtree_traversal_skipping_diagnostics.rs1//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0COMMENT
LOW…ee_borrows/wildcard/cross_tree_update_newer_exposed.rs21 // ┌──────────────┐COMMENT
LOW…rows/wildcard/subtree_internal_relatedness_wildcard.rs21 // │ptr_base(Res)*│ *COMMENT
LOW…s/fail/tree_borrows/wildcard/single_exposed_disable.rs21 // │ │COMMENT
LOW…_borrows/wildcard/multi_exposed_child_unique_writer.rs21 // │ ref1(Res)* │COMMENT
LOW…ree_borrows/wildcard/multi_exposed_siblings_foreign.rs21 // │ ptr_base ├──────────────┬───────────────────┐COMMENT
LOW…ree_borrows/wildcard/multi_exposed_siblings_disable.rs21 // │ ptr_base ├──────────────┬───────────────────┐COMMENT
LOW…s/fail/tree_borrows/wildcard/single_exposed_foreign.rs21 // │ │COMMENT
LOW…/tree_borrows/wildcard/subtree_internal_relatedness.rs21 // │ │ │COMMENT
LOWtests/fail/tree_borrows/wildcard/protector_release.rs41 // │ │COMMENT
LOWtests/fail/tree_borrows/wildcard/protector_release.rs61 // └───────────┘COMMENT
LOW…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs21COMMENT
LOW…ws/wildcard/cross_tree_update_main_invalid_exposed2.rs41 // │ │ │ │ │ │ │ │COMMENT
LOW…sts/fail/tree_borrows/wildcard/cross_tree_from_main.rs21 // └──────┬─────┘ │ │COMMENT
LOW…ows/wildcard/cross_tree_update_main_invalid_exposed.rs21COMMENT
LOW…/fail/tree_borrows/wildcard/cross_tree_update_newer.rs21 // │ │COMMENT
LOWtests/fail/tree_borrows/wildcard/protector_release2.rs1//@compile-flags: -Zmiri-tree-borrows -Zmiri-permissive-provenanceCOMMENT
LOWtests/fail/tree_borrows/wildcard/protector_release2.rs41 // │ Cel │ Cel │ *COMMENT
LOWtests/fail/tree_borrows/wildcard/protector_release2.rs61 // │ref5*| │COMMENT
LOW…/tree_borrows/wildcard/multi_exposed_siblings_local.rs21 // ┌─────────────┐COMMENT
LOW…s/fail/tree_borrows/wildcard/cross_tree_update_main.rs21 // └──────┬─────┘ │ │COMMENT
LOW…rrows/wildcard/multi_exposed_siblings_unique_writer.rs21 // │ ptr_base ├──────────────┐COMMENT
LOW…/fail/tree_borrows/wildcard/cross_tree_update_older.rs21 // │ │COMMENT
LOWtests/fail/tree_borrows/wildcard/protected_wildcard.rs21 // │ │ │COMMENT
LOW…ws/wildcard/cross_tree_update_older_invalid_exposed.rs21 let _int3 = ref3 as *mut u32 as usize;COMMENT
LOW…ws/wildcard/cross_tree_update_older_invalid_exposed.rs41 // ┌────────────┐ ┌────────────┐COMMENT
LOWtests/fail/tree_borrows/wildcard/multi_exposed_child.rs21 let wild = int1 as *mut u32;COMMENT
LOWtests/fail/tree_borrows/wildcard/multi_exposed_child.rs41 // │ ref3(Act)* │COMMENT
LOW…s/wildcard/cross_tree_update_older_invalid_exposed2.rs21COMMENT
LOW…s/wildcard/cross_tree_update_older_invalid_exposed2.rs41 // │ │COMMENT
LOWtests/fail/match/closures/if-let-deref-in-pattern.rs1// This test serves to document the change in semantics introduced byCOMMENT
LOWtests/fail/match/closures/partial-pattern.rs1// This test serves to document the change in semantics introduced byCOMMENT
LOWtests/fail/match/closures/if-let-partial-pattern.rs1// This test serves to document the change in semantics introduced byCOMMENT
LOW…fail/stacked_borrows/retag_data_race_protected_read.rs21COMMENT
LOWtests/fail/unaligned_pointers/dyn_alignment.rs1// should find the bug even without, but gets masked by optimizationsCOMMENT
LOWtests/fail/concurrency/mutex-leak-move-deadlock.rs1//@error-in-other-file: deadlockCOMMENT
LOWtests/fail/data_race/read_write_race_stack.rs21 // the operations need to occur inCOMMENT
LOWtests/fail/data_race/write_write_race_stack.rs21 // the operations need to occur inCOMMENT
LOWtests/fail/both_borrows/drop_in_place_protector.rs1//@revisions: stack treeCOMMENT
LOW…sts/fail/both_borrows/illegal_read_despite_exposed2.rs1//@revisions: stack treeCOMMENT
LOWtests/pass/observed_local_mut.rs1// Stacked Borrows catches this (correctly) as UB.COMMENT
LOWtests/pass/float.rs21#[path = "../utils/mod.rs"]COMMENT
LOWtests/pass/float.rs461COMMENT
LOWtests/pass/float.rs1561 check_nondet(|| a.exp());COMMENT
LOWtests/pass/regions-lifetime-nonfree-late-bound.rs1// This is a regression test for the ICE from issue #10846.COMMENT
LOWtests/pass/too-large-primval-write-problem.rs1// `PrimVal`s in Miri are represented with 8 bytes (u64) and at the time of writing, the `-x`COMMENT
LOWtests/pass/enums.rs141 /// The scaled mantissa.COMMENT
LOWtests/pass/strings.rs21}COMMENT
LOWtests/pass/move-data-across-await-point.rs1use std::future::Future;COMMENT
LOWtests/pass/slices.rs201 // These regression tests (indirectly) call every slice method which contains a `buffer.as_mut_ptr()`.COMMENT
261 more matches not shown…
Verbosity Indicators7 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/pass/protector-gc.rs1// When we pop a stack frame with weak protectors, we need to check if the protected pointer'sCOMMENT
LOWsrc/helpers.rs758 // Step 1: determine the length.COMMENT
LOWsrc/helpers.rs772 // Step 2: get the bytes.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs281 // Step 1: Find granting item.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs285 // Step 2: Remove incompatible items above them. Make sure we do not remove protectedCOMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs366 // Step 1: Make a write access.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs370 // Step 2: Pretend we remove the remaining items, checking if any are strongly protected.COMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMrustfmt.toml13 # This file is copy-pasted from the tracing_chrome crate and should remain like the original.COMMENT
MEDIUMci/vm-prepare.sh5# This file is inspired from <https://github.com/rust-lang/libc>.COMMENT
MEDIUM.github/workflows/ci.yml258 # Create a token for the next step so it can create a PR that actually runs CI.COMMENT
MEDIUM.github/workflows/ci.yml292 # Create a PRCOMMENT
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOWsrc/helpers.rs758 // Step 1: determine the length.COMMENT
LOWsrc/helpers.rs772 // Step 2: get the bytes.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs281 // Step 1: Find granting item.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs285 // Step 2: Remove incompatible items above them. Make sure we do not remove protectedCOMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs366 // Step 1: Make a write access.COMMENT
LOW⚡src/borrow_tracker/stacked_borrows/mod.rs370 // Step 2: Pretend we remove the remaining items, checking if any are strongly protected.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/shims/unix/env.rs371 let arch = this.machine.tcx.sess.target.arch.desc_symbol();CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtests/pass/float.rs35/// Essentially ULP can be seen as a distance metric of floating-point numbers, but withCOMMENT
MEDIUMsrc/machine.rs1182 // Definitely not enough.COMMENT
MEDIUMsrc/borrow_tracker/tree_borrows/tree.rs368 // not yet accessed nodes exist. Essentially, we pretend thereCOMMENT
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMsrc/borrow_tracker/tree_borrows/tree_visitor.rs137 // Reverse the stack, as discussed above.COMMENT
LOWsrc/concurrency/sync.rs264 // Don't forget to write the return value.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/ci.yml232 # Check if all jobs that we depend on (in the needs array) were successful.COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest-cargo-miri/run-test.py200def test_cargo_miri_multi_target():CODE