AI Slop Code Risk Monitor

keystonejs/keystone

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

The superpowered headless CMS for Node.js — built with GraphQL and React

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for keystonejs/keystone, a TypeScript project with 9,986 GitHub stars. SynthScan examined 166,681 lines of code across 1275 source files, recording 155 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
10.0K
Stars
TypeScript
Language
166.7K
Lines of Code
1.3K
Files
155
Pattern Hits
2026-10-31
Scan Date
0.01
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 5.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.3/100 · LOW

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

Agent Over-Engineering Ratio 3.1/100 · LOW

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

PR Review Velocity Impact 7.7/100 · LOW

Which changes need focused human review? 155 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 7HIGH 1MEDIUM 22LOW 125

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 155 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 Identifiers105 hits · 105 pts
SeverityFileLineSnippetContext
LOWtests/api-tests/utils.ts60export function expectInternalServerError(CODE
LOWtests/api-tests/utils.ts76export function expectGraphQLValidationError(CODE
LOWtests/api-tests/utils.ts187export function expectSingleRelationshipError(CODE
LOWdocs/components/docs/DocumentEditorDemo.tsx99function documentFeaturesCodeExample(config: DocumentFieldConfig | DocumentFeatures) {CODE
LOWdocs/components/docs/DocumentEditorDemo.tsx143function documentFeaturesToShorthand(documentFeatures: DocumentFeatures): DocumentFieldConfig {CODE
LOWdocs/components/docs/DocumentEditorDemo.tsx198function documentFeaturesFormToValue(formValue: DocumentFeaturesFormValue): DocumentFeatures {CODE
LOWdocs/components/docs/DocumentEditorDemo.tsx264export function DocumentFeaturesFormAndCode() {CODE
LOWdocs/scripts/replace-show-next-release/markdoc.ts6export function removeNextReleaseConditions(contents: string) {CODE
LOWscripts/prepare-release.js261async function generateGitHubReleaseText(previousTag, releaseTag) {CODE
LOWpackages/document-renderer/src/index.tsx212function createComponentBlockProps(node: Element, children: ReactElement[]) {CODE
LOWpackages/core/src/artifacts.ts16export function getFormattedGraphQLSchema(schema: string) {CODE
LOWpackages/core/src/scripts/utils.ts17export async function importBuiltKeystoneConfiguration(cwd: string): Promise<KeystoneConfig> {CODE
LOWpackages/core/src/lib/middleware.ts10export function createAdminUIMiddlewareWithNextApp(CODE
LOWpackages/core/src/lib/typescript-schema-printer.ts39function printTypeReferenceWithoutNullable(CODE
LOWpackages/core/src/lib/admin-meta.ts437export function getAdminMetaForRelationshipField() {CODE
LOWpackages/core/src/lib/telemetry.ts231async function sendProjectTelemetryEvent(CODE
LOWpackages/core/src/lib/system.ts7export function getBuiltKeystoneConfigurationPath(cwd: string) {CODE
LOW…kages/core/src/lib/coerceAndValidateForGraphQLInput.ts14export function coerceAndValidateForGraphQLInput(CODE
LOWpackages/core/src/lib/context/graphql.ts37function getNamedOrListTypeNodeForType(CODE
LOWpackages/core/src/lib/context/graphql.ts60function getVariablesForGraphQLField(field: GraphQLField<any, any>) {CODE
LOWpackages/core/src/lib/core/field-assertions.ts16function assertFieldsIsNonNullAllowed(list: ListForValidation) {CODE
LOWpackages/core/src/lib/core/field-assertions.ts29function assertUniqueWhereInputsValid(list: ListForValidation) {CODE
LOWpackages/core/src/lib/core/field-assertions.ts47function assertNoFieldKeysThatConflictWithFilterCombinators(list: ListForValidation) {CODE
LOWpackages/core/src/lib/core/field-assertions.ts57function assertNoConflictingExtraOutputFields(list: ListForValidation) {CODE
LOWpackages/core/src/lib/core/field-assertions.ts81function assertIdFieldGraphQLTypesCorrect(list: ListForValidation) {CODE
LOWpackages/core/src/lib/core/prisma-schema-printer.ts165function assertDbFieldIsValidForIdField(CODE
LOWpackages/core/src/lib/core/access-control.ts239export async function enforceListLevelAccessControl(CODE
LOWpackages/core/src/lib/core/access-control.ts301export async function enforceFieldLevelAccessControl(CODE
LOWpackages/core/src/lib/core/utils.ts31export function getDBFieldKeyForFieldOnMultiField(fieldKey: string, subField: string) {CODE
LOWpackages/core/src/lib/core/initialise-lists.ts139function isGraphQLInputTypeAssignable(source: GraphQLType, target: GraphQLType): boolean {CODE
LOWpackages/core/src/lib/core/initialise-lists.ts454function getListsWithInitialisedFields(CODE
LOWpackages/core/src/lib/core/initialise-lists.ts1123function getInitialisedActionGraphql(CODE
LOWpackages/core/src/lib/core/mutations/select.ts33function applyConditionalSelection(CODE
LOW…core/mutations/nested-mutation-many-input-resolvers.ts39export function resolveRelateToManyForCreateInput(CODE
LOW…core/mutations/nested-mutation-many-input-resolvers.ts84export function resolveRelateToManyForUpdateInput(CODE
LOW…/core/mutations/nested-mutation-one-input-resolvers.ts35export function resolveRelateToOneForCreateInput(CODE
LOW…/core/mutations/nested-mutation-one-input-resolvers.ts51export function resolveRelateToOneForUpdateInput(CODE
LOWpackages/core/src/lib/core/mutations/index.ts609async function resolveInputForCreateOrUpdate(CODE
LOWpackages/core/src/lib/core/queries/select.ts112export function getOutputFieldRequirements(CODE
LOWpackages/core/src/lib/core/queries/output-field.ts96function prepareRelatedItemSelection(CODE
LOWpackages/core/src/lib/core/queries/output-field.ts120function mergeRelatedItemSelections(CODE
LOWpackages/core/src/fields/types/calendarDay/index.ts139function dateStringToDateObjectInUTC(value: string) {CODE
LOWpackages/core/src/fields/types/calendarDay/index.ts154function transformFilterDateStringsToDateObjects(CODE
LOW…/fields/types/relationship/views/ContextualActions.tsx131export function buildQueryForRelationshipFieldWithForeignField(CODE
LOWpackages/core/src/fields/types/multiselect/index.ts168function configToOptionsAndGraphQLType(CODE
LOWpackages/core/src/admin-ui/utils/filters.ts19function isConditionalFilterOperator(key: string): key is 'AND' | 'OR' | 'NOT' {CODE
LOWpackages/core/src/admin-ui/utils/filters.ts70export function serializeItemForConditionalFilters(CODE
LOWpackages/core/src/admin-ui/utils/filters.ts117export function getConditionalFilterCaseFieldKeys(CODE
LOWpackages/core/src/admin-ui/utils/filters.ts146export function getConditionalFilterFieldKeys(CODE
LOWpackages/core/src/admin-ui/utils/actionData.ts53export function getActionGraphQLVariables(action: ActionMeta): string {CODE
LOWpackages/core/src/admin-ui/utils/utils.tsx25export function getRootGraphQLFieldsFromFieldController(controller: FieldController<any, any>) {CODE
LOWpackages/core/src/admin-ui/utils/utils.tsx79export function serializeValueToOperationItem(CODE
LOWpackages/fields-document/src/validation.ts25function validateComponentBlockProps(CODE
LOWpackages/fields-document/src/validation.ts133export function getValidatedNodeWithNormalizedComponentFormProps(CODE
LOWpackages/fields-document/src/validation.ts174export function validateAndNormalizeDocument(CODE
LOWpackages/fields-document/src/validation.ts174export function validateAndNormalizeDocument(CODE
LOWpackages/fields-document/src/structure-validation.ts163export function validateDocumentStructure(value: unknown): asserts value is Node[] {CODE
LOWpackages/fields-document/src/relationship-data.ts160export async function addRelationshipDataToComponentProps(CODE
LOWpackages/fields-document/src/structure-graphql-input.ts308export async function resolveRelateToManyForCreateInput(CODE
LOWpackages/fields-document/src/structure-graphql-input.ts343export async function resolveRelateToManyForUpdateInput(CODE
45 more matches not shown…
Hallucination Indicators7 hits · 70 pts
SeverityFileLineSnippetContext
CRITICALpackages/core/src/lib/core/field-assertions.ts92 } defines the type ${idField.input.uniqueWhere.arg.type.toString()}`CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx303 previewProps.fields.object.fields.conditional.onChange(true)CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx393 previewProps.fields.object.fields.select.onChange('b')CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx403 previewProps.fields.object.fields.many.onChange(val)CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx420 previewProps.fields.object.fields.conditional.value.onChange(val)CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx430 previewProps.fields.object.fields.conditionalSelect.onChange('b')CODE
CRITICAL…/component-blocks/insertion-and-preview-props.test.tsx464 previewProps.fields.object.fields.conditionalSelect.value.onChange('Some content')CODE
Slop Phrases21 hits · 63 pts
SeverityFileLineSnippetContext
MEDIUMexamples/custom-session-passport/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-passport/auth.ts74 // WARNING: this is for demonstration purposes only, probably dont do thisCOMMENT
MEDIUMexamples/usecase-blog-moderated/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/auth-magic-link/schema.ts106// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/auth-magic-link/keystone.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/auth/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/auth/keystone.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-invalidation/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-invalidation/keystone.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-redis/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-redis/keystone.ts9// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/usecase-roles/schema.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/usecase-roles/keystone.ts7// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-next-auth/schema.ts6// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-next-auth/session.ts7// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-next-auth/keystone.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/hooks/schema.ts7// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/actions/schema.ts7// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/logging-opentelemetry/otel.ts5// WARNING: this open-telemetry example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/custom-session-jwt/keystone.ts8// WARNING: this example is for demonstration purposes onlyCOMMENT
MEDIUMexamples/extend-express-app/keystone.ts7// WARNING: this example is for demonstration purposes onlyCOMMENT
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOWtests/cli-tests/artifacts.test.ts61// uncomment when you need to update the schemasCOMMENT
LOWdocs/next-env.d.ts1/// <reference types="next" />COMMENT
LOWexamples/auth-magic-link/schema.ts101 oneTimeTokenCreatedAt: timestamp({ ...hiddenField }),COMMENT
LOWexamples/document-field/next-env.d.ts1/// <reference types="next" />COMMENT
LOWexamples/framework-astro/src/env.d.ts1/// <reference path="../.astro/types.d.ts" />COMMENT
LOWexamples/framework-astro/src/keystone/schema.ts1// Welcome to your schemaCOMMENT
LOWexamples/framework-remix/remix.env.d.ts1/// <reference types="@remix-run/dev" />COMMENT
LOWpackages/core/src/types/next-fields.ts321 // TDBField extends RelationDBField<infer Mode>COMMENT
LOWpackages/core/src/types/config/access-control.ts141 create?: ListItemAccessControl<'create', ListTypeInfo>COMMENT
LOWpackages/core/src/types/schema/legacy-alias.ts21 */COMMENT
LOWpackages/core/src/admin-ui/components/Logo.tsx61 <path d="M0 0h13v76H0V0Z" fill={tokenSchema.color.foreground.neutral} />COMMENT
LOW…es/fields-document/src/DocumentEditor/editor-shared.ts321 }COMMENT
LOW…es/fields-document/src/DocumentEditor/editor-shared.ts341// return `"${key}" -> {${[...val.allowedChildren].map(x => JSON.stringify(x)).join(' ')}}`;COMMENT
LOW…ds-document/src/DocumentEditor/toolbar-state-shared.ts121 ) as ToolbarState['marks']COMMENT
LOW…es/fields-document/src/DocumentEditor/pasting/index.ts21 editor.setFragmentData = data => {COMMENT
LOWpackages/create/starter/schema.ts1// Welcome to your schemaCOMMENT
LOWpackages/create/starter/auth.ts1// Welcome to some authentication for KeystoneCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/cli-tests/utils.ts161 print(_val) {CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/content/docs/walkthroughs/lesson-4.md309 data: { name: 'admin', email: 'admin@example.com', password },CODE
LOWpackages/create/starter/keystone.ts37 data: { name: 'admin', email: 'admin@example.com', password },CODE
Self-Referential Comments1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackages/core/src/artifacts.ts18 '# This file is automatically generated by Keystone, do not modify it manually.\n' +CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…nd-graphql-subscriptions/admin/pages/subscriptions.tsx68// NOTE: to stop Next.js SSR from breaking, we need to check if window is definedCOMMENT