This report summarizes scanner evidence for genlayerlabs/genlayer-project-boilerplate, a TypeScript project with 18,768 GitHub stars. SynthScan examined 17,709 lines of code across 63 source files, recording 74 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 6.6 (Moderate 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? 48 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 69 finding(s).
Which changes need focused human review? 74 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 74 distinct pattern matches across 7 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 |
|---|---|---|---|---|
| MEDIUM | contracts/PatternTest.py | 24 | # ── Pattern 1 & 2: gl.vm.Return type check + partial field matching ────── | COMMENT |
| MEDIUM | contracts/PatternTest.py | 69 | # ── Pattern 4: u256 arithmetic ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 85 | # ── Pattern 5: Address constructor ──────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 94 | # ── Pattern 6: json.dumps sort_keys ────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | contracts/PatternTest.py | 101 | # ── Pattern 7: Nested TreeMap workaround ───────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 74 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 76 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 98 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/direct/test_patterns.py | 100 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/direct/test_patterns.py | 15 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/direct/test_patterns.py | 17 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/integration/test_new_features.py | 37 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/integration/test_new_features.py | 39 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | tests/integration/test_new_features.py | 118 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 120 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 240 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| MEDIUM⚡ | tests/integration/test_new_features.py | 242 | # ───────────────────────────────────────────────────────────────────────────── | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/lib/genlayer/client.ts | 275 | export function createMetaMaskWalletClient(): WalletClient | null { | CODE |
| LOW | frontend/lib/genlayer/fees.ts | 32 | function transactionFeesFromEstimate(estimate: FeePresetEstimate["estimate"]) { | CODE |
| LOW | frontend/lib/genlayer/fees.ts | 51 | export function feePresetToTransactionFees(preset?: FeePresetEstimate) { | CODE |
| LOW | tests/direct/test_create_bet.py | 28 | def test_create_multiple_bets(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_create_bet.py | 42 | def test_create_duplicate_bet_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_create_bet.py | 52 | def test_different_users_can_bet_same_match( | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 44 | def test_json_with_backtick_fences(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 50 | def test_json_with_plain_backtick_fences(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 56 | def test_leading_trailing_whitespace(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 62 | def test_json_with_preamble_text(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 81 | def test_stable_across_two_calls(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 87 | def test_sort_keys_orders_alphabetically(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 92 | def test_insertion_order_dict_same_output(self): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 105 | def test_isinstance_return_on_success(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 241 | def test_add_multiple_items_same_key(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 250 | def test_different_keys_are_independent(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 258 | def test_empty_key_returns_empty_list(self, direct_vm, direct_deploy): | CODE |
| LOW⚡ | tests/direct/test_patterns.py | 264 | def test_json_string_stored_and_retrieved(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 32 | def test_raw_dict_passthrough(self): | CODE |
| LOW | tests/direct/test_patterns.py | 119 | def test_validator_distinguishes_return_from_error(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 137 | def test_partial_match_ignores_analysis_field(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 170 | def test_increment_multiple_times(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 198 | def test_address_from_hex_str(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 208 | def test_address_from_raw_bytes(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 275 | def test_stable_json_same_output_twice(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_patterns.py | 283 | def test_stable_json_sorts_keys(self, direct_vm, direct_deploy): | CODE |
| LOW | tests/direct/test_views.py | 18 | def test_get_player_points_default_zero(direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 39 | def test_resolve_losing_bet_no_points(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 74 | def test_resolve_already_resolved_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 87 | def test_resolve_unfinished_game_fails(direct_vm, direct_deploy, direct_alice): | CODE |
| LOW | tests/direct/test_resolve_bet.py | 98 | def test_multiple_users_resolve_independently( | CODE |
| LOW⚡ | tests/integration/test_new_features.py | 123 | def test_run_validator_exists(direct_vm): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 129 | def test_run_validator_raises_without_captured(direct_vm): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 135 | def test_run_validator_false_when_mocks_differ(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW⚡ | tests/integration/test_new_features.py | 245 | def test_mock_web_intercepts_render_screenshot_call(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 163 | def test_run_validator_true_when_mocks_agree(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 184 | def test_run_validator_respects_leader_result_override(direct_vm, direct_deploy, nondet_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 206 | def test_run_validator_with_football_bets_skips_gracefully(direct_vm, direct_deploy): | STRING |
| LOW | tests/integration/test_new_features.py | 260 | def test_web_render_screenshot_empty_bytes_causes_pil_error(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 279 | def test_exec_prompt_accepts_raw_image_bytes(direct_vm, direct_deploy, visual_contract_path): | STRING |
| LOW | tests/integration/test_new_features.py | 294 | def test_web_render_text_mode_works(direct_vm, direct_deploy): | STRING |
| LOW | tests/integration/test_new_features.py | 316 | def test_image_object_structure(): | STRING |
| LOW | tests/integration/test_football_bets.py | 35 | def test_football_bets_success_win(): | CODE |
| LOW | tests/integration/test_football_bets.py | 66 | def test_football_bets_draw_success(): | CODE |
| LOW | tests/integration/test_football_bets.py | 99 | def test_football_bets_unsuccess(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/integration/test_new_features.py | 220 | except Exception: | CODE |
| HIGH | tests/integration/test_new_features.py | 307 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contracts/PatternTest.py | 8 | CODE | |
| LOW | contracts/football_bets.py | 5 | CODE | |
| LOW | tests/direct/test_patterns.py | 11 | CODE | |
| LOW | tests/direct/test_patterns.py | 222 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | package-lock.json | 2822 | "resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.7.8.tgz", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | contracts/PatternTest.py | 52 | CODE | |
| LOW | contracts/PatternTest.py | 67 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration/test_new_features.py | 220 | except Exception: | STRING |
| LOW | tests/integration/test_new_features.py | 307 | except Exception: | STRING |
| LOW | tests/integration/test_new_features.py | 343 | except Exception: | STRING |