Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

chuali-zi/long-agent

https://github.com/chuali-zi/long-agent · scanned 2026-06-17 01:48 UTC (1 month, 1 week ago)

72 raw signals (0 security + 72 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 1 week ago · v2 · last Δ -6.8 (diff) · 60 actionable findings from 1 signal source. 12 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 69.9/100 with 77.8% coverage. It contains 1906 nodes across 17 cross-layer flows, written primarily in mixed languages. Engine surfaced 72 findings — concentrated in quality (34), software (23), security (15). Risk profile is high: 0 critical, 9 high, 13 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 60 of 60 actionable findings. 72 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high System graph security auth conf 1.00 FastAPI POST `approve_approval` without auth dependency — kyagent/web/server.py:280
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:280 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `ask_stream` without auth dependency — kyagent/web/server.py:327
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:327 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `ask` without auth dependency — kyagent/web/server.py:233
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:233 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `reject_approval` without auth dependency — kyagent/web/server.py:292
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:292 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `reset_session` without auth dependency — kyagent/web/server.py:252
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:252 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `safety_check` without auth dependency — kyagent/web/server.py:431
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:431 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `select_choice` without auth dependency — kyagent/web/server.py:314
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
kyagent/web/server.py:314 securityAuth fastapi unauth mutation
high System graph security security conf 1.00 Insecure pattern 'exec_used' in study/html/06-executor-sandbox.html:82
Found a known-risky pattern (exec_used). Review and replace if possible.
study/html/06-executor-sandbox.html:82 Exec used
high System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in study/html/06-executor-sandbox.html:283
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
study/html/06-executor-sandbox.html:283 Subprocess shell true
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in kyagent/web/static/index.html:990
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
kyagent/web/static/index.html:990 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in kyagent/web/static/ref.html:771
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
kyagent/web/static/ref.html:771 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in kyagent/web/static/ref_v2.html:1215
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
kyagent/web/static/ref_v2.html:1215 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'local_storage_auth_token' in kyagent/web/static/index.html:882
Found a known-risky pattern (local_storage_auth_token). Review and replace if possible.
kyagent/web/static/index.html:882 Local storage auth token
medium System graph security security conf 1.00 Insecure pattern 'local_storage_auth_token' in kyagent/web/static/ref.html:725
Found a known-risky pattern (local_storage_auth_token). Review and replace if possible.
kyagent/web/static/ref.html:725 Local storage auth token
medium System graph security security conf 1.00 Insecure pattern 'local_storage_auth_token' in kyagent/web/static/ref_v2.html:1103
Found a known-risky pattern (local_storage_auth_token). Review and replace if possible.
kyagent/web/static/ref_v2.html:1103 Local storage auth token
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — benchmarks/open-deleted-v1/gen_artifacts.py:68
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — benchmarks/port-conflict-v1/gen_artifacts.py:36
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — benchmarks/runaway-cpu-v1/gen_artifacts.py:54
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — benchmarks/stale-lock-v1/gen_artifacts.py:119
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — benchmarks/unix-socket-stale-v1/gen_artifacts.py:123
`subprocess.Popen(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 43 placeholder/mock markers across 11 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data.
Mock dataIncompleteGenerated repo pattern
low System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, ci. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
Repo hardeningGenerated repo pattern
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 199 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 13 places
Functions with the same first-5-line body hash: kyagent/mcp/tools/security.py:build_argv, kyagent/mcp/tools/security.py:build_argv, kyagent/mcp/tools/security.py:build_argv, kyagent/mcp/tools/security.py:build_argv This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see …
duplicatesduplication
low System graph quality Integrity conf 1.00 7 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: kyagent/tui.py:confirm_request_lines, kyagent/tui.py:confirm This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
7 occurrences
repo-level (7 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 5 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: benchmarks/port-conflict-v1/gen_artifacts.py:port_open, benchmarks/open-deleted-v1/gen_artifacts.py:port_open, benchmarks/runaway-cpu-v1/gen_artifacts.py:port_open This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see htt…
5 occurrences
repo-level (5 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: kyagent/agent/llm.py:chat_stream, kyagent/agent/llm.py:chat_stream, kyagent/agent/llm.py:chat_stream, kyagent/agent/llm.py:chat_stream This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). …
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: kyagent/agent/llm.py:chat, kyagent/agent/llm.py:chat, kyagent/agent/llm.py:chat, kyagent/agent/llm.py:chat This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why …
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: kyagent/mcp/tools/filesystem.py:build_argv, kyagent/mcp/tools/filesystem.py:build_argv, kyagent/mcp/tools/filesystem.py:build_argv, kyagent/mcp/tools/filesystem.py:build_argv This is *the* AI-coder failure mode (4× more duplication in vibe-coded repo…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: kyagent/mcp/tools/disk.py:build_argv, kyagent/mcp/tools/disk.py:build_argv, kyagent/mcp/tools/disk.py:build_argv, kyagent/mcp/tools/disk.py:build_argv This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 9 places
Functions with the same first-5-line body hash: kyagent/mcp/tools/process.py:build_argv, kyagent/mcp/tools/process.py:build_argv, kyagent/mcp/tools/process.py:build_argv, kyagent/mcp/tools/process.py:build_argv This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see http…
duplicatesduplication
low System graph quality License conf 1.00 No license file detected
No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake.
Repo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `has_old` in kyagent/mcp/tools/loongarch.py:87
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `score_copy` in tests/test_benchmark_suite_runner.py:22
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `test_world_check_does_not_treat_unrelated_nonzero_as_old` in tests/test_loongarch_hardening.py:195
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: auto_cancel_choice
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/interactive.py:44
low System graph software Dead code conf 1.00 Possibly dead Python function: auto_deny
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/confirm.py:43
low System graph software Dead code conf 1.00 Possibly dead Python function: build_agent
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/agent/core.py:1388
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_audit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:110
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_dnf_cache
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:247
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_mysql_binlog
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:215
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_nginx_access
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:69
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_nginx_error
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:88
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_pip_log
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:198
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_portal_json
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:177
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_secure
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:158
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_syslog
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:137
low System graph software Dead code conf 1.00 Possibly dead Python function: gen_utmp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
benchmarks/cleanup-v2/gen_artifacts.py:225
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_data
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/web_knowledge.py:39
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_progress
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/tui.py:246
low System graph software Dead code conf 1.00 Possibly dead Python function: is_blocked
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/safety/guardrail.py:40
low System graph software Dead code conf 1.00 Possibly dead Python function: is_blocked
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/safety/intent.py:138
low System graph software Dead code conf 1.00 Possibly dead Python function: needs_confirm
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/safety/guardrail.py:43
low System graph software Dead code conf 1.00 Possibly dead Python function: needs_confirm
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/safety/intent.py:141
low System graph software Dead code conf 1.00 Possibly dead Python function: noop_progress
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/progress.py:57
low System graph software Dead code conf 1.00 Possibly dead Python function: prompt_user_choice
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/tui.py:470
low System graph software Dead code conf 1.00 Possibly dead Python function: web_confirm
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/web/server.py:350
low System graph software Dead code conf 1.00 Possibly dead Python function: web_user_choice
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
kyagent/web/server.py:360
low System graph quality Complexity conf 1.00 Very large file: kyagent/agent/core.py (1393 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/b9c7607e-f09f-425a-9a08-640251919b28/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/b9c7607e-f09f-425a-9a08-640251919b28/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.