Convergence Score
convergence_scoreScore how closely a git diff matches a stated task, returning a deterministic 0–100 convergence measure with Coverage, Scope, and Risk sub-scores plus a verifiable receipt.
Instructions
Score convergence: a deterministic 0–100 measure of the distance between a stated task (intent) and the actual git diff (execution), with sub-scores for Coverage (did the intent happen?), Scope (did only the intent happen?), and Risk alignment (did unrequested drift land on risk-sensitive paths?). Composed from the change_impact diff comparison and the shared risk vocabulary — no model, no new analysis. Emits a recomputable receipt (a timestamp-free hash anyone can regenerate and verify) as durable evidence. Requires a base git ref to diff against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of predicted owner files to consider. Defaults to 10. | |
| base | Yes | Git ref to diff against (e.g. origin/main, HEAD~1). Required. | |
| path | No | Repository path. Defaults to current working directory. | |
| query | Yes | The stated task / intent to measure against the diff, e.g. "add Stripe refunds". | |
| staged | No | Measure only the exact Git index tree and bind the receipt to its tree SHA. May create Git object or index-cache metadata; source files are unchanged. | |
| includeMarkdown | No | Return a compact human-readable markdown report instead of the full JSON. Defaults to false. |