AI Slop Code Risk Monitor

cloudflare/workerd

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

The JavaScript / Wasm runtime that powers Cloudflare Workers

3.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cloudflare/workerd, a C++ project with 9,109 GitHub stars. SynthScan examined 669,433 lines of code across 2474 source files, recording 2137 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.5
Adjusted Signal
3.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
9.1K
Stars
C++
Language
669.4K
Lines of Code
2.5K
Files
2.1K
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 14.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 2.8/100 · LOW

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

PR Review Velocity Impact 16.1/100 · LOW

Which changes need focused human review? 2137 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 4HIGH 18MEDIUM 44LOW 2071

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 2137 distinct pattern matches across 22 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 Block1688 hits · 1621 pts
SeverityFileLineSnippetContext
LOWtools/clang-tidy/unsafe-continuation-capture.h1#pragma onceCOMMENT
LOWtools/clang-tidy/unsafe-continuation-capture.h21// - `kj::Weak<T>` / `kj::WeakRc<T>` / `workerd::WeakRef<T>` /COMMENT
LOWtools/clang-tidy/promise-ignore-result.h1#pragma onceCOMMENT
LOWtools/clang-tidy/legacy-stream-alloc.h1// Copyright (c) 2017-2026 Cloudflare, Inc.COMMENT
LOWtools/clang-tidy/coroutine-hostile-raii.h1//===----------------------------------------------------------------------===//COMMENT
LOWtools/clang-tidy/visit-for-gc.h1// Copyright (c) 2017-2022 Cloudflare, Inc.COMMENT
LOWtools/clang-tidy/visit-for-gc.h21//COMMENT
LOWtools/unix/apply-big-move.sh1#! /bin/bashCOMMENT
LOWtypes/generated-snapshot/index.ts16301 // Project-specific parameters used to inform types.COMMENT
LOWtypes/generated-snapshot/index.ts17641 | ExceptionCOMMENT
LOWtypes/generated-snapshot/index.d.ts16161 readonly broker: string;COMMENT
LOWtypes/generated-snapshot/index.d.ts16341 // Type for method return or property on an RPC interface.COMMENT
LOWtypes/generated-snapshot/index.d.ts16381 // Type of `env`.COMMENT
LOWtypes/generated-snapshot/index.d.ts16401 // // thus should behave as Durable Object namsepace bindings.COMMENT
LOWtypes/generated-snapshot/index.d.ts17741 | ReturnCOMMENT
LOWtypes/generated-snapshot/experimental/index.ts16441 readonly clientId: string;COMMENT
LOWtypes/generated-snapshot/experimental/index.ts16661 //COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts16521// itself.COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts16701 [I in keyof A]: Unstubify<A[I]>;COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts16741 [K in keyof T]: MethodOrProperty<T[K]>;COMMENT
LOWtypes/generated-snapshot/experimental/index.d.ts16761 // interface GlobalProps {COMMENT
LOWtypes/defines/trace.d.ts221 | LogCOMMENT
LOWtypes/defines/pubsub.d.ts1// PubSubMessage represents an incoming PubSub message.COMMENT
LOWtypes/defines/rpc.d.ts121 // Utility type for adding `Provider`/`Disposable`s to `object` types only.COMMENT
LOWtypes/defines/rpc.d.ts181 //COMMENT
LOWtypes/defines/disposable.d.ts1// `Disposable` was added to TypeScript's standard lib types in version 5.2.COMMENT
LOWtypes/src/transforms/import-resolve.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/import-resolve.ts21//COMMENT
LOWtypes/src/transforms/import-resolve.ts41// const _default: {COMMENT
LOWtypes/src/transforms/iterators.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/iterators.ts21// export interface ThingIteratorNext {COMMENT
LOWtypes/src/transforms/importable.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/ambient.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/globals.ts21// constructor();COMMENT
LOWtypes/src/transforms/internal-namespace.ts1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWtypes/src/transforms/internal-namespace.ts21// readonly property: boolean;COMMENT
LOWtypes/src/transforms/internal-namespace.ts41// function bindStore(store: AsyncLocalStorage, ...): void;COMMENT
LOWtypes/src/transforms/overrides/index.ts21// `compileOverridesDefines()` must be used to compile overrides and definesCOMMENT
LOWtypes/src/transforms/overrides/index.ts41// get(key: string, type: "text"): Promise<string | null>;COMMENT
LOWtypes/src/transforms/overrides/compiler.ts21): [compiled: string, isReplacement: boolean] {COMMENT
LOWsamples/tcp/gopher.js1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOW…les/nodejs-compat-fs-graceful/graceful-fs/polyfills.js321 if (stats.uid < 0) stats.uid += 0x100000000COMMENT
LOWsamples/durable-objects-chat/chat.js1// Copyright (c) 2022-2023 Cloudflare, Inc.COMMENT
LOWsamples/durable-objects-chat/chat.js21// exporting a new handler that call into the other Workers as appropriate.COMMENT
LOWsamples/durable-objects-chat/chat.js41//COMMENT
LOWsamples/durable-objects-chat/chat.js61// in .html should be uploaded as "Data", equivalent to content-type `application/octet-stream`.COMMENT
LOWsamples/durable-objects-chat/chat.js141 // "anyone with the link can access" sharing. Additionally, IDs generated this way haveCOMMENT
LOWsamples/durable-objects-chat/chat.js181 }COMMENT
LOWsamples/durable-objects-chat/chat.js441// =======================================================================================COMMENT
LOWsamples/durable-objects-chat/chat.js521 // we have to provide a dummy URL that will be ignored at the other end anyway.COMMENT
LOWdeps/rust/Cargo.toml81ring = { version = "0.17", default-features = false }COMMENT
LOWdeps/rust/Cargo.toml101# temporal_rs 0.2.6 accepts icu_calendar 2.3, but Chromium builds it with 2.2.1; this pin keepsCOMMENT
LOWnpm/lib/node-platform.ts141 //COMMENT
LOWnpm/lib/node-install.ts181 else fs.unlinkSync(entryPath);COMMENT
LOWnpm/lib/node-install.ts201 // Docker. Avoid idempotency issues by just not optimizing when using Yarn.COMMENT
LOWnpm/lib/node-shim.ts1#!/usr/bin/env nodeCOMMENT
LOWsrc/bench/streams/strategies/main.js1// Copyright (c) 2026 Cloudflare, Inc.COMMENT
LOWsrc/bench/streams/encoding/decoder.js1// Copyright (c) 2026 Cloudflare, Inc.COMMENT
LOWsrc/workerd/util/sqlite-metadata.h1// Copyright (c) 2024 Cloudflare, Inc.COMMENT
LOWsrc/workerd/util/string-buffer.h1// Copyright (c) 2023 Cloudflare, Inc.COMMENT
1628 more matches not shown…
Hyper-Verbose Identifiers224 hits · 234 pts
SeverityFileLineSnippetContext
LOWtypes/test/generator/index.spec.ts21function initAsReferencableTypesGroup(CODE
LOWtypes/test/transforms/overrides/index.spec.ts19function printDefinitionsWithOverrides(root: StructureGroups): string {CODE
LOWtypes/src/generator/structure.ts50function createIteratorMethodPartial(CODE
LOWtypes/src/generator/structure.ts67function createInstancePropertyPartial(CODE
LOWtypes/src/generator/structure.ts149function createInterfaceMemberNode(CODE
LOWtypes/src/generator/structure.ts221function createIteratorInterfaceMemberNode(CODE
LOWtypes/src/generator/structure.ts328function createIteratorClassMemberNode(CODE
LOWtypes/src/generator/type.ts152export function createParamDeclarationNodes(CODE
LOWtypes/src/transforms/comments.ts15export function createCommentsTransformer(CODE
LOWtypes/src/transforms/helpers.ts52function ensureModifierRequirements(CODE
LOWtypes/src/transforms/onmessage-declaration.ts7export function createAddOnMessageDeclarationTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/import-resolve.ts53export function createImportResolveTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/import-resolve.ts81function createImportResolveVisitor(ctx: ts.TransformationContext): ts.Visitor {CODE
LOWtypes/src/transforms/import-resolve.ts102function createModuleImportResolveVisitor(CODE
LOWtypes/src/transforms/iterators.ts45export function createIteratorTransformer(CODE
LOWtypes/src/transforms/iterators.ts71function createIteratorDeclarationsVisitor(CODE
LOWtypes/src/transforms/iterators.ts183function createIteratorUsagesVisitor(CODE
LOWtypes/src/transforms/importable.ts23export function createImportableTransformer(): ts.TransformerFactory<ts.SourceFile> {CODE
LOWtypes/src/transforms/class-to-interface.ts36export function createClassToInterfaceTransformer(CODE
LOWtypes/src/transforms/class-to-interface.ts64function transformClassToInterface(CODE
LOWtypes/src/transforms/class-to-interface.ts78function createInterfaceDeclaration(CODE
LOWtypes/src/transforms/class-to-interface.ts126function transformClassMemberToInterface(CODE
LOWtypes/src/transforms/class-to-interface.ts236function createGetAccessorSignature(CODE
LOWtypes/src/transforms/class-to-interface.ts269function createVariableDeclaration(CODE
LOWtypes/src/transforms/globals.ts46export function createGlobalScopeTransformer(CODE
LOWtypes/src/transforms/internal-namespace.ts68export function createInternalNamespaceTransformer(CODE
LOWtypes/src/transforms/internal-namespace.ts84function collectInternalModuleStructures(CODE
LOWtypes/src/transforms/internal-namespace.ts99function createInternalNamespaceVisitor(CODE
LOWtypes/src/transforms/overrides/index.ts61export function createOverrideDefineTransformer(CODE
LOWtypes/src/transforms/overrides/index.ts300function createOverrideDefineVisitor(CODE
LOWci/v8_update.py110def _update_aligned_dependencies():CODE
LOWci/v8_update_test.py64 def test_aligned_tree_changes_nothing(self):STRING
LOWci/v8_update_test.py74 def test_moves_exact_pins_with_cargo_add(self):STRING
LOWci/v8_update_test.py85 def test_moves_unpinned_crates_with_cargo_update(self):STRING
LOWci/v8_update_test.py103 def test_fails_when_cargo_refuses_a_version(self):STRING
LOWci/v8_update_test.py120 def _assert_repinned_bazel_lockfile(self):STRING
LOWci/v8_update_test.py140 def test_follows_the_versions_the_root_depends_on(self):STRING
LOWci/v8_update_test.py163 def test_crate_reached_at_two_versions_has_no_chromium_version(self):STRING
LOWci/v8_update_test.py173 def test_fails_when_the_root_is_locked_at_two_versions(self):STRING
LOW⚡ci/jsonc.py319 def test_comments_trailing_the_document_move_inside(self):CODE
LOW⚡ci/jsonc.py327 def test_comment_in_empty_container(self):CODE
LOW⚡ci/jsonc.py331 def test_blank_lines_are_dropped(self):CODE
LOW⚡ci/jsonc.py356 def test_comments_are_not_found_in_strings(self):CODE
LOW⚡ci/jsonc.py362 def test_scalar_and_empty_documents(self):CODE
LOW⚡ci/jsonc.py370 def test_plain_data_matches_json(self):CODE
LOW⚡ci/jsonc.py395 def test_non_ascii_is_literal(self):CODE
LOW⚡ci/jsonc.py398 def test_comments_on_absent_members_are_ignored(self):CODE
LOW⚡ci/jsonc.py402 def test_dump_appends_newline(self):CODE
LOW⚡ci/jsonc.py409 def test_position_ignores_comments(self):CODE
LOW⚡ci/jsonc.py414 def test_block_comments_are_rejected(self):CODE
LOW⚡ci/jsonc.py417 def test_trailing_commas_are_rejected(self):CODE
LOWfuzzilli/analytics-mock.js5function getChaoticAnalyticsResponse() {CODE
LOWsamples/web-streams/streams-util.js69export function createSyncLoremByteStream(numChunks) {CODE
LOWsamples/web-streams/streams-util.js86export function createAsyncLoremByteStream(numChunks) {CODE
LOWsamples/web-streams/streams-util.js104export function createSyncUppercaseTransform() {CODE
LOWsamples/web-streams/streams-util.js123export function createAsyncUppercaseTransform() {CODE
LOWnpm/lib/node-platform.ts26export function pkgAndSubpathForCurrentPlatform(): {CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py158async def test_error_after_response_is_logged(env):CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py189async def test_background_task_error_is_logged():CODE
LOWsrc/workerd/server/tests/python/asgi/worker.py235async def test_app_exception_before_response_is_logged():CODE
164 more matches not shown…
Decorative Section Separators24 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMtypes/generated-snapshot/index.ts12688// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.ts12722// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts12673// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/index.d.ts12707// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts13051// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.ts13085// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts13039// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/generated-snapshot/experimental/index.d.ts13073// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/defines/artifacts.d.ts269// ── Error types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtypes/defines/artifacts.d.ts306// ── Binding ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py68# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py70# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py114# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py182# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py184# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py220 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py222 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py258 # ------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/check-compat-flag-docs.py260 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/workerd/server/tests/python/asgi/worker.py96# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/workerd/server/tests/python/asgi/worker.py98# ---------------------------------------------------------------------------COMMENT
Synthetic Comment Markers8 hits · 60 pts
SeverityFileLineSnippetContext
HIGHsrc/workerd/api/node/tests/tty-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/v8-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/trace-events-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/domain-nodejs-test.js10 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/vm-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/dgram-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/workerd/api/node/tests/wasi-nodejs-test.js9 // Note: test was generated by claude with manual tweaksCOMMENT
HIGHsrc/rust/cxx/kj-rs/tests/test_own.rs300 // This is one test generated by Claude. I am unsure it sufficiently tests multithreading.COMMENT
Structural Annotation Overuse29 hits · 55 pts
SeverityFileLineSnippetContext
LOW.opencode/skills/update-v8/SKILL.md27### Step 1: Identify the target versionCOMMENT
LOW.opencode/skills/update-v8/SKILL.md39### Step 2: Sync local V8 to the current workerd versionCOMMENT
LOW.opencode/skills/update-v8/SKILL.md47### Step 3: Apply workerd's patches onto a branchCOMMENT
LOW.opencode/skills/update-v8/SKILL.md65### Step 4: Rebase patches onto the new V8 versionCOMMENT
LOW⚡.opencode/skills/update-v8/SKILL.md79### Step 5: Regenerate patchesCOMMENT
LOW⚡.opencode/skills/update-v8/SKILL.md87### Step 6: Replace patches in workerdCOMMENT
LOW⚡.opencode/skills/update-v8/SKILL.md97### Step 7: Update `build/deps/v8.MODULE.bazel`COMMENT
LOW.opencode/skills/update-v8/SKILL.md114### Step 8: Update V8's dependenciesCOMMENT
LOW.opencode/skills/update-v8/SKILL.md139### Step 9: Build and testCOMMENT
LOW.opencode/skills/update-v8/SKILL.md164### Step 10: Commit and submitCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md5## Step 1: Choose flag namesCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md15## Step 2: Add to `compatibility-date.capnp`COMMENT
LOWdocs/reference/adding-a-compatibility-flag.md45## Step 3: Use the flag in C++ codeCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md70## Step 4: Add testsCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md95## Step 5: Document the flagCOMMENT
LOWdocs/reference/adding-a-compatibility-flag.md108## Step 6: Build and verifyCOMMENT
LOW⚡src/workerd/api/tests/worker-loader-test.js1138 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOW⚡src/workerd/api/tests/worker-loader-test.js1143 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOW⚡src/workerd/api/tests/worker-loader-test.js1146 // Step 3: resolve the saved promise from IoContext A. The inner .then() continuation throwsCOMMENT
LOW⚡…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js50 // Step 1: Prime lineBuffer with non-newline data (buffered, noCOMMENT
LOW⚡…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js54 // Step 2: Arm the getter and trigger the newline path.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2850 // Step 1: writeSync with Z_NO_FLUSH — data is buffered internally.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2857 // Step 2: params() directly on native handle — no preceding flush.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2865 // Step 3: finish the stream — must still produce a valid deflate stream.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2878 // Step 4: concatenate both output chunks and decompress.COMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1362 // Step 4: GetChunkSize — runs size() which may re-entrantly mutateCOMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1369 // Step 5: Re-check writer.[[stream]] — size() may have calledCOMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1389 // Step 11: Add write request.COMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1392 // Step 12: ControllerWrite (with pre-computed chunkSize, no size()COMMENT
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHsrc/workerd/server/tests/python/sockets/worker.py225except OSError:CODE
HIGHsrc/workerd/server/tests/python/sockets/worker.py238except OSError:CODE
HIGH…d/server/tests/python/metadata-read-overflow/worker.py21except Exception:CODE
HIGH…d/server/tests/python/vendor_dir_compat_flag/worker.py9except ImportError:CODE
HIGHsrc/workerd/server/tests/python/stdlib-zip/worker.py21except OSError:CODE
HIGH…orkerd/server/tests/python/top-level-entropy/worker.py48except RuntimeError:CODE
HIGH…ide/internal/topLevelEntropy/entropy_import_context.py23except ImportError:CODE
HIGH…nal/topLevelEntropy/entropy_import_context_packages.py106except module.SchemaError:CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALsrc/workerd/api/tests/js-rpc-test.js910 await assert.rejects(() => env.MyService.objectProperty.nonRpc.bar.baz(), {CODE
CRITICALsrc/workerd/api/tests/js-rpc-test.js922 () => env.MyService.objectProperty.env.MyService.noArgsMethod(),CODE
CRITICALsrc/pyodide/python-entrypoint-helper.ts185 return await pyodide._module.API.pyodide_base.pyimport_impl.callPromising(CODE
CRITICALsrc/pyodide/internal/pool/builtin_wrappers.ts96 return API.config.jsglobals.Function.prototype.apply.apply(func, [CODE
Excessive Try-Catch Wrapping23 hits · 32 pts
SeverityFileLineSnippetContext
LOWtools/update_node_version.py39 except Exception as e:CODE
MEDIUMtools/update_node_version.py40 print(f"Error fetching tags: {e}", file=sys.stderr)CODE
LOWtools/cross/internal_build.py46 except Exception as err:CODE
LOWtools/cross/internal_build.py89 except Exception as err:CODE
LOWtools/cross/format.py333 except Exception:CODE
LOWsamples/python-benchmark/worker.py33 except Exception:CODE
LOW…d/server/tests/python/metadata-read-overflow/worker.py21 except Exception:CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py385 except Exception as exc:CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py509 except Exception as err:CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py516 except Exception as err:CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py523 except Exception as err:CODE
LOW…/workerd/server/tests/python/top-level-tests/worker.py54 except Exception as e:CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py212 except Exception as e:CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py300 except Exception:CODE
MEDIUMsrc/pyodide/internal/workers-api/src/asgi.py205def run_app():CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1300 except Exception as exc:CODE
MEDIUM…c/pyodide/internal/workers-api/src/workers/_workers.py1290def _closure():CODE
MEDIUMsrc/pyodide/scripts/create_vendor_zip.py100 print(f"Error: site-packages not found at {site_packages}")CODE
LOWsrc/pyodide/scripts/create_vendor_zip.py144 except Exception as e:CODE
MEDIUMsrc/pyodide/scripts/create_vendor_zip.py145 print(f"Error vendoring packages {package_names!r}: {e}")CODE
MEDIUMsrc/pyodide/scripts/create_vendor_zip.py173 print("Error: Package name is required")CODE
MEDIUMsrc/pyodide/scripts/make_snapshots.py85 print(f"Error: {url} has sha256 {digest}, expected {sha256}", file=sys.stderr)CODE
MEDIUMsrc/pyodide/scripts/make_snapshots.py383 print(f"Error: Directory {outdir} exists and is not empty", file=sys.stderr)CODE
Fake / Example Data25 hits · 32 pts
SeverityFileLineSnippetContext
LOWsamples/web-streams/streams-util.js12// Sample words for generating lorem ipsum-style textCOMMENT
LOWsamples/web-streams/streams-util.js35// Creates a ReadableStream that generates random lorem ipsum-style text synchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js51// Creates a ReadableStream that generates random lorem ipsum-style text asynchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js68// Creates a byte ReadableStream that generates random lorem ipsum-style text synchronouslyCOMMENT
LOWsamples/web-streams/streams-util.js85// Creates a byte ReadableStream that generates random lorem ipsum-style text asynchronouslyCOMMENT
LOW⚡src/workerd/server/tests/python/sdk/worker.py265 js_data.append("key", "lorem ipsum")CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py266 js_data.append("key", "dolor sit amet")CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py269 assert data["key"] == "lorem ipsum"CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py270 assert data.get_all("key") == ["lorem ipsum", "dolor sit amet"]CODE
LOW⚡src/workerd/server/tests/python/sdk/worker.py270 assert data.get_all("key") == ["lorem ipsum", "dolor sit amet"]CODE
LOWsrc/workerd/api/tests/http-test.js133 hostname: 'placeholder',CODE
LOW⚡src/workerd/api/node/tests/legacy_url-nodejs-test.js673 'm2@example.ord/c2@example.org',CODE
LOW⚡src/workerd/api/node/tests/legacy_url-nodejs-test.js674 'mid:m@example.ord/c@example.org',CODE
LOW⚡src/workerd/api/node/tests/legacy_url-nodejs-test.js675 'mid:m@example.ord/m2@example.ord/c2@example.org',CODE
LOWsrc/workerd/api/node/tests/legacy_url-nodejs-test.js716 'mailto:user@example.org',CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1845 'Lorem ipsum dolor\nsit amet,\tconsectetur adipiscing elit, sed do ' +CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1864 " [ [ 'Lorem ipsum dolor\\nsit amet,\\tconsectetur adipiscing elit, " +CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1881 " 'Lorem ipsum dolor\\n' +",CODE
LOWsrc/workerd/api/node/tests/util-nodejs-test.js1900 "'Lorem ipsum dolor\\n' +",CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1166 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1166 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1485 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js1485 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2161 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2161 'ΩΩLorem ipsum dolor sit amet, consectetur adipiscing eli' +CODE
Verbosity Indicators15 hits · 32 pts
SeverityFileLineSnippetContext
LOW⚡src/workerd/api/tests/worker-loader-test.js1138 // Step 1: sub-request sets up the pending promise via a separate entrypoint.COMMENT
LOW⚡src/workerd/api/tests/worker-loader-test.js1143 // Step 2: IoContext B has drained. Give the runtime a moment to clean up.COMMENT
LOW⚡src/workerd/api/tests/worker-loader-test.js1146 // Step 3: resolve the saved promise from IoContext A. The inner .then() continuation throwsCOMMENT
LOW⚡…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js50 // Step 1: Prime lineBuffer with non-newline data (buffered, noCOMMENT
LOW⚡…/workerd/api/tests/stdio-writesync-reentry-uaf-test.js54 // Step 2: Arm the getter and trigger the newline path.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2850 // Step 1: writeSync with Z_NO_FLUSH — data is buffered internally.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2857 // Step 2: params() directly on native handle — no preceding flush.COMMENT
LOW⚡src/workerd/api/node/tests/zlib-nodejs-test.js2865 // Step 3: finish the stream — must still produce a valid deflate stream.COMMENT
LOWsrc/workerd/api/node/tests/zlib-nodejs-test.js2878 // Step 4: concatenate both output chunks and decompress.COMMENT
LOWsrc/node/internal/streams_readable.js1167 // We need to check if there is someone still listening toCOMMENT
LOWsrc/node/internal/streams_readable.js1186 // We need to check if there is someone still listening toCOMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1362 // Step 4: GetChunkSize — runs size() which may re-entrantly mutateCOMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1369 // Step 5: Re-check writer.[[stream]] — size() may have calledCOMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1389 // Step 11: Add write request.COMMENT
LOW⚡src/per_isolate/webstreams/writable.ts1392 // Step 12: ControllerWrite (with pre-computed chunkSize, no size()COMMENT
Unused Imports29 hits · 28 pts
SeverityFileLineSnippetContext
LOWtools/cross/format.py2CODE
LOW…d/server/tests/python/vendor_dir_compat_flag/worker.py6CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py4CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py9CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py30CODE
LOWsrc/pyodide/internal/topLevelEntropy/entropy_patches.py29CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py27CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py20CODE
AI Slop Vocabulary9 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMsamples/durable-objects-chat/chat.js448// We utilize this in ChatRoom, above, to apply a per-IP-address rate limit. These limits areCOMMENT
MEDIUMsrc/workerd/io/worker-fs.h130// instances are kj::Refcounted objects. We utilize the Isolate lock to safelyCOMMENT
MEDIUMsrc/workerd/io/trace.h1234// Interface for writing a span. Essentially, this is a mutable interface to a `Span` object,COMMENT
MEDIUMsrc/workerd/api/basics.h1051 // Essentially an awaitable alternative to setTimeout(). The waitCOMMENT
MEDIUMsrc/workerd/api/tests/actor-alarms-name-test.js59 // sleep well past the 1000ms alarm delay to stay robust under CI load.COMMENT
MEDIUMsrc/rust/cxx/kj-rs/convert.h5// This header provides seamless integration between Rust types and KJ (Cap'n Proto's C++ library)COMMENT
MEDIUMsrc/rust/cxx/kj-rs/convert.h90// - kj::str(rust::String) - uses KJ_STRINGIFY for seamless string conversionCOMMENT
LOW⚡…c/pyodide/internal/workers-api/src/workers/_workers.py913 # entrypoint is being used, it makes sense to be less loud about it and just pass through theCOMMENT
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py935 # implement a Python wrapper for it, but for now we'll just pass in None.COMMENT
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWtools/update_node_version.py19CODE
LOWtools/cross/format.py274CODE
LOWtools/clang-tidy/unsafe-continuation-capture-test.py74CODE
LOWtools/clang-tidy/unsafe-continuation-capture-test.py108CODE
LOWci/jsonc.py155CODE
LOW.github/scripts/check-compat-flag-docs.py187CODE
LOWsrc/workerd/server/tests/python/sdk/worker.py19CODE
LOWsrc/workerd/server/tests/python/sdk/server.py5CODE
LOWsrc/rust/jsg/cpp-jsg-allowlist-test.py131CODE
LOWsrc/pyodide/tools/pack_python_packages.py30CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py117CODE
LOWsrc/pyodide/internal/workers-api/src/asgi.py157CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py889CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py207CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py665CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1197CODE
LOWsrc/pyodide/scripts/create_vendor_zip.py105CODE
LOWsrc/pyodide/scripts/make_snapshots.py282CODE
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtools/unix/apply-big-move.sh64 # Check if there's a new "Big Move" in the future and, if so, prompt the user to apply it too.COMMENT
LOWtools/unix/apply-big-move.sh110 # Check if we already applied The Big Move in this branch, as indicated by $AFTER_MOVE_TAG beingCOMMENT
LOWtools/unix/apply-big-move.sh124 # Check if $BEFORE_MOVE_TAG is in this branch's history. If not, we need to rebase first.COMMENT
LOWtools/unix/apply-big-move.sh167 # Check if there's another move upcoming that we should apply next.COMMENT
LOW.github/workflows/release-python-runtime.yml59 # Check if there are changes to python_metadata.bzlCOMMENT
LOW.github/workflows/release-python-runtime.yml67 # Check if there's an open PR for this branchCOMMENT
LOW.github/workflows/internal-build.yml70 # Check if this is a fork and if the owner is a Cloudflare org memberCOMMENT
LOW.github/workflows/release-python-snapshots.yml78 # Check if there are changes to python_metadata.bzlCOMMENT
LOW.github/workflows/release-python-snapshots.yml86 # Check if there's an open PR for this branchCOMMENT
LOWsrc/pyodide/internal/workers-api/src/asgi.py166 # Check if this is a server-sent events responseCOMMENT
Cross-Language Confusion2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHsrc/workerd/server/tests/python/python-rpc/worker.py212 js_undefined = await env.PythonRpc.identity(js.undefined)CODE
HIGH⚡…c/pyodide/internal/workers-api/src/workers/_workers.py908 return Exception(value.toString())CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtools/cross/format.py15# This file is symlinked into the internal repo as tools/format.py, so the root may be two levels upCOMMENT
MEDIUMtools/unix/create-external.sh3# Create a symlink to Bazel's external/ directory. This simplifies theCOMMENT
MEDIUMsrc/pyodide/internal/workers-api/src/asgi.py151 # Create a transform stream for handling streaming responsesCOMMENT
MEDIUM…c/pyodide/internal/workers-api/src/workers/_workers.py1# This module defines a Workers API for Python. It is similar to the API provided byCOMMENT
Slop Phrases4 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/workerd/jsg/promise.h77// your own first. (Don't forget to implement `visitForGc()`.)COMMENT
LOWsrc/workerd/server/tests/container-client/test.js21// When writing a test, don't forget to call waitUntilContainerIsHealthyCOMMENT
LOWsrc/workerd/api/http.h637// When adding new properties to this struct, don't forget to update Request::serialize().COMMENT
LOW⚡…c/pyodide/internal/workers-api/src/workers/_workers.py917 # types here, so if you're doing this make sure to do so behind a compat flag.COMMENT
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/workerd/jsg/setup.h857// Example usage:COMMENT
LOWsrc/workerd/jsg/jsg.h97// Example usage:COMMENT
LOWsrc/workerd/jsg/iterator.h1016// Example usage:COMMENT
LOWsrc/workerd/jsg/iterator.h1110// Example usage:COMMENT
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsamples/nodejs-compat-diagnosticschannel/library.js5export function doSomething() {CODE
LOWsamples/nodejs-compat/worker.js28function doSomething(a, cb) {CODE
LOWsrc/workerd/server/tests/python/python-rpc/worker.py50 async def handle_request(self, req):CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/workerd/api/js-writable-stream.h225 // guardrails in the design doc).COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…c/pyodide/internal/workers-api/src/workers/__init__.py30__all__ = [CODE
LOW…ide/internal/topLevelEntropy/entropy_import_context.py40__all__ = ["get_bad_entropy_flag"]CODE
LOWsrc/pyodide/scripts/upload_bundles.py98def update_python_metadata_bzl(bundles: list[BundleInfo]) -> None:CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py940CODE
LOW…c/pyodide/internal/workers-api/src/workers/_workers.py1000CODE