AI Slop Code RIsk Monitor

bobthecow/psysh

A REPL for PHP

14.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for bobthecow/psysh, a PHP project with 9,830 GitHub stars. SynthScan examined 114,774 lines of code across 703 source files, recording 1602 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 14.2 (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.

14.2
Adjusted Signal
14.2
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
9.8K
Stars
PHP
Language
114.8K
Lines of Code
703
Files
1.6K
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 50.9/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 50.4/100 · HIGH

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

PR Review Velocity Impact 50.4/100 · HIGH

Which changes need focused human review? 1602 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 3LOW 1599

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

Hyper-Verbose Identifiers1585 hits · 1608 pts
SeverityFileLineSnippetContext
LOWtest/ShellRuntimeConfigTest.php35 public function testApplyRuntimeConfigChangeUpdatesOutputStateImmediately()CODE
LOWtest/ShellRuntimeConfigTest.php57 public function testApplyRuntimeConfigChangePersistsVerbosityForNextPrompt()CODE
LOWtest/ShellRuntimeConfigTest.php99 public function testApplyRuntimeConfigChangeSwapsPagerImmediately()CODE
LOWtest/ShellRuntimeConfigTest.php115 public function testApplyRuntimeConfigChangeRefreshesInteractiveReadline()CODE
LOWtest/ShellRuntimeConfigTest.php154 public function testUseUnicodeIsReadFromConfigWithoutRestart()CODE
LOW⚡test/CodeCleanerResolveClassNameTest.php25 public function testResolveFullyQualifiedName()CODE
LOW⚡test/CodeCleanerResolveClassNameTest.php31 public function testResolveWithExplicitUse()CODE
LOW⚡test/CodeCleanerResolveClassNameTest.php38 public function testResolveWithImplicitUse()CODE
LOWtest/CodeCleanerResolveClassNameTest.php84 public function testResolveClassNameWhenFunctionImportUsesSameAlias()CODE
LOWtest/ProjectTrustTest.php73 public function testSetModeFromEnvInvalid()CODE
LOWtest/ProjectTrustTest.php82 public function testForceTrustClearsForceUntrust()CODE
LOWtest/ProjectTrustTest.php93 public function testForceUntrustClearsForceTrust()CODE
LOW⚡test/ProjectTrustTest.php104 public function testGetProjectTrustStatusForceUntrust()CODE
LOW⚡test/ProjectTrustTest.php111 public function testGetProjectTrustStatusNeverMode()CODE
LOW⚡test/ProjectTrustTest.php118 public function testGetProjectTrustStatusForceTrust()CODE
LOW⚡test/ProjectTrustTest.php125 public function testGetProjectTrustStatusAlwaysMode()CODE
LOW⚡test/ProjectTrustTest.php132 public function testGetProjectTrustStatusPromptReturnsNull()CODE
LOW⚡test/ProjectTrustTest.php138 public function testIsProjectTrustedWithAlwaysMode()CODE
LOW⚡test/ProjectTrustTest.php145 public function testIsProjectTrustedWithNeverMode()CODE
LOW⚡test/ProjectTrustTest.php152 public function testIsProjectTrustedWithForceTrust()CODE
LOW⚡test/ProjectTrustTest.php159 public function testIsProjectTrustedWithForceUntrust()CODE
LOWtest/ProjectTrustTest.php199 public function testHasComposerAutoloadFiles()CODE
LOWtest/ProjectTrustTest.php214 public function testGetLocalPsyshProjectRoot()CODE
LOWtest/ProjectTrustTest.php230 public function testTrustPersistenceAndRetrieval()CODE
LOW⚡test/ProjectTrustTest.php265 public function testShouldPromptForLocalPsyshBinaryDefaultsFalse()CODE
LOW⚡test/ProjectTrustTest.php274 public function testShouldPromptForLocalPsyshBinaryUsesServerVar()CODE
LOW⚡test/ProjectTrustTest.php284 public function testShouldPromptForLocalPsyshBinaryUsesEnvironmentVar()CODE
LOW⚡test/ProjectTrustTest.php294 public function testGetLocalPsyshProjectRootFallsBackToEnvironmentVar()CODE
LOWtest/SystemEnvTest.php18 public function testGetReturnsServerValueWhenSet()CODE
LOWtest/SystemEnvTest.php35 public function testGetReturnsEnvValueWhenServerNotSet()CODE
LOWtest/SystemEnvTest.php51 public function testGetReturnsNullWhenNotSet()CODE
LOWtest/SystemEnvTest.php62 public function testGetPrefersServerOverEnv()CODE
LOWtest/SystemEnvTest.php78 public function testGetIgnoresEmptyServerValue()CODE
LOWtest/ShellTest.php85 public function testUnknownScopeVariablesThrowExceptions()CODE
LOWtest/ShellTest.php96 public function testIncludesWithScopeVariables()CODE
LOWtest/ShellTest.php127 public function testExecuteLoadsIncludesOnlyOnceAcrossNestedExecutions()CODE
LOWtest/ShellTest.php152 public function testRunDoesNotReloadIncludesForNestedCommands()CODE
LOWtest/ShellTest.php181 public function testIncludesLoadOnlyOnceWhenEvaluatedCodeReentersRun()CODE
LOWtest/ShellTest.php210 public function testIncludesContinueAfterThrowable()CODE
LOWtest/ShellTest.php261 public function testIncludesRestoreErrorHandlerAfterFailure()CODE
LOWtest/ShellTest.php378 public function testNonInteractiveDoesNotUpdateContext()CODE
LOWtest/ShellTest.php397 public function testNonInteractiveRawOutput()CODE
LOWtest/ShellTest.php467 public function testAddMatchersViaConfigAfterShell()CODE
LOWtest/ShellTest.php479 public function testReattachingConfigDoesNotReregisterMatchers()CODE
LOWtest/ShellTest.php494 public function testCompletionSourcesViaConfigQueueUntilCompletionEngineInitialization()CODE
LOWtest/ShellTest.php646 public function testLegacyReadlineUsesCompletionEngineThroughAutoCompleter()CODE
LOWtest/ShellTest.php736 public function testDeprecatedDefaultMatchersExtensionPointIsStillAdapted()CODE
LOWtest/ShellTest.php789 public function testBootConfiguresInteractiveReadline()CODE
LOWtest/ShellTest.php948 public function testBootWrapsLegacyReadlineInLegacyShim()CODE
LOWtest/ShellTest.php1054 public function testFormatExceptionStripsExecutionClosurePathsWithDotsInPath()CODE
LOWtest/ShellTest.php1071 public function testGetInputMarksOutputWrittenForCommandOutput()CODE
LOWtest/ShellTest.php1098 public function testGetInputLeavesOutputWrittenFalseWhenCommandDoesNotWriteOutput()CODE
LOWtest/ShellTest.php1123 public function testLegacyReadlineAddsSpacerAfterInputBeforeReturnValueInNonCompactMode()CODE
LOWtest/ShellTest.php1143 public function testLegacyReadlineAddsSpacerAroundCommandOutputInNonCompactMode()CODE
LOWtest/ShellTest.php1173 public function testLegacyReadlineDoesNotAddExtraSpacerBeforeReturnValueInCompactMode()CODE
LOWtest/ShellTest.php1193 public function testGetInputMarksOutputWrittenForShellOutputEvenWhenStreamPositionDoesNotAdvance()CODE
LOWtest/ShellTest.php1214 public function testGetInputMarksOutputWrittenForShellOutputErrorStreamWrites()CODE
LOWtest/ShellTest.php1239 public function testGetInputIgnoresSuppressedShellOutputWrites()CODE
LOWtest/ShellTest.php1260 public function testGetInputMarksOutputWrittenForDirectShellOutputStreamWrites()CODE
LOWtest/ShellTest.php1285 public function testShellOutputTracksVisibleWrites()CODE
1525 more matches not shown…
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtest/smoketest-pty.sh3# This file is part of Psy Shell.COMMENT
MEDIUMtest/test-env.sh3# This file is part of Psy Shell.COMMENT
MEDIUMtest/smoketest.sh3# This file is part of Psy Shell.COMMENT
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOW.phan/config.php21 'vendor/symfony/var-dumper/',COMMENT
LOW.phan/baseline-current-issues.php21 // PhanDeprecatedFunction : 5 occurrencesCOMMENT
LOWtest/smoketest-pty.sh1#!/usr/bin/env bashCOMMENT
LOWtest/smoketest.sh1#!/bin/bashCOMMENT
LOWtest/smoketest.sh21# test/smoketest.sh path/to/psysh.phar # Test a specific PHARCOMMENT
LOW…xtures/autoload-warmer-vendor/composer/ClassLoader.php21COMMENT
LOWsrc/Output/OutputPager.php21{COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtest/smoketest-pty.sh18# Usage:COMMENT
LOWtest/smoketest.sh17# Usage:COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/Fixtures/Completion/Address.php16 public string $street = '123 Main St';CODE
LOWtest/Fixtures/Completion/User.php30 return 'John Doe';CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/smoketest.sh383 # Check if the target exists (resolve relative paths first)COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/CodeCleaner/PassableByReferencePass.php69 // Named arguments were added in php-parser 4.1, so we need to check if the property existsCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/tools/vis.py44__all__ = [CODE