🦁 The Leo Programming Language. A Programming Language for Formally Verified, Zero-Knowledge Applications
This report summarizes scanner evidence for ProvableHQ/leo, a Rust project with 4,824 GitHub stars. SynthScan examined 156,847 lines of code across 871 source files, recording 607 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 4.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 564 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 43 finding(s).
Which changes need focused human review? 607 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 607 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tree-sitter/src/tree_sitter/parser.h | 1 | #ifndef TREE_SITTER_PARSER_H_ | COMMENT |
| LOW | tree-sitter/src/tree_sitter/array.h | 1 | #ifndef TREE_SITTER_ARRAY_H_ | COMMENT |
| LOW | tree-sitter/src/tree_sitter/array.h | 41 | (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index]) | COMMENT |
| LOW | tree-sitter/src/tree_sitter/array.h | 101 | COMMENT | |
| LOW | tree-sitter/src/tree_sitter/array.h | 121 | /// callback to determine the order. | COMMENT |
| LOW | tree-sitter/src/tree_sitter/array.h | 281 | #ifdef _MSC_VER | COMMENT |
| LOW | tree-sitter/src/tree_sitter/alloc.h | 21 | #define ts_malloc ts_current_malloc | COMMENT |
| LOW | tree-sitter/src/tree_sitter/alloc.h | 41 | #ifndef ts_realloc | COMMENT |
| LOW | crates/leo-aleo-abi-wasm/src/lib.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/fmt/tests/harness.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/fmt/tests/harness.rs | 161 | expected_path.display() | COMMENT |
| LOW | crates/fmt/tests/harness.rs | 461 | }); | COMMENT |
| LOW | crates/fmt/src/format.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/fmt/src/lib.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/fmt/src/lib.rs | 61 | /// Used by both the standalone `leo-fmt` binary and `leo fmt` command. | COMMENT |
| LOW | crates/fmt/src/output.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/fmt/src/main.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/tree-sitter-leo/tests/rowan_compat.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/tree-sitter-leo/bindings/rust/lib.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/tree-sitter-leo/bindings/rust/lib.rs | 21 | //! tree-sitter [`Parser`], and then use the parser to parse some code: | COMMENT |
| LOW | crates/tree-sitter-leo/bindings/rust/build.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/test_passes.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/test_passes.rs | 341 | COMMENT | |
| LOW | crates/passes/src/global_items_collection.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/global_items_collection.rs | 21 | //! variables, along with their associated types. It operates only on *resolved* | COMMENT |
| LOW | crates/passes/src/remove_unreachable.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/pass.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/lib.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/global_vars_collection.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/global_vars_collection.rs | 21 | //! it inserts constants, mappings, and storage variables into the symbol table | COMMENT |
| LOW | crates/passes/src/library_pruning.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/disambiguate.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/const_prop_unroll_and_morphing.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/cei_analysis/cross_layer_taint.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/cei_analysis/mod.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/cei_analysis/ordering.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/cei_analysis/ordering.rs | 21 | //! to `Final::run()`). An interaction cedes control to another program's | COMMENT |
| LOW | crates/passes/src/storage_lowering/mod.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/storage_lowering/mod.rs | 21 | //! `Mapping` instances, and all read/write operations are rewritten as `Mapping::get`, `Mapping::set`, or | COMMENT |
| LOW | crates/passes/src/storage_lowering/mod.rs | 41 | //! storage vec: [u32]; | COMMENT |
| LOW | crates/passes/src/storage_lowering/mod.rs | 61 | //! Mapping::set(vec__len__, false, $len_var + 1u32); | COMMENT |
| LOW | crates/passes/src/storage_lowering/mod.rs | 81 | //! | COMMENT |
| LOW | crates/passes/src/storage_lowering/program.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/storage_lowering/program.rs | 101 | // how the value is stored in lower-level form. | COMMENT |
| LOW | crates/passes/src/storage_lowering/ast.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/storage_lowering/ast.rs | 101 | .get(&value_expr.id()) | COMMENT |
| LOW | crates/passes/src/storage_lowering/visitor.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/storage_lowering/visitor.rs | 421 | // No transformation needed for mappings. | COMMENT |
| LOW | crates/passes/src/type_checking/scope_state.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/type_checking/mod.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/type_checking/program.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/type_checking/ast.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/type_checking/ast.rs | 281 | } | COMMENT |
| LOW | crates/passes/src/type_checking/visitor.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/type_checking/visitor.rs | 41 | /// Where in the program text a snarkVM-bound access operation is permitted. | COMMENT |
| LOW | crates/passes/src/type_checking/visitor.rs | 61 | /// The state of the current scope being traversed. | COMMENT |
| LOW | crates/passes/src/type_checking/visitor.rs | 421 | arguments.len(), | COMMENT |
| LOW | crates/passes/src/peephole_optimization/mod.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/processing_async/mod.rs | 1 | // Copyright (C) 2019-2026 Provable Inc. | COMMENT |
| LOW | crates/passes/src/processing_async/mod.rs | 21 | //! This involves: | COMMENT |
| 492 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/leo/src/cli/commands/execute.rs | 791 | // ── Warnings ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 231 | // ── Extracted helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 645 | // ── Single-package deploy ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 696 | // ── Workspace deploy ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 862 | // ── Configuration ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 870 | // ── Workspace members ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 898 | // ── Remote dependencies ────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 907 | // ── Actions ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 925 | // ── Warnings ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 936 | // ── Unchanged helpers ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 1119 | // ── Configuration ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 1127 | // ── Deployment tasks (bullet list) ─────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/deploy.rs | 1144 | // ── Skipped programs ───────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/deploy.rs | 1152 | // ── Remote dependencies ────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/deploy.rs | 1161 | // ── Actions ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/deploy.rs | 1179 | // ── Warnings ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/child_manager.rs | 65 | // ── 1) Polite pass ────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/child_manager.rs | 85 | // ── 2) Wait for orderly exit ──────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/child_manager.rs | 95 | // ── 3) Escalate to hard kill for survivors ────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/child_manager.rs | 114 | // ── 4) Final reap (avoid zombies) ─────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 48 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 50 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 128 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 130 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 137 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/windows_kill_tree.rs | 139 | //────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 121 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 123 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 128 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 130 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 214 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 216 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 224 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | crates/leo/src/cli/commands/devnet/mod.rs | 226 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 271 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 273 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 321 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 323 | //─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 415 | //────────────── tmux branch ────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/mod.rs | 508 | //──────────── background branch ────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/utilities.rs | 32 | //───────────────── 1. resolve & prepare directories ───────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/utilities.rs | 37 | //───────────────── 2. `cargo install` into <root> ─────────────────── | COMMENT |
| MEDIUM | crates/leo/src/cli/commands/devnet/utilities.rs | 50 | //───────────────── 3. link / copy to requested path ───────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/parser-rowan/Cargo.toml | 2 | # This file is part of the Leo library. | COMMENT |
| MEDIUM | .circleci/leo-clean.sh | 1 | # Create a new Leo program named `foo`. | COMMENT |
| MEDIUM | .circleci/leo-new.sh | 5 | # Create a new dummy Leo program and verify run + test work. | COMMENT |
| MEDIUM | .circleci/leo-new.sh | 27 | # Create a new dummy Leo library and verify build + test work. | COMMENT |
| MEDIUM | .circleci/tictactoe/run.sh | 8 | # Create a new game. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | DEVELOPMENT.md | 5 | ### Step 1: Install CircleCI | COMMENT |
| LOW | DEVELOPMENT.md | 25 | ### Step 2: Run CircleCI | COMMENT |
| LOW | crates/passes/src/option_lowering/mod.rs | 130 | // Step 1: Extract a usable type name | COMMENT |
| LOW | crates/passes/src/option_lowering/mod.rs | 164 | // Step 3: Build symbol that ends with `?`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/passes/src/option_lowering/mod.rs | 130 | // Step 1: Extract a usable type name | COMMENT |
| LOW | crates/passes/src/option_lowering/mod.rs | 164 | // Step 3: Build symbol that ends with `?`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/lsp/src/semantics.rs | 606 | // is robust to AST traversal order. | COMMENT |