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.

ZIJIAN004/UniCOP

https://github.com/ZIJIAN004/UniCOP · scanned 2026-06-16 01:12 UTC (2 months, 1 week ago)

93 raw signals (0 security + 93 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

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

Showing 45 of 69 actionable findings. 93 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 POST `generate` without auth dependency — UniCOP-Reason-Mask/utils/vllm_serve_logprobs.py:172
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
UniCOP-Reason-Mask/utils/vllm_serve_logprobs.py:172 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `generate` without auth dependency — UniCOP-Reason/utils/vllm_serve_ngram.py:172
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
UniCOP-Reason/utils/vllm_serve_ngram.py:172 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `get_reward` without auth dependency — UniCOP-Reason-Mask/openrlhf/reward/remote_reward_server.py:183
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
UniCOP-Reason-Mask/openrlhf/reward/remote_reward_server.py:183 securityAuth fastapi unauth mutation
high System graph security auth conf 1.00 FastAPI POST `get_reward` without auth dependency — UniCOP-Reason/openrlhf/reward/remote_reward_server.py:183
`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public.
UniCOP-Reason/openrlhf/reward/remote_reward_server.py:183 securityAuth fastapi unauth mutation
high System graph security security conf 1.00 Insecure pattern 'eval_used' in FOARL/run_grpo_foarl_cvrp.sh:172
Found a known-risky pattern (eval_used). Review and replace if possible.
FOARL/run_grpo_foarl_cvrp.sh:172 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in FOARL/submit_sft_foarl_cvrp.sh:104
Found a known-risky pattern (eval_used). Review and replace if possible.
FOARL/submit_sft_foarl_cvrp.sh:104 Eval used
high System graph security security conf 1.00 Insecure pattern 'eval_used' in UniCOP-Reason-Mask/run_grpo_cvrp20_v6_instruct.sh:152
Found a known-risky pattern (eval_used). Review and replace if possible.
UniCOP-Reason-Mask/run_grpo_cvrp20_v6_instruct.sh:152 Eval used
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 — Latent-SFT/eval_hlr_compare.py:38
`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 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 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.
Latent-SFT/submit_smoke_repro.sh Ports
medium System graph network Security conf 1.00 Privileged port 480 in use
Port 480 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer.
Latent-SFT/submit_train_hlr.sh Ports
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
6 test file(s) for 108 source file(s) (ratio 0.06). Consider adding integration or unit tests for critical paths.
Coverage
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 1430 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 quality Integrity conf 1.00 19 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: Latent-SFT/inference.py:generate_batch, Latent-SFT/inference.py:generate 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.
19 occurrences
repo-level (19 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: Latent-SFT/model.py:forward, Latent-SFT/model.py:forward, Latent-SFT/model.py:forward, Latent-SFT/model.py:forward This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or docum…
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 `d_old` in UniCOP-Reason-Mask/ref_solver.py:64
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 `d_old` in UniCOP-Reason/ref_solver.py:64
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: collate_hlr
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Latent-SFT/data_utils.py:333
low System graph software Dead code conf 1.00 Possibly dead Python function: compute_a_feasibility
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason-Mask/terminal_reward.py:105
low System graph software Dead code conf 1.00 Possibly dead Python function: compute_a_feasibility
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason/terminal_reward.py:105
low System graph software Dead code conf 1.00 Possibly dead Python function: compute_loss
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason-Mask/grpo_prm_trainer.py:2397
low System graph software Dead code conf 1.00 Possibly dead Python function: compute_loss
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason/grpo_prm_trainer.py:878
low System graph software Dead code conf 1.00 Possibly dead Python function: forward
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
Latent-SFT/model.py:348
low System graph software Dead code conf 1.00 3 occurrences Possibly dead Python function: is_argmax_invariant
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
3 files, 3 locations
UniCOP-Reason-Mask/openrlhf/custom/ngram_processor.py:80
UniCOP-Reason/openrlhf/custom/ngram_processor.py:80
UniCOP-Reason/utils/vllm_ngram_processor.py:138
low System graph software Dead code conf 1.00 3 occurrences Possibly dead Python function: new_req_logits_processor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
3 files, 3 locations
UniCOP-Reason-Mask/openrlhf/custom/ngram_processor.py:83
UniCOP-Reason/openrlhf/custom/ngram_processor.py:83
UniCOP-Reason/utils/vllm_ngram_processor.py:146
low System graph software Dead code conf 1.00 Possibly dead Python function: patched_init
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Distill/vllm_serve_ngram.py:60
low System graph software Dead code conf 1.00 Possibly dead Python function: patched_init
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason/utils/vllm_serve_ngram.py:76
low System graph software Dead code conf 1.00 Possibly dead Python function: patched_uvicorn_run
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason-Mask/utils/vllm_serve_logprobs.py:71
low System graph software Dead code conf 1.00 Possibly dead Python function: patched_uvicorn_run
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason/utils/vllm_serve_ngram.py:98
low System graph software Dead code conf 1.00 3 occurrences Possibly dead Python function: reward_func
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
3 files, 3 locations
FOARL/train_grpo_foarl.py:184
UniCOP-Reason-Mask/openrlhf/reward/reward_fn.py:98
UniCOP-Reason/openrlhf/reward/reward_fn.py:101
low System graph software Dead code conf 1.00 Possibly dead Python function: wrapped
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason-Mask/train.py:113
low System graph software Dead code conf 1.00 Possibly dead Python function: wrapped
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
UniCOP-Reason/train.py:111
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 api Wiring conf 1.00 Unused endpoint: POST /generate/
`UniCOP-Reason-Mask/utils/vllm_serve_logprobs.py` declares `POST /generate/` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who consumes it.
Unused endpoint
low System graph api Wiring conf 1.00 Unused endpoint: POST /get_reward
`UniCOP-Reason-Mask/openrlhf/reward/remote_reward_server.py` declares `POST /get_reward` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code — consider removing or documenting who co…
Unused endpoint
low System graph quality Complexity conf 1.00 Very large file: UniCOP-Distill/build_think_chains.py (1453 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: UniCOP-Reason-Mask/evaluate.py (1819 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: UniCOP-Reason-Mask/grpo_prm_trainer.py (2705 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: UniCOP-Reason-Mask/pomo_prm.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: UniCOP-Reason/evaluate.py (1598 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: UniCOP-Reason/grpo_prm_trainer.py (1062 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/7fb9382d-d08a-4200-bb11-80bd3ced5411/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/7fb9382d-d08a-4200-bb11-80bd3ced5411/

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.