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.

SandroHub013/UnaBetting

https://github.com/SandroHub013/UnaBetting · scanned 2026-06-16 00:02 UTC (2 months, 3 weeks ago)

84 raw signals (0 security + 84 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 3 weeks ago · v1 · 81 actionable findings from 1 signal source. 3 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 72.9/100 with 100.0% coverage. It contains 1088 nodes across 27 cross-layer flows, written primarily in mixed languages. Engine surfaced 84 findings — concentrated in quality (30), api (19), software (17). Risk profile is high: 0 critical, 9 high, 16 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 74 of 81 actionable findings. 84 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 `place_bet` without auth dependency — src/dashboard/data_api.py:259
`@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/dashboard/data_api.py:259 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `resolve_bet` without auth dependency — src/dashboard/data_api.py:297
`@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/dashboard/data_api.py:297 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `screenshot` without auth dependency — src/dashboard/data_api.py:487
`@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/dashboard/data_api.py:487 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `test_chat_model` without auth dependency — src/dashboard/data_api.py:1270
`@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/dashboard/data_api.py:1270 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `undo_bet` without auth dependency — src/dashboard/data_api.py:317
`@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/dashboard/data_api.py:317 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `update_apply` without auth dependency — src/dashboard/data_api.py:1140
`@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/dashboard/data_api.py:1140 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI PUT `put_chat_config` without auth dependency — src/dashboard/data_api.py:1239
`@router.put` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
src/dashboard/data_api.py:1239 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI PUT `put_config` without auth dependency — src/dashboard/data_api.py:1224
`@router.put` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
src/dashboard/data_api.py:1224 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI PUT `put_file` without auth dependency — src/dashboard/data_api.py:445
`@router.put` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
src/dashboard/data_api.py:445 securityAuth fastapi unauth mutation
medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — src/dashboard/static/app.js:808
Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — src/dashboard/static/graph3d.js:67
Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout.
runtime safetyRobustness
medium System graph quality Agent instructions conf 1.00 Agent authority lacks a verifier contract: .claude/agents/security-auditor.md
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/agents/security-auditor.md VerificationClaude instruction
medium System graph quality Agent instructions conf 1.00 Agent authority lacks a verifier contract: .claude/skills/security-review/SKILL.md
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/skills/security-review/SKILL.md VerificationClaude instruction
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/release.yml CI/CD securitySupply chainGithub actions
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in docs/web/graph3d.html:53
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
docs/web/graph3d.html:53 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in graphify-out/graph3d.html:88
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
graphify-out/graph3d.html:88 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in src/dashboard/static/app.js:224
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
src/dashboard/static/app.js:224 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in src/dashboard/static/graph3d.js:76
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
src/dashboard/static/graph3d.js:76 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'subprocess_shell_true' in video_mission/video_engine.py:41
Found a known-risky pattern (subprocess_shell_true). Review and replace if possible.
video_mission/video_engine.py:41 Subprocess shell true
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — scripts/check_results.py:41
`subprocess.run(...)` 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 — scripts/publish_release.py:29
`subprocess.run(...)` 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 — src/ui/app.py:503
`subprocess.run(...)` 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 — video_mission/video_engine.py:41
`subprocess.run(...)` 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 security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
medium System graph quality Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 17 placeholder/mock markers across 4 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 Integrity conf 1.00 10 env vars used in code but missing from .env.example
Drift between code and config docs. The first few: `BRAVE_API_KEY`, `CHAT_MODEL`, `DASHBOARD_TOKEN`, `LOCALAPPDATA`, `OLLAMA_URL`, `SHELL`, `UNABETTING_DATA_DIR`, `UNABETTING_REPO` + 2 more. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break.
config drift
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 542 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 cicd CI/CD security conf 1.00 GitHub Action is tag-pinned rather than SHA-pinned
actions/setup-python@v5 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
.github/workflows/ci.yml:16 CI/CD securitySupply chainGithub actions
low System graph quality Tests conf 1.00 Low test-to-source ratio
17 tests / 77 src (ratio 0.22).
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: scripts/diagnostics/debug_prediction.py:debug_full_match, scripts/diagnostics/debug_tien.py:debug_tien_sinner This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document w…
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `days_old` in update_data.py:166
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 `merged_v2` in tests/test_updater.py:106
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 `static_app_old` in docs/web/graph-data.js:1
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_config_put_atomically_saves_valid_config_with_backup` in tests/test_dashboard_api.py:252
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: action_refresh_data
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ui/app.py:479
low System graph software Dead code conf 1.00 Possibly dead Python function: add_metric_card
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
scripts/diagnostics/generate_pptx.py:91
low System graph software Dead code conf 1.00 Possibly dead Python function: compose
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ui/app.py:198
low System graph software Dead code conf 1.00 Possibly dead Python function: format_news_for_prompt
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/live/web_research.py:186
low System graph software Dead code conf 1.00 Possibly dead Python function: forward
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/models/dl_model.py:43
low System graph software Dead code conf 1.00 Possibly dead Python function: forward
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/models/pytorch_ensemble.py:104
low System graph software Dead code conf 1.00 Possibly dead Python function: http_open
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/data_api.py:723
low System graph software Dead code conf 1.00 Possibly dead Python function: https_open
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/data_api.py:728
low System graph software Dead code conf 1.00 Possibly dead Python function: save_daily_snapshot
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/betting/portfolio.py:477
low System graph software Dead code conf 1.00 Possibly dead Python function: speak_last
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ui/audio_engine.py:199
low System graph software Dead code conf 1.00 Possibly dead Python function: stop_all
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/ui/audio_engine.py:204
low System graph software Dead code conf 1.00 Possibly dead Python function: t_get_bankroll
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:130
low System graph software Dead code conf 1.00 Possibly dead Python function: t_get_model_metrics
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:124
low System graph software Dead code conf 1.00 Possibly dead Python function: t_get_signals
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:113
low System graph software Dead code conf 1.00 Possibly dead Python function: t_get_today_matches
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:60
low System graph software Dead code conf 1.00 Possibly dead Python function: t_scan_match_live
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:136
low System graph software Dead code conf 1.00 Possibly dead Python function: t_search_knowledge
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/dashboard/chat.py:158
low System graph quality Provenance conf 1.00 Shallow git history limits provenance confidence
The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence.
Git historyGenerated repo pattern
low System graph quality Integrity conf 1.00 Stub function `play_music` (body is just `pass`/`return`) — src/ui/app.py:47
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph api Wiring conf 1.00 Unused endpoint: GET /
`src/dashboard/server.py` declares `GET /` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /bets
`src/dashboard/data_api.py` declares `GET /bets` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /browse
`src/dashboard/data_api.py` declares `GET /browse` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /chat/config
`src/dashboard/data_api.py` declares `GET /chat/config` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /chat/models
`src/dashboard/data_api.py` declares `GET /chat/models` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /clv
`src/dashboard/data_api.py` declares `GET /clv` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /config
`src/dashboard/data_api.py` declares `GET /config` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /decisions
`src/dashboard/data_api.py` declares `GET /decisions` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /file
`src/dashboard/data_api.py` declares `GET /file` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /loops
`src/dashboard/data_api.py` declares `GET /loops` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /media
`src/dashboard/data_api.py` declares `GET /media` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /model
`src/dashboard/data_api.py` declares `GET /model` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /odds
`src/dashboard/data_api.py` declares `GET /odds` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /overview
`src/dashboard/data_api.py` declares `GET /overview` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /session
`src/dashboard/data_api.py` declares `GET /session` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /tree
`src/dashboard/data_api.py` declares `GET /tree` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: GET /update/check
`src/dashboard/data_api.py` declares `GET /update/check` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: POST /bet/{bet_id}/resolve
`src/dashboard/data_api.py` declares `POST /bet/{bet_id}/resolve` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: POST /bet/{bet_id}/undo
`src/dashboard/data_api.py` declares `POST /bet/{bet_id}/undo` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph quality Complexity conf 1.00 Very large file: src/dashboard/data_api.py (1275 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/dashboard/static/app.js (1738 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/28b599f2-1fab-4547-a34f-f73d3dda2004/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/28b599f2-1fab-4547-a34f-f73d3dda2004/

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.