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.

rkarim25/Strategy

https://github.com/rkarim25/Strategy · scanned 2026-06-15 23:52 UTC (2 months, 3 weeks ago)

72 raw signals (0 security + 72 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 3 weeks ago · v1 · 52 actionable findings from 1 signal source. 20 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.2/100 with 66.7% coverage. It contains 1584 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 72 findings — concentrated in quality (40), security (12), cicd (8). Risk profile is low: 0 critical, 0 high, 22 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 50 of 52 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.

medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — cloudflare_spx_quote_worker.js:7
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 — etp-leverage.js:55
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 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/deploy-pages.yml CI/CD securitySupply chainGithub actions
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/update-market-data.yml CI/CD securitySupply chainGithub actions
medium System graph security security conf 1.00 Insecure pattern 'cors_wildcard' in cloudflare_spx_quote_worker.js:28
Found a known-risky pattern (cors_wildcard). Review and replace if possible.
cloudflare_spx_quote_worker.js:28 Cors wildcard
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in 3bal_guarded.js:287
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
3bal_guarded.js:287 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in dax_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
dax_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in ftse250_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
ftse250_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in gold_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
gold_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in index.html:1564
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
index.html:1564 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in instruments-page.js:80
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
instruments-page.js:80 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in lqq3_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
lqq3_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in msci_em_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
msci_em_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in msci_world_guarded.js:251
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
msci_world_guarded.js:251 Direct innerhtml assignment
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in ndx_guarded.js:250
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
ndx_guarded.js:250 Direct innerhtml assignment
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — regenerate_website_leveraged_backtests.py:33
`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 network Security conf 1.00 Privileged port 16 in use
Port 16 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.github/workflows/update-market-data.yml Ports
medium System graph network Security conf 1.00 Privileged port 21 in use
Port 21 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.github/workflows/update-market-data.yml Ports
medium System graph network Security conf 1.00 Privileged port 30 in use
Port 30 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.github/workflows/update-market-data.yml Ports
medium System graph network Security conf 1.00 Privileged port 7 in use
Port 7 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.github/workflows/update-market-data.yml Ports
medium System graph network Security conf 1.00 Privileged port 8 in use
Port 8 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
.github/workflows/update-market-data.yml Ports
low System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, operator-readme. 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 409 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 6 occurrences GitHub Action is tag-pinned rather than SHA-pinned
actions/checkout@v6 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
2 files, 6 locations
.github/workflows/deploy-pages.yml:28, 31, 34, 40 (4 hits)
.github/workflows/update-market-data.yml:29, 32 (2 hits)
CI/CD securitySupply chainGithub actions
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 17 places
Functions with the same first-5-line body hash: backtest_spx_guarded.py:make_engine, backtest_guarded_tiered_sma20_50_200.py:make_engine, backtest_guarded_assets.py:make_engine, monte_carlo_momentum_strategies.py:make_engine This is *the* AI-coder failure mode (4× more duplication in vibe-coded re…
duplicatesduplication
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: backtest_spx_guarded.py:download_spx_panel, backtest_long_hold_momentum_strategies.py:load_ohlc_data 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'r…
11 occurrences
repo-level (11 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: backtest_guarded_tiered_sma20_50_200.py:sma_cash_leverage, forward_test_guarded_tiered_sma50_200.py:sma_cash_leverage, test_tiered_dd_recovery_guarded.py:sma_cash_leverage This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos —…
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: analyze_smart_fundamental_overlays.py:main, analyze_unemployment_recovery_caps.py:main, analyze_fundamental_overlay_filters.py:main, analyze_free_data_overlay_exhaustion.py:main This is *the* AI-coder failure mode (4× more duplication in vibe-coded r…
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: backtest_spx_guarded.py:pct, backtest_guarded_assets.py:pct, backtest_lqq3_guarded.py:pct, backtest_ndx_guarded.py:pct This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or d…
3 occurrences
repo-level (3 hits)
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 Docs conf 1.00 No README detected
No README file was found. Generated repos without README context are hard to operate, validate, or safely hand off.
ReadmeRepo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `url_backup` in refresh_holdings_prices.py:58
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: block_bootstrap_paths
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
engine.py:68
low System graph software Dead code conf 1.00 Possibly dead Python function: by_slug
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
guarded_asset_registry.py:161
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_historical_news_scores
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
analyze_news_score_strategy.py:378
low System graph software Dead code conf 1.00 Possibly dead Python function: map_aggressive
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
analyze_news_score_strategy.py:476
low System graph software Dead code conf 1.00 Possibly dead Python function: map_binary
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
analyze_news_score_strategy.py:496
low System graph software Dead code conf 1.00 Possibly dead Python function: map_conservative
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
analyze_news_score_strategy.py:486
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 `generate_leverage` (body is just `pass`/`return`) — strategies.py:28
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: 3bal_guarded.js (2140 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: dax_guarded.js (2190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: ftse250_guarded.js (2190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: gold_guarded.js (2202 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: lqq3_guarded.js (2190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: msci_em_guarded.js (2190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: msci_world_guarded.js (2190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: ndx_guarded.js (2198 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: update_static_market_data.py (1826 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/a4dc0b64-26ae-48f9-bc8b-479b5cb9f8d3/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/a4dc0b64-26ae-48f9-bc8b-479b5cb9f8d3/

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.