Repository navigation
Conversation
code-review-graph reviewOverall risk: 0.54 (MEDIUM) — 16 changed function(s)/class(es), 0 affected flow(s), 6 test gap(s) Risk-scored changes
Test gaps
Token savings: this graph-backed report used ~36,715 fewer tokens (~92%) 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. |
|
The net win here is real and I measured it: on main, 1. The edge cap slices an unranked list, so the visible edges misrepresent the graph. CALLS is 51% of the real set and 7% of what the caller sees; 2. That is over the Worth fixing in the same pass:
Verified good, for the record: bounds reject |
|
Changes required: the nominally minimal result can be substantially larger than standard output, and several caps apply only after unbounded work or arbitrary ordering. Populate |
|
This no longer merges into git fetch origin && git merge origin/staging
# resolve, then
uv run pytest tests/ -q
uv run ruff check code_review_graph/
uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optional
git pushWhen resolving:
A large integration branch landed on PRs now target |
|
This no longer merges into
Worth knowing before you resolve:
git fetch origin
git merge origin/staging
# resolve, then
uv run pytest tests/ -q
uv run ruff check code_review_graph/
uv run mypy code_review_graph/ --ignore-missing-imports --no-strict-optional
git pushI have not reviewed the change itself yet. That comes once it merges and the checks run against the merged state, since staging has moved a long way and the result is what matters. |
|
Thank you for this PR. I ran your token-budget tests on this branch and staging. Before I can merge it, please fix these:
Please update your branch with the latest staging. There are conflicts in After you push the fix, I will test it again. |
Summary
max_resultson the impact-radius MCP tool and validate all caller-supplied bounds, rejecting booleans and values below 1.Regression coverage
Validation
pytest tests/test_token_budget.py tests/test_tools.py tests/test_main.py tests/test_documentation.py -q— 298 passed.pytest tests/test_token_budget.py -q— 127 passed.ruff check code_review_graph/tools/query.py code_review_graph/main.py tests/test_token_budget.py— passed.python -m py_compilefor all changed Python files andgit diff --check— passed.Fixes #888