AI Slop Code Risk Monitor

microsoft/windows-rs

SlopCodeMonitor badge for microsoft/windows-rs Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Rust for Windows

0.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for microsoft/windows-rs, a Rust project with 12,881 GitHub stars. SynthScan examined 1,961,850 lines of code across 3482 source files, recording 466 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 0.2 (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.

0.2
Adjusted Signal
0.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
12.9K
Stars
Rust
Language
2.0M
Lines of Code
3.5K
Files
466
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 1.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 1.2/100 · LOW

Which changes need focused human review? 466 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 1LOW 465

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 466 distinct pattern matches across 3 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 Block463 hits · 462 pts
SeverityFileLineSnippetContext
LOWcrates/tools/webview/src/main.rs21COMMENT
LOWcrates/tools/composition/src/composition.txt1// Filter for windows-composition's bindings (Windows.UI.Composition, the SYSTEMCOMMENT
LOWcrates/tools/win32/src/sal.h1// Preserve SDK annotation evidence without replacing individual SAL contracts.COMMENT
LOWcrates/tools/win32/src/sal.h21#define _SAL1_2_Source_(Name, args, annotes) __attribute__((annotate("windows_clang:sal:1.2:" #Name "\n" #args "\n" __wiCOMMENT
LOWcrates/tools/win32/src/sal.h41#undef _Valid_COMMENT
LOWcrates/tools/win32/src/sal.h61 __windows_clang_structure("_At_buffer_", #target "," #iter "," #bound "," #annos, \COMMENT
LOWcrates/tools/win32/src/wdk.rs1use super::*;COMMENT
LOWcrates/tools/package/src/lib.rs1//! Shared packaging logic for the published `windows` / `windows-sys` crates.COMMENT
LOWcrates/tools/package/src/remap.rs1//! Header-based namespace remap for the published `windows` / `windows-sys` crates.COMMENT
LOWcrates/tools/package/src/remap.rs21/// the flat winmd compiled from them, and the target namespace root the headers hang under.COMMENT
LOWcrates/tools/package/src/main.rs1use tool_package::remap;COMMENT
LOWcrates/tests/misc/no_std/src/lib.rs1#![cfg(windows)]COMMENT
LOWcrates/tests/libs/interface/src/lib.rs1#![cfg(windows)]COMMENT
LOWcrates/tests/libs/clang/input/validation_pruning.h1#ifndef FIELD_TYPECOMMENT
LOWcrates/tests/libs/clang/input/sdk_adshlp.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/macro_provenance.h1#define CHOICE 1COMMENT
LOWcrates/tests/libs/clang/input/publication_conflict.h1#ifndef TAGCOMMENT
LOWcrates/tests/libs/clang/input/opaque_packing.h1#if defined(PACK_TWO)COMMENT
LOWcrates/tests/libs/clang/input/macro_recovery.h1#define A_BAD 1); struct {COMMENT
LOWcrates/tests/libs/clang/input/reference_owned_values.h1#ifndef SHARED_CONSTANTCOMMENT
LOWcrates/tests/libs/clang/input/buffer_normalization.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/sdk_variadics.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/function_selection.h1extern "C" int NativeA(int value);COMMENT
LOWcrates/tests/libs/clang/input/enum_conflict_types.h1#ifndef BASECOMMENT
LOWcrates/tests/libs/clang/input/enum_macro_collisions.h21#define PoolAligned PoolNxAlignedCOMMENT
LOWcrates/tests/libs/clang/input/sdk_import_targets.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/sdk_import_gaps.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/annotation_merge.h1#define SAL(name, args) __attribute__((annotate( \COMMENT
LOWcrates/tests/libs/clang/input/union_family_types.h1#ifndef TAGCOMMENT
LOWcrates/tests/libs/clang/input/packing_families.h1#ifdef PACK_TWOCOMMENT
LOWcrates/tests/libs/clang/input/sdk_vss_classes.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/reference_values.h1#ifndef FIELD_TYPECOMMENT
LOWcrates/tests/libs/clang/input/macro_empty.h1#define EMPTYCOMMENT
LOWcrates/tests/libs/clang/input/macro_diagnostics.h1struct Anchor { int value; };COMMENT
LOWcrates/tests/libs/clang/input/macro_diagnostics.h21#define Q_GOOD 99COMMENT
LOWcrates/tests/libs/clang/input/macro_diagnostics.h41#define V_BAD15 Missing15COMMENT
LOWcrates/tests/libs/clang/input/macro_discovery.h1typedef unsigned short Code;COMMENT
LOWcrates/tests/libs/clang/input/rpc_strings.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/bitfields_conflict.h1#ifndef TAGCOMMENT
LOWcrates/tests/libs/clang/input/packing.h1#pragma pack(push, 1)COMMENT
LOWcrates/tests/libs/clang/input/visibility_conflict.h1#ifndef VISIBILITYCOMMENT
LOWcrates/tests/libs/clang/input/sdk_stillimage.h1#include <intsafe.h>COMMENT
LOWcrates/tests/libs/clang/input/canonical_abi.h1#if defined(_M_IX86)COMMENT
LOWcrates/tests/libs/clang/input/duplicate_functions.h1// Regression for windows-rs#4982.COMMENT
LOWcrates/tests/libs/clang/input/reserved_parameters.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/buffer_postconditions.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/anonymous_enum_b.h1#ifndef BACKINGCOMMENT
LOWcrates/tests/libs/clang/input/enum_forward.h1#define FLAGS __attribute__((annotate("windows_clang:sal:2:_Enum_is_bitflag_\n()\n()")))COMMENT
LOWcrates/tests/libs/clang/input/field_buffers.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/macro_initializers.h1#define PAIR_FIELDS 1, 2COMMENT
LOWcrates/tests/libs/clang/input/native_reference.h1#ifndef CASECOMMENT
LOWcrates/tests/libs/clang/input/alignment_conflict.h1#ifndef REQUESTCOMMENT
LOW…ates/tests/libs/clang/input/annotation_normalization.h1#ifdef LEGACYCOMMENT
LOWcrates/tests/libs/clang/input/conditional_length.h1#ifndef VERSIONCOMMENT
LOWcrates/tests/libs/clang/input/reference_callback.h1#ifndef INPUTCOMMENT
LOWcrates/tests/libs/clang/input/function_names.h1#ifndef VARIANTCOMMENT
LOWcrates/tests/libs/clang/input/primary_ambiguous.h1#ifndef NAMESCOMMENT
LOWcrates/tests/libs/clang/input/alignment_forward.h1#ifndef REQUESTCOMMENT
LOWcrates/tests/libs/clang/input/target_imports.h1extern "C" int __stdcall Available(unsigned value);COMMENT
LOW…ates/tests/libs/clang/input/macro_discovery_override.h1#undef NUMBERCOMMENT
403 more matches not shown…
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMcrates/tests/interop/tests/rust.rs9 reason = "the C++ and C# consumers use the compiled winmd and harness"CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/libs/sys/src/Windows/Win32/propkey/mod.rs2408pub const SFGAOSTR_PLACEHOLDER: windows_sys::core::PCWSTR = windows_sys::core::w!("placeholder");CODE
LOWcrates/libs/windows/src/Windows/Win32/propkey/mod.rs2408pub const SFGAOSTR_PLACEHOLDER: windows_core::PCWSTR = windows_core::w!("placeholder");CODE