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.

xian-technology/xian-contracting

https://github.com/xian-technology/xian-contracting · scanned 2026-06-16 01:02 UTC (2 months, 1 week ago)

120 raw signals (0 security + 120 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

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

Showing 68 of 76 actionable findings. 120 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 security conf 1.00 Insecure pattern 'exec_used' in src/contracting/execution/module.py:179
Found a known-risky pattern (exec_used). Review and replace if possible.
src/contracting/execution/module.py:179 Exec used
high System graph security security conf 1.00 Insecure pattern 'exec_used' in src/contracting/storage/contract.py:148
Found a known-risky pattern (exec_used). Review and replace if possible.
src/contracting/storage/contract.py:148 Exec 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 cicd CI/CD security conf 1.00 4 occurrences GitHub Action is tag-pinned rather than SHA-pinned
PyO3/maturin-action@v1 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
2 files, 4 locations
.github/workflows/release.yml:282, 313, 452 (3 hits)
.github/workflows/validate.yml:79
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 'node_child_process' in packages/xian-compiler-core/npm/scripts/build-wasm.mjs:2
Found a known-risky pattern (node_child_process). Review and replace if possible.
packages/xian-compiler-core/npm/scripts/build-wasm.mjs:2 Node child process
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
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 36 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 25 occurrences GitHub Action is tag-pinned rather than SHA-pinned
actions/checkout@v6 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
2 files, 25 locations
.github/workflows/release.yml:114, 117, 152, 155, 205, 222, 225, 249, +9 more (17 hits)
.github/workflows/validate.yml:17, 20, 41, 53, 56, 62, 68, 74 (8 hits)
CI/CD securitySupply chainGithub actions
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: scripts/audit_compiler_core_parity.py:compile_with_python, scripts/audit_compiler_core_parity.py:compile_with_rust This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or docum…
15 occurrences
repo-level (15 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: packages/xian-zk/python/xian_zk/prover_service.py:registry_manifest, packages/xian-zk/python/xian_zk/prover_service.py:registry_manifest, packages/xian-zk/python/xian_zk/prover_service.py:registry_manifest This is *the* AI-coder failure mode (4× more…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: packages/xian-zk/python/xian_zk/shielded_notes.py:generate_owner_secret, packages/xian-zk/python/xian_zk/shielded_notes.py:generate, packages/xian-zk/python/xian_zk/shielded_notes.py:generate, packages/xian-zk/python/xian_zk/shielded_notes.py:generate…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `python_line_v1` in src/contracting/execution/tracer_common.py:11
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 `xian_contract_artifact_v1` in scripts/audit_compiler_core_parity.py:56
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 `xian_contract_artifact_v1` in src/contracting/compilation/artifacts.py:11
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 `xian_contract_artifact_v1` in src/contracting/compiler/fixtures.py:41
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 `xian_contract_language_v1` in src/contracting/compilation/conformance.py:34
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 `xian_ir_v1` in src/contracting/compilation/ir.py:7
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 `xian_vm_v1` in packages/xian-compiler-core/python/xian_compiler_core/__init__.py:24
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 `xian_vm_v1` in packages/xian-vm-core/python/xian_vm_core/__init__.py:80
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 `xian_vm_v1` in src/contracting/compilation/vm.py:13
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 `xian_vm_v1` in src/contracting/local/client.py:291
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 `xian_vm_v1` in src/contracting/storage/contract.py:77
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 `xian_vm_v1` in src/contracting/storage/driver.py:225
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 `xian_vm_v1` in tests/integration/test_atomic_swap.py:17
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 `xian_vm_v1` in tests/integration/test_chi_deduction.py:15
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 `xian_vm_v1` in tests/integration/test_complex_contracts.py:17
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 `xian_vm_v1` in tests/integration/test_executor_submission_process.py:16
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 `xian_vm_v1` in tests/integration/test_memory_clean_up_after_execution.py:14
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 `xian_vm_v1` in tests/integration/test_misc_contracts.py:14
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 `xian_vm_v1` in tests/integration/test_rich_ctx_calling.py:12
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 `xian_vm_v1` in tests/performance/prof_transfer.py:13
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 `xian_vm_v1` in tests/performance/test_transfer.py:15
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 `xian_vm_v1` in tests/unit/test_artifacts.py:17
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 `xian_vm_v1` in tests/unit/test_client.py:219
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 `xian_vm_v1` in tests/unit/test_compiler_fixtures.py:32
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 `xian_vm_v1` in tests/unit/test_conformance_manifest.py:25
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: build_parallel_executor
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/local/client.py:300
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.
packages/xian-zk/python/xian_zk/prover_service.py:360
low System graph software Dead code conf 1.00 Possibly dead Python function: do_POST
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-zk/python/xian_zk/prover_service.py:363
low System graph software Dead code conf 1.00 Possibly dead Python function: handle_syscall
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-vm-core/python/xian_vm_core/__init__.py:473
low System graph software Dead code conf 1.00 Possibly dead Python function: install_system_contracts
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/execution/module.py:86
low System graph software Dead code conf 1.00 Possibly dead Python function: is_valid_import
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/execution/module.py:28
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.
packages/xian-zk/python/xian_zk/prover_service.py:357
low System graph software Dead code conf 1.00 Possibly dead Python function: module_ir_uses_zk
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/runtime_features.py:92
low System graph software Dead code conf 1.00 Possibly dead Python function: quick_read
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/local/client.py:79
low System graph software Dead code conf 1.00 Possibly dead Python function: quick_write
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/local/client.py:92
low System graph software Dead code conf 1.00 Possibly dead Python function: read_hash
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-vm-core/python/xian_vm_core/__init__.py:171
low System graph software Dead code conf 1.00 Possibly dead Python function: read_variable
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-vm-core/python/xian_vm_core/__init__.py:168
low System graph software Dead code conf 1.00 Possibly dead Python function: refresh_spent_status
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-zk/python/xian_zk/shielded_notes.py:1499
low System graph software Dead code conf 1.00 Possibly dead Python function: restricted_import
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/execution/module.py:38
low System graph software Dead code conf 1.00 Possibly dead Python function: scan_hash_entries
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-vm-core/python/xian_vm_core/__init__.py:174
low System graph software Dead code conf 1.00 Possibly dead Python function: set_driver_runtime_features
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/contracting/runtime_features.py:42
low System graph software Dead code conf 1.00 Possibly dead Python function: sign_msg
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-accounts/src/xian_accounts/ed25519.py:76
low System graph software Dead code conf 1.00 Possibly dead Python function: to_execute_args
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-zk/python/xian_zk/shielded_commands.py:216
low System graph software Dead code conf 1.00 Possibly dead Python function: to_relay_args
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-zk/python/xian_zk/shielded_relay.py:155
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_msg
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
packages/xian-accounts/src/xian_accounts/ed25519.py:79
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 `close` (body is just `pass`/`return`) — src/contracting/execution/parallel.py:550
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 `install_system_contracts` (body is just `pass`/`return`) — src/contracting/execution/module.py:86
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 `log_message` (body is just `pass`/`return`) — packages/xian-zk/python/xian_zk/prover_service.py:357
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: packages/xian-compiler-core/src/ir.rs (2535 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: packages/xian-vm-core/src/interpreter.rs (5471 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: packages/xian-vm-core/src/interpreter_support.rs (3271 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: packages/xian-zk/python/xian_zk/shielded_notes.py (2104 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: packages/xian-zk/src/shielded_notes.rs (2920 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: scripts/generate_vm_parity_fixtures.py (2333 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/contracting/compilation/conformance.py (1857 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/e7e50e7c-b532-4b41-b679-09faad92acc2/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/e7e50e7c-b532-4b41-b679-09faad92acc2/

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.