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.

arrow2nd/ruru-ai

https://github.com/arrow2nd/ruru-ai · scanned 2026-06-17 01:35 UTC (1 month, 2 weeks ago)

54 raw signals (0 security + 54 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 2 weeks ago · v2 · last Δ -9.8 (diff) · 39 actionable findings from 1 signal source. 15 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 66.9/100 with 77.8% coverage. It contains 1933 nodes across 1 cross-layer flows, written primarily in mixed languages. Engine surfaced 54 findings — concentrated in quality (43), software (7), hardware (3). Risk profile is high: 0 critical, 1 high, 4 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 32 of 39 actionable findings. 54 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 `ota_handler` without auth dependency — src/ruru/adapters/websocket/ota.py:52
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
src/ruru/adapters/websocket/ota.py:52 securityAuth fastapi unauth mutation
medium System graph quality Agent instructions conf 1.00 Agent authority lacks a verifier contract: .claude/settings.json
This agent instruction grants code or shell authority but does not state the verification gate that decides promotion. The recurring safe pattern is: LLM proposes; deterministic tests/build/security checks verify; only verified code promotes.
.claude/settings.json VerificationClaude instruction
medium System graph quality Agent instructions conf 1.00 Agent instructions exist but release-hardening basics are missing
AI-coder instruction files were found, but the repo is missing ci. Treat this as a contract gap: the agent is guided, but the generated output is not yet guarded by the controls that make it repeatable.
Repo hardeningGenerated repo pattern
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 hardware Security conf 1.00 Dockerfile runs as root: Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
low System graph hardware Supply chain conf 1.00 2 occurrences Docker base image is tag-pinned but not digest-pinned: python:3.12-slim
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
lines 1, 26
Dockerfile:1, 26 (2 hits)
containersPinned dependencies
low System graph quality Integrity conf 1.00 11 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/ruru/adapters/websocket/output.py:send_text, src/ruru/adapters/websocket/output.py:send 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 separat…
11 occurrences
repo-level (11 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: src/ruru/adapters/websocket/tools.py:execute, src/ruru/adapters/websocket/tools.py:execute, src/ruru/adapters/websocket/tools.py:execute This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene)…
5 occurrences
repo-level (5 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: src/ruru/core/tools/builtin/task.py:execute, src/ruru/core/tools/builtin/task.py:execute, src/ruru/core/tools/builtin/task.py:execute, src/ruru/core/tools/builtin/task.py:execute This is *the* AI-coder failure mode (4× more duplication in vibe-coded …
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: src/ruru/adapters/websocket/protocol.py:to_dict, src/ruru/adapters/websocket/protocol.py:to_dict, src/ruru/adapters/websocket/protocol.py:to_dict, src/ruru/adapters/websocket/protocol.py:to_dict This is *the* AI-coder failure mode (4× more duplicatio…
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `007_v4_drop_legacy` in tests/test_db.py:42
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 `007_v4_drop_legacy` in tests/test_db_migration_v4.py:167
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 `_stt_unused` in tests/test_l6_websocket_session.py:533
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 `_task_metadata_backup` in src/ruru/core/scheduler/store.py:126
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 `_task_metadata_backup` in tests/test_l3_dream_v4.py:1068
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 `e_old` in tests/test_db_v4.py:272
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 `model_copy` in tests/test_l2_recall.py:74
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 `model_copy` in tests/test_l5_engine.py:342
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 `model_copy` in tests/test_l5_main.py:302
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 `model_copy` in tests/test_l8_exploration_engine.py:146
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 `model_copy` in tests/test_l8_exploration_runner.py:65
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: count_assistant_since
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/db/message.py:159
low System graph software Dead code conf 1.00 Possibly dead Python function: emit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/error_notifier.py:79
low System graph software Dead code conf 1.00 Possibly dead Python function: enable_device_tools
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/adapters/websocket/adapter.py:108
low System graph software Dead code conf 1.00 Possibly dead Python function: list_by_partner
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/db/conversation.py:57
low System graph software Dead code conf 1.00 Possibly dead Python function: list_unended
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/db/conversation.py:52
low System graph software Dead code conf 1.00 Possibly dead Python function: promote_edges
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/memory/promote.py:264
low System graph software Dead code conf 1.00 Possibly dead Python function: save_cache
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ruru/core/tools/registry.py:269
low System graph quality Integrity conf 1.00 Stub function `_empty_iter` (body is just `pass`/`return`) — src/ruru/core/llm/openai.py:176
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `send_face` (body is just `pass`/`return`) — src/ruru/adapters/discord/adapter.py:914
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: src/ruru/core/engine.py (1059 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tests/test_l5_engine.py (1448 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/132696e5-910a-4d68-955b-d179e245d636/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/132696e5-910a-4d68-955b-d179e245d636/

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.