AI Slop Code Risk Monitor

subquery/subql

SlopCodeMonitor badge for subquery/subql Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
2.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for subquery/subql. SynthScan examined 81,623 lines of code across 1045 source files, recording 129 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.5 (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.

2.5
Adjusted Signal
2.5
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
81.6K
Lines of Code
1.0K
Files
129
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 7.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.8/100 · LOW

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

Agent Over-Engineering Ratio 5.3/100 · LOW

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

PR Review Velocity Impact 11.8/100 · LOW

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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 4HIGH 7MEDIUM 2LOW 116

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 129 distinct pattern matches across 7 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 Identifiers88 hits · 90 pts
SeverityFileLineSnippetContext
LOWpackages/node-core/src/utils/object.ts39export function customCamelCaseGraphqlKey(str: string) {CODE
LOWpackages/node-core/src/utils/graphql.ts31export function modelsTypeToModelAttributes(CODE
LOWpackages/node-core/src/db/db.module.ts33async function establishConnectionSequelize(option: SequelizeOption, numRetries: number): Promise<Sequelize> {CODE
LOWpackages/node-core/src/db/sync-helper.ts115export function constraintDeferrableQuery(table: string, constraint: string): string {CODE
LOWpackages/node-core/src/db/sync-helper.ts175export function createSendNotificationTriggerFunction(schema: string): string {CODE
LOWpackages/node-core/src/db/sync-helper.ts289export function createSchemaTriggerFunction(schema: string): string {CODE
LOWpackages/node-core/src/db/sync-helper.ts314export function createRewindTriggerFunction(schema: string): string {CODE
LOWpackages/node-core/src/db/sync-helper.ts355export async function getDbSizeAndUpdateMetadata(sequelize: Sequelize, schema: string): Promise<bigint> {CODE
LOWpackages/node-core/src/db/sync-helper.ts434export function addIdAndBlockRangeAttributes(attributes: ModelAttributes<Model<any, any>, any>): void {CODE
LOWpackages/node-core/src/db/sync-helper.ts448export function addBlockRangeColumnToIndexes(indexes: IndexesOptions[]): void {CODE
LOW…ode-core/src/db/migration-service/migration-helpers.ts189export function schemaChangesLoggerMessage(schemaChanges: SchemaChangesType): string {CODE
LOW…es/node-core/src/indexer/dictionary/v2/dictionaryV2.ts27async function subqlFilterBlocksCapabilities(CODE
LOWpackages/utils/src/graphql/schema.ts24export function buildSchemaFromDocumentNode(doc: DocumentNode): GraphQLSchema {CODE
LOWpackages/cli/src/createProject.fixtures.ts99export async function createMultiChainTestProject(): Promise<{multichainManifestPath: string; fullPaths: string[]}> {CODE
LOWpackages/cli/src/utils/networkFamily.ts20export function findRunnerByNetworkFamily(networkFamily: NETWORK_FAMILY): string {CODE
LOWpackages/cli/src/utils/etherscan.ts65export async function fetchContractDeployHeight(CODE
LOW⚡packages/cli/src/utils/utils.ts172export function findArrayIndicesTsManifest(content: string, key: string): [number, number] {CODE
LOW⚡packages/cli/src/utils/utils.ts181export function replaceArrayValueInTsManifest(content: string, key: string, newValue: string): string {CODE
LOW⚡packages/cli/src/utils/utils.ts185export function extractArrayValueFromTsManifest(content: string, key: string): string | null {CODE
LOWpackages/cli/src/utils/utils.ts241export function validateEthereumTsManifest(manifest: string): boolean {CODE
LOWpackages/cli/src/utils/utils.ts267export function defaultEnvDevelopLocalPath(projectPath: string): string {CODE
LOWpackages/cli/src/utils/utils.ts292export function defaultMultiChainYamlManifestPath(projectPath: string): string {CODE
LOWpackages/cli/src/utils/build.ts32export async function buildManifestFromLocation(location: string, log: (...args: any[]) => void): Promise<string> {CODE
LOWpackages/cli/src/utils/build.ts140function getTsManifestsFromMultichain(location: string): string[] {CODE
LOWpackages/cli/src/utils/build.ts152function replaceTsReferencesInMultichain(location: string): void {CODE
LOWpackages/cli/src/controller/deploy-controller.ts202export function splitMultichainDataFields(fieldStr = ''): MultichainDataFieldType {CODE
LOWpackages/cli/src/controller/deploy-controller.ts245export function generateAdvancedQueryOptions(flags: DeploymentFlagsInterface): QueryAdvancedOpts {CODE
LOWpackages/cli/src/controller/add-chain-controller.ts56export function determineMultichainManifestPath(multichain: string): string {CODE
LOWpackages/cli/src/controller/add-chain-controller.ts104export function validateAndAddChainManifest(CODE
LOWpackages/cli/src/controller/add-chain-controller.ts104export function validateAndAddChainManifest(CODE
LOWpackages/cli/src/controller/add-chain-controller.ts170async function getDefaultServiceConfiguration(CODE
LOWpackages/cli/src/controller/generate-controller.ts144export function filterObjectsByStateMutability(CODE
LOWpackages/cli/src/controller/generate-controller.ts161function generateFormattedHandlers(CODE
LOWpackages/cli/src/controller/codegen-controller.ts363export async function generateDatasourceTemplates(projectPath: string, templates: TemplateKind[]): Promise<void> {CODE
LOWpackages/cli/src/controller/init-controller.ts395async function prepareProjectScaffoldYAML(defaultYamlPath: string): Promise<void> {CODE
LOWpackages/cli/src/controller/init-controller.ts401export async function validateEthereumProjectManifest(projectPath: string): Promise<boolean> {CODE
LOWpackages/cli/src/controller/network/utils.ts10export async function checkAndIncreaseAllowance(CODE
LOW…cli/src/controller/network/list-deployment-indexers.ts47async function getIndexerDeploymentMetadata(url: string, deploymentId: string): Promise<IndexerDeploymentMetadata> {CODE
LOWpackages/cli/src/controller/network/constants.ts32export function gqlProjectTypeToProjectType(projectType: ProjectTypeGql): ProjectType {CODE
LOW…kages/cli/src/controller/migrate/migrate-controller.ts88function networkFamilyToTemplateNetwork(networkFamily: NETWORK_FAMILY): string {CODE
LOW…src/controller/migrate/abis/migrate-abis.controller.ts14async function copyAbiFilesToTargetPathAsync(abiFiles: string[], targetPath: string): Promise<void> {CODE
LOW…roller/migrate/manifest/migrate-manifest.controller.ts52export async function extractNetworkFromManifest(subgraphProject: SubgraphProject): Promise<ChainInfo> {CODE
LOW…roller/migrate/manifest/migrate-manifest.controller.ts116function graphManifestToSubqlManifest(chainInfo: ChainInfo, subgraphManifest: SubgraphProject): CommonSubqueryProject {CODE
LOW…roller/migrate/manifest/migrate-manifest.controller.ts142export function subgraphTemplateToSubqlTemplate(CODE
LOWpackages/cli/src/commands/migrate.ts147export function registerMigrateSubgraphMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/build-manifest.ts51export function registerBuildManifestMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/multi-chain/add.ts44export function registerMultichainAddMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/create-flex-plan.ts118export function registerCreateNetworkFlexPlanMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/list-deployments.ts57export function registerListNetworkDeploymentsMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/create-project.ts189export function registerCreateNetworkProjectMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool {CODE
LOW…ckages/cli/src/commands/network/list-account-boosts.ts75export function registerListAccountBoostsMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/remove-api-key.ts65export function registerRemoveApiKeyMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/create-deployment.ts110export function registerCreateNetworkDeploymentMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool {CODE
LOW…ages/cli/src/commands/network/swap-deployment-boost.ts45async function swapDeploymentBoostAdapter(CODE
LOW…ages/cli/src/commands/network/swap-deployment-boost.ts99export function registerSwapDeploymentBoostMCPTool(server: McpServer, opts: MCPToolOptions): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/list-flex-plans.ts81export function registerListFlexPlansMCPTool(server: McpServer): RegisteredTool {CODE
LOW…ges/cli/src/commands/network/list-deployment-boosts.ts58export function registerListDeploymentBoostsMCPTool(server: McpServer): RegisteredTool {CODE
LOW…s/cli/src/commands/network/list-deployment-indexers.ts71export function registerListDeploymentIndexersMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/stop-flex-plan.ts69export function registerStopNetworkFlexPlanMCPTool(server: McpServer): RegisteredTool {CODE
LOWpackages/cli/src/commands/network/list-projects.ts79export function registerListNetworkProjectsMCPTool(server: McpServer): RegisteredTool {CODE
28 more matches not shown…
Magic Placeholder Names7 hits · 40 pts
SeverityFileLineSnippetContext
HIGHpackages/node-core/src/yargs.ts155 // example: JSON.stringify({ headers: { 'api-key': '<your-api-key>'}})COMMENT
HIGHpackages/node-core/src/yargs.ts162 // example: JSON.stringify({ headers: { 'api-key': '<your-api-key>'}})COMMENT
HIGH…kages/node-core/src/configure/configure.module.spec.ts49 const option = {headers: {'api-key': '<your-api-key>'}};CODE
HIGH…kages/node-core/src/configure/configure.module.spec.ts59 const option = {headers: {'api-key': '<your-api-key>'}};CODE
HIGH…kages/node-core/src/configure/configure.module.spec.ts72 const option = {headers: {'api-key': '<your-api-key>'}};CODE
HIGH…kages/node-core/src/configure/configure.module.spec.ts93 const option = {headers: {'api-key': '<your-api-key>'}};CODE
HIGH…kages/node-core/src/configure/configure.module.spec.ts105 const option = {headers: {'api-key': '<your-api-key>'}};CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALpackages/node-core/src/meta/health.service.ts45 await this.storeService.modelProvider.metadata.model.upsert({key: 'indexerHealthy', value: healthy});CODE
CRITICALpackages/node/src/blockchain.service.ts138 await this.apiService.unsafeApi.rpc.chain.getFinalizedHead();CODE
CRITICALpackages/node/src/blockchain.service.ts144 const bestHeader = await this.apiService.unsafeApi.rpc.chain.getHeader();CODE
CRITICALpackages/node/src/blockchain.service.ts165 const hash = await this.apiService.unsafeApi.rpc.chain.getBlockHash(height);CODE
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippetContext
LOWjest.config.js41 // Indicates which provider should be used to instrument code for coverageCOMMENT
LOWjest.config.js61 // Force coverage collection from ignored files using an array of glob patternsCOMMENT
LOWjest.config.js101 // modulePathIgnorePatterns: [],COMMENT
LOWjest.config.js121 // Reset the module registry before running each individual testCOMMENT
LOWjest.config.js141COMMENT
LOWjest.config.js201COMMENT
LOWdeploy/k8s/deploy.yaml61 fsGroup: 1000COMMENT
LOW…ages/node-core/src/indexer/poi/poiSync.service.spec.ts41 // upsert: jest.fn(),COMMENT
LOWpackages/cli/chs-swagger.yml121 responses:COMMENT
LOWpackages/cli/chs-swagger.yml141 # responses:COMMENT
LOWpackages/cli/chs-swagger.yml161 # /users/channels/{channel}:COMMENT
LOWpackages/cli/chs-swagger.yml181 # get:COMMENT
LOWpackages/cli/chs-swagger.yml201 # 200:COMMENT
LOWpackages/cli/chs-swagger.yml221 # responses:COMMENT
LOWpackages/cli/chs-swagger.yml241 # 200:COMMENT
LOW…controller/migrate/schema/migrate-schema.controller.ts21COMMENT
LOWpackages/cli/src/adapters/utils.ts261 },COMMENT
LOWpackages/node/src/indexer/api.service.test.ts241 // );COMMENT
LOWpackages/node/src/indexer/api.service.test.ts261 // );COMMENT
LOWpackages/node/src/indexer/api.service.test.ts281 // it('api.queryMulti', async () => {COMMENT
LOWpackages/node/src/indexer/api.service.test.ts301 // const patchedApiResults = await patchedApi.queryMulti([COMMENT
LOWpackages/node/src/indexer/api.service.test.ts321 // TEST_BLOCKNUMBER,COMMENT
LOWpackages/node/src/indexer/api.service.test.ts341 // const apiAt = await api.at(TEST_BLOCKHASH);COMMENT
LOWpackages/node/src/indexer/api.service.test.ts361 // /is not supported/,COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/update_versions.sh12 # Check if the provided argument is a valid fileCOMMENT
LOWscripts/update_versions.sh25 # Check if there are any changesCOMMENT
LOWscripts/update_versions.sh37 # Check if the provided argument is a valid fileCOMMENT
LOWscripts/update_versions.sh50 # Check if the version is a prerelease (ends with a hyphen and one or more digits)COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/cli/src/utils/utils.ts240// Cold validate on ts manifest, for generate scaffold commandCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/scripts/benchmark/cleanHistory.sh9# Create the new directoryCOMMENT