Record a fix outcome
submit_fix_resultRecord a fix outcome from an external agent by providing branch, PR URL, files changed, and lines changed. Creates a fix attempt, marks it completed, and links it to the specified report.
Instructions
Record a fix outcome from an external agent (e.g. your own Cursor/Claude run): branch, PR URL, files changed, lines added/removed. Creates a fix_attempt row then patches it to completed and links it to the report. Returns { fixAttemptId }. Write; NOT idempotent — each call creates a new fix_attempt, so call once per PR. Use after you opened a PR outside Mushi; use dispatch_fix to have Mushi open the PR instead, or merge_fix once CI is green.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prUrl | No | GitHub pull request URL, if a PR was opened | |
| branch | Yes | Git branch name where the fix was implemented | |
| summary | Yes | One-line human summary of what the fix changed | |
| reportId | Yes | Report UUID to attach this external fix attempt to | |
| filesChanged | Yes | Repo-relative paths modified by the fix | |
| linesChanged | Yes | Total lines added + removed across filesChanged | |
| idempotencyKey | No | Optional UUID — resend the same key to safely retry without creating duplicate fix rows |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the fix_attempt row was created and marked completed | |
| fixId | Yes | UUID of the new fix_attempt row |