{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "scanner-f5d472f62bce8e01", "name": "Possibly dead Python function: run_scan", "shortDescription": {"text": "Possibly dead Python function: run_scan"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-64d46960982c61c5", "name": "Possibly dead Python function: run_morning_digest", "shortDescription": {"text": "Possibly dead Python function: run_morning_digest"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-939e32dfabe7df9f", "name": "Possibly dead Python function: analyze_coin", "shortDescription": {"text": "Possibly dead Python function: analyze_coin"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-a2f62227f894f206", "name": "Possibly dead Python function: set_bot_state", "shortDescription": {"text": "Possibly dead Python function: set_bot_state"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-9776cb3f4c6c3389", "name": "Insecure pattern 'cors_wildcard' in cloudflare-bybit-proxy.js:30", "shortDescription": {"text": "Insecure pattern 'cors_wildcard' in cloudflare-bybit-proxy.js:30"}, "fullDescription": {"text": "Found a known-risky pattern (cors_wildcard). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6372cebde0220094", "name": "No auth library detected", "shortDescription": {"text": "No auth library detected"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-4601e3ad3bb28677", "name": "No CI/CD pipelines detected", "shortDescription": {"text": "No CI/CD pipelines detected"}, "fullDescription": {"text": "No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-b068e848ca8955e1", "name": "Very large file: main.py (2273 lines)", "shortDescription": {"text": "Very large file: main.py (2273 lines)"}, "fullDescription": {"text": "Files with >800 lines often hide complexity hotspots and discourage tests."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ea3b5e389d8c9c0f", "name": "Low test-to-source ratio", "shortDescription": {"text": "Low test-to-source ratio"}, "fullDescription": {"text": "4 tests / 18 src (ratio 0.22)."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-faccb9061e9b52a0", "name": "No README detected", "shortDescription": {"text": "No README detected"}, "fullDescription": {"text": "No README file was found. Generated repos without README context are hard to operate, validate, or safely hand off."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 71 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-2d0c7b7ab8f8aacf", "name": "Critical user flow still appears backed by mock or placeholder data", "shortDescription": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: license, ci, tests, operator-readme. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-27527a3f681b9685", "name": "Commented-code block (9 lines) in cloudflare-bybit-proxy.js:3", "shortDescription": {"text": "Commented-code block (9 lines) in cloudflare-bybit-proxy.js:3"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-9afc5967d156f0e8", "name": "Commented-code block (9 lines) in config.py:149", "shortDescription": {"text": "Commented-code block (9 lines) in config.py:149"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-ea85704d9618162f", "name": "Legacy-named symbol `c_old` in src/signal_filter.py:66", "shortDescription": {"text": "Legacy-named symbol `c_old` in src/signal_filter.py:66"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-816e5d748d6d58ef", "name": "Commented-code block (5 lines) in src/claude_analyzer.py:32", "shortDescription": {"text": "Commented-code block (5 lines) in src/claude_analyzer.py:32"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-0c19f2abf409eef8", "name": "Commented-code block (5 lines) in src/binance_client.py:25", "shortDescription": {"text": "Commented-code block (5 lines) in src/binance_client.py:25"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-04f535fe6a199f86", "name": "158 env vars used in code but missing from .env.example", "shortDescription": {"text": "158 env vars used in code but missing from .env.example"}, "fullDescription": {"text": "Drift between code and config docs. The first few: `ADAPTIVE_BEAR_SKIP_NEW_YORK`, `ADAPTIVE_BEAR_SQUEEZE_GUARD`, `ADAPTIVE_BEAR_VOL_MAX_RATIO`, `ADAPTIVE_BEAR_VOL_MIN_RATIO`, `ADAPTIVE_CHOP_EFF_MIN`, `ADAPTIVE_CHOP_MIN_VOLUME`, `ADAPTIVE_CHOP_RISK_MULT`, `ADAPTIVE_CHOP_SCORE_BUMP` + 150 more. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-2c04133e54348533", "name": "Near-duplicate function bodies in 2 places", "shortDescription": {"text": "Near-duplicate function bodies in 2 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\ncompare_backtests.py:wr, walk_forward_validate.py:wr\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-0b41be6a266c597f", "name": "Flask mutation route `webhook` without `@login_required` \u2014 main.py:1307", "shortDescription": {"text": "Flask mutation route `webhook` without `@login_required` \u2014 main.py:1307"}, "fullDescription": {"text": "Flask route declares POST/PUT/DELETE/PATCH methods without an auth decorator. Add `@login_required` (Flask-Login) or equivalent."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/25413"}, "properties": {"repository": "dimonp4ik/tusa-crypto-bot", "repoUrl": "https://github.com/dimonp4ik/tusa-crypto-bot", "branch": "main"}, "results": [{"ruleId": "scanner-f5d472f62bce8e01", "level": "note", "message": {"text": "Possibly dead Python function: run_scan"}, "properties": {"repobilityId": "0fbb17eca833e399", "scanner": "scanner-primary", "fingerprint": "f5d472f62bce8e01", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "main.py:1859"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-64d46960982c61c5", "level": "note", "message": {"text": "Possibly dead Python function: run_morning_digest"}, "properties": {"repobilityId": "ee02e44cbde3df14", "scanner": "scanner-primary", "fingerprint": "64d46960982c61c5", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "main.py:2131"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-939e32dfabe7df9f", "level": "note", "message": {"text": "Possibly dead Python function: analyze_coin"}, "properties": {"repobilityId": "dc0b42aaccc51625", "scanner": "scanner-primary", "fingerprint": "939e32dfabe7df9f", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/signal_filter.py:944"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-a2f62227f894f206", "level": "note", "message": {"text": "Possibly dead Python function: set_bot_state"}, "properties": {"repobilityId": "3b6d31d62442ca92", "scanner": "scanner-primary", "fingerprint": "a2f62227f894f206", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/db.py:177"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-9776cb3f4c6c3389", "level": "warning", "message": {"text": "Insecure pattern 'cors_wildcard' in cloudflare-bybit-proxy.js:30"}, "properties": {"repobilityId": "a4945bd0c1f7687a", "scanner": "scanner-primary", "fingerprint": "9776cb3f4c6c3389", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "cors_wildcard"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "cloudflare-bybit-proxy.js"}, "region": {"startLine": 30}}}]}, {"ruleId": "scanner-6372cebde0220094", "level": "warning", "message": {"text": "No auth library detected"}, "properties": {"repobilityId": "a5b6035a5bbf8054", "scanner": "scanner-primary", "fingerprint": "6372cebde0220094", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["coverage", "auth"]}}, {"ruleId": "scanner-4601e3ad3bb28677", "level": "warning", "message": {"text": "No CI/CD pipelines detected"}, "properties": {"repobilityId": "c3ee439bce2bc51e", "scanner": "scanner-primary", "fingerprint": "4601e3ad3bb28677", "layer": "cicd", "severity": "medium", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-b068e848ca8955e1", "level": "note", "message": {"text": "Very large file: main.py (2273 lines)"}, "properties": {"repobilityId": "d28330f452f23706", "scanner": "scanner-primary", "fingerprint": "b068e848ca8955e1", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["complexity"]}}, {"ruleId": "scanner-ea3b5e389d8c9c0f", "level": "note", "message": {"text": "Low test-to-source ratio"}, "properties": {"repobilityId": "ef7b2552cc00a375", "scanner": "scanner-primary", "fingerprint": "ea3b5e389d8c9c0f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["tests"]}}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "1655632c1620a203", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-faccb9061e9b52a0", "level": "note", "message": {"text": "No README detected"}, "properties": {"repobilityId": "3293885bd9472573", "scanner": "scanner-primary", "fingerprint": "faccb9061e9b52a0", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["docs", "readme", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "191b248cb137c833", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-2d0c7b7ab8f8aacf", "level": "warning", "message": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "properties": {"repobilityId": "d29329366855f1f8", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "warning", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "8fb8785eccad7d7f", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-27527a3f681b9685", "level": "none", "message": {"text": "Commented-code block (9 lines) in cloudflare-bybit-proxy.js:3"}, "properties": {"repobilityId": "76efbbbf10656930", "scanner": "scanner-primary", "fingerprint": "27527a3f681b9685", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-9afc5967d156f0e8", "level": "none", "message": {"text": "Commented-code block (9 lines) in config.py:149"}, "properties": {"repobilityId": "a63df5abc809064e", "scanner": "scanner-primary", "fingerprint": "9afc5967d156f0e8", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-ea85704d9618162f", "level": "note", "message": {"text": "Legacy-named symbol `c_old` in src/signal_filter.py:66"}, "properties": {"repobilityId": "b8d3d0695d237308", "scanner": "scanner-primary", "fingerprint": "ea85704d9618162f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-816e5d748d6d58ef", "level": "none", "message": {"text": "Commented-code block (5 lines) in src/claude_analyzer.py:32"}, "properties": {"repobilityId": "18f43142616904a4", "scanner": "scanner-primary", "fingerprint": "816e5d748d6d58ef", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-0c19f2abf409eef8", "level": "none", "message": {"text": "Commented-code block (5 lines) in src/binance_client.py:25"}, "properties": {"repobilityId": "fff0cf534081d490", "scanner": "scanner-primary", "fingerprint": "0c19f2abf409eef8", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-04f535fe6a199f86", "level": "note", "message": {"text": "158 env vars used in code but missing from .env.example"}, "properties": {"repobilityId": "8d064321f0dbe663", "scanner": "scanner-primary", "fingerprint": "04f535fe6a199f86", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "config-drift"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "902842d55de98953", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "a3e298b5ba39a4c1", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-0b41be6a266c597f", "level": "error", "message": {"text": "Flask mutation route `webhook` without `@login_required` \u2014 main.py:1307"}, "properties": {"repobilityId": "2a903b8c1b33ff56", "scanner": "scanner-primary", "fingerprint": "0b41be6a266c597f", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.flask.unauth_route"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "main.py"}, "region": {"startLine": 1307}}}]}]}]}