GitNexus/gitnexus/test
scotjelinski a61dd2c3ab feat(query): exclude test files by default, matching impact precedent
Mirrors the include_tests opt-in convention already used by impact.
Today query always includes tests, which can outrank production code
when tests mention a concept more often than the implementation itself.

Changes:
- CLI: new --include-tests flag on gitnexus query (default false).
- Backend: filter merged BM25 + semantic results via the existing
  isTestFilePath() helper before the per-symbol process lookup, so
  excluded items never incur the STEP_IN_PROCESS round-trip.
- MCP schema: surface includeTests on the query tool input schema,
  same shape as impact.
- Tests: two new dispatch cases in calltool-dispatch.test.ts cover
  default-exclude and includeTests=true round-trip.

Behavioral note: default behavior change for query. Existing callers
that relied on test files appearing in results need to pass
--include-tests or includeTests: true going forward. Matches the
precedent set when impact --include-tests shipped.

No new dependencies, no schema migration, no infrastructure changes.

Rebased onto current main after origin rev moved forward.
2026-05-27 18:20:44 -06:00
..
fixtures feat(cpp): rank user-defined conversions (#1829) 2026-05-27 06:36:23 +01:00
helpers fix(test): use retry cleanup in antigravity e2e to prevent ENOTEMPTY flake (#1838) 2026-05-26 15:40:08 +01:00
integration feat(cpp): rank user-defined conversions (#1829) 2026-05-27 06:36:23 +01:00
unit feat(query): exclude test files by default, matching impact precedent 2026-05-27 18:20:44 -06:00
utils fix: skip Claude augment hook when GitNexus server owns DB (#1493) 2026-05-14 16:39:30 +01:00