Dispatch Mushi fix agent
dispatch_fixStart an automated fix for a classified bug report: creates a branch and opens a signed draft PR, returning a fix ID for tracking. Use an idempotency key to retry safely.
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). 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.) | |
| 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 |