AI Slop Code RIsk Monitor

TencentCloud/CubeSandbox

Instant, Concurrent, Secure & Lightweight Sandbox for AI Agents.

7.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for TencentCloud/CubeSandbox, a Go project with 12,869 GitHub stars. SynthScan examined 924,371 lines of code across 3383 source files, recording 4118 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 7.7 (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.

7.7
Adjusted Signal
7.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
12.9K
Stars
Go
Language
924.4K
Lines of Code
3.4K
Files
4.1K
Pattern Hits
2026-10-12
Scan Date
0.03
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 12.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

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

Agent Over-Engineering Ratio 23.3/100 · LOW

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

PR Review Velocity Impact 32.8/100 · MEDIUM

Which changes need focused human review? 4118 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 117MEDIUM 1317LOW 2683

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 4118 distinct pattern matches across 25 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.

Decorative Section Separators1272 hits · 3648 pts
SeverityFileLineSnippetContext
MEDIUM⚡CubeS3lvol/make_release.sh105# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh112# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh121# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh129# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh188# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh190# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh199# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh209# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh366# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh372# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/make_release.sh376# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh263# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh265# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh321# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh327# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh387# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh513# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/make_release.sh515# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh67# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh74# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh189# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh196# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh233# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh235# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh493# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh515# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh943# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh945# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh1027# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/setup_dep.sh1029# ---------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh77# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh86# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh228# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh230# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh317# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh324# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh339# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh342# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh360# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh362# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh381# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh383# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh412# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh414# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh585# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/run_all.sh587# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh77# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh79# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh93# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh98# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh125# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/tools/check_layering.sh127# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_decouple.sh88# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_decouple.sh184# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_decouple.sh186# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_decouple.sh232# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_decouple.sh234# --------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/test/dataplane/probe_esnap_decouple.sh274# --------------------------------------------------------------------------COMMENT
MEDIUM⚡CubeS3lvol/test/dataplane/probe_esnap_decouple.sh279# --------------------------------------------------------------------------COMMENT
MEDIUMCubeS3lvol/test/dataplane/probe_esnap_clone.sh81# --------------------------------------------------------------------------COMMENT
1212 more matches not shown…
Over-Commented Block1251 hits · 1160 pts
SeverityFileLineSnippetContext
LOWdocker/cube-entrypoint.sh1#!/bin/shCOMMENT
LOWCubeEgress/start.sh1#!/usr/bin/env bashCOMMENT
LOWCubeEgress/scripts/cube-proxy-iptables-init.sh1#!/usr/bin/env bashCOMMENT
LOWCubeEgress/scripts/cube-proxy-iptables-init.sh21# sub-chain so 'down' tears down our config without touching anythingCOMMENT
LOWCubeS3lvol/make_release.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/make_release.sh21#COMMENT
LOWCubeS3lvol/make_release.sh41# ├── VERSIONCOMMENT
LOWCubeS3lvol/make_release.sh361 done < "${AWS_COMPONENTS_FILE}"COMMENT
LOWCubeS3lvol/make_release.sh381# tree, and without anything the build machine happens to have exported.COMMENT
LOWCubeS3lvol/setup_dep.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/setup_dep.sh21# ./setup_dep.sh --print-configure-argsCOMMENT
LOWCubeS3lvol/setup_dep.sh41# The build used to look for SPDK at ../spdk, which works only if whoever clonedCOMMENT
LOWCubeS3lvol/setup_dep.sh61#COMMENT
LOWCubeS3lvol/setup_dep.sh101# What ./configure was given. Deliberately short:COMMENT
LOWCubeS3lvol/setup_dep.sh501#COMMENT
LOWCubeS3lvol/setup_dep.sh521# Debug by default, which is the same call as --enable-debug for SPDK above andCOMMENT
LOWCubeS3lvol/setup_dep.sh801 git clone --quiet --depth 1 --branch "${tag}" "${repo}" "${src}" || return 1COMMENT
LOWCubeS3lvol/test/run_all.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/run_all.sh21# === Why serial, and why this order ===COMMENT
LOWCubeS3lvol/test/run_all.sh41# find out whether one thing broke or ten did. Failures are collected andCOMMENT
LOWCubeS3lvol/test/run_all.sh521 # Snapshotting a volume whose decouple is *queued* must cancel thatCOMMENT
LOWCubeS3lvol/test/run_all.sh541 ./test/dataplane/run_agent_template_test.sh "${S3_ARGS[@]}"COMMENT
LOWCubeS3lvol/test/tools/s3_bucket.py1#!/usr/bin/env python3COMMENT
LOWCubeS3lvol/test/tools/check_binary_fresh.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/tools/check_layering.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/tools/check_layering.sh21# 3. module/ must not name aws_* identifiers at all.COMMENT
LOWCubeS3lvol/test/tools/s3lvol_rpc.py1#!/usr/bin/env python3COMMENT
LOWCubeS3lvol/test/tools/s3lvol_rpc.py21#COMMENT
LOWCubeS3lvol/test/tools/s3lvol_rpc.py41#COMMENT
LOWCubeS3lvol/test/tools/s3lvol_rpc.py61# mark for the snapshot. The mark is the *only* record that a delete was askedCOMMENT
LOWCubeS3lvol/test/tools/s3lvol_rpc.py181 # for what was actually a segfault on the other end.COMMENT
LOWCubeS3lvol/test/tools/s3_prefix_rm.py1#!/usr/bin/env python3COMMENT
LOWCubeS3lvol/test/tools/s3_prefix_rm.py21#COMMENT
LOWCubeS3lvol/test/tools/mmap_fault_bench.c1/* Copyright (c) 2026 Tencent Inc.COMMENT
LOWCubeS3lvol/test/integration/s3_wal_test.c41#include "spdk/stdinc.h"COMMENT
LOWCubeS3lvol/test/integration/s3_cache_test.c61COMMENT
LOWCubeS3lvol/test/dataplane/probe_lease_floor.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/dataplane/probe_esnap_decouple.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/dataplane/probe_esnap_decouple.sh21# §9 that "decouple finishes normally" still holds; it has to be checked.COMMENT
LOWCubeS3lvol/test/dataplane/probe_esnap_clone.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh21# - an esnap clone depends on a distributed export lease. A local clone's parentCOMMENT
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh581#COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh1#!/usr/bin/env bashCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh21# 2. writing the imported volume does not touch the source. It reads through toCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh721 fail "bdev_aio_create (destination)"; exit 1; }COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh1401 fail "the refused release still deleted objects"COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh1581# ==========================================================================COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh1761# A release that consulted the imports registry would answer "nobody imports this"COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2081# [11d] default decouple, idempotent export, snapshot-bound lifetimeCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2561fiCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2581# copying the whole volume. And this arrangement is not exotic: a filesystemCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2601# whole cluster this way makes blobstore release it too, so those clusters areCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2881COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh2901# 1. two volumes can be imported from one export, and both read what the sourceCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh3381#COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh3581# The bug that made this step necessary. spdk_blob_materialize_cluster() handsCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh3721fiCOMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh3881COMMENT
LOWCubeS3lvol/test/dataplane/run_export_test.sh3901# 2. Repeated reads. Reading the same volume twice must give the same bytes.COMMENT
1191 more matches not shown…
Hyper-Verbose Identifiers599 hits · 558 pts
SeverityFileLineSnippetContext
LOWweb/src/lib/templateConfig.ts55export function extractTemplateRuntimeConfig(cr: unknown): TemplateRuntimeConfig | null {CODE
LOWweb/src/lib/templateConfig.ts73export function extractTemplateNetworkPolicy(cr: unknown): TemplateNetworkPolicy {CODE
LOWweb/src/pages/Versions.tsx63function stripPlatformVersionSuffix(version: string): string {CODE
LOW…ploy/kubernetes/chart/scripts/test-helm-test-guards.sh177def check_rendered_test_placements(require_control_taint_for_runtime=False):CODE
LOW…ploy/kubernetes/chart/scripts/test-helm-test-guards.sh190def check_concat_custom_taints(name):CODE
LOW⚡tests/e2e/memory_reclaim/test_free_page_reporting.py51 def test_default_runtime_state_roots_use_containerd_task_layout(self) -> None:CODE
LOW⚡tests/e2e/memory_reclaim/test_free_page_reporting.py60 def test_pidfile_requires_matching_sandbox_shim(self) -> None:CODE
LOW⚡tests/e2e/memory_reclaim/test_free_page_reporting.py69 def test_reclaim_cycle_waits_for_fully_touched_workload_before_release(self) -> None:CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py104 def test_cleanup_sandbox_waits_for_all_node_local_state(self) -> None:CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py111 def test_incomplete_template_build_response_still_cleans_template(self) -> None:CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py137 def test_early_failure_emits_fail_status(self) -> None:CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py159 def test_terminal_template_build_failure_is_not_retried(self) -> None:CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py183 def test_cleanup_failure_turns_success_into_failure(self) -> None:CODE
LOWtests/e2e/sdk_compat/conftest.py212def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item]) -> None:CODE
LOWtests/e2e/sdk_compat/conftest.py243def pytest_runtest_makereport(item: pytest.Item, call: pytest.CallInfo):CODE
LOWtests/e2e/sdk_compat/conftest.py380def _optional_template_exists(sdk_e2e_config: SdkE2EConfig):CODE
LOWtests/e2e/sdk_compat/conftest.py398def skip_missing_optional_template(request: pytest.FixtureRequest) -> None:CODE
LOWtests/e2e/sdk_compat/conftest.py523def _scale_capacity_retries_for_xdist(cfg: SdkE2EConfig) -> SdkE2EConfig:CODE
LOWtests/e2e/sdk_compat/conftest.py632def _log_effective_environment(cfg: SdkE2EConfig) -> None:CODE
LOWtests/e2e/sdk_compat/framework/config.py22def volume_plugin_enabled_from_env() -> bool:CODE
LOWtests/e2e/sdk_compat/framework/host_mount.py37def backend_supports_host_mount(backend: str) -> bool:CODE
LOWtests/e2e/sdk_compat/framework/host_mount.py47def skip_if_host_mount_unavailable(backend: str, config) -> None:CODE
LOWtests/e2e/sdk_compat/framework/host_mount.py105def is_missing_hostpath_source_error(exc: BaseException | str) -> bool:CODE
LOWtests/e2e/sdk_compat/framework/host_mount.py124def warn_pass_missing_hostpath_source(CODE
LOWtests/e2e/sdk_compat/framework/volume_hints.py18def volume_plugin_misconfigured_hint(detail: str = "") -> str:CODE
LOWtests/e2e/sdk_compat/framework/volume.py50def wait_delete_volume_status(CODE
LOWtests/e2e/sdk_compat/framework/lifecycle.py82def wait_until_data_plane_ready(CODE
LOWtests/e2e/sdk_compat/framework/lifecycle.py139def wait_for_platform_destroy(CODE
LOWtests/e2e/sdk_compat/framework/network_probe.py215def require_conclusive_flow_outcome(outcome: str, target: str) -> str:STRING
LOWtests/e2e/sdk_compat/framework/network_probe.py233def wait_established_flow_outcome(STRING
LOWtests/e2e/sdk_compat/framework/create_retry.py90def create_with_capacity_retry(CODE
LOWtests/e2e/sdk_compat/framework/sandbox_logs.py111def parse_master_nodes_scanned(text: str) -> int | None:CODE
LOWtests/e2e/sdk_compat/framework/sandbox_logs.py193def skip_unless_single_node_cubecli(CODE
LOWtests/e2e/sdk_compat/framework/sandbox_logs.py348def wait_for_host_log_contains(CODE
LOWtests/e2e/sdk_compat/framework/preflight.py113def _check_backend_dependencies(backends: tuple[str, ...], errors: list[str]) -> None:CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py116def _assert_ro_mount_rejects_write(sandbox, path: str, *, timeout: int) -> None:CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py129def _delete_snapshot_after_runtime_release(CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py151def test_snapshot_restore_reverts_guest_and_keeps_external_mounts_current(CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py254def test_snapshot_restore_chain_remaps_host_mounts_each_generation(CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py375def test_rollback_restores_guest_state_but_not_host_mount_data(CODE
LOW⚡…ompat/cases/host-mount/test_snapshot_clone_rollback.py479def test_clone_isolates_guest_state_and_shares_rw_host_mount(CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py84def test_rw_and_ro_mounts_visible(sdk_sandbox, sdk_e2e_config):CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py98def test_rw_mount_accepts_writes(sdk_sandbox, sdk_e2e_config):CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py112def test_ro_mount_rejects_writes(sdk_sandbox, sdk_e2e_config):CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py127def test_disallowed_hostpath_rejected_at_create(sdk_backend, sdk_e2e_config):CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py152def test_get_info_returns_volume_mounts(sdk_sandbox):CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py175def test_list_returns_volume_mounts(sdk_sandbox, sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py61def _require_host_mount_backend(sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py108def test_illegal_hostpath_rejected(case, host_path, reason, sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py129def test_illegal_mountpath_rejected(case, mount_path, sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py141def test_mixed_valid_and_invalid_entries_rejected(sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py169def test_malformed_annotation_rejected(case, raw, sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py194def test_nonexistent_hostpath_rejected_at_create(sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py215def test_file_hostpath_rejected_at_create(sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py275def test_exact_allowed_prefix_dir_mounts(sdk_sandbox, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py289def test_empty_mount_list_is_noop(sdk_sandbox, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py302def test_rw_mount_shares_data_across_sandboxes(sdk_backend, sdk_e2e_config):CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py377def test_nested_ro_parent_rw_child_writable_when_child_listed_first(CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py535def test_symlink_escapes_allowed_prefix(sdk_backend, sdk_e2e_config):CODE
LOW…e2e/sdk_compat/cases/framework/test_l7_egress_retry.py79def test_http_command_retries_gateway_failure(gateway_status: int) -> None:CODE
539 more matches not shown…
Excessive Try-Catch Wrapping316 hits · 308 pts
SeverityFileLineSnippetContext
LOWCubeS3lvol/test/run_all.sh453except Exception:CODE
LOWCubeS3lvol/test/tools/s3_get_manifest.py78 except Exception as exc:CODE
LOWCubeS3lvol/test/dataplane/probe_esnap_decouple.sh255except Exception: rows=[]CODE
LOW⚡CubeS3lvol/test/dataplane/probe_esnap_decouple.sh288except Exception: rows=[]CODE
LOWCubeS3lvol/test/dataplane/probe_esnap_decouple.sh301except Exception: rows=[]CODE
LOWCubeS3lvol/test/dataplane/probe_esnap_decouple.sh328except Exception: rows=[]CODE
LOW⚡CubeS3lvol/test/dataplane/probe_esnap_clone.sh309except Exception: rows=[]CODE
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh162except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh606except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh253except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh624except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh3028except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh3140except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh3476except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh3701except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh3741except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4035except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4102except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4119except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4630except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4648except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_export_test.sh4949except Exception:CODE
LOWCubeS3lvol/test/dataplane/probe_chain_depth.sh78except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_activation_test.sh76 except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_hot_upgrade_test.sh623except Exception as exc:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh120except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh156except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh182except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh220except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh323except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh340except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh358except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh559except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh600except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh633except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh698except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh714except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh821except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh939except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1071except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1126except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1182except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1190except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1204except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1301except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1309except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1464except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh1472except Exception:CODE
LOWCubeS3lvol/test/dataplane/probe_esnap_snapshot.sh254except Exception: rows=[]CODE
LOWCubeS3lvol/test/dataplane/run_fs_test.sh274except Exception:CODE
LOWCubeS3lvol/test/dataplane/probe_decouple_window.sh184except Exception: subs = []CODE
LOWCubeS3lvol/test/dataplane/probe_decouple_window.sh224except Exception: rows=[]CODE
LOWCubeS3lvol/test/dataplane/run_snapdelete_test.sh174except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_snapdelete_test.sh403except Exception:CODE
LOWCubeS3lvol/test/dataplane/probe_mmap_restore_real.sh176except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_snapshot_cancel_test.sh541except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_decouple_queue_test.sh534except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_dataplane_test.sh1186except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_control_test.sh143except Exception:CODE
LOWCubeS3lvol/test/dataplane/run_control_test.sh157except Exception:CODE
256 more matches not shown…
Empty Error Handlers58 hits · 290 pts
SeverityFileLineSnippetContext
HIGHCubeS3lvol/test/tools/s3_prefix_rm.py252except (RuntimeError, ET.ParseError, OSError):CODE
HIGHtests/e2e/memory_reclaim/free_page_reporting.py286except SandboxNotFoundError:CODE
HIGHtests/e2e/memory_reclaim/free_page_reporting.py293except SandboxNotFoundError:CODE
HIGHtests/e2e/sdk_compat/framework/parallel.py82except ValueError:CODE
HIGH…dk_compat/cases/network/test_template_network_merge.py93except Exception:CODE
HIGH…dk_compat/cases/network/test_template_network_merge.py193except Exception:CODE
HIGH…dk_compat/cases/network/test_template_network_merge.py185except Exception:CODE
HIGH…e2e/sdk_compat/cases/network/test_mask_request_host.py105except Exception:CODE
HIGH…e2e/sdk_compat/cases/network/test_mask_request_host.py171except Exception:CODE
HIGH…ts/e2e/sdk_compat/cases/network/test_l7_custom_port.py143except Exception:CODE
HIGH…e/sdk_compat/cases/lifecycle/test_sandbox_envd_logs.py367except (ApiError, TemplateNotFoundError):CODE
HIGH…ts/e2e/sdk_compat/cases/lifecycle/test_pause_resume.py269except Exception: # noqa: BLE001 - fixture teardown still kills the sandboxCODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py68except TemplateNotFoundError:CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py129except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py186except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py228except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py259except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py299except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py344except (ApiError, TemplateNotFoundError):CODE
HIGHtests/e2e/sdk_compat/cases/templates/test_alias.py390except (ApiError, TemplateNotFoundError):CODE
HIGH…e2e/sdk_compat/cases/volume/test_snapshot_reference.py211except Exception: # noqa: BLE001 - try another live runtimeCODE
HIGHtests/e2e/sdk_compat/adapters/e2b_adapter.py33except ImportError:CODE
HIGHtests/e2e/sdk_compat/adapters/base.py167except Exception:CODE
HIGHtests/e2e/sdk_compat/adapters/base.py160except Exception:CODE
HIGHCubeAPI/examples/benchmark.py159except ValueError:CODE
HIGHsdk/python/cubesandbox/_pty.py154except Exception:CODE
HIGHsdk/python/cubesandbox/_pty.py513except Exception:CODE
HIGHsdk/python/cubesandbox/_pty.py121except Exception:CODE
HIGHsdk/python/cubesandbox/_pty.py449except Exception:CODE
HIGHsdk/python/cubesandbox/sandbox.py714except CubeSandboxError:CODE
HIGHsdk/python/cubesandbox/sandbox.py725except Exception:CODE
HIGHsdk/python/cubesandbox/sandbox.py879except Exception: # noqa: BLE001CODE
HIGHsdk/python/cubesandbox/sandbox.py870except Exception: # noqa: BLE001 — best-effortCODE
HIGHsdk/python/cubesandbox/sandbox.py985except Exception: # noqa: BLE001 — best-effort cleanupCODE
HIGHsdk/python/cubesandbox/sandbox.py975except Exception: # noqa: BLE001 — best-effort cleanupCODE
HIGHsdk/python/cubesandbox/sandbox.py398except Exception: # noqa: BLE001 — surface the gateway errorCODE
HIGHsdk/python/cubesandbox/_policy.py530except ValueError:CODE
HIGH…env-inheritance/lightweight-code-interpreter/server.py418except asyncio.CancelledError:CODE
HIGH…env-inheritance/lightweight-code-interpreter/server.py436except Exception:CODE
HIGH…aining/mini-swe-agent-patch/run/benchmarks/swebench.py274except concurrent.futures.CancelledError:CODE
HIGHexamples/mini-rl-training/scripts/run-concurrent.py524except (ImportError, AttributeError):CODE
HIGHexamples/mini-rl-training/scripts/run-concurrent.py160except ImportError:CODE
HIGHexamples/mini-rl-training/scripts/run-concurrent.py490except Exception:CODE
HIGH…ai-agents-code-interpreter/code_interpreter_demo_ci.py452except TypeError:CODE
HIGH…s/claude-code-integration/hooks/cubesandbox_rewrite.py97except Exception:CODE
HIGH…ples/claude-code-integration/hooks/cubesandbox_exec.py441except Exception:CODE
HIGH…pshot-rollback-clone/bench_pause_resume_concurrency.py82except Exception:CODE
HIGH…amples/snapshot-rollback-clone/bench_snapshot_dirty.py118except Exception:CODE
HIGH…amples/snapshot-rollback-clone/bench_snapshot_dirty.py123except Exception:CODE
HIGH…les/snapshot-rollback-clone/bench_clone_concurrency.py59except Exception:CODE
HIGH…les/snapshot-rollback-clone/bench_clone_concurrency.py64except Exception:CODE
HIGHexamples/opencode-plugin-sandbox/exec_backend.py112except OSError:CODE
HIGHexamples/opencode-plugin-sandbox/exec_backend.py248except OSError:CODE
HIGHexamples/opencode-plugin-sandbox/exec_backend.py227except OSError:CODE
HIGHexamples/code-sandbox-quickstart/auto-kill.py377except Exception: # noqa: BLE001CODE
HIGHexamples/code-sandbox-quickstart/mask-request-host.py156except Exception:CODE
HIGH…code-sandbox-quickstart/network_l7_custom_port_echo.py121except Exception:CODE
HIGHexamples/volume/cos/volume_complex_concurrent_test.py114except Exception: # noqa: BLE001CODE
Structural Annotation Overuse153 hits · 270 pts
SeverityFileLineSnippetContext
LOW⚡cubecow/examples/go-test/main.go380 // Step 1: Create volumeCOMMENT
LOW⚡cubecow/examples/go-test/main.go383 // Step 2: Get volume infoCOMMENT
LOW⚡cubecow/examples/go-test/main.go386 // Step 3: Get volume block infoCOMMENT
LOW⚡cubecow/examples/go-test/main.go389 // Step 4: Resize volumeCOMMENT
LOW⚡cubecow/examples/go-test/main.go392 // Step 5: Create snapshotCOMMENT
LOW⚡cubecow/examples/go-test/main.go395 // Step 6: List snapshotsCOMMENT
LOW⚡cubecow/examples/go-test/main.go398 // Step 7: Derive a writable volume from the snapshot (auto-activated).COMMENT
LOW⚡cubecow/examples/go-test/main.go401 // Step 8: List volumesCOMMENT
LOW⚡cubecow/examples/go-test/main.go404 // Step 9: Get metricsCOMMENT
LOW⚡cubecow/examples/go-test/main.go407 // Step 10: Cleanup - delete clone, snapshot, then volume (unless -no-cleanup)COMMENT
LOWcubecow/src/engine/s3.rs551 // Step 1: build the base projection under the read lock andCOMMENT
LOWcubecow/src/engine/s3.rs578 // Step 2: if the entry is an exported snapshot, refreshCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh2957# Step 1: terraform initCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh2990# Step 2: terraform apply (with retry logic)COMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3474# Step 6: Replace with the CubeSandbox kernelCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3688# Step 7: Reboot the CVM and verify the new kernelCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3843# Step 8: Initialize all compute nodes (purchased sequentially in step 3)COMMENT
LOW⚡CubeTemplateCenter/pkg/image/native.go206 // Step 1: Concurrently prefetch layers to disk to maximize network throughput.COMMENT
LOWCubeTemplateCenter/pkg/image/native.go359 // Step 2: Sequentially apply and immediately delete layers as they finish downloading.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go214 // Step 1: Create-restore from tpl-T sets BOTH bindings.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go220 // Step 2: Commit A advances the runtime-snapshot binding only.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go226 // Step 3: Commit B — same invariant.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go231 // Step 4: Rollback to A: rollback restarts the VM, so it bumps BOTH.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go237 // Step 5: Commit C after rollback — runtime-snapshot advances; theCOMMENT
LOWdocs/guide/dev-environment.md59### Step 1: Create the VM (one-off)COMMENT
LOWdocs/guide/dev-environment.md73### Step 2: Boot the VMCOMMENT
LOWdocs/guide/dev-environment.md84### Step 3: Log in (in a new terminal)COMMENT
LOWdocs/guide/dev-environment.md93### Step 4: Install what you need inside the VMCOMMENT
LOWdocs/guide/bare-metal-deploy.md29## Step 1: InstallCOMMENT
LOWdocs/guide/bare-metal-deploy.md73## Step 2: Create a TemplateCOMMENT
LOWdocs/guide/bare-metal-deploy.md102## Step 3: Run Your First Agent CodeCOMMENT
LOWdocs/guide/quickstart.md47## Step 1: Provision a Cloud Server & Install the PVM KernelCOMMENT
LOWdocs/guide/quickstart.md171## Step 2: InstallCOMMENT
LOWdocs/guide/quickstart.md199## Step 3: Create a TemplateCOMMENT
LOWdocs/guide/quickstart.md232## Step 4: Run Your First Agent CodeCOMMENT
LOWdocs/guide/multi-node-deploy.md46## Step 1: Prepare the Release BundleCOMMENT
LOWdocs/guide/multi-node-deploy.md55## Step 2: Configure Environment VariablesCOMMENT
LOWdocs/guide/multi-node-deploy.md109## Step 3: InstallCOMMENT
LOWdocs/guide/pvm-deploy.md43## Step 0: Provision a Cloud ServerCOMMENT
LOWdocs/guide/pvm-deploy.md59## Step 1: Install the PVM Host KernelCOMMENT
LOWdocs/guide/pvm-deploy.md159## Step 2: Install Cube Sandbox with PVM EnabledCOMMENT
LOWdocs/guide/pvm-deploy.md221## Step 3: Verify the PVM EnvironmentCOMMENT
LOWdocs/guide/pvm-deploy.md235## Step 4: Create a Template and Get StartedCOMMENT
LOWdocs/guide/self-build-deploy.md54## Step 1: Build the Release BundleCOMMENT
LOWdocs/guide/self-build-deploy.md125## Step 2: Deploy to the Target MachineCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md28### Step 1: Write a DockerfileCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md45### Step 2: Build the imageCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md51### Step 3: Verify that envd is healthyCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md66### Step 4: Create the templateCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md86### Step 5: Wait for the template to become readyCOMMENT
LOWdocs/guide/tutorials/template-build-practice.md101### Step 6: Verify the templateCOMMENT
LOW⚡docs/guide/tutorials/template-build-practice.md181### Step 1: Write a DockerfileCOMMENT
LOW⚡docs/guide/tutorials/template-build-practice.md185### Step 2: Build the image with a registry prefixCOMMENT
LOW⚡docs/guide/tutorials/template-build-practice.md192### Step 3: Verify that envd is healthyCOMMENT
LOW⚡docs/guide/tutorials/template-build-practice.md196### Step 4: Log in and push the imageCOMMENT
LOW⚡docs/guide/tutorials/template-build-practice.md206### Step 5: Create the templateCOMMENT
LOW⚡…s/blog/posts/2026-06-03-cubesandbox-v0.3.0-snapshot.md137# Step 1: take a base snapshot in the v0 stateCOMMENT
LOW⚡…s/blog/posts/2026-06-03-cubesandbox-v0.3.0-snapshot.md144# Step 2: spin up a new sandbox from the base snapshotCOMMENT
LOW⚡…s/blog/posts/2026-06-03-cubesandbox-v0.3.0-snapshot.md148# Step 3: write v1 and drop a checkpointCOMMENT
LOW⚡…s/blog/posts/2026-06-03-cubesandbox-v0.3.0-snapshot.md154# Step 4: write v2 and confirm it landedCOMMENT
93 more matches not shown…
Unused Imports174 hits · 159 pts
SeverityFileLineSnippetContext
LOWCubeS3lvol/test/tools/s3_bucket.py24CODE
LOWCubeS3lvol/scripts/rpc.py32CODE
LOWtests/e2e/memory_reclaim/free_page_reporting.py4CODE
LOWtests/e2e/memory_reclaim/test_free_page_reporting.py3CODE
LOWtests/e2e/sdk_compat/conftest.py4CODE
LOWtests/e2e/sdk_compat/framework/auth.py4CODE
LOWtests/e2e/sdk_compat/framework/l7_egress.py6CODE
LOWtests/e2e/sdk_compat/framework/trace.py4CODE
LOWtests/e2e/sdk_compat/framework/platform_lifecycle.py4CODE
LOWtests/e2e/sdk_compat/framework/config.py4CODE
LOWtests/e2e/sdk_compat/framework/models.py4CODE
LOWtests/e2e/sdk_compat/framework/host_mount.py14CODE
LOWtests/e2e/sdk_compat/framework/volume_hints.py6CODE
LOWtests/e2e/sdk_compat/framework/assertions.py4CODE
LOWtests/e2e/sdk_compat/framework/cleanup.py4CODE
LOWtests/e2e/sdk_compat/framework/volume.py4CODE
LOWtests/e2e/sdk_compat/framework/volume.py13CODE
LOWtests/e2e/sdk_compat/framework/volume.py13CODE
LOWtests/e2e/sdk_compat/framework/volume.py13CODE
LOWtests/e2e/sdk_compat/framework/capabilities.py4CODE
LOWtests/e2e/sdk_compat/framework/lifecycle.py4CODE
LOWtests/e2e/sdk_compat/framework/mcp_client.py10CODE
LOWtests/e2e/sdk_compat/framework/exceptions.py4CODE
LOWtests/e2e/sdk_compat/framework/network_probe.py6CODE
LOWtests/e2e/sdk_compat/framework/parallel.py11CODE
LOWtests/e2e/sdk_compat/framework/build_throttle.py27CODE
LOWtests/e2e/sdk_compat/framework/create_retry.py37CODE
LOWtests/e2e/sdk_compat/framework/sandbox_logs.py17CODE
LOWtests/e2e/sdk_compat/framework/preflight.py4CODE
LOWtests/e2e/sdk_compat/framework/reporting.py4CODE
LOW…ompat/cases/host-mount/test_snapshot_clone_rollback.py17CODE
LOW…/sdk_compat/cases/host-mount/test_create_with_mount.py21CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py31CODE
LOW…e2e/sdk_compat/cases/framework/test_l7_egress_retry.py6CODE
LOW…ts/e2e/sdk_compat/cases/framework/test_sandbox_logs.py6CODE
LOW…ts/e2e/sdk_compat/cases/framework/test_create_retry.py10CODE
LOWtests/e2e/sdk_compat/cases/framework/test_reporting.py12CODE
LOWtests/e2e/sdk_compat/cases/framework/test_collection.py6CODE
LOWtests/e2e/sdk_compat/cases/framework/test_parallel.py10CODE
LOWtests/e2e/sdk_compat/cases/auth/conftest.py4CODE
LOWtests/e2e/sdk_compat/cases/auth/test_api_key.py21CODE
LOW…dk_compat/cases/network/test_template_network_merge.py6CODE
LOWtests/e2e/sdk_compat/cases/network/test_dns_allow.py6CODE
LOW…sts/e2e/sdk_compat/cases/network/test_policy_update.py13CODE
LOWtests/e2e/sdk_compat/cases/network/test_l7_egress.py6CODE
LOW…e2e/sdk_compat/cases/network/test_mask_request_host.py18CODE
LOWtests/e2e/sdk_compat/cases/network/test_policy.py4CODE
LOW…_compat/cases/network/test_dns_concurrent_af_unspec.py26CODE
LOW…ts/e2e/sdk_compat/cases/network/test_l7_custom_port.py37CODE
LOWtests/e2e/sdk_compat/cases/run_code/test_python.py4CODE
LOWtests/e2e/sdk_compat/cases/lifecycle/test_connect.py4CODE
LOW…/e2e/sdk_compat/cases/lifecycle/test_rollback_clone.py4CODE
LOW…dk_compat/cases/lifecycle/test_negative_and_timeout.py4CODE
LOW…/sdk_compat/cases/lifecycle/test_log_forward_cycles.py25CODE
LOW…e/sdk_compat/cases/lifecycle/test_sandbox_envd_logs.py13CODE
LOW…/e2e/sdk_compat/cases/lifecycle/test_auto_lifecycle.py4CODE
LOW…mpat/cases/lifecycle/test_snapshot_delete_reference.py6CODE
LOW…ts/e2e/sdk_compat/cases/lifecycle/test_pause_resume.py4CODE
LOWtests/e2e/sdk_compat/cases/lifecycle/test_kill.py4CODE
LOW…/e2e/sdk_compat/cases/lifecycle/test_resume_timeout.py4CODE
114 more matches not shown…
Cross-Language Confusion24 hits · 124 pts
SeverityFileLineSnippetContext
HIGHtests/e2e/sdk_compat/framework/network_probe.py206 f"test -f {ESTABLISHED_READY_PATH} && echo READY || echo WAIT",STRING
HIGHtests/e2e/sdk_compat/framework/network_probe.py242 f"cat {ESTABLISHED_RESULT_PATH} 2>/dev/null || echo PENDING",CODE
HIGH…/sdk_compat/cases/host-mount/test_create_with_mount.py101 f"echo cube > {_RW_MOUNT}/sdk-compat-rw.txt && cat {_RW_MOUNT}/sdk-compat-rw.txt",CODE
HIGHtests/e2e/sdk_compat/cases/host-mount/test_boundary.py278 "test -d /mnt/exact && echo mounted",CODE
HIGHtests/e2e/sdk_compat/cases/host-mount/test_boundary.py326 f"echo {payload} > {mount}/note.txt && sync",CODE
HIGH…sts/e2e/sdk_compat/cases/network/test_policy_update.py194 "getent hosts dns.google >/dev/null && echo RESOLVED || echo UNRESOLVED",CODE
HIGH…sts/e2e/sdk_compat/cases/network/test_policy_update.py194 "getent hosts dns.google >/dev/null && echo RESOLVED || echo UNRESOLVED",CODE
HIGH⚡…ts/e2e/sdk_compat/cases/lifecycle/test_pause_resume.py266 f"kill $(cat {_BLOCK_IO_PID}) 2>/dev/null || true; fi",STRING
HIGHexamples/network-policy/network_dynamic_update.py109 f"&& echo REACHABLE || echo BLOCKED",CODE
HIGHexamples/network-policy/network_dynamic_update.py162 f"for i in $(seq 10); do grep -q . /tmp/hold.out && break; sleep 1; done; "CODE
HIGHexamples/network-policy/network_dynamic_update.py172 "for i in $(seq 15); do test $(wc -l </tmp/hold.out) -ge 2 && break; sleep 1; done; "CODE
HIGH⚡examples/openai-agents-example/main.py381 result = await session.exec("uname -a && cat /etc/os-release | head -3")CODE
HIGH…ude-code-integration/tests/test_cubesandbox_rewrite.py31 "true && touch host-sentinel",CODE
HIGH…ude-code-integration/tests/test_cubesandbox_rewrite.py50 "cwd": "cwd && touch host-sentinel",CODE
HIGH…ude-code-integration/tests/test_cubesandbox_rewrite.py66 "--mount=cwd && touch host-sentinel",CODE
HIGH…ude-code-integration/tests/test_cubesandbox_rewrite.py279 "true cubesandbox_exec.py && echo host-side",CODE
HIGH…les/claude-code-integration/tests/test_hook_install.py207 stale_command = "/old/checkout/hooks/cubesandbox_rewrite.py || exit 2"CODE
HIGH…ples/claude-code-integration/hooks/cubesandbox_exec.py374 f'cd -- {default_cwd} 2>/dev/null || cd -- "$HOME" || exit 1; 'CODE
HIGH…ples/claude-code-integration/hooks/cubesandbox_exec.py375 f'else cd -- {default_cwd} 2>/dev/null || cd -- "$HOME" || exit 1; fi; 'CODE
HIGH…ples/claude-code-integration/hooks/cubesandbox_exec.py386 f"then pwd > {cwd_file_q} 2>/dev/null; fi; "CODE
HIGHexamples/opencode-plugin-sandbox/exec_backend.py302 lines.append(f"cd {shlex.quote(cwd)} 2>/dev/null || cd {shlex.quote(DEFAULT_WORKDIR)}")CODE
HIGH⚡examples/volume/cos/verify_volume.py445 run_cmd(sb, "test -d %s && echo EXIST" % mp, "挂载点目录存在", tag)CODE
HIGH⚡examples/volume/cos/verify_volume.py447 run_cmd(sb, "df -hT %s 2>&1 || df -h %s" % (mp, mp), "df 挂载点文件系统/容量", tag)CODE
HIGHexamples/volume/cos/volume_complex_concurrent_test.py325 out = reader.commands.run(f"cat {path} 2>/dev/null || true")CODE
Verbosity Indicators63 hits · 117 pts
SeverityFileLineSnippetContext
LOW⚡cubecow/examples/go-test/main.go380 // Step 1: Create volumeCOMMENT
LOW⚡cubecow/examples/go-test/main.go383 // Step 2: Get volume infoCOMMENT
LOW⚡cubecow/examples/go-test/main.go386 // Step 3: Get volume block infoCOMMENT
LOW⚡cubecow/examples/go-test/main.go389 // Step 4: Resize volumeCOMMENT
LOW⚡cubecow/examples/go-test/main.go392 // Step 5: Create snapshotCOMMENT
LOW⚡cubecow/examples/go-test/main.go395 // Step 6: List snapshotsCOMMENT
LOW⚡cubecow/examples/go-test/main.go398 // Step 7: Derive a writable volume from the snapshot (auto-activated).COMMENT
LOW⚡cubecow/examples/go-test/main.go401 // Step 8: List volumesCOMMENT
LOW⚡cubecow/examples/go-test/main.go404 // Step 9: Get metricsCOMMENT
LOW⚡cubecow/examples/go-test/main.go407 // Step 10: Cleanup - delete clone, snapshot, then volume (unless -no-cleanup)COMMENT
LOWcubecow/src/engine/s3.rs551 // Step 1: build the base projection under the read lock andCOMMENT
LOWcubecow/src/engine/s3.rs578 // Step 2: if the entry is an exported snapshot, refreshCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh2957# Step 1: terraform initCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh2990# Step 2: terraform apply (with retry logic)COMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3474# Step 6: Replace with the CubeSandbox kernelCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3688# Step 7: Reboot the CVM and verify the new kernelCOMMENT
LOW⚡deploy/one-click/terraform/tencentcloud/create.sh3843# Step 8: Initialize all compute nodes (purchased sequentially in step 3)COMMENT
LOW⚡CubeTemplateCenter/pkg/image/native.go206 // Step 1: Concurrently prefetch layers to disk to maximize network throughput.COMMENT
LOWCubeTemplateCenter/pkg/image/native.go359 // Step 2: Sequentially apply and immediately delete layers as they finish downloading.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go214 // Step 1: Create-restore from tpl-T sets BOTH bindings.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go220 // Step 2: Commit A advances the runtime-snapshot binding only.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go226 // Step 3: Commit B — same invariant.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go231 // Step 4: Rollback to A: rollback restarts the VM, so it bumps BOTH.COMMENT
LOW⚡…services/cubebox/snapshot_base_memory_fallback_test.go237 // Step 5: Commit C after rollback — runtime-snapshot advances; theCOMMENT
LOWCubeOps/internal/service/agenthub.go1093 // Step 1: plain restart.COMMENT
LOWCubeOps/internal/service/agenthub.go1109 // Step 2: find latest healthy snapshot.COMMENT
LOWCubeOps/internal/service/agenthub.go1122 // Step 3: rollback to the healthy snapshot.COMMENT
LOWCubeOps/internal/service/agenthub.go1152 // Step 4: restart OpenClaw again after rollback.COMMENT
LOWpkgs/cubedb/migrate/migrate_alignment_test.go96 // Step 1: table set — catches missing tables like runtime_active quickly.COMMENT
LOWexamples/openai-agents-example/simple_demo.py216 # Step 1: Create sandbox and write a marker fileCOMMENT
LOW⚡examples/openai-agents-example/simple_demo.py236 # Step 3: Pause (stop + shutdown with pause_on_exit=True)COMMENT
LOW⚡examples/openai-agents-example/simple_demo.py244 # Step 4: ResumeCOMMENT
LOW⚡examples/openai-agents-example/simple_demo.py251 # Step 5: Verify marker file persistsCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py18# Step 1: create a base snapshotCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py25# Step 2: spin up a sandbox from the base snapshotCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py29 # Step 3: write v1 to both disk and tmpfs, take a checkpointCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py35 # Step 4: write v2, verify it stuck on bothCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py42 # Step 5: rollback to the v1 checkpointCOMMENT
LOW⚡examples/snapshot-rollback-clone/rollback_demo.py46 # Step 6: verify both disk and tmpfs restored to v1COMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py17# Step 1: create a base snapshot at v0COMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py24# Step 2: spin up a sandbox from the base snapshotCOMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py28# Step 3: write v1, take a checkpointCOMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py34# Step 4: write v2, confirm it stuckCOMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py41# Step 5: rollback to the v1 checkpointCOMMENT
LOW⚡examples/snapshot-rollback-clone/09_rollback.py45# Step 6: verify state is v1COMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh274 # Step 1: create volumes/<volume_id>/ in the COS bucketCOMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh277 # Step 2: return success; private_data carries the COS key prefix for AttachCOMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh292 # Step 1: delete volumes/<volume_id>/ from COS (irreversible)COMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh321 # Step 1: serialize concurrent attach for the same volumeCOMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh325 # Step 2: mount COS folder with cosfs (skip if already mounted)COMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh374 # Step 2: find mount path (prefer path saved at attach time)COMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh379 # Step 3: last user gone — unmount FUSE (COS data stays until destroy)COMMENT
LOWexamples/volume/cos/binary/cube-volume-cos.sh336 # Step 3: return host_path so Cubelet can bind-mount into the sandboxCOMMENT
LOWexamples/volume/cos/binary/cube-volume-cos.sh362 # Step 1: other sandboxes still mounted — leave cosfs runningCOMMENT
LOWhypervisor/vmm/src/soft_dirty.rs159 // Step 1: allocate a page-aligned anonymous scratch region. TheCOMMENT
LOW⚡hypervisor/vmm/src/soft_dirty.rs181 // Step 2: write one byte. This is the **first** write to this page,COMMENT
LOW⚡hypervisor/vmm/src/soft_dirty.rs190 // Step 3: read the pagemap entry and check bit 55.COMMENT
LOWhypervisor/vmm/src/soft_dirty.rs206 // Step 4: kernel really supports soft-dirty. Arm the tracker byCOMMENT
LOW⚡hypervisor/scripts/run_integration_tests_x86_64.sh242 # Step 1: Priority 1 - Boot & Lifecycle (parallel)COMMENT
LOW⚡hypervisor/scripts/run_integration_tests_x86_64.sh249 # Step 2: Priority 2 - Core I/O Devices (parallel)COMMENT
3 more matches not shown…
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtests/e2e/sdk_compat/framework/create_retry.py99Call ``create`` and retry it while the scheduler is out of capacity. Args: create: Zero-argument callable tSTRING
HIGHsdk/python/cubesandbox/_volume.py334POST /volumes — Create a new persistent volume. e2b-compatible by default: when ``driver`` is omitted (``None``STRING
HIGHsdk/python/cubesandbox/_volume.py380GET /volumes — List all volumes. The returned entries never carry a ``token`` (it is only surfaced on cSTRING
HIGHsdk/python/cubesandbox/_volume.py411GET /volumes/{volumeID} — Fetch a single volume, including its token. Args: volume_id: Volume identSTRING
HIGHsdk/python/cubesandbox/_volume.py442GET /volumes/{volumeID} — Connect to an existing volume. e2b-compatible: fetches the volume via ``get_info`` (`STRING
HIGHsdk/python/cubesandbox/_volume.py475DELETE /volumes/{volumeID} — Permanently delete a volume. e2b-compatible: returns ``True`` on success, ``False`STRING
HIGHsdk/python/cubesandbox/_template.py150GET /templates — List all templates. Args: config: SDK config. Uses default (env-based) config if STRING
HIGHsdk/python/cubesandbox/_template.py181GET /templates/:templateID — Get a template and its build history. Args: template_id: Template idenSTRING
HIGHsdk/python/cubesandbox/_template.py240POST /templates - Build (create) a new template from an image. Submits CubeAPI's create-from-image request and STRING
HIGHsdk/python/cubesandbox/_template.py462PUT /templates/:templateID/alias — Set, reassign, or clear the alias of an existing template. Args: STRING
HIGHsdk/python/cubesandbox/sandbox.py253POST /sandboxes - Create a new sandbox. Args: template: Template ID or alias. Falls back to ``CUBE_STRING
HIGHsdk/python/cubesandbox/sandbox.py411POST /sandboxes/:sandboxID/connect - Connect to an existing sandbox. Resumes the sandbox if it is currently pauSTRING
HIGHsdk/python/cubesandbox/sandbox.py510POST /execute - Execute code inside the sandbox. Streams the ndjson response from the sandbox's envd process viSTRING
HIGHsdk/python/cubesandbox/sandbox.py733POST /sandboxes/:sandboxID/snapshots — Create a snapshot (1.1). The sandbox is temporarily paused during snapshSTRING
HIGHsdk/python/cubesandbox/sandbox.py822POST /sandboxes/:sandboxID/rollback — Roll back a sandbox to a snapshot (1.5). Reverts the sandbox's filesystemSTRING
HIGHsdk/python/cubesandbox/sandbox.py884Clone this sandbox *n* times (1.6). Internally this executes three steps: 1. :meth:`create_snapshot` —STRING
Cross-File Repetition14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHexamples/host-mount/env_utils.py0best-effort load of a nearby .env file without overriding real env vars.STRING
HIGHexamples/route-aware-egress/env_utils.py0best-effort load of a nearby .env file without overriding real env vars.STRING
HIGHexamples/pi-agent-integration/env_utils.py0best-effort load of a nearby .env file without overriding real env vars.STRING
HIGHexamples/network-policy/env_utils.py0best-effort load of a nearby .env file without overriding real env vars.STRING
HIGHexamples/grpc-ingress/env_utils.py0best-effort load of a nearby .env file without overriding real env vars.STRING
HIGHexamples/code-sandbox-quickstart/auto-kill.py0\ import hashlib data = "cube sandbox pause/resume demo" hash_val = hashlib.sha256(data.encode()).hexdigest()[:16] pi_apSTRING
HIGHexamples/code-sandbox-quickstart/auto-resume.py0\ import hashlib data = "cube sandbox pause/resume demo" hash_val = hashlib.sha256(data.encode()).hexdigest()[:16] pi_apSTRING
HIGHexamples/code-sandbox-quickstart/pause.py0\ import hashlib data = "cube sandbox pause/resume demo" hash_val = hashlib.sha256(data.encode()).hexdigest()[:16] pi_apSTRING
HIGHexamples/code-sandbox-quickstart/auto-kill.py0on_stdout may deliver multi-line blobs; normalize to individual lines.STRING
HIGHexamples/code-sandbox-quickstart/auto-resume.py0on_stdout may deliver multi-line blobs; normalize to individual lines.STRING
HIGHexamples/code-sandbox-quickstart/pause.py0on_stdout may deliver multi-line blobs; normalize to individual lines.STRING
HIGHexamples/code-sandbox-quickstart/auto-kill.py0extract value from 'key = value' formatted output line.STRING
HIGHexamples/code-sandbox-quickstart/auto-resume.py0extract value from 'key = value' formatted output line.STRING
HIGHexamples/code-sandbox-quickstart/pause.py0extract value from 'key = value' formatted output line.STRING
Example Usage Blocks47 hits · 69 pts
SeverityFileLineSnippetContext
LOWCubeEgress/scripts/cube-proxy-iptables-init.sh24# Usage:COMMENT
LOWCubeS3lvol/make_release.sh9# Usage:COMMENT
LOWCubeS3lvol/setup_dep.sh13# Usage:COMMENT
LOWCubeS3lvol/test/run_all.sh44# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_selfimport_test.sh35# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_cubecow_client_test.sh44# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_hot_upgrade_test.sh41# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_pending_delete_test.sh63# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_derived_test.sh71# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_guards_test.sh45# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_fs_test.sh98# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_snapdelete_test.sh54# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/probe_mmap_restore_real.sh28# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_snapshot_cancel_test.sh30# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_decouple_queue_test.sh34# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_dataplane_test.sh61# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_control_test.sh41# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/probe_mmap_restore_perf.sh24# Usage:COMMENT
LOW…S3lvol/test/dataplane/run_hot_upgrade_negative_test.sh45# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_recovery_test.sh47# Usage:COMMENT
LOWCubeS3lvol/test/dataplane/run_snapshot_converge_test.sh22# Usage:COMMENT
LOWCubeS3lvol/patches/apply.sh11# Usage:COMMENT
LOWCubeS3lvol/scripts/rcow_start.sh43# Usage:COMMENT
LOWdeploy/one-click/build-guest-image.sh5# Usage:COMMENT
LOWdeploy/one-click/build-agent-ext4.sh7# Usage:COMMENT
LOWdeploy/one-click/scripts/cube-diag/collect-logs.sh20# Usage:COMMENT
LOWdeploy/one-click/scripts/cube-diag/cube-check.sh18# Usage:COMMENT
LOWdeploy/one-click/scripts/cube-diag/check-procs.sh17# Usage:COMMENT
LOWdeploy/kubernetes/chart/scripts/cleanup-node-host.sh8# Usage:COMMENT
LOWtests/unittest/run_sdk_test.sh17# Usage:COMMENT
LOWtests/unittest/run.sh17# Usage:COMMENT
LOWtests/perf/cubebench.sh73# Usage:COMMENT
LOWdev-env/create_vm.sh18# Usage:COMMENT
LOWdev-env/run_vm.sh17# Usage:COMMENT
LOWdev-env/login.sh11# Usage:COMMENT
LOWCubeAPI/scripts/test-cube-api.sh4# Usage:COMMENT
LOWCubeMaster/scripts/redis_key_migrate.sh4# Usage:COMMENT
LOWexamples/opencode-plugin-sandbox/plugin/install.sh13# Usage:COMMENT
LOWexamples/volume/s3/install-deps.sh17# Usage:COMMENT
LOWexamples/volume/cos/verify_volume.py63# Usage:COMMENT
LOWexamples/volume/cos/install-deps.sh12# Usage:COMMENT
LOW⚡examples/volume/cos/binary/cube-volume-cos.sh110# Usage:COMMENT
LOWexamples/volume/juicefs/install-deps.sh15# Usage:COMMENT
LOWscripts/bump-image.sh17# Usage:COMMENT
LOWscripts/new-migration.sh12# Usage:COMMENT
LOWscripts/gh.sh7# Usage:COMMENT
LOW.github/workflows/publish-go-sdk.yml6# Usage:COMMENT
AI Slop Vocabulary21 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMCubeS3lvol/test/dataplane/run_export_test.sh363# Report a measured operation with the harness overhead taken out.COMMENT
MEDIUMCubeS3lvol/test/dataplane/run_export_test.sh1193# add_ns, the host rescan, udev -- belongs to the test harness rather than to theCOMMENT
MEDIUMCubeS3lvol/test/dataplane/run_agent_template_test.sh202# a rescan; rescanning on every pass makes the wait robust on hosts where theCOMMENT
LOWCubeS3lvol/scripts/rcow_common.sh357# Exported, not just set, because the target inherits them -- without that theCOMMENT
MEDIUMcubecow/benches/reflink_ops.rs236 // we name it explicitly so the recipe is robust to defaultCOMMENT
MEDIUMdeploy/pvm/pvm_setup.sh80# is more robust and is a no-op on RPM distributions.COMMENT
MEDIUMdeploy/one-click/terraform/tencentcloud/validate.sh103 # keep this robust across checkout layouts. Gate on errors so genuine bugsCOMMENT
MEDIUM⚡deploy/one-click/terraform/tencentcloud/create.sh359 # fall through to auto-detect / prompt so re-runs stay robust.COMMENT
MEDIUMCubeTemplateCenter/pkg/image/disk.go321 // set explicitly to be robust); --numeric-owner avoids name lookupsCOMMENT
MEDIUM⚡CubeTemplateCenter/pkg/image/native.go207 // Temp directory is created in destDir's workspace to utilize the same fast disk.COMMENT
MEDIUM…_compat/cases/network/test_dns_concurrent_af_unspec.py62# ``RESULT:<json>`` line so the harness can parse it deterministically.COMMENT
MEDIUMtests/perf/cubebench.sh465 # the section body runs) makes the reap robust: reading $! only after the blockCOMMENT
MEDIUMtests/perf/cubebench.sh501 # block the whole harness forever. No section backgrounds anything today,COMMENT
MEDIUMtests/perf/cubebench.sh618 # Prove the harness can actually operate BEFORE asking the operator toCOMMENT
MEDIUMtests/perf/cubebench.sh621 # operator has already typed "yes" to wipe a cluster the harness never runsCOMMENT
MEDIUMCubelet/api/services/cubehost/v1/hostimage.pb.go1069 // sandbox, and the runtime should leverage this to ensure correctCOMMENT
MEDIUMCubelet/pkg/cubelet/versioninfo/hostfacts.go86 // lifetime; re-collecting until a non-empty result lands makes it robust.COMMENT
MEDIUMagent/rustjail/src/mount.rs1396 // the runtime, so checking the effective cap set is more robust thanCOMMENT
MEDIUMdocs/package-lock.json4443 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMdev-env/internal/setup_selinux.sh53# most robust fix is to flip SELinux to permissive mode. We do it bothCOMMENT
LOWexamples/openai-agents-example/main.py18 python main.py --sandbox-only # just create & destroy sandboxSTRING
Deep Nesting45 hits · 40 pts
SeverityFileLineSnippetContext
LOWCubeS3lvol/test/tools/s3_prefix_rm.py147CODE
LOWtests/e2e/sdk_compat/conftest.py109CODE
LOWtests/e2e/sdk_compat/conftest.py243CODE
LOWtests/e2e/sdk_compat/framework/build_throttle.py186CODE
LOWtests/e2e/sdk_compat/framework/preflight.py50CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py377CODE
LOWtests/e2e/sdk_compat/cases/host-mount/test_boundary.py535CODE
LOW…dk_compat/cases/network/test_template_network_merge.py127CODE
LOW…ts/e2e/sdk_compat/cases/network/test_l7_custom_port.py213CODE
LOWtests/e2e/sdk_compat/cases/filesystem/test_extended.py40CODE
LOW…sdk_compat/cases/volume/test_snapshot_volume_mounts.py105CODE
LOW…sdk_compat/cases/volume/test_snapshot_volume_mounts.py178CODE
LOW…sdk_compat/cases/volume/test_snapshot_volume_mounts.py240CODE
LOWtests/e2e/sdk_compat/cases/volume/test_read_only.py35CODE
LOW…e2e/sdk_compat/cases/volume/test_snapshot_reference.py252CODE
LOW…e2e/sdk_compat/cases/volume/test_snapshot_reference.py337CODE
LOW…e2e/sdk_compat/cases/volume/test_snapshot_reference.py397CODE
LOW…e2e/sdk_compat/cases/volume/test_snapshot_reference.py464CODE
LOW…e2e/sdk_compat/cases/volume/test_snapshot_reference.py656CODE
LOWtests/e2e/sdk_compat/adapters/e2b_adapter.py85CODE
LOWtests/e2e/sdk_compat/adapters/e2b_adapter.py348CODE
LOWtests/e2e/sdk_compat/adapters/e2b_adapter.py497CODE
LOWtests/e2e/resource_metrics/lifecycle_metrics.py232CODE
LOWCubeAPI/examples/benchmark.py611CODE
LOWsdk/python/cubesandbox/_pty.py464CODE
LOWsdk/python/cubesandbox/_stream.py15CODE
LOWsdk/python/cubesandbox/sandbox.py883CODE
LOWsdk/python/cubesandbox/_models.py231CODE
LOWsdk/python/cubesandbox/_commands.py137CODE
LOW…env-inheritance/lightweight-code-interpreter/server.py354CODE
LOWexamples/pi-agent-integration/_pi_common.py38CODE
LOWexamples/pi-agent-integration/run_pi_warmup.py58CODE
LOW…raining/mini-swe-agent-patch/environments/extra/e2b.py195CODE
LOW…aining/mini-swe-agent-patch/run/benchmarks/swebench.py227CODE
LOWexamples/mini-rl-training/scripts/run-concurrent.py669CODE
LOWexamples/mini-rl-training/scripts/run-concurrent.py730CODE
LOWexamples/openai-agents-example/main.py399CODE
LOWexamples/openai-agents-example/main.py444CODE
LOWexamples/e2b-dev-sidecar/dev_sidecar.py180CODE
LOWexamples/e2b-dev-sidecar/dev_sidecar.py198CODE
LOW…ai-agents-code-interpreter/code_interpreter_demo_ci.py519CODE
LOW…ples/claude-code-integration/hooks/cubesandbox_exec.py434CODE
LOWexamples/ivshmem/ivshmem_benchmark.py155CODE
LOWexamples/opencode-plugin-sandbox/exec_backend.py214CODE
LOWexamples/volume/cos/volume_complex_concurrent_test.py126CODE
Self-Referential Comments11 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMCubeS3lvol/test/dataplane/run_guards_test.sh87# Create the lvstore directly, so the create path can be exercised withoutCOMMENT
MEDIUMCubeS3lvol/scripts/rcow_common.sh1253# Create the whole grid in one pass. Existing subsystems are left alone so thatCOMMENT
MEDIUMdeploy/pvm/common.sh3# This file is sourced by build-pvm-host-kernel-pkg.sh andCOMMENT
MEDIUMdeploy/one-click/terraform/tencentcloud/main.tf542# Create the database (via the jumpserver)COMMENT
MEDIUMdeploy/one-click/terraform/tencentcloud/lib-phases.sh21# This file is sourced by create.sh (and by the test). It must not run anythingCOMMENT
MEDIUM⚡deploy/one-click/terraform/tencentcloud/create.sh5495 # Create the MySQL instance (+ cube account/privilege + the applicationCOMMENT
MEDIUMdeploy/one-click/scripts/common/validation.sh5# This file is sourced by callers that already define die().COMMENT
MEDIUMdeploy/one-click/lib/guest-image.sh9# This file is a sourced library; do not set shell options here.COMMENT
MEDIUMdeploy/one-click/lib/common.sh3# This file is a sourced library. Do not set shell options here: entrypointCOMMENT
MEDIUMsdk/python/cubesandbox/_volume.py235 # Create a volume (name auto-generated when omitted) -> Volume instanceSTRING
MEDIUMscripts/new-migration.sh5# Create a new CubeMaster MySQL migration with a UTC timestamp version prefix.COMMENT
Magic Placeholder Names4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHdocs/guide/integrations/langchain.md370+ # export CUBE_API_KEY="<your-api-key>" # only for auth-enabled backendsCODE
HIGHdocs/zh/guide/integrations/langchain.md355+ # export CUBE_API_KEY="<your-api-key>" # 仅用于启用了鉴权的后端CODE
HIGHexamples/mini-rl-training/README.md48E2B_API_KEY="<your-api-key>"CODE
HIGHexamples/mini-rl-training/README_zh.md46E2B_API_KEY="<your-api-key>"CODE
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/e2e/sdk_compat/conftest.py677def _setup_log(message: str) -> None:CODE
LOWtests/e2e/sdk_compat/framework/volume.py20__all__ = [CODE
LOWtests/e2e/sdk_compat/adapters/__init__.py145__all__ = [CODE
LOWtests/e2e/sdk_compat/adapters/e2b_adapter.py482 def set_timeout(self, timeout: int) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/cubesandbox_adapter.py225 def set_timeout(self, timeout: int) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/cubesandbox_adapter.py280 def update_network(self, network: dict | None = None) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/base.py106 def set_timeout(self, timeout: int) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/base.py136 def update_network(self, network: dict | None = None) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/tracing_adapter.py231 def set_timeout(self, timeout: int) -> None:CODE
LOWtests/e2e/sdk_compat/adapters/tracing_adapter.py332 def update_network(self, network: dict | None = None) -> None:CODE
LOWsdk/python/cubesandbox/_filesystem.py11logger = logging.getLogger(__name__)CODE
LOWsdk/python/cubesandbox/__init__.py14__all__ = [CODE
LOWsdk/python/cubesandbox/_stream.py12logger = logging.getLogger(__name__)CODE
LOWsdk/python/cubesandbox/sandbox.py622 def set_timeout(self, timeout: int) -> None:CODE
LOWsdk/python/cubesandbox/sandbox.py640 def update_network(self, network: Dict[str, Any] | None = None) -> None:CODE
LOW⚡examples/mini-rl-training/scripts/run-concurrent.py499def _update_preds(path: Path, instance_id: str, model_name: str, patch: str) -> None:CODE
Redundant / Tautological Comments8 hits · 11 pts
SeverityFileLineSnippetContext
LOWdeploy/one-click/install.sh1014 # Check if the user has explicitly opted to skip this check.COMMENT
LOWdeploy/one-click/online-install.sh228 # Check if the closest existing parent directory is writable by root (detects read-only mounts)COMMENT
LOWdeploy/one-click/terraform/tencentcloud/create.sh2873 # Set TENCENTCLOUD_COMPUTE_INSTANCE_TYPE to choose explicitly.COMMENT
LOWdeploy/kubernetes/chart/values.yaml853 # Set nameservers to an explicit list to override: that turns follow-nodeCOMMENT
LOWagent/bootstrap.sh3# Check if the user is running this script as rootCOMMENT
LOW…visor/scripts/run_integration_tests_windows_aarch64.sh33# Check if the images are presentCOMMENT
LOW…rvisor/scripts/run_integration_tests_windows_x86_64.sh33# Check if the images are presentCOMMENT
LOWhypervisor/scripts/run_integration_tests_aarch64.sh220# Check if there is any error in the execution of `update_workloads`.COMMENT
Modern AI Meta-Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMCubeS3lvol/test/dataplane/run_export_test.sh4047# Expose all three, one RPC after another as an orchestration layer would.COMMENT
MEDIUMdeploy/kubernetes/chart/values.yaml333 # CubeMaster does NOT build locally; it only orchestrates (persists job rows,COMMENT
MEDIUMdocs/guide/usecases/trpc-agent-go.md17[trpc-agent-go](https://github.com/trpc-group/trpc-agent-go) is Tencent's open-source Go framework for building productiCODE
MEDIUMdocs/changelog/v0.4.0.md56- **Artifact management** (#506): A new job runner orchestrates the full pipeline (image export → rootfs artifact build CODE
MEDIUMdocs/changelog/v0.3.0.md54- **Docker Compose container lifecycle** (#386): Container lifecycle management migrated to Docker Compose, simplifying CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALCubelet/api/services/cubehost/v1/hostimage.pb.go1721 "\x19ReverseStreamForwardImage\x124.cubelet.services.cubebox.hostimage.v1.ClientMessage\x1a4.cubelet.services.cubebox.hCODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWweb/src/locales/zh/command.json3 "placeholder": "搜索或输入命令…",CODE
LOWweb/src/locales/en/command.json3 "placeholder": "Search or type a command…",CODE
LOWweb/src/components/CommandPalette.tsx45 placeholder={t('placeholder')}CODE
LOWweb/src/i18n/index.ts35 'placeholder',CODE
LOWweb/src/pages/Placeholder.tsx10type PlaceholderKey = ParseKeys<'placeholder'>;CODE
LOWweb/src/pages/Placeholder.tsx21 const { t } = useTranslation('placeholder');CODE
LOWCubeAPI/src/services/sandboxes.rs2336 "user@example.com",CODE
LOWCubeMaster/pkg/service/sandbox/util_test.go106 "user@example.com",CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHhypervisor/virtio-devices/src/vsock/csm/connection.rs57// receiving peer's behavior is undefined. In this implementation, we forcefully terminateCOMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWhypervisor/vmm/src/vm.rs1303 // Don't forget to set the terminal in canonical modeCOMMENT
LOWhypervisor/virtiofsd/src/passthrough/mod.rs1424 // a new option here, don't forget to add it there, too, and handle it both inCOMMENT
LOWhypervisor/src/lib.rs354 // Don't forget to set the terminal in canonical modeCOMMENT
LOWhypervisor/src/main.rs770 // Don't forget to set the terminal in canonical modeCOMMENT
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWCubelet/scripts/cubebox_appsnapshot.py106CODE
LOWsdk/python/cubesandbox/_template.py210CODE
LOWsdk/python/cubesandbox/sandbox.py236CODE
LOWsdk/python/cubesandbox/_models.py63CODE
LOW…aining/mini-swe-agent-patch/run/benchmarks/swebench.py227CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWweb/public/mockServiceWorker.js124async function handleRequest(event, requestId, requestInterceptedAt) {CODE
LOWsdk/python/cubesandbox/_transport.py25 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE