AI Slop Code RIsk Monitor

api-platform/api-platform

🕸️ Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.

25.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for api-platform/api-platform, a PHP project with 9,188 GitHub stars. SynthScan examined 5,472 lines of code across 53 source files, recording 110 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 25.2 (Elevated 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.

25.2
Adjusted Signal
25.2
Raw Pattern Score
100%
Time Factor
2026-09-01
Last Push
9.2K
Stars
PHP
Language
5.5K
Lines of Code
53
Files
110
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 71.7/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 110 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 65.2/100 · HIGH

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

PR Review Velocity Impact 67.8/100 · HIGH

Which changes need focused human review? 110 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 7LOW 103

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

Hyper-Verbose Identifiers102 hits · 116 pts
SeverityFileLineSnippetContext
LOW⚡tests/InstallerCommandTest.php207 public function testAdminDefaultsToFalseInNonInteractiveMode(): voidCODE
LOW⚡tests/InstallerCommandTest.php214 public function testDocsOptionDescriptionMentionsScalar(): voidCODE
LOW⚡tests/InstallerCommandTest.php221 public function testAcceptsScalarAsDocsOption(): voidCODE
LOW⚡tests/InstallerCommandTest.php226 public function testReportsDevVersionWhenPlaceholderUnsubstituted(): voidCODE
LOW⚡tests/InstallerCommandTest.php233 public function testNonInteractiveDefaultsSelectEveryFormatAndDocViewer(): voidCODE
LOW⚡tests/InstallerCommandTest.php241 public function testEmptyDocsOptionDisablesDocViewers(): voidCODE
LOWtests/InstallerCommandTest.php49 public function testRejectsExistingDirectory(): voidCODE
LOWtests/InstallerCommandTest.php71 public function testRejectsInvalidProjectName(): voidCODE
LOWtests/InstallerCommandTest.php79 public function testRejectsUnknownFramework(): voidCODE
LOWtests/InstallerCommandTest.php95 public function testRejectsWithDockerOnLaravel(): voidCODE
LOWtests/InstallerCommandTest.php106 public function testRejectsSymfonyDockerRefOnLaravel(): voidCODE
LOWtests/InstallerCommandTest.php117 public function testRejectsWithPwaOnLaravel(): voidCODE
LOWtests/InstallerCommandTest.php128 public function testSymfonyDockerRefOptionIsPropagated(): voidCODE
LOWtests/InstallerCommandTest.php142 public function testWarnsWhenSymfonyDockerRefIsOverridden(): voidCODE
LOWtests/InstallerCommandTest.php156 public function testDoesNotWarnWhenTheRefIsLeftAtThePinnedDefault(): voidCODE
LOWtests/InstallerCommandTest.php169 public function testDoesNotWarnWhenTheRefCannotBeUsed(): voidCODE
LOWtests/InstallerCommandTest.php183 public function testAdminOptionIsAcceptedOnSymfony(): voidCODE
LOWtests/InstallerCommandTest.php189 public function testAdminOptionIsAcceptedOnLaravel(): voidCODE
LOWtests/InstallerCommandTest.php255 public function testRejectsEmptyDocsOptionCombinedWithDocViewers(): voidCODE
LOWtests/InstallerCommandTest.php270 public static function interactiveDocsSelections(): arrayCODE
LOWtests/InstallerCommandTest.php288 public function testInteractiveDocsPromptAcceptsDisplayedChoices(string $answer, array $expected): voidCODE
LOWtests/InstallerCommandTest.php293 public function testInteractiveMultiselectPromptsEmitNoPhpWarnings(): voidCODE
LOWtests/Scaffold/NextPwaScaffoldTest.php12 public function testKeepsExistingCorsAllowOriginFromNelmioRecipe(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php25 public function testAddsNelmioCorsAllowOriginFallbackWhenMissing(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php35 public function testCorsAllowOriginFallbackIsIdempotent(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php43 public function testApprovesPnpmBuildPlaceholdersCreatedByCreateNextApp(): voidCODE
LOWtests/Scaffold/NextPwaScaffoldTest.php60 public function testKeepsUnrelatedIgnoredBuildDependencies(): voidCODE
LOWtests/Scaffold/NextPwaScaffoldTest.php80 public function testDoesNotOverwriteExplicitPnpmBuildDecisions(): voidCODE
LOWtests/Scaffold/NextPwaScaffoldTest.php93 public function testPnpmBuildApprovalPatchIsIdempotent(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php107 public function testWritesNextPublicApiEntrypointEnvWhenAbsent(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php114 public function testNextPublicApiEntrypointEnvIsIdempotent(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php123 public function testNextPublicApiEntrypointEnvDoesNotOverwriteCustomValue(): voidCODE
LOW⚡tests/Scaffold/NextPwaScaffoldTest.php131 public function testCreateNextAppCommandPinsTypeScriptAndAppRouter(): voidCODE
LOWtests/Scaffold/FileWriterTest.php26 public function testThrowsWhenTargetIsNotWritable(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php54 public function testInjectsCaddyDirectivesUnderPhpEnvironmentBetweenMarkers(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php69 public function testPreservesUpstreamCommentsAndOtherMarkers(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php84 public function testInjectionLandsBeforeVolumesSiblingNotInside(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php98 public function testDoesNotCreateSidecarComposeFile(): voidCODE
LOW⚡tests/Scaffold/ComposeOverrideWriterTest.php117 public function testFailsLoudlyWhenComposeFileIsMissing(): voidCODE
LOW⚡tests/Scaffold/ComposeOverrideWriterTest.php123 public function testFailsLoudlyWhenServicesPhpEnvironmentIsMissing(): voidCODE
LOW⚡tests/Scaffold/ComposeOverrideWriterTest.php131 public function testIsIdempotentOnRepeatedRuns(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php146 public function testInjectsUnderFrankenphpServiceName(): voidCODE
LOWtests/Scaffold/ComposeOverrideWriterTest.php172 public function testRewritesBlockInPlaceWhenDirectivesChange(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php13 public function testAppendsAdminRouteBetweenMarkersWhenAbsent(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php25 public function testAdminRouteAppendIsIdempotent(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php36 public function testAdminBladeTemplateExistsAndPointsAtViteEntry(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php46 public function testAdminAppTemplateUsesHydraAdminAndDefaultsToWindowOrigin(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php57 public function testAdminMainTemplateMountsOnAdminRoot(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php68 public function testFilterInstalledPackagesSkipsAlreadyDeclaredDeps(): voidCODE
LOWtests/Scaffold/LaravelAdminScaffoldTest.php93 public function testFilterInstalledPackagesReturnsAllWhenManifestMissing(): voidCODE
LOW⚡tests/Scaffold/LaravelAdminScaffoldTest.php105 public function testAppendsViteEntrypointEnvForLaravel(): voidCODE
LOW⚡tests/Scaffold/LaravelAdminScaffoldTest.php114 public function testViteEntrypointEnvIsIdempotent(): voidCODE
LOW⚡tests/Scaffold/LaravelAdminScaffoldTest.php123 public function testViteEntrypointEnvDoesNotOverwriteCustomValue(): voidCODE
LOW⚡tests/Scaffold/ViteConfigPatcherTest.php27 public function testAddsEntryToInputArrayBetweenMarkers(): voidCODE
LOW⚡tests/Scaffold/ViteConfigPatcherTest.php36 public function testPreservesExistingInputsAndConfigKeys(): voidCODE
LOW⚡tests/Scaffold/ViteConfigPatcherTest.php46 public function testNewEntryLandsInsideInputArrayBeforeClosingBracket(): voidCODE
LOWtests/Scaffold/ViteConfigPatcherTest.php57 public function testIsIdempotentOnRepeatedPatches(): voidCODE
LOWtests/Scaffold/ViteConfigPatcherTest.php68 public function testFailsLoudlyWhenInputArrayMissing(): voidCODE
LOWtests/Scaffold/ViteConfigPatcherTest.php75 public function testDoesNotIntroduceArrayHoleOnTrailingComma(): voidCODE
LOWtests/Scaffold/LaravelConfigPatcherTest.php46 public function testReplacesFormatsAndKeepsSwaggerUi(): voidCODE
42 more matches not shown…
Modern AI Meta-Vocabulary7 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/Scaffold/NextPwaScaffoldTest.php140 // a Pages-router or JS scaffold would crash the entry-page lookup.COMMENT
MEDIUMtests/Scaffold/AgentsScaffoldTest.php41 // A null fetch (offline, rate limit) must not abort the scaffold.COMMENT
MEDIUMscripts/symfony-docker-pin.php9// pin <sha> repin the scaffold to <sha>COMMENT
MEDIUMscripts/symfony-docker-pin.php10// filter read upstream paths on stdin, print those the scaffold copiesCOMMENT
MEDIUM.github/workflows/symfony-docker-bump.yml64 # Only the files the scaffold actually installs justify a PR.COMMENT
MEDIUM.github/workflows/symfony-docker-bump.yml151 echo '### Files the scaffold copies that changed'CODE
MEDIUMsrc/Scaffold/AgentsScaffold.php39 // Non-critical: never abort a scaffold over a doc file the projectCOMMENT
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/workflows/symfony-docker-bump.yml1name: symfony-docker bumpCOMMENT