get_change_risk
Review a commit, branch range, or uncommitted changes to assess risk, surface newly worsened code health, and identify tests to run.
Instructions
Review a commit, base..head range, or uncommitted work.
Leads with ``directive`` (verdict in ``status``) and ``health_delta``
(what this change newly made worse). ``risk_percentile`` and
``diff_shape`` measure diff size, not danger. ``impacted_tests`` names
the tests to run.
Args:
revspec: commit or ``base..head``. Omit for uncommitted work, or
``HEAD`` when the tree is clean.
per_commit: with a range, one compact row per commit (up to 30).
include: ``"findings"``, ``"diagnostics"``, ``"scales"``,
``"evidence"``, ``"tests"`` (why each runs).
finding_id: expand one ``health_delta`` finding.
extensions: file suffixes to count, e.g. ``[".py"]``.
exclude_patterns, include_paths: gitignore-style paths to omit, keep
(include_paths also takes one comma-separated string).
baseline: commits sampled for the percentile; 0 disables it.
repo: usually omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | ||
| include | No | ||
| revspec | No | ||
| baseline | No | ||
| extensions | No | ||
| finding_id | No | ||
| per_commit | No | ||
| include_paths | No | ||
| exclude_patterns | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |