AI Slop Code Risk Monitor

dsh-market/dsh-market

SlopCodeMonitor badge for dsh-market/dsh-market Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for dsh-market/dsh-market. SynthScan examined 141,375 lines of code across 238 source files, recording 243 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.7 (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.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
141.4K
Lines of Code
238
Files
243
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 8.2/100 · LOW

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

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

PR Review Velocity Impact 8.6/100 · LOW

Which changes need focused human review? 243 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 6LOW 237

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 243 distinct pattern matches across 4 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 Block164 hits · 145 pts
SeverityFileLineSnippetContext
LOWtsdown.config.ts41 format: 'cjs',COMMENT
LOWtests/check.spec.ts701 // a list stops being read.COMMENT
LOWtests/profile.spec.ts541 }COMMENT
LOWtests/profile.spec.ts561 // Another host's repository of the same name still gets nothing, which isCOMMENT
LOWtests/pnpm-compat.spec.ts101 // The THIRD face of the same gate, and the only one that fails after theCOMMENT
LOWtests/pnpm-compat.spec.ts301 const failed = classifyPnpmFailure(COMMENT
LOWtests/pnpm-compat.spec.ts601 expect(classifyPnpmFailure(ndjson)?.pkg).toBe('dsh-music-huazai')COMMENT
LOWtests/pnpm-compat.spec.ts821 // to require `--store-dir` as the FIX, which is what sent users in aCOMMENT
LOWtests/flows.spec.ts381 const def = commit !== undefined ? repo.byCommit?.[commit] : undefinedCOMMENT
LOWtests/flows.spec.ts2841COMMENT
LOWtests/flows.spec.ts3641COMMENT
LOWtests/flows.spec.ts3701 expect(ran).not.toContain('themer@latest')COMMENT
LOWtests/flows.spec.ts3781COMMENT
LOWtests/flows.spec.ts5081 const restored = JSON.parse(readFileSync(join(pkgDir, 'package.json'), 'utf8')) as Record<string, unknown>COMMENT
LOWtests/flows.spec.ts6761 // The pin comes from the installed spec, with no lookup in between — anCOMMENT
LOWtests/flows.spec.ts8181 expect(on.status).toBe(502)COMMENT
LOWtests/flows.spec.ts9041 expect((await restarted.dispatch('GET', '/dsh-market/status')).json.channel).toBe('stable')COMMENT
LOWtests/settings.spec.ts81 // routes read the saved channel off disk at mount and `onChange` — whichCOMMENT
LOWtests/settings.spec.ts141 effect: (run: () => unknown) => { run() },COMMENT
LOWtests/restart.spec.ts221 // ppid 1 = systemd forked us as a service's main process.COMMENT
LOWtests/registry.spec.ts261 // where the official domain works must not also fetch a mirror.COMMENT
LOWtests/registry.spec.ts321 // The package is a DIFFERENT source, so the origin's ETag must not rideCOMMENT
LOWtests/market-data.spec.ts301 })COMMENT
LOWtests/market-data.spec.ts521COMMENT
LOWtests/market-data.spec.ts1001COMMENT
LOWtests/web/channel.e2e.ts61 // installed. Which of 'stable'/'beta' is "the derived default" and whichCOMMENT
LOWtests/web/scaffold.ts561 let browseCatalog: BrowseCatalogServer | null = nullCOMMENT
LOWtests/web/market.e2e.ts101 await waitMarketCatalog(page)COMMENT
LOWtests/web/market.e2e.ts161 // only while the chosen category does not happen to own the top of theCOMMENT
LOWtests/setup/no-proxy.ts1// The unit lane never reaches the network: every request a spec cares aboutCOMMENT
LOWtests/client/market-section.client.spec.tsx641 })COMMENT
LOWtests/client/market-section.client.spec.tsx5201COMMENT
LOWtests/client/market-section.client.spec.tsx8181COMMENT
LOWtests/client/market-section.client.spec.tsx8501 })COMMENT
LOW.github/workflows/release.yml1name: releaseCOMMENT
LOW.github/workflows/site-health.yml1name: Site healthCOMMENT
LOW.github/workflows/build-site.yml41 - run: npm installCOMMENT
LOW.github/workflows/ci.yml61 # hide). npm run check just rebuilt it; if the rebuild differs fromCOMMENT
LOW.github/workflows/ci.yml101 - run: npm run test:compatCOMMENT
LOW.github/workflows/ci.yml121 # 0.1.7 is the next line, and it is the one that changed the mostCOMMENT
LOW.github/workflows/ci.yml141 # line after this one.COMMENT
LOW.github/workflows/ci.yml161 # every failing spec times out on the HOST's own Settings buttonCOMMENT
LOW.github/workflows/ci.yml181 # the profile's package.json). The market never runs it from inside aCOMMENT
LOW.github/workflows/ci.yml221 # Not `npm install -g`: the older CLIs pin only themselves while theirCOMMENT
LOWsrc/dsh-cli.ts101 const out: NodeJS.ProcessEnv = {}COMMENT
LOWsrc/dsh-cli.ts121 // the caller has said anything in the standard vars, that is theirCOMMENT
LOWsrc/dsh-cli.ts141 // `PNPM_CONFIG_*` and does not read `npm_config_registry` at all — measuredCOMMENT
LOWsrc/dsh-cli.ts361 // A packaged host ships its runtime rather than relying on PATH, and saysCOMMENT
LOWsrc/dsh-cli.ts381 // interactive prompt, and either being overridden by a config value wouldCOMMENT
LOWsrc/dsh-cli.ts481 // Desktop's installed `dsh web` uses this CLI carrier too. KeepCOMMENT
LOWsrc/dsh-cli.ts1121 }COMMENT
LOWsrc/routes.ts341COMMENT
LOWsrc/routes.ts381 }COMMENT
LOWsrc/routes.ts1061 // carrier's disables) was never tried, so there is no crash toCOMMENT
LOWsrc/routes.ts1141 // opt-in rows open — `enableRow` answers a row with no `disabled` blockCOMMENT
LOWsrc/routes.ts1161 // (including any config side effects it carries). Enabling re-adds it.COMMENT
LOWsrc/routes.ts1221 // An enable that could not move the package back into the stack hasCOMMENT
LOWsrc/routes.ts1261 // The two layers move together or neither does (#696): an enableCOMMENT
LOWsrc/routes.ts1361 live.add(entry.options.name)COMMENT
LOWsrc/routes.ts1721 lockfileBefore: ProfileLockfileSnapshot,COMMENT
104 more matches not shown…
Hyper-Verbose Identifiers73 hits · 80 pts
SeverityFileLineSnippetContext
LOWtests/snapshot.spec.ts47function mustCreateProfileSnapshot(dir: string, maxSnapshots?: number): ProfileSnapshot {CODE
LOWtests/web/scaffold.ts96export function processLaunchUrlFromOutput(baseUrl: string, output: string): string | null {CODE
LOWtests/web/scaffold.ts108export function createStartupOutputCapture(baseUrl: string, tailLimit = 8192): {CODE
LOWtests/web/scaffold.ts150export function redactAuthenticationSecrets(output: string, exactSecrets: readonly string[] = []): string {CODE
LOWtests/web/scaffold.ts304export async function exchangeProcessLaunchToken(CODE
LOWtests/client/market-section.client.spec.tsx8230 function stubWindowControlsOverlay(initialHeight: number) {CODE
LOWtests/client/primitives-guard.spec.ts160 function hostWhoseSectionRegistrationThrows() {CODE
LOWclient/client.js2633 function findCatalogEntryForLocalUncached(plugins, name, identities, hints) {CODE
LOWclient/client.js3528 function extractReadmeImageCandidates(markdown, owner, repo, subpath) {CODE
LOWclient/client.js3607 function warnRefusedCuratedScreenshots(plugin, rejections) {CODE
LOWclient/client.js3623 function pluginScreenshotCandidates(plugin) {CODE
LOWclient/client.js7796 function HostDependencyDiagnostics({ findings, t }) {CODE
LOWclient/client.js9473 function clearHostCompatibilityCache() {CODE
LOWclient/client.js9478 function subscribeHostCompatibility(onStoreChange) {CODE
LOWsrc/dsh-install.ts176export function setLauncherInstallAnchorSource(source: () => string | null): () => string | null {CODE
LOWsrc/dsh-cli.ts879export function hostPackageManagerInvocation(): HostPackageManager | null {CODE
LOWsrc/dsh-cli.ts884export function lastHostPackageManagerFailure(): { command: string; output: string } | null {CODE
LOWsrc/dsh-cli.ts1433export function createDesktopPluginRuntime(CODE
LOWsrc/routes.ts91function isGitHubReleaseTarballSpec(spec: string): boolean {CODE
LOWsrc/routes.ts1499 function cannotRematerializeDetail(name: string, pinned: string | undefined): string {CODE
LOWsrc/routes.ts1900 function captureProfileStateFingerprint(): ProfileStateFingerprint | null {CODE
LOWsrc/verify.ts898export function findUnservedConfigNamespaces(CODE
LOWsrc/install.ts534export function isNumericReleaseAgeWindow(key: string, value: string | undefined): boolean {CODE
LOWsrc/install.ts540function readReleaseAgeMinutesFromEnv(): number | 'invalid' | null {CODE
LOWsrc/install.ts581function readReleaseAgeMinutesFromWorkspace(dir: string): number | 'invalid' | null {CODE
LOWsrc/install.ts592function readReleaseAgeMinutesFromNpmrc(dir: string): number | 'invalid' | null {CODE
LOWsrc/install.ts643function formatRemainingReleaseAgeWait(remainingMs: number): { zh: string, en: string } {CODE
LOWsrc/install.ts1109export function allowBuildKeyFromIgnoredBuild(depPath: string): string {CODE
LOWsrc/settings.ts160export function installDesktopMarketSettings(ctx: Context): void {CODE
LOWsrc/restart.ts38export function setDetectedDebuggerOverride(value: 'inspector' | null | undefined): void {CODE
LOWsrc/restart.ts346export function trustedSelfUninstallRequest(request: Pick<IncomingMessage, 'headers' | 'socket'>): boolean {CODE
LOWsrc/restart.ts358export function selfUninstallReachableFrom(request: Pick<IncomingMessage, 'headers' | 'socket'>): boolean {CODE
LOWsrc/sources.ts936export function restoreBlockedByWorkspace(target: string, workspaceDeps: readonly string[]): boolean {CODE
LOWsrc/changelog.ts303function catalogEntryForNpmInstall(CODE
LOWsrc/changelog.ts325function catalogEntryForGitSubpath(plugins: readonly RegistryPlugin[], spec: string): RegistryPlugin | undefined {CODE
LOWsrc/body-progress.ts172export async function fetchBodyWhileProgressing(CODE
LOWsrc/net.ts59export function releaseHostUndiciDispatcher(CODE
LOWsrc/official-desktop.ts438export function createOfficialDesktopRuntime(CODE
LOWsrc/profile.ts242export function readProfileManifestSnapshot(profile: string, explicitDir?: string): ProfileManifestSnapshot {CODE
LOWsrc/profile.ts280export function bundlesDroppedFromProfile(CODE
LOWsrc/profile.ts569function installedPackageDirectory(root: string, name: string): string | null {CODE
LOWsrc/profile.ts658export function readInstalledRepoIdentities(CODE
LOWsrc/profile.ts701export function readInstalledRepoEvidence(CODE
LOWsrc/profile.ts1807export function mergeDuplicateReleaseAgeExcludes(profile: string, explicitDir?: string): string[] {CODE
LOWsrc/diagnostics.ts47function inspectKnownHostDependencyDeclarations(CODE
LOWsrc/updates.ts391export async function resolveDesktopMatureUpdate(name: string, installed: string | null, profile: string, activeProfileDCODE
LOWsrc/regions.ts271export function resetGithubRoutePreferences(): void {CODE
LOWsrc/check.ts464function readProfileVisibleVersion(profileDirectory: string, name: string): string | null {CODE
LOWsrc/check.ts991export function duplicateEntryIdsAreFatal(profileDirectory: string, dshInstallDir?: string | null): boolean {CODE
LOWsrc/pnpm-compat.ts101function isChinaMirrorTarballReset(output: string): boolean {CODE
LOWsrc/pnpm-compat.ts154function withDecodedPnpmDiagnostics(output: string): string {CODE
LOWsrc/host-recovery.ts157export function restoreHostRecoveryBackup(CODE
LOWsrc/patch.ts198export function userPatchPackageReferences(patchPath: string, packageName: string): string[] | null {CODE
LOW⚡src/client/primitives.d.ts143 export function IconChevronDownOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts144 export function IconChevronUpOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts147 export function IconChevronLeftOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts148 export function IconChevronRightOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts151 export function IconRefreshOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts152 export function IconWarningOutlineRegular(props: IconProps): ReactElementCODE
LOW⚡src/client/primitives.d.ts154 export function IconQuestionOutlineRegular(props: IconProps): ReactElementCODE
13 more matches not shown…
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMvitest.web.config.ts6// Specs skip when no dsh CLI is reachable (see tests/web/scaffold.ts).COMMENT
MEDIUMtsconfig.tests.json2 // The layer-3 scaffold is plain Node code that the main config does notCOMMENT
MEDIUMtests/web/registry.ts25// fileURLToPath, not .pathname — see the note in scaffold.ts: a WindowsCOMMENT
MEDIUM.github/workflows/ci.yml220 # `--no-open`, which tests/web/scaffold.ts now passes.COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/profile.spec.ts2182 // The report's shape (#1043): ds-harness-remote ships BOTH of its rowsCOMMENT
MEDIUM.github/workflows/ci.yml166 # reachable in this harness", not as a compatibility verdict.COMMENT