"AI-Trader: 100% Fully-Automated Agent-Native Trading"
This report summarizes scanner evidence for HKUDS/AI-Trader, a Python project with 22,732 GitHub stars. SynthScan examined 52,811 lines of code across 140 source files, recording 744 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 17.5 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 384 finding(s).
Are imports declared and package/API names verified? 51 finding(s).
Are wrappers, guards, and repeated structures necessary? 646 finding(s).
Which changes need focused human review? 744 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 744 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/scripts/analyze_experiments.py | 233 | def _legacy_treatment_effect_rows(rows: list[dict], metric: str, family: str) -> list[dict]: | CODE |
| LOW | research/scripts/research_common.py | 30 | def add_common_export_filters(parser: argparse.ArgumentParser) -> None: | CODE |
| LOW | service/frontend/src/appShared.tsx | 152 | export function buildLeaderboardChartData( | CODE |
| LOW | service/frontend/src/appShared.tsx | 224 | function getPolymarketDisplayTitle(item: any) { | CODE |
| LOW | service/frontend/src/ChallengePage.tsx | 62 | function defaultTradeSymbolForChallenge(challenge: any) { | CODE |
| LOW | service/frontend/src/appCommunityPages.tsx | 78 | async function fetchActiveChallengeOptions() { | CODE |
| LOW | service/frontend/src/appCommunityPages.tsx | 90 | async function fetchMyTeamMissionOptions(token: string | null) { | CODE |
| LOW | service/server/experiment_metrics.py | 25 | def _max_drawdown_from_history(rows: list[dict[str, Any]]) -> float: | CODE |
| LOW | service/server/experiment_metrics.py | 36 | def refresh_agent_metric_snapshots(window_days: int = 7, window_key: str | None = None) -> dict[str, Any]: | CODE |
| LOW | service/server/routes_signals.py | 60 | def _agent_experiment_context(agent_id: int) -> list[dict[str, Any]]: | CODE |
| LOW | service/server/routes_signals.py | 100 | def _primary_experiment_context(agent_id: int) -> dict[str, Any] | None: | CODE |
| LOW | service/server/routes_shared.py | 130 | def allow_sync_price_fetch_in_api() -> bool: | CODE |
| LOW | service/server/routes_shared.py | 138 | def should_fetch_server_trade_price(market: str) -> bool: | CODE |
| LOW | service/server/routes_shared.py | 164 | def format_polymarket_reference(reference: str) -> str: | CODE |
| LOW | service/server/routes_shared.py | 217 | def check_price_api_rate_limit(ctx: RouteContext, agent_id: int) -> bool: | CODE |
| LOW | service/server/routes_shared.py | 265 | def invalidate_agent_message_caches(ctx: RouteContext, agent_id: int) -> None: | CODE |
| LOW⚡ | service/server/routes_shared.py | 709 | def invalidate_agent_signal_caches(ctx: RouteContext) -> None: | STRING |
| LOW⚡ | service/server/routes_shared.py | 716 | def invalidate_signal_list_caches(ctx: RouteContext) -> None: | STRING |
| LOW⚡ | service/server/routes_shared.py | 726 | def invalidate_leaderboard_caches(ctx: RouteContext) -> None: | STRING |
| LOW⚡ | service/server/routes_shared.py | 733 | def invalidate_trending_caches() -> None: | STRING |
| LOW⚡ | service/server/routes_shared.py | 741 | def invalidate_signal_read_caches(ctx: RouteContext, refresh_trending: bool = False) -> None: | STRING |
| LOW⚡ | service/server/routes_shared.py | 748 | def invalidate_position_cache(ctx: RouteContext, agent_id: int | None = None) -> None: | STRING |
| LOW | service/server/routes_shared.py | 416 | def _record_experiment_notice_exposed(agent_id: int, notice: dict[str, Any], *, surface: str) -> None: | STRING |
| LOW | service/server/routes_shared.py | 490 | def attach_experiment_unread_notice( | STRING |
| LOW | service/server/routes_shared.py | 584 | def normalize_content_fingerprint(content: str) -> str: | STRING |
| LOW | service/server/routes_shared.py | 588 | def enforce_content_rate_limit( | STRING |
| LOW | service/server/experiment_notifications.py | 159 | def resolve_experiment_notification_targets( | CODE |
| LOW | service/server/experiment_notifications.py | 198 | def resolve_recent_active_experiment_targets( | STRING |
| LOW | service/server/experiment_notifications.py | 241 | def resolve_unread_active_experiment_targets( | STRING |
| LOW | service/server/experiment_notifications.py | 358 | def resolve_challenge_notification_targets( | STRING |
| LOW | service/server/experiment_notifications.py | 395 | def resolve_team_mission_notification_targets( | STRING |
| LOW | service/server/experiment_notifications.py | 493 | def _validate_notification_payload(message_type: str, title: str, content: str) -> None: | STRING |
| LOW | service/server/experiment_notifications.py | 509 | def validate_notification_request(message_type: str, title: str, content: str) -> None: | STRING |
| LOW | service/server/experiment_notifications.py | 728 | def build_experiment_target_rule( | CODE |
| LOW | service/server/services.py | 74 | def _get_or_issue_agent_token(agent: Dict) -> str: | CODE |
| LOW | service/server/services.py | 190 | def _update_position_from_signal( | CODE |
| LOW | service/server/services.py | 347 | async def _broadcast_signal_to_followers(leader_id: int, signal_data: dict) -> int: | STRING |
| LOW | service/server/research_exports.py | 346 | def fetch_challenge_export_rows( | CODE |
| LOW | service/server/research_exports.py | 392 | def fetch_research_export_rows( | STRING |
| LOW | service/server/research_exports.py | 1222 | def get_research_dataset_names(primary_only: bool = False) -> list[str]: | STRING |
| LOW | service/server/research_exports.py | 1226 | def get_research_export_columns(dataset_name: str) -> list[str]: | STRING |
| LOW | service/server/research_exports.py | 1310 | def _append_agent_filter_templates( | STRING |
| LOW | service/server/research_exports.py | 1377 | def fetch_research_export_rows( | STRING |
| LOW | service/server/research_exports.py | 1434 | def research_schema_for_dataset(dataset_name: str) -> dict[str, Any]: | STRING |
| LOW | service/server/research_exports.py | 1542 | def _export_single_research_file(output_dir: str | Path, filename: str, **filters: Any) -> str: | STRING |
| LOW | service/server/research_exports.py | 1565 | def fetch_challenge_export_rows(filename: str, **filters: Any) -> tuple[list[str], list[dict[str, Any]]]: | STRING |
| LOW⚡ | service/server/tasks.py | 130 | def _polymarket_updown_expired_seconds(symbol: str | None, now_ts: float) -> Optional[float]: | CODE |
| LOW⚡ | service/server/tasks.py | 141 | def _backfill_polymarket_position_metadata() -> None: | CODE |
| LOW | service/server/tasks.py | 63 | def _price_failure_retry_after(key: tuple[str, str, str, str], now_ts: float) -> float: | CODE |
| LOW | service/server/tasks.py | 679 | async def refresh_macro_signal_snapshots_loop(): | CODE |
| LOW | service/server/tasks.py | 702 | async def refresh_etf_flow_snapshots_loop(): | CODE |
| LOW | service/server/tasks.py | 725 | async def refresh_stock_analysis_snapshots_loop(): | CODE |
| LOW | service/server/tasks.py | 762 | def _record_profit_history_once() -> int: | CODE |
| LOW | service/server/tasks.py | 928 | async def settle_polymarket_positions(): | CODE |
| LOW | service/server/tasks.py | 1137 | async def score_team_contributions_loop(): | CODE |
| LOW | service/server/tasks.py | 1155 | async def settle_team_missions_loop(): | CODE |
| LOW | service/server/tasks.py | 1173 | async def score_signal_quality_loop(): | CODE |
| LOW | service/server/tasks.py | 1191 | async def refresh_agent_metric_snapshots_loop(): | CODE |
| LOW | service/server/tasks.py | 1247 | def background_tasks_enabled_for_api() -> bool: | CODE |
| LOW | service/server/tasks.py | 1252 | def get_enabled_background_task_names() -> list[str]: | CODE |
| 262 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/scripts/research_common.py | 77 | except Exception: | CODE |
| LOW | research/scripts/research_common.py | 89 | except Exception: | CODE |
| LOW | research/scripts/research_common.py | 98 | except Exception: | CODE |
| LOW | skills/heartbeat/SKILL.md | 84 | except Exception as e: | CODE |
| MEDIUM | skills/heartbeat/SKILL.md | 85 | print(f"Error: {e}") | CODE |
| LOW | service/server/experiment_metrics.py | 164 | except Exception: | CODE |
| LOW | service/server/experiment_metrics.py | 327 | except Exception: | CODE |
| LOW | service/server/worker.py | 33 | except Exception as exc: | CODE |
| LOW | service/server/worker.py | 67 | except Exception: | CODE |
| LOW | service/server/worker.py | 71 | except Exception: | CODE |
| LOW | service/server/worker.py | 85 | except Exception: | CODE |
| LOW | service/server/worker.py | 110 | except Exception: | CODE |
| LOW⚡ | service/server/routes_signals.py | 521 | except Exception: | CODE |
| LOW⚡ | service/server/routes_signals.py | 524 | except Exception: | CODE |
| LOW⚡ | service/server/routes_signals.py | 529 | except Exception: | CODE |
| LOW⚡ | service/server/routes_signals.py | 533 | except Exception: | CODE |
| LOW | service/server/routes_signals.py | 72 | except Exception as exc: | CODE |
| LOW | service/server/routes_signals.py | 132 | except Exception: | CODE |
| LOW | service/server/routes_signals.py | 227 | except Exception: | CODE |
| LOW | service/server/routes_signals.py | 373 | except Exception as exc: | CODE |
| LOW | service/server/routes_signals.py | 654 | except Exception as exc: | CODE |
| LOW | service/server/routes_signals.py | 794 | except Exception as exc: | CODE |
| LOW | service/server/routes_signals.py | 1242 | except Exception: | STRING |
| LOW | service/server/routes_shared.py | 110 | except Exception: | CODE |
| LOW | service/server/routes_shared.py | 187 | except Exception: | CODE |
| LOW⚡ | service/server/routes_shared.py | 705 | except Exception as exc: | STRING |
| LOW | service/server/routes_shared.py | 334 | except Exception: | STRING |
| LOW | service/server/routes_shared.py | 534 | except Exception: | STRING |
| LOW | service/server/routes_shared.py | 804 | except Exception: | STRING |
| LOW | service/server/experiment_notifications.py | 53 | except Exception: | CODE |
| LOW | service/server/experiment_notifications.py | 63 | except Exception: | CODE |
| LOW | service/server/experiment_notifications.py | 83 | except Exception: | CODE |
| LOW | service/server/experiment_notifications.py | 569 | except Exception as exc: | CODE |
| LOW | service/server/experiment_notifications.py | 677 | except Exception as exc: | CODE |
| LOW | service/server/experiment_notifications.py | 711 | except Exception: | CODE |
| LOW | service/server/services.py | 151 | except Exception as e: | CODE |
| LOW | service/server/research_exports.py | 1271 | except Exception: | STRING |
| LOW⚡ | service/server/tasks.py | 136 | except Exception: | CODE |
| LOW | service/server/tasks.py | 42 | except Exception: | CODE |
| LOW | service/server/tasks.py | 59 | except Exception: | CODE |
| LOW | service/server/tasks.py | 78 | except Exception: | CODE |
| LOW | service/server/tasks.py | 107 | except Exception: | CODE |
| LOW | service/server/tasks.py | 118 | except Exception: | CODE |
| LOW | service/server/tasks.py | 672 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 695 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 718 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 741 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 758 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 920 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 949 | except Exception: | CODE |
| LOW | service/server/tasks.py | 1113 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1131 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1149 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1167 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1185 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1203 | except Exception as e: | CODE |
| LOW | service/server/tasks.py | 1220 | except Exception as e: | CODE |
| LOW⚡ | service/server/tasks.py | 441 | except Exception as exc: | STRING |
| LOW | service/server/tasks.py | 644 | except Exception as e: | STRING |
| LOW | service/server/tasks.py | 897 | except Exception: | STRING |
| 179 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | service/server/worker.py | 71 | except Exception: | CODE |
| HIGH | service/server/worker.py | 67 | except Exception: | CODE |
| HIGH | service/server/routes_signals.py | 1550 | except TeamMissionError: | CODE |
| HIGH | service/server/routes_signals.py | 533 | except Exception: | CODE |
| HIGH | service/server/routes_signals.py | 524 | except Exception: | CODE |
| HIGH | service/server/routes_shared.py | 534 | except Exception: | CODE |
| HIGH | service/server/routes_shared.py | 804 | except Exception: | CODE |
| HIGH | service/server/routes_shared.py | 334 | except Exception: | CODE |
| HIGH | service/server/tasks.py | 107 | except Exception: | CODE |
| HIGH | service/server/tasks.py | 118 | except Exception: | CODE |
| HIGH | service/server/tasks.py | 439 | except asyncio.CancelledError: | CODE |
| HIGH | service/server/database.py | 965 | except Exception: | CODE |
| HIGH | service/server/database.py | 970 | except Exception: | CODE |
| HIGH | service/server/database.py | 975 | except Exception: | CODE |
| HIGH | service/server/database.py | 1251 | except Exception: | CODE |
| HIGH | service/server/database.py | 1256 | except Exception: | CODE |
| HIGH | service/server/database.py | 1261 | except Exception: | CODE |
| HIGH | service/server/database.py | 1267 | except Exception: | CODE |
| HIGH | service/server/database.py | 1273 | except Exception: | CODE |
| HIGH | service/server/database.py | 1279 | except Exception: | CODE |
| HIGH | service/server/database.py | 1285 | except Exception: | CODE |
| HIGH | service/server/database.py | 1291 | except Exception: | CODE |
| HIGH | service/server/database.py | 1297 | except Exception: | CODE |
| HIGH | service/server/database.py | 1303 | except Exception: | CODE |
| HIGH | service/server/database.py | 1308 | except Exception: | CODE |
| HIGH | service/server/database.py | 1313 | except Exception: | CODE |
| HIGH | service/server/database.py | 1318 | except Exception: | CODE |
| HIGH | service/server/database.py | 1323 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 127 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 161 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 275 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 388 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 520 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 530 | except Exception: | CODE |
| HIGH | service/server/routes_agent.py | 535 | except Exception: | CODE |
| HIGH | service/server/price_fetcher.py | 541 | except Exception: | CODE |
| HIGH | service/server/price_fetcher.py | 539 | except Exception: | CODE |
| HIGH | service/server/market_intel.py | 817 | except Exception: | CODE |
| HIGH | service/server/scripts/migrate_sqlite_to_postgres.py | 84 | except ValueError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | service/server/routes_signals.py | 0 | select id from subscriptions where leader_id = ? and follower_id = ? and status = 'active' | STRING |
| HIGH | service/server/routes_shared.py | 0 | select id from subscriptions where leader_id = ? and follower_id = ? and status = 'active' | STRING |
| HIGH | service/server/services.py | 0 | select id from subscriptions where leader_id = ? and follower_id = ? and status = 'active' | STRING |
| HIGH | service/server/routes_trading.py | 0 | select id from subscriptions where leader_id = ? and follower_id = ? and status = 'active' | STRING |
| HIGH | service/server/team_missions.py | 0 | select variant_key from experiment_assignments where experiment_key = 'registration-exp' and unit_type = 'agent' and uni | STRING |
| HIGH | service/server/challenges.py | 0 | select variant_key from experiment_assignments where experiment_key = 'registration-exp' and unit_type = 'agent' and uni | STRING |
| HIGH | …ce/server/tests/test_agent_registration_experiments.py | 0 | select variant_key from experiment_assignments where experiment_key = 'registration-exp' and unit_type = 'agent' and uni | STRING |
| HIGH | service/server/team_missions.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| HIGH | service/server/experiments.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| HIGH | service/server/challenges.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| HIGH | service/server/routes_agent.py | 0 | insert into positions ( agent_id, leader_id, symbol, market, token_id, outcome, side, quantity, entry_price, current_pri | STRING |
| HIGH | service/server/tests/test_services.py | 0 | insert into positions ( agent_id, leader_id, symbol, market, token_id, outcome, side, quantity, entry_price, current_pri | STRING |
| HIGH | service/server/scripts/cleanup_dirty_trade_data.py | 0 | insert into positions ( agent_id, leader_id, symbol, market, token_id, outcome, side, quantity, entry_price, current_pri | STRING |
| HIGH | service/server/tests/test_team_missions.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_admin_permissions.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_research_exports.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_routes_shared.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_challenges.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_experiment_assignments.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_rewards.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_experiment_events.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_monthly_challenges.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_leaderboard_metrics.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_experiment_notifications.py | 0 | insert into agents (name, token, points, cash, role, created_at, updated_at) values (?, ?, 0, 100000.0, ?, ?, ?) | STRING |
| HIGH | service/server/tests/test_experiment_assignments.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| HIGH | service/server/tests/test_experiment_notifications.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| HIGH | service/server/tests/test_experiment_events.py | 0 | insert into experiment_assignments (experiment_key, unit_type, unit_id, variant_key, assignment_reason, metadata_json, c | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | research/scripts/build_network_edges.py | 3 | CODE | |
| LOW | research/scripts/generate_figures.py | 3 | CODE | |
| LOW | research/scripts/build_agent_features.py | 3 | CODE | |
| LOW | research/scripts/compute_metrics.py | 3 | CODE | |
| LOW | research/scripts/analyze_experiments.py | 3 | CODE | |
| LOW | research/scripts/research_common.py | 3 | CODE | |
| LOW | research/scripts/export_research_dataset.py | 3 | CODE | |
| LOW | service/server/experiment_metrics.py | 3 | CODE | |
| LOW | service/server/routes_signals.py | 4 | CODE | |
| LOW | service/server/routes_signals.py | 19 | CODE | |
| LOW | service/server/experiment_notifications.py | 3 | CODE | |
| LOW | service/server/services.py | 7 | CODE | |
| LOW | service/server/services.py | 11 | CODE | |
| LOW | service/server/research_exports.py | 3 | CODE | |
| LOW | service/server/team_missions.py | 3 | CODE | |
| LOW | service/server/routes_research.py | 3 | CODE | |
| LOW | service/server/database.py | 7 | CODE | |
| LOW | service/server/challenge_scoring.py | 3 | CODE | |
| LOW | service/server/cache.py | 7 | CODE | |
| LOW | service/server/experiment_events.py | 3 | CODE | |
| LOW | service/server/signal_quality.py | 3 | CODE | |
| LOW | service/server/routes_agent.py | 23 | CODE | |
| LOW | service/server/routes_experiments.py | 3 | CODE | |
| LOW | service/server/team_scoring.py | 3 | CODE | |
| LOW | service/server/experiments.py | 3 | CODE | |
| LOW | service/server/utils.py | 10 | CODE | |
| LOW | service/server/utils.py | 12 | CODE | |
| LOW | service/server/utils.py | 12 | CODE | |
| LOW | service/server/permissions.py | 3 | CODE | |
| LOW | service/server/rewards.py | 3 | CODE | |
| LOW | service/server/main.py | 14 | CODE | |
| LOW | service/server/routes_challenges.py | 3 | CODE | |
| LOW | service/server/routes_team_missions.py | 3 | CODE | |
| LOW | service/server/market_intel.py | 10 | CODE | |
| LOW | service/server/team_matching.py | 3 | CODE | |
| LOW | service/server/challenges.py | 3 | CODE | |
| LOW | service/server/tests/test_user_auth_security.py | 3 | CODE | |
| LOW | service/server/tests/test_user_auth_security.py | 4 | CODE | |
| LOW | service/server/scripts/migrate_sqlite_to_postgres.py | 9 | CODE | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 18 | CODE | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 23 | CODE | |
| LOW | service/server/scripts/repair_market_alias_positions.py | 11 | CODE | |
| LOW | service/server/scripts/repair_market_alias_positions.py | 17 | CODE | |
| LOW | service/server/scripts/repair_challenge_trade_prices.py | 11 | CODE | |
| LOW | service/server/scripts/monthly_challenges.py | 9 | CODE | |
| LOW | …e/server/scripts/repair_challenge_polymarket_trades.py | 9 | CODE | |
| LOW | …rvice/server/scripts/send_read_conversion_reminders.py | 4 | CODE | |
| LOW | service/server/scripts/manage_leaderboard_exclusions.py | 15 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | service/server/experiment_metrics.py | 171 | CODE | |
| LOW | service/server/routes_signals.py | 105 | CODE | |
| LOW | service/server/routes_signals.py | 107 | CODE | |
| LOW | service/server/routes_signals.py | 830 | CODE | |
| LOW | service/server/routes_shared.py | 274 | CODE | |
| LOW | service/server/routes_shared.py | 658 | CODE | |
| LOW | service/server/experiment_notifications.py | 621 | CODE | |
| LOW | service/server/services.py | 190 | CODE | |
| LOW | service/server/research_exports.py | 228 | CODE | |
| LOW | service/server/research_exports.py | 1277 | CODE | |
| LOW | service/server/tasks.py | 63 | CODE | |
| LOW | service/server/tasks.py | 239 | CODE | |
| LOW | service/server/tasks.py | 468 | CODE | |
| LOW | service/server/tasks.py | 928 | CODE | |
| LOW | service/server/team_missions.py | 1162 | CODE | |
| LOW | service/server/challenge_scoring.py | 69 | CODE | |
| LOW | service/server/routes_trading.py | 57 | CODE | |
| LOW | service/server/routes_trading.py | 68 | CODE | |
| LOW | service/server/routes_trading.py | 416 | CODE | |
| LOW | service/server/routes_agent.py | 84 | CODE | |
| LOW | service/server/routes_agent.py | 558 | CODE | |
| LOW | service/server/routes_experiments.py | 53 | CODE | |
| LOW | service/server/experiments.py | 749 | CODE | |
| LOW | service/server/price_fetcher.py | 110 | CODE | |
| LOW | service/server/price_fetcher.py | 292 | CODE | |
| LOW | service/server/price_fetcher.py | 461 | CODE | |
| LOW | service/server/price_fetcher.py | 677 | CODE | |
| LOW | service/server/price_fetcher.py | 758 | CODE | |
| LOW | service/server/price_fetcher.py | 853 | CODE | |
| LOW | service/server/rewards.py | 19 | CODE | |
| LOW | service/server/market_intel.py | 473 | CODE | |
| LOW | service/server/market_intel.py | 731 | CODE | |
| LOW | service/server/market_intel.py | 802 | CODE | |
| LOW | service/server/market_intel.py | 823 | CODE | |
| LOW | service/server/challenges.py | 96 | CODE | |
| LOW | service/server/challenges.py | 474 | CODE | |
| LOW | service/server/scripts/migrate_sqlite_to_postgres.py | 132 | CODE | |
| LOW | service/server/scripts/cleanup_dirty_trade_data.py | 311 | CODE | |
| LOW | service/server/scripts/repair_challenge_trade_prices.py | 156 | CODE | |
| LOW | service/server/scripts/repair_challenge_trade_prices.py | 298 | CODE | |
| LOW | service/server/scripts/monthly_challenges.py | 236 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | service/server/experiment_notifications.py | 123 | CODE | |
| LOW | service/server/experiment_notifications.py | 517 | CODE | |
| LOW | service/server/experiment_notifications.py | 621 | CODE | |
| LOW | service/server/research_exports.py | 1324 | CODE | |
| LOW | service/server/research_exports.py | 1377 | CODE | |
| LOW | service/server/research_exports.py | 1498 | CODE | |
| LOW | service/server/routes_research.py | 43 | CODE | |
| LOW | service/server/routes_research.py | 81 | CODE | |
| LOW | service/server/routes_research.py | 111 | CODE | |
| LOW | service/server/routes_research.py | 145 | CODE | |
| LOW | service/server/routes_research.py | 214 | CODE | |
| LOW | service/server/routes_research.py | 227 | CODE | |
| LOW | service/server/routes_research.py | 240 | CODE | |
| LOW | service/server/routes_research.py | 253 | CODE | |
| LOW | service/server/experiment_events.py | 19 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/README_AGENT.md | 11 | ### Step 1: Register (Email Required) | COMMENT |
| LOW | docs/README_AGENT.md | 30 | ### Step 2: Choose Your Mode | COMMENT |
| LOW | skills/ai4trade/SKILL.md | 97 | ### Step 1: Register Your Agent | COMMENT |
| LOW | skills/ai4trade/SKILL.md | 125 | ### Step 2: Use Token to Call APIs | COMMENT |
| LOW | skills/ai4trade/SKILL.md | 141 | ### Step 3: Choose Your Path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | service/server/worker.py | 24 | logger = logging.getLogger(__name__) | CODE |
| LOW | service/server/challenge_scoring.py | 95 | def update_drawdown(equity: float) -> None: | CODE |
| LOW | service/server/main.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | service/server/scripts/repair_challenge_trade_prices.py | 247 | def update_trade_event(cursor: Any, repair: dict[str, Any]) -> None: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | service/server/scripts/fix_agent_profit.py | 6 | cd service/server && python -c " | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/README_AGENT.md | 16 | -d '{"name": "MyTradingBot", "email": "user@example.com"}' | CODE |
| LOW | docs/README_AGENT_ZH.md | 16 | -d '{"name": "MyTradingBot", "email": "user@example.com"}' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | service/server/services.py | 360 | # For now, we just return the count | STRING |