Score diff risk
score_diffCompute the opendrs Diff Risk Score (0-1) for changes between two git refs to decide whether to open a pull request, split a change, or require human review.
Instructions
Compute the opendrs Diff Risk Score (0-1, calibrated probability that the change causes an incident) for the changes between two git refs. Returns the score, tier (green/yellow/red), the gate decision and its reasons, the top contributing signals with evidence, signals that could not be computed (unknowns), suggested reviewers, and the LLM judge's rationale when enabled. Use it before opening a pull request, or to decide whether a change should be split.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base ref to diff against. Defaults to "origin/HEAD", or "main" when that is not set. | |
| head | No | Head ref to score. Defaults to "HEAD". | |
| repoDir | Yes | Absolute path to the git repository (any directory inside the work tree). |