Dispatch Mushi fix agent
dispatch_fixLaunch a fix agent on a classified bug report to write a branch and open a signed draft PR automatically, then poll the timeline and merge once CI passes.
Instructions
Start a Mushi fix agent for a classified report; it writes a branch and opens a signed draft PR. Set agent="cursor_cloud" to dispatch a Cursor Cloud Agent (default uses the in-repo worker). For a project with several linked repos, set targetRepoId (a project_repos.id) to choose the repo the PR opens against; omit it for the primary repo. Requires GitHub connected + an LLM key (run diagnose_setup mode=dispatch first). Returns { fixId, status } (fixId is the dispatch id; get_fix_timeline accepts it immediately); poll get_fix_timeline for progress and merge_fix when CI is green. Write; pass the same idempotencyKey to retry safely — without it each call starts a new attempt. Report must be classified — run triage_issue if not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Which agent runs the fix. Omit for the project default (auto); cursor_cloud and github_cloud_agent dispatch a cloud agent. | |
| reportId | Yes | Report UUID to fix (`report_id` is accepted too.) | |
| projectId | No | Project UUID — defaults to the configured project. (`project_id` is accepted too.) | |
| targetRepoId | No | Optional linked repo id (project_repos.id) to open the fix PR against, for a project with several repos. Omit for the project's primary repo. Another project's repo id is rejected with 400 TARGET_REPO_NOT_IN_PROJECT. | |
| idempotencyKey | No | Optional RFC 4122 UUID. Resend the same key to safely retry without dispatching a duplicate fix job (Idempotency-Key IETF draft). | |
| inventoryActionNodeId | No | Optional inventory Action node UUID for spec-traceability (§2.10). When provided, the fix-worker embeds the expected_outcome contract in the LLM prompt and runs validateAgainstSpec before opening the PR. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixId | Yes | ||
| status | Yes |