AI Slop Code RIsk Monitor

RyanCodrai/turbovec

A vector index built on TurboQuant, written in Rust with Python bindings

16.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for RyanCodrai/turbovec, a Rust project with 17,372 GitHub stars. SynthScan examined 111,219 lines of code across 710 source files, recording 1498 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 16.0 (Elevated 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.

16.0
Adjusted Signal
16.0
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
17.4K
Stars
Rust
Language
111.2K
Lines of Code
710
Files
1.5K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 38.4/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 1253 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.4/100 · LOW

Are imports declared and package/API names verified? 54 finding(s).

Agent Over-Engineering Ratio 42.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 900 finding(s).

PR Review Velocity Impact 57.9/100 · HIGH

Which changes need focused human review? 1498 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 14MEDIUM 178LOW 1306

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 1498 distinct pattern matches across 15 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.

Hyper-Verbose Identifiers707 hits · 582 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py210def _legacy_split_persist_base(persist_path: str | Path) -> tuple[Path, Path]:CODE
LOWturbovec-python/python/turbovec/haystack.py469 def count_documents_by_filter(self, filters: Dict[str, Any]) -> int:CODE
LOWturbovec-python/python/turbovec/haystack.py479 def count_unique_metadata_by_filter(CODE
LOWturbovec-python/python/turbovec/haystack.py515 def get_metadata_field_min_max(self, metadata_field: str) -> Dict[str, Any]:CODE
LOWturbovec-python/python/turbovec/haystack.py535 def get_metadata_field_unique_values(CODE
LOWturbovec-python/python/turbovec/haystack.py721 async def delete_all_documents_async(self) -> None:CODE
LOW⚡turbovec-python/python/turbovec/haystack.py733 async def count_documents_by_filter_async(self, filters: Dict[str, Any]) -> int:CODE
LOW⚡turbovec-python/python/turbovec/haystack.py738 async def count_unique_metadata_by_filter_async(CODE
LOW⚡turbovec-python/python/turbovec/haystack.py748 async def get_metadata_fields_info_async(self) -> Dict[str, Dict[str, str]]:CODE
LOW⚡turbovec-python/python/turbovec/haystack.py753 async def get_metadata_field_min_max_async(CODE
LOW⚡turbovec-python/python/turbovec/haystack.py761 async def get_metadata_field_unique_values_async(CODE
LOW⚡turbovec-python/python/turbovec/haystack.py771 async def embedding_retrieval_async(CODE
LOWturbovec-python/python/turbovec/agno.py699 def _handles_for_content_hash(self, content_hash: str) -> List[int]:CODE
LOWturbovec-python/python/turbovec/agno.py776 def _resolve_filter_to_handles(CODE
LOWturbovec-python/python/turbovec/agno.py1041 def get_supported_search_types(self) -> List[SearchType]:CODE
LOWturbovec-python/python/turbovec/langchain.py157 def _select_relevance_score_fn(self) -> Callable[[float], float]:CODE
LOWturbovec-python/python/turbovec/langchain.py207 def _validate_query_embedding(self, embedded: Any) -> np.ndarray:CODE
LOWturbovec-python/python/turbovec/langchain.py492 def similarity_search_with_score(CODE
LOWturbovec-python/python/turbovec/langchain.py502 async def asimilarity_search_with_score(CODE
LOWturbovec-python/python/turbovec/langchain.py514 def similarity_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py524 async def asimilarity_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py537 def similarity_search_with_score_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py551 async def asimilarity_search_with_score_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py704 def max_marginal_relevance_search(CODE
LOWturbovec-python/python/turbovec/langchain.py714 def max_marginal_relevance_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py726 async def amax_marginal_relevance_search(CODE
LOWturbovec-python/tests/test_rayon_env.py56def test_huge_rayon_num_threads_does_not_panic():STRING
LOW⚡turbovec-python/tests/test_rayon_env.py74def test_huge_rayon_num_threads_warns_naming_the_variable():STRING
LOW⚡turbovec-python/tests/test_rayon_env.py80def test_small_rayon_num_threads_matches_unset_results():STRING
LOW⚡turbovec-python/tests/test_rayon_env.py90def test_unset_and_zero_emit_no_warning():STRING
LOW⚡turbovec-python/tests/test_pickle_copy.py54def test_index_to_bytes_round_trips_and_matches_file(tmp_path):CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py120def test_lazy_index_bytes_round_trip():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py248def test_llama_pickle_round_trips_data():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py332def test_langchain_deepcopy_is_independent():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py387def test_langchain_copy_does_not_bleed():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py397def test_haystack_copy_does_not_bleed():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py406def test_llama_copy_does_not_bleed():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py415def test_agno_copy_does_not_bleed():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py569def test_agno_getstate_snapshot_isolated_from_update_metadata():CODE
LOW⚡turbovec-python/tests/test_pickle_copy.py629def test_unpickled_langchain_store_lock_serializes_writes():CODE
LOWturbovec-python/tests/test_pickle_copy.py73def test_id_map_to_bytes_round_trips_and_matches_file(tmp_path):CODE
LOWturbovec-python/tests/test_pickle_copy.py93def test_from_bytes_accepts_bytearray():CODE
LOWturbovec-python/tests/test_pickle_copy.py100def test_from_bytes_rejects_corrupt_and_wrong_type():CODE
LOWturbovec-python/tests/test_pickle_copy.py273def test_langchain_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py288def test_haystack_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py304def test_agno_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py316def test_agno_uncreated_store_pickles():CODE
LOWturbovec-python/tests/test_pickle_copy.py346def test_haystack_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py357def test_llama_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py370def test_agno_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py468def test_langchain_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py482def test_haystack_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py504def test_llama_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py530def test_agno_mode_survives_pickle_and_deepcopy(mode_name):CODE
LOWturbovec-python/tests/test_pickle_copy.py603def test_haystack_getstate_snapshot_isolated_from_update_by_filter():CODE
LOWturbovec-python/tests/test_pickle_copy.py681def test_spawned_child_searches_pickled_store(maker, child, expected):CODE
LOW⚡turbovec-python/tests/test_llama_index.py72def test_lazy_dim_locked_on_first_add():CODE
LOW⚡turbovec-python/tests/test_llama_index.py79def test_from_params_without_dim_is_lazy():CODE
LOW⚡turbovec-python/tests/test_llama_index.py84def test_persist_and_load_lazy_uncommitted_store(tmp_path):CODE
LOW⚡turbovec-python/tests/test_llama_index.py127def test_ref_doc_id_preserved_through_query():CODE
647 more matches not shown…
Decorative Section Separators164 hits · 568 pts
SeverityFileLineSnippetContext
MEDIUMturbovec/tests/from_parts.rs47// ─── happy path ─────────────────────────────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs130// ─── every invariant → its named error ──────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs297// ─── overflow-safe size math ────────────────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs315// ─── value validation: parity with the .tv loader ───────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs419// ─── property: accepted ⇒ survives its own write → load round-trip ──────────COMMENT
MEDIUMturbovec/tests/from_parts.rs549// ─── error is a proper std::error::Error with a readable message ─────────────COMMENT
MEDIUMturbovec/examples/kernel_xtest.rs96// ─── Tiny deterministic PRNG (xoshiro256** seeded via splitmix64) ────────COMMENT
MEDIUMturbovec/src/encode.rs859// ─── Per-vector norm ─────────────────────────────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs990// ─── Fused quantize + scale + pack (aarch64) ────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs1202// ─── Fused quantize + scale + pack (x86_64) ─────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs1391// ─── Fused quantize + scale + pack (fallback) ───────────────────────────────COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py51# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py128# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py130# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py242# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py245# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py327# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py329# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py381# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py384# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py424# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py432# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py561# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py566# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py624# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_pickle_copy.py626# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py652# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py655# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py263# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py265# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py327# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py329# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_agno.py1753# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_agno.py1755# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py56# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py58# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py94# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py96# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py168# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py170# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py202# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py246# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py248# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py316# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_object_model.py318# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py190# --------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_similarity_modes.py428# =====================================================================COMMENT
MEDIUM⚡turbovec-python/tests/test_similarity_modes.py430# =====================================================================COMMENT
MEDIUM⚡turbovec-python/tests/test_similarity_modes.py582# =====================================================================COMMENT
MEDIUM⚡turbovec-python/tests/test_similarity_modes.py584# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py80# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py82# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py288# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py290# =====================================================================COMMENT
MEDIUM⚡turbovec-python/tests/test_interruptible.py45# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_interruptible.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡turbovec-python/tests/test_interruptible.py120# ---------------------------------------------------------------------------COMMENT
104 more matches not shown…
Over-Commented Block506 hits · 422 pts
SeverityFileLineSnippetContext
LOWdeny.toml1# cargo-deny configuration — supply-chain gate for the Rust crate.COMMENT
LOWdeny.toml41# legal/compliance concern rather than a security one, and an allow-list is theCOMMENT
LOWturbovec/Cargo.toml1[package]COMMENT
LOWturbovec/Cargo.toml41rand = "0.8"COMMENT
LOWturbovec/Cargo.toml61# directly and production code no longer calls `inverse_cdf` at all, so theCOMMENT
LOWturbovec/tests/warning_hook.rs1//! The post-commit durability shortfall (#365) must reach the callerCOMMENT
LOWturbovec/tests/warning_hook.rs41COMMENT
LOWturbovec/tests/adversarial_load_memory.rs181 );COMMENT
LOWturbovec/tests/input_validation_reporting.rs1//! The invalid-coordinate scan reports *which* coordinate was bad, andCOMMENT
LOWturbovec/tests/concurrent_search.rs1//! Integration tests for concurrent search on a shared `TurboQuantIndex`.COMMENT
LOWturbovec/tests/concurrent_search.rs341fn tied_scores_agree_across_search_paths() {COMMENT
LOWturbovec/tests/crate_api.rs1//! The crate's surface as a downstream dependency (#351).COMMENT
LOWturbovec/tests/crate_api.rs181/// a panic in any *other* test has its diagnostics swallowed. This repoCOMMENT
LOWturbovec/tests/single_query_pool.rs1//! One query searched on a pool takes a different path through the stagedCOMMENT
LOWturbovec/tests/filtering.rs1//! Correctness tests for slot-mask filtering on `TurboQuantIndex` and theCOMMENT
LOWturbovec/tests/filtering.rs401 }COMMENT
LOWturbovec/tests/filtering.rs521/// threshold (#336) cannot silently move these tests off the path theyCOMMENT
LOWturbovec/tests/filtering.rs641 }COMMENT
LOWturbovec/tests/input_validation.rs1//! Input-validation tests for `TurboQuantIndex` and `IdMapIndex`.COMMENT
LOWturbovec/tests/adversarial_gen_reuse.rs1//! Deterministic reproducer: a v7 commit generation is reused after aCOMMENT
LOWturbovec/tests/swap_remove.rs1//! Correctness of `TurboQuantIndex::swap_remove`.COMMENT
LOWturbovec/tests/kernel_correctness.rs1//! Correctness harness for the SIMD scoring kernels.COMMENT
LOWturbovec/tests/kernel_correctness.rs341 }COMMENT
LOWturbovec/tests/allocation_hot_paths.rs1//! Allocation-shape gates for the two hot paths in issue #409.COMMENT
LOWturbovec/tests/lazy_init.rs1//! Tests for lazy index construction on `TurboQuantIndex` and `IdMapIndex`.COMMENT
LOWturbovec/tests/adversarial_durability.rs1//! Adversarial durability probes: a power-loss model coarser than theCOMMENT
LOWturbovec/tests/codebook_determinism.rs1//! Golden pin for the Lloyd-Max codebook.COMMENT
LOWturbovec/tests/codebook_determinism.rs21//! exact-pinned for the same reason — `rand_chacha` at `=0.3.1`COMMENT
LOWturbovec/tests/explicit_calibration.rs1//! Explicit TQ+ calibration: `calibrate_2d` / `calibrate`.COMMENT
LOWturbovec/tests/explicit_calibration.rs61COMMENT
LOWturbovec/tests/explicit_calibration.rs241 let mut trickled = TurboQuantIndex::new(dim, 2).unwrap();COMMENT
LOWturbovec/tests/explicit_calibration.rs281 // but no recovery. If this assertion ever *fails upward*, refit hasCOMMENT
LOWturbovec/tests/query_scale_invariance.rs1//! Ranking must be invariant to positive uniform scaling of the query (#335).COMMENT
LOWturbovec/tests/query_scale_invariance.rs41 for (d, t) in tmp.iter().enumerate() {COMMENT
LOWturbovec/tests/query_scale_invariance.rs101 // for those queries the top-k id *set* legitimately differs acrossCOMMENT
LOWturbovec/tests/query_scale_invariance.rs121 // other* while both satisfy the condition above. If that pairCOMMENT
LOWturbovec/tests/recall_sanity.rs1//! Recall floor for the v5 block-Hadamard rotation.COMMENT
LOWturbovec/tests/rotation.rs1//! Correctness tests for the deterministic block-Hadamard rotation.COMMENT
LOWturbovec/tests/tmp_sweep.rs1//! Stale-temp sweep, driven through a real save (#299, #488).COMMENT
LOWturbovec/tests/tmp_sweep.rs21//! overlapping. Nothing here waits on the product's mutex; the testsCOMMENT
LOWturbovec/tests/tmp_sweep.rs101/// Save through `sync()` — the v7 container — serialized like the rest.COMMENT
LOWturbovec/tests/tmp_sweep.rs161/// permanent no-op and a crash-looping writer's temps accumulatedCOMMENT
LOWturbovec/tests/tmp_sweep.rs261/// name 1-3 bytes short of NAME_MAX, because `tmp_sibling` walks back toCOMMENT
LOWturbovec/tests/sync_v7.rs541 );COMMENT
LOWturbovec/tests/bytes_io.rs1//! In-memory serialization API: `to_bytes` / `from_bytes` /COMMENT
LOWturbovec/tests/avx512_tail_simulation.rs1//! Differential simulation of the AVX-512BW paired-block kernel'sCOMMENT
LOWturbovec/tests/encode_fingerprint.rs1//! Absolute golden anchor for every stage that decides an encoded byte.COMMENT
LOWturbovec/tests/encode_fingerprint.rs21//! `inverse_cdf` moved `tqplus_shift`/`tqplus_scale` by ~5e-4COMMENT
LOWturbovec/tests/encode_fingerprint.rs41//! The six columns below pin all of it: not "this build agrees withCOMMENT
LOWturbovec/tests/encode_fingerprint.rs61//!COMMENT
LOWturbovec/tests/encode_fingerprint.rs221/// caller could reasonably predict or work around.COMMENT
LOWturbovec/tests/encode_fingerprint.rs241#[test]COMMENT
LOWturbovec/tests/common/fingerprint.rs1//! The encode fingerprint: one six-column hash row per `(dim, bits)` cell.COMMENT
LOWturbovec/tests/common/fingerprint.rs21//! a `#[path]` module.COMMENT
LOWturbovec/tests/common/fingerprint.rs161 let vectors = lcg_vectors(N, dim, cell_seed(dim, bits));COMMENT
LOWturbovec/examples/kernel_roofline.rs1//! What rate can this machine actually sustain on the search kernel's innerCOMMENT
LOWturbovec/examples/probe_2bit_vnni.rs1//! P6 — price the x86 2-bit formulations: shipped vpermb-LUT against aCOMMENT
LOWturbovec/examples/kernel_roofline_neon.rs1//! The aarch64 counterpart to `kernel_roofline`: what rate can this machineCOMMENT
LOWturbovec/examples/kernel_roofline_neon.rs141 println!("Real kernel, nq=100 dim=768 N=200k:");COMMENT
LOWturbovec/examples/kernel_roofline_neon.rs221 sink = sink.wrapping_add(vaddvq_u16(*v) as u64);COMMENT
446 more matches not shown…
Unused Imports53 hits · 46 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/_interruptible.py82CODE
LOWturbovec-python/python/turbovec/llama_index.py18CODE
LOWturbovec-python/python/turbovec/_similarity.py23CODE
LOWturbovec-python/python/turbovec/haystack.py16CODE
LOWturbovec-python/python/turbovec/_persist.py23CODE
LOWturbovec-python/python/turbovec/agno.py24CODE
LOWturbovec-python/python/turbovec/agno.py32CODE
LOWturbovec-python/python/turbovec/__init__.py1CODE
LOWturbovec-python/python/turbovec/__init__.py1CODE
LOWturbovec-python/python/turbovec/langchain.py21CODE
LOWturbovec-python/python/turbovec/_dedup.py20CODE
LOWturbovec-python/tests/test_rayon_env.py12CODE
LOWturbovec-python/tests/test_pickle_copy.py15CODE
LOWturbovec-python/tests/test_llama_index.py1CODE
LOWturbovec-python/tests/test_version.py2CODE
LOWturbovec-python/tests/test_argument_errors.py11CODE
LOWturbovec-python/tests/test_dedup.py2CODE
LOWturbovec-python/tests/test_haystack.py2CODE
LOWturbovec-python/tests/test_security.py9CODE
LOWturbovec-python/tests/test_gil_release.py17CODE
LOWturbovec-python/tests/test_id_map.py2CODE
LOWturbovec-python/tests/test_async_offload.py27CODE
LOWturbovec-python/tests/test_agno.py2CODE
LOWturbovec-python/tests/test_persist.py2CODE
LOWturbovec-python/tests/test_langchain.py1CODE
LOWturbovec-python/tests/test_remove_fast_path.py57CODE
LOWturbovec-python/tests/test_object_model.py13CODE
LOWturbovec-python/tests/test_object_model.py18CODE
LOWturbovec-python/tests/test_object_model.py19CODE
LOWturbovec-python/tests/test_object_model.py20CODE
LOWturbovec-python/tests/test_index.py7CODE
LOWturbovec-python/tests/test_similarity_modes.py27CODE
LOWturbovec-python/tests/test_interruptible.py21CODE
LOWturbovec-python/tests/test_fork_safety.py26CODE
LOWturbovec-python/tests/test_store_thread_safety.py26CODE
LOWturbovec-python/tests/test_filtering.py2CODE
LOWbenchmarks/hillclimb/cells_2bit.py23CODE
LOWbenchmarks/hillclimb/mt_roofline_nq1.py15CODE
LOWbenchmarks/hillclimb/recall_h72.py3CODE
LOWbenchmarks/hillclimb/sweep_paired.py17CODE
LOWbenchmarks/hillclimb/sweep_paired.py19CODE
LOWbenchmarks/hillclimb/sweep_2bit.py15CODE
LOWbenchmarks/hillclimb/cells.py16CODE
LOWbenchmarks/hillclimb/cells.py19CODE
LOWbenchmarks/hillclimb/r3_rig/r3gate.py3CODE
LOWbenchmarks/hillclimb/r3_rig/pr/kx.py3CODE
LOWbenchmarks/hillclimb/r3_rig/pr/rnd.py1CODE
LOWbenchmarks/hillclimb/r3_rig/pr/selfq.py1CODE
LOWbenchmarks/hillclimb/r4_rig/h1gate.py3CODE
LOW.github/scripts/test_changelog_gate.py18CODE
LOW.github/scripts/escape_hatch.py35CODE
LOW.github/scripts/dep_floors.py21CODE
LOW.github/scripts/changelog_gate.py49CODE
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHturbovec-python/python/turbovec/_interruptible.py203except (TypeError, ValueError):CODE
HIGHturbovec-python/python/turbovec/_interruptible.py191except AttributeError:CODE
HIGHturbovec-python/python/turbovec/_persist.py137except OSError:CODE
HIGHturbovec-python/python/turbovec/_persist.py170except OSError: # pragma: no cover - filesystem refuses dir fsyncCODE
HIGHturbovec-python/tests/test_llama_index.py227except TypeError:CODE
HIGHturbovec-python/tests/test_agno.py1852except asyncio.CancelledError:CODE
HIGHturbovec-python/tests/test_persist.py358except FileNotFoundError:CODE
HIGHturbovec-python/tests/test_index.py377except PermissionError:CODE
HIGHturbovec-python/tests/test_index.py461except PermissionError:CODE
AI Slop Vocabulary11 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMturbovec/tests/kernel_correctness.rs23/// which makes the self-query invariant below robust.COMMENT
MEDIUMturbovec/src/planes_tests.rs1233/// id agreement on real corpora is the #562 harness's job.)COMMENT
MEDIUMturbovec-python/tests/test_fork_safety.py39# Self-contained harness executed in a fresh interpreter per scenario. ItCOMMENT
MEDIUMturbovec-python/tests/test_fork_safety.py42# Every child wait is bounded (select + SIGKILL) so the harness cannot hangCOMMENT
MEDIUM⚡turbovec-python/tests/test_store_thread_safety.py60# Stress-harness core (threads + classified exceptions)COMMENT
MEDIUMbenchmarks/hillclimb/whm_persist.py70 # cell (the _st variants, or cells carried over from another harness).COMMENT
MEDIUMbenchmarks/hillclimb/sweep_2bit.py28 # Cells-grade precision on every point. The cells harness reproducesCOMMENT
MEDIUMbenchmarks/hillclimb/sweep_2bit.py30 # sub-run processes; the first sweep harness used a fraction of thatCOMMENT
MEDIUMbenchmarks/hillclimb/r3_rig/r3soak.sh2# Round 3 soak: PASSES balanced ABBA passes of the full 4-cell harness; a label "tag:planes" runs tag.so with TURBOVEC_2COMMENT
MEDIUM.github/workflows/pr-review.yml273 # harness's record of the agent's final message. So the agent can vetoCOMMENT
MEDIUM.github/workflows/pr-review.yml363 # the harness after the session ends, so its shape cannot be forgedCOMMENT
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHbenchmarks/suite/speed_sync_d1536_2bit_arm_st.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_x86_mt.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_arm_mt.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_x86_st.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
Deep Nesting18 hits · 16 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py335CODE
LOWturbovec-python/python/turbovec/llama_index.py786CODE
LOWturbovec-python/python/turbovec/haystack.py499CODE
LOWturbovec-python/python/turbovec/haystack.py578CODE
LOWturbovec-python/python/turbovec/_persist.py217CODE
LOWturbovec-python/python/turbovec/agno.py471CODE
LOWturbovec-python/python/turbovec/agno.py1129CODE
LOWturbovec-python/python/turbovec/langchain.py357CODE
LOWturbovec-python/python/turbovec/langchain.py563CODE
LOWturbovec-python/tests/test_fork_safety.py570CODE
LOWturbovec-python/tests/test_store_thread_safety.py85CODE
LOWturbovec-python/tests/test_store_thread_safety.py890CODE
LOWturbovec-python/tests/test_store_thread_safety.py112CODE
LOWturbovec-python/tests/test_store_thread_safety.py113CODE
LOWbenchmarks/create_diagrams.py55CODE
LOWbenchmarks/hillclimb/whm_mutate.py48CODE
LOWbenchmarks/hillclimb/sweep_paired.py30CODE
LOW.github/scripts/changelog_gate.py113CODE
Structural Annotation Overuse5 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡turbovec/src/pack.rs67 // Step 1: Extract packed nibble bytes per vector per groupCOMMENT
LOW⚡turbovec/src/pack.rs70 // Step 2: Pack into platform-specific layoutCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5586### Step 1: reachable from stable RustCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5598### Step 2: 6.36x the issue rate, and the denominator took two triesCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5624### Step 3: the tile-load cost is real and almost entirely amortizableCOMMENT
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py1210__all__ = ["TurboQuantVectorStore"]CODE
LOWturbovec-python/python/turbovec/_similarity.py53__all__ = [CODE
LOWturbovec-python/python/turbovec/haystack.py1081__all__ = ["TurboQuantDocumentStore"]CODE
LOWturbovec-python/python/turbovec/_persist.py524__all__ = ["check_persisted_handles", "check_schema_version", "check_sidecar_keysets"]CODE
LOWturbovec-python/python/turbovec/agno.py1129 def update_metadata(self, content_id: str, metadata: Dict[str, Any]) -> None:CODE
LOWturbovec-python/python/turbovec/agno.py1368__all__ = ["TurboQuantVectorDb"]CODE
LOWturbovec-python/python/turbovec/__init__.py24__all__ = ["BATCH_CHUNK_SIZE", "IdMapIndex", "TurboQuantIndex", "__version__"]CODE
LOWturbovec-python/python/turbovec/langchain.py994__all__ = ["TurboQuantVectorStore"]CODE
LOWturbovec-python/python/turbovec/_dedup.py71__all__ = ["DuplicatePolicy", "resolve_duplicates"]CODE
Modern AI Meta-Vocabulary2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMturbovec-python/tests/test_llama_index.py1330 # store into a LlamaIndex pipeline (RAG, query engine, etc.), so itCOMMENT
MEDIUM⚡turbovec-python/tests/test_langchain.py574 # Tier 4: dim is inferred from the embedding model, no explicit param.COMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHturbovec-python/tests/test_persist.py448# them to null, serde_json/JSON.parse reject the file). Both now failCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOW⚡turbovec-python/tests/test_pickle_copy.py638 except Exception as exc: # pragma: no cover - failure pathCODE
MEDIUMturbovec-python/tests/test_persist.py103def save_loop(index, payload):CODE
LOWturbovec-python/tests/test_persist.py108 except Exception: # noqa: BLE001 — recorded for the assertCODE
LOWturbovec-python/tests/test_fork_safety.py272 except Exception:CODE
LOWbenchmarks/hillclimb/faiss_nq1.py39 except Exception as e:CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡turbovec/src/pack.rs67 // Step 1: Extract packed nibble bytes per vector per groupCOMMENT
LOW⚡turbovec/src/pack.rs70 // Step 2: Pack into platform-specific layoutCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/agno.py143CODE
LOWturbovec-python/tests/test_llama_index.py1403CODE