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.

X-GenGroup/Flow-Factory

https://github.com/X-GenGroup/Flow-Factory · scanned 2026-06-16 01:01 UTC (2 months, 1 week ago)

82 raw signals (0 security + 82 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

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

Showing 44 of 64 actionable findings. 82 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 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 ci. 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 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: docker/docker-cuda/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — dataset/multi_ref_image/prepare.py:20
`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 quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/flow_factory/models/bagel/modeling/siglip/convert_siglip_to_hf.py:227
`requests.get(...)` 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 quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — src/flow_factory/models/bagel/modeling/siglip/modeling_siglip.py:1169
`requests.get(...)` 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 quality Tests conf 1.00 Very low test-to-source ratio
1 test file(s) for 147 source file(s) (ratio 0.01). Consider adding integration or unit tests for critical paths.
Coverage
low System graph hardware Coverage conf 1.00 Containers defined but no K8s/orchestration manifest found
Repo has Dockerfiles/compose but no Kubernetes/Nomad manifests. If the target deployment is K8s, the manifests may live in a separate ops repo.
Deployment
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 49 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: nvidia/cuda:12.9.1-devel-ubuntu22.04
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
docker/docker-cuda/Dockerfile:6 containersPinned dependencies
low System graph quality Agent instructions conf 1.00 Multiple root agent instruction files without precedence
The repo has multiple top-level AI-coder instruction files. Without precedence rules, different agents may follow different policies.
Governance
low System graph quality Integrity conf 1.00 15 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: dataset/sudoku/generate_dataset.py:backtrack, dataset/sudoku/generate_dataset.py:backtrack 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.
15 occurrences
repo-level (15 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 5 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: reward_server/example_server.py:compute_reward, reward_server/example_server.py:compute, reward_server/example_server.py:compute_reward This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene).…
5 occurrences
repo-level (5 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `_crd_old` in src/flow_factory/trainers/crd.py:130
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 `ema_ref_old` in src/flow_factory/trainers/dgpo.py:226
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 `extra_line_for_legacy` in src/flow_factory/hparams/args.py:736
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 `kl_new_old` in src/flow_factory/trainers/dppo.py:201
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 `param_copy` in src/flow_factory/ema/ema.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 quality Integrity conf 1.00 Old/deprecated-named symbol `PickScore_v1` in src/flow_factory/rewards/pick_score.py:48
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: init_moe
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/bagel/modeling/bagel/qwen2_navit.py:1115
low System graph software Dead code conf 1.00 Possibly dead Python function: off_load
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:2030
low System graph software Dead code conf 1.00 Possibly dead Python function: off_load_text_encoders
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:2038
low System graph software Dead code conf 1.00 Possibly dead Python function: off_load_transformers
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:2050
low System graph software Dead code conf 1.00 Possibly dead Python function: off_load_vae
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:2044
low System graph software Dead code conf 1.00 Possibly dead Python function: prepare_components
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:252
low System graph software Dead code conf 1.00 Possibly dead Python function: remove_named_parameters
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/abc.py:764
low System graph software Dead code conf 1.00 Possibly dead Python function: set_input_embeddings
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/bagel/modeling/bagel/qwen2_navit.py:1124
low System graph software Dead code conf 1.00 Possibly dead Python function: set_output_embeddings
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/flow_factory/models/bagel/modeling/bagel/qwen2_navit.py:1130
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 `_init_platform` (body is just `pass`/`return`) — src/flow_factory/logger/abc.py:33
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `encode_video` (body is just `pass`/`return`) — src/flow_factory/models/wan/wan2_i2v.py:314
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Integrity conf 1.00 Stub function `text_encoder` (body is just `pass`/`return`) — src/flow_factory/models/bagel/bagel.py:284
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph api Wiring conf 1.00 Unused endpoint: POST /compute
`reward_server/example_server.py` declares `POST /compute` 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 quality Complexity conf 1.00 Very large file: src/flow_factory/hparams/args.py (1172 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/abc.py (2254 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/bagel/bagel.py (1733 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/bagel/modeling/bagel/bagel.py (1103 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/bagel/modeling/bagel/qwen2_navit.py (1197 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/bagel/modeling/siglip/modeling_siglip.py (1557 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/ltx2/ltx2_i2av.py (1441 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/ltx2/ltx2_t2av.py (1321 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/flow_factory/models/qwen_image/qwen_image_edit_plus.py (1217 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/8389299d-3305-4e5f-8339-5b79bf78e4c9/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/8389299d-3305-4e5f-8339-5b79bf78e4c9/

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.