Repository Analysis

kungfu-systems/kungfu

A local-first runtime that records real-world agent work and verifies what actually got done.

5.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kungfu-systems/kungfu, a C++ project with 3,882 GitHub stars. SynthScan v2.0 examined 348,130 lines of code across 1646 source files, recording 1762 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 5.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.5
Adjusted Score
5.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.9K
Stars
C++
Language
348.1K
Lines of Code
1.6K
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 26MEDIUM 78LOW 1657

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1762 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block867 hits · 866 pts
SeverityFileLineSnippetContext
LOWpnpm-workspace.yaml21# Disable pnpm's default minimum-release-age supply-chain check. We frequentlyCOMMENT
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.rs41use std::process::Command;COMMENT
LOWcrates/shifu/src/registrar.rs241 /// Pinned content hash from the declaration; empty when the artifact'sCOMMENT
LOWcrates/shifu/src/main.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/shifu/src/main.rs21// delegates to the repo's ./shifu entrypoint, which resolves the version thatCOMMENT
LOWcrates/shifu/src/main.rs381 "detached".to_string()COMMENT
LOWcrates/shifu/src/main.rs441 cmd.env("SHIFU_DELEGATED", "1").current_dir(&root);COMMENT
LOWcrates/shifu/src/main.rs481COMMENT
LOWcrates/kungfu-embedding/Cargo.toml1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/kungfu-embedding/src/lib.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWcrates/kungfu-embedding/src/lib.rs21//! so an older core still yields a working journal-read context.COMMENT
LOWcrates/kungfu-embedding/src/lib.rs41//!COMMENT
LOWcrates/shifu-core/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// VERSION <version>COMMENT
LOWcrates/trunk/src/launch.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWframework/core/pyproject.toml41 # not fail; a module opts into real checking as it gains annotations.COMMENT
LOWframework/core/pyproject.toml121# flatbuffers/flatc 生成物标 "do not modify",不纳入格式化基线(重新生成会覆盖):COMMENT
LOWframework/core/pyproject.toml161# 钉 uv 自管 standalone CPython(而非系统/发行版 python):跨机一致,且根治 nuitka 在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
807 more matches not shown…
Hyper-Verbose Identifiers524 hits · 504 pts
SeverityFileLineSnippetContext
LOWdeveloper/sdk/src/sdk.js450function isProductAssemblyManifest(pkg) {CODE
LOWdeveloper/sdk/src/sdk.js672function findRepoRootWithExtensions(startDir) {CODE
LOWdeveloper/sdk/src/sdk.js702function resolveReferenceExtensionsRoot(cwd) {CODE
LOWdeveloper/sdk/src/sdk.js758function assembleProductExtensions(CODE
LOWdeveloper/sdk/src/sdk.js1376function resolveContractRegistryPath(repoRoot) {CODE
LOWdeveloper/sdk/src/sdk.js1963function buildContractWorldWitness(repoRoot) {CODE
LOWdeveloper/sdk/src/sdk.js2775function resolveKfdUpstreamAggregate() {CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py64def _ref_frame_data_type_value(header):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py155def test_atlas_checksum_matches_reference(captured_run, algorithm):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py177def test_atlas_checksum_frame_uses_readonly_header_buffer(captured_run):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py191def test_rewind_bundle_decode_matches_generated(captured_run):CODE
LOW…work/core/tests/python/test_generic_primitive_dedup.py198def test_rewind_bundle_decode_field_by_field(captured_run):CODE
LOWframework/core/tests/python/test_content_hash.py17def test_content_hash_canonical_format_parse_and_verify():CODE
LOWframework/core/tests/python/test_content_hash.py28def test_content_hash_rejects_reserved_but_unimplemented_algorithm():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py40def test_agent_runtime_profile_is_part_of_the_global_config_contract():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py64def test_agent_runtime_profile_rejects_opaque_extra_fields():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py88def test_work_console_requires_a_bound_work_ref_for_work_bindings():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py119def test_agent_console_envelope_binds_work_and_discovery_entrypoints():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py143def test_discovery_returns_path_and_app_candidates_without_first_hit_collapse():CODE
LOW…ework/core/tests/python/test_agent_console_contract.py157def test_runtime_profile_plan_apply_default_and_remove_are_preview_first(CODE
LOW…ework/core/tests/python/test_agent_console_contract.py232def test_agent_session_cli_forwards_the_same_self_describing_action(CODE
LOW…ework/core/tests/python/test_agent_console_contract.py287def test_work_console_registry_accepts_capsule_backend():CODE
LOW…mework/core/tests/python/test_durability_capability.py12def test_python_projection_preserves_libkungfu_capability():CODE
LOW…mework/core/tests/python/test_durability_capability.py43def test_agent_capabilities_embeds_the_same_durability_report(tmp_path):CODE
LOW…mework/core/tests/python/test_profile_lifecycle_cli.py12def test_profile_lifecycle_python_service_and_cli_share_core_contract(tmp_path):CODE
LOW…mework/core/tests/python/test_profile_lifecycle_cli.py26def test_profile_lifecycle_cli_lists_empty_workspace_without_sidecar_authority(CODE
LOWframework/core/tests/python/test_profile_composition.py295def test_catalog_joins_exact_profile_artifacts_without_new_authority(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py306def test_manager_projects_lifecycle_and_current_source_health(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py323def test_manager_reports_source_drift_without_hiding_lifecycle_state(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py337def test_current_lifecycle_authorization_rejects_drift_then_applies(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py355def test_catalog_rejects_cross_profile_view_surface_reference(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py364def test_catalog_accepts_profile_owned_view_without_domain_interpretation(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py373def test_catalog_rejects_uninstalled_artifact_schema(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py397def test_installed_cli_catalog_and_query_plan_share_roots(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py436def test_query_receipt_preserves_core_definition_and_proof_roots(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py450def test_non_mission_profile_resolves_query_materializes_contract_and_binds_claim_instance(CODE
LOWframework/core/tests/python/test_profile_composition.py558def test_resolved_query_rejects_binding_and_surface_drift(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py602def test_installed_cli_contract_and_resolved_query_share_public_receipts(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py712def test_assessment_plan_binds_verified_episode_query_proof_and_decision(tmp_path):CODE
LOWframework/core/tests/python/test_profile_composition.py749def test_installed_cli_assessment_plan_decide_and_run(tmp_path):CODE
LOWframework/core/tests/python/test_fast_hash.py33def test_fast_hash_canonical_digest_lengths():CODE
LOWframework/core/tests/python/test_query_cli.py16def test_storage_layout_lazy_context_keeps_all_runtime_paths(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py27def test_facts_cli_exposes_the_libkungfu_owned_contract(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py45def test_offline_agent_discovers_and_proves_query_in_three_commands(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py84def test_query_cli_validate_explain_and_stream_formats_share_the_plan(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py153def test_query_cli_returns_stable_validation_error_code(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py170def test_query_cli_shares_saved_view_and_resumes_changelog(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py233def test_query_cli_keeps_profile_views_generic_and_legacy_readable(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py278def test_query_cli_rejects_incomplete_profile_view_envelope(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py309def test_workspace_saved_query_catalog_survives_reopen_and_tracks_revisions(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py415def test_query_cli_compiles_bounded_sql_and_runs_sqlite_engine(tmp_path):CODE
LOWframework/core/tests/python/test_query_cli.py476def test_query_cli_compiles_and_proves_temporal_attention_pattern(tmp_path):CODE
LOWframework/core/tests/python/test_first_party_baked.py30def test_reads_baked_manifest_at_the_product_root(tmp_path, monkeypatch):CODE
LOWframework/core/tests/python/test_first_party_baked.py39def test_env_manifest_wins_over_baked(tmp_path, monkeypatch):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py207def make_collaboration_action_lifecycle(source):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py227def test_profile_resolution_skips_unreadable_unrelated_siblings(tmp_path, monkeypatch):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py242def test_scaffold_is_plan_first_deterministic_and_does_not_self_certify(tmp_path):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py253def test_scaffold_can_declare_generic_dual_first_collaboration(tmp_path):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py270def test_unresolved_semantics_return_open_decision_cards(tmp_path):CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py283def test_destructive_migration_and_unsupported_evidence_fail_closed(tmp_path):CODE
464 more matches not shown…
Unused Imports175 hits · 163 pts
SeverityFileLineSnippetContext
LOW…work/core/tests/python/test_generic_primitive_dedup.py9CODE
LOW…mework/core/tests/python/test_durability_capability.py8CODE
LOW…mework/core/tests/python/test_profile_lifecycle_cli.py7CODE
LOWframework/core/tests/python/test_profile_composition.py10CODE
LOWframework/core/tests/python/test_query_cli.py7CODE
LOWframework/core/tests/python/test_agent_profile_sdk.py11CODE
LOW…ork/core/tests/python/test_episode_bundle_roundtrip.py13CODE
LOWframework/core/tests/python/test_action_envelope.py3CODE
LOW…amework/core/tests/python/test_content_store_facade.py12CODE
LOW…/core/tests/python/test_episode_manifest_projection.py10CODE
LOW…amework/core/tests/python/test_episode_content_root.py14CODE
LOWframework/core/tests/python/test_atlas_storage.py498CODE
LOWframework/core/tests/python/test_atlas_storage.py666CODE
LOWframework/core/tests/python/test_atlas_storage.py891CODE
LOWframework/core/tests/python/test_storage_cli.py7CODE
LOW…rk/core/tests/python/test_episode_manifest_recovery.py11CODE
LOW…mework/core/tests/python/test_episode_manifest_fsck.py15CODE
LOW…s/python/test_episode_qualification_semantic_oracle.py4CODE
LOW…/core/tests/qualification/episode/semantic_workload.py4CODE
LOW…k/core/tests/qualification/episode/episode_workload.py14CODE
LOW…rk/core/tests/qualification/episode/semantic_oracle.py9CODE
LOW…/qualification/live-peer-continuity/native_campaign.py3CODE
LOW…alification/runtime-activation/performance_workload.py3CODE
LOWframework/core/src/python/kungfu/kfx_contract.py3CODE
LOWframework/core/src/python/kungfu/profile_composition.py10CODE
LOWframework/core/src/python/kungfu/profile_sdk.py10CODE
LOWframework/core/src/python/kungfu/__init__.py3CODE
LOWframework/core/src/python/kungfu/durability.py5CODE
LOWframework/core/src/python/kungfu/action_envelope.py3CODE
LOWframework/core/src/python/kungfu/workspace.py3CODE
LOWframework/core/src/python/kungfu/content_hash.py3CODE
LOWframework/core/src/python/kungfu/projection.py5CODE
LOWframework/core/src/python/kungfu/runtime_service.py3CODE
LOWframework/core/src/python/kungfu/contract.py3CODE
LOWframework/core/src/python/kungfu/runtime_broker.py3CODE
LOWframework/core/src/python/kungfu/workspace_guidance.py3CODE
LOW…/core/src/python/kungfu/coordination/arbiter_client.py16CODE
LOWframework/core/src/python/kungfu/coordination/audit.py8CODE
LOWframework/core/src/python/kungfu/coordination/locks.py25CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py8CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py8CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py8CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py8CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py8CODE
LOW…amework/core/src/python/kungfu/coordination/arbiter.py22CODE
LOWframework/core/src/python/kungfu/skill/catalog.py3CODE
LOWframework/core/src/python/kungfu/skill/provider.py3CODE
LOWframework/core/src/python/kungfu/skill/registry.py3CODE
LOWframework/core/src/python/kungfu/skill/__init__.py3CODE
LOWframework/core/src/python/kungfu/skill/__init__.py3CODE
LOWframework/core/src/python/kungfu/skill/__init__.py4CODE
LOWframework/core/src/python/kungfu/skill/__init__.py4CODE
LOWframework/core/src/python/kungfu/skill/__init__.py5CODE
LOWframework/core/src/python/kungfu/skill/__init__.py5CODE
LOWframework/core/src/python/kungfu/skill/__init__.py5CODE
LOWframework/core/src/python/kungfu/skill/__init__.py5CODE
LOWframework/core/src/python/kungfu/skill/__init__.py5CODE
LOWframework/core/src/python/kungfu/skill/__init__.py12CODE
LOWframework/core/src/python/kungfu/skill/__init__.py12CODE
LOWframework/core/src/python/kungfu/skill/__init__.py12CODE
115 more matches not shown…
Cross-File Repetition23 hits · 115 pts
SeverityFileLineSnippetContext
HIGH…amework/core/src/python/kungfu/rewind/reflection_fb.py0this method is deprecated. please switch to getrootas.STRING
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
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…k/core/src/python/kungfu/work/fb/CheckpointRecorded.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ork/core/src/python/kungfu/work/fb/ArtifactRecorded.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ork/core/src/python/kungfu/work/fb/DecisionRecorded.py0this method is deprecated. please switch to getrootas.STRING
HIGHframework/core/src/python/kungfu/work/fb/RunLinked.py0this method is deprecated. please switch to getrootas.STRING
HIGH…work/core/src/python/kungfu/work/fb/WorkItemCreated.py0this method is deprecated. please switch to getrootas.STRING
HIGH…rk/core/src/python/kungfu/work/fb/WorkStatusChanged.py0this method is deprecated. please switch to getrootas.STRING
HIGH…mework/core/src/python/kungfu/work/fb/NextActionSet.py0this method is deprecated. please switch to getrootas.STRING
HIGH…k/core/src/python/kungfu/work/fb/ValidationRecorded.py0this method is deprecated. please switch to getrootas.STRING
HIGH…amework/core/src/python/kungfu/atlas/fb/ImportBegin.py0this method is deprecated. please switch to getrootas.STRING
HIGH…mework/core/src/python/kungfu/atlas/fb/GoalSnapshot.py0this method is deprecated. please switch to getrootas.STRING
HIGH…ork/core/src/python/kungfu/atlas/fb/MissionSnapshot.py0this method is deprecated. please switch to getrootas.STRING
HIGH…work/core/src/python/kungfu/atlas/fb/MarkerSnapshot.py0this method is deprecated. please switch to getrootas.STRING
HIGHframework/core/src/python/kungfu/atlas/fb/ImportEnd.py0this method is deprecated. please switch to getrootas.STRING
Decorative Section Separators30 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUMdeveloper/sdk/src/sdk.js391// ── product commands ───────────────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk.js1194// ── KFD-1 contract prototype ───────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk.js2328// ── kfx view extension build ──────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk.js2451// ── kfx C++ extension build ────────────────────────────────────────────────COMMENT
MEDIUMdeveloper/sdk/src/sdk.js2584// ── 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.js128 // ── 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.ts105// ── capability surface ────────────────────────────────────────────────────COMMENT
MEDIUMframework/kfx/src/index.ts122// ── manifest data (package.json `kungfuConfig`) ───────────────────────────COMMENT
MEDIUMframework/kfx/src/index.ts311// ── load plan: host-agnostic discovery + decision (ADR-0017) ──────────────COMMENT
MEDIUMframework/kfx/src/index.ts1120// ── runtime contract (what the shell hands a mounted view) ────────────────COMMENT
MEDIUMframework/kfx/src/index.ts1351// ── UI tokens (dark, dense, monospace — no component library) ─────────────COMMENT
MEDIUMframework/gui/src/main/sandbox-host.ts37// ── 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/service-authz.ts96// ── persistence: the same ConfigStore shell state uses ───────────────────────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
MEDIUMframework/api/src/capability/guest-harness/authz-run.ts49// ── Part A: three-layer resolution ───────────────────────────────────────────COMMENT
MEDIUMframework/api/src/capability/guest-harness/authz-run.ts104// ── Part B: persistence round-trip through a ConfigStore double ───────────────COMMENT
MEDIUMframework/api/src/capability/guest-harness/authz-run.ts168// ── Part C: resolved profile drives real egress (ties to stage 2b) ────────────COMMENT
Excessive Try-Catch Wrapping36 hits · 41 pts
SeverityFileLineSnippetContext
LOWframework/core/conanfile.py338 except Exception: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.py366 except Exception as failure: # noqa: BLE001CODE
LOWframework/core/.gyp/gen_kungfubuildinfo.py50 except Exception:CODE
LOWframework/core/src/python/kungfu/durability.py436 except Exception as error: # noqa: BLE001 - retained for inspectionCODE
LOWframework/core/src/python/kungfu/runtime_service.py987 except Exception: # noqa: BLE001 - lock logic must never break servingCODE
LOWframework/core/src/python/kungfu/runtime_service.py1007 except Exception: # noqa: BLE001CODE
LOWframework/core/src/python/kungfu/runtime_broker.py1381 except Exception:CODE
MEDIUMframework/core/src/python/kungfu/runtime_broker.py1020def _read_state(self) -> dict[str, Any]:CODE
LOW…work/core/src/python/kungfu/runtime/live/event_loop.py148 except Exception as e:CODE
MEDIUM…work/core/src/python/kungfu/runtime/live/event_loop.py145def wrapper():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
LOWframework/core/src/python/kungfu/rewind/managed_cli.py211 except Exception as exc:CODE
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
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
LOWframework/core/src/python/kungfu/atlas/store.py331 except Exception as error: # sealed import remains durable and inspectableCODE
LOWframework/core/src/python/kungfu/remote/store.py290 except Exception as exc: # noqa: BLE001 - error is persisted in the manifestCODE
LOWframework/api/src/capability/guest-harness/py-child.py32 except Exception as err: # noqa: BLE001 — report and fail visiblyCODE
Deep Nesting39 hits · 39 pts
SeverityFileLineSnippetContext
LOWframework/core/src/python/kungfu/profile_composition.py113CODE
LOWframework/core/src/python/kungfu/profile_composition.py827CODE
LOWframework/core/src/python/kungfu/runtime_service.py281CODE
LOWframework/core/src/python/kungfu/runtime_service.py745CODE
LOWframework/core/src/python/kungfu/runtime_service.py1395CODE
LOWframework/core/src/python/kungfu/runtime_service.py965CODE
LOWframework/core/src/python/kungfu/contract.py22CODE
LOWframework/core/src/python/kungfu/contract.py83CODE
LOWframework/core/src/python/kungfu/runtime_broker.py1465CODE
LOWframework/core/src/python/kungfu/workspace_guidance.py437CODE
LOWframework/core/src/python/kungfu/coordination/locks.py62CODE
LOWframework/core/src/python/kungfu/capability/guest.py41CODE
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.py172CODE
LOWframework/core/src/python/kungfu/rewind/replay.py191CODE
LOWframework/core/src/python/kungfu/rewind/adapters.py46CODE
LOWframework/core/src/python/kungfu/rewind/adapters.py61CODE
LOWframework/core/src/python/kungfu/agent/resources.py68CODE
LOWframework/core/src/python/kungfu/cli/site.py82CODE
LOWframework/core/src/python/kungfu/cli/site.py414CODE
LOWframework/core/src/python/kungfu/cli/commands/skill.py540CODE
LOWframework/core/src/python/kungfu/cli/commands/env.py14CODE
LOWframework/core/src/python/kungfu/cli/commands/codex.py70CODE
LOW…amework/core/src/python/kungfu/cli/commands/storage.py292CODE
LOW…amework/core/src/python/kungfu/cli/commands/storage.py427CODE
LOW…amework/core/src/python/kungfu/cli/commands/storage.py526CODE
LOWframework/core/src/python/kungfu/cli/commands/agent.py887CODE
LOWframework/core/src/python/kungfu/storage/service.py41CODE
LOWframework/core/src/python/kungfu/work/store.py243CODE
LOWframework/core/src/python/kungfu/sources/store.py112CODE
LOWframework/core/src/python/kungfu/atlas/store.py579CODE
LOW…mework/core/src/python/kungfu/atlas/mission_control.py634CODE
LOW…mework/core/src/python/kungfu/atlas/mission_control.py1111CODE
LOW…mework/core/src/python/kungfu/atlas/mission_control.py1165CODE
LOWframework/core/src/python/kungfu/atlas/payloads.py951CODE
LOWframework/core/src/python/kungfu/remote/store.py238CODE
LOW…ons/mission-control/mission-control-actions/adapter.py75CODE
Self-Referential Comments32 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py52 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py144 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py194 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py313 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py473 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py684 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py851 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py973 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py1113 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/rewind/reflection_fb.py1181 """This method is deprecated. Please switch to GetRootAs."""STRING
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
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…k/core/src/python/kungfu/work/fb/CheckpointRecorded.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ork/core/src/python/kungfu/work/fb/ArtifactRecorded.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ork/core/src/python/kungfu/work/fb/DecisionRecorded.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMframework/core/src/python/kungfu/work/fb/RunLinked.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…work/core/src/python/kungfu/work/fb/WorkItemCreated.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…rk/core/src/python/kungfu/work/fb/WorkStatusChanged.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…mework/core/src/python/kungfu/work/fb/NextActionSet.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…k/core/src/python/kungfu/work/fb/ValidationRecorded.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…amework/core/src/python/kungfu/atlas/fb/ImportBegin.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…mework/core/src/python/kungfu/atlas/fb/GoalSnapshot.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…ork/core/src/python/kungfu/atlas/fb/MissionSnapshot.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUM…work/core/src/python/kungfu/atlas/fb/MarkerSnapshot.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMframework/core/src/python/kungfu/atlas/fb/ImportEnd.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMcrates/Cargo.toml6# docs/development/rust-adoption.md for the adoption paradigm (source layout, consumptionCOMMENT
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
Modern AI Meta-Vocabulary5 hits · 13 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.js4// First cut of the modern SDK surface: scaffold a complete Kungfu desktop appCOMMENT
MEDIUMcrates/Cargo.toml29# strip symbols; the launcher's hot path is process orchestration, not compute.COMMENT
MEDIUMframework/core/src/python/kungfu/cli/commands/sdk.py3# `kungfu sdk` — the application assembly toolkit: scaffold apps and viewCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALcrates/libwasm-spike/src/lib.rs360 let _ = (self.reader.api.value.reader_release_batch.unwrap())(CODE
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWframework/core/src/python/kungfu/config.py415def _set_dotted(target: dict[str, Any], key: str, value: Any) -> None:CODE
LOWframework/core/src/python/kungfu/runtime_broker.py991def _set_snapshot_lifecycle(state: dict[str, Any], lifecycle: str) -> None:CODE
LOW…mework/core/src/python/kungfu/coordination/__init__.py10__all__ = ["acquire", "release", "held", "with_lock", "status"]CODE
LOWframework/core/src/python/kungfu/skill/__init__.py34__all__ = [CODE
LOWframework/core/src/python/kungfu/capability/__init__.py13__all__ = ["connect"]CODE
LOW…amework/core/src/python/kungfu/rewind/cost/__init__.py33__all__ = [CODE
LOWframework/core/src/python/kungfu/agent/__init__.py15__all__ = [CODE
LOW…rk/core/src/python/kungfu/cli/bridging/__registry__.py8__all__ = [CODE
LOW…rk/core/src/python/kungfu/cli/commands/__registry__.py31__all__ = [CODE
LOWframework/sdk/python/kungfu_sdk/__init__.py10__all__ = [CODE
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…work/core/src/python/kungfu/runtime/live/event_loop.py180CODE
LOW…work/core/src/python/kungfu/runtime/live/event_loop.py199CODE
LOW…work/core/src/python/kungfu/runtime/live/event_loop.py265CODE
LOWframework/core/src/python/kungfu/rewind/approvals.py67CODE
LOWframework/core/src/python/kungfu/rewind/events.py201CODE
LOWframework/core/src/python/kungfu/rewind/managed_cli.py71CODE
LOWframework/core/src/python/kungfu/rewind/reporting.py160CODE
LOWframework/core/src/python/kungfu/storage/service.py457CODE
LOWframework/core/src/python/kungfu/storage/service.py507CODE
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHframework/core/tests/python/test_agent_profile_sdk.py623 bundle.write_text("export function View() { return null; }\n")CODE
HIGHframework/core/src/python/kungfu/runtime_service.py1780 "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.js520print(json.dumps(node_safe(out), sort_keys=True, separators=(",", ":")))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
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWframework/core/src/python/kungfu/runtime_service.py1025 def handle_request(self, request: RuntimeEngineRequest) -> RuntimeEngineReceipt:CODE