Convergence Score
convergence_scoreMeasure alignment between a stated task and your git diff with a deterministic 0-100 score, covering intent coverage, scope, and risk alignment.
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. New files beside a confirmed owner and tests of confirmed files count as in scope, listed under drivers.inferredRelated. Emits a recomputable receipt (a timestamp-free hash anyone can regenerate and verify) as durable evidence. Requires a base git ref to diff against; scores the working tree's tracked changes unless head or staged selects an exact subject.
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. | |
| head | No | Score exactly base..head (a direct tree diff, no merge base) instead of the working tree, and bind the receipt to the head commit and its tree SHA. Uncommitted and untracked files play no part. Cannot be combined with staged. | |
| 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. | |
| includeUntracked | No | Working-tree mode only: also score untracked, non-ignored files. Defaults to false; untracked files are otherwise listed under untracked and not scored. |