TypeDB: Built for systems, not records
This report summarizes scanner evidence for typedb/typedb, a Rust project with 4,495 GitHub stars. SynthScan examined 190,482 lines of code across 675 source files, recording 49 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 0.3 (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? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 49 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 49 distinct pattern matches across 3 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 | ir/translation/function.rs | 321 | if let Some(mismatch_index) = mismatching_index_opt { | COMMENT |
| LOW | ir/translation/constraints.rs | 561 | // constraints: &mut ConstraintsBuilder<'_, '_>, | COMMENT |
| LOW | ir/tests/pattern.rs | 121 | let Stage::Match(match_) = stages.first().unwrap() else { unreachable!() }; | COMMENT |
| LOW | ir/tests/pipeline.rs | 21 | }, | COMMENT |
| LOW | encoding/graph/thing/vertex_attribute.rs | 681 | /// String encoding scheme uses 17 bytes: | COMMENT |
| LOW | server/parameters/config.rs | 321 | /// #[derive(Deserialize)] | COMMENT |
| LOW | server/parameters/cli.rs | 21 | /// Server listen address for gRPC connections (e.g., 0.0.0.0:1729) | COMMENT |
| LOW | server/parameters/cli.rs | 41 | /// Server advertise address for HTTP connections (e.g., http://127.0.0.1:8000) | COMMENT |
| LOW | server/parameters/cli.rs | 61 | /// The amount of seconds generated authentication tokens will remain valid, specified in seconds. | COMMENT |
| LOW | server/parameters/cli.rs | 101 | #[arg(long = "diagnostics.reporting.metrics")] | COMMENT |
| LOW | storage/isolation_manager.rs | 361 | f, | COMMENT |
| LOW | storage/tests/test_isolation.rs | 621 | // fn isolation_manager_reads_evicted_from_disk() { | COMMENT |
| LOW | storage/tests/test_isolation.rs | 641 | // snapshot_i.commit(&mut CommitProfile::disabled()).unwrap(); | COMMENT |
| LOW | storage/benches/bench_mvcc_storage.rs | 141 | { | COMMENT |
| LOW | .cargo/config.toml | 21 | # codegen-units = 1 | COMMENT |
| LOW | common/logger/result.rs | 21 | E: fmt::Debug; | COMMENT |
| LOW | common/logger/log_panic.rs | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | common/logger/log_panic.rs | 21 | //! | COMMENT |
| LOW | common/logger/log_panic.rs | 41 | /// # #[allow(clippy::needless_doctest_main)] | COMMENT |
| LOW | common/logger/log_panic.rs | 61 | /// | COMMENT |
| LOW | common/concurrency/tokio_task.rs | 21 | /// - When shutdown is observed, the tracker: | COMMENT |
| LOW | concept/type_/type_manager.rs | 3201 | // snapshot, | COMMENT |
| LOW | concept/type_/type_manager/validation/validation.rs | 241 | Ok(()) | COMMENT |
| LOW | concept/type_/type_manager/validation/validation.rs | 261 | // for capability in capabilities.into_iter().chain(not_stored_set_capabilities.iter().filter(|(_, is_set)| **is_set | COMMENT |
| LOW | concept/type_/type_manager/validation/validation.rs | 281 | // | COMMENT |
| LOW | …_/type_manager/validation/operation_time_validation.rs | 2181 | // pub(crate) fn validate_relation_type_does_not_acquire_cascade_constraint_to_lose_instances_with_new_supertype( | COMMENT |
| LOW | …_/type_manager/validation/operation_time_validation.rs | 2201 | // AnnotationCategory::Cascade, | COMMENT |
| LOW | …_/type_manager/validation/operation_time_validation.rs | 2221 | // Self::has_instances_of_type(snapshot, thing_manager, type_.clone()) | COMMENT |
| LOW | …_/type_manager/validation/operation_time_validation.rs | 3041 | return Ok(()); | COMMENT |
| LOW | .factory/automation.yml | 101 | bazel test --config=ci $(bazel query 'kind(rust_test, //server/tests/...)') --test_output=streamed | COMMENT |
| LOW | executor/tests/efficiency.rs | 1221 | // 2 seeks: each of the 2 comparison check filters get the value of the Attribute repeatedly... | COMMENT |
| LOW | executor/tests/efficiency.rs | 1361 | // open initial iterators: 2 seeks... HasReverse[age 10] finds Person 1. Has[unbound] finds Person 1 and attributes | COMMENT |
| LOW | executor/tests/efficiency.rs | 1381 | // => advance both iterators: 2 advances... run out of answers in HasReverse. Finished! | COMMENT |
| LOW | executor/instruction/isa_reverse_executor.rs | 301 | ) -> Result<(), Box<ConceptReadError>> { | COMMENT |
| LOW | executor/instruction/isa_reverse_executor.rs | 321 | // Ok(Some(Ordering::Greater)) | COMMENT |
| LOW | executor/instruction/iterator.rs | 441 | ) -> Result<Option<Ordering>, Box<ConceptReadError>> { | COMMENT |
| LOW | compiler/transformation/relation_index.rs | 21 | BlockAnnotations, ConstraintTypeAnnotations, IndexedRelationAnnotations, TypeAnnotations, | COMMENT |
| LOW | compiler/transformation/transform.rs | 41 | // - function inlining v1: if a function does not have recursion or sort/offset/limit, we could inline the function | COMMENT |
| LOW | compiler/tests/transformation.rs | 381 | // TODO: we just want to add with an exclusitivity constraint | COMMENT |
| LOW | compiler/tests/transformation.rs | 401 | // let snapshot = storage.clone().open_snapshot_write(); | COMMENT |
| LOW | compiler/tests/transformation.rs | 421 | // run_test_relation_index_transformation_not_applied_attribute(snapshot, &type_manager) | COMMENT |
| LOW | compiler/tests/transformation.rs | 441 | // type_manager, | COMMENT |
| LOW | compiler/annotation/inference/match_inference.rs | 761 | // | COMMENT |
| LOW | compiler/annotation/inference/match_inference.rs | 781 | // &BTreeMap::from([ | COMMENT |
| LOW | tool/release/create_notes.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ype_/type_manager/validation/commit_time_validation.rs | 80 | // the updated schema with the finalised snapshot is much-much-much simpler and more robust | COMMENT |
| MEDIUM | executor/read/immediate_executor.rs | 170 | /// To avoid missing cartesian outputs when multiple variables are unbound, the executor can leverage a | COMMENT |
| MEDIUM | executor/tests/efficiency.rs | 1487 | // however, seeking through that iterator to search for a specific person with the required Has should also lever | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | storage/snapshot/buffer.rs | 117 | // TODO: implement our own alternative to BTreeMap, which | COMMENT |