fix(risk): normalize the git_metadata target path in get_risk - #1849
Open
sloemo01 wants to merge 1 commit into
Open
fix(risk): normalize the git_metadata target path in get_risk#1849sloemo01 wants to merge 1 commit into
sloemo01 wants to merge 1 commit into
Repowise Bot / Repowise / code health
succeeded
Aug 28, 2026 in 0s
Health gate passed
Repository health 7.3 -> 7.3. No configured gate rule tripped.
Details
Symbols changed (blast radius)
packages/server/src/repowise/server/mcp_server/tool_risk/assessment.py::normalize_target_path: added, 0 caller(s) outside this PRtests/unit/server/mcp/test_risk.py::test_get_risk_normalizes_target_path: added, 0 caller(s) outside this PRtests/unit/server/mcp/test_risk.py::test_get_risk_repo_absolute_target_path: added, 0 caller(s) outside this PRtests/unit/server/mcp/test_risk.py::test_normalize_target_path: added, 0 caller(s) outside this PRpackages/server/src/repowise/server/mcp_server/tool_risk/assessment.py::_assess_one_target: body, 1 caller(s) outside this PR:packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py::get_risk
Review priority (recent bug-fix history)
tests/unit/server/mcp/test_risk.py: fixed 7x in the last ~6 monthspackages/server/src/repowise/server/mcp_server/tool_risk/assessment.py: fixed 7x in the last ~6 months
Touched hotspots (blast radius)
tests/unit/server/mcp/test_risk.py: 12 commits/90d, 5 dependents, owner Raghav Chamadiyapackages/server/src/repowise/server/mcp_server/tool_risk/assessment.py: 13 commits/90d, 8 dependents, owner Raghav Chamadiya
Hidden coupling (co-change partners not in this PR)
tests/unit/server/mcp/test_risk.pyco-changes withpackages/server/src/repowise/server/mcp_server/tool_risk/directives.py(7x)tests/unit/server/mcp/test_risk.pyco-changes withpackages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py(7x)packages/server/src/repowise/server/mcp_server/tool_risk/assessment.pyco-changes withpackages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py(7x)tests/unit/server/mcp/test_risk.pyco-changes withpackages/core/src/repowise/core/analysis/pr_blast.py(6x)tests/unit/server/mcp/test_risk.pyco-changes withdocs/agent/MCP_TOOLS.md(4x)
Change risk
- Raw change-risk score: 8.0/10 (banded moderate, riskier than 35% of this repo's commits)
- Driven by: more lines added than baseline
Loading