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.

nacholuquez20-source/FarmaAudit

https://github.com/nacholuquez20-source/FarmaAudit · scanned 2026-06-16 04:34 UTC (1 month, 4 weeks ago)

48 raw signals (0 security + 48 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 4 weeks ago · v1 · 38 actionable findings from 1 signal source. 10 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 74.9/100 with 77.8% coverage. It contains 633 nodes across 20 cross-layer flows, written primarily in mixed languages. Engine surfaced 48 findings — concentrated in quality (27), software (12), security (7). Risk profile is high: 0 critical, 6 high, 3 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 36 of 38 actionable findings. 48 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 PATCH `update_panel_user` without auth dependency — main.py:607
`@router.patch` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:607 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `create_internal_message` without auth dependency — main.py:492
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:492 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `create_panel_user` without auth dependency — main.py:557
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:557 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `create_perfumeria_deviations` without auth dependency — main.py:711
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:711 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `regenerate_thumbnails_endpoint` without auth dependency — main.py:1304
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:1304 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `send_encargado_notification` without auth dependency — main.py:464
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
main.py:464 securityAuth fastapi unauth mutation
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 hardware Security conf 1.00 Dockerfile runs as root: Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph security security conf 1.00 Insecure pattern 'cors_wildcard' in main.py:41
Found a known-risky pattern (cors_wildcard). Review and replace if possible.
main.py:41 Cors wildcard
low System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, ci. 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 34 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 hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: python:3.11-slim
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
Dockerfile:1 containersPinned dependencies
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: meta_client.py:send_text_with_id, meta_client.py:send_text 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.
11 occurrences
repo-level (11 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: audit_session.py:to_dict, audit_session.py:to_dict, audit_session.py:to_dict 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.
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 Integrity conf 1.00 Old/deprecated-named symbol `audit_session_v2` in router.py:2216
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 `auditoria_v2` in audit_handlers.py:460
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_collector_failure_does_not_fall_back_to_legacy` in test_respuesta_recolectora.py:182
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 `whatsapp_audit_v2` in audit_database.py:125
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: check_expired_audit_sessions
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
main.py:1151
low System graph software Dead code conf 1.00 Possibly dead Python function: check_expired_confirmations
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
main.py:1002
low System graph software Dead code conf 1.00 Possibly dead Python function: check_incomplete_respuestas_timeout
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
main.py:1045
low System graph software Dead code conf 1.00 Possibly dead Python function: daily_summary_job
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
main.py:1266
low System graph software Dead code conf 1.00 Possibly dead Python function: download_media
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
meta_client.py:130
low System graph software Dead code conf 1.00 Possibly dead Python function: is_all_bloques_scored
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
audit_session.py:214
low System graph software Dead code conf 1.00 Possibly dead Python function: is_expired
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
audit_session.py:292
low System graph software Dead code conf 1.00 Possibly dead Python function: is_ofertas_completed
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
audit_session.py:218
low System graph software Dead code conf 1.00 Possibly dead Python function: regenerate_thumbnails_job
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
main.py:1294
low System graph software Dead code conf 1.00 Possibly dead Python function: send_message
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
meta_client.py:106
low System graph software Dead code conf 1.00 Possibly dead Python function: sync_sheets_to_supabase
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sync_sheets_to_supabase.py:227
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_tables_accessible
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
supabase_manager.py:56
low System graph quality Integrity conf 1.00 Stub function `execute` (body is just `pass`/`return`) — test_respuesta_recolectora.py:29
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: audit_handlers.py (1285 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: main.py (1420 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: router.py (6563 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: supabase_manager.py (1730 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/c9a49a9f-dfa2-49fb-bab0-6da03e001b5c/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/c9a49a9f-dfa2-49fb-bab0-6da03e001b5c/

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.