Convergence Score
convergence_scoreMeasures how closely an actual git diff matches the stated task intent, returning a deterministic 0-100 score plus coverage, scope, and risk-alignment sub-scores against a base ref.
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?). No model. A task that predicts no owner file is band inconclusive, with no score. Emits a recomputable receipt (a hash anyone can regenerate). Requires a base git ref to diff against; scores the working tree's tracked changes unless head or staged selects an exact subject.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"base": "<base>"
},
"name": "convergence_score"
}
}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 instead of the working tree; the receipt binds to the head commit. 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". | |
| intent | No | Declared intent from change_impact declare (record, JSON, or path): score against the declared files instead of a live prediction. | |
| staged | No | Score only the Git index; the receipt binds to its tree. | |
| 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. |