Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
This report presents the forensic synthetic code analysis of App-vNext/Polly, a C# project with 14,206 GitHub stars. SynthScan v2.0 examined 121,164 lines of code across 932 source files, recording 678 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 5.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 678 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | cake.cs | 1 | #:sdk Cake.Sdk | COMMENT |
| LOW | test/Polly.Specs/Helpers/Constants.cs | 1 | namespace Polly.Specs.Helpers; | COMMENT |
| LOW | …Core.Tests/Simmy/Outcomes/ChaosOutcomeStrategyTests.cs | 261 | /// <summary> | COMMENT |
| LOW | …ting/RateLimiterResiliencePipelineBuilderExtensions.cs | 1 | using System.ComponentModel.DataAnnotations; | COMMENT |
| LOW | …c/Polly.RateLimiting/OnRateLimiterRejectedArguments.cs | 1 | using System.Threading.RateLimiting; | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterRejectedException.cs | 41 | /// <summary> | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterRejectedException.cs | 61 | /// Initializes a new instance of the <see cref="RateLimiterRejectedException"/> class. | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterArguments.cs | 1 | namespace Polly.RateLimiting; | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterStrategyOptions.cs | 1 | using System.ComponentModel.DataAnnotations; | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterStrategyOptions.cs | 21 | /// will use a <see cref="ConcurrencyLimiter"/> created using <see cref="DefaultRateLimiterOptions"/>. | COMMENT |
| LOW | src/Polly.RateLimiting/RateLimiterStrategyOptions.cs | 41 | COMMENT | |
| LOW | …tensions/Registry/ConfigureBuilderContextExtensions.cs | 1 | using System.Diagnostics.CodeAnalysis; | COMMENT |
| LOW | src/Polly.Extensions/Telemetry/MeteringEnricher.cs | 1 | namespace Polly.Telemetry; | COMMENT |
| LOW | src/Polly.Extensions/Telemetry/TelemetryOptions.cs | 41 | /// </value> | COMMENT |
| LOW | src/Polly.Extensions/Telemetry/TelemetryOptions.cs | 61 | /// <summary> | COMMENT |
| LOW | src/Polly.Extensions/Telemetry/EnrichmentContext.cs | 1 | namespace Polly.Telemetry; | COMMENT |
| LOW | …emetry/TelemetryResiliencePipelineBuilderExtensions.cs | 1 | using System.Diagnostics.CodeAnalysis; | COMMENT |
| LOW | …emetry/TelemetryResiliencePipelineBuilderExtensions.cs | 21 | /// By enabling telemetry, the resilience pipeline will log and meter all resilience events. | COMMENT |
| LOW | …ns/DependencyInjection/AddResiliencePipelineContext.cs | 21 | /// <summary> | COMMENT |
| LOW | …ns/DependencyInjection/AddResiliencePipelineContext.cs | 41 | /// <remarks> | COMMENT |
| LOW | …ependencyInjection/PollyServiceCollectionExtensions.cs | 21 | /// <typeparam name="TKey">The type of the key used to identify the resilience pipeline.</typeparam> | COMMENT |
| LOW | …ependencyInjection/PollyServiceCollectionExtensions.cs | 41 | Guard.NotNull(configure); | COMMENT |
| LOW | …ependencyInjection/PollyServiceCollectionExtensions.cs | 81 | { | COMMENT |
| LOW | …ependencyInjection/PollyServiceCollectionExtensions.cs | 181 | { | COMMENT |
| LOW | …s/DependencyInjection/AddResiliencePipelinesContext.cs | 21 | COMMENT | |
| LOW | …red/DebuggerDisableUserUnhandledExceptionsAttribute.cs | 1 | #pragma warning disable | COMMENT |
| LOW | …c/LegacySupport/DynamicallyAccessedMembersAttribute.cs | 1 | // Licensed to the .NET Foundation under one or more agreements. | COMMENT |
| LOW | …c/LegacySupport/DynamicallyAccessedMembersAttribute.cs | 21 | /// of a program. | COMMENT |
| LOW | src/LegacySupport/CallerArgumentExpressionAttribute.cs | 21 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicallyAccessedMemberTypes.cs | 1 | // Licensed to the .NET Foundation under one or more agreements. | COMMENT |
| LOW | src/LegacySupport/DynamicallyAccessedMemberTypes.cs | 21 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicallyAccessedMemberTypes.cs | 41 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicallyAccessedMemberTypes.cs | 61 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicallyAccessedMemberTypes.cs | 81 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 1 | // Licensed to the .NET Foundation under one or more agreements. | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 21 | /// </remarks> | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 61 | /// <summary> | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 81 | { | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 101 | /// Either <see cref="MemberSignature"/> must be a valid string or <see cref="MemberTypes"/> | COMMENT |
| LOW | src/LegacySupport/DynamicDependencyAttribute.cs | 121 | /// </remarks> | COMMENT |
| LOW | src/LegacySupport/RequiresUnreferencedCodeAttribute.cs | 1 | // Licensed to the .NET Foundation under one or more agreements. | COMMENT |
| LOW | src/LegacySupport/RequiresUnreferencedCodeAttribute.cs | 21 | /// This allows tools to understand which methods are unsafe to call when removing unreferenced | COMMENT |
| LOW | src/LegacySupport/NullableAttributes.cs | 1 | // Copyright (c) Microsoft Corporation. All Rights Reserved. | COMMENT |
| LOW | …LegacySupport/UnconditionalSuppressMessageAttribute.cs | 1 | // Licensed to the .NET Foundation under one or more agreements. | COMMENT |
| LOW | …LegacySupport/UnconditionalSuppressMessageAttribute.cs | 41 | /// Gets the category identifying the classification of the attribute. | COMMENT |
| LOW | …LegacySupport/UnconditionalSuppressMessageAttribute.cs | 61 | /// <remarks> | COMMENT |
| LOW | …LegacySupport/UnconditionalSuppressMessageAttribute.cs | 81 | /// <remarks> | COMMENT |
| LOW | src/Polly.Core/ResiliencePipelineT.cs | 1 | using Polly.Utils.Pipeline; | COMMENT |
| LOW | src/Polly.Core/PredicateBuilder.TResult.cs | 1 | namespace Polly; | COMMENT |
| LOW | src/Polly.Core/PredicateBuilder.TResult.cs | 21 | /// </summary> | COMMENT |
| LOW | src/Polly.Core/PredicateBuilder.TResult.cs | 41 | /// an <see cref="Exception"/>, or at any level of nesting within an <see cref="AggregateException"/>. | COMMENT |
| LOW | src/Polly.Core/PredicateBuilder.TResult.cs | 101 | => Add(outcome => outcome.TryGetResult(out var result) && predicate(result!)); | COMMENT |
| LOW | src/Polly.Core/Outcome.cs | 1 | namespace Polly; | COMMENT |
| LOW | src/Polly.Core/Outcome.cs | 21 | /// <returns>A completed <see cref="ValueTask{TResult}"/> that produces <see cref="Outcome{TResult}"/>.</returns> | COMMENT |
| LOW | src/Polly.Core/ResiliencePipelineBuilder.TResult.cs | 1 | using System.ComponentModel.DataAnnotations; | COMMENT |
| LOW | src/Polly.Core/ResiliencePipeline.SyncT.cs | 1 | namespace Polly; | COMMENT |
| LOW | src/Polly.Core/DelayBackoffType.cs | 1 | namespace Polly; | COMMENT |
| LOW | src/Polly.Core/DelayBackoffType.cs | 21 | /// </summary> | COMMENT |
| LOW | src/Polly.Core/ResiliencePipelineT.Sync.cs | 1 | namespace Polly; | COMMENT |
| LOW | src/Polly.Core/ResiliencePipelineT.Sync.cs | 21 | where TResult : T | COMMENT |
| 614 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …ateLimiting.Tests/RateLimiterRejectedExceptionTests.cs | 86 | var formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); | CODE |
| CRITICAL | test/Polly.TestUtils/BinarySerializationUtil.cs | 19 | var formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ly.Core.Tests/Hedging/Controller/TaskExecutionTests.cs | 296 | value.ShouldBe("dummy-value"); | CODE |
| LOW | …ly.Core.Tests/Hedging/Controller/TaskExecutionTests.cs | 302 | _primaryContext.Properties.Set(_myKey, "dummy-value"); | CODE |