martin_eval
Grade a completed run on task completion, verifier health, diff discipline, regression risk, security risk, and reviewability, then return a merge-readiness verdict for deciding safe merge or promotion.
Instructions
Grade a MartinLoop run across six dimensions — task completion, verifier health, diff discipline, regression risk, security risk, and reviewability — and return a scored merge-readiness verdict. Use after a governed run completes to decide whether the result is safe to merge or promote. Use before martin_pr_summary or martin_create_pr to confirm the run is merge-ready. Do not use to retrieve raw verification command output — use martin_get_verification_results for that. Do not use to review an existing PR body — use martin_review_pr instead. This tool reads saved run evidence and inspects local git signals; it does not modify state or contact GitHub.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Absolute or relative path to a loop-record.json file or run directory. Mutually exclusive with loopId and latest. | |
| latest | No | When true, evaluates the most recently updated run in the run store. Mutually exclusive with file and loopId. | |
| loopId | No | MartinLoop run identifier from the run store. Mutually exclusive with file and latest. | |
| runsDir | No | Override the default run-store root directory. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Overall merge readiness grade derived from the six check dimensions. | |
| score | Yes | Numeric evaluation score from 0–100. | |
| checks | Yes | ||
| loopId | Yes | Unique MartinLoop run identifier. | |
| source | Yes | Resolved path to the loop-record source file. | |
| summary | Yes | One-paragraph plain-English evaluation summary. | |
| warnings | Yes | Non-blocking advisory warnings from the evaluation. | |
| sourceKind | Yes | How the run was identified. |