AI Slop Code Risk Monitor

apple/pkl

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

A configuration as code language with rich validation and tooling.

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for apple/pkl, a Java project with 11,555 GitHub stars. SynthScan examined 348,794 lines of code across 2792 source files, recording 103 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.

1.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
11.6K
Stars
Java
Language
348.8K
Lines of Code
2.8K
Files
103
Pattern Hits
2026-10-31
Scan Date
0.02
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 0.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.4/100 · LOW

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

Agent Over-Engineering Ratio 1.8/100 · LOW

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

PR Review Velocity Impact 6.8/100 · LOW

Which changes need focused human review? 103 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 31HIGH 21MEDIUM 1LOW 50

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 103 distinct pattern matches across 7 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 Indicators31 hits · 310 pts
SeverityFileLineSnippetContext
CRITICALbuild-logic/src/main/kotlin/InstallGraalVm.kt52 val os = org.gradle.internal.os.OperatingSystem.current()CODE
CRITICALpkl-server/src/main/kotlin/org/pkl/server/Server.kt162 org.pkl.core.packages.Dependency.RemoteDependency(CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java807 org.pkl.core.runtime.Identifier.localProperty(name),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java813 org.pkl.core.runtime.Identifier.get(name),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java820 sourceSection, org.pkl.core.runtime.Identifier.get(name), p.levelsUp(), needsConst);CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java825 org.pkl.core.runtime.Identifier.localProperty(name),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java831 org.pkl.core.runtime.Identifier.get(name),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java3397 org.pkl.core.runtime.Identifier.property(clazz.getName().getValue(), isLocal),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java3404 org.pkl.core.runtime.Identifier.property(typealias.getName().getValue(), isLocal),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java3411 org.pkl.core.runtime.Identifier.property(prop.getName().getValue(), isLocal),CODE
CRITICAL⚡…src/main/java/org/pkl/core/ast/builder/AstBuilder.java3418 org.pkl.core.runtime.Identifier.method(method.getName().getValue(), isLocal),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java863 org.pkl.core.runtime.Identifier.get(name),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java872 org.pkl.core.runtime.Identifier.get(name),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java902 var identifier = org.pkl.core.runtime.Identifier.method(name, method.isLocal());CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java984 var identifier = org.pkl.core.runtime.Identifier.get(name);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java1018 org.pkl.core.runtime.Identifier.get(name),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java1865 org.pkl.core.runtime.Identifier.property(CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java1896 org.pkl.core.runtime.Identifier.property(prop.getName().getValue(), local),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java1902 org.pkl.core.runtime.Identifier.method(method.getName().getValue(), local),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java1930 org.pkl.core.runtime.Identifier.property(clazz.getName().getValue(), isLocalClass);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2101 var propertyName = org.pkl.core.runtime.Identifier.property(name.getValue(), isLocal);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2175 var methodName = org.pkl.core.runtime.Identifier.method(entry.getName().getValue(), isLocal);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2266 var name = org.pkl.core.runtime.Identifier.property(typeAlias.getName().getValue(), isLocal);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2432 org.pkl.core.runtime.Identifier.get(identifier.getValue()),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2443 org.pkl.core.runtime.Identifier.localProperty(identifier1.getValue()),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2444 org.pkl.core.runtime.Identifier.get(identifier2.getValue()),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2468 org.pkl.core.runtime.Identifier.property(prop.getIdentifier().getValue(), local),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2473 org.pkl.core.runtime.Identifier.method(method.getIdentifier().getValue(), local),CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2716 var identifier = org.pkl.core.runtime.Identifier.property(propertyName, isLocal);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java2867 var methodName = org.pkl.core.runtime.Identifier.method(identifier.getValue(), true);CODE
CRITICAL…src/main/java/org/pkl/core/ast/builder/AstBuilder.java3302 return org.pkl.core.runtime.Identifier.get(text);CODE
Cross-File Repetition21 hits · 105 pts
SeverityFileLineSnippetContext
HIGH…/src/test/kotlin/org/pkl/cli/CliProjectResolverTest.kt0amends "pkl:project" dependencies { ["birds"] { uri = "package://localhost:0/birds@0.5.0" } }STRING
HIGH…c/test/kotlin/org/pkl/executor/EmbeddedExecutorTest.kt0amends "pkl:project" dependencies { ["birds"] { uri = "package://localhost:0/birds@0.5.0" } }STRING
HIGHpkl-core/src/test/kotlin/org/pkl/core/AnalyzerTest.kt0amends "pkl:project" dependencies { ["birds"] { uri = "package://localhost:0/birds@0.5.0" } }STRING
HIGHpkl-cli/src/test/kotlin/org/pkl/cli/CliEvaluatorTest.kt0function fib(n) = if (n < 2) 0 else fib(n - 1) + fib(n - 2) x = fib(100)STRING
HIGH…radle/src/test/kotlin/org/pkl/gradle/EvaluatorsTest.kt0function fib(n) = if (n < 2) 0 else fib(n - 1) + fib(n - 2) x = fib(100)STRING
HIGHpkl-core/src/test/kotlin/org/pkl/core/EvaluatorTest.kt0function fib(n) = if (n < 2) 0 else fib(n - 1) + fib(n - 2) x = fib(100)STRING
HIGH…test/kotlin/org/pkl/gradle/KotlinCodeGeneratorsTest.kt0plugins { id "org.pkl-lang" } pkl { evaluators { evaltest { outputformat = "pcf" } } }STRING
HIGH…c/test/kotlin/org/pkl/gradle/JavaCodeGeneratorsTest.kt0plugins { id "org.pkl-lang" } pkl { evaluators { evaltest { outputformat = "pcf" } } }STRING
HIGH…radle/src/test/kotlin/org/pkl/gradle/EvaluatorsTest.kt0plugins { id "org.pkl-lang" } pkl { evaluators { evaltest { outputformat = "pcf" } } }STRING
HIGH…otlin/org/pkl/codegen/java/CliJavaCodeGeneratorTest.kt0module org.foo.module1 class person { name: string }STRING
HIGH…t/kotlin/org/pkl/codegen/java/JavaCodeGeneratorTest.kt0module org.foo.module1 class person { name: string }STRING
HIGH…tlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt0module org.foo.module1 class person { name: string }STRING
HIGH…n/org/pkl/codegen/kotlin/CliKotlinCodeGeneratorTest.kt0module org.foo.module1 class person { name: string }STRING
HIGH…otlin/org/pkl/codegen/java/CliJavaCodeGeneratorTest.kt0module org.bar.module2 import "../../org/foo/module1.pkl" class group { owner: module1.person name: string }STRING
HIGH…t/kotlin/org/pkl/codegen/java/JavaCodeGeneratorTest.kt0module org.bar.module2 import "../../org/foo/module1.pkl" class group { owner: module1.person name: string }STRING
HIGH…tlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt0module org.bar.module2 import "../../org/foo/module1.pkl" class group { owner: module1.person name: string }STRING
HIGH…n/org/pkl/codegen/kotlin/CliKotlinCodeGeneratorTest.kt0module org.bar.module2 import "../../org/foo/module1.pkl" class group { owner: module1.person name: string }STRING
HIGH…otlin/org/pkl/codegen/java/CliJavaCodeGeneratorTest.kt0module org.baz.module3 import "../../org/bar/module2.pkl" class supergroup { owner: module2.group }STRING
HIGH…t/kotlin/org/pkl/codegen/java/JavaCodeGeneratorTest.kt0module org.baz.module3 import "../../org/bar/module2.pkl" class supergroup { owner: module2.group }STRING
HIGH…tlin/org/pkl/codegen/kotlin/KotlinCodeGeneratorTest.kt0module org.baz.module3 import "../../org/bar/module2.pkl" class supergroup { owner: module2.group }STRING
HIGH…n/org/pkl/codegen/kotlin/CliKotlinCodeGeneratorTest.kt0module org.baz.module3 import "../../org/bar/module2.pkl" class supergroup { owner: module2.group }STRING
Over-Commented Block30 hits · 30 pts
SeverityFileLineSnippetContext
LOWlibpkl/scripts/build_unix.sh1#!/bin/bashCOMMENT
LOWlibpkl/src/main/c/pkl.c21#include <windows.h>COMMENT
LOWpkl-gradle/src/main/java/org/pkl/gradle/PklPlugin.java401 //COMMENT
LOW…gic/src/main/resources/license-header.hash-comment.txt1#===----------------------------------------------------------------------===//COMMENT
LOW…gic/src/main/resources/license-header.line-comment.txt1//===----------------------------------------------------------------------===//COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt21// import java.net.URISyntaxException;COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt41// private final ModuleResolver resolver =COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt61// @TestCOMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt81//COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt101// assertEquals("https://some.domain.com/import/file.pkl", result.toString());COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt121// assertEquals("https://other.domain.com/path2/script2.pkl", result.toString());COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt141// }COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt161// literalUrlModule, sourceSection);COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt181// }COMMENT
LOW…tlin/org/pkl/core/runtime/DefaultModuleResolverTest.kt201//COMMENT
LOW…/src/test/kotlin/org/pkl/core/runtime/ModuleKeyTest.kt21// import java.net.URI;COMMENT
LOW…/src/test/kotlin/org/pkl/core/runtime/ModuleKeyTest.kt41// ModuleKey module = ModuleKeys.standardLibrary("base");COMMENT
LOW…/src/test/kotlin/org/pkl/core/runtime/ModuleKeyTest.kt61// assertFalse(module.isBaseModule());COMMENT
LOW…/src/test/kotlin/org/pkl/core/runtime/ModuleKeyTest.kt81// }COMMENT
LOW…java/org/pkl/core/util/properties/PropertiesUtils.java21COMMENT
LOW…re/src/main/java/org/pkl/core/util/paguro/RrbTree.java701 //COMMENT
LOW…re/src/main/java/org/pkl/core/util/paguro/RrbTree.java961 // from MIN_NODE_LENGTH (Cormen et al. calls this "Minimum Degree") to MAX_NODE_LENGTH.COMMENT
LOW…re/src/main/java/org/pkl/core/util/paguro/RrbTree.java1301 */COMMENT
LOW…re/src/main/java/org/pkl/core/util/paguro/RrbTree.java1321 int guessedCumSize = cumulativeSizes[guess];COMMENT
LOW…rc/main/java/org/pkl/core/ast/member/FunctionNode.java141 var argument = args[IMPLICIT_PARAM_COUNT + typeParamCount + i];COMMENT
LOW…core/src/main/java/org/pkl/core/ast/type/TypeNode.java81 }COMMENT
LOW…core/src/main/java/org/pkl/core/ast/type/TypeNode.java941 //COMMENT
LOW…rc/main/java/org/pkl/core/ast/builder/SymbolTable.java481 }COMMENT
LOW…rc/main/java/org/pkl/core/ast/builder/SymbolTable.java961 return ArrayUtils.append(slots, valueBinding.slot());COMMENT
LOW…src/main/java/org/pkl/core/ast/builder/AstBuilder.java841 // res = bar <--- actually 1 level, not 0COMMENT
Hyper-Verbose Identifiers18 hits · 18 pts
SeverityFileLineSnippetContext
LOW…/test/files/SinglePackageTest/output/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…/test/files/SinglePackageTest/output/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…/test/files/SinglePackageTest/output/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
LOW…iles/DocMigratorTest/input/version-1/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…iles/DocMigratorTest/input/version-1/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…iles/DocMigratorTest/input/version-1/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
LOW…rc/test/files/DocMigratorTest/output/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…rc/test/files/DocMigratorTest/output/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…rc/test/files/DocMigratorTest/output/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
LOW…/files/DocGeneratorTest/output/run-2/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…/files/DocGeneratorTest/output/run-2/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…/files/DocGeneratorTest/output/run-2/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
LOW…/files/DocGeneratorTest/output/run-1/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…/files/DocGeneratorTest/output/run-1/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…/files/DocGeneratorTest/output/run-1/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
LOW…l-doc/src/main/resources/org/pkl/doc/scripts/pkldoc.js67function initExpandTargetMemberDocs() {CODE
LOW…l-doc/src/main/resources/org/pkl/doc/scripts/pkldoc.js123function initToggleInheritedMembers() {CODE
LOW…l-doc/src/main/resources/org/pkl/doc/scripts/pkldoc.js135function initCopyModuleUriToClipboard() {CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlibpkl/scripts/build_unix.sh56# Create a debug log in $output/logsCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…re/src/main/java/org/pkl/core/util/ByteArrayUtils.java27 // TODO: implement this directly so we don't need a truffle boundary here.COMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…/src/main/java/org/pkl/core/util/json/JsonHandler.java33 * ["lorem ipsum"]COMMENT