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.

fuegoservicios-lab/MealfitRD-Backend

https://github.com/fuegoservicios-lab/MealfitRD-Backend · scanned 2026-06-16 04:25 UTC (2 months ago)

95 raw signals (0 security + 95 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months ago · v1 · 89 actionable findings from 1 signal source. 6 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.3/100 with 88.9% coverage. It contains 1196 nodes across 13 cross-layer flows, written primarily in mixed languages. Engine surfaced 95 findings — concentrated in quality (67), software (25), security (2). Risk profile is high: 0 critical, 2 high, 7 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 57 of 89 actionable findings. 95 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 Agent instructions conf 1.00 Agent instruction/config may expose a secret: CLAUDE.md
Agent-facing files are routinely pasted into LLM/tool contexts. Move literal tokens, keys, and passwords into a secret manager or document them as placeholders only.
CLAUDE.md:316 SecretsClaude instruction
high System graph security auth conf 1.00 FastAPI POST `api_webhook_process_pending_facts` without auth dependency — app.py:2315
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
app.py:2315 securityAuth fastapi unauth mutation
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 license, ci, operator-readme. 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 Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, ci, operator-readme. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
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 quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — utils_push.py:9
`requests.post(...)` 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 cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
medium System graph quality Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 22 placeholder/mock markers across 6 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data.
Mock dataIncompleteGenerated repo pattern
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
1 test file(s) for 42 source file(s) (ratio 0.02). Consider adding integration or unit tests for critical paths.
Coverage
low System graph quality Integrity conf 1.00 173 env vars used in code but missing from .env.example
Drift between code and config docs. The first few: `CHUNK_ANCHOR_RECOVERY_MAX_ATTEMPTS`, `CHUNK_BG_ROLLING_REFILL_INTERVAL_HOURS`, `CHUNK_CHRONIC_DEFERRAL_CHECK_INTERVAL_MINUTES`, `CHUNK_CHRONIC_DEFERRAL_MIN_COUNT`, `CHUNK_CHRONIC_DEFERRAL_NOTIFY_COOLDOWN_HOURS`, `CHUNK_CHRONIC_DEFERRAL_WINDOW_HOUR…
config drift
low System graph quality Maintenance conf 1.00 81 TODO/FIXME markers
High count of TODO/FIXME/HACK markers — track them as issues so they're not forgotten.
low System graph quality Integrity conf 1.00 7 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: db_facts.py:delete_user_facts_by_metadata, db_facts.py:delete_user_fact 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 separate.
7 occurrences
repo-level (7 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 `_fallback_copy` in agent.py:1655
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 `days_old` in db_inventory.py:436
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 `days_old` in graph_orchestrator.py:12518
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 `days_old` in shopping_calculator.py:7639
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 llm_provider.py:304
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 `record_meal_plan_audit_backup` in db_meal_plans_audit.py:23
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 `snapshot_old` in db_profiles.py:464
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 `weeks_old` in constants.py:139
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: aclose_connection_pool
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_core.py:417
low System graph software Dead code conf 1.00 Possibly dead Python function: assert_valid_uuid
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
path_validators.py:49
low System graph software Dead code conf 1.00 Possibly dead Python function: check_and_trigger_jit_rolling_windows
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
proactive_agent.py:695
low System graph software Dead code conf 1.00 Possibly dead Python function: classify_sentiment
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sentiment_classifier.py:61
low System graph software Dead code conf 1.00 Possibly dead Python function: close_connection_pool
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_core.py:407
low System graph software Dead code conf 1.00 Possibly dead Python function: configure_async_conn
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_core.py:276
low System graph software Dead code conf 1.00 Possibly dead Python function: configure_checkpoint_conn
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_core.py:289
low System graph software Dead code conf 1.00 Possibly dead Python function: configure_sync_conn
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_core.py:259
low System graph software Dead code conf 1.00 Possibly dead Python function: decorator
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
cache_manager.py:55
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_chat_session
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:379
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_single_agent_session
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:43
low System graph software Dead code conf 1.00 Possibly dead Python function: delete_user_agent_sessions
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:32
low System graph software Dead code conf 1.00 Possibly dead Python function: generate_chat_title_background
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
agent.py:2007
low System graph software Dead code conf 1.00 Possibly dead Python function: humanize_plan_ingredients
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
humanize_ingredients.py:213
low System graph software Dead code conf 1.00 Possibly dead Python function: insert_like
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:797
low System graph software Dead code conf 1.00 Possibly dead Python function: invalidate_tier_cache
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
llm_provider.py:152
low System graph software Dead code conf 1.00 Possibly dead Python function: is_neon_auth_configured
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
neon_auth.py:55
low System graph software Dead code conf 1.00 Possibly dead Python function: route_tools
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
agent.py:1984
low System graph software Dead code conf 1.00 Possibly dead Python function: run_proactive_checks
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
proactive_agent.py:250
low System graph software Dead code conf 1.00 Possibly dead Python function: save_message_feedback
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:517
low System graph software Dead code conf 1.00 Possibly dead Python function: strip_ui_action_tags_for_persist
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
agent.py:114
low System graph software Dead code conf 1.00 Possibly dead Python function: summarize_and_prune
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
memory_manager.py:402
low System graph software Dead code conf 1.00 Possibly dead Python function: swap_meal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
agent.py:469
low System graph software Dead code conf 1.00 Possibly dead Python function: update_session_title
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
db_chat.py:53
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_neon_jwt
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
neon_auth.py:91
low System graph quality Complexity conf 1.00 Very large file: agent.py (3190 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: ai_helpers.py (1041 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: app.py (2512 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: constants.py (2625 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: db_inventory.py (2693 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: db_plans.py (1536 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: db_profiles.py (1188 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: graph_orchestrator.py (16304 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: shopping_calculator.py (7867 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: tools.py (1867 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/179474c7-9414-4d89-b9e9-df5e6e44fa38/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/179474c7-9414-4d89-b9e9-df5e6e44fa38/

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.