yams/tests/unit/app/services
Trevon c3acf80bc4
fix(graph): rank explore targets and stop version crowding (#322)
Graph explore matched candidates across the whole knowledge graph by
label, then filtered by scope. For a bare basename with many foreign
matches the global ORDER BY label LIMIT filled every slot before scope
filtering, so the correct in-scope file never appeared. For a single
absolute path, logical, historical and blob representations of the same
file consumed the symbol budget and the reported files.

Seed an explicit single-term file-like target through scoped direct-key
lookup instead of relying on the saturated global pool, and rank the
remaining candidates by query coverage. Collapse whole-file hydration
representatives to one entry per path while keeping every contributing
node identity for relationship collection, so distinct symbols, text
segments and explicit source spans are still emitted. Raw lookup is
unchanged and still returns all nodes.

Truncation accounting now covers clipped snippets and omitted unreadable
sources. Explore hints keep an external target and add --global when the
target resolves outside the current directory; local hints stay scoped.

Tests cover scoped lookup under a saturated foreign label pool, file and
version budget diversity, direct-key seeding, relationship retention
across duplicate file representations, segment provenance, the
relationship cap, disabled relation and zero-symbol budgets, and
external hint scope.

Signed-off-by: trvon <git@trevon.dev>
2026-10-18 10:38:55 -06:00
..
document_ingestion_batch_catch2_test.cpp perf+assert(storage): eliminate zero-init, temp-path overhead, add DCHECK invariants (#42) 2026-06-04 22:44:12 -04:00
document_service_test.cpp fix(graph): --scope-cwd clusters, --name lookup, --limit (#280 follow-ups) (#284) 2026-10-09 00:01:24 -06:00
document_service_update_metadata_catch2_test.cpp perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
download_metadata_entries_test.cpp feat(daemon): shutdown hardening + test helper linkage fixes (#44) 2026-06-08 16:29:44 -04:00
enhanced_search_config_catch2_test.cpp refactor(config): unify flat TOML lookups 2026-08-05 20:53:17 -04:00
graph_context_service_catch2_test.cpp fix(graph): rank explore targets and stop version crowding (#322) 2026-10-18 10:38:55 -06:00
graph_query_service_catch2_test.cpp fix(testing): stabilize TSAN coverage, harden daemon shutdown, and speed up KG/storage paths (#53) 2026-06-26 17:57:02 -04:00
grep_regex_test.cpp fix: regressions fixes in request handlers and correctness improvements in repair service 2026-03-19 09:47:30 -04:00
grep_service_test.cpp chore(warnings): clean up compiler warnings on GCC, Clang and Apple Clang (#279) 2026-10-08 14:30:28 -06:00
indexing_service_test.cpp chore(warnings): clean up compiler warnings on GCC, Clang and Apple Clang (#279) 2026-10-08 14:30:28 -06:00
literal_extractor_test.cpp perf(grep): speed literal matching 2026-05-21 11:54:19 -04:00
retrieval_schema_validation_test.cpp test improvements and stablizations 2025-12-06 18:27:25 -05:00
retrieval_service_mapping_catch2_test.cpp refactor(daemon): remove unused ClientConfig::acceptCompressed 2026-09-27 20:11:46 -06:00
search_hash_edge_cases_catch2_test.cpp chore(warnings): clean up compiler warnings on GCC, Clang and Apple Clang (#279) 2026-10-08 14:30:28 -06:00
search_service_catch2_test.cpp chore(warnings): clean up compiler warnings on GCC, Clang and Apple Clang (#279) 2026-10-08 14:30:28 -06:00
service_deadline_catch2_test.cpp fix(build): restore clean test and benchmark links 2026-08-06 09:59:07 -04:00
service_utilities_test.cpp test: isolate process environment 2026-08-04 21:31:39 -04:00
simd_memmem_test.cpp fix(app): guard SIMD raw-pointer inputs 2026-05-17 23:50:32 -04:00