🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.
This report summarizes scanner evidence for valeriansaliou/sonic, a Rust project with 21,372 GitHub stars. SynthScan examined 50,915 lines of code across 268 source files, recording 79 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.9 (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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 49 finding(s).
Are imports declared and package/API names verified? 30 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 79 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 79 distinct pattern matches across 4 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⚡ | core/tests/loose_matching.rs | 161 | "Contact me at alice@example.org", | CODE |
| LOW⚡ | core/tests/loose_matching.rs | 165 | query: "alice@example.org", | CODE |
| LOW⚡ | core/tests/loose_matching.rs | 169 | "Contact me at alice+foo@example.org", | CODE |
| LOW⚡ | core/tests/loose_matching.rs | 172 | query: "alice+foo@example.org", | CODE |
| LOW | core/src/lexer/token.rs | 66 | .preprocess("Please contact support@example.org", None) | CODE |
| LOW⚡ | core/src/lexer/token.rs | 83 | .preprocess("Please contact support@example.org", None) | CODE |
| LOW⚡ | core/src/lexer/token.rs | 87 | ("support@example.org".to_owned(), TokenKind::Special(SpecialTokenKind::EmailAddress), 15, 34, 2) | CODE |
| LOW⚡ | core/src/lexer/token.rs | 95 | .preprocess("Please contact support@example.org", None) | CODE |
| LOW⚡ | core/src/lexer/token.rs | 208 | ("jane.doe@example.org", TokenKind::Special(SpecialTokenKind::EmailAddress)), | CODE |
| LOW⚡ | core/src/lexer/token.rs | 209 | ("alice@example.org", TokenKind::Special(SpecialTokenKind::EmailAddress)), | CODE |
| LOW⚡ | core/src/lexer/token.rs | 211 | ("bob+foo@example.org", TokenKind::Special(SpecialTokenKind::EmailAddress)), | CODE |
| LOW⚡ | server/tests/search_query.rs | 34 | ("msg:1", "olivia@example.org"), | CODE |
| LOW⚡ | server/tests/search_query.rs | 35 | ("msg:2", "olivio@example.org"), | CODE |
| LOW⚡ | server/tests/search_query.rs | 36 | ("msg:3", "alicia@example.org"), | CODE |
| LOW | server/tests/search_query.rs | 62 | .query("messages", "default", "olivia@example.org") | CODE |
| LOW | server/tests/search_query.rs | 85 | .query("messages", "default", "olivia@example.org") | CODE |
| LOW | server/tests/search_query.rs | 109 | .query("messages", "default", "olivia@example.org") | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 18 | PUSH msg:1 "olivia@example.org" | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 20 | PUSH msg:2 "olivio@example.org" # Lev(msg:1, msg:2) = 1 | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 22 | PUSH msg:3 "alicia@example.org" # Lev(msg:1, msg:3) = 2 | CODE |
| LOW | docs/tokenizer-pattern-matching.md | 39 | QUERY "olivia@example.org" | CODE |
| LOW | docs/tokenizer-pattern-matching.md | 71 | QUERY "olivia@example.org" | CODE |
| LOW | docs/tokenizer-pattern-matching.md | 98 | QUERY "olivia@example.org" | CODE |
| LOW | docs/tokenizer-pattern-matching.md | 132 | QUERY "olivia@example.org" | CODE |
| LOW | docs/tokenizer-pattern-matching.md | 172 | QUERY "olivia@example.org" | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 191 | PUSH msg:1 "olivia@example.org" | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 193 | PUSH msg:2 "olivio@example.org" | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 195 | PUSH msg:3 "alicia@example.org" | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 203 | "olivia@example.org", "olivio@example.org", "alicia@example.org", | CODE |
| LOW⚡ | docs/tokenizer-pattern-matching.md | 208 | QUERY "olivia@example.org" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config.cfg | 21 | # become enabled by default (opt-out). Sonic won’t enable unreasonable | COMMENT |
| LOW | core/tests/typo_correction.rs | 1 | // Sonic | COMMENT |
| LOW | core/tests/typo_correction.rs | 21 | //! }; | COMMENT |
| LOW | core/tests/typo_correction.rs | 41 | // <https://github.com/valeriansaliou/sonic/issues/322#issuecomment-4638688602>. | COMMENT |
| LOW | core/tests/back_compat.rs | 1 | // Sonic | COMMENT |
| LOW | core/tests/search_term_ranking.rs | 1 | // Sonic | COMMENT |
| LOW | core/tests/search_term_ranking.rs | 21 | /// been skipped during ingestion can be looked up at query time and the fact | COMMENT |
| LOW | core/tests/non_regression.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/config.rs | 161 | /// Whether or not to compress. | COMMENT |
| LOW | core/src/stopwords/amh.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/tuk.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/ori.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/bel.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/jav.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/uzb.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/aka.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/sin.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/mkd.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/sna.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/tel.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/stopwords/cym.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/lexer/token.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/executor/flushc.rs | 1 | // Sonic | COMMENT |
| LOW | core/src/store/kv/util.rs | 181 | if new_val > res { | COMMENT |
| LOW | core/src/store/fst/pool.rs | 501 | COMMENT | |
| LOW | server/tests/non_regression.rs | 1 | // Sonic | COMMENT |
| LOW | server/benches/common/huggingface/mod.rs | 1 | // Sonic | COMMENT |
| LOW | server/src/util/mod.rs | 1 | // Sonic | COMMENT |
| LOW | server/src/tasker/mod.rs | 1 | // Sonic | COMMENT |
| LOW | scripts/make_release.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/build_release_archive.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | client/src/events.rs | 101 | } | COMMENT |
| LOW | client/src/channel.rs | 521 | // NOTE: This isn’t ideal, but it would add branching to fix this case, | COMMENT |
| LOW | client/src/channel.rs | 541 | assert_eq!(split_on_whitespace("300 km². ", 4), ("300", " km². ")); | COMMENT |
| LOW | client/src/control.rs | 121 | /// uptime: 20868, | COMMENT |
| LOW | client/src/lib.rs | 1 | // Sonic | COMMENT |
| LOW | client/src/lib.rs | 41 | pub use crate::multiplexer::SonicMultiplexer; | COMMENT |
| LOW | client/src/lib.rs | 61 | /// We chose 2 * 4KiB (common memory page size) as the default, which should | COMMENT |
| LOW | client/src/connection.rs | 61 | /// `SonicConnection` (necessary when dealing with mutable references). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/src/store/kv/pool.rs | 244 | // Step 1: List keys to be flushed | COMMENT |
| LOW | core/src/store/kv/pool.rs | 288 | // Step 2: Flush KVs, one-by-one (sequential locking; this avoids global locks) | COMMENT |
| LOW | core/src/store/fst/pool.rs | 307 | // Step 1: List keys to be consolidated | COMMENT |
| LOW | core/src/store/fst/pool.rs | 363 | // Step 2: Clear keys to be consolidated from register | COMMENT |
| LOW | core/src/store/fst/pool.rs | 378 | // Step 3: Consolidate FSTs, one-by-one (sequential locking; this avoids global locks) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/src/store/kv/pool.rs | 244 | // Step 1: List keys to be flushed | COMMENT |
| LOW | core/src/store/kv/pool.rs | 288 | // Step 2: Flush KVs, one-by-one (sequential locking; this avoids global locks) | COMMENT |
| LOW | core/src/store/fst/pool.rs | 307 | // Step 1: List keys to be consolidated | COMMENT |
| LOW | core/src/store/fst/pool.rs | 363 | // Step 2: Clear keys to be consolidated from register | COMMENT |
| LOW | core/src/store/fst/pool.rs | 378 | // Step 3: Consolidate FSTs, one-by-one (sequential locking; this avoids global locks) | COMMENT |