AI Slop Code Risk Monitor

kysely-org/kysely

SlopCodeMonitor badge for kysely-org/kysely Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A type-safe TypeScript SQL query builder

0.9 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kysely-org/kysely, a TypeScript project with 14,320 GitHub stars. SynthScan examined 125,661 lines of code across 634 source files, recording 106 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.9 (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.

0.9
Adjusted Signal
0.9
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
14.3K
Stars
TypeScript
Language
125.7K
Lines of Code
634
Files
106
Pattern Hits
2026-10-31
Scan Date
0.00
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 4.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 104 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 3.5/100 · LOW

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

PR Review Velocity Impact 4.1/100 · LOW

Which changes need focused human review? 106 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 106

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 106 distinct pattern matches across 5 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 Identifiers87 hits · 90 pts
SeverityFileLineSnippetContext
LOWdeno.check.d.ts93 export function functionThatExpectsPersonWithNonNullValue(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts40declare function acceptsNarrowSelectQueryBuilder(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts48declare function acceptsNarrowExpressionBuilder(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts56declare function acceptsTwoTableExpressionBuilder(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts70declare function acceptsNarrowDeleteQueryBuilder(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts80declare function acceptsNarrowUpdateQueryBuilder(CODE
LOW⚡test/ts-benchmarks/generic.bench.ts90declare function acceptsNarrowMergeQueryBuilder(CODE
LOWtest/typings/test-d/postgres-json.test-d.ts121async function testPostgresConditionalJsonSelects(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/expression.test-d.ts213async function testExpressionBuilderAnyWithColumnType(CODE
LOWtest/typings/test-d/expression.test-d.ts237function testExpressionBuilderTuple(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/expression.test-d.ts302function testExpressionBuilderConstructor(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/expression.test-d.ts316function testTablelessExpressionBuilder(CODE
LOWtest/typings/test-d/on-conflict-where.test-d.ts34function testGeneratedAndExcludedColumns() {CODE
LOWtest/typings/test-d/on-conflict-where.test-d.ts45function testImmutableReferenceComparisons() {CODE
LOWtest/typings/test-d/on-conflict-where.test-d.ts54function testReusablePredicateHelpers() {CODE
LOWtest/typings/test-d/merge.test-d.ts189async function testWhenNotMatchedBySource(CODE
LOWtest/typings/test-d/infer-result.test-d.ts15function testInferResultSelectQuery(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/infer-result.test-d.ts41function testInferResultInsertQuery(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/infer-result.test-d.ts69function testInferResultUpdateQuery(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/infer-result.test-d.ts110function testInferResultDeleteQuery(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/infer-result.test-d.ts133function testInferResultMergeQuery(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/create-table.test-d.ts5async function testCreateTableWithSeveralColumns(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/create-table.test-d.ts32async function testCreateTableWithAddUniqueConstraint(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/create-table.test-d.ts85async function testCreateTableWithAsStatement(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/index.test-d.ts25async function testKyselyAndTransactionTypes(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/index.test-d.ts35async function testExecuteTakeFirstOrThrow(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts14function testSelectQueryBuilderExtends() {CODE
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts28function testExpressionBuilderExtends() {CODE
LOWtest/typings/test-d/generic-pre-5.4.test-d.ts42function testExpressionBuilderExtendsFuncArg() {CODE
LOWtest/typings/test-d/alter-table.test-d.ts6async function testAlterTableWithAddUniqueConstraint(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts80async function testSelectWithDefaultGenerics(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts110async function testSelectExpressionBuilderWithDefaultGenerics(CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts142async function testSelectExpressionBuilderWithCustomGenerics(CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts169async function testSelectExpressionBuilderWithSubExpressions(CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts195async function testSelectWithCustomGenerics(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts233async function testSelectUnexpectedColumn(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts307async function testSelectWithDynamicReference(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts703async function testSelectWithOverAndPartitionBySingle(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts742async function testSelectWithOverAndPartitionByMultiple(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts789async function testSelectWithOverAndPartitionByUnexpectedColumns(CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts896async function testSelectWithOverAndOrderBySingle(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts935async function testSelectWithOverAndOrderByMultiple(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts974async function testSelectWithOverAndOrderByUnexpectedColumns(CODE
LOWtest/typings/test-d/aggregate-function.test-d.ts1031async function testSelectAsCustomFunctionArgument(db: Kysely<Database>) {CODE
LOWtest/typings/test-d/readonly.test-d.ts414async function testReadonlyControlledTransaction(CODE
LOWtest/typings/test-d/generic.test-d.ts43function testSelectQueryBuilderExtends() {CODE
LOWtest/typings/test-d/generic.test-d.ts56function testExpressionBuilderExtends() {CODE
LOWtest/typings/test-d/generic.test-d.ts69function testExpressionBuilderExtendsFuncArg() {CODE
LOWtest/node/src/test-setup.ts559function createNoopTransformerPlugin(): KyselyPlugin {CODE
LOWtest/node/src/test-setup.ts659export function resolveJSONColumnDataType(CODE
LOWtest/node/src/controlled-transaction.test.ts912 async function startTransactionWithSavepoint() {CODE
LOWexample/test/user/user.test.ts135 async function createPasswordSignInMethod(CODE
LOW…e/src/user/sign-in-method/sign-in-method.repository.ts23export async function insertPasswordSignInMethod(CODE
LOWsite/plugins/generate-agent-discovery-catalogs.ts7export default function generateAgentDiscoveryCatalogs(): Plugin {CODE
LOW…/docs/getting-started/IUseADifferentPackageManager.tsx8export function IUseADifferentPackageManager(CODE
LOWsite/docs/getting-started/Instantiation.tsx113function getDialectSpecificCodeSnippet(CODE
LOWsite/docs/recipes/0001-reusable-helpers.md131function idsOfPersonsThatHaveDogNamed(name: Expression<string>) {CODE
LOWsite/src/components/playground-example-types.ts95 export function functionThatExpectsPersonWithNonNullValue(CODE
LOWsite/src/theme/DocCategoryGeneratedIndexPage/index.tsx8export default function DocCategoryGeneratedIndexPageWrapper(CODE
LOWsrc/kysely.ts1344function assertNotCommittedOrRolledBack(CODE
27 more matches not shown…
Over-Commented Block10 hits · 10 pts
SeverityFileLineSnippetContext
LOWpnpm-workspace.yaml61overrides:COMMENT
LOWtest/typings/test-d/generic.test-d.ts21// 1. A method that accepts a `DB`/`TB`-parameterized expression type must keep itCOMMENT
LOWsite/docs/getting-started/TypesCode.tsx41 // made optional in inserts and updates.COMMENT
LOWsite/docs/examples/select/0051-not-null.js21 // The special \`NotNull\` type can be used to make aCOMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts181 // encryption_type: nullCOMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts221 'sys.schemas': {COMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts241 // is_edge: booleanCOMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts261 // lock_on_bulk_load: booleanCOMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts281 // is_table_type: booleanCOMMENT
LOWsrc/dialect/mssql/mssql-introspector.ts301 // is_msh_shipped: booleanCOMMENT
Overly Generic Function Names5 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/kysely.ts1045 * async function doSomething(kysely: Kysely<Database>) {}COMMENT
LOWsrc/kysely.ts1086 * async function doSomething(kysely: Kysely<Database>) {}COMMENT
LOWsrc/kysely.ts1133 * async function doSomething(kysely: Kysely<Database>) {}COMMENT
LOWsrc/kysely.ts1185 * async function doSomething(kysely: Kysely<Database>) {}COMMENT
LOWsrc/kysely.ts1245 * async function doSomething(kysely: Kysely<Database>) {}COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/publish.yml57 # Check if tag points to a commit that exists on the expected branchCOMMENT
LOW.github/workflows/bench.yml89 # Check if there are benchmark changesCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/node/src/camel-case.test.ts70 addressRow1: '123 Main St',CODE
LOWtest/node/src/camel-case.test.ts76 addressRow1: '123 Main St',CODE