AI Slop Code Risk Monitor

agent-substrate/substrate

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

Agent Substrate: the core system

5.8 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for agent-substrate/substrate, a Go project with 5,993 GitHub stars. SynthScan examined 502,151 lines of code across 1924 source files, recording 2719 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 5.8 (Moderate 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.

5.8
Adjusted Signal
5.8
Raw Pattern Score
100%
Time Factor
2026-11-01
Last Push
6.0K
Stars
Go
Language
502.2K
Lines of Code
1.9K
Files
2.7K
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 22.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

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

Agent Over-Engineering Ratio 4.6/100 · LOW

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

PR Review Velocity Impact 25.2/100 · MEDIUM

Which changes need focused human review? 2719 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 1HIGH 18MEDIUM 48LOW 2652

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 2719 distinct pattern matches across 20 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 Block2305 hits · 2278 pts
SeverityFileLineSnippetContext
LOW.golangci.yaml1# Copyright 2026 Google LLCCOMMENT
LOW.ko.yaml1# Copyright 2026 Google LLCCOMMENT
LOW.golangci-kal.yaml1# Copyright 2026 Google LLCCOMMENT
LOWcmd/ateworker-microvm/actorpath.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/crash.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/snapshotborrow.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/checkpoint.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/checkpoint.go41 "golang.org/x/sync/errgroup"COMMENT
LOWcmd/ateworker-microvm/checkpoint.go61// on restore with its rootfs writes back in place.COMMENT
LOWcmd/ateworker-microvm/checkpoint.go181 if err := os.MkdirAll(checkpointDir, 0o700); err != nil {COMMENT
LOWcmd/ateworker-microvm/checkpoint.go321 return dSnapshot, nilCOMMENT
LOWcmd/ateworker-microvm/fidelity_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/hosted_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/durable.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/durable.go21// A durable-dir volume is a directory whose contents outlive the actor's processCOMMENT
LOWcmd/ateworker-microvm/run.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/run.go61 // base-id file so the chain survives suspend->resume->suspend.COMMENT
LOWcmd/ateworker-microvm/run.go81 // restoreSourceDir is the snapshot dir this actor was OnDemand-restored fromCOMMENT
LOWcmd/ateworker-microvm/run.go101 // actor's lifetime) and GetWorkloadStats (via the hosted actor's guestCOMMENT
LOWcmd/ateworker-microvm/run.go141const kataAgentPath = "/usr/bin/kata-agent"COMMENT
LOWcmd/ateworker-microvm/run.go221//COMMENT
LOWcmd/ateworker-microvm/run.go341 Ref: p.actorRef,COMMENT
LOWcmd/ateworker-microvm/run.go761// agentInit reports whether to boot the kata agent as the guest's PID 1, from whatCOMMENT
LOWcmd/ateworker-microvm/run.go781// mask systemd-networkd, since the agent owns eth0.COMMENT
LOWcmd/ateworker-microvm/run.go921 return fmt.Errorf("while starting rootfs container %q: %w", c.name, err)COMMENT
LOWcmd/ateworker-microvm/run.go941 go s.actorLogger.WrapContainerLogs(kata.NewStdioReader(context.Background(), ac, streamID, streamID, false), a, containCOMMENT
LOWcmd/ateworker-microvm/run.go961)COMMENT
LOWcmd/ateworker-microvm/hosted.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/hosted.go41 // Mutable fields are guarded by actorsMu.COMMENT
LOWcmd/ateworker-microvm/systeminfo.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/systeminfo.go21// so its contents always describe the actor actually being started, whateverCOMMENT
LOWcmd/ateworker-microvm/spec.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/spec.go41// remedy names the field that raises the memory ceiling.COMMENT
LOWcmd/ateworker-microvm/shutdown.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/shutdown.go41// own termination grace period — 3600s, set byCOMMENT
LOWcmd/ateworker-microvm/shutdown.go61 // grace period is raised.COMMENT
LOWcmd/ateworker-microvm/shutdown.go261 return nilCOMMENT
LOWcmd/ateworker-microvm/net.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/snapshotborrow_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/csi.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/durable_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/snapshotcache.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/phaselog.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/restore_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/fidelity.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/fidelity.go21// The fidelity ladder, lowest to highest, each level including the onesCOMMENT
LOWcmd/ateworker-microvm/run_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/stats.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/stats.go41// Generous next to a healthy read, which is a vsock round trip and four smallCOMMENT
LOWcmd/ateworker-microvm/stats.go61// agent to talk to.COMMENT
LOWcmd/ateworker-microvm/stats.go81 agent containerStatsReaderCOMMENT
LOWcmd/ateworker-microvm/stats.go121 }COMMENT
LOWcmd/ateworker-microvm/stats.go321// RPCs write together under lock and so should never happen. GetWorkloadStatsCOMMENT
LOWcmd/ateworker-microvm/stats.go381}COMMENT
LOWcmd/ateworker-microvm/shutdown_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/crash_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/rootfsupper.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/rootfsupper.go21// Each container's rootfs is assembled ON THE HOST — the stock kataCOMMENT
LOWcmd/ateworker-microvm/memlimit_test.go1//go:build linuxCOMMENT
LOWcmd/ateworker-microvm/rootfsupper_test.go1//go:build linuxCOMMENT
2245 more matches not shown…
Hyper-Verbose Identifiers169 hits · 191 pts
SeverityFileLineSnippetContext
LOW…s/skills/security-status-report/scripts/report_test.py46 def test_sorts_by_priority_then_id(self):CODE
LOW…s/skills/security-status-report/scripts/report_test.py56 def test_error_row_and_pipe_escaping(self):CODE
LOW…ls/security-status-report/scripts/template_dispatch.py24def generate_dispatch_payload(output_path):CODE
LOW⚡benchmarking/analysis/test_phase_report.py128 def test_parses_both_layers_of_the_same_msg(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py136 def test_nanosecond_timestamps_parse(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py143 def test_ateworker_checkpoint_parses(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py148 def test_cloud_logging_entry_parses_with_the_entry_timestamp(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py156 def test_cloud_logging_export_file_is_a_json_array(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py165 def test_ateworker_records_take_class_and_kind_from_the_paired_atelet_record(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py172 def test_an_unpaired_ateworker_record_keeps_no_class(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py178 def test_non_numeric_duration_is_skipped_not_fatal(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py186 def test_malformed_export_warns_instead_of_vanishing(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py229 def test_atelet_checkpoint_residual_is_total_minus_sequential_phases(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py234 def test_microvm_ateworker_checkpoint_counts_the_concurrent_captures_once(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py242 def test_gvisor_ateworker_checkpoint_phases_are_sequential(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py248 def test_ateworker_checkpoint_of_unknown_runtime_gets_no_residual(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py253 def test_gvisor_pair_splits_both_layers_by_class(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py273 def test_restore_layers_get_no_residual(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py278 def test_negative_residual_is_not_clamped(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py285 def test_failed_records_are_flagged_and_excluded_from_percentiles(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py293 def test_percentiles_split_by_sandbox_class_and_kind(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py303 def test_paired_ateworker_record_inherits_the_atelet_kind(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py311 def test_checkpoint_pairing_window_ends_where_persist_starts(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py321 def test_checkpoint_pairing_window_excludes_cleanup(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py331 def test_an_ateworker_record_pairs_with_at_most_one_operation(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py339 def test_waterfall_ignores_an_ateworker_record_from_another_cycle(self):CODE
LOW⚡benchmarking/analysis/test_phase_report.py346 def test_stats_rows_take_the_runner_jsonl_shape(self):CODE
LOWbenchmarking/analysis/test_phase_report.py198 def test_bracket_prefixed_dump_is_read_line_by_line(self):CODE
LOWbenchmarking/analysis/test_phase_report.py212 def test_parse_lines_feeds_an_existing_parse(self):CODE
LOWbenchmarking/analysis/test_phase_report.py218 def test_prefixed_kubectl_lines_still_parse(self):CODE
LOWbenchmarking/analysis/test_phase_report.py359 def test_waterfall_nests_ateworker_and_gap_under_atelet(self):CODE
LOWbenchmarking/locust/cluster_facts.py189def get_cluster_hardware_facts(logs: TextIO | None = None) -> dict[str, Any]:CODE
LOWbenchmarking/locust/server_telemetry.py813def extract_and_record_server_telemetry(CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py73 def test_finds_the_first_boomer_fill_done_line(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py76 def test_a_run_without_one_has_none(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py79 def test_reads_an_offset_time(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py83 def test_skips_a_line_it_cannot_read(self):CODE
LOWbenchmarking/locust/unit_tests/test_turnover_window.py101 def test_counts_from_the_start_to_the_last_sample(self):CODE
LOWbenchmarking/locust/unit_tests/test_turnover_window.py108 def test_no_sample_after_the_start_gives_none(self):CODE
LOWbenchmarking/locust/unit_tests/test_turnover_window.py124 def test_appends_the_window_row(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py148 def test_appends_nothing_without_a_history(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py151 def test_appends_nothing_without_a_sample_after_the_start(self):CODE
LOW⚡benchmarking/locust/unit_tests/test_turnover_window.py156 def test_a_start_inside_the_window_starts_it(self):CODE
LOWbenchmarking/locust/unit_tests/test_turnover_window.py172 def test_a_start_outside_the_window_logs_and_leaves_it(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py181 def test_capacity_is_scoped_to_nodes_running_worker_pods(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py192 def test_zero_worker_pods_is_a_reading(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py202 def test_unreadable_facts_are_none(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py220 def test_no_cluster_facts_skips_the_api(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py241 def test_worker_container_facts(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py271 def test_worker_facts_fail_independently(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py300 def test_unreadable_worker_values_are_logged_once(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py324 def test_metadata_in_trial_summary(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py340 def test_run_window_and_multi_actor_worker(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py386 def test_actors_per_user_scales_every_key(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py404 def test_actors_per_pod_percentiles(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py440 def test_per_rpc_failure_ratios(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py460 def test_live_actors_from_create_and_delete(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py544 def test_evicted_pods_from_events(self):CODE
LOWbenchmarking/locust/unit_tests/test_cluster_facts.py598 def test_worker_pod_reads_follow_cluster_facts_flag(self):CODE
LOWbenchmarking/locust/unit_tests/test_server_telemetry.py214 def test_range_query_window_guard(self, mock_urlopen):CODE
109 more matches not shown…
Decorative Section Separators35 hits · 111 pts
SeverityFileLineSnippetContext
MEDIUMhack/metrics/ci-failure-analysis.py61# ── GitHub helpers ────────────────────────────────────────────────────────────COMMENT
MEDIUMhack/metrics/ci-failure-analysis.py85# ── failure classification ────────────────────────────────────────────────────COMMENT
MEDIUMhack/metrics/ci-failure-analysis.py130# ── main analysis ─────────────────────────────────────────────────────────────COMMENT
MEDIUMhack/metrics/ci-failure-analysis.py196# ── output ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMhack/metrics/ci-failure-analysis.py236# ── CLI ───────────────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/metrics/substrate.yaml35# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/substrate.yaml54# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/substrate.yaml125# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/substrate.yaml131# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/metrics/substrate.yaml184# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/metrics/substrate.yaml188# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/metrics/substrate.yaml198# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡docs/metrics/substrate.yaml202# -----------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml30 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml32 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml798 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml800 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml984 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml986 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1453 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1455 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1503 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1505 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1601 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1603 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1667 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/metrics/registry/metrics.yaml1680 # ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml75 # ============================================================================COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml84 # ============================================================================COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml169 # ============================================================================COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml183 # ============================================================================COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml278 # ============================================================================COMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml306 # ============================================================================COMMENT
MEDIUMmanifests/ate-install/atenet-egress.yaml283 # ---------------------------------------------------------------------COMMENT
MEDIUMmanifests/ate-install/atenet-egress.yaml315 # ---------------------------------------------------------------------COMMENT
Excessive Try-Catch Wrapping72 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUM…/skills/security-status-report/scripts/render_chart.py24 print("Error: 'matplotlib' is required to render the chart. Please install it using 'pip install matplotlib'.", fileCODE
LOW…kills/security-status-report/scripts/compile_report.py76 except Exception as e:CODE
MEDIUMhack/export-threats.py97 print(f"Error: {args.md} not found.", file=sys.stderr)CODE
LOWhack/util/verify-boilerplate.py61 except Exception as e:CODE
MEDIUMhack/util/verify-boilerplate.py62 print(f"Error reading {filepath}: {e}")CODE
MEDIUMhack/util/verify-boilerplate.py96 print(f"Error running git ls-files: {e}")CODE
MEDIUMhack/util/verify-boilerplate.py57def verify_file(filepath):CODE
LOWbenchmarking/locust/cluster_facts.py109 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py218 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py257 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py290 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py327 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py439 except Exception as e:CODE
LOWbenchmarking/locust/cluster_facts.py477 except Exception as e:CODE
LOWbenchmarking/locust/runner.py534 except Exception as e:CODE
LOWbenchmarking/locust/runner.py547 except Exception as e:CODE
LOWbenchmarking/locust/runner.py606 except Exception as e:CODE
LOWbenchmarking/locust/runner.py622 except Exception as e:CODE
LOWbenchmarking/locust/runner.py639 except Exception as e:CODE
LOWbenchmarking/locust/runner.py651 except Exception as e:CODE
LOWbenchmarking/locust/runner.py673 except Exception as e:CODE
LOWbenchmarking/locust/runner.py686 except Exception as e:CODE
LOWbenchmarking/locust/runner.py696 except Exception as e:CODE
LOWbenchmarking/locust/runner.py714 except Exception as e:CODE
LOWbenchmarking/locust/server_telemetry.py53 except Exception as e:CODE
LOWbenchmarking/locust/server_telemetry.py86 except Exception as e:CODE
LOWbenchmarking/locust/server_telemetry.py149 except Exception:CODE
LOWbenchmarking/locust/phase_breakdown.py96 except Exception as e:CODE
LOWbenchmarking/locust/phase_breakdown.py107 except Exception as e:CODE
LOWbenchmarking/locust/phase_breakdown.py117 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py75 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py97 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py117 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py122 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py136 except Exception:CODE
LOWbenchmarking/locust/tests/counter_demo.py160 except Exception as e:CODE
LOWbenchmarking/locust/tests/counter_demo.py184 except Exception:CODE
LOWbenchmarking/locust/tests/ate_api.py57 except Exception as e:CODE
LOWbenchmarking/locust/tests/ate_api.py77 except Exception as e:CODE
LOWbenchmarking/locust/tests/ate_api.py86 except Exception as e:CODE
LOWbenchmarking/locust/tests/ate_api.py98 except Exception:CODE
LOWbenchmarking/locust/tests/ate_api.py107 except Exception:CODE
LOWbenchmarking/locust/tests/ate_api.py119 except Exception:CODE
MEDIUMbenchmarking/locust/tests/ate_api.py91def invoke_target(self) -> None:CODE
LOWbenchmarking/locust/tests/usermem.py51 except Exception as e:CODE
LOWbenchmarking/locust/tests/usermem.py73 except Exception as e:CODE
LOWbenchmarking/locust/tests/usermem.py85 except Exception as e:CODE
LOWbenchmarking/locust/tests/usermem.py93 except Exception as e:CODE
LOWbenchmarking/locust/tests/usermem.py112 except Exception:CODE
LOWbenchmarking/locust/tests/usermem.py124 except Exception:CODE
LOWbenchmarking/locust/tests/sleep.py51 except Exception as e:CODE
LOWbenchmarking/locust/tests/sleep.py73 except Exception as e:CODE
LOWbenchmarking/locust/tests/sleep.py85 except Exception as e:CODE
LOWbenchmarking/locust/tests/sleep.py93 except Exception as e:CODE
LOWbenchmarking/locust/tests/sleep.py112 except Exception:CODE
LOWbenchmarking/locust/tests/sleep.py124 except Exception:CODE
LOWbenchmarking/locust/tests/kernelmem.py51 except Exception as e:CODE
LOWbenchmarking/locust/tests/kernelmem.py73 except Exception as e:CODE
LOWbenchmarking/locust/tests/kernelmem.py85 except Exception as e:CODE
LOWbenchmarking/locust/tests/kernelmem.py93 except Exception as e:CODE
12 more matches not shown…
Empty Error Handlers15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHbenchmarking/locust/cluster_facts.py78except config.ConfigException:CODE
HIGHbenchmarking/locust/server_telemetry.py192except (IndexError, TypeError, ValueError):CODE
HIGHbenchmarking/locust/server_telemetry.py294except (ValueError, IndexError):CODE
HIGHbenchmarking/locust/tests/counter_demo.py136except Exception:CODE
HIGHbenchmarking/locust/tests/counter_demo.py184except Exception:CODE
HIGHbenchmarking/locust/tests/ate_api.py98except Exception:CODE
HIGHbenchmarking/locust/tests/ate_api.py107except Exception:CODE
HIGHbenchmarking/locust/tests/ate_api.py119except Exception:CODE
HIGHbenchmarking/locust/tests/usermem.py112except Exception:CODE
HIGHbenchmarking/locust/tests/usermem.py124except Exception:CODE
HIGHbenchmarking/locust/tests/sleep.py112except Exception:CODE
HIGHbenchmarking/locust/tests/sleep.py124except Exception:CODE
HIGHbenchmarking/locust/tests/kernelmem.py112except Exception:CODE
HIGHbenchmarking/locust/tests/kernelmem.py124except Exception:CODE
HIGHbenchmarking/nighthawk-ingress/tests/test_spec.py96except ValueError:CODE
Fake / Example Data41 hits · 52 pts
SeverityFileLineSnippetContext
LOWcmd/ate-setup/commands.md28| `--fake-data-plane` | Install the fake data plane for control-plane benchmarks: fake-atelet takes atelet's place in itCODE
LOWcmd/ate-setup/internal/cmd/deploy.go102--cordon-system-infra-components, and --fake-data-plane flags.`,CODE
LOWcmd/ate-setup/internal/config/setting.go308 Key: "fakeDataPlane.enabled", Env: "ATE_INSTALL_FAKE_DATA_PLANE", Flag: "fake-data-plane",CODE
LOWcmd/ate-setup/internal/config/options_test.go108 {"fake-data-plane", opts.FakeDataPlane},CODE
LOWcmd/ate-setup/internal/steps/deploy.go415 return e.Cfg.Manifest("components", "fake-data-plane", "fake-workersync.yaml")CODE
LOWcmd/ate-setup/internal/steps/deploy.go430 return fmt.Errorf("%s --fake-data-plane needs the fake data plane installed; install it with deploy ate-system --fake-CODE
LOWcmd/ate-setup/internal/steps/deploy.go432 return fmt.Errorf("the cluster has the fake data plane, which %s alone would half replace; pass --fake-data-plane, or CODE
LOWcmd/ate-setup/internal/steps/deploy.go466 return fmt.Errorf("--fake-data-plane cannot replace the real data plane while worker pods exist; delete these WorkerPooCODE
LOWcmd/ate-setup/internal/steps/deploy.go498// --fake-data-plane, after every apply that carries atelet or ate-controller.COMMENT
LOWcmd/ate-setup/internal/steps/overlay_test.go614// Under --fake-data-plane every path that applies atelet or ate-controllerCOMMENT
LOWcmd/ate-setup/internal/steps/overlay_test.go894 t.Run("composes with fake-data-plane", func(t *testing.T) {CODE
LOWcmd/ate-setup/internal/steps/overlay_test.go1163// Without --fake-data-plane the data plane renders as it always has.COMMENT
LOWcmd/ate-setup/internal/steps/overlay_test.go1176 t.Error("render without --fake-data-plane differs from render")CODE
LOWcmd/ate-setup/internal/steps/overlay_test.go1179 t.Errorf("render without --fake-data-plane has a %s Deployment", fakeWorkersyncDeployment)CODE
LOWcmd/ate-setup/internal/steps/overlay_test.go1626// Without --fake-data-plane there is no fake-workersync rollout to wait for.COMMENT
LOWcmd/ate-setup/internal/steps/overlay_test.go1630 t.Errorf("waitFakeWorkersync() without --fake-data-plane = %v, want nil", err)CODE
LOWcmd/ate-setup/internal/steps/overlay_test.go1728 t.Errorf("the fake-data-plane component does not list fake-workersync.yaml as a resource")CODE
LOW⚡cmd/ate-setup/internal/steps/overlay.go51// over the atelet and ate-controller applies under --fake-data-plane.COMMENT
LOW⚡cmd/ate-setup/internal/steps/overlay.go52const fakeDataPlaneComponent = installDir + "/components/fake-data-plane"CODE
LOW⚡cmd/ate-setup/internal/steps/overlay.go62 // e2e must come before fake-data-plane: e2e appends to atelet's args,COMMENT
LOW⚡cmd/ate-setup/internal/steps/overlay.go63 // and fake-data-plane removes args entirely.COMMENT
LOWcmd/ate-setup/internal/steps/delete.go70 {"components", "fake-data-plane", "fake-workersync.yaml"},CODE
LOWcmd/ate-setup/internal/steps/microvm.go224 "ASSET_BUCKET_NAME": "placeholder",CODE
LOWcmd/atenet/internal/router/egress/credentials_test.go135 md.Headers["x-api-key"] = "placeholder"CODE
LOWcmd/atenet/internal/router/egress/credentials_test.go237 md.Headers["x-api-key"] = "placeholder"CODE
LOWcmd/atenet/internal/router/egress/credentials_test.go458 md.Headers[header] = "placeholder"CODE
LOWcmd/benchmarking/isolate/fake-atelet/main.go16// runs in atelet's DaemonSet, installed by ate-setup --fake-data-plane, soCOMMENT
LOW…ernal/benchmarking/boomer/resumepaused/resumepaused.go19// (benchmarking/workloads/deploy.sh --fake-data-plane), it measures what aCOMMENT
LOWdocs/guides/benchmarking.md681go run ./cmd/ate-setup deploy ate-system --fake-data-planeCODE
LOWdocs/guides/operator-install.md307| `fakeDataPlane.enabled` | `ATE_INSTALL_FAKE_DATA_PLANE` | `--fake-data-plane` CODE
LOW…-install/components/fake-data-plane/kustomization.yaml16# --fake-data-plane over the atelet and ate-controller applies. fake-ateletCOMMENT
LOWbenchmarking/workloads/deploy.sh102 echo " On a substrate installed with --fake-data-plane, set a fake-atelet flag:"CODE
LOWbenchmarking/workloads/deploy.sh246# --fake-data-plane, which serves the WorkerPool with fake Workers instead ofCOMMENT
LOWbenchmarking/workloads/deploy.sh300 echo "Error: --fake-atelet-env needs substrate installed with --fake-data-plane" >&2CODE
LOWbenchmarking/automation/tests.yaml62# data plane (ate-setup deploy ate-system --fake-data-plane), whichCOMMENT
LOWbenchmarking/automation/util.py120 return [] if isolate_block(test) is None else ["--fake-data-plane"]CODE
LOW⚡benchmarking/automation/test_util.py65 self.assertEqual(util.isolate_install_args(test), ["--fake-data-plane"])CODE
LOW⚡benchmarking/automation/test_util.py71 self.assertEqual(util.isolate_install_args(test), ["--fake-data-plane"])CODE
LOW⚡benchmarking/automation/test_util.py80 self.assertEqual(util.isolate_install_args(test), ["--fake-data-plane"])CODE
LOW⚡benchmarking/automation/test_orchestrator.py68 ["--cluster-size=size10", "--fake-data-plane", "--sandbox-classes=gvisor"],CODE
LOW⚡benchmarking/automation/test_orchestrator.py77 ["--fake-data-plane", "--sandbox-classes=gvisor"],CODE
Unused Imports21 hits · 21 pts
SeverityFileLineSnippetContext
LOWhack/metrics/ci-failure-analysis.py50CODE
LOWbenchmarking/analysis/phase_report.py44CODE
LOWbenchmarking/locust/unit_tests/conftest.py18CODE
LOWbenchmarking/locust/tests/counter_demo.py24CODE
LOWbenchmarking/locust/tests/ate_api.py16CODE
LOWbenchmarking/locust/tests/ate_api.py17CODE
LOWbenchmarking/locust/tests/ate_api.py19CODE
LOWbenchmarking/locust/tests/usermem.py19CODE
LOWbenchmarking/locust/tests/sleep.py19CODE
LOWbenchmarking/locust/tests/kernelmem.py19CODE
LOWbenchmarking/locust/common/boomer_config.py164CODE
LOWbenchmarking/locust/common/boomer_config.py165CODE
LOWbenchmarking/locust/common/boomer_config.py166CODE
LOWbenchmarking/locust/common/boomer_config.py167CODE
LOWbenchmarking/locust/common/boomer_config.py168CODE
LOWbenchmarking/locust/common/boomer_config.py169CODE
LOWbenchmarking/locust/common/boomer_config.py170CODE
LOWbenchmarking/locust/common/boomer_config.py171CODE
LOWbenchmarking/locust/common/boomer_config.py172CODE
LOWbenchmarking/locust/common/boomer_config.py173CODE
LOWbenchmarking/nighthawk-ingress/actors.py33CODE
Modern Structural Boilerplate17 hits · 17 pts
SeverityFileLineSnippetContext
LOWbenchmarking/locust/tests/counter_demo.py32logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/tests/ate_api.py30logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/tests/usermem.py30logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/tests/sleep.py30logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/tests/kernelmem.py30logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/shapes/ladder_shape.py70logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/shapes/ladder_shape.py151def _set_trace_probability(environment, probability: float) -> None:CODE
LOWbenchmarking/locust/shapes/ladder_shape.py164def _set_target_rps(environment, rps: float) -> None:CODE
LOWbenchmarking/locust/shapes/spawn_shape.py24logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/common/metrics.py22logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/common/metrics.py97def update_user_count(delta: int, user_class: str) -> None:CODE
LOWbenchmarking/locust/common/trace.py33logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/common/trace.py40 def update_probability(self, probability: float) -> None:CODE
LOWbenchmarking/locust/common/trace.py117def set_trace_probability(probability: float) -> None:CODE
LOWbenchmarking/locust/common/grpc_tracing.py27logger = logging.getLogger(__name__)CODE
LOWbenchmarking/locust/common/boomer_config.py53logger = logging.getLogger(__name__)CODE
LOWbenchmarking/automation/controlplane.py233def set_pool_max_conns(n: int) -> None:CODE
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippetContext
LOW…kills/security-status-report/scripts/compile_report.py19CODE
LOWhack/export-threats.py27CODE
LOWbenchmarking/analysis/phase_report.py191CODE
LOWbenchmarking/analysis/phase_report.py251CODE
LOWbenchmarking/analysis/phase_report.py404CODE
LOWbenchmarking/locust/cluster_facts.py142CODE
LOWbenchmarking/locust/cluster_facts.py264CODE
LOWbenchmarking/locust/runner.py464CODE
LOWbenchmarking/locust/runner.py552CODE
LOWbenchmarking/locust/server_telemetry.py116CODE
LOWbenchmarking/locust/server_telemetry.py283CODE
LOWbenchmarking/nighthawk-ingress/runner.py229CODE
LOWbenchmarking/nighthawk-ingress/actors.py144CODE
LOWbenchmarking/nighthawk-ingress/output.py114CODE
LOWbenchmarking/automation/test_orchestrator.py219CODE
LOWbenchmarking/automation/orchestrator.py576CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMhack/update/licenses.sh56 # Create a temporary output folder for each targetCOMMENT
MEDIUMdocs/metrics/registry/metrics.yaml15# This file is an OpenTelemetry Weaver semantic convention registry. It definesCOMMENT
MEDIUMdocs/examples/gmp-alerting-rules.yaml17# This file is a Custom Resource for Google Cloud Managed Service forCOMMENT
MEDIUM.github/workflows/release.yaml160 # Creating a release needs contents: write.COMMENT
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcmd/ateapi/internal/controlapi/tag.go63 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/tag.go83 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/tag.go99 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/tag.go208 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/actor_template.go99 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/actor_template.go119 // TODO: implement thisCOMMENT
LOWcmd/ateapi/internal/controlapi/actor_template.go135 // TODO: implement thisCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALbenchmarking/locust/shapes/spawn_shape.py33 entry = self.runner.environment.stats.entries.get(CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHinternal/imagecache/imagecache.go297 // multi-arch ref, the index digest as requested, not the per-platformCOMMENT
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOW…credential-provider/kubernetes-secrets/kubeprovider.go172 // Step 3: the Secret is in hand, so a grant narrowed by label can finallyCOMMENT
LOWdocs/guides/csi-volumes.md123### Step 1: Create the StorageClassCOMMENT
LOWdocs/guides/csi-volumes.md140### Step 2: Register the CSIDriverConfigCOMMENT
LOWdocs/guides/csi-volumes.md157### Step 3: Define WorkerPool and ActorTemplateCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMbenchmarking/locust/ladder_steps.py105# TODO: separate the test's metrics from the harness. summarize() andCOMMENT
MEDIUMbenchmarking/automation/testtypes/nighthawk_ingress.py39 # Client sizing decoupled from envoyCpu so the harness never binds.COMMENT
Cross-Language Confusion2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHbenchmarking/locust/server_telemetry.py690 """Working set GiB per node, worker, atelet and actor; null, not 0, with no series.STRING
HIGHbenchmarking/locust/server_telemetry.py744 """OOM kills over the run; a failed read is null, not 0.STRING
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWhack/setup-csi-nfs-kind.sh19# Check if NFS server module is loaded on the hostCOMMENT
LOWhack/third_party/kubernetes/verify-shellcheck.sh80# Set this to "always" to force color output.COMMENT
LOWhack/third_party/kubernetes/verify-shellcheck.sh81# Set this to "never" to disable color output (which can confuse parsers likeCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcmd/atecontroller/main.go301 //+kubebuilder:scaffold:builderCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdemos/egress/test-egress.sh30# Usage:COMMENT
LOWdemos/parking/load.sh31# Usage:COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…credential-provider/kubernetes-secrets/kubeprovider.go172 // Step 3: the Secret is in hand, so a grant narrowed by label can finallyCOMMENT