AI Slop Code Risk Monitor

sinclairzx81/typebox

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

JSON Schema Type Builder with Static Type Resolution for TypeScript

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for sinclairzx81/typebox, a TypeScript project with 7,018 GitHub stars. SynthScan examined 246,961 lines of code across 2213 source files, recording 234 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.4 (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.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
7.0K
Stars
TypeScript
Language
247.0K
Lines of Code
2.2K
Files
234
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.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 2.4/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 6.2/100 · LOW

Which changes need focused human review? 234 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 8HIGH 0MEDIUM 4LOW 222

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 234 distinct pattern matches across 6 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.

Over-Commented Block178 hits · 178 pts
SeverityFileLineSnippetContext
LOWreadme.md81import Type from 'typebox'COMMENT
LOWtasks.ts41Task.run('build', (target: string = 'target/build') => BuildTo(target))COMMENT
LOWtasks.ts61Task.run('local', (target: string = '../build-test/node_modules/typebox') => BuildTo(target))COMMENT
LOWtasks.ts81Task.run('start', () => Task.shell('node --watch example/index.ts'))COMMENT
LOWtasks.ts101Task.run('report', () => Test.report(['test/jsonschema', 'test/typebox/runtime']))COMMENT
LOWdesign/website/docs/value/pipeline.md21//COMMENT
LOWdesign/website/docs/value/errors.md21 // schemaPath: '#/required',COMMENT
LOWdesign/website/docs/script/1_script.md61 // x: TLiteral<1>COMMENT
LOWdesign/website/docs/script/1_script.md121 // z: TNumberCOMMENT
LOWdesign/website/docs/script/1_script.md141// IndexedCOMMENT
LOWdesign/website/docs/script/1_script.md161 // TNumber,COMMENT
LOWdesign/website/docs/script/1_script.md181 // x: TLiteral<1>,COMMENT
LOWdesign/website/docs/script/1_script.md201 description: 'An email address'COMMENT
LOWdesign/website/docs/script/1_script.md221 // z: TWith<TNumber, {COMMENT
LOWdesign/website/docs/schema/6_intern.md21 x: Vector, // type: "object",COMMENT
LOWdesign/website/docs/schema/6_intern.md41 // },COMMENT
LOWdesign/website/docs/schema/6_intern.md61 // "x-f0586253b656ad7e": {COMMENT
LOWdesign/website/docs/schema/6_intern.md101// When passing a non-referential schema to Schema.Compile(...), theCOMMENT
LOWdesign/website/docs/schema/6_intern.md121Schema.Build(A).Functions() // const check_0 = ((value) => ((typeof value === "object"COMMENT
LOWdesign/website/docs/schema/6_intern.md141 // "x-b3d1b3fb56d0fb6e": { type: "number" },COMMENT
LOWdesign/website/docs/schema/6_intern.md161// (A) check_0 function to expand into 5 distinct functions, one forCOMMENT
LOWdesign/website/docs/schema/6_intern.md181 // const check_3 = ((value) => Number.isFinite(value))COMMENT
LOWdesign/website/docs/schema/3_errors.md21 z: { type: 'number' }COMMENT
LOWdesign/website/docs/schema/3_errors.md41 // {COMMENT
LOWdesign/website/docs/schema/4_compile.md21})COMMENT
LOWdesign/website/docs/schema/4_compile.md41 // false,COMMENT
LOWdesign/website/docs/schema/2_parse.md21} as constCOMMENT
LOWdesign/website/docs/system/3_memory.md21COMMENT
LOWdesign/website/docs/type/overview.md21 // 'email'COMMENT
LOWdesign/website/docs/type/instantiate.md21 // x: TLiteral<1>,COMMENT
LOWdesign/website/docs/type/cyclic.md121// required: [ 'id', 'nodes' ],COMMENT
LOWdesign/website/docs/type/cyclic.md141 type Node = {COMMENT
LOWdesign/website/docs/type/cyclic.md161// },COMMENT
LOWdesign/website/docs/type/function.md21 // properties: {COMMENT
LOWdesign/website/docs/type/constructor.md21 // properties: {COMMENT
LOWdesign/website/docs/type/refine.md21// ------------------------------------------------------------------COMMENT
LOWdesign/website/docs/type/refine.md41 // params: { index: 0, message: "Value 42 is not Prime" },COMMENT
LOWdesign/website/docs/type/required.md21 // y: TNumber,COMMENT
LOWdesign/website/docs/overview/overview.md81 // y: number,COMMENT
LOWdesign/format/uri.ts21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THECOMMENT
LOWdesign/format/uri.ts41//COMMENT
LOWdesign/format/uri.ts61//COMMENT
LOWdesign/format/uri.ts141// URI Template fragments (RFC 6570)COMMENT
LOWdesign/syntax/syntax.ts201// ------------------------------------------------------------------COMMENT
LOWdesign/syntax/syntax.ts361])COMMENT
LOWdesign/syntax/syntax.ts621 Runtime.Ref('OptionalSemiColon'),COMMENT
LOWdesign/syntax/syntax.ts641 Runtime.Const('false'),COMMENT
LOWdesign/syntax/syntax.ts701])COMMENT
LOWtest/typebox/runtime/value/codec/intersect.ts141})COMMENT
LOWtest/typebox/runtime/schema/additional.ts41// validation fails. This scenario isn't covered by the test suite.COMMENT
LOWtest/typebox/runtime/type/extends/enum.ts1import Type, { Extends, ExtendsResult } from 'typebox'COMMENT
LOWtest/typebox/runtime/type/extends/dependent.ts501 Type.Dependent(Type.String(), Type.Never(), Type.Literal(1))COMMENT
LOWtest/typebox/runtime/type/engine/action/call.ts181 Assert.IsEqual(T.properties.z.items[0].const, 3)COMMENT
LOWtest/typebox/runtime/type/engine/action/module.ts101 T: Type.Generic([Type.Parameter('T')], Type.Tuple([Type.Ref('T')])),COMMENT
LOWtest/typebox/runtime/format/hostname.ts221 // Should invalidate if the reserved hyphen pattern is in a sub-labelCOMMENT
LOWtest/typebox/runtime/format/iri.ts61// ------------------------------------------------------------------COMMENT
LOWtest/typescript/00213-hard-vue-basic-props.ts1// ------------------------------------------------------------------COMMENT
LOWtest/typescript/00007-easy-readonly.ts1// ------------------------------------------------------------------COMMENT
LOWtest/typescript/00008-medium-readonly-2.ts1// ------------------------------------------------------------------COMMENT
LOWtest/typescript/00003-medium-omit.ts1// ------------------------------------------------------------------COMMENT
118 more matches not shown…
Hallucination Indicators8 hits · 115 pts
SeverityFileLineSnippetContext
CRITICALexample/scripting/turing.ts267 const output = program.properties.output.properties.items.items.map((item: any) => String.fromCharCode(item.const)).joCODE
CRITICAL⚡example/scripting/turing.ts286 const input = program.properties.input.properties.items.items.map((type: Type.TLiteral) => type.const).join(' ')CODE
CRITICAL⚡example/scripting/turing.ts287 const output = program.properties.output.properties.items.items.map((type: Type.TLiteral) => type.const).join(' ')CODE
CRITICAL⚡example/scripting/turing.ts288 const memory_prev = program.properties.memory.properties.prev.items.map((type: Type.TLiteral) => type.const)CODE
CRITICAL⚡example/scripting/turing.ts289 const memory_next = program.properties.memory.properties.next.items.map((type: Type.TLiteral) => type.const)CODE
CRITICAL⚡example/scripting/turing.ts292 const next = program.properties.instruction.properties.next.items.map((type: Type.TLiteral) => type.const).join(' ')CODE
CRITICAL⚡example/scripting/turing.ts293 const prev = program.properties.instruction.properties.prev.items.map((type: Type.TLiteral) => type.const).join(' ')CODE
CRITICAL⚡example/scripting/turing.ts301 const output = program.properties.output.properties.items.items.map((type: Type.TLiteral<number>) => String.fromCharCoCODE
Hyper-Verbose Identifiers39 hits · 41 pts
SeverityFileLineSnippetContext
LOWdesign/website/app/mode.ts194export function notifySceneGeometryChanged() {CODE
LOWsrc/schema/resolve/resolve.ts207function FindDeferredResourceLegacy(stack: Stack.XStack, ref: Schema.XRef, schema: Schema.XSchemaObject): XDeferredResouCODE
LOWsrc/schema/resolve/resolve.ts214function FindDeferredResourceModern(stack: Stack.XStack, canonical: string, schema: Schema.XSchemaObject): XDeferredResoCODE
LOWsrc/schema/intern/intern.ts228function FromUnevaluatedProperties(context: XRefContext, schema: Schema.XUnevaluatedProperties): Schema.XSchema {CODE
LOWsrc/schema/engine/additionalProperties.ts48function IsAdditionalPropertiesIgnored(context: BuildContext, additionalProperties: Schema.XSchema): boolean {CODE
LOW⚡src/schema/engine/additionalProperties.ts82function HasExactRequiredProperties(schema: Schema.XRequired & Schema.XProperties): boolean {CODE
LOW⚡src/schema/engine/additionalProperties.ts87function CanAdditionalPropertiesFast(_context: BuildContext, schema: Schema.XAdditionalProperties, _value: string): scheCODE
LOW⚡src/schema/engine/additionalProperties.ts94function BuildAdditionalPropertiesFast(_context: BuildContext, schema: Schema.XAdditionalProperties & Schema.XRequired, CODE
LOW⚡src/schema/engine/additionalProperties.ts100function BuildAdditionalPropertiesStandard(stack: Stack.XStack, context: BuildContext, schema: Schema.XAdditionalPropertCODE
LOWsrc/schema/engine/additionalProperties.ts113export function BuildAdditionalProperties(stack: Stack.XStack, context: BuildContext, schema: Schema.XAdditionalPropertiCODE
LOWsrc/schema/engine/additionalProperties.ts122export function CheckAdditionalProperties(stack: Stack.XStack, context: CheckContext, schema: Schema.XAdditionalPropertiCODE
LOWsrc/schema/engine/additionalProperties.ts133export function ErrorAdditionalProperties(stack: Stack.XStack, context: ErrorContext, schemaPath: string, instancePath: CODE
LOWsrc/schema/engine/items.ts78function BuildItemsUnsizedStandard(stack: Stack.XStack, context: BuildContext, schema: Schema.XItemsUnsized, value: striCODE
LOWsrc/schema/engine/_stack.ts164function NextUseResourceBaseForReference(stack: XStack, schema: Schema.XSchemaObject): boolean {CODE
LOWsrc/schema/engine/unevaluatedProperties.ts41export function BuildUnevaluatedProperties(stack: Stack.XStack, context: BuildContext, schema: Schema.XUnevaluatedProperCODE
LOWsrc/schema/engine/unevaluatedProperties.ts56export function CheckUnevaluatedProperties(stack: Stack.XStack, context: CheckContext, schema: Schema.XUnevaluatedProperCODE
LOWsrc/schema/engine/unevaluatedProperties.ts66export function ErrorUnevaluatedProperties(stack: Stack.XStack, context: ErrorContext, schemaPath: string, instancePath:CODE
LOWsrc/schema/engine/_context.ts49function HasUnevaluatedFromUnknown(value: unknown) {CODE
LOWsrc/schema/engine/additionalItems.ts47function BuildAdditionalItemsStandard(stack: Stack.XStack, context: BuildContext, schema: Schema.XAdditionalItems & ScheCODE
LOWsrc/type/types/template_literal.ts68export function IsTemplateLiteralDeferred(value: unknown): value is TTemplateLiteralDeferred {CODE
LOWsrc/type/script/mapping.ts137export function GenericParameterExtendsEqualsMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts148export function GenericParameterExtendsMapping(input: [unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts159export function GenericParameterEqualsMapping(input: [unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts168export function GenericParameterIdentifierMapping(input: string): unknown {CODE
LOWsrc/type/script/mapping.ts186export function GenericParameterListMapping(input: [unknown, unknown, unknown] | []): unknown {CODE
LOWsrc/type/script/mapping.ts206export function GenericCallArgumentListMapping(input: [unknown, unknown, unknown] | []): unknown {CODE
LOWsrc/type/script/mapping.ts217export function GenericCallArgumentsMapping(input: [unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts406export function TemplateInterpolateMapping(input: [unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts439export function TemplateLiteralTypesMapping(input: [unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1000export function ParameterReadonlyOptionalMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1430export function InterfaceDeclarationHeritageListMapping(input: [unknown, unknown, unknown] | []): unknown {CODE
LOWsrc/type/script/mapping.ts1441export function InterfaceDeclarationHeritageMapping(input: [unknown, unknown] | []): unknown {CODE
LOWsrc/type/script/mapping.ts1452export function InterfaceDeclarationGenericMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1467export function InterfaceDeclarationMapping(input: [unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1481export function TypeAliasDeclarationGenericMapping(input: [unknown, unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1492export function TypeAliasDeclarationMapping(input: [unknown, unknown, unknown, unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1511export function ModuleDeclarationDelimiterMapping(input: [unknown, unknown] | [unknown]): unknown {CODE
LOWsrc/type/script/mapping.ts1520export function ModuleDeclarationListMapping(input: [unknown, unknown, unknown] | []): unknown {CODE
LOWsrc/error/errors.ts86export function IsLocalizedValidationError(value: unknown): value is TLocalizedValidationError {CODE
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMexample/scripting/turing.ts32// ┌────────────────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMexample/scripting/turing.ts38// ├────────────────────────────────────────────────────────────────────────────┤COMMENT
MEDIUMexample/scripting/turing.ts51// └────────────────────────────────────────────────────────────────────────────┘COMMENT
Fake / Example Data5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdesign/website/docs/format/email.md12const R = Format.IsEmail('user@example.com')CODE
LOWdesign/website/docs/format/email.md22const R = Schema.Check({ format: 'email' }, 'user@example.com')CODE
LOWtest/typebox/runtime/format/idn_email.ts84 Assert.IsTrue(Format.IsIdnEmail('first.last@example.org'))CODE
LOWtest/typebox/runtime/format/idn_email.ts114 Assert.IsTrue(Format.IsIdnEmail('user@example.com'))CODE
LOWtest/typebox/runtime/format/email.ts7 Assert.IsTrue(Format.IsEmail('user@example.com'))CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdesign/format/uri.ts63// octet at 255, per RFC 3986. It is the highest leverage fragmentCOMMENT