A free and strong UCI chess engine
This report summarizes scanner evidence for official-stockfish/Stockfish, a C++ project with 16,880 GitHub stars. SynthScan examined 30,778 lines of code across 107 source files, recording 134 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 6.2 (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? 119 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 22 finding(s).
Which changes need focused human review? 134 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 134 distinct pattern matches across 9 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 | scripts/get_native_properties.sh | 1 | #!/bin/sh | COMMENT |
| LOW | src/memory.cpp | 21 | #include <cstdlib> | COMMENT |
| LOW | src/memory.cpp | 41 | #include <stdlib.h> | COMMENT |
| LOW | src/thread.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/engine.h | 21 | COMMENT | |
| LOW | src/numa.h | 21 | COMMENT | |
| LOW | src/numa.h | 41 | #include "misc.h" | COMMENT |
| LOW | src/numa.h | 501 | // Designed as immutable, because there is no good reason to alter an already | COMMENT |
| LOW | src/numa.h | 581 | cfg = std::move(*l3Cfg); | COMMENT |
| LOW | src/numa.h | 741 | return str; | COMMENT |
| LOW | src/numa.h | 901 | // Build 20348 the behaviour changed, so there's a small window of versions | COMMENT |
| LOW | src/types.h | 21 | COMMENT | |
| LOW | src/types.h | 41 | #include <cstdint> | COMMENT |
| LOW | src/types.h | 61 | #if defined(__GNUC__) && !defined(__clang__) \ | COMMENT |
| LOW | src/types.h | 81 | COMMENT | |
| LOW | src/types.h | 221 | constexpr Value PieceValue[PIECE_NB] = { | COMMENT |
| LOW | src/misc.cpp | 21 | #include <array> | COMMENT |
| LOW | src/misc.cpp | 121 | std::cin.rdbuf(&l.in); | COMMENT |
| LOW | src/misc.cpp | 181 | COMMENT | |
| LOW | src/misc.cpp | 261 | #if defined(USE_VNNI) | COMMENT |
| LOW | src/tune.h | 61 | // If you have a my_post_update() function to run after values have been updated, | COMMENT |
| LOW | src/misc.h | 21 | COMMENT | |
| LOW | src/misc.h | 421 | inner = val; | COMMENT |
| LOW | src/misc.h | 541 | COMMENT | |
| LOW | src/misc.h | 561 | #define sf_assume(cond) __builtin_assume(cond) | COMMENT |
| LOW | src/misc.h | 581 | #define sf_unreachable() __builtin_unreachable() | COMMENT |
| LOW | src/thread_native.h | 21 | COMMENT | |
| LOW | src/benchmark.cpp | 381 | COMMENT | |
| LOW | src/evaluate.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/thread.h | 21 | COMMENT | |
| LOW | src/history.h | 21 | COMMENT | |
| LOW | src/search.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/search.cpp | 41 | #include "movepick.h" | COMMENT |
| LOW | src/search.cpp | 1261 | if (!pos.see_ge(move, -23 * lmrDepth * lmrDepth)) | COMMENT |
| LOW | src/search.cpp | 2281 | } | COMMENT |
| LOW | src/shm.h | 21 | COMMENT | |
| LOW | src/shm.h | 41 | #define USE_UNIX_SHM | COMMENT |
| LOW | src/shm.h | 61 | #include <cstring> | COMMENT |
| LOW | src/shm.h | 81 | #include <unistd.h> | COMMENT |
| LOW | src/memory.h | 21 | COMMENT | |
| LOW | src/memory.h | 41 | #endif | COMMENT |
| LOW | src/shm_unix.h | 21 | COMMENT | |
| LOW | src/shm_unix.h | 41 | #include <sys/file.h> | COMMENT |
| LOW | src/engine.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/attacks.h | 21 | COMMENT | |
| LOW | src/attacks.h | 101 | COMMENT | |
| LOW | src/movegen.cpp | 21 | #include <cassert> | COMMENT |
| LOW | src/tt.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/tt.cpp | 41 | // pv node 1 bit | COMMENT |
| LOW | src/search.h | 21 | COMMENT | |
| LOW | src/tt.h | 21 | COMMENT | |
| LOW | src/position.h | 21 | COMMENT | |
| LOW | src/position.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/uci.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/universal/patch_x86_slice.sh | 1 | #!/bin/sh | COMMENT |
| LOW | src/universal/nnue_embed.cpp | 21 | #include "../evaluate.h" | COMMENT |
| LOW | src/nnue/network.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/nnue/network.cpp | 41 | COMMENT | |
| LOW | src/nnue/nnue_accumulator.cpp | 21 | #include <algorithm> | COMMENT |
| LOW | src/nnue/nnue_common.h | 21 | #ifndef NNUE_COMMON_H_INCLUDED | COMMENT |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/instrumented.py | 226 | self.stockfish.equals("uciok") | CODE |
| HIGH | tests/instrumented.py | 330 | self.stockfish.equals("bestmove d5e6") | CODE |
| HIGH⚡ | tests/instrumented.py | 645 | self.stockfish.equals("readyok") | CODE |
| HIGH⚡ | tests/instrumented.py | 650 | self.stockfish.equals("readyok") | CODE |
| HIGH⚡ | tests/instrumented.py | 655 | self.stockfish.equals("readyok") | CODE |
| HIGH⚡ | tests/instrumented.py | 672 | self.stockfish.equals("readyok") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/get_native_properties.sh | 10 | # --------------------------- | COMMENT |
| MEDIUM | scripts/get_native_properties.sh | 12 | # --------------------------- | COMMENT |
| MEDIUM | scripts/get_native_properties.sh | 202 | # --------------------------- | COMMENT |
| MEDIUM | scripts/get_native_properties.sh | 204 | # --------------------------- | COMMENT |
| MEDIUM | scripts/get_native_properties.sh | 285 | # --------------------------- | COMMENT |
| MEDIUM | scripts/get_native_properties.sh | 287 | # --------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/instrumented.py | 172 | def test_export_net_verify_nnue(self): | CODE |
| LOW | tests/instrumented.py | 237 | def test_ucinewgame_and_startpos_moves(self): | CODE |
| LOW⚡ | tests/instrumented.py | 341 | def test_fen_position_fixed_node(self): | CODE |
| LOW⚡ | tests/instrumented.py | 349 | def test_fen_position_with_mate_go_depth(self): | CODE |
| LOW⚡ | tests/instrumented.py | 359 | def test_fen_position_with_mate_go_mate(self): | CODE |
| LOW⚡ | tests/instrumented.py | 369 | def test_fen_position_with_mate_go_nodes(self): | CODE |
| LOW⚡ | tests/instrumented.py | 389 | def test_fen_position_with_mate_go_depth_and_promotion(self): | CODE |
| LOW⚡ | tests/instrumented.py | 398 | def test_fen_position_with_mate_go_depth_and_searchmoves(self): | CODE |
| LOW⚡ | tests/instrumented.py | 408 | def test_fen_position_with_moves_with_mate_go_depth_and_searchmoves(self): | CODE |
| LOW | tests/instrumented.py | 434 | def test_fen_position_with_skill_level(self): | CODE |
| LOW | tests/instrumented.py | 619 | def test_invalid_side_to_move(self): | CODE |
| LOW⚡ | tests/instrumented.py | 662 | def test_numa_malformed_range(self): | CODE |
| LOW | tests/testing.py | 49 | def get_valgrind_thread_command(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/testing.py | 329 | except (OSError, ValueError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/instrumented.py | 41 | CODE | |
| LOW | tests/testing.py | 77 | CODE | |
| LOW | tests/testing.py | 134 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/numa.h | 1064 | // node. On Windows we utilize GetNumaProcessorNodeEx, which has its quirks, see | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/testing.py | 147 | except Exception as e: | CODE |
| LOW | tests/testing.py | 201 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/thread_native.h | 56 | // TODO: implement fallible thread creation for MSVC | COMMENT |