AI Slop Code RIsk Monitor

lcobucci/jwt

A simple library to work with JSON Web Token and JSON Web Signature

19.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for lcobucci/jwt, a PHP project with 7,479 GitHub stars. SynthScan examined 12,729 lines of code across 171 source files, recording 242 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 19.7 (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.

19.7
Adjusted Signal
19.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.5K
Stars
PHP
Language
12.7K
Lines of Code
171
Files
242
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 62.7/100 · HIGH

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

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

PR Review Velocity Impact 61.4/100 · HIGH

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

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 242 distinct pattern matches across 2 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 Identifiers231 hits · 240 pts
SeverityFileLineSnippetContext
LOWtests/SodiumBase64PolyfillTest.php27 public function constantsMatchExtensionOnes(): voidCODE
LOWtests/ES512TokenTest.php67 public function builderShouldRaiseExceptionWhenKeyIsInvalid(): voidCODE
LOWtests/ES512TokenTest.php82 public function builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(): voidCODE
LOWtests/ES512TokenTest.php135 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/ES512TokenTest.php151 public function signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent(Token $token): voidCODE
LOWtests/ES512TokenTest.php167 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(Token $token): voidCODE
LOWtests/ES512TokenTest.php180 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/EcdsaTokenTest.php70 public function builderShouldRaiseExceptionWhenKeyIsInvalid(): voidCODE
LOWtests/EcdsaTokenTest.php85 public function builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(): voidCODE
LOWtests/EcdsaTokenTest.php138 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/EcdsaTokenTest.php154 public function signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent(Token $token): voidCODE
LOWtests/EcdsaTokenTest.php170 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(Token $token): voidCODE
LOWtests/EcdsaTokenTest.php183 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/EcdsaTokenTest.php194 public function everythingShouldWorkWithAKeyWithParams(): voidCODE
LOWtests/EcdsaTokenTest.php215 public function everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs(): voidCODE
LOWtests/EddsaTokenTest.php62 public function builderShouldRaiseExceptionWhenKeyIsInvalid(): voidCODE
LOWtests/EddsaTokenTest.php115 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/EddsaTokenTest.php131 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/RsaTokenTest.php63 public function builderShouldRaiseExceptionWhenKeyIsInvalid(): voidCODE
LOWtests/RsaTokenTest.php78 public function builderShouldRaiseExceptionWhenKeyIsNotRsaCompatible(): voidCODE
LOWtests/RsaTokenTest.php126 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/RsaTokenTest.php139 public function signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent(Token $token): voidCODE
LOWtests/RsaTokenTest.php152 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRsaCompatible(Token $token): voidCODE
LOWtests/RsaTokenTest.php168 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/RsaTokenTest.php176 public function everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs(): voidCODE
LOWtests/JwtFacadeTest.php105 public function issueAllowsTimeValidityOverwrite(): voidCODE
LOWtests/JwtFacadeTest.php214 public function parserForNonUnencryptedTokens(): voidCODE
LOWtests/ConfigurationTest.php51 public function forAsymmetricSignerShouldConfigureSignerAndBothKeys(): voidCODE
LOWtests/ConfigurationTest.php64 public function forSymmetricSignerShouldConfigureSignerAndBothKeys(): voidCODE
LOWtests/ConfigurationTest.php75 public function builderShouldCreateABuilderWithDefaultEncoderAndClaimFactory(): voidCODE
LOWtests/ConfigurationTest.php89 public function builderShouldCreateABuilderWithCustomizedEncoderAndClaimFactory(): voidCODE
LOWtests/ConfigurationTest.php103 public function builderShouldUseBuilderFactoryWhenThatIsConfigured(): voidCODE
LOWtests/ConfigurationTest.php121 public function parserShouldReturnAParserWithDefaultDecoder(): voidCODE
LOWtests/ConfigurationTest.php133 public function parserShouldReturnAParserWithCustomizedDecoder(): voidCODE
LOWtests/ConfigurationTest.php146 public function parserShouldNotCreateAnInstanceIfItWasConfigured(): voidCODE
LOWtests/ConfigurationTest.php159 public function validatorShouldReturnTheDefaultWhenItWasNotConfigured(): voidCODE
LOWtests/ConfigurationTest.php171 public function validatorShouldReturnTheConfiguredValidator(): voidCODE
LOWtests/ConfigurationTest.php184 public function validationConstraintsShouldReturnAnEmptyArrayWhenItWasNotConfigured(): voidCODE
LOWtests/ConfigurationTest.php195 public function validationConstraintsShouldReturnTheConfiguredValidator(): voidCODE
LOWtests/ConfigurationTest.php208 public function customClaimFormatterCanBeUsed(): voidCODE
LOWtests/HmacTokenTest.php99 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/HmacTokenTest.php115 public function signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent(Token $token): voidCODE
LOWtests/HmacTokenTest.php128 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/HmacTokenTest.php136 public function everythingShouldWorkWhenUsingATokenGeneratedByOtherLibs(): voidCODE
LOWtests/HmacTokenTest.php155 public function signatureValidationWithLocalFileKeyReferenceWillOperateWithKeyContents(): voidCODE
LOWtests/TimeFractionPrecisionTest.php32 public function timeFractionsPrecisionsAreRespected(string $timeFraction): voidCODE
LOWtests/TimeFractionPrecisionTest.php55 public static function datesWithPotentialRoundingIssues(): iterableCODE
LOWtests/TimeFractionPrecisionTest.php65 public function typeConversionDoesNotCauseParsingErrors(float|int|string $issuedAt, string $timeFraction): voidCODE
LOWtests/MaliciousTamperingPreventionTest.php68 public function preventRegressionsThatAllowsMaliciousTampering(): voidCODE
LOWtests/UnsignedTokenTest.php97 public function tokenValidationShouldPassWhenEverythingIsFine(Token $generated): voidCODE
LOWtests/UnsignedTokenTest.php113 public function tokenValidationShouldAllowCustomConstraint(Token $generated): voidCODE
LOWtests/UnsignedTokenTest.php120 public function tokenAssertionShouldRaiseExceptionWhenOneOfTheConstraintsFails(Token $generated): voidCODE
LOWtests/ES256KTokenTest.php67 public function builderShouldRaiseExceptionWhenKeyIsInvalid(): voidCODE
LOWtests/ES256KTokenTest.php82 public function builderShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(): voidCODE
LOWtests/ES256KTokenTest.php152 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotRight(Token $token): voidCODE
LOWtests/ES256KTokenTest.php168 public function signatureAssertionShouldRaiseExceptionWhenAlgorithmIsDifferent(Token $token): voidCODE
LOWtests/ES256KTokenTest.php184 public function signatureAssertionShouldRaiseExceptionWhenKeyIsNotEcdsaCompatible(Token $token): voidCODE
LOWtests/ES256KTokenTest.php212 public function signatureValidationShouldSucceedWhenKeyIsRight(Token $token): voidCODE
LOWtests/Token/ParserTest.php42 public function parseMustRaiseExceptionWhenTokenDoesNotHaveThreeParts(): voidCODE
LOWtests/Token/ParserTest.php55 public function parseMustRaiseExceptionWhenTokenDoesNotHaveHeaders(): voidCODE
171 more matches not shown…
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWtests/ES512TokenTest.php21use Lcobucci\JWT\Validation\RequiredConstraintsViolated;COMMENT
LOWtests/EcdsaTokenTest.php41#[PHPUnit\CoversClass(InMemory::class)]COMMENT
LOWtests/EddsaTokenTest.php21use PHPUnit\Framework\Attributes as PHPUnit;COMMENT
LOWtests/RsaTokenTest.php21use PHPUnit\Framework\TestCase;COMMENT
LOWtests/JwtFacadeTest.php21use PHPUnit\Framework\TestCase;COMMENT
LOWtests/HmacTokenTest.php41#[PHPUnit\CoversClass(InMemory::class)]COMMENT
LOWtests/MaliciousTamperingPreventionTest.php21use PHPUnit\Framework\TestCase;COMMENT
LOWtests/UnsignedTokenTest.php21use PHPUnit\Framework\Attributes as PHPUnit;COMMENT
LOWtests/ES256KTokenTest.php21use Lcobucci\JWT\Validation\RequiredConstraintsViolated;COMMENT
LOWtests/Validation/Constraint/SignedWithUntilDateTest.php21use Lcobucci\JWT\Validation\Constraint\SignedWith;COMMENT
LOWtests/Validation/Constraint/SignedWithOneInSetTest.php21use Lcobucci\JWT\Validation\Constraint\SignedWith;COMMENT