Skip to content

fix(risk): normalize the git_metadata target path in get_risk - #1849

Open
sloemo01 wants to merge 1 commit into
repowise-dev:mainfrom
sloemo01:fix/get_risk-colnames
Open

fix(risk): normalize the git_metadata target path in get_risk#1849
sloemo01 wants to merge 1 commit into
repowise-dev:mainfrom
sloemo01:fix/get_risk-colnames

fix(risk): normalize the git_metadata target path before the lookup i…

5d5c7af
Select commit
Loading
Failed to load commit list.
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 PR
  • tests/unit/server/mcp/test_risk.py::test_get_risk_normalizes_target_path: added, 0 caller(s) outside this PR
  • tests/unit/server/mcp/test_risk.py::test_get_risk_repo_absolute_target_path: added, 0 caller(s) outside this PR
  • tests/unit/server/mcp/test_risk.py::test_normalize_target_path: added, 0 caller(s) outside this PR
  • packages/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 months
  • packages/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 Chamadiya
  • packages/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.py co-changes with packages/server/src/repowise/server/mcp_server/tool_risk/directives.py (7x)
  • tests/unit/server/mcp/test_risk.py co-changes with packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py (7x)
  • packages/server/src/repowise/server/mcp_server/tool_risk/assessment.py co-changes with packages/server/src/repowise/server/mcp_server/tool_risk/get_risk.py (7x)
  • tests/unit/server/mcp/test_risk.py co-changes with packages/core/src/repowise/core/analysis/pr_blast.py (6x)
  • tests/unit/server/mcp/test_risk.py co-changes with docs/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