AI Slop Code RIsk Monitor

kungfu-systems/kungfu

Your agents don’t hand off the work. Kungfu keeps the same Work moving across Codex, Claude, OpenCode, and your own execution surface.

6.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for kungfu-systems/kungfu, a C++ project with 4,527 GitHub stars. SynthScan examined 835,631 lines of code across 4897 source files, recording 5232 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 6.4 (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.

6.4
Adjusted Signal
6.4
Raw Pattern Score
100%
Time Factor
2026-10-03
Last Push
4.5K
Stars
C++
Language
835.6K
Lines of Code
4.9K
Files
5.2K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 17.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 9.5/100 · LOW

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

Agent Over-Engineering Ratio 14.5/100 · LOW

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

PR Review Velocity Impact 29.5/100 · MEDIUM

Which changes need focused human review? 5232 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 91MEDIUM 73LOW 5068

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 5232 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1977 hits · 1992 pts
SeverityFileLineSnippetContext
LOWdeveloper/sdk/src/sdk-shared.js550function isProductAssemblyManifest(pkg) {CODE
LOWdeveloper/sdk/src/sdk-shared.js772function findRepoRootWithExtensions(startDir) {CODE
LOWdeveloper/sdk/src/sdk-shared.js802function resolveReferenceExtensionsRoot(cwd) {CODE
LOWdeveloper/sdk/src/sdk-shared.js858function assembleProductExtensions(CODE
LOWdeveloper/sdk/src/sdk-kfd.js163function resolveKfdUpstreamAggregate() {CODE
LOWdeveloper/sdk/src/sdk-kfd.js452function resolveKfdAgentRuntimeManifest() {CODE
LOWdeveloper/sdk/src/sdk-kfd.js486function buildKfdAgentRuntimeStatus() {CODE
LOWdeveloper/sdk/src/sdk-kfd.js987function kfdCheckSupportMatrixFacts() {CODE
LOWdeveloper/sdk/src/sdk-contract.js243function resolveContractRegistryPath(repoRoot) {CODE
LOWdeveloper/sdk/src/sdk-contract.js482function contractKfdProjectionRows(entry) {CODE
LOWdeveloper/sdk/src/sdk-contract.js869function buildContractWorldWitness(repoRoot) {CODE
LOWframework/core/conanfile.py31def _candidate_timeline_attempt():CODE
LOWframework/core/conanfile.py51def _qualified_core_host_identity():CODE
LOWframework/core/conanfile.py71def _candidate_timeline_stage(stage, phase, runtime, target=None):CODE
LOWframework/core/conanfile.py156def _profile_dependency_roots(profile):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py10def test_assignment_identity_options_are_reusable_across_commands(command):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py19def test_agent_activity_history_projection_keeps_process_success_outside_work():CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py46def test_assignment_session_invoker_bounds_provider_writes_beyond_read_probes():CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py70def test_deterministic_mock_session_invoker_has_no_clock_cutoff():CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py101def test_next_work_selects_the_only_captured_assignment(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py112def test_next_work_requires_explicit_selection_when_ambiguous(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py127def test_explicit_work_selector_can_start_a_fresh_attempt_while_work_executes(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py143def test_explicit_settled_work_reaches_the_fail_closed_start_plan(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py168def test_work_start_phase_plan_only_uses_legal_forward_transitions(phase, mode, stages):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py185def test_work_start_phase_plan_rejects_settled_or_review_work(phase):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py193def test_codex_work_start_plan_discloses_exact_invocation_project_trust(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py216def test_codex_project_trust_is_exact_explicit_and_invocation_scoped(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py230def test_managed_work_start_builds_a_strict_assignment_work_ref():CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py253def test_resumed_authority_writes_remain_visible_when_run_gate_fails(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py376def test_task_capture_creates_a_bounded_assignment_not_runtime(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py388def test_agent_route_completion_persists_shared_onboarding_state(tmp_path):CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py420def test_run_from_a_fresh_directory_converges_on_agent_first_onboarding(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py460def test_native_launch_uses_the_selected_current_project_outside_it(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py516def test_native_launch_prefers_the_working_directory_project_to_global_current(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py559def test_successful_managed_work_start_completes_agent_onboarding(CODE
LOW…ork/core/tests/python/_run_product_path_start_cases.py642def test_managed_provider_plan_uses_selected_current_project_outside_it(CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py150def test_native_profile_bootstrap_accepts_python_revision_zero(tmp_path):CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py164def test_native_profile_authority_bundle_restores_clean_home_exactly(tmp_path):CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py217def test_native_profile_authority_import_preflights_all_operations_before_writing(CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py244def test_native_profile_backend_switch_and_rollback_preserve_five_role_identity(CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py291def test_native_profile_retains_authority_freshness_direction_and_causality(tmp_path):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py63def test_frame_header_exposes_readonly_buffer(captured_run):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py77def test_rewind_bundle_decode_matches_generated(captured_run):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py84def test_rewind_bundle_decode_field_by_field(captured_run):CODE
LOW…ework/core/tests/python/test_agent_command_contract.py60def test_run_agent_process_streams_output_before_return(tmp_path):CODE
LOW…ework/core/tests/python/test_agent_command_contract.py85def test_run_agent_continuation_rejects_transcript_fields_and_root_drift():CODE
LOW…ework/core/tests/python/test_agent_command_contract.py115def _assert_work_control_command_contract(work_control, command_catalog, api_registry):CODE
LOW…ework/core/tests/python/test_agent_command_contract.py128def test_work_control_commands_match_the_runtime_payload_contract():CODE
LOW…ework/core/tests/python/test_agent_command_contract.py160def test_agent_session_cli_forwards_the_same_self_describing_action(CODE
LOW…ework/core/tests/python/test_agent_command_contract.py216def test_work_console_registry_accepts_capsule_backend():CODE
LOW…tests/python/_agent_profile_sdk_qualification_cases.py83def test_system_profile_release_receipt_is_exact_root_and_shared_with_status(CODE
LOW…tests/python/_agent_profile_sdk_qualification_cases.py277def test_missing_member_fails_with_stable_decision_card(tmp_path):CODE
LOW…tests/python/_agent_profile_sdk_qualification_cases.py293def test_member_package_symlink_fails_closed(tmp_path):CODE
LOW…tests/python/_agent_profile_sdk_qualification_cases.py310def test_member_package_ignores_dependency_directory_symlinks(tmp_path):CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py10def test_fresh_recovery_separates_retained_authority_from_target_profile(CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py63def test_resume_prepare_reconciles_the_explicit_recovery_source(tmp_path, monkeypatch):CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py123def test_fresh_recovery_prepare_does_not_require_newer_profile_work_hooks(CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py179def test_fresh_recovery_apply_uses_only_planned_authority_ports(tmp_path, monkeypatch):CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py268def test_fresh_recovery_failure_keeps_public_executable_next_actions(CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py301def test_fresh_recovery_apply_preserves_complete_lifecycle_state():CODE
1917 more matches not shown…
Unused Imports1961 hits · 1644 pts
SeverityFileLineSnippetContext
LOW…ork/core/tests/python/_run_product_path_start_cases.py5CODE
LOW…rk/core/tests/python/test_agent_work_profile_native.py3CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py6CODE
LOW…tests/python/_agent_profile_sdk_qualification_cases.py11CODE
LOW…tests/python/_work_authority_surface_recovery_cases.py3CODE
LOWframework/core/tests/python/test_episode_control.py3CODE
LOW…/core/tests/python/_agent_profile_sdk_runtime_cases.py12CODE
LOW…ework/core/tests/python/test_agent_console_contract.py5CODE
LOW…ework/core/tests/python/test_agent_console_contract.py6CODE
LOW…ework/core/tests/python/test_agent_console_contract.py7CODE
LOW…ework/core/tests/python/test_agent_console_contract.py8CODE
LOW…mework/core/tests/python/test_durability_capability.py8CODE
LOW…ework/core/tests/python/test_storage_backend_switch.py3CODE
LOW…ework/core/tests/python/test_storage_backend_switch.py17CODE
LOWframework/core/tests/python/test_runtime_upgrade.py3CODE
LOW…mework/core/tests/python/test_profile_lifecycle_cli.py7CODE
LOW…work/core/tests/python/test_product_release_history.py3CODE
LOW…work/core/tests/python/test_product_release_history.py10CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py3CODE
LOWframework/core/tests/python/test_profile_composition.py15CODE
LOWframework/core/tests/python/test_profile_composition.py16CODE
LOWframework/core/tests/python/test_profile_composition.py17CODE
LOWframework/core/tests/python/test_profile_composition.py18CODE
LOWframework/core/tests/python/test_episode_admission.py3CODE
LOWframework/core/tests/python/test_episode_admission.py12CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py3CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py5CODE
LOW…/core/tests/python/_dogfood_profile_lifecycle_cases.py5CODE
LOWframework/core/tests/python/test_query_cli.py7CODE
LOW…ework/core/tests/python/_fact_kernel_recovery_cases.py4CODE
1901 more matches not shown…
Over-Commented Block900 hits · 900 pts
SeverityFileLineSnippetContext
LOWcrates/Cargo.toml1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/host-spike/Cargo.toml21# The embedding FFI seam now lives in the shared kungfu-embedding crate (RFCCOMMENT
LOWcrates/host-spike/build.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/host-spike/shim/host_shim.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/host-spike/src/main.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/Cargo.toml1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/promote.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/self_update.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/dispatch.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/doctor.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/msvc.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/registrar.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/registrar.rs21// the declaration back, resolves the artifact for the host platform, verifiesCOMMENT
LOWcrates/shifu/src/registrar.rs61/// pinned Buildchain binary before a declared distribution task. Normally itCOMMENT
LOWcrates/shifu/src/registrar.rs281 platform_slice_root: String,COMMENT
LOWcrates/shifu/src/main.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/main.rs361 }COMMENT
LOWcrates/shifu/src/main.rs421 cmd.raw_arg(line);COMMENT
LOWcrates/shifu/src/main.rs461 .map(Path::to_path_buf)COMMENT
LOWcrates/kungfu-embedding/Cargo.toml1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu-core/src/lib.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu-core/src/bootstrap.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu-core/src/bootstrap.rs21// 3. bootstrap: download the pinned prebuilt release binary into the cacheCOMMENT
LOWcrates/shifu-core/src/probe.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/Cargo.toml1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/build.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/pins.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/envs.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/variant.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/variant.rs21// resolution), so it is not a mechanical "be python" the trunk can own.COMMENT
LOWcrates/trunk/src/doctor.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/fsck.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/help.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/trunk/src/help.rs21//COMMENT
LOWcrates/trunk/src/launch.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/pyproject.toml41 # by default so untyped modules do not fail; a module opts into real checkingCOMMENT
LOWframework/core/pyproject.toml141# ~700 errors). But function *bodies* are checked: an unannotated def used to beCOMMENT
LOWframework/core/pyproject.toml181# a module object, and `sys._framework` / `sys._base_executable` / `sys._home`,COMMENT
LOWframework/core/pyproject.toml201disable_error_code = ["override", "attr-defined"]COMMENT
LOWframework/core/conanfile.py681 # Conan itself runs under Shifu's pinned `uv run --frozen` interpreter.COMMENT
LOWframework/core/slices/content-store/probe.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/embedding/CMakeLists.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/embedding/main.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/view-encapsulation/CMakeLists.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/view-encapsulation/probe.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/common/sha256.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/schema-registry/CMakeLists.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/schema-registry/producer.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/schema-registry/decoder.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/fact-ledger/CMakeLists.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/fact-ledger/action_recorder.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/fact-ledger/export.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/fact-ledger/host.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/fact-ledger/host.cpp21#include <kungfu/yijinjing/time.h>COMMENT
LOWframework/core/slices/libwasm-shared-membrane/probe.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/slices/libwasm-shared-membrane/host.cpp1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/tests/shell-exit-code.test.js1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/tests/bench/dispatch_watcher_bench.js1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/tests/bench/dispatch_load.py1# SPDX-License-Identifier: Apache-2.0COMMENT
LOW…ork/core/tests/python/test_episode_bundle_roundtrip.py1# SPDX-License-Identifier: Apache-2.0COMMENT
840 more matches not shown…
Empty Error Handlers66 hits · 330 pts
SeverityFileLineSnippetContext
HIGHframework/core/conanfile.py523except Exception:CODE
HIGH…ore/tests/python/test_live_peer_continuity_campaign.py67except PermissionError:CODE
HIGH…amework/core/tests/python/test_kfx_async_capability.py143except OSError:CODE
HIGH…alification/python-kfx-asyncio-performance/workload.py418except OSError:CODE
HIGH…/qualification/live-peer-continuity/native_campaign.py518except peer_lifecycle.PeerLifecycleError:CODE
HIGH…alification/runtime-activation/performance_workload.py189except ImportError:CODE
HIGHframework/core/.gyp/gen_kungfubuildinfo.py50except Exception:CODE
HIGHframework/core/src/python/kungfu/release_channel.py559except FileNotFoundError:CODE
HIGH…work/core/src/python/kungfu/product_release_history.py105except FileNotFoundError:CODE
HIGHframework/core/src/python/kungfu/runtime_processes.py42except (psutil.Error, OSError, ValueError):CODE
HIGHframework/core/src/python/kungfu/runtime_processes.py55except (psutil.Error, OSError, ValueError):CODE
HIGHframework/core/src/python/kungfu/runtime_state.py134except OSError:CODE
HIGHframework/core/src/python/kungfu/runtime_state.py595except ValueError:CODE
HIGHframework/core/src/python/kungfu/runtime_state.py126except FileNotFoundError:CODE
HIGH…k/core/src/python/kungfu/distribution_update_policy.py333except FileNotFoundError:CODE
HIGHframework/core/src/python/kungfu/kfx_host.py395except asyncio.CancelledError:CODE
HIGH…ork/core/src/python/kungfu/assignment_orchestration.py196except FileNotFoundError:CODE
HIGHframework/core/src/python/kungfu/coordination/locks.py185except FileNotFoundError:CODE
HIGHframework/core/src/python/kungfu/skill/catalog.py628except OSError:CODE
HIGH…work/core/src/python/kungfu/skill/_registry/support.py319except OSError:CODE
HIGH…work/core/src/python/kungfu/_runtime_upgrade/common.py159except FileNotFoundError:CODE
HIGH…amework/core/src/python/kungfu/_peer_lifecycle/host.py203except FileNotFoundError:CODE
HIGH…amework/core/src/python/kungfu/_peer_lifecycle/host.py207except FileNotFoundError:CODE
HIGH…amework/core/src/python/kungfu/_peer_lifecycle/host.py243except subprocess.TimeoutExpired:CODE
HIGHframework/core/src/python/kungfu/projects/__init__.py194except OSError:CODE
HIGHframework/core/src/python/kungfu/projects/__init__.py209except OSError:CODE
HIGH…re/src/python/kungfu/assignment_provenance/__init__.py85except (OSError, json.JSONDecodeError):CODE
HIGHframework/core/src/python/kungfu/capability/guest.py91except (OSError, ValueError):CODE
HIGHframework/core/src/python/kungfu/runtime/time.py50except ValueError:CODE
HIGHframework/core/src/python/kungfu/rewind/proxy.py61except (ValueError, AttributeError):CODE
HIGHframework/core/src/python/kungfu/rewind/proxy.py115except ValueError:CODE
HIGH…rk/core/src/python/kungfu/rewind/hook/sitecustomize.py12except Exception: # noqa: BLE001 — never break the user's interpreterCODE
HIGH…rk/core/src/python/kungfu/rewind/hook/sitecustomize.py35except Exception: # noqa: BLE001CODE
HIGH…rk/core/src/python/kungfu/rewind/hook/rewind_client.py287except Exception: # noqa: BLE001 — adapters must never break importsCODE
HIGH…rk/core/src/python/kungfu/rewind/hook/rewind_client.py56except OSError:CODE
HIGH…mework/core/src/python/kungfu/agent/session_surface.py210except (OSError, ValueError):CODE
HIGH…mework/core/src/python/kungfu/agent/session_surface.py327except WorkspaceTargetRequired:CODE
HIGH…mework/core/src/python/kungfu/agent/session_surface.py408except OSError:CODE
HIGH…mework/core/src/python/kungfu/agent/session_surface.py121except OSError:CODE
HIGH…ork/core/src/python/kungfu/agent/provider_bootstrap.py544except OSError:CODE
HIGHframework/core/src/python/kungfu/agent/native_launch.py152except WorkspaceTargetRequired:CODE
HIGHframework/core/src/python/kungfu/agent/native_launch.py161except (OSError, ValueError):CODE
HIGHframework/core/src/python/kungfu/agent/native_launch.py186except (OSError, ValueError):CODE
HIGH…ork/core/src/python/kungfu/agent/_run_agent/runtime.py797except BrokenPipeError:CODE
HIGH…ork/core/src/python/kungfu/agent/_run_agent/runtime.py802except BrokenPipeError:CODE
HIGHframework/core/src/python/kungfu/cli/site.py26except OSError:CODE
HIGHframework/core/src/python/kungfu/cli/site.py42except (AttributeError, OSError, TypeError):CODE
HIGHframework/core/src/python/kungfu/cli/site.py46except (AttributeError, OSError, TypeError):CODE
HIGHframework/core/src/python/kungfu/cli/site.py382except OSError:CODE
HIGHframework/core/src/python/kungfu/cli/site.py398except OSError:CODE
HIGHframework/core/src/python/kungfu/cli/site.py404except OSError:CODE
HIGH…rk/core/src/python/kungfu/cli/bridging/pdm/__init__.py92except Exception:CODE
HIGH…ework/core/src/python/kungfu/cli/commands/workspace.py550except KeyboardInterrupt:CODE
HIGH…mework/core/src/python/kungfu/_exit_bundle/importer.py173except (RuntimeError, ValueError):CODE
HIGH…ore/src/python/kungfu/_distribution_update/download.py254except FileNotFoundError:CODE
HIGH…core/src/python/kungfu/_profile_composition/support.py112except (OSError, json.JSONDecodeError, AttributeError):CODE
HIGH…core/src/python/kungfu/_profile_composition/support.py134except (KeyError, profile_sdk.ProfileSdkError):CODE
HIGH…/python/kungfu/assignment_runtime/profile_lifecycle.py91except (KeyError, profile_sdk.ProfileSdkError):CODE
HIGH…work/core/src/python/kungfu/_runtime_service/engine.py193except Exception: # noqa: BLE001 - lock logic must never break servingCODE
HIGH…work/core/src/python/kungfu/_runtime_service/common.py161except (psutil.Error, OSError, ValueError, AttributeError):CODE
6 more matches not shown…
Deep Nesting118 hits · 114 pts
SeverityFileLineSnippetContext
LOW…ework/core/tests/python/test_storage_backend_switch.py149CODE
LOW…ework/core/tests/python/test_storage_backend_switch.py160CODE
LOWframework/core/tests/python/test_release_provenance.py186CODE
LOWframework/core/tests/python/test_release_provenance.py333CODE
LOW…ts/python/_agent_console_contract_interactive_cases.py692CODE
LOWframework/core/tests/python/test_exit_verifier.py194CODE
LOW…k/core/tests/python/test_agent_native_first_run_pty.py13CODE
LOW…amework/core/tests/python/test_cli_surface_contract.py292CODE
LOW…re/tests/qualification/fact_kernel_dogfood/workload.py532CODE
LOW…alification/python-kfx-asyncio-performance/workload.py341CODE
LOW…alification/python-kfx-asyncio-performance/workload.py481CODE
LOW…alification/python-kfx-asyncio-performance/workload.py352CODE
LOW…/qualification/live-peer-continuity/native_campaign.py85CODE
LOW…/qualification/live-peer-continuity/native_campaign.py274CODE
LOW…qualification/fact-kernel-fold-performance/workload.py66CODE
LOWframework/core/src/python/kungfu/assignment_evidence.py60CODE
LOWframework/core/src/python/kungfu/release_channel.py219CODE
LOWframework/core/src/python/kungfu/profile_sdk_kfd3.py690CODE
LOWframework/core/src/python/kungfu/dogfood.py88CODE
LOWframework/core/src/python/kungfu/distribution_update.py286CODE
LOW…ore/src/python/kungfu/workspace_federation_observer.py240CODE
LOWframework/core/src/python/kungfu/diagnostics.py343CODE
LOWframework/core/src/python/kungfu/profile_composition.py115CODE
LOWframework/core/src/python/kungfu/profile_sdk_support.py440CODE
LOW…work/core/src/python/kungfu/product_release_history.py149CODE
LOW…work/core/src/python/kungfu/product_release_history.py431CODE
LOW…work/core/src/python/kungfu/product_release_history.py658CODE
LOW…work/core/src/python/kungfu/product_release_history.py736CODE
LOWframework/core/src/python/kungfu/exit_verifier.py191CODE
LOW…amework/core/src/python/kungfu/workspace_federation.py97CODE
LOW…ework/core/src/python/kungfu/project_cut_read_model.py19CODE
LOWframework/core/src/python/kungfu/release_verifier.py335CODE
LOWframework/core/src/python/kungfu/agent_work_lab.py856CODE
LOWframework/core/src/python/kungfu/contract.py23CODE
LOWframework/core/src/python/kungfu/contract.py84CODE
LOW…e/src/python/kungfu/workspace_federation_projection.py57CODE
LOWframework/core/src/python/kungfu/runtime_broker.py307CODE
LOWframework/core/src/python/kungfu/workspace_guidance.py437CODE
LOWframework/core/src/python/kungfu/coordination/locks.py93CODE
LOWframework/core/src/python/kungfu/coordination/locks.py199CODE
LOWframework/core/src/python/kungfu/skill/audit.py445CODE
LOWframework/core/src/python/kungfu/skill/audit.py482CODE
LOWframework/core/src/python/kungfu/skill/registry.py172CODE
LOWframework/core/src/python/kungfu/skill/registry.py497CODE
LOWframework/core/src/python/kungfu/skill/registry.py589CODE
LOW…work/core/src/python/kungfu/skill/_registry/support.py402CODE
LOW…core/src/python/kungfu/_runtime_upgrade/release_cut.py803CODE
LOW…/src/python/kungfu/_runtime_upgrade/image_lifecycle.py263CODE
LOW…/src/python/kungfu/_runtime_upgrade/image_lifecycle.py398CODE
LOW…amework/core/src/python/kungfu/_peer_lifecycle/host.py345CODE
LOW…mework/core/src/python/kungfu/_peer_lifecycle/state.py372CODE
LOWframework/core/src/python/kungfu/capability/guest.py71CODE
LOWframework/core/src/python/kungfu/rewind/managed_run.py99CODE
LOWframework/core/src/python/kungfu/rewind/ingest.py85CODE
LOWframework/core/src/python/kungfu/rewind/export.py30CODE
LOWframework/core/src/python/kungfu/rewind/replay.py174CODE
LOWframework/core/src/python/kungfu/rewind/replay.py193CODE
LOWframework/core/src/python/kungfu/rewind/adapters.py149CODE
LOWframework/core/src/python/kungfu/rewind/adapters.py217CODE
LOW…ore/src/python/kungfu/agent/agent_hub_qualification.py94CODE
58 more matches not shown…
Cross-File Repetition20 hits · 100 pts
SeverityFileLineSnippetContext
HIGHframework/core/src/python/kungfu/rewind/fb/RunBegin.py0this method is deprecated. please switch to getrootas.STRING
HIGH…k/core/src/python/kungfu/rewind/fb/ApprovalDecision.py0this method is deprecated. please switch to getrootas.STRING
HIGH…mework/core/src/python/kungfu/rewind/fb/RetryMarker.py0this method is deprecated. please switch to getrootas.STRING
HIGHframework/core/src/python/kungfu/rewind/fb/ToolCall.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ework/core/src/python/kungfu/rewind/fb/CostSnapshot.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ework/core/src/python/kungfu/rewind/fb/ModelRequest.py0this method is deprecated. please switch to getrootas.STRING
HIGH…mework/core/src/python/kungfu/rewind/fb/RunProgress.py0this method is deprecated. please switch to getrootas.STRING
HIGHframework/core/src/python/kungfu/rewind/fb/RunEnd.py0this method is deprecated. please switch to getrootas.STRING
HIGH…amework/core/src/python/kungfu/rewind/fb/ToolResult.py0this method is deprecated. please switch to getrootas.STRING
HIGH…work/core/src/python/kungfu/rewind/fb/ModelResponse.py0this method is deprecated. please switch to getrootas.STRING
HIGH…work/core/src/python/kungfu/rewind/reflection/Field.py0this method is deprecated. please switch to getrootas.STRING
HIGH…rk/core/src/python/kungfu/rewind/reflection/Service.py0this method is deprecated. please switch to getrootas.STRING
HIGH…k/core/src/python/kungfu/rewind/reflection/KeyValue.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ork/core/src/python/kungfu/rewind/reflection/Object.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ework/core/src/python/kungfu/rewind/reflection/Type.py0this method is deprecated. please switch to getrootas.STRING
HIGH…core/src/python/kungfu/rewind/reflection/SchemaFile.py0this method is deprecated. please switch to getrootas.STRING
HIGH…rk/core/src/python/kungfu/rewind/reflection/RPCCall.py0this method is deprecated. please switch to getrootas.STRING
HIGH…rk/core/src/python/kungfu/rewind/reflection/EnumVal.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ework/core/src/python/kungfu/rewind/reflection/Enum.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ork/core/src/python/kungfu/rewind/reflection/Schema.py0this method is deprecated. please switch to getrootas.STRING
Decorative Section Separators26 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMdeveloper/sdk/src/sdk-shared.js402// ── product commands ───────────────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk-shared.js1297// ── KFD-1 contract prototype ───────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk-contract.js1267// ── kfx view extension build ──────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk-contract.js1300// ── kfx C++ extension build ────────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk-contract.js1465// ── kfx Python AOT extension build ─────────────────────────────────────────COMMENT
MEDIUMframework/core/pyproject.toml3# ============================================================================COMMENT
MEDIUMframework/core/pyproject.toml7# ============================================================================COMMENT
MEDIUMframework/core/slices/embedding/main.cpp56 // ── write side ────────────────────────────────────────────────────COMMENT
MEDIUMframework/core/slices/schema-registry/producer.cpp103 // ── bundle format pieces ──────────────────────────────────────────COMMENT
MEDIUMframework/core/slices/schema-registry/decoder.cpp90 // ── reopen the journal independently and decode by binding ────────COMMENT
MEDIUMframework/core/fuzz/CMakeLists.txt127# ── Registered fuzz targets ─────────────────────────────────────────COMMENT
MEDIUM…work/core/src/python/kungfu/rewind/hook/rewind_hook.js130 // ── post-require adapters (mini require-in-the-middle) ──────────COMMENT
MEDIUM…rk/core/src/python/kungfu/rewind/hook/rewind_client.py122# ── kfx action-envelope events ──────────────────────────────────────COMMENT
MEDIUM…rk/core/src/python/kungfu/rewind/hook/rewind_client.py199# ── post-import adapters ────────────────────────────────────────────COMMENT
MEDIUMframework/kfx/src/index.ts132// ── capability surface ────────────────────────────────────────────────────COMMENT
MEDIUMframework/kfx/src/index.ts162// ── manifest data (`kungfu.kfx.json`) ─────────────────────────────────────COMMENT
MEDIUMframework/kfx/src/index.ts342// ── load plan: host-agnostic discovery + decision (KF-ADR-019f86da-4f90-7afa-a1e1-0510f00916be) ──────────────COMMENT
MEDIUMframework/kfx/src/index.ts1309// ── runtime contract (what the shell hands a mounted view) ────────────────COMMENT
MEDIUMframework/kfx/src/index.ts1540// ── UI tokens (dark, dense, monospace — no component library) ─────────────COMMENT
MEDIUMframework/gui/src/main/sandbox-host.ts53// ── electron glue ───────────────────────────────────────────────────────────COMMENT
MEDIUMframework/gui/src/main/terminal-host.ts108// ── pure relay core ─────────────────────────────────────────────────────────COMMENT
MEDIUMframework/gui/src/main/terminal-host.ts176// ── electron glue ───────────────────────────────────────────────────────────COMMENT
MEDIUMframework/api/src/capability/sandbox.ts26// ── host (trusted) ─────────────────────────────────────────────────────────COMMENT
MEDIUMframework/api/src/capability/sandbox.ts90// ── guest (sandboxed) ──────────────────────────────────────────────────────COMMENT
MEDIUMframework/api/src/capability/kungfu-guest.ts32// ── trusted tier: in-process async surface, zero-copy by reference ───────────COMMENT
MEDIUMframework/api/src/capability/kungfu-guest.ts84// ── default tier: OS-sandboxed child served over the stdio relay ─────────────COMMENT
Excessive Try-Catch Wrapping54 hits · 58 pts
SeverityFileLineSnippetContext
LOWframework/core/conanfile.py523 except Exception:CODE
LOW…ework/core/tests/python/windows_continuity_sentinel.py287 except Exception as error:CODE
LOW…/core/tests/qualification/episode/semantic_workload.py486 except Exception as error:CODE
LOW…/core/tests/qualification/episode/semantic_workload.py505 except Exception as error:CODE
LOW…k/core/tests/qualification/episode/episode_workload.py83 except Exception:CODE
LOW…k/core/tests/qualification/episode/episode_workload.py210 except Exception as error:CODE
LOW…k/core/tests/qualification/episode/episode_workload.py661 except Exception as error:CODE
MEDIUM…k/core/tests/qualification/episode/episode_workload.py70def _process_resources() -> tuple[int, int | None]:CODE
LOW…/qualification/live-peer-continuity/native_campaign.py511 except Exception as failure: # noqa: BLE001CODE
LOWframework/core/.gyp/gen_kungfubuildinfo.py50 except Exception:CODE
LOWframework/core/src/python/kungfu/recovery.py490 except Exception as error: # authority errors must remain visibleCODE
LOWframework/core/src/python/kungfu/runtime_leases.py409 except Exception:CODE
MEDIUMframework/core/src/python/kungfu/runtime_leases.py48def _read_state(self) -> dict[str, Any]:CODE
LOW…work/core/src/python/kungfu/agent_work_lab_template.py311 except Exception:CODE
LOWframework/core/src/python/kungfu/diagnostics.py467 except Exception as error:CODE
LOWframework/core/src/python/kungfu/profile_sdk.py740 except Exception:CODE
LOWframework/core/src/python/kungfu/durability.py436 except Exception as error: # noqa: BLE001 - retained for inspectionCODE
LOWframework/core/src/python/kungfu/agent_work_lab.py489 except Exception as error: # pragma: no cover - host callback failureCODE
LOWframework/core/src/python/kungfu/skill/catalog.py623 except Exception:STRING
LOW…k/core/src/python/kungfu/project_tour/orchestration.py154 except Exception as error:CODE
LOWframework/core/src/python/kungfu/rewind/managed_run.py190 except Exception as exc:CODE
LOWframework/core/src/python/kungfu/rewind/managed_run.py252 except Exception as exc: # a malformed provider payload must not crash the runCODE
LOWframework/core/src/python/kungfu/rewind/proxy.py99 except Exception as e: # noqa: BLE001 — the child must get an answerCODE
LOW…rk/core/src/python/kungfu/rewind/hook/sitecustomize.py12except Exception: # noqa: BLE001 — never break the user's interpreterCODE
LOW…rk/core/src/python/kungfu/rewind/hook/sitecustomize.py35except Exception: # noqa: BLE001CODE
LOW…rk/core/src/python/kungfu/rewind/hook/rewind_client.py170 except Exception as e:CODE
LOW…rk/core/src/python/kungfu/rewind/hook/rewind_client.py271 except Exception: # noqa: BLE001 — a broken kfx adapter must not break the runCODE
LOW…rk/core/src/python/kungfu/rewind/hook/rewind_client.py287 except Exception: # noqa: BLE001 — adapters must never break importsCODE
LOW…amework/core/src/python/kungfu/agent/domain_profile.py44 except Exception as error: # noqa: BLE001 - preserve ValueError surfaceCODE
LOWframework/core/src/python/kungfu/agent/action_loop.py204 except Exception as error: # public adapter returns uncertainty, not false successCODE
LOWframework/core/src/python/kungfu/agent/action_loop.py957 except Exception as error:CODE
LOWframework/core/src/python/kungfu/agent/native_launch.py901 except Exception as error: # pragma: no coverCODE
LOWframework/core/src/python/kungfu/agent/native_launch.py940 except Exception as error: # pragma: no cover - defensive lifecycle pathCODE
LOW…ework/core/src/python/kungfu/agent/native_authority.py141 except Exception as error: # noqa: BLE001 - normalize missing bindingsCODE
MEDIUM…ework/core/src/python/kungfu/agent/native_authority.py138def require_action_runtime() -> Any:CODE
LOW…/core/src/python/kungfu/agent/_work_profile/session.py358 except Exception as error: # noqa: BLE001 - preserve ValueError surfaceCODE
LOW…ork/core/src/python/kungfu/agent/_run_agent/runtime.py776 except Exception as error: # pragma: no cover - host callback failureCODE
LOWframework/core/src/python/kungfu/cli/site.py110 except Exception:CODE
LOWframework/core/src/python/kungfu/cli/site.py477 except Exception as err:CODE
LOWframework/core/src/python/kungfu/cli/site.py497 except Exception as err:CODE
LOW…rk/core/src/python/kungfu/cli/bridging/pdm/__init__.py92 except Exception:CODE
MEDIUM…rk/core/src/python/kungfu/cli/bridging/pdm/__init__.py87def __init__(self):CODE
LOWframework/core/src/python/kungfu/cli/commands/lock.py36 except Exception as exc: # noqa: BLE001 — audit is additive, never load-bearingCODE
LOWframework/core/src/python/kungfu/cli/commands/lock.py44 except Exception as exc: # noqa: BLE001CODE
MEDIUMframework/core/src/python/kungfu/cli/commands/lock.py41def _safe_audit(fn):CODE
LOW…ore/src/python/kungfu/storage/fact_kernel_integrity.py191 except Exception as error:CODE
LOW…rk/core/src/python/kungfu/project_template/__init__.py609 except Exception:CODE
LOW…/core/src/python/kungfu/assignment_runtime/__init__.py193 except Exception as cause:CODE
LOW…/core/src/python/kungfu/assignment_runtime/__init__.py222 except Exception as cause:CODE
LOW…work/core/src/python/kungfu/_runtime_service/engine.py193 except Exception: # noqa: BLE001 - lock logic must never break servingCODE
LOW…work/core/src/python/kungfu/_runtime_service/engine.py213 except Exception: # noqa: BLE001CODE
LOWframework/core/src/python/kungfu/remote/store.py257 except Exception as exc: # noqa: BLE001 - error is persisted in the manifestCODE
LOWframework/storage/python/kungfu_sdk/native.py366 except Exception:CODE
LOWframework/api/src/capability/guest-harness/py-child.py33 except Exception as err: # noqa: BLE001 — report and fail visiblyCODE
Modern Structural Boilerplate38 hits · 38 pts
SeverityFileLineSnippetContext
LOW…core/tests/python/_skill_lifecycle_dependency_cases.py45__all__ = [CODE
LOW…ework/core/tests/python/_fact_kernel_recovery_cases.py31__all__ = [CODE
LOW…re/tests/python/_profile_composition_contract_cases.py28__all__ = [CODE
LOW…ork/core/tests/python/_fact_kernel_durability_cases.py31__all__ = [CODE
LOW…ework/core/tests/python/_assignment_runtime_support.py416__all__ = [name for name in globals() if not name.startswith("__")]CODE
LOW…ore/tests/python/_profile_composition_catalog_cases.py28__all__ = [CODE
LOW…e/tests/python/_skill_lifecycle_runtime_audit_cases.py45__all__ = [CODE
LOW…/core/tests/python/_profile_composition_query_cases.py28__all__ = [CODE
LOW…core/tests/python/_assignment_orchestration_support.py363__all__ = [name for name in globals() if not name.startswith("__")]CODE
LOW…re/tests/python/_assignment_runtime_semantics_cases.py740__all__ = [name for name in globals() if name.startswith("test_")]CODE
LOW…k/core/tests/python/_agent_console_contract_support.py112__all__ = [name for name in globals() if not name.startswith("__")]CODE
LOW…ore/tests/python/_assignment_runtime_recovery_cases.py516__all__ = [name for name in globals() if name.startswith("test_")]CODE
LOW…core/tests/python/_assignment_runtime_profile_cases.py171__all__ = [name for name in globals() if name.startswith("test_")]CODE
LOW…work/core/tests/python/_distribution_update_support.py253__all__ = [name for name in globals() if not name.startswith("__")]CODE
LOW…ork/core/tests/python/_fact_kernel_validation_cases.py31__all__ = [CODE
LOW…k/core/tests/python/_skill_lifecycle_registry_cases.py45__all__ = [CODE
LOW…amework/core/tests/python/_fact_kernel_format_cases.py31__all__ = [CODE
LOW…/tests/python/_profile_composition_assessment_cases.py28__all__ = [CODE
LOW…e/tests/python/_assignment_runtime_validation_cases.py993__all__ = [name for name in globals() if name.startswith("test_")]CODE
LOWframework/core/src/python/kungfu/config.py432def _set_dotted(target: dict[str, Any], key: str, value: Any) -> None:CODE
LOWframework/core/src/python/kungfu/runtime_state.py748def _set_snapshot_lifecycle(state: dict[str, Any], lifecycle: str) -> None:CODE
LOWframework/core/src/python/kungfu/kfx_host.py449__all__ = [CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py18__all__ = [CODE
LOWframework/core/src/python/kungfu/skill/__init__.py69__all__ = [CODE
LOWframework/core/src/python/kungfu/capability/__init__.py19__all__ = [CODE
LOWframework/core/src/python/kungfu/capability/guest.py336__all__ = [CODE
LOW…work/core/src/python/kungfu/runtime/live/event_loop.py252__all__ = ["JournalAsyncioBridge", "LiveEventLoop"]CODE
LOW…amework/core/src/python/kungfu/rewind/cost/__init__.py33__all__ = [CODE
LOWframework/core/src/python/kungfu/agent/__init__.py35__all__ = [CODE
LOWframework/core/src/python/kungfu/agent/advisory.py565__all__ = [CODE
LOW…rk/core/src/python/kungfu/cli/bridging/__registry__.py8__all__ = [CODE
LOW…rk/core/src/python/kungfu/cli/commands/__registry__.py52__all__ = [CODE
LOW…/core/src/python/kungfu/cli/commands/work_semantics.py158__all__ = [CODE
LOW…/core/src/python/kungfu/assignment_runtime/__init__.py570__all__ = [CODE
LOWframework/storage/python/kungfu_sdk/__init__.py19__all__ = [CODE
LOW…s/work-control/work-control-actions/domain/__init__.py7__all__ = ["initiative_bundle", "native_state", "work_control", "work_semantics"]CODE
LOWextensions/dogfood/dogfood-actions/domain/dogfood.py91__all__ = [CODE
LOWextensions/dogfood/dogfood-actions/domain/__init__.py5__all__ = ["dogfood"]CODE
Modern AI Meta-Vocabulary12 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMdeveloper/sdk/README.md17kungfu sdk create app my-app # scaffold into ./my-appCODE
MEDIUMdeveloper/sdk/README.md30kungfu sdk create extension my-view # scaffold into ./my-viewCODE
MEDIUMdeveloper/sdk/src/sdk-shared.js3// First cut of the modern SDK surface: scaffold a complete Kungfu desktop appCOMMENT
MEDIUMcrates/Cargo.toml36# strip symbols; the launcher's hot path is process orchestration, not compute.COMMENT
MEDIUM…mework/core/tests/python/test_action_runtime_shadow.py185 # Residual Python orchestration with replayed kernel I/O.COMMENT
MEDIUMframework/core/src/python/kungfu/profile_sdk.py536 # bytes after they were hashed and make the scaffold fail its ownCOMMENT
MEDIUMframework/core/src/python/kungfu/cli/commands/sdk.py3# `kungfu sdk` — the application assembly toolkit: scaffold apps and viewCOMMENT
MEDIUM…work/core/src/python/kungfu/cli/commands/assignment.py376 # returning to the Assignment orchestration path.COMMENT
MEDIUMdocs/adr/KF-ADR-019f87cc-bd1f-786d-896d-07ea9245861e.md20# KF-ADR-019f87cc-bd1f-786d-896d-07ea9245861e: Assignment orchestration state is fact-backed and portably sealedCOMMENT
MEDIUMdocs/adr/KF-ADR-019f86da-4f90-7d58-b5b3-b6d5041dcab6.md44### 1. One entry orchestrates; existing components remain authoritativeCOMMENT
MEDIUMdocs/adr/KF-ADR-019fee22-e71d-7da9-8a44-9403c21a5d62.md16# KF-ADR-019fee22-e71d-7da9-8a44-9403c21a5d62: Kungfu Skill v2 is a content-rooted Work-scoped orchestration contractCOMMENT
MEDIUM…ensions/agent-work-lab/experience/starter-project.json35 "content": "# Northstar Notes launch brief\n\n<!-- Ask an agent to replace this scaffold using only the facts in iCODE
AI Slop Vocabulary10 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMcrates/Cargo.toml6# docs/development/rust-adoption.md for the adoption paradigm (source layout, consumptionCOMMENT
MEDIUM…ll-multi-surface-runtime-audit/managed-run/report.json88 "text": "I’ll qualify the admitted Skill surface read-only, with only the requested `skill admit --execute` and `skiCODE
MEDIUM…-multi-surface-runtime-audit/managed-run/response.json6 "stdout": "{\"type\":\"thread.started\",\"thread_id\":\"01a00005-b138-7d52-b4a5-5edddb06cd8f\"}\n{\"type\":\"turn.starCODE
MEDIUM…-multi-surface-runtime-audit/managed-run/response.json12 "text": "I’ll qualify the admitted Skill surface read-only, with only the requested `skill admit --execute` and `skiCODE
MEDIUMframework/core/pyproject.toml157# public Python SDK surface, guest-harness backs the capability guest contract,COMMENT
MEDIUM…amework/core/tests/python/test_coordination_arbiter.py8# by the cross-process arbiter harness.COMMENT
MEDIUM…e/.deps/hana-1.80.0/include/boost/hana/fwd/prepend.hpp38 //! > more nuanced and bears its name better for e.g. `hana::optional`.COMMENT
MEDIUM…ork/core/src/libkungfu/src/runtime/util/stacktrace.cpp217// allocation, so it is a more robust artifact under heap corruption than theCOMMENT
MEDIUM…ork/core/src/libkungfu/src/runtime/util/stacktrace.cpp222// the essential "what/where" is already on disk and the robust dump gets its shotCOMMENT
MEDIUM…amework/api/src/capability/guest-harness/py_trusted.py6# relay), so the harness reads the JSON result from it.COMMENT
AI Structural Patterns22 hits · 21 pts
SeverityFileLineSnippetContext
LOW…amework/core/src/python/kungfu/workspace_federation.py97CODE
LOW…ork/core/src/python/kungfu/assignment_orchestration.py611CODE
LOWframework/core/src/python/kungfu/rewind/approvals.py67CODE
LOWframework/core/src/python/kungfu/rewind/events.py68CODE
LOWframework/core/src/python/kungfu/rewind/events.py264CODE
LOWframework/core/src/python/kungfu/rewind/managed_cli.py76CODE
LOWframework/core/src/python/kungfu/rewind/reporting.py161CODE
LOW…ework/core/src/python/kungfu/agent/runtime_profiles.py306CODE
LOW…ework/core/src/python/kungfu/agent/runtime_profiles.py521CODE
LOWframework/core/src/python/kungfu/agent/run_agent.py171CODE
LOWframework/core/src/python/kungfu/agent/native_launch.py299CODE
LOW…ork/core/src/python/kungfu/agent/_run_agent/runtime.py497CODE
LOW…ore/src/python/kungfu/cli/commands/_skill/lifecycle.py170CODE
LOWframework/core/src/python/kungfu/storage/service.py289CODE
LOW…ork/core/src/python/kungfu/storage/_service_episode.py56CODE
LOW…ork/core/src/python/kungfu/storage/_service_episode.py124CODE
LOW…/core/src/python/kungfu/assignment_runtime/recovery.py64CODE
LOW…ork/core/src/python/kungfu/assignment_runtime/local.py730CODE
LOW…ork-control-actions/domain/_work_control_assignment.py167CODE
LOW…work-control-actions/domain/_work_control_lifecycle.py559CODE
LOW…ons/dogfood/dogfood-actions/domain/_dogfood_records.py369CODE
LOW…ons/dogfood/dogfood-actions/domain/_dogfood_records.py578CODE
Self-Referential Comments20 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMframework/core/src/python/kungfu/rewind/fb/RunBegin.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…k/core/src/python/kungfu/rewind/fb/ApprovalDecision.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…mework/core/src/python/kungfu/rewind/fb/RetryMarker.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMframework/core/src/python/kungfu/rewind/fb/ToolCall.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ework/core/src/python/kungfu/rewind/fb/CostSnapshot.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ework/core/src/python/kungfu/rewind/fb/ModelRequest.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…mework/core/src/python/kungfu/rewind/fb/RunProgress.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMframework/core/src/python/kungfu/rewind/fb/RunEnd.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/fb/ToolResult.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…work/core/src/python/kungfu/rewind/fb/ModelResponse.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…work/core/src/python/kungfu/rewind/reflection/Field.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…rk/core/src/python/kungfu/rewind/reflection/Service.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…k/core/src/python/kungfu/rewind/reflection/KeyValue.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ork/core/src/python/kungfu/rewind/reflection/Object.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ework/core/src/python/kungfu/rewind/reflection/Type.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…core/src/python/kungfu/rewind/reflection/SchemaFile.py24 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…rk/core/src/python/kungfu/rewind/reflection/RPCCall.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…rk/core/src/python/kungfu/rewind/reflection/EnumVal.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ework/core/src/python/kungfu/rewind/reflection/Enum.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ork/core/src/python/kungfu/rewind/reflection/Schema.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippetContext
HIGH…tests/python/_agent_profile_sdk_qualification_cases.py143 bundle.write_text("export function View() { return null; }\n")CODE
HIGH…tests/python/_agent_profile_sdk_qualification_cases.py176 bundle.write_text("export function View() { return null; }\n")CODE
HIGHframework/core/tests/python/test_release_channel.py270 null,CODE
HIGH…ework/core/src/python/kungfu/runtime_service_config.py293 "write the unit; then run: systemctl --user daemon-reload && systemctl --user enable --now kungfu-supervisorSTRING
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHframework/core/tests/storage-node-binding.test.js615print(json.dumps(node_safe(out), sort_keys=True, separators=(",", ":")))CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWframework/core/src/python/kungfu/agent/agent_hub.py630def handle_request(CODE
LOW…work/core/src/python/kungfu/_runtime_service/engine.py231 def handle_request(self, request: RuntimeEngineRequest) -> RuntimeEngineReceipt:CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…core/.deps/hana-1.80.0/include/boost/hana/fwd/type.hpp501 //! `std::integral_constant`s, don't forget to include theCOMMENT