AI Slop Code RIsk Monitor

Kotlin/kotlinx.coroutines

Library support for Kotlin coroutines

9.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Kotlin/kotlinx.coroutines, a Kotlin project with 13,819 GitHub stars. SynthScan examined 131,205 lines of code across 1171 source files, recording 133 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 9.0 (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.

9.0
Adjusted Signal
9.0
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
13.8K
Stars
Kotlin
Language
131.2K
Lines of Code
1.2K
Files
133
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 2.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 34.7/100 · MEDIUM

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 29.7/100 · MEDIUM

Which changes need focused human review? 133 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 87HIGH 1MEDIUM 2LOW 43

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 133 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.

Hallucination Indicators87 hits · 1120 pts
SeverityFileLineSnippetContext
CRITICALdocs/topics/coroutines-debugging.md191 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md323 at kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesImpl.kt:339)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md324 at kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt:294)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md325 at kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt:266)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md404 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md405 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md406 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md421 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md429 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md430 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md431 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md439 at java.base/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:269)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md451 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md452 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)CODE
CRITICAL⚡docs/topics/coroutines-debugging.md453 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)CODE
CRITICALdocs/topics/coroutines-debugging.md511 at java.base/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:269)CODE
CRITICAL…amicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt29 * at kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy.agent.Installer.getInstrumentation(InstaCOMMENT
CRITICAL⚡kotlinx-coroutines-debug/README.md155 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md156 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md157 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md158 at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md213 at com.android.builder.merge.DelegateIncrementalFileMergerOutput.create(DelegateIncrementalFileMergerOutput.javaCODE
CRITICAL⚡kotlinx-coroutines-debug/README.md215 at com.android.builder.merge.IncrementalFileMerger.updateChangedFile(IncrementalFileMerger.java:242)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md216 at com.android.builder.merge.IncrementalFileMerger.mergeChangedInputs(IncrementalFileMerger.java:203)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md217 at com.android.builder.merge.IncrementalFileMerger.merge(IncrementalFileMerger.java:80)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md218 at com.android.build.gradle.internal.tasks.MergeJavaResourcesDelegate.run(MergeJavaResourcesDelegate.kt:276)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md219 at com.android.build.gradle.internal.tasks.MergeJavaResRunnable.run(MergeJavaResRunnable.kt:81)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md221 at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md222 at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:50)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md225 at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md232 at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md233 at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md234 at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md235 at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36CODE
CRITICAL⚡kotlinx-coroutines-debug/README.md236 at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt28 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.oneMoreNestedMethod(SanitizedProbesTest.CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt29 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.nestedMethod(SanitizedProbesTest.kt:61)\CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt35 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testRecoveredStackTrace(SanitizedProbesTCODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt38 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n"CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt55 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.kt:56CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt64 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.createActiveDeferred(SanitizedProbesTestCODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt67 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" +CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt70 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.kCODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt93 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.launchSelector(SanitizedProbesTest.kt:100)\nCODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt96 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" +CODE
CRITICAL⚡kotlinx-coroutines-debug/test/SanitizedProbesTest.kt99 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testSelectBuilder(SanitizedProbesTest.kt:88)CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt23 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt79 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt117 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL⚡…x-coroutines-debug/test/RunningThreadStackMergeTest.kt148 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesICODE
CRITICAL⚡…x-coroutines-debug/test/RunningThreadStackMergeTest.kt149 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\nCODE
CRITICAL⚡…x-coroutines-debug/test/RunningThreadStackMergeTest.kt150 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" +CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt28 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)"CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt48 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt)\n"CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt69 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n"CODE
CRITICAL⚡…oroutines-debug/test/DumpWithCreationStackTraceTest.kt22 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesICODE
CRITICAL⚡…oroutines-debug/test/DumpWithCreationStackTraceTest.kt23 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\nCODE
CRITICAL⚡…oroutines-debug/test/DumpWithCreationStackTraceTest.kt24 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" +CODE
CRITICAL…/test/exceptions/StackTraceRecoveryNestedScopesTest.kt24 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)"CODE
CRITICAL…/test/exceptions/StackTraceRecoveryNestedScopesTest.kt96 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)")CODE
27 more matches not shown…
Over-Commented Block34 hits · 31 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/JobSupport.kt901 // final state -- when completed, for call to afterCompletionCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt481 * provided via [selectInRegistrationPhase] -- the algorithmCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt561 * coroutine to invoke [trySelect] while this `select` is still in REGISTRATION phase.COMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt641 // Success! Store the resumption value andCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt701 val selectedClause = state.value as SelectImplementation<R>.ClauseDataCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/SelectOld.kt21 @PublishedApiCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt181 }COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt281 // Try to find the required segment if the initially obtainedCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt421 // Read the current cell state.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt761 val r = receivers.valueCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt821 if (segment.id != id) {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt881 // Read the segment reference before the counter increment;COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1041 // The cell state should be updated according to its state machine;COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1101 // suspended sender. Wait in a spin-loop untilCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1161 }COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1181 // In case its value is lower than `b`, the `send(e)`COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1201 // the linked list of segments is already closed,COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1241 // Read the current cell state.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1281 b: LongCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1301 // suspended in the cell operation is sender or receiver.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1401 val b = bufferEndCounterCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1921 // Close the linked list for further segment addition,COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2021 // the variable below. If multiple exceptions are thrown, the firstCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2261 val r = receiversCounterCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2321 state === INTERRUPTED_SEND -> return falseCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2381 // this case, as the closing/cancellation procedure mayCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2441 } else {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2481 completeCloseOrCancel()COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2821 // ########################COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2861 cur === INTERRUPTED_SEND || cur === INTERRUPTED_RCV -> {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2961private val IN_BUFFER = Symbol("SHOULD_BUFFER")COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt101 // as, reputedly, it is the simplest synchronization scheme.COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt161 override suspend fun send(element: E) {COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt201 // Finish with success.COMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOW⚡kotlinx-coroutines-core/common/src/Await.kt65 // Step 1: Create nodes and install them as completion handlers, they may fire!COMMENT
LOW⚡kotlinx-coroutines-core/common/src/Await.kt74 // Step 2: Set disposer to each nodeCOMMENT
LOW⚡kotlinx-coroutines-core/common/src/Await.kt77 // Step 3: Now we can check if continuation is completeCOMMENT
LOW…-coroutines-core/common/src/CancellableContinuation.kt157 * The purpose of this function is to enable atomic delivery guarantees: either resumption succeeded, passingCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHui/kotlinx-coroutines-android/src/HandlerDispatcher.kt170 // inlining `Boolean.hashCode()` for Android compatibility, as requested by Animal SnifferCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡kotlinx-coroutines-core/common/src/Await.kt65 // Step 1: Create nodes and install them as completion handlers, they may fire!COMMENT
LOW⚡kotlinx-coroutines-core/common/src/Await.kt74 // Step 2: Set disposer to each nodeCOMMENT
LOW⚡kotlinx-coroutines-core/common/src/Await.kt77 // Step 3: Now we can check if continuation is completeCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…coroutines-core/common/src/channels/BufferedChannel.kt773 // the operation decides to suspend. This way, we can leverageCOMMENT
MEDIUM…m/kotlin/kotlinx/coroutines/flow/TakeWhileBenchmark.kt51 // Essentially the same code, but reusing the logic via collectWhile functionCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/JobSupport.kt351 // Notify parent but don't forget to check cancellationCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/channels/Produce.kt243 * ## Usage exampleCOMMENT