AI Slop Code Risk Monitor

LuckyPennySoftware/MediatR

SlopCodeMonitor badge for LuckyPennySoftware/MediatR Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Simple, unambitious mediator implementation in .NET

3.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for LuckyPennySoftware/MediatR, a C# project with 11,860 GitHub stars. SynthScan examined 14,166 lines of code across 166 source files, recording 45 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.2
Adjusted Signal
3.2
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
11.9K
Stars
C#
Language
14.2K
Lines of Code
166
Files
45
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 14.7/100 · LOW

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

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

PR Review Velocity Impact 14.7/100 · LOW

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

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 45 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 Block34 hits · 34 pts
SeverityFileLineSnippetContext
LOWsamples/MediatR.Examples.Windsor/Program.cs41 container.Register(fromAssemblyContainingPing.BasedOn(typeof(IRequestExceptionHandler<,,>)).WithServiceAllInterfCOMMENT
LOWsamples/MediatR.Examples.Windsor/Program.cs61 // ?.IsAssignableTo(typeof(IRequestExceptionHandler<,,>)) ?? false;COMMENT
LOW…/MediatR.Examples.PublishStrategies/PublishStrategy.cs1namespace MediatR.Examples.PublishStrategies;COMMENT
LOWsrc/MediatR.Contracts/IRequest.cs1namespace MediatR;COMMENT
LOWsrc/MediatR.Contracts/Unit.cs21 public static Task<Unit> Task { get; } = System.Threading.Tasks.Task.FromResult(_value);COMMENT
LOWsrc/MediatR.Contracts/Unit.cs41 /// A value that indicates the relative order of the objects being compared.COMMENT
LOWsrc/MediatR.Contracts/Unit.cs61 /// <returns>COMMENT
LOWsrc/MediatR.Contracts/Unit.cs81 public static bool operator ==(Unit first, Unit second) => true;COMMENT
LOWsrc/MediatR/IStreamPipelineBehavior.cs1COMMENT
LOWsrc/MediatR/IStreamPipelineBehavior.cs21{COMMENT
LOWsrc/MediatR/IPipelineBehavior.cs1COMMENT
LOWsrc/MediatR/IPipelineBehavior.cs21{COMMENT
LOWsrc/MediatR/IPublisher.cs1using System.Threading;COMMENT
LOWsrc/MediatR/IPublisher.cs21 /// </summary>COMMENT
LOWsrc/MediatR/ISender.cs21 /// <summary>COMMENT
LOWsrc/MediatR/ISender.cs41 /// <typeparam name="TResponse"></typeparam>COMMENT
LOWsrc/MediatR/IRequestHandler.cs1using System.Threading;COMMENT
LOWsrc/MediatR/IRequestHandler.cs21}COMMENT
LOWsrc/MediatR/IStreamRequestHandler.cs1using System.Collections.Generic;COMMENT
LOWsrc/MediatR/Pipeline/IRequestPreProcessor.cs1namespace MediatR.Pipeline;COMMENT
LOWsrc/MediatR/Pipeline/IRequestPostProcessor.cs1namespace MediatR.Pipeline;COMMENT
LOWsrc/MediatR/Pipeline/IRequestExceptionHandler.cs21 /// <param name="exception">The thrown exception</param>COMMENT
LOWsrc/MediatR/Pipeline/RequestExceptionHandlerState.cs1namespace MediatR.Pipeline;COMMENT
LOW…R/MicrosoftExtensionsDI/OpenBehaviorClosingStrategy.cs1namespace Microsoft.Extensions.DependencyInjection;COMMENT
LOW…R/MicrosoftExtensionsDI/OpenBehaviorClosingStrategy.cs21 /// from the service interface when the service provider is built.COMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs21 /// Mediator implementation type to register. Default is <see cref="Mediator"/>COMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs61 /// List of stream behaviors to register in specific orderCOMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs81 /// Configure the maximum number of type parameters that a generic request handler can have. To Disable this constraCOMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs101 /// Flag that controlls whether MediatR will attempt to register handlers that containg generic type parameters.COMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs161 /// <summary>COMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs281 /// </summary>COMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs441 /// Register a closed request post processor typeCOMMENT
LOW…R/MicrosoftExtensionsDI/MediatrServiceConfiguration.cs461 return this;COMMENT
LOWsrc/MediatR/Entities/OpenBehavior.cs21 OpenBehaviorType = openBehaviorType;COMMENT
Hyper-Verbose Identifiers11 hits · 11 pts
SeverityFileLineSnippetContext
LOWtest/MediatR.Tests/SendTests.cs120 public class TestClass1PingRequestHandler : IRequestHandler<VoidGenericPing<PongExtension>>CODE
LOWtest/MediatR.Tests/SendTests.cs149 public class MultipleGenericTypeParameterRequestHandler<T1, T2, T3> : IRequestHandler<MultipleGenericTypeParameterReCODE
LOWtest/MediatR.Tests/SendTests.cs185 public class TimeoutRequestHandler : IRequestHandler<TimeoutRequest>CODE
LOWtest/MediatR.Tests/MicrosoftExtensionsDI/Handlers.cs222 class OpenGenericVoidRequestHandler<T> : IRequestHandler<OpenGenericVoidRequest<T>>CODE
LOWtest/MediatR.Tests/MicrosoftExtensionsDI/Handlers.cs230 class OpenGenericReturnTypeRequestHandler<T> : IRequestHandler<OpenGenericReturnTypeRequest<T>, string>CODE
LOW…t/MediatR.Tests/MicrosoftExtensionsDI/PipelineTests.cs902 public sealed class FooRequestHandler : IRequestHandler<FooRequest> {CODE
LOW…oftExtensionsDI/OpenGenericConstraintInferenceTests.cs23 public class TxStreamRequestHandler : IStreamRequestHandler<TxStreamRequest, Pong>CODE
LOW…oftExtensionsDI/OpenGenericConstraintInferenceTests.cs189 public class LinkRequestHandler : IRequestHandler<LinkRequest, LinkResponse>CODE
LOW…oftExtensionsDI/OpenGenericConstraintInferenceTests.cs244 public class DualFooRequestHandler : IRequestHandler<DualFooRequest, Pong>CODE
LOW…oftExtensionsDI/OpenGenericConstraintInferenceTests.cs255 public class DualBarRequestHandler : IRequestHandler<DualBarRequest, Pong>CODE
LOW…oftExtensionsDI/OpenGenericConstraintInferenceTests.cs427 public class CrossLinkRequestHandler : IRequestHandler<CrossLinkRequest, CrossLinkResponse>CODE