yams/tests/unit/cli
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
..
doctor fix(daemon): delete corrupt DB copies only after confirmed salvage 2026-09-27 13:57:29 -06:00
add_command_stdin_catch2_test.cpp Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
cli_option_isolation_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
cli_test_cleanup_listener.cpp fix: suspected deadlock fixes in repair, bugs addressed in request logic. Continued triage from infer output and test failures 2026-04-11 18:45:22 -04:00
cli_utility_coverage_catch2_test.cpp test: lift coverage for core paths 2026-06-22 10:25:28 -04:00
command_registry_catch2_test.cpp feat(cli): add yams p2p publish/read/status 2026-08-13 12:20:02 -06:00
completion_command_catch2_test.cpp Stabilize sanitizer lanes and daemon concurrency (#40) 2026-06-01 12:14:43 -04:00
config_command_catch2_test.cpp refactor(symbols): remove symbol extraction subsystem and add migration 40 2026-09-22 07:37:30 -06:00
content_roundtrip_catch2_test.cpp fix(cli): preserve content bytes during hash hydration 2026-09-05 11:52:46 -06:00
daemon_command_catch2_test.cpp fix(daemon): verify lifecycle process identity 2026-07-29 10:35:30 -04:00
daemon_helpers_pool_catch2_test.cpp perf(search): bound topology routing and harden runtime paths (#59) 2026-07-19 14:53:10 -04:00
daemon_status_render_catch2_test.cpp fix(p2p): stop quarantining honest writers for concurrent-session races (#245) 2026-10-01 12:18:47 -06:00
data_dir_resolution_catch2_test.cpp refactor(config): unify flat TOML lookups 2026-08-05 20:53:17 -04:00
delete_command_catch2_test.cpp fix: expanding cli test suite, addressing ASAN issues and improving error handling 2026-03-19 13:03:46 -04:00
doctor_command_catch2_test.cpp [05/14] Consolidate configuration authority (#145) 2026-09-12 10:09:19 -04:00
doctor_repair_renderers_catch2_test.cpp test: lift coverage for core paths 2026-06-22 10:25:28 -04:00
download_command_catch2_test.cpp feat: massive commit. Download logic updates with expanding controls (stop, start, resume etc.) from daemon control. This is used in my archive openclaw agent. This commit also includes work to harden onnxruntime abi access. this should allow loading newer abi's when builds are pinned to 1.23.0. 2026-03-21 17:12:47 -04:00
error_hints_catch2_test.cpp fix: improving socket and chunking reliability and robustness. Added better regression tests and errror logging logic for state connections 2026-02-10 12:25:30 -05:00
graph_explore_presenter_catch2_test.cpp Sync experimental into main: Search retrieval improvements (#60) 2026-07-24 19:00:22 -04:00
graph_helpers_catch2_test.cpp fix(graph): rank explore targets and stop version crowding (#322) 2026-10-18 10:38:55 -06:00
graph_query_presenter_catch2_test.cpp fix(graph): document lookup and --scope-cwd (#280) (#282) 2026-10-09 00:01:24 -06:00
graph_topology_support_catch2_test.cpp fix(graph): --scope-cwd clusters, --name lookup, --limit (#280 follow-ups) (#284) 2026-10-09 00:01:24 -06:00
grep_command_path_tree_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
homebrew_service_formula_catch2_test.cpp fix(ci): test fixes 2026-04-26 01:02:36 -04:00
init_command_catch2_test.cpp fix(test): make Tests green on every platform (#264) 2026-10-02 18:47:29 -06:00
list_command_catch2_test.cpp chore: housekeeping — rm dead code, consolidate MCP tools, add tests, clean docs (#50) 2026-06-16 19:37:24 -04:00
model_command_catch2_test.cpp fix: bug fixes from test regressions and test infrastructure improvements 2026-03-21 19:52:39 -04:00
p2p_status_format_catch2_test.cpp fix(p2p): stop quarantining honest writers for concurrent-session races (#245) 2026-10-01 12:18:47 -06:00
pipeline_stage_render_catch2_test.cpp fix: onnx pool model scaling improvements, test fixes and UX improvements 2026-01-29 23:18:50 -05:00
plugin_command_catch2_test.cpp Remediate Fold SAST findings 2026-05-27 22:41:44 -04:00
prompt_util_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
recommendation_util_catch2_test.cpp removing gtest migrated tests and continuing with test migration 2025-12-16 10:50:18 -05:00
repair_command_catch2_test.cpp feat: persist semantic dedupe suggestions and apply them via repair 2026-04-02 22:33:07 -04:00
retrieval_json_catch2_test.cpp fix(retrieval): preserve content identities in JSON results 2026-09-05 11:52:46 -06:00
session_command_catch2_test.cpp refactor(cli): handle SessionCommand Mode::None explicitly 2026-09-27 20:11:46 -06:00
status_metrics_catch2_test.cpp feat(storage): expose typed disk pressure policy 2026-08-27 09:54:06 -06:00
stream_heuristics_catch2_test.cpp plugin install path update, daemon status fixes, lint run 2025-12-20 18:13:54 -05:00
time_filters_catch2_test.cpp fix(ci): stabilize sanitizer validation 2026-08-08 11:42:33 -04:00
time_parser_catch2_test.cpp feat: test coverage improvements. Scaling bug addresses 2026-02-04 20:20:18 -05:00
update_command_catch2_test.cpp perf(metadata): profile write-path batching (#49) 2026-06-12 14:11:49 -04:00
vector_db_util_catch2_test.cpp refactor(config): consolidate embedding policy 2026-08-05 20:53:18 -04:00
version_generated_header_catch2_test.cpp fix(ci): stabilize Windows release builds 2026-07-05 15:56:52 -04:00