Skip to content

feat(query): surface bounded transitive test coverage#636

Merged
tirth8205 merged 1 commit into
mainfrom
codex/port-transitive-tests-for
Jul 17, 2026
Merged

feat(query): surface bounded transitive test coverage#636
tirth8205 merged 1 commit into
mainfrom
codex/port-transitive-tests-for

Conversation

@tirth8205

Copy link
Copy Markdown
Owner

Summary\n- ports only the safe tests_for behavior from stale cumulative PR #334\n- uses the existing bounded GraphStore transitive lookup for direct and one-hop test coverage\n- rebuilds every result through node_to_dict so names and qualified names remain sanitized and the established full node schema is preserved\n- adds an explicit indirect boolean to standard and minimal results\n- keeps ambiguous bare symbols explicit; it does not carry #334's unsafe silent production-node preference\n- caller/callee/inheritor deduplication was already present on main and is not duplicated\n\n## Attribution\nSource: #334 by Gideon Zenz, reviewed commit c5eb771. The port commit has a Co-authored-by trailer for Gideon Zenz.\n\n## Verification\n- TDD red: direct result lacked indirect; one-hop test was absent; ambiguity guard stayed green\n- focused query + graph modules: 122 passed\n- current-main full suite after rebase: 1489 passed, 1 skipped, 2 xpassed\n- changed-file Ruff and git diff check passed\n- graph rebuilt without errors; no affected execution flows\n\nThis replaces only the viable current-main delta and excludes the stale stacked history and unsafe ambiguity behavior.

Port the safe tests_for behavior from PR #334 while preserving sanitized node responses, explicit direct/indirect markers, bounded traversal, and explicit ambiguity.

Co-authored-by: Gideon Zenz <91069374+gzenz@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

code-review-graph review

Overall risk: 0.60 (MEDIUM) — 6 changed function(s)/class(es), 0 affected flow(s), 3 test gap(s)

Risk-scored changes

Risk Level Symbol Location Tested
0.60 medium tests/test_tools.py::TestQueryGraphTestsFor._seed_graph tests/test_tools.py:415 no
0.50 medium code_review_graph/tools/query.py::query_graph code_review_graph/tools/query.py:145 no
0.50 medium tests/test_tools.py::TestQueryGraphTestsFor tests/test_tools.py:393 no
0.50 medium tests/test_tools.py::TestQueryGraphTestsFor.test_query_graph_tests_for_finds_direct_edge tests/test_tools.py:464 (test)
0.50 medium tests/test_tools.py::TestQueryGraphTestsFor.test_query_graph_tests_for_finds_one_hop_indirect_test tests/test_tools.py:484 (test)
0.50 medium tests/test_tools.py::TestQueryGraphTestsFor.test_query_graph_tests_for_keeps_ambiguous_target_explicit tests/test_tools.py:509 (test)

Test gaps

  • code_review_graph/tools/query.py::query_graph (code_review_graph/tools/query.py:145)
  • tests/test_tools.py::TestQueryGraphTestsFor (tests/test_tools.py:393)
  • tests/test_tools.py::TestQueryGraphTestsFor._seed_graph (tests/test_tools.py:415)

Token savings: this graph-backed report used ~21,731 fewer tokens (~93%) than reading every changed file in full (estimated, chars/4 approximation).


Powered by code-review-graph — local-first analysis; no code leaves the CI runner.

@tirth8205
tirth8205 merged commit 102f5a8 into main Jul 17, 2026
11 checks passed
@tirth8205
tirth8205 deleted the codex/port-transitive-tests-for branch July 17, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant