get_risk
What history says about touching these files — bug fixes, churn, owners.
Instructions
What history says about touching these files — bug fixes, churn, owners.
Fuses git signals (``hotspot_score``/``owner_pct`` 0-1, trend, bus
factor) with graph reach. ``dependents`` and ``co_change_partners`` are
a floor and correlation, not proof of runtime breakage. Pass
``changed_files`` for PR mode: the response leads with ``directive``
(may_break, missing_cochanges, missing_tests, tests_to_run); read it
first. ``directive.reach`` is never a breakage probability. For a
commit or range use ``get_change_risk``.
Args:
targets: file paths; defaults to changed_files.
changed_files: PR-changed files for PR mode.
include: "graph", "churn", "owners", "scales" (units, calibration),
"changes"; with changed_files only: "tests" (typed test rows), "blast".
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| include | No | ||
| targets | No | ||
| changed_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |