Dispatch Mushi fix agent
dispatch_fixStart an automated fix agent for a classified bug report, generating a branch and opening a signed draft PR. Resend the same idempotency key to retry without a duplicate job.
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 | Override the agent adapter | |
| reportId | Yes | Report UUID to fix | |
| 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 |