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.

zqin2012/priorstates

https://github.com/zqin2012/priorstates · scanned 2026-06-16 01:13 UTC (2 months, 1 week ago)

68 raw signals (0 security + 68 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

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

Showing 54 of 60 actionable findings. 68 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.

critical System graph security Secrets conf 1.00 Possible secret in priorstates/gui/app.py
Detected pattern matching password_literal. Rotate the credential and move to a secret manager.
priorstates/gui/app.py:2078
high System graph security security conf 1.00 Insecure pattern 'exec_used' in priorstates/cli.py:899
Found a known-risky pattern (exec_used). Review and replace if possible.
priorstates/cli.py:899 Exec used
high System graph security security conf 1.00 Insecure pattern 'exec_used' in priorstates/mdlab/runner.py:43
Found a known-risky pattern (exec_used). Review and replace if possible.
priorstates/mdlab/runner.py:43 Exec used
medium System graph quality Integrity conf 1.00 `fetch()` without try/.catch or AbortSignal — priorstates/cockpit/public/app.js:16
Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout.
runtime safetyRobustness
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 cicd CI/CD security conf 1.00 2 occurrences GitHub Action is tag-pinned rather than SHA-pinned
pypa/gh-action-pypi-publish@release/v1 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
lines 69, 226
.github/workflows/release.yml:69, 226 (2 hits)
CI/CD securitySupply chainGithub actions
medium System graph cicd CI/CD security conf 1.00 GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
.github/workflows/release.yml CI/CD securitySupply chainGithub actions
medium System graph security security conf 1.00 Insecure pattern 'cors_wildcard' in priorstates/cli.py:820
Found a known-risky pattern (cors_wildcard). Review and replace if possible.
priorstates/cli.py:820 Cors wildcard
medium System graph security security conf 1.00 Insecure pattern 'direct_innerhtml_assignment' in priorstates/cockpit/public/app.js:8
Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible.
priorstates/cockpit/public/app.js:8 Direct innerhtml assignment
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — priorstates/cli.py:754
`subprocess.Popen(...)` 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 — priorstates/gui/app.py:1686
`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 Placeholder conf 1.00 Placeholder or mock-heavy implementation detected
Found 16 placeholder/mock markers across 3 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data.
Mock dataIncompleteGenerated repo pattern
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 204 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 cicd CI/CD security conf 1.00 2 occurrences GitHub Action is tag-pinned rather than SHA-pinned
actions/upload-artifact@v4 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
lines 210, 237
.github/workflows/release.yml:210, 237 (2 hits)
CI/CD securitySupply chainGithub actions
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: priorstates/cli.py:cmd_install_launcher_windows, priorstates/cli.py:cmd_install_launcher 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.
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 4 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: priorstates/gui/app.py:worker, priorstates/gui/app.py:work, priorstates/gui/app.py:work 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.
4 occurrences
repo-level (4 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: priorstates/gui/app.py:goto_tab, priorstates/gui/app.py:go, priorstates/gui/app.py:go, priorstates/gui/app.py:go This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or documen…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `desk_copy` in priorstates/cli.py:1341
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 `from_buffer_copy` in priorstates/cockpit/ptybridge_win.py:208
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_freshness_demotes_old` in tests/test_trust_graph_phase1.py:78
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: add_project
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:732
low System graph software Dead code conf 1.00 Possibly dead Python function: agents_uninstall
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1359
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_agents
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:679
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_areas
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:614
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_cockpit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:693
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_connect
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:842
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_doctor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:986
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_gui
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:976
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_identity
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:636
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_init
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:25
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_install_launcher
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:1328
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_journal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:517
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_mcp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:981
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_mdlab
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:658
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_memory
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:341
low System graph software Dead code conf 1.00 Possibly dead Python function: cmd_pack
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:545
low System graph software Dead code conf 1.00 Possibly dead Python function: connect_remote
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:781
low System graph software Dead code conf 1.00 Possibly dead Python function: do_GET
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:798
low System graph software Dead code conf 1.00 Possibly dead Python function: download_model
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1514
low System graph software Dead code conf 1.00 Possibly dead Python function: load_examples
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1260
low System graph software Dead code conf 1.00 Possibly dead Python function: log_message
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/cli.py:795
low System graph software Dead code conf 1.00 Possibly dead Python function: open_cockpit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1445
low System graph software Dead code conf 1.00 Possibly dead Python function: open_docs
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1213
low System graph software Dead code conf 1.00 Possibly dead Python function: probe
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:388
low System graph software Dead code conf 1.00 Possibly dead Python function: reader
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:826
low System graph software Dead code conf 1.00 Possibly dead Python function: remove_examples
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1274
low System graph software Dead code conf 1.00 Possibly dead Python function: try_with_agent
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1248
low System graph software Dead code conf 1.00 Possibly dead Python function: update_software
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1653
low System graph software Dead code conf 1.00 Possibly dead Python function: work
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1532
low System graph software Dead code conf 1.00 Possibly dead Python function: worker
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
priorstates/gui/app.py:1044
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 `log_message` (body is just `pass`/`return`) — priorstates/cli.py:795
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: priorstates/cli.py (1628 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: priorstates/gui/app.py (2139 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/6728b90c-4188-42f8-b865-98fc9541e25f/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/6728b90c-4188-42f8-b865-98fc9541e25f/

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.